Port-mips archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can't compile longson kernels
On Nov 29, 2013, at 2:39 AM, Martin Husemann <martin%duskware.de@localhost>
wrote:
> On Fri, Nov 29, 2013 at 10:24:57AM +0100, Manuel Bouyer wrote:
>> The warning is not bogus, and there's no real error either.
>> The loongson jump fix does really replace a jump instruction with
>> multiple instructions that ends with a jump. This hack in our local source
>> is because we (NetBSD) don't want the warning in this specific case
>> (but we do want it if other macros cause one instruction to
>> be remplaced by multiple instructions). The alternatives are to
>> remove -mfix-loongson2f-jump (but then the hardware may hang) or
>> remove --fatal-warnings (but then we don't get errors when other
>> macros may cause real issues).
>
> Yes, of course. And that all is why this is a valid fix and appropriate
> for upstream inclusion, IMHO.
>
> To cite from info gas:
>
> `as' should never give a warning or error message when assembling
> compiler output.
>
>
> But in this case, it does.
he compiler should have emitted .set nomacro so
j foo
should never be expanded as a macro.
Home |
Main Index |
Thread Index |
Old Index