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]

egcs-19990608: AIX 432 compile problem


 


Sorry, I am unable to deliver your mail note to egcs-bugs@cygnus.com,
that list name is no longer used.  Please try resending your mail
note to the new list name:  egcs-bugs@egcs.cygnus.com.

If you have any questions about this, send mail to sourcemaster@cygnus.com.
This is a machine-generated message.

Here is a copy of the note you sent.
-----------------------------------------------------------------------------

In the file gcc/cp/tree.c there are tests to compile code if __STDC__ is
not defined.

By default cc (xlC 3.6.4) used -qlanglvl=extended, which does not turn on
__STDC__, however it does compile contents of VPROTO(...) declarations. This
causes xlC to bomb out with error messages like:

   cc -c  -DIN_GCC    -g     -I. -I.. -I../../../gcc/cp -I../../../gcc/cp/.. -I../../../gcc/cp/../config
      -I../../../gcc/cp/../../include ../../../gcc/cp/tree.c
   "../../../gcc/cp/tree.c", line 2155.18: 1506-334 (S) Identifier code has already been defined on line 2152
      of    "../../../gcc/cp/tree.c".
   "../../../gcc/cp/tree.c", line 2193.18: 1506-334 (S) Identifier code has already been defined on line 2190
      of "../../../gcc/cp/tree.c".
   "../../../gcc/cp/tree.c", line 2194.8: 1506-334 (S) Identifier tt has already been defined on line 2190
      of "../../../gcc/cp/tree.c".
   gmake: *** [tree.o] Error 1

If -qlanglvl=ansi is set, then this code compiles. I'm unsure what has changed
or how to fix this.

Suggestions anyone?





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