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 rtl-optimization/78738] New: [7 Regression] ICE in extract_insn, at recog.c:2311


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

            Bug ID: 78738
           Summary: [7 Regression] ICE in extract_insn, at recog.c:2311
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

seen with r243219 on i686-linux-gnu, either omitting the -std=c99 or
-ffast-math works around it:

$ cat fractal_cache.i
double a;
long double roundl();
void b() {
  int c = roundl(a);
  b(c);
}

$ gcc -c -O2 -std=c99 -ffast-math fractal_cache.i 
fractal_cache.i: In function 'b':
fractal_cache.i:6:1: error: unrecognizable insn:
 }
 ^
(insn 10 9 11 2 (set (reg:DF 93)
        (plus:DF (reg:DF 92)
            (reg:DF 95))) "fractal_cache.i":4 -1
     (nil))
fractal_cache.i:6:1: internal compiler error: in extract_insn, at recog.c:2311
0x85c48cf _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../src/gcc/rtl-error.c:108
0x85c490c _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../src/gcc/rtl-error.c:116
0x8596890 extract_insn(rtx_insn*)
        ../../src/gcc/recog.c:2311
0x83eb32d instantiate_virtual_regs_in_insn
        ../../src/gcc/function.c:1589
0x83eb32d instantiate_virtual_regs
        ../../src/gcc/function.c:1956
0x83eb32d execute
        ../../src/gcc/function.c:2005
Please submit a full bug report,
with preprocessed source if appropriate.

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