This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: preprocessor option to dump "used" macros
- From: Tom Tromey <tromey at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Apr 2008 09:12:27 -0600
- Subject: Re: RFC: preprocessor option to dump "used" macros
- References: <Pine.LNX.4.64.0804011524420.31882@digraph.polyomino.org.uk>
- Reply-to: tromey at redhat dot com
>>>>> "Joseph" == Joseph S Myers <joseph@codesourcery.com> writes:
Joseph> The peculiarities of the meaning of "used" come from a customer
Joseph> specification. In particular, undefined names tested in #ifdef,
Joseph> #ifndef or a defined() preprocessor expression have #undef dumped for
Joseph> them, but identifiers in text that would have been expanded if they
Joseph> were defined as macros (but were not expanded because they weren't
Joseph> defined as macros) are not noted in that way.
Makes sense to me. Maybe this paragraph could go into the source
somewhere.
Joseph> Do people think this particular specification is of use for FSF GCC
It would be fine by me.
Tom