public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/106087] New: Segmentation fault in GIMPLE pass: ccp
@ 2022-06-26  8:12 nyh at math dot technion.ac.il
  2022-06-26  8:14 ` [Bug c/106087] " nyh at math dot technion.ac.il
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: nyh at math dot technion.ac.il @ 2022-06-26  8:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106087
           Summary: Segmentation fault in GIMPLE pass: ccp
           Product: gcc
           Version: 9.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nyh at math dot technion.ac.il
  Target Milestone: ---

When building the attached file, part of the open-source OSv project, in gcc
12.1.1 (on Fedora 36), I get:


during GIMPLE pass: ccp
bsd/sys/dev/hyperv/vmbus/hyperv.cc: In function ‘bool hyperv_identify()’:
bsd/sys/dev/hyperv/vmbus/hyperv.cc:117:1: internal compiler error: Segmentation
fault
  117 | hyperv_identify()
      | ^~~~~~~~~~~~~~~
Please submit a full bug report, with preprocessed source.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccCg8LNL.out file, please attach this to
your bugreport.

The preprocessed source file is attached.

I discovered that removing the two static variables hyperv_pm_features and
hyperv_features3 makes the compilation succeed. These two variables are static,
and are only set by the function which failed compilation and never read
anywhere else in the source file, so these variables are not needed. So I would
have accepted a warning about them being unused - but not a compiler crash.

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2022-07-27  9:25 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26  8:12 [Bug c/106087] New: Segmentation fault in GIMPLE pass: ccp nyh at math dot technion.ac.il
2022-06-26  8:14 ` [Bug c/106087] " nyh at math dot technion.ac.il
2022-06-26  8:17 ` [Bug tree-optimization/106087] " pinskia at gcc dot gnu.org
2022-06-27  9:03 ` marxin at gcc dot gnu.org
2022-07-07 21:08 ` ppalka at gcc dot gnu.org
2022-07-07 21:11 ` ppalka at gcc dot gnu.org
2022-07-07 21:20 ` [Bug c++/106087] " pinskia at gcc dot gnu.org
2022-07-07 21:27 ` ppalka at gcc dot gnu.org
2022-07-07 21:31 ` pinskia at gcc dot gnu.org
2022-07-07 21:51 ` [Bug tree-optimization/106087] [12/13 Regression] ICE with inline-asm with multiple output and assigned only static vars pinskia at gcc dot gnu.org
2022-07-07 21:53 ` pinskia at gcc dot gnu.org
2022-07-07 22:03 ` pinskia at gcc dot gnu.org
2022-07-07 22:04 ` pinskia at gcc dot gnu.org
2022-07-07 22:56 ` pinskia at gcc dot gnu.org
2022-07-08  4:33 ` pinskia at gcc dot gnu.org
2022-07-09  1:27 ` cvs-commit at gcc dot gnu.org
2022-07-09  1:28 ` [Bug tree-optimization/106087] [12 " pinskia at gcc dot gnu.org
2022-07-25 15:52 ` rguenth at gcc dot gnu.org
2022-07-27  9:24 ` cvs-commit at gcc dot gnu.org
2022-07-27  9:25 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).