Re: [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
On Wed, 5 Jan 2005, ghazi at gcc dot gnu dot org wrote: When running the testsuite with -fpic/-fPIC, I get an additional failure in the testsuite with mainline: FAIL: gcc.c-torture/execute/921215-1.c compilation, -O3 -g The regression appeared sometime in the last day or so between these postings: http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00135.html http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00179.html The compilation dies like this: 921215-1.c:22: internal compiler error: in gen_subprogram_die, at dwarf2out.c:11207 in the source we have: 11207 gcc_assert (errorcount); The problem is that errorcount is zero, so the gcc_assert() dies. I'm about to submit a patch that will fix this.
[Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
When running the testsuite with -fpic/-fPIC, I get an additional failure in the testsuite with mainline: FAIL: gcc.c-torture/execute/921215-1.c compilation, -O3 -g The regression appeared sometime in the last day or so between these postings: http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00135.html http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00179.html The compilation dies like this: 921215-1.c:22: internal compiler error: in gen_subprogram_die, at dwarf2out.c:11207 in the source we have: 11207 gcc_assert (errorcount); The problem is that errorcount is zero, so the gcc_assert() dies. To reproduce, compile the following with: cc1 -fpreprocessed 921215-1.i -quiet -dumpbase 921215-1.c -mtune=pentiumpro - auxbase 921215-1 -g -O3 -version -fpic -o 921215-1.s # 1 "921215-1.c" # 1 "/home/ghazi/tmpdisk/gcc-testing/40/egcc-CVS20050104/gcc/testsuite/gcc.c- torture/execute//" # 1 "" # 1 "" # 1 "921215-1.c" main() { void p(void ((*f) (void ( { void r() { foo (); } f(r); } void q(void ((*f)())) { f(); } p(q); exit(0); } foo(){} -- Summary: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19267