This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug pch/14137] [pch] ICE in cgraph_finalize_compilation_unit, at cgraphunit.c:407


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]