This is the mail archive of the gcc-patches@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: remove predefinitions from cccp/cpplib


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.





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