[Bug target/30936] __builtin_nanf("") != __builtin_nanf("") is false for sh4-linux-gnu

2007-02-26 Thread filippo dot arcidiacono at gmail dot com
--- Comment #7 from filippo dot arcidiacono at gmail dot com 2007-02-26 13:01 --- > is wrong, it should be instead: > mov #1, r1 OK! This is what I get if I use __builtin_nanf() instead of nanf. But using nanf there isn't any undefined nanf symbol in the obiect generated,

[Bug target/30936] const attribute in nanf prototype causes gcc not producing correct code.

2007-02-26 Thread filippo dot arcidiacono at gmail dot com
--- Comment #5 from filippo dot arcidiacono at gmail dot com 2007-02-26 09:29 --- Created an attachment (id=13112) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13112&action=view) assembler code of nanf-test.c Following a piece of the objdump of the nanf-test: : : int mai

[Bug c/30936] const attribute in nanf prototype causes gcc not producing correct code.

2007-02-26 Thread filippo dot arcidiacono at gmail dot com
--- Comment #3 from filippo dot arcidiacono at gmail dot com 2007-02-26 08:08 --- Created an attachment (id=13111) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13111&action=view) prerprocessed file of nanf-test.c In attach you can find the preprocessed file nanf-test.i

[Bug c/30936] const attribute in nanf prototype causes gcc not producing correct code.

2007-02-23 Thread filippo dot arcidiacono at gmail dot com
--- Comment #1 from filippo dot arcidiacono at gmail dot com 2007-02-23 15:43 --- Created an attachment (id=13100) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13100&action=view) simple test case exploiting gcc bug compiled with the following command: > sh4-linu

[Bug c/30936] New: const attribute in nanf prototype causes gcc not producing correct code.

2007-02-23 Thread filippo dot arcidiacono at gmail dot com
By: filippo dot arcidiacono at gmail dot com GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh4-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30936