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

            Bug ID: 64307
           Summary: ICE: verify_gimple failed: invalid argument to gimple
                    call with -fPIC -fipa-icf
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

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

Compiler output:
$ gcc -fPIC -fipa-icf testcase.c 
testcase.c: In function 'real_part':
testcase.c:9:1: error: invalid argument to gimple call
 }
 ^
a
# .MEM_2 = VDEF <.MEM_1(D)>
retval.0_3 = real_part_2.localalias.0 (a); [tail call]
testcase.c:9:1: internal compiler error: verify_gimple failed
0xc55cd0 verify_gimple_in_cfg(function*, bool)
        /mnt/svn/gcc-trunk/gcc/tree-cfg.c:5050
0xb1c20f execute_function_todo
        /mnt/svn/gcc-trunk/gcc/passes.c:1940
0xb1c9cd do_per_function
        /mnt/svn/gcc-trunk/gcc/passes.c:1639
0xb1cae3 execute_todo
        /mnt/svn/gcc-trunk/gcc/passes.c:1997
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.

Tested revisions:
r218707 - ICE

Reply via email to