[Bug middle-end/50741] [4.7 Regression] remove_unused_locals causes seg fault

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 17 07:21:00 GMT 2011


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-17
     Ever Confirmed|0                           |1

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-17 07:21:16 UTC ---
Confirmed.

(gdb) call debug_tree (t)
 <var_decl 0x101cde780 __FUNCTION__
    type <array_type 0x1424de5e8
        type <integer_type 0x14232cc78 char readonly sizes-gimplified
string-flag type_6 QI
            size <integer_cst 0x14230db80 constant 8>
            unit size <integer_cst 0x14230dba0 constant 1>
            align 8 symtab 0 alias set -1 canonical type 0x14232cc78 precision
8 min <integer_cst 0x14230db40 -128> max <integer_cst 0x14230dc20 127>
            pointer_to_this <pointer_type 0x14232cd20> reference_to_this
<reference_type 0x101bc67e0>>

while walking CONSTRUCTOR elements of DECL_INITIAL of

 <var_decl 0x101cde6e0 _rL_53
...
    addressable used static tree_1 tree_3 decl_5 decl_6 BLK file bug36.cc line
8706 col 80 size <integer_cst 0x14252d820 512> unit size <integer_cst
0x101a362e0 64>
    align 256 context <function_decl 0x101cd4200 CompressedMagic> attributes
<tree_list 0x1424f5780> initial <constructor 0x101a38360>>

thus a function-local static.



More information about the Gcc-bugs mailing list