[Bug tree-optimization/67349] [5 regression] ICE on optimization

trippels at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 25 07:37:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67349

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|h8300                       |
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-25
                 CC|                            |trippels at gcc dot gnu.org
          Component|target                      |tree-optimization
            Summary|ICE on optimization         |[5 regression] ICE on
                   |                            |optimization
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Trunk and gcc-4.9 are fine.

trippels@gcc2-power8 ~ % cat syn.i
struct list_head
{
  struct list_head *prev;
};
extern void __wait_rcu_gp (void*);
const int a = sizeof 0;
static inline __attribute__ ((always_inline no_instrument_function)) void
rcu_barrier_sched (void)
{
  struct list_head b[a];
  __wait_rcu_gp (b);
}

static inline __attribute__ ((always_inline no_instrument_function)) void
rcu_barrier (void)
{
  rcu_barrier_sched ();
}

struct
{
  void *wait;
} c[] = { rcu_barrier, rcu_barrier_sched };

trippels@gcc2-power8 ~ % /home/trippels/gcc_5/usr/local/bin/gcc -c -O2 syn.i
syn.i: In function ‘rcu_barrier_sched’:
syn.i:8:1: internal compiler error: Segmentation fault
 rcu_barrier_sched (void)
 ^
0x107e9053 crash_signal
        ../../gcc/gcc/toplev.c:383
0x10937a64 tree_check
        ../../gcc/gcc/tree.h:2850
0x10937a64 fold_builtin_alloca_with_align
        ../../gcc/gcc/tree-ssa-ccp.c:2067
0x10937a64 ccp_fold_stmt
        ../../gcc/gcc/tree-ssa-ccp.c:2172
0x109d85a3
substitute_and_fold_dom_walker::before_dom_children(basic_block_def*)
        ../../gcc/gcc/tree-ssa-propagate.c:1177
0x10dd228b dom_walker::walk(basic_block_def*)
        ../../gcc/gcc/domwalk.c:188
0x109d7993 substitute_and_fold(tree_node* (*)(tree_node*), bool
(*)(gimple_stmt_iterator*), bool)
        ../../gcc/gcc/tree-ssa-propagate.c:1272
0x1092f0eb ccp_finalize
        ../../gcc/gcc/tree-ssa-ccp.c:941
0x1092f0eb do_ssa_ccp
        ../../gcc/gcc/tree-ssa-ccp.c:2382
0x1092f0eb execute
        ../../gcc/gcc/tree-ssa-ccp.c:2414
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


More information about the Gcc-bugs mailing list