This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/13292] New: -msoft-float seems to corrupt builtin defines
- From: "john at atrove dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2003 01:47:33 -0000
- Subject: [Bug c/13292] New: -msoft-float seems to corrupt builtin defines
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Whilst compiling my application I noticed some of the buildin defines where
not as expected. Some basic tests showed that the -msoft-float flag seemed to
be changing the builtin defines. See results below
Compiler versions
$ m68k-rtems-gcc -v -c -m68040 -save-temps test.c
Reading specs from /home/john/H-i686-pc-cygwin/lib/gcc/m68k-rtems/3.4/specs
Configured with: /home/john/gnu-cvs/gcc-latest/configure -v --
prefix=/home/john/
H-i686-pc-cygwin --target=m68k-rtems --enable-languages=c,c++,java --enable-
thre
ads=rtems --with-newlib
Thread model: rtems
gcc version 3.4 20031125 (experimental)
Test Program
$ cat test.c
#ifdef __mc68000__
int is__mc68000__;
#endif
#ifdef __mc68020__
int is__mc68020__;
#endif
#ifdef __mc68030__
int is__mc68030__;
#endif
#ifdef __mc68040__
int __ismc68040__;
#endif
#ifdef __mc68060__
int is__mc68060__;
#endif
#ifdef mc68000
int ismc68000;
#endif
#ifdef mc68020
int ismc68020;
#endif
#ifdef mc68030
int ismc68030;
#endif
#ifdef mc68040
int ismc68040;
#endif
#ifdef mc68060
int ismc68060;
#endif
Results with m68k-rtems-gcc -save-temps -m68040, as expected
$ cat test.040
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
int is__mc68000__;
# 14 "test.c"
int __ismc68040__;
int ismc68000;
# 34 "test.c"
int ismc68040;
Results with m68k-rtems-gcc -save-temps -m68040 -msoft-float in error seems to
define other symbols
$ cat test.040.soft
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"
int is__mc68000__;
int is__mc68020__;
int is__mc68030__;
int __ismc68040__;
int ismc68000;
int ismc68020;
int ismc68030;
int ismc68040;
--
Summary: -msoft-float seems to corrupt builtin defines
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john at atrove dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-cygwin
GCC target triplet: m68k-unknown-rtems
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292