I'm using gcc 4.7.2 and when trying to compile Firefox 17 with the following options: -march=native -O3 -mno-avx -pipe -floop-interchange -floop-strip-mine -floop-block It results in the following: make[5]: Entering directory `/home/fraga/src/firefox/media/webrtc/trunk/src/modules/modules_iSACFix' gcc -o audio_coding/codecs/iSAC/fix/source/fft.o -c -I../../../../../../dist/system_wrappers -include /home/fraga/src/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_NSS=1 -DTOOLKIT_USES_GTK=1 -DGTK_DISABLE_SINGLE_INCLUDES=1 -D_ISOC99_SOURCE=1 -DENABLE_REMOTING=1 -DENABLE_P2P_APIS=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_REGISTER_PROTOCOL_HANDLER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DWEBRTC_LINUX -DWEBRTC_THREAD_RR -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I. -I/home/fraga/src/mozilla/media/webrtc/trunk/src/modules/.. -I/home/fraga/src/mozilla/media/webrtc/trunk/src/modules/../.. -I/home/fraga/src/mozilla/media/webrtc/trunk/src/modules/audio_coding/codecs/iSAC/fix/interface -I/home/fraga/src/mozilla/media/webrtc/trunk/src/modules/../common_audio/signal_processing/include -fPIC -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body -Wno-unused -Wno-overlength-strings -Wcast-align -Wno-long-long -march=native -O3 -pipe -floop-interchange -floop-strip-mine -floop-block -fno-strict-aliasing -ffunction-sections -fdata-sections -pthread -pipe -DNDEBUG -DTRIMMED -g -march=native -O3 -mno-avx -pipe -floop-interchange -floop-strip-mine -floop-block -fomit-frame-pointer -include ../../../../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/fft.o.pp /home/fraga/src/mozilla/media/webrtc/trunk/src/modules/audio_coding/codecs/iSAC/fix/source/fft.c /home/fraga/src/mozilla/media/webrtc/trunk/src/modules/audio_coding/codecs/iSAC/fix/source/fft.c: In function ‘WebRtcIsacfix_FftRadix16Fastest’: /home/fraga/src/mozilla/media/webrtc/trunk/src/modules/audio_coding/codecs/iSAC/fix/source/fft.c:71:15: internal compiler error: in scan_tree_for_params_right_scev, at graphite-sese-to-poly.c:633 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[5]: *** [audio_coding/codecs/iSAC/fix/source/fft.o] Error 1 make[5]: Leaving directory `/home/fraga/src/firefox/media/webrtc/trunk/src/modules/modules_iSACFix' make[4]: *** [src/modules/modules_iSACFix_libs] Error 2 make[4]: Leaving directory `/home/fraga/src/firefox/media/webrtc/trunk' make[3]: *** [libs] Error 2 make[3]: Leaving directory `/home/fraga/src/firefox/media/webrtc' make[2]: *** [libs_tier_platform] Error 2 make[2]: Leaving directory `/home/fraga/src/firefox' make[1]: *** [tier_platform] Error 2 make[1]: Leaving directory `/home/fraga/src/firefox' make: *** [default] Error 2 Here it's the ~/.mozconfig I use: . /home/fraga/src/mozilla/browser/config/mozconfig mk_add_options LDFLAGS="-L/usr/X11/lib64" mk_add_options CPPFLAGS="-I/usr/X11/include" mk_add_options MOZ_CO_PROJECT=browser mk_add_options MOZ_OBJDIR=/home/fraga/src/firefox ac_add_options --enable-optimize="-march=native -O3 -mno-avx -pipe -floop-interchange -floop-strip-mine -floop-block" ac_add_options --disable-debug ac_add_options --disable-tests ac_add_options --enable-svg ac_add_options --enable-safe-browsing ac_add_options --enable-update-packaging ac_add_options --x-libraries=/usr/X11/lib64 ac_add_options --disable-necko-wifi ac_add_options --disable-crashreporter
My Parma Polyhedra Library version is: ppl-config --version 0.11.2 Should I updated to 1.0 version?
Same error for me. For 4.6.3 -O1 -fgraphite-identity (or any other graphite flag) is enough to trigger an ICE, for 4.7.2 -O2 and a graphite flag is required to trigger it. I'm attaching the preprocessed source and a reduced testcase.
Created attachment 29042 [details] Reduced testcase for graphite related ICE Reduced testcase. Crashes with gcc -O2 -fgraphite-identity -c fft.i
Created attachment 29043 [details] Preprocessed source Preprocessed source file from Firefox.
Confirm identical bug with Thuderbird https://bugs.gentoo.org/show_bug.cgi?id=466568
The bug is reproducible w/ the following reduced testcase: void de(void) { static int ey; static int ux; short int mb; int al; int vx; int *gs = &al; int *dp = &ux; for (ey = 0; ey < 2; ++ey) *dp = (mb += *gs) || vx; } % gcc-4.7.3 -c -O2 -ftree-loop-linear 6b94b1d3.c 6b94b1d3.c: In function 'de': 6b94b1d3.c:2:1: internal compiler error: in scan_tree_for_params_right_scev, at graphite-sese-to-poly.c:633 gcc 4.8 and 4.9 are not affected. However, they segfault on quite a similar code from 59817#c2.
Should be fixed now.