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 middle-end/77991] New: ICE on x32 in plus_constant, at explow.c:87


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

            Bug ID: 77991
           Summary: ICE on x32 in plus_constant, at explow.c:87
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kilobyte at angband dot pl
  Target Milestone: ---

Created attachment 39816
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39816&action=edit
reduced reproducer

The attached test case ICEs on x32 target in plus_constant, at explow.c:87,
when compiling with -O1 or higher.  No splat with -O0.

The test case comes from a new version of qemu, where this ICE triggers on a
number of files.  No other target seems to be affected, as qemu built
successfully on all architectures but x32.

Host arch doesn't seem to matter, only target: reproducible with -mx32 on amd64
too.

Reproduced on Debian packages of gcc 5.4.1-2, 6.2.0-6 and 20161006-1 trunk
snapshot.

Minimal invocation:
(on x32) gcc -O -c f.i
(on amd64) gcc -mx32 -O -c f.i

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