This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: remove predefinitions from cccp/cpplib
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: remove predefinitions from cccp/cpplib
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Wed, 31 Mar 1999 16:55:40 -0500
- CC: egcs-patches at egcs dot cygnus dot com, gavin at cygnus dot com
- Organization: Cygnus Solutions Canada Ltd
- References: <199903312123.QAA27509@blastula.phys.columbia.edu>
Pending the results of your testing, this looks OK to me.
Dave
Zack Weinberg wrote:
> Now that we have a proper user-visible `cpp' driver, it is unnecessary
> for cccp and cpplib to handle CPP_PREDEFINES. They will never be
> invoked without -undef anyway.
>
> I have tested this to compile and not cause obvious breakage. More
> thorough testing is in progress.
>
> zw
>
> 1999-03-31 16:13 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
>
> * cppinit.c (install_predefs): Delete function.
> (cpp_start_read): Don't call install_predefs.
> (cpp_handle_option): Remove case 'u' and all refs to
> opts->inhibit_predefs.
> (print_help): Don't mention -undef.
> (initialize_builtins): Define __HAVE_BUILTIN_SETJMP__, to
> match cccp.
> * cpplib.h (struct cpp_options): Remove inhibit_predefs
> member.
>
> * cccp.c (predefs): Delete variable.
> (main): Remove case 'u' in argument parse loop,
> 'inhibit_predefs' variable, and the code block that would
> process CPP_PREDEFINES.
> (initialize_builtins): Don't define __OBJC__, the driver will
> do that.
>
> * gcc.c (default_compilers): Remove -undef from all specs that
> invoke a C preprocessor.
> * ch/lang-specs.h: Likewise.
> * cp/lang-specs.h: Likewise.
> * f/lang-specs.h: Likewise.
> * objc/lang-specs.h: Likewise.