This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/14137] [pch] ICE in cgraph_finalize_compilation_unit, at cgraphunit.c:407
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2004 17:23:10 -0000
- Subject: [Bug pch/14137] [pch] ICE in cgraph_finalize_compilation_unit, at cgraphunit.c:407
- References: <20040213062200.14137.mattyt-bugzilla@tpg.com.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mark at codesourcery dot com 2004-03-30 17:23 -------
Subject: Re: [pch] ICE in cgraph_finalize_compilation_unit,
at cgraphunit.c:407
steven at gcc dot gnu dot org wrote:
>------- Additional Comments From steven at gcc dot gnu dot org 2004-03-27 10:11 -------
>I think this idea is unsafe and don't want to implement it.
>
>
Since silent miscompilation and/or inexplicable crashses can occur from
using a wrong PCH, we should err on the side of caution. If the flags
used to build the PCH and to compile the main translation unit are not
known to be compatible, we should reject the PCH.
Sometimes, that will mean that we do not use a PCH when we could, but
that's hardly as confusing to users as doing something unpredictable
because our data structures get confused.
This conservative approach is also what is used by other PCH
implemenations, so it will match user expectations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14137