This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cpp -traditional, *Initialization*:1: warning: "__mips" redefined
- To: zack at wolery dot cumb dot org
- Subject: cpp -traditional, *Initialization*:1: warning: "__mips" redefined
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sat, 26 Aug 2000 09:39:00 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org
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