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
* [Bug target/13292] -msoft-float seems to corrupt builtin defines
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 ` pinskia at gcc dot gnu dot org
2004-01-18 18:43 ` dhazeghi at yahoo dot com
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-04 8:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-04 08:18 -------
Most likely caused by the reorg of m68k.h for the new way of doing builtin defines.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] -msoft-float seems to corrupt builtin defines
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
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: dhazeghi at yahoo dot com @ 2004-01-18 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dhazeghi at yahoo dot com 2004-01-18 18:43 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-18 18:43:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] -msoft-float seems to corrupt builtin defines
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
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bernie at develer dot com @ 2004-06-12 2:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-06-12 02:33 -------
Created an attachment (id=6522)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6522&action=view)
proposed patch
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |bernie at develer dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (2 preceding siblings ...)
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
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-06-12 2:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2004-06-12 02:36 -------
Is this a regression?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (3 preceding siblings ...)
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
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: bernie at develer dot com @ 2004-06-12 2:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-06-12 02:56 -------
Predefines used to work consistently in 3.3.3 with respect
to -msoft-float, so technically it's a regression, although
we had different rules to map -m680[02346]0 to predefines.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (4 preceding siblings ...)
2004-06-12 2:56 ` bernie at develer dot com
@ 2004-06-12 11:49 ` giovannibajo at libero dot it
2004-06-16 22:11 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2004-06-12 11:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|-msoft-float seems to |[3.4/3.5 Regression] -msoft-
|corrupt builtin defines |float seems to corrupt
| |builtin defines
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (5 preceding siblings ...)
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 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-16 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-16 22:11 -------
Subject: Bug 13292
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bernie@gcc.gnu.org 2004-06-16 22:10:50
Modified files:
gcc/config/m68k: m68k.h m68k.md
gcc : ChangeLog
Log message:
PR target/13292
* config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
on -msoft-float.
(TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
68040 and soft-float.
* config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
in the TARGET_68040_ONLY case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68k/m68k.h.diff?cvsroot=gcc&r1=1.114&r2=1.115
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68k/m68k.md.diff?cvsroot=gcc&r1=1.77&r2=1.78
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4002&r2=2.4003
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (6 preceding siblings ...)
2004-06-16 22:11 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-16 22:22 ` cvs-commit at gcc dot gnu dot org
2004-06-16 22:22 ` bernie at develer dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-16 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-16 22:21 -------
Subject: Bug 13292
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: bernie@gcc.gnu.org 2004-06-16 22:21:52
Modified files:
gcc : ChangeLog
gcc/config/m68k: m68k.md m68k.h
Log message:
Backport from mainline:
2004-06-16 Bernardo Innocenti <bernie@develer.com>
PR target/13292
* config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
on -msoft-float.
(TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
68040 and soft-float.
* config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
in the TARGET_68040_ONLY case.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.509&r2=2.2326.2.510
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68k/m68k.md.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.71.4.2&r2=1.71.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/m68k/m68k.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.103.4.3&r2=1.103.4.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (7 preceding siblings ...)
2004-06-16 22:22 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-16 22:22 ` bernie at develer dot com
2004-07-01 20:57 ` andreas dot meier_ at gmx dot de
2004-07-01 20:58 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: bernie at develer dot com @ 2004-06-16 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-06-16 22:22 -------
Patch applied on mainline and 3_4-branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|3.4.0 3.5.0 |3.4.0
Known to work|3.3.3 |3.3.3 3.4.1 3.5.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (8 preceding siblings ...)
2004-06-16 22:22 ` bernie at develer dot com
@ 2004-07-01 20:57 ` andreas dot meier_ at gmx dot de
2004-07-01 20:58 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: andreas dot meier_ at gmx dot de @ 2004-07-01 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From andreas dot meier_ at gmx dot de 2004-07-01 20:57 -------
Please adjust the target milestone to 3.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13292
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug target/13292] [3.4/3.5 Regression] -msoft-float seems to corrupt builtin defines
2003-12-04 1:47 [Bug c/13292] New: -msoft-float seems to corrupt builtin defines john at atrove dot com
` (9 preceding siblings ...)
2004-07-01 20:57 ` andreas dot meier_ at gmx dot de
@ 2004-07-01 20:58 ` pinskia at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-01 20:58 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.1
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 ` cvs-commit at gcc dot gnu dot org
2004-06-16 22:22 ` bernie at develer dot com
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).