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

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
Breakpoint 1, simplify_plus_minus (code=code@entry=PLUS,
mode=mode@entry=SImode, op0=op0@entry=0x7ffff6d4b558,
op1=op1@entry=0x7ffff6d483a8) at /src/gcc-virgin/gcc/simplify-rtx.c:3967
(gdb) p debug_rtx(op0)
(plus:SI (reg:SI 0 ax [96])
    (const_int 1 [0x1]))
$1 = void
(gdb) p debug_rtx(op1)
(symbol_ref:SI ("a") <var_decl 0x7ffff6c2f900 a>)
$2 = void

Believe it or not, this PR is due to fixing the accounting of n_constants. 
Previously seeing n_constants > 1 (which is wrong, there is only one int
constant above) set "canonicalized".  Now, nothing sets "canonicalized" and
simplify_plus_minus exits with NULL.

Reply via email to