cpp -traditional, *Initialization*:1: warning: "__mips" redefined

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Sat Aug 26 06:39:00 GMT 2000


Zack,

	All of the -traditional tests are failing on mips-sgi-irix6.2.
See: http://gcc.gnu.org/ml/gcc-testresults/2000-08/msg00214.html
that's recent, but I believe this problem has been around for a while,
perhaps as long as the separate traditional preprocessor was added.

I get failures for gcc.dg/ext-glob.c, gcc.dg/cpp/hash2.c,
gcc.dg/cpp/tr-direct.c, gcc.dg/cpp/tr-paste.c and gcc.dg/cpp/tr-str.c.

The reason they fail is that they get all the following warning:

 > *Initialization*:1: warning: "__mips" redefined

The iris6.h file and several others in the config/mips directory do
something like the following: "%{!mips*: -U__mips -D__mips=3}"
and I think that is the trigger.  I can reproduce the error on any
unix platform by doing the following on any source file:

 > % gcc -U__unix -D__unix=3 -traditional -c f.c
 > *Initialization*:1: warning: "__unix" redefined

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


More information about the Gcc-bugs mailing list