cpplib bunch of minor fixes

Dave Brolley brolley@cygnus.com
Thu Feb 4 11:47:00 GMT 1999


OK.....I was able to build this with in a clean build directory. I didn't see any other problems,
so I installed it.

Dave

Zack Weinberg wrote:

> This patch supersedes whatever outstanding cpplib patches I've got
> left.  It removes the redundant syntax checking from the wrapper
> functions for do_define/do_assert, replaces do_line with a much
> simpler implementation that has no static data, tunes read_and_prescan
> a bit, adds support for the -std switch (this fixes a bunch of
> regressions vs. cccp) and does a few other minor optimizations.
>
> I would like to get this patch commited soon so I can send something
> more substantial along.
>
> zw
>
> 1999-01-31 23:47 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
>
>         * cpplib.c (initialize_char_syntax): Move to cppinit.c.
>         (cpp_define): Remove redundant syntax checks.
>         (make_assertion): Rename cpp_assert, remove redundant syntax
>         checks, export.
>         (cpp_options_init): Don't init things to zero twice.
>         (cpp_expand_to_buffer): Use memcpy, not a char-by-char loop.
>         (do_include): Kill excessively verbose import warning that
>         snuck back in in the gcc2 merge.
>         (convert_string): Removed.
>         (do_line): Rewrite with simple last-name-used cache instead of
>         private hashtable.
>         (cpp_start_read): Call initialize_char_syntax here, not...
>         (cpp_reader_init): ...here.
>         (cpp_handle_options): Support the -std switch.
>
>         * cpplib.c (cpp_buffer): Add last_nominal_fname member.
>         (cpp_options): Add c9x flag.
>         Declare all the is_* tables and trigraph table here, as const.
>         Prototype cpp_assert and initialize_char_syntax.
>
>         * cppinit.c: New file.
>         * cppfiles.c (read_and_prescan): Optimize.
>
>         * Makefile.in (LIBCPP_OBJS): Add cppinit.o.





More information about the Gcc-patches mailing list