[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#172956: Sparc GCC issue with -mcpu=ultrasparc



tags 172956 + wontfix
retitle 172956 [fixed in gcc-3.x] Sparc GCC issue with -mcpu=ultrasparc
thanks

Michel LESPINASSE writes:
> Package: gcc-2.95
> Version: 1:2.95.4-7
> 
> When invoking gcc with -mcpu=ultrasparc, the assembler still thinks
> it's compiling for sparclite !
> 
> Simple test case:
> 
> #include <stdio.h>
> 
> int main (void)
> {
>   printf ("Hello World\n");
>   return 0;
> }
> 
> gcc -mcpu=ultrasparc foo.c
> /tmp/cc44hl4o.s: Assembler messages:
> /tmp/cc44hl4o.s:22: Error: Architecture mismatch on "ba,pt %xcc,.LL2".
> /tmp/cc44hl4o.s:22:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
> /tmp/cc44hl4o.s:25: Error: Architecture mismatch on "return".
> /tmp/cc44hl4o.s:25:  (Requires v9|v9a|v9b; requested architecture is sparclite.)
> 
> If I add -Wa,-Av9b on the command line, the issue goes away. However I
> think gcc should be smart enough to pass the right options to the
> assembler - like it does on other architectures.
> 
> This system is using binutils version 2.12.90.0.1-4, if it makes a difference.
> 
> Hope this helps,
> 
> -- 
> Michel "Walken" LESPINASSE
> Is this the best that god can do ? Then I'm not impressed.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: