public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13292] New: -msoft-float seems to corrupt builtin defines
@ 2003-12-04  1:47 john at atrove dot com
  2003-12-04  8:18 ` [Bug target/13292] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: john at atrove dot com @ 2003-12-04  1:47 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-07-01 20:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-04  1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
2003-12-04  8:18 ` [Bug target/13292] " pinskia at gcc dot gnu dot org
2004-01-18 18:43 ` dhazeghi at yahoo dot com
2004-06-12  2:33 ` bernie at develer dot com
2004-06-12  2:36 ` giovannibajo at libero dot it
2004-06-12  2:56 ` bernie at develer dot com
2004-06-12 11:49 ` [Bug target/13292] [3.4/3.5 Regression] " giovannibajo at libero dot it
2004-06-16 22:11 ` cvs-commit at gcc dot gnu dot org
2004-06-16 22:22 ` bernie at develer dot com
2004-06-16 22:22 ` cvs-commit at gcc dot gnu dot org
2004-07-01 20:57 ` andreas dot meier_ at gmx dot de
2004-07-01 20:58 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).