This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/545: -std=c89 defines macros it shouldn't
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/545: -std=c89 defines macros it shouldn't
- From: Joseph Myers <jsm28 at cam dot ac dot uk>
- Date: Mon, 18 Sep 2000 09:01:52 +0000
- Cc: jsm28 at cam dot ac dot uk
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, Joseph Myers <jsm28@cam.ac.uk>
>Number: 545
>Category: c
>Synopsis: -std=c89 defines macros it shouldn't
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 18 02:06:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 2.96
>Organization:
none
>Environment:
System: Linux decomino 2.2.17 #1 Mon Sep 4 20:22:16 UTC 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
>Description:
gcc -std=c89 wrongly predefines the macro `i386'. gcc -ansi correctly
does not define it. gcc -std=c99 has the same bug. -std=c89 should
act exactly the same as -ansi.
I previously reported this to gcc-bugs in April; and am now reporting
it again to get it in the GNATS database.
http://gcc.gnu.org/ml/gcc-bugs/2000-04/msg00433.html
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: