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/79779] New: [5/6/7 Regression] ICE on an invalid code with -fsanitize=undefined


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

            Bug ID: 79779
           Summary: [5/6/7 Regression] ICE on an invalid code with
                    -fsanitize=undefined
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: polacek at redhat dot com, vmakarov at redhat dot com
  Target Milestone: ---
            Target: x86_64-linux-gnu

Starting from r217947, we ICE on:

$ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.target/m68k/pr45015.c
-o/dev/null -Og -fsanitize=undefined
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/m68k/pr45015.c: In
function ‘foo’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/m68k/pr45015.c:16:7:
error: ‘asm’ operand has impossible constraints
       __asm__ ("move.l %2, %0; move.l %3, %1" : "=d" (b), "=d" (c) : "g<>"
(y[j]), "d" (w));
       ^~~~~~~
/home/marxin/Programming/gcc/gcc/testsuite/gcc.target/m68k/pr45015.c:26:1:
internal compiler error: in lra_assign, at lra-assigns.c:1639
 }
 ^
0xd3281c lra_assign()
        ../../gcc/lra-assigns.c:1639
0xd2b9c9 lra(_IO_FILE*)
        ../../gcc/lra.c:2451
0xcd57ec do_reload
        ../../gcc/ira.c:5451
0xcd5c8c execute
        ../../gcc/ira.c:5635

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