sparc-sun-solaris2.8 headers: fixinc, cpplib
Gerald Pfeifer
pfeifer@dbai.tuwien.ac.at
Mon Dec 18 11:03:00 GMT 2000
On Mon, 18 Dec 2000, Neil Booth wrote:
> And this should fix the syshdr issue (please let me know!). It's not
> pretty, but it works.
Yes, that fixes the problem for all those tests I did (including my
original test case).
> * c-lex.c: s/change_file/file_change.
> * cpplib.h: Similarly.
> * cppmain.c: Similarly.
> * fix-header.c: Similarly.
> * cppfiles.c (stack_include_file): Pass the buffer location and
> size to cpp_push_buffer. Generate the file_change callback,
> so that sysp is already set.
> * cpphash.h: Add _cpp_do_file_change.
> * cpplib.c (do_line): Set buffer->sysp directly. Generate the
> file_change callback after setting sysp.
> (_cpp_do_file_change): Handle FC_ENTER and the FC_RENAME exception
> here.
> (cpp_push_buffer): Don't generate a callback. Clear sysp.
> (cpp_pop_buffer): Clean up logic.
I noticed that you haven't checked this in (yet)?
Thanks for the quick fix!
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
More information about the Gcc-patches
mailing list