This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37902] [4.3 Regression] in_system_header bug
- 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: 23 Oct 2008 12:40:26 -0000
- Subject: [Bug middle-end/37902] [4.3 Regression] in_system_header bug
- References: <bug-37902-87@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-10-23 12:40 -------
The regression has been introduced by PR32256, before that in_system_header
flag wasn't saved/restored in push_cfun/pop_cfun.
The issue seems to be that allocate_struct_function call in store_parm_decls
doesn't seem to have a corresponding set_cfun (NULL); call, so when push_cfun
during gimplification is called, it doesn't save in_system_header (as cfun is
already non-NULL) and more importantly, pop_cfun at the end of gimplification
pops to the same cfun, which means in_system_header remains 1 when leaving the
gimplifier and is then used by subsequent parsing of bar function.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37902