https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80612
Bug ID: 80612 Summary: ICE compiling grep-3.0 and m4-1.4.18 with LTO Product: gcc Version: 7.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sven.c.dack at sky dot com Target Milestone: --- Both grep-3.0 and m4-1.4.18 show the same error message, because they both make use of the same source file "obstack.c". ... CCLD grep /dev/shm/build-pkg-25231/src/grep-3.0/lib/obstack.c: In function 'kwsalloc': /dev/shm/build-pkg-25231/src/grep-3.0/lib/obstack.c:87:12: internal compiler error: in get_range_info, at tree-ssanames.c:375 return h->chunkfun.extra (h->extra_arg, size); ^ ... CCLD m4 /dev/shm/build-pkg-3058/src/m4-1.4.18/lib/obstack.c: In function 'expand_macro': /dev/shm/build-pkg-3058/src/m4-1.4.18/lib/obstack.c:87:12: internal compiler error: in get_range_info, at tree-ssanames.c:375 return h->chunkfun.extra (h->extra_arg, size); ^ The ICE occurs in the final link optimization of the executables. Both packages were configured as follows: CFLAGS="-pipe -O3 -march=native -fomit-frame-pointer -fno-builtin-memcmp -fipa-pta -flto -ffat-lto-objects -flto-partition=one" LDFLAGS="-Wl,-O1,--hash-style=gnu,--enable-new-dtags,-z,combreloc,-z,noexecstack,-z,relro,-z,now -pipe -O3 -march=native -fomit-frame-pointer -fno-builtin-memcmp -fipa-pta -flto -ffat-lto-objects -flto-partition=one -fuse-linker-plugin" ../grep-3.0/configure --prefix=/home/sven/test make -j24 all ... Compiler version is: gcc --version gcc (GCC) 7.1.1 20170502