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/82597] New: ICE at -O2 and -O3 x86_64-linux-gnu in the 32-bit mode: in extract_constrain_insn, at recog.c:2207


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

            Bug ID: 82597
           Summary: ICE at -O2 and -O3 x86_64-linux-gnu in the 32-bit
                    mode: in extract_constrain_insn, at recog.c:2207
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: su at cs dot ucdavis.edu
  Target Milestone: ---

$ gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto
--prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap
Thread model: posix
gcc version 8.0.0 20171018 (experimental) [trunk revision 253840] (GCC) 
$ 
$ gcctk -m32 -Os -c -w small.c
$ 
$ gcctk -m32 -O2 -c -w small.c
small.c: In function ‘l’:
small.c:7:1: error: insn does not satisfy its constraints:
 void l () { j (); }
 ^~~~
(insn 56 8 10 2 (parallel [
            (set (reg:CCZ 17 flags)
                (compare:CCZ (plus:SI (reg:SI 2 cx [orig:88 _3 ] [88])
                        (const_int 1 [0x1]))
                    (const_int 0 [0])))
            (set (reg/v:SI 0 ax [orig:91 k ] [91])
                (plus:SI (reg:SI 2 cx [orig:88 _3 ] [88])
                    (const_int 1 [0x1])))
        ]) "small.c":6 225 {*addsi_2}
     (nil))
during RTL pass: pro_and_epilogue
small.c:7:1: internal compiler error: in extract_constrain_insn, at
recog.c:2207
0x5fbe80 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc-source-trunk/gcc/rtl-error.c:108
0x5fbea6 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc-source-trunk/gcc/rtl-error.c:119
0xbc9ead extract_constrain_insn(rtx_insn*)
        ../../gcc-source-trunk/gcc/recog.c:2207
0xbd33b6 copyprop_hardreg_forward_1
        ../../gcc-source-trunk/gcc/regcprop.c:794
0xbd478e copyprop_hardreg_forward_bb_without_debug_insn(basic_block_def*)
        ../../gcc-source-trunk/gcc/regcprop.c:1173
0xc39a03 prepare_shrink_wrap
        ../../gcc-source-trunk/gcc/shrink-wrap.c:443
0xc39a03 try_shrink_wrapping(edge_def**, rtx_insn*)
        ../../gcc-source-trunk/gcc/shrink-wrap.c:667
0x983fbc thread_prologue_and_epilogue_insns()
        ../../gcc-source-trunk/gcc/function.c:6003
0x9847f2 rest_of_handle_thread_prologue_and_epilogue
        ../../gcc-source-trunk/gcc/function.c:6488
0x9847f2 execute
        ../../gcc-source-trunk/gcc/function.c:6530
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ 


-----------------------------------------------------------------


unsigned b, c, e, g;

int a (h, i) { return h > 0 && i ? : h + i; }
int d (int h, int i) { return h; }
long long f (long h, long long i) { return h + i; }
void j () { long k = f (d (1, e = c), g); a (k) && (b = 0); }
void l () { j (); }

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