[Bug c++/81525] [7 Regression] Invalid codegen with constexpr variable template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81525 Sven C. Dack changed: What|Removed |Added CC||sven.c.dack at sky dot com --- Comment #6 from Sven C. Dack --- A quick reminder that 7.2 has been released and that you probably want to put the patch back in.
[Bug rtl-optimization/82057] New: ICE with -fgraphite-identity
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82057 Bug ID: 82057 Summary: ICE with -fgraphite-identity Product: gcc Version: 7.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sven.c.dack at sky dot com Target Milestone: --- Created attachment 42093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42093&action=edit bug.c Hello, while compiling ffmpeg with -fgraphite-identity did gcc run into an internal compiler error. The original command line is this: gcc -I. -Isrc/ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -DZLIB_CONST -DHAVE_AV_CONFIG_H -pipe -O3 -march=native -fomit-frame-pointer -fgraphite-identity -floop-nest-optimize -Ofast -I/home/sven/av/include -I/usr/local/cuda/include -I/usr/local/Video_Codec_SDK/Samples/common/inc -std=c11 -fomit-frame-pointer -fPIC -pthread -I/home/sven/gnu/include -I/home/sven/av/include -I/home/sven/gnu/include -I/home/sven/gnu/include/freetype2 -I/home/sven/gnu/include/libpng16 -I/home/sven/gnu/include -I/home/sven/gnu/include/harfbuzz -I/home/sven/gnu/include/glib-2.0 -I/home/sven/gnu/lib/glib-2.0/include -I/home/sven/gnu/include -I/home/sven/gnu/include/libxml2 -I/home/sven/gnu/include/freetype2 -I/home/sven/gnu/include/libpng16 -I/home/sven/gnu/include -I/home/sven/gnu/include/harfbuzz -I/home/sven/gnu/include/glib-2.0 -I/home/sven/gnu/lib/glib-2.0/include -I/home/sven/gnu/include -I/home/sven/gnu/include/freetype2 -I/home/sven/gnu/include/libpng16 -I/home/sven/gnu/include -I/home/sven/gnu/include/harfbuzz -I/home/sven/gnu/include/glib-2.0 -I/home/sven/gnu/lib/glib-2.0/include -I/home/sven/gnu/include -I/home/sven/av/include/opus -I/home/sven/av/include/opus -I/home/sven/av/include -I/home/sven/av/include -I/home/sven/av/include -I/home/sven/av/include -I/home/sven/gnu/include -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -Wno-unused-const-variable -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -fdiagnostics-color=auto -Wno-maybe-uninitialized -MMD -MF libavcodec/nellymoser.d -MT libavcodec/nellymoser.o -c -o libavcodec/nellymoser.o src/libavcodec/nellymoser.c src/libavcodec/nellymoser.c: In function 'ff_nelly_get_sample_bits': src/libavcodec/nellymoser.c:116:6: internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1019 void ff_nelly_get_sample_bits(const float *buf, int *bits) ^~~~ Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. I've stripped it down to: gcc -O3 -fgraphite-identity bug.c -o bug.o bug.c: In function 'ff_nelly_get_sample_bits': bug.c:147:13: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] if (abs(big_bitsum-198) >= ^~~ bug.c:81:6: internal compiler error: in outer_projection_mupa, at graphite-sese-to-poly.c:1019 void ff_nelly_get_sample_bits(const float *buf, int *bits) ^~~~ and have attached the file bug.c, which is a preprocessed and stripped down version of the file. I hope you can figure this one out. I can reproduce the ICE with gcc 6.4 (Debian), 7.2 (Debian) and 7.2.1 (git). Sven
[Bug tree-optimization/82057] ICE with -fgraphite-identity
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82057 --- Comment #1 from Sven C. Dack --- Now with the update it looks much like it's a duplicate of 81226 and 80069. I did a search before posting this bug, but couldn't find anything close to it. Sorry if I'm reporting the same issue here.
[Bug tree-optimization/80612] New: ICE compiling grep-3.0 and m4-1.4.18 with LTO
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
[Bug tree-optimization/80612] ICE compiling grep-3.0 and m4-1.4.18 with LTO
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80612 --- Comment #1 from Sven C. Dack --- The same ICE can be seen when compiling bison-3.0.4, coreutils-8.27 and tar-1.29, because these, too, makes use of the same "obstack.c" file.