This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/61360] [5 Regression] ICE: in lra_update_insn_recog_data, at lra.c:1363 with -mtune=bdver4


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

--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to GGanesh from comment #9)
> Patch that fixes this issue has been submitted 
> https://gcc.gnu.org/ml/gcc-patches/2014-08/msg02179.html
> 
> The idea is to prohibit changes to the "enabled" attribute during lra and
> reload pass.

Here's a small testcase that still ICE's even with your patch applied:

 % cat utils.i
int a, b, c, e, f, g, h;
long *d;
__attribute__((cold)) void fn1() {
  int i = g | 1;
  for (; g; h++) {
    for (; a; e++) d[0] = c;
    if (0.002 * i) break;
    for (; b; f++) d[h] = 0;
  }
}

 % gcc -march=amdfam10 -O2 -c utils.i
utils.i: In function âfn1â:
utils.i:10:1: internal compiler error: in lra_update_insn_recog_data, at
lra.c:1223
 }
 ^
0x8ddb6c lra_update_insn_recog_data(rtx_insn*)
        ../../gcc/gcc/lra.c:1222
0x8f4595 eliminate_regs_in_insn
        ../../gcc/gcc/lra-eliminations.c:1077
0x8f4595 process_insn_for_elimination
        ../../gcc/gcc/lra-eliminations.c:1344
0x8f4595 lra_eliminate(bool, bool)
        ../../gcc/gcc/lra-eliminations.c:1408
0x8df81e lra(_IO_FILE*)
        ../../gcc/gcc/lra.c:2278
0x89ddf6 do_reload
        ../../gcc/gcc/ira.c:5311
0x89ddf6 execute
        ../../gcc/gcc/ira.c:5470
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]