c/545: -std=c89 defines macros it shouldn't
Joseph Myers
jsm28@cam.ac.uk
Mon Sep 18 02:06:00 GMT 2000
>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:
More information about the Gcc-bugs
mailing list