remove predefinitions from cccp/cpplib
Dave Brolley
brolley@cygnus.com
Wed Mar 31 18:59:00 GMT 1999
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.
More information about the Gcc-patches
mailing list