https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70420
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW CC| |egallager at gcc dot gnu.org --- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > Please provide preprocessed source of the file and the compiler command with > -v > appended so we can see what -mtune/-march expands to. Reporter has since provided these. (In reply to Seth Junot from comment #2) > Created attachment 38124 [details] > Preprocessed file during libquadmath compilation Compiling this with trunk I get: $ /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -g -O2 -v -save-temps -march=native -mtune=native -mfpmath=sse -m32 -MT math/rem_pio2q.lo -MD -MP -MF math/.deps/rem_pio2q.Tpo -c rem_pio2q.i Using built-in specs. COLLECT_GCC=/usr/local/bin/gcc Target: i386-apple-darwin9.8.0 Configured with: ../configure --disable-werror --disable-werror-always --enable-languages=c,c++,lto,objc,obj-c++ --enable-stage1-checking=release,rtl -C --with-system-libunwind --enable-secureplt --enable-frame-pointer --enable-debug --with-isl --disable-host-shared --enable-maintainer-mode --disable-default-pie --with-ld64 --without-pic --enable-target-optspace CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ AUTOCONF=/usr/local/bin/autoconf AUTOHEADER=/usr/local/bin/autoheader AUTORECONF=/usr/local/bin/autoreconf AUTOM4TE=/usr/local/bin/autom4te AUTOSCAN=/usr/local/bin/autoscan AUTOUPDATE=/usr/local/bin/autoupdate IFNAMES=/usr/local/bin/ifnames Thread model: posix gcc version 8.0.0 20170702 (experimental) (GCC) COLLECT_GCC_OPTIONS='-D' 'HAVE_CONFIG_H' '-I' '.' '-g' '-O2' '-v' '-save-temps' '-march=native' '-mtune=native' '-mfpmath=sse' '-m32' '-MT' 'math/rem_pio2q.lo' '-MD' '-MP' '-MF' 'math/.deps/rem_pio2q.Tpo' '-c' '-mmacosx-version-min=10.5.8' '-asm_macosx_version_min=10.5' /usr/local/libexec/gcc/i386-apple-darwin9.8.0/8.0.0/cc1 -fpreprocessed rem_pio2q.i -march=core2 -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=core2 -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase rem_pio2q.i -mfpmath=sse -m32 -mmacosx-version-min=10.5.8 -auxbase rem_pio2q -g -O2 -version -o rem_pio2q.s GNU C11 (GCC) version 8.0.0 20170702 (experimental) (i386-apple-darwin9.8.0) compiled by GNU C version 8.0.0 20170702 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C11 (GCC) version 8.0.0 20170702 (experimental) (i386-apple-darwin9.8.0) compiled by GNU C version 8.0.0 20170702 (experimental), GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3, isl version isl-0.16.1-GMP GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 5b4c68354b33780d2d34c743d42b6977 during RTL pass: split2 ../../../libquadmath/math/rem_pio2q.c: In function ‘__quadmath_rem_pio2q’: ../../../libquadmath/math/rem_pio2q.c:587:1: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1026 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. For a backtrace I get: Breakpoint 3, 0x00e085f4 in internal_error () (gdb) bt #0 0x00e085f4 in internal_error () warning: .o file "/private/var/root/gcc-git/my_oddly_named_builddir/./mpfr/src/.libs/libmpfr.a(mpfr-gmp.o)" more recent than executable timestamp #1 0x014e4227 in fancy_abort () #2 0x013eb932 in __cold_sect_of___Z11gen_reg_rtx12machine_mode () #3 0x00305cd2 in gen_split_374 () #4 0x00435c11 in split_9 () #5 0x005fd4c6 in try_split () #6 0x00989990 in split_insn () #7 0x0098ed75 in split_all_insns () #8 0x0098ee2b in (anonymous namespace)::pass_split_after_reload::execute () #9 0x00946770 in execute_one_pass () #10 0x009470d9 in execute_pass_list_1 () #11 0x00947105 in execute_pass_list_1 () #12 0x00947105 in execute_pass_list_1 () #13 0x0094712e in execute_pass_list () #14 0x0051174a in cgraph_node::expand () #15 0x00512c5e in symbol_table::compile () #16 0x005151d8 in symbol_table::finalize_compilation_unit () #17 0x00a41d9a in compile_file () #18 0x01853760 in toplev::main () #19 0x01854d74 in main () I'll have to rebuild GCC with debug info to get a better backtrace. In the meantime, I'm confirming this bug.