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