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

            Bug ID: 66891
           Summary: ICE in expand_call, at calls.c:3407
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alasdairsinc at gmail dot com
  Target Milestone: ---

Created attachment 35992
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35992&action=edit
-save-temps for affected file from wine

I got the following ICE when compiling Wine with the latest trunk rev 225852.
-O0 compiles without error, O1 and O2 both give and ICE.

[ams@hal comctl32]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/ams/src/gcc/install/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,c++
--prefix=/home/ams/src/gcc/install
Thread model: posix
gcc version 6.0.0 20150715 (experimental) (GCC)

[ams@hal comctl32]$ gcc -m32 -oblah -g -O2 propsheet.i -c
../../../wine-git/dlls/comctl32/propsheet.c: In function ‘PROPSHEET_DoCommand’:
../../../wine-git/dlls/comctl32/propsheet.c:3126:10: internal compiler error:
in expand_call, at calls.c:3407
      if (PROPSHEET_Apply(hwnd, wID == IDOK ? 1: 0) == FALSE)
          ^
0x6e191f expand_call(tree_node*, rtx_def*, int)
        ../../gcc/gcc/calls.c:3406
0x7ebe04 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/gcc/expr.c:10362
0x7f9432 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, tree_node*)
        ../../gcc/gcc/expr.c:5398
0x7fba55 expand_assignment(tree_node*, tree_node*, bool)
        ../../gcc/gcc/expr.c:5170
0x6ef386 expand_call_stmt
        ../../gcc/gcc/cfgexpand.c:2350
0x6ef386 expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.c:3239
0x6ef386 expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.c:3400
0x6f11fc expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.c:5412
0x6f7b86 execute
        ../../gcc/gcc/cfgexpand.c:6023
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.

Reply via email to