[PATCH] Improve and consolidate sparc PIC assembler.

David Miller davem at davemloft.net
Wed Apr 10 20:55:29 CEST 2013


From: Torbjorn Granlund <tg at gmplib.org>
Date: Wed, 10 Apr 2013 20:07:52 +0200

>   I'll get those bugs sorted out, but at least gcc-4.6 and gcc-4.7 have
>   this problem, and have had them for some time, so I think we should
>   work around it.  A workaround that works is to pass "-mcpu=v8
>   -mcpu=supersparc" instead of just plain "-mcpu=supersparc"
>   
> I though -mcpu=foo -mcpu=bar would either be equivalent to just
> -mcpu=bar or just -mcpu=foo...

As per what the compiler decides to enable internally in the backend,
that expression evaluates to the last -mcpu= specifier.

But as far as specs are concerned, it evaluates differently, and
different enough for the assembler option logic for -mcpu=v8 in the to
kick in, in this case.


More information about the gmp-devel mailing list