[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-08-04 06:18 --- The test.s file assembles fine on my machine with GNU as 2.16. Could you compile the test.i file with -v and post the command line passed to the assembler? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From aaron_williams at net dot com 2005-08-04 06:25 --- Subject: Re: gcc optimization error for sparc with xine/ffmpeg, bad assembly generated Hmmm, I though I had binutils 2.16.1, but it's actually 2.15... that might be the problem. Trying to upgrade to 2.16.1 now. gcc -O3 -mcpu=ultrasparc -mtune=ultrasparc -fno-inline-functions -c test.i -o test.o -v Reading specs from /opt/gcc3.3/lib/gcc-lib/sparc-sun-solaris2.8/3.3.6/specs Configured with: ../configure --host=sparc-sun-solaris2.8 --prefix=/opt/gcc3.3 --enable-shared --with-gnu-ld --with-ld=/opt/gcc3.3/bin/ld --with-gnu-as --with-as=/opt/gcc3.3/bin/as --with-cpu=ultrasparc Thread model: posix gcc version 3.3.6 /opt/gcc3.3/lib/gcc-lib/sparc-sun-solaris2.8/3.3.6/cc1 -fpreprocessed test.i -quiet -dumpbase test.i -mcpu=ultrasparc -mtune=ultrasparc -auxbase-strip test.o -O3 -version -fno-inline-functions -o /var/tmp//cczPFnhi.s GNU C version 3.3.6 (sparc-sun-solaris2.8) compiled by GNU C version 3.3.6. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 /opt/gcc3.3/bin/as -V -Qy -s -xarch=v8plusa -o test.o /var/tmp//cczPFnhi.s GNU assembler version 2.15 (sparc-sun-solaris2.8) using BFD version 2.15 /var/tmp//cczPFnhi.s: Assembler messages: /var/tmp//cczPFnhi.s:464: Error: Illegal operands: There are only 32 single precision f registers; [0-31] -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 13:14 --- fmovdne %fcc1, %f50, %f8 Yep this is still a dup of bug 15247. *** This bug has been marked as a duplicate of 15247 *** -- What|Removed |Added Status|WAITING |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From aaronw at net dot com 2005-08-04 01:33 --- Created an attachment (id=9425) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9425action=view) Test case that creates the problem gcc -O3 -mcpu=ultrasparc -mtune=ultrasparc -fno-inline-functions -c test.c -o test.o Note that this test case can probably be further simplified. There was another file a lot more complex that was even worse and only needed -O3 to generate the problem without -fno-inline-functions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 01:36 --- This is a gas bug. *** This bug has been marked as a duplicate of 15247 *** *** This bug has been marked as a duplicate of 15247 *** -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 04:27 --- Lets reopen it then. Could you attach the .s file? And the preprocessed source, the .i file. Both can be got by adding -save-temps to the gcc invocation. -- What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|DUPLICATE | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
-- What|Removed |Added CC||ebotcazou at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-08-04 05:01 --- Please attach the generated assembly file. -- What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222
[Bug c/23222] gcc optimization error for sparc with xine/ffmpeg, bad assembly generated
--- Additional Comments From aaronw at attbi dot com 2005-08-04 05:28 --- Interesting... it assembles with binutils as 2.12.1... could this be another binutils bug? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23222