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]

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


 > 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

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