* cpplib.h: Merge struct cpp_options into struct cpp_reader.
Reorder struct cpp_options and struct cpp_reader for better packing. Replace CPP_OPTIONS macro with CPP_OPTION which takes two args. Change all 'char' flags to 'unsigned char'. Move show_column flag into struct cpp_options. Don't prototype cpp_options_init. * cpphash.h, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c: Replace CPP_OPTIONS (pfile)->whatever with CPP_OPTION (pfile, whatever), and likewise for opts = CPP_OPTIONS (pfile); ... opts->whatever; * cppinit.c (merge_include_chains): Take a cpp_reader *. Extract CPP_OPTION (pfile, pending) and work with that directly. (cpp_options_init): Delete. (cpp_reader_init): Turn on on-by-default options here. Allocate the pending structure here. (cl_options, enum opt_code): Define these from the same table, kept in a large macro. Add -fshow-column and -fno-show-column options. * cpperror.c (v_message): If show_column is off, don't print the column number. * cppmain.c: Update for new interface. * fix-header.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32850 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 34 additions, 4 deletionsgcc/ChangeLog
- gcc/cpperror.c 18 additions, 17 deletionsgcc/cpperror.c
- gcc/cppexp.c 3 additions, 3 deletionsgcc/cppexp.c
- gcc/cppfiles.c 14 additions, 14 deletionsgcc/cppfiles.c
- gcc/cpphash.c 15 additions, 15 deletionsgcc/cpphash.c
- gcc/cpphash.h 4 additions, 4 deletionsgcc/cpphash.h
- gcc/cppinit.c 354 additions, 332 deletionsgcc/cppinit.c
- gcc/cpplex.c 28 additions, 29 deletionsgcc/cpplex.c
- gcc/cpplib.c 22 additions, 22 deletionsgcc/cpplib.c
- gcc/cpplib.h 203 additions, 216 deletionsgcc/cpplib.h
- gcc/cppmain.c 40 additions, 34 deletionsgcc/cppmain.c
- gcc/fix-header.c 3 additions, 6 deletionsgcc/fix-header.c
Loading
Please register or sign in to comment