[Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g

2005-01-06 Thread dberlin at gcc dot gnu dot org

--- Additional Comments From dberlin at gcc dot gnu dot org  2005-01-06 
14:52 ---
Fixed

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g

2005-01-06 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-06 
14:50 ---
Subject: Bug 19267

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-01-06 14:49:36

Modified files:
gcc: ChangeLog dwarf2out.c gimple-low.c tree.h 

Log message:
2005-01-05  Daniel Berlin  <[EMAIL PROTECTED]>

Fix PR middle-end/19286
Fix PR debug/19267
* dwarf2out.c (gen_subprogram_die): If we've already tried to
output this subprogram, simply ignore this attempt to do it again.
(add_abstract_origin_attribute): Don't abort trying to add the abstract
origin attribute if it's not possible.
(gen_block_die): Don't ignore subblocks of "unused" blocks.
(decls_for_scope): Ditto.
* gimple-low.c (mark_blocks_with_used_subblocks): Remove.
(mark_used_blocks): Don't call mark_blocks_with_used_subblocks.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7045&r2=2.7046
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.565&r2=1.566
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.15&r2=2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.675&r2=1.676



-- 


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


[Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g

2005-01-05 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-05 
18:26 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Keywords||ice-on-valid-code
   Last reconfirmed|-00-00 00:00:00 |2005-01-05 18:26:06
   date||
   Target Milestone|--- |4.0.0


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


[Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g

2005-01-05 Thread dberlin at dberlin dot org

--- Additional Comments From dberlin at gcc dot gnu dot org  2005-01-05 
15:59 ---
Subject: Re:  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.



-- 


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