[Bug pch/39420] Using pre-compiled headers results in a bus error

2009-09-20 Thread rguenth at gcc dot gnu dot org


--- Comment #4 from rguenth at gcc dot gnu dot org  2009-09-20 11:25 ---
Invalid according to comment #2


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39420



[Bug pch/39420] Using pre-compiled headers results in a bus error

2009-03-10 Thread johnw at gnu dot org


--- Comment #1 from johnw at gnu dot org  2009-03-10 08:42 ---
Created an attachment (id=17435)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17435action=view)
The file resulting from using -save-temps

This code uses Boost extensively, although I don't know if that has any bearing
on the matter.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39420



[Bug pch/39420] Using pre-compiled headers results in a bus error

2009-03-10 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2009-03-10 11:24 ---
You need to make sure to include the pch only from the toplevel source. 
Otherwise
interesting things may happen.  A convenient way to do so is to include the
pch via the -include command-line option.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39420



[Bug pch/39420] Using pre-compiled headers results in a bus error

2009-03-10 Thread johnw at gnu dot org


--- Comment #3 from johnw at gnu dot org  2009-03-10 19:32 ---
Hmm... I have ensured that the #include chain in every source file results in
the given header appearing first.  That is, whatever a file includes, it will
include utils.h, which includes system.hh.  And so, it works with 4.2 just fine
(I checked using -H, to ensure the includes it actually does process are the
right ones).  So why would it start crashing with 4.3?

Also, -include is not a portable option.  I'll just reorganize my code.  Thanks
for the quick response!!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39420