This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/823: gcc -U does not undef a macro
- To: rearnsha at arm dot com
- Subject: Re: other/823: gcc -U does not undef a macro
- From: Neil Booth <neilb at earthling dot net>
- Date: Fri, 17 Nov 2000 00:13:12 +0000
- Cc: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- References: <200011162325.eAGNPvX12030@buzzard.freeserve.co.uk>
Hi Richard,
It does actually undefine it, but it gets processed before -D :-(
This is a gcc.c specs issue; I don't think fixing it is entirely
trivial. We need gcc.c to pass all -D and -U options in the order
they appear, and not to group them like it currently does.
Neil.
Richard Earnshaw wrote:-
>
> >Number: 823
> >Category: other
> >Synopsis: preprocessor -U does not undef a macro
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: unassigned
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Thu Nov 16 15:36:00 PST 2000
> >Closed-Date:
> >Last-Modified:
> >Originator: Richard Earnshaw
> >Release: 2.97 20001114 (experimental)
> >Organization:
> ARM