This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cpp -traditional, *Initialization*:1: warning: "__mips" redefined
- To: zack at wolery dot cumb dot org
- Subject: Re: cpp -traditional, *Initialization*:1: warning: "__mips" redefined
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 27 Aug 2000 08:35:03 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> From: Zack Weinberg <zack@wolery.cumb.org>
>
> On Sat, Aug 26, 2000 at 09:39:00AM -0400, Kaveh R. Ghazi wrote:
> > 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.
> ...
> > > % gcc -U__unix -D__unix=3 -traditional -c f.c
> > > *Initialization*:1: warning: "__unix" redefined
>
> Looks like the traditional preprocessor does all the -D switches and
> then goes back and does all the -U switches. We want them
> interleaved.
>
> Please try this patch.
>
> zw
>
> * tradcpp.c (main): Process -D and -U at the same time.
Yes that works. Thanks.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions