On 07/13/2011 10:06 AM, Jakub Jelinek wrote:
--- gcc/testsuite/lib/dg-pch.exp.jj     2011-01-03 18:58:03.000000000 +0100
+++ gcc/testsuite/lib/dg-pch.exp        2011-07-12 23:13:50.943670171 +0200
-       dg-test -keep-output "./$bname$suffix" "$otherflags $flags" ""
+       dg-test -keep-output "./$bname$suffix" "-gno-record-gcc-switches $otherflags 
$flags" ""

It is only necessary if somebody wants to make -grecord-gcc-switches
the default (for bootstrap/regtest I've tweaked common.opt to do that
to test it better).  PCH is a big mess and screws debuginfo in many ways,
in this case it was just small differences in DW_AT_producer, but
we have e.g. ICEs with PCH and -feliminate-dwarf-dups etc.

Why would PCH change DW_AT_producer? Because we're restoring single_comp_unit_die from the PCH? Then perhaps we should set DW_AT_producer in output_comp_unit rather than gen_compile_unit_die.

Jason

Reply via email to