This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bootstrap/3451: boostrap aborted



>Number:         3451
>Category:       bootstrap
>Synopsis:       redefinition of macro
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 28 00:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.0
>Organization:
Mosaic SOFTWARE AG
>Environment:
System: AIX dagobert 3 4 000E983CA100

	
host: powerpc-ibm-aix4.3.2.0
build: powerpc-ibm-aix4.3.2.0
target: powerpc-ibm-aix4.3.2.0
configured with: ../gcc-3.0/configure --enable-threads=dce
>Description:
compiler used was xlc 3.6
redefinition of macro previously defined in system header

xlc -c  -DIN_GCC    -g    -DHAVE_CONFIG_H    -I. -I. -I../../gcc-3.0/gcc -I../../gcc-3.0/gcc/. -I../../gcc-3.0/gcc/config -I../../gcc-3.0/gcc/../include ../../gcc-3.0/gcc/c-pragma.c -o c-pragma.o
"../../gcc-3.0/gcc/c-pragma.c", line 35.9: 1506-213 (S) Macro name BAD cannot be redefined.
"../../gcc-3.0/gcc/c-pragma.c", line 35.9: 1506-358 (I) "BAD" is defined on line 90 of /usr/include/sys/param.h.


>How-To-Repeat:
$ env CC=xlc ../gcc-3.0/configure --enable-threads=dce
$ gmake bootstrap-lean
>Fix:
rename BAD to something else i.e.
#define GCC_BAD(msgid) do { warning (msgid); return; } while (0)
instead of
#define BAD(msgid) do { warning (msgid); return; } while (0)


>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]