Bug 97243 - [11 Regression] ICE in compute_parm_map at gcc/ipa-modref.c:1368 since r11-3478-gada353b87909fd6c
Summary: [11 Regression] ICE in compute_parm_map at gcc/ipa-modref.c:1368 since r11-34...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ipa (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: 11.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2020-09-29 13:49 UTC by Martin Liška
Modified: 2020-10-01 13:45 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2020-09-29 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2020-09-29 13:49:10 UTC
The following fails:

$ cat fp.c
float fma_test1(float a, float b, float c) {
  float x = a * b + c;
  return x;
}
float fma_test2(float a, float b, float c) {
  float x = a * b + c;
  return x;
}

$ gcc fp.c -c -fipa-modref -fipa-icf
during IPA pass: modref
fp.c:8:1: internal compiler error: Segmentation fault
    8 | }
      | ^
0xda1cef crash_signal
	/home/marxin/Programming/gcc/gcc/toplev.c:329
0x7ffff788652f ???
	/usr/src/debug/glibc-2.31-6.3.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xb97b0c compute_parm_map
	/home/marxin/Programming/gcc/gcc/ipa-modref.c:1368
0xb9a0e1 compute_parm_map
	/home/marxin/Programming/gcc/gcc/ipa-modref.c:1338
0xb9a0e1 modref_propagate_in_scc
	/home/marxin/Programming/gcc/gcc/ipa-modref.c:1603
0xb9a0e1 execute
	/home/marxin/Programming/gcc/gcc/ipa-modref.c:1680
0xb9a0e1 execute
	/home/marxin/Programming/gcc/gcc/ipa-modref.c:1659
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.
Comment 1 GCC Commits 2020-10-01 13:44:35 UTC
The master branch has been updated by Jan Hubicka <hubicka@gcc.gnu.org>:

https://gcc.gnu.org/g:73c977cb0a112ac58fae18af44576ade8ab3aa26

commit r11-3592-g73c977cb0a112ac58fae18af44576ade8ab3aa26
Author: Jan Hubicka <jh@suse.cz>
Date:   Thu Oct 1 15:43:56 2020 +0200

    Add gcc.c-torture/compile/pr97243.c testcase.
    
            PR ipa/97243
            * gcc.c-torture/compile/pr97243.c: New test.
Comment 2 Jan Hubicka 2020-10-01 13:45:00 UTC
Fixed.