This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30936] New: const attribute in nanf prototype causes gcc not producing correct code.
- From: "filippo dot arcidiacono at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2007 15:39:16 -0000
- Subject: [Bug c/30936] New: const attribute in nanf prototype causes gcc not producing correct code.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Being nanf declared using const attribute, sh4-linux-gcc (4.1.1) doesn't
produce
the code to call the nanf function.
Removing the 'const' attribute the generated code works fine.
Using gcc (3.4.3) Red Hat EL4 the test runs fine.
--
Summary: const attribute in nanf prototype causes gcc not
producing correct code.
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: 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