This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/36649] [4.3/4.4 Regression] -H option doesn't work as expected
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2008 20:46:18 -0000
- Subject: [Bug preprocessor/36649] [4.3/4.4 Regression] -H option doesn't work as expected
- References: <bug-36649-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2008-07-29 20:46 -------
This is caused by http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00396.html
patch, in particular changing line_table from a structure into a pointer into
GC allocated structure. Although push_command_line_include sets
line_table->trace_includes to cpp_opts->print_include_names, after that when
the *.gch file is read line_table will point to a different structure (the one
read
from the *.gch file) and thus it will use the -H vs. non-H setting from *.gch
compilation instead of the current compilation.
I don't know why line_table was changed into a pointer, but if that's needed,
I guess we want to save the line_table->trace_includes setting before reading
pch (or in push_command_line_include) and set it in the new structure after
PCH is read.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36649