https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70740
Bug ID: 70740 Summary: ICE when compiling the Linux kernel (net/wireless/util.o) Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at engestrom dot ch Target Milestone: --- Created attachment 38317 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38317&action=edit Kernel .config $ gcc --version gcc (GCC) 7.0.0 20160420 (experimental) GCC built with default options (ie. by just running `./configure; make`) from commit a8876617811b8999e71d100cdd682b4e76c04b67 $ uname -rm 3.16.0-67-generic x86_64 To reproduce: 1 - Checkout commit 9a0e3eea25d3ab267aff9d4eaed83fbe46d989d0 from the Linux kernel. 2 - Try to compile net/wireless/util.o (just `make` it) 3 - Segfault: CC net/wireless/util.o net/wireless/util.c: In function ‘__ieee80211_data_to_8023’: net/wireless/util.c:417:12: internal compiler error: Segmentation fault static int __ieee80211_data_to_8023(struct sk_buff *skb, struct ethhdr *ehdr, ^~~~~~~~~~~~~~~~~~~~~~~~ 0xb21a4f crash_signal ../.././gcc/toplev.c:335 0x793156 dominated_by_p(cdi_direction, basic_block_def const*, basic_block_def const*) ../.././gcc/dominance.c:973 0xca52b4 propagate_with_phi ../.././gcc/tree-ssa-phiprop.c:335 0xca52b4 execute ../.././gcc/tree-ssa-phiprop.c:447 I know I'm pushing my luck by using an unreleased compiler on an unreleased kernel version, but it's still probably a bug that should be fixed :] PS: Attached is the kernel .config I use. Probably not relevant, but this allows for 100% reproducibility.