http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54117
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|hppa2.0w-hp-hpux11.11 |stabs Host|hppa2.0w-hp-hpux11.11 | Build|hppa2.0w-hp-hpux11.11 | --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-08 11:49:32 UTC --- Thanks for analyzing this. I think reverting would be backward - we should clearly move forward. One way forward is to simply declare PCH unsupported with stabs. The issue can be reproduced on x86_64 with -gstabs btw: make check-gcc RUNTESTFLAGS="--target_board=unix/-gstabs pch.exp" Running /space/rguenther/src/svn/trunk/gcc/testsuite/gcc.dg/pch/pch.exp ... FAIL: gcc.dg/pch/decl-3.c -O0 -g assembly comparison FAIL: gcc.dg/pch/decl-3.c -O0 assembly comparison FAIL: gcc.dg/pch/decl-3.c -O1 assembly comparison FAIL: gcc.dg/pch/decl-3.c -O2 assembly comparison FAIL: gcc.dg/pch/decl-3.c -O3 -fomit-frame-pointer assembly comparison FAIL: gcc.dg/pch/decl-3.c -O3 -g assembly comparison FAIL: gcc.dg/pch/decl-3.c -Os assembly comparison FAIL: gcc.dg/pch/decl-4.c -O0 -g assembly comparison FAIL: gcc.dg/pch/decl-4.c -O0 assembly comparison ... Another hack would be to s/asm_out_file/dbx_out_file/ in dbxout.c and switch it to a temporary file during PCH generation, in the handle_pch hook then read its contents and store it into the PCH.