[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Francois-Xavier Coudert fxcoudert at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #37 from Francois-Xavier Coudert fxcoudert at gcc dot gnu.org --- Closing as fixed.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #36 from Dominique d'Humieres dominiq at lps dot ens.fr --- Please file test suite failures as new PR (one new PR per test failure with a different backtrace, ideally). It's very hard to track as such (the subject is not accurate any more, the discussion is convoluted, etc.) I have filled pr63851 for the fortran failures and pr63852 for the acats ones. Any objection against closing this PR as FIXED?
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #27 from Martin Liška marxin at gcc dot gnu.org --- Author: marxin Date: Tue Nov 11 14:58:21 2014 New Revision: 217355 URL: https://gcc.gnu.org/viewcvs?rev=217355root=gccview=rev Log: PR ipa/63622 PR ipa/63795 * g++.dg/ipa/ipa-icf-4.C: Add more precise dump scan. * g++.dg/ipa/ipa-icf-5.C: Add condition for target with symbol alias support. * ipa-icf.c (sem_function::merge): Add new target symbol alias support guard. (sem_variable::merge): Likewise. * ipa-icf.h (target_supports_symbol_aliases_p): New function. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-icf.c trunk/gcc/ipa-icf.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/ipa/ipa-icf-4.C trunk/gcc/testsuite/g++.dg/ipa/ipa-icf-5.C
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #28 from howarth at bromo dot med.uc.edu --- At r217355, the failures for the gfortran.dg/assumed_rank_[8/9/10].f90 execution tests , first noted in Comment 7, still remain on x86_64 darwin.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #29 from howarth at bromo dot med.uc.edu --- (In reply to howarth from comment #28) At r217355, the failures for the gfortran.dg/assumed_rank_[8/9/10].f90 execution tests , first noted in Comment 7, still remain on x86_64 darwin. A backtrace of the failing test case generated by... /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/ /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-2014/gcc/testsuite/gfortran.dg/assumed_rank_10.f90 -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -fdump-tree-original -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -lm -m32 -o ./assumed_rank_10.exe in lldb appears as... % lldb /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/assumed_rank_10.exe (lldb) target create /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/assumed_rank_10.exe Current executable set to '/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/assumed_rank_10.exe' (i386). (lldb) r Process 99438 launched: '/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/assumed_rank_10.exe' (i386) Program aborted. Backtrace: #0 0x5151 #1 0x6caf #2 0xbd577 #3 0x1a8f #4 0x1bfa Process 99438 stopped * thread #1: tid = 0x101913c, 0x9ab09952 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x9ab09952 libsystem_kernel.dylib`__pthread_kill + 10 libsystem_kernel.dylib`__pthread_kill + 10: - 0x9ab09952: jae0x9ab09962; __pthread_kill + 26 0x9ab09954: calll 0x9ab09959; __pthread_kill + 17 0x9ab09959: popl %edx 0x9ab0995a: movl 0x6c996c7(%edx), %edx (lldb) bt * thread #1: tid = 0x101913c, 0x9ab09952 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT * frame #0: 0x9ab09952 libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x9083c167 libsystem_pthread.dylib`pthread_kill + 101 frame #2: 0x97beb29c libsystem_c.dylib`abort + 155 frame #3: 0x6c90 libgfortran.3.dylib`__gfortrani_sys_abort + 32 at error.c:180 frame #4: 0x000bd578 libgfortran.3.dylib`_gfortran_abort + 8 at abort.c:33 frame #5: 0x1a90 assumed_rank_10.exe`fpa.3310 + 48 frame #6: 0x1bfb assumed_rank_10.exe`main + 283 frame #7: 0x92e5d701 libdyld.dylib`start + 1 (lldb)
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #30 from howarth at bromo dot med.uc.edu --- Created attachment 33936 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33936action=edit assembly for gfortran.dg/assumed_rank_10.f90 -O3 -fomit-frame-pointer -funroll-loops execution test Generated with /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/ /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-2014/gcc/testsuite/gfortran.dg/assumed_rank_10.f90 -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -fdump-tree-original -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -lm -m32 -o ./assumed_rank_10.exe --save-temps
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #31 from howarth at bromo dot med.uc.edu --- (In reply to howarth from comment #28) As noted before, passing -fno-ipa-icf to these failing fortran test cases suppresses the execution failure.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #32 from howarth at bromo dot med.uc.edu --- Created attachment 33939 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33939action=edit assumed_rank_10.f90.003t.original output from -fdump-ipa-icf-details Generated using /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/ /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-2014/gcc/testsuite/gfortran.dg/assumed_rank_10.f90 -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -fdump-tree-original -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -lm -m32 -o ./assumed_rank_10.exe --save-temps -fdump-ipa-icf-details
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #33 from howarth at bromo dot med.uc.edu --- Created attachment 33940 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33940action=edit assumed_rank_10.f90.051i.icf output from -fdump-ipa-icf-details Generated using /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../gfortran -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/gfortran/../../ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/ /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-2014/gcc/testsuite/gfortran.dg/assumed_rank_10.f90 -fno-diagnostics-show-caret -fdiagnostics-color=never -O3 -fomit-frame-pointer -funroll-loops -fdump-tree-original -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libgfortran/.libs -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin13.4.0/i386/libquadmath/.libs -lm -m32 -o ./assumed_rank_10.exe --save-temps -fdump-ipa-icf-details
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #34 from Dominique d'Humieres dominiq at lps dot ens.fr --- Reduced test case for assumed_rank_10.f90 program test implicit none type t integer :: aa end type t integer, pointer :: iip type(t), pointer :: jjp logical :: is_present is_present = .true. allocate (iip, jjp) iip = 7 jjp = t(88) call fpa(iip, jjp) ! Copy back if (iip /= 7 .and. jjp%aa /= 88) call abort () call fpi(iip, jjp) ! No copy back if (iip /= 7 .and. jjp%aa /= 88) call abort () contains subroutine fpa (xx1, yy1) integer, pointer :: xx1(..) type(t), pointer :: yy1(..) if (is_present .neqv. associated (xx1)) call abort () if (is_present .neqv. associated (yy1)) call abort () end subroutine fpa subroutine fpi (xx1, yy1) integer, pointer, intent(in) :: xx1(..) type(t), pointer, intent(in) :: yy1(..) if (is_present .neqv. associated (xx1)) call abort () if (is_present .neqv. associated (yy1)) call abort () end subroutine fpi end program test The abort is triggered in the fpa/fpi subroutines when the test is compiled with [Book15] f90/bug% gfc -O2 -funroll-all-loops assumed_rank_10_red.f90 -m32 [Book15] f90/bug% a.out Program aborted. Backtrace: #0 0x1c4a1 #1 0x1e00f #2 0xd4677 #3 0x15d0f #4 0x15dd3 Abort Note that only the fpa/fpi subroutines in the original file assumed_rank_10.f90 cause the abort: if their calls are commented the tests succeed.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Francois-Xavier Coudert fxcoudert at gcc dot gnu.org changed: What|Removed |Added CC||fxcoudert at gcc dot gnu.org --- Comment #35 from Francois-Xavier Coudert fxcoudert at gcc dot gnu.org --- (In reply to howarth from comment #28) At r217355, the failures for the gfortran.dg/assumed_rank_[8/9/10].f90 execution tests , first noted in Comment 7, still remain on x86_64 darwin. Please file test suite failures as new PR (one new PR per test failure with a different backtrace, ideally). It's very hard to track as such (the subject is not accurate any more, the discussion is convoluted, etc.)
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #26 from Iain Sandoe iains at gcc dot gnu.org --- OK - so two more data points. ( i) With the alias patch, I can bootstrap x86_64-darwin12 However, there are lots of new fails in Ada (for example) that go away when I force ipa-icf off. (ii) The patch is NOT sufficient to restore bootstrap on powerpc-darwin9 (accepting that few people care about that platform). - So what this tells us is that the alias patch is necessary, but not sufficient to fix all the issues. My latest round of testing was carried out on 217269 - it takes time to spin the permutations - if there's new stuff in since then - then I should try it.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Igor Zamyatin izamyatin at gmail dot com changed: What|Removed |Added CC||izamyatin at gmail dot com --- Comment #20 from Igor Zamyatin izamyatin at gmail dot com --- This is mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9 Fix for this is under review, start of the discussion is here - http://gcc.gnu.org/ml/gcc-patches/2014-10/msg01727.html
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #21 from Martin Liška marxin at gcc dot gnu.org --- (In reply to Igor Zamyatin from comment #20) This is mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9 Fix for this is under review, start of the discussion is here - http://gcc.gnu.org/ml/gcc-patches/2014-10/msg01727.html If you apply both my IPA ICF alias restriction patch and this mentioned patch, can you bootstrap? As I don't have a machine with darwin1, I cannot verify if bootstrap works and there's no new regression? Thanks, Martin
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #22 from howarth at bromo dot med.uc.edu --- (In reply to Martin Liška from comment #21) (In reply to Igor Zamyatin from comment #20) This is mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9 Fix for this is under review, start of the discussion is here - http://gcc.gnu.org/ml/gcc-patches/2014-10/msg01727.html If you apply both my IPA ICF alias restriction patch and this mentioned patch, can you bootstrap? As I don't have a machine with darwin1, I cannot verify if bootstrap works and there's no new regression? Thanks, Martin I already had https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c50 applied and https://gcc.gnu.org/ml/gcc-patches/2014-10/msg01727.html is already be committed. Perhaps a PR should be opened where the accumulated patches required for darwin are listed. At the moment we also need https://gcc.gnu.org/bugzilla/attachment.cgi?id=33897 and https://gcc.gnu.org/bugzilla/attachment.cgi?id=33854 for Yosemite as well.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #23 from howarth at bromo dot med.uc.edu --- (In reply to Martin Liška from comment #21) (In reply to Igor Zamyatin from comment #20) This is mentioned here - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9 Fix for this is under review, start of the discussion is here - http://gcc.gnu.org/ml/gcc-patches/2014-10/msg01727.html If you apply both my IPA ICF alias restriction patch and this mentioned patch, can you bootstrap? As I don't have a machine with darwin1, I cannot verify if bootstrap works and there's no new regression? Thanks, Martin Martin, Are you currently testing gcc trunk with the IPA ICF alias restriction patch applied in your tree on linux? Is it possible that patch is regressed by all of the recent ipa icf commits? Jack
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #24 from howarth at bromo dot med.uc.edu --- The error seen in Comment 19 appears to be identical to that reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9. If I also add in the proposed patch https://gcc.gnu.org/bugzilla/attachment.cgi?id=33736action=diff from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c18 for disabling just nonlocal_goto_receiver split in addition to the IPA ICF alias restriction patch, the bootstrap on x86_64-apple-darwin14 continues further into stage2 when it hits... /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./prev-gcc/xg++ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./prev-gcc/ -B/sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/bin/ -nostdinc++ -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include/x86_64-apple-darwin14.0.0 -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include -I/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5.0-20141106/libstdc++-v3/libsupc++ -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-5.0-20141106/gcc -I../../gcc-5.0-20141106/gcc/. -I../../gcc-5.0-20141106/gcc/../include -I../../gcc-5.0-20141106/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-5.0-20141106/gcc/../libdecnumber -I../../gcc-5.0-20141106/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-5.0-20141106/gcc/../libbacktrace -DCLOOG_INT_GMP -I/sw/include -DCLOOG_INT_GMP -I/sw/include -I/sw/include -o tree-inline.o -MT tree-inline.o -MMD -MP -MF ./.deps/tree-inline.TPo ../../gcc-5.0-20141106/gcc/tree-inline.c ../../gcc-5.0-20141106/gcc/tree-inline.c: In function 'int estimate_num_insns_seq(gimple_seq, eni_weights*)': ../../gcc-5.0-20141106/gcc/tree-inline.c:5820:1: error: invalid argument to gimple call } ^ stmts # .MEM_3 = VDEF .MEM_1(D) retval.1677_4 = count_insns_seq (stmts, weights_2(D)); [tail call] ../../gcc-5.0-20141106/gcc/tree-inline.c:5820:1: internal compiler error: verify_gimple failed
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #25 from Dominique d'Humieres dominiq at lps dot ens.fr --- The error seen in Comment 19 appears to be identical to that reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63534#c9. This is fixed by the patch at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63580#c4.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #8 from howarth at bromo dot med.uc.edu --- At r217144 with https://gcc.gnu.org/bugzilla/attachment.cgi?id=33897 to fix PR63750, gcc trunk now bootstraps up to the illegal text reloc error. Is this problem understood well enough to debug or should I send a standalone test case to the darwin linker developer for further analysis of the linkage error?
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #9 from howarth at bromo dot med.uc.edu --- The darwin linker developer's analysis of this failing linkage is as follows... That link line contains “-undefined dynamic_lookup” which is almost always a bad idea. Removing it shows the problem. The symbol __ZTCSt9strstream16_So is not defined in an object file. So that option means “assume it will be in some dylib (DSO) at runtime). But the function __ZNSt9strstreamC1Ev contains: __ZNSt9strstreamC1Ev: ... 1f75leaq__ZTCSt9strstream16_So+24(%rip), %rax … That code gen requires the target vtable to be in the same linkage unit, but is is in DSO. The only way to possible make it work is to have a text relocation which adjusts the LEA at launch time. But darwin x86_64 does not support text relocations. You should remove the “-undefined dynamic_lookup” from the link line and fix the build to have all required symbols defined.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #10 from howarth at bromo dot med.uc.edu --- Note that removal of the -undefined dynamic_lookup produces... Undefined symbols for architecture x86_64: __ZNKSt11logic_error4whatEv, referenced from: __ZTVSt11logic_error in libc++98convenience.a(stdexcept.o) __ZTVSt12domain_error in libc++98convenience.a(stdexcept.o) __ZTVSt16invalid_argument in libc++98convenience.a(stdexcept.o) __ZTVSt12length_error in libc++98convenience.a(stdexcept.o) __ZTVSt12out_of_range in libc++98convenience.a(stdexcept.o) __ZNKSt7codecvtIcc11__mbstate_tE10do_unshiftERS0_PcS3_RS3_, referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) __ZNKSt7codecvtIcc11__mbstate_tE11do_encodingEv, referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) __ZNKSt7codecvtIcc11__mbstate_tE6do_outERS0_PKcS4_RS4_PcS6_RS6_, referenced from: __ZTVSt7codecvtIcc11__mbstate_tE in libc++98convenience.a(codecvt.o) __ZTVSt14codecvt_bynameIcc11__mbstate_tE in libc++98convenience.a(locale-inst.o) __ZNKSt9type_info14__is_pointer_pEv, referenced from: __ZTVN10__cxxabiv117__array_type_infoE in libsupc++convenience.a(array_type_info.o) __ZTVN10__cxxabiv117__class_type_infoE in libsupc++convenience.a(class_type_info.o) __ZTVN10__cxxabiv116__enum_type_infoE in libsupc++convenience.a(enum_type_info.o) __ZTVN10__cxxabiv120__function_type_infoE in libsupc++convenience.a(function_type_info.o) __ZTVN10__cxxabiv123__fundamental_type_infoE in libsupc++convenience.a(fundamental_type_info.o) __ZTVN10__cxxabiv117__pbase_type_infoE in libsupc++convenience.a(pbase_type_info.o) __ZTVN10__cxxabiv129__pointer_to_member_type_infoE in libsupc++convenience.a(pmem_type_info.o) ... __ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPwEES4_T_S5_RKS1_St20forward_iterator_tag.part.36, referenced from: __ZNSbIwSt11char_traitsIwESaIwEE12_S_constructIPwEES4_T_S5_RKS1_St20forward_iterator_tag in libc++11convenience.a(wstring-inst.o) __ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag.part.34, referenced from: __ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag in libc++11convenience.a(string-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE4syncEv, referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE in libc++11convenience.a(sstream-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE5imbueERKSt6locale, referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_stringbufIcSt11char_traitsIcESaIcEE in libc++11convenience.a(sstream-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE6setbufEPcl, referenced from: __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode, referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE7seekposESt4fposI11__mbstate_tESt13_Ios_Openmode, referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE8overflowEi, referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE9pbackfailEi, referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE9showmanycEv, referenced from: __ZTVSt12strstreambuf in libc++98convenience.a(strstream.o) __ZTVN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEEE in libc++11convenience.a(ext11-inst.o) __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv, referenced from: __ZTVSt15basic_streambufIcSt11char_traitsIcEE in libc++11convenience.a(streambuf-inst.o) __ZNSt15basic_streambufIwSt11char_traitsIwEE9pbackfailEi, referenced from: __ZTVSt15basic_streambufIwSt11char_traitsIwEE in libc++11convenience.a(streambuf-inst.o)
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #11 from howarth at bromo dot med.uc.edu --- It looks like we aren't compiling some object files in libstdc++-v3/src/c++98 for gcc trunk which are are on gcc 4.9.2. In particular, we are missing... ctype.o ctype_configure_char.o ctype_members.o ios-inst.o ios.o iostream-inst.o istream-inst.o ostream-inst.o sstream-inst.o streambuf-inst.o
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #12 from howarth at bromo dot med.uc.edu --- This looks like fallout from... https://gcc.gnu.org/ml/libstdc++-cvs/2014-q4/msg00080.html https://gcc.gnu.org/ml/libstdc++-cvs/2014-q3/msg00181.html where the files moved to c++11 in gcc trunk from c++98 in gcc 4.9.2 now have undefined symbols... [MacPro:libstdc++-v3/src/c++11] howarth% nm streambuf-inst.o | grep ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv U __ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv compared to gcc 4.9.2 [MacPro:libstdc++-v3/src/c++98] howarth% nm streambuf-inst.o | grep ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv 0040 T __ZNSt15basic_streambufIcSt11char_traitsIcEE9underflowEv Were these checkins made after darwin stopped bootstrapping?
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #13 from howarth at bromo dot med.uc.edu --- Created attachment 33904 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33904action=edit preprocessed source for libstdc++-v3/src/c++11/streambuf-inst.cc
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #14 from howarth at bromo dot med.uc.edu --- The attached preprocessed source was produced from gcc trunk with... # /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/xgcc -shared-libgcc -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc -nostdinc++ -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/libstdc++-v3/src -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -B/sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/bin/ -B/sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/lib/ -isystem /sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/include -isystem /sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/sys-include -I/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5.0-20141105/libstdc++-v3/../libgcc -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/libstdc++-v3/include/x86_64-apple-darwin14.0.0 -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/libstdc++-v3/include -I/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5.0-20141105/libstdc++-v3/libsupc++ -I/sw/include -std=gnu++11 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -frandom-seed=streambuf-inst.lo -g -O2 -c ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc -fno-common -DPIC -D_GLIBCXX_SHARED -o streambuf-inst.o --save-temps which produces as set of warnings that don't appear in the build of libstdc++-v3/src/c++98/streambuf-inst.cc. These are... ./../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored } // namespace ^ ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored ../../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #15 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to howarth from comment #14) which produces as set of warnings that don't appear in the build of libstdc++-v3/src/c++98/streambuf-inst.cc. These are... ./../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored I have no idea what that means or why building the file with -std=c++11 instead of -std=c++98 causes it, and I don't have any way to check what is different on darwin.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #16 from howarth at bromo dot med.uc.edu --- (In reply to Jonathan Wakely from comment #15) (In reply to howarth from comment #14) which produces as set of warnings that don't appear in the build of libstdc++-v3/src/c++98/streambuf-inst.cc. These are... ./../../../../gcc-5.0-20141105/libstdc++-v3/src/c++11/streambuf-inst.cc:63:1: warning: alias definitions not supported in Mach-O; ignored I have no idea what that means or why building the file with -std=c++11 instead of -std=c++98 causes it, and I don't have any way to check what is different on darwin. This sounds similar to thread https://gcc.gnu.org/ml/gcc/2010-05/msg00164.html. The fact that we see the same warnings indicate the use of -std=c++11 is triggering the use aliases on darwin which is unsupported. The fact that the attached preprocessed source code from gcc trunk doesn't show any instances of '__alias__' makes me wondering if the middle-end is automatically doing this somehow when -std=c++11 is invoked.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #17 from howarth at bromo dot med.uc.edu --- These warnings are emitted from this code in gcc/config/darwin.h /* Mach-O supports 'weak imports', and 'weak definitions' in coalesced sections. machopic_select_section ensures that weak variables go in coalesced sections. Weak aliases (or any other kind of aliases) are not supported. Weak symbols that aren't visible outside the .s file are not supported. */ #define ASM_WEAKEN_DECL(FILE, DECL, NAME, ALIAS)\ do { \ if (ALIAS) \ { \ warning (0, alias definitions not supported in Mach-O; ignored); \ break; \ } \ \ if (! DECL_EXTERNAL (DECL) TREE_PUBLIC (DECL)) \ targetm.asm_out.globalize_label (FILE, NAME); \ if (DECL_EXTERNAL (DECL)) \ fputs (\t.weak_reference , FILE); \ else if (lookup_attribute (weak_import, DECL_ATTRIBUTES (DECL))) \ break;\ else if (TREE_PUBLIC (DECL))\ fputs (\t.weak_definition , FILE); \ else\ break;\ assemble_name (FILE, NAME); \ fputc ('\n', FILE); \ } while (0)
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #18 from howarth at bromo dot med.uc.edu --- Interestingly, these errors don't occur if the compilation of libstdc++-v3/src/c++11/streambuf-inst.cc is done at -O0, -O1 or if -fno-ipa-icf is appended at -O2 or higher.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #19 from howarth at bromo dot med.uc.edu --- Apparently we need something along the lines of the previously proposed IPA ICF aliasing restriction patch, however when applied to current gcc trunk the bootstrap fails at... libtool: compile: /sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc/xgcc -shared-libgcc -B/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/./gcc -nostdinc++ -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/i386/libstdc++-v3/src -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/i386/libstdc++-v3/src/.libs -L/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/i386/libstdc++-v3/libsupc++/.libs -B/sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/bin/ -B/sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/lib/ -isystem /sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/include -isystem /sw/lib/gcc5.0/x86_64-apple-darwin14.0.0/sys-include -m32 -I/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5.0-20141105/libstdc++-v3/../libgcc -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/i386/libstdc++-v3/include/x86_64-apple-darwin14.0.0 -I/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.0.0/i386/libstdc++-v3/include -I/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5.0-20141105/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -frandom-seed=atexit_thread.lo -g -O2 -m32 -std=gnu++11 -c ../../../../../gcc-5.0-20141105/libstdc++-v3/libsupc++/atexit_thread.cc -fno-common -DPIC -D_GLIBCXX_SHARED -o atexit_thread.o ../../../../../gcc-5.0-20141105/libstdc++-v3/libsupc++/atexit_thread.cc: In function ‘void {anonymous}::key_init()’: ../../../../../gcc-5.0-20141105/libstdc++-v3/libsupc++/atexit_thread.cc:111:3: internal compiler error: in cselib_invalidate_regno, at cselib.c:2154 } ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See http://gcc.gnu.org/bugs.html for instructions.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #6 from Martin Liška marxin at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #4) Created attachment 33843 [details] IPA ICF aliasing restriction Can you please try to apply following patch? It should disable alias creation for targets that do not support aliasing. With the patch bootstrap proceeds up to stage 2 where it fails with /opt/gcc/build_w/./prev-gcc/xg++ -B/opt/gcc/build_w/./prev-gcc/ -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/bin/ -nostdinc++ -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/. libs -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include/ x86_64-apple-darwin14.0.0 -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/. libs -c -g -O2 -gtoggle -DIN_GCC-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../work/gcc -I../../work/gcc/. -I../../work/gcc/../include -I./../intl -I../../work/gcc/../libcpp/include -I/opt/mp/include -I../../work/gcc/../libdecnumber -I../../work/gcc/../libdecnumber/dpd -I../libdecnumber -I../../work/gcc/../libbacktrace -DCLOOG_INT_GMP -DCLOOG_INT_GMP -I/opt/mp/include -o tree-inline.o -MT tree-inline.o -MMD -MP -MF ./.deps/tree-inline.TPo ../../work/gcc/tree-inline.c ../../work/gcc/tree-inline.c: In function 'int estimate_num_insns_seq(gimple_seq, eni_weights*)': ../../work/gcc/tree-inline.c:5667:1: error: invalid argument to gimple call } ^ stmts # .MEM_3 = VDEF .MEM_1(D) retval.1640_4 = count_insns_seq (stmts, weights_2(D)); [tail call] ../../work/gcc/tree-inline.c:5667:1: internal compiler error: verify_gimple failed That looks like duplicate of PR63580. I hope the PR will be fixed today. Thanks, Martin ../../work/gcc/tree-inline.c:5667:1: internal compiler error: Abort trap: 6 xg++: internal compiler error: Abort trap: 6 (program cc1plus) make[3]: *** [tree-inline.o] Abort trap: 6 make[3]: Leaving directory `/opt/gcc/build_w/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/opt/gcc/build_w' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/opt/gcc/build_w' make: *** [all] Error 2
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #7 from Dominique d'Humieres dominiq at lps dot ens.fr --- That looks like duplicate of PR63580. I hope the PR will be fixed today. It looks like: I have bootstrapped r216914 with the patches in comment 3 and in PR3580 comment 4. However I have several regressions in the test suite: === acats tests === FAIL:c760002 FAIL:c761002 FAIL:cc1224a FAIL:cc3007a FAIL:cc3007b FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++11 scan-ipa-dump icf Varpool alias has been created FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++1y scan-ipa-dump icf Varpool alias has been created FAIL: g++.dg/ipa/ipa-icf-4.C -std=gnu++98 scan-ipa-dump icf Varpool alias has been created FAIL: gcc.dg/torture/builtin-noret-1.c -O2 (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -O2 (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-1.c -O2 -flto (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -O2 -flto (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-1.c -O2 -flto -flto-partition=none (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -O2 -flto -flto-partition=none (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-1.c -O3 -fomit-frame-pointer (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -O3 -fomit-frame-pointer (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-1.c -O3 -g (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -O3 -g (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-1.c -Os (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-1.c -Os (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 -flto (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 -flto (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 -flto -flto-partition=none (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -O2 -flto -flto-partition=none (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -O3 -fomit-frame-pointer (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -O3 -fomit-frame-pointer (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -O3 -g (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -O3 -g (test for excess errors) FAIL: gcc.dg/torture/builtin-noret-2.c -Os (internal compiler error) FAIL: gcc.dg/torture/builtin-noret-2.c -Os (test for excess errors) -m32 only FAIL: gfortran.dg/assumed_rank_10.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions execution test FAIL: gfortran.dg/assumed_rank_10.f90 -O3 -fomit-frame-pointer -funroll-loops execution test FAIL: gfortran.dg/assumed_rank_8.f90 -O2 execution test FAIL: gfortran.dg/assumed_rank_8.f90 -O3 -fomit-frame-pointer execution test FAIL: gfortran.dg/assumed_rank_8.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions execution test FAIL: gfortran.dg/assumed_rank_8.f90 -O3 -fomit-frame-pointer -funroll-loops execution test FAIL: gfortran.dg/assumed_rank_8.f90 -O3 -g execution test FAIL: gfortran.dg/assumed_rank_8.f90 -Os execution test FAIL: gfortran.dg/assumed_rank_9.f90 -O2 execution test FAIL: gfortran.dg/assumed_rank_9.f90 -O3 -fomit-frame-pointer execution test FAIL: gfortran.dg/assumed_rank_9.f90 -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions execution test FAIL: gfortran.dg/assumed_rank_9.f90 -O3 -fomit-frame-pointer -funroll-loops execution test FAIL: gfortran.dg/assumed_rank_9.f90 -O3 -g execution test FAIL: gfortran.dg/assumed_rank_9.f90 -Os execution test All the failures I have tested disappear if I use -fno-ipa-icf.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #3 from Martin Liška marxin at gcc dot gnu.org --- Created attachment 33843 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33843action=edit IPA ICF aliasing restriction Can you please try to apply following patch? It should disable alias creation for targets that do not support aliasing.
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 --- Comment #4 from Dominique d'Humieres dominiq at lps dot ens.fr --- Created attachment 33843 [details] IPA ICF aliasing restriction Can you please try to apply following patch? It should disable alias creation for targets that do not support aliasing. With the patch bootstrap proceeds up to stage 2 where it fails with /opt/gcc/build_w/./prev-gcc/xg++ -B/opt/gcc/build_w/./prev-gcc/ -B/opt/gcc/gcc4.10w/x86_64-apple-darwin14.0.0/bin/ -nostdinc++ -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -B/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include/x86_64-apple-darwin14.0.0 -I/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/include -I/opt/gcc/work/libstdc++-v3/libsupc++ -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/src/.libs -L/opt/gcc/build_w/prev-x86_64-apple-darwin14.0.0/libstdc++-v3/libsupc++/.libs -c -g -O2 -gtoggle -DIN_GCC-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -I. -I. -I../../work/gcc -I../../work/gcc/. -I../../work/gcc/../include -I./../intl -I../../work/gcc/../libcpp/include -I/opt/mp/include -I../../work/gcc/../libdecnumber -I../../work/gcc/../libdecnumber/dpd -I../libdecnumber -I../../work/gcc/../libbacktrace -DCLOOG_INT_GMP -DCLOOG_INT_GMP -I/opt/mp/include -o tree-inline.o -MT tree-inline.o -MMD -MP -MF ./.deps/tree-inline.TPo ../../work/gcc/tree-inline.c ../../work/gcc/tree-inline.c: In function 'int estimate_num_insns_seq(gimple_seq, eni_weights*)': ../../work/gcc/tree-inline.c:5667:1: error: invalid argument to gimple call } ^ stmts # .MEM_3 = VDEF .MEM_1(D) retval.1640_4 = count_insns_seq (stmts, weights_2(D)); [tail call] ../../work/gcc/tree-inline.c:5667:1: internal compiler error: verify_gimple failed ../../work/gcc/tree-inline.c:5667:1: internal compiler error: Abort trap: 6 xg++: internal compiler error: Abort trap: 6 (program cc1plus) make[3]: *** [tree-inline.o] Abort trap: 6 make[3]: Leaving directory `/opt/gcc/build_w/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/opt/gcc/build_w' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/opt/gcc/build_w' make: *** [all] Error 2
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 howarth at bromo dot med.uc.edu changed: What|Removed |Added CC||howarth at bromo dot med.uc.edu --- Comment #5 from howarth at bromo dot med.uc.edu --- (In reply to Martin Liška from comment #3) Created attachment 33843 [details] IPA ICF aliasing restriction Can you please try to apply following patch? It should disable alias creation for targets that do not support aliasing. Is there a problem with this patch due to the definition of... #define ASM_WEAKEN_DECL(FILE, DECL, NAME, ALIAS)\ in gcc/config/darwin.h?
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |5.0
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2014-10-23 Ever confirmed|0 |1 Severity|normal |blocker --- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr --- If I configure gcc r216305 with the patch in pr63534 comment 33 with ../p_work/configure --prefix=/opt/gcc/gcc4.10p-216305p1 --enable-languages=c,c++,lto,fortran,ada,objc,obj-c++ --with-gmp=/opt/mp --with-system-zlib --enable-checking=release --with-isl=/opt/mp --enable-lto --enable-plugin --with-arch=core2 --with-cpu=core2 and use make BOOT_CFLAGS=-O2 -g -fno-ipa-icf CFLAGS_FOR_TARGET=-O2 -g -fno-ipa-icf CXXFLAGS_FOR_TARGET=-O2 -g -fno-ipa-icf a clean bootstrap fails with rm -f rts/libgnat.dylib rts/libgnarl.dylib cd rts; `echo /opt/gcc/p_build/./gcc/xgcc -B/opt/gcc/p_build/./gcc/ -B/opt/gcc/gcc4.10p-216305p1/x86_64-apple-darwin14.0.0/bin/ -B/opt/gcc/gcc4.10p-216305p1/x86_64-apple-darwin14.0.0/lib/ -isystem /opt/gcc/gcc4.10p-216305p1/x86_64-apple-darwin14.0.0/include -isystem /opt/gcc/gcc4.10p-216305p1/x86_64-apple-darwin14.0.0/sys-include\ | sed -e 's,\./xgcc,../../xgcc,' -e 's,-B\./,-B../../,'` -dynamiclib -fno-common \ -o libgnat-4.10.dylib \ a-assert.o a-btgbso.o a-calari.o a-calcon.o a-caldel.o a-calend.o a-calfor.o a-catizo.o a-cbdlli.o a-cbhama.o a-cbhase.o a-cbmutr.o a-cborma.o a-cborse.o a-cbprqu.o a-cbsyqu.o a-cdlili.o a-cfdlli.o a-cfhama.o a-cfhase.o a-cforma.o a-cforse.o a-cgaaso.o a-cgarso.o a-cgcaso.o a-chacon.o a-chahan.o a-charac.o a-chlat1.o a-chlat9.o a-chtgbk.o a-chtgbo.o a-chtgke.o a-chtgop.o a-chzla1.o a-chzla9.o a-cidlli.o a-cihama.o a-cihase.o a-cimutr.o a-ciorma.o a-ciormu.o a-ciorse.o a-clrefi.o a-cobove.o a-cofove.o a-cogeso.o a-cohama.o a-cohase.o a-cohata.o a-coinho.o a-coinve.o a-colien.o a-colire.o a-comlin.o a-comutr.o a-contai.o a-convec.o a-coorma.o a-coormu.o a-coorse.o a-coprnu.o a-coteio.o a-crbltr.o a-crbtgk.o a-crbtgo.o a-crdlli.o a-csquin.o a-cuprqu.o a-cusyqu.o a-cwila1.o a-cwila9.o a-decima.o a-diocst.o a-direct.o a-direio.o a-dirval.o a-einuoc.o a-elchha.o a-envvar.o a-except.o a-exctra.o a-finali.o a-flteio.o a-fwteio.o a-fzteio.o a-inteio.o a-ioexce.o a-iteint.o a-iwteio.o a-izteio.o a-lcteio.o a-lfteio.o a-lfwtio.o a-lfztio.o a-liteio.o a-liwtio.o a-liztio.o a-llctio.o a-llftio.o a-llfwti.o a-llfzti.o a-llitio.o a-lliwti.o a-llizti.o a-locale.o a-ncelfu.o a-ngcefu.o a-ngcoar.o a-ngcoty.o a-ngelfu.o a-ngrear.o a-nlcefu.o a-nlcoar.o a-nlcoty.o a-nlelfu.o a-nllcar.o a-nllcef.o a-nllcty.o a-nllefu.o a-nllrar.o a-nlrear.o a-nscefu.o a-nscoty.o a-nselfu.o a-nucoar.o a-nucoty.o a-nudira.o a-nuelfu.o a-nuflra.o a-numaux.o a-numeri.o a-nurear.o a-rbtgbk.o a-rbtgbo.o a-rbtgso.o a-sbecin.o a-sbhcin.o a-sblcin.o a-scteio.o a-secain.o a-sequio.o a-sfecin.o a-sfhcin.o a-sflcin.o a-sfteio.o a-sfwtio.o a-sfztio.o a-shcain.o a-siocst.o a-siteio.o a-siwtio.o a-siztio.o a-slcain.o a-ssicst.o a-ssitio.o a-ssiwti.o a-ssizti.o a-stboha.o a-stfiha.o a-stmaco.o a-storio.o a-strbou.o a-stream.o a-strfix.o a-strhas.o a-string.o a-strmap.o a-strsea.o a-strsup.o a-strunb.o a-ststio.o a-stunau.o a-stunha.o a-stuten.o a-stwibo.o a-stwifi.o a-stwiha.o a-stwima.o a-stwise.o a-stwisu.o a-stwiun.o a-stzbou.o a-stzfix.o a-stzhas.o a-stzmap.o a-stzsea.o a-stzsup.o a-stzunb.o a-suecin.o a-suenco.o a-suenst.o a-suewst.o a-suezst.o a-suhcin.o a-sulcin.o a-suteio.o a-swbwha.o a-swfwha.o a-swmwco.o a-swunau.o a-swuwha.o a-swuwti.o a-szbzha.o a-szfzha.o a-szmzco.o a-szunau.o a-szuzha.o a-szuzti.o a-tags.o a-teioed.o a-textio.o a-tgdico.o a-tiboio.o a-ticoau.o a-ticoio.o a-tideau.o a-tideio.o a-tienau.o a-tienio.o a-tifiio.o a-tiflau.o a-tiflio.o a-tigeau.o a-tiinau.o a-tiinio.o a-timoau.o a-timoio.o a-tiocst.o a-tirsfi.o a-titest.o a-tiunio.o a-unccon.o a-uncdea.o a-undesu.o a-wichha.o a-wichun.o a-widcha.o a-witeio.o a-wrstfi.o a-wtcoau.o a-wtcoio.o a-wtcstr.o a-wtdeau.o a-wtdeio.o a-wtedit.o a-wtenau.o a-wtenio.o a-wtfiio.o a-wtflau.o a-wtflio.o a-wtgeau.o a-wtinau.o a-wtinio.o a-wtmoau.o a-wtmoio.o a-wttest.o a-wwboio.o a-wwunio.o a-zchara.o a-zchhan.o a-zchuni.o a-zrstfi.o a-ztcoau.o a-ztcoio.o a-ztcstr.o a-ztdeau.o a-ztdeio.o a-ztedit.o a-ztenau.o a-ztenio.o a-ztexio.o a-ztfiio.o a-ztflau.o a-ztflio.o a-ztgeau.o a-ztinau.o a-ztinio.o a-ztmoau.o a-ztmoio.o a-zttest.o a-zzboio.o a-zzunio.o ada.o calendar.o directio.o g-arrspl.o g-awk.o g-bubsor.o g-busora.o g-busorg.o g-byorma.o g-bytswa.o g-calend.o g-casuti.o g-catiio.o g-cgi.o g-cgicoo.o g-cgideb.o g-comlin.o g-comver.o g-crc32.o g-ctrl_c.o g-curexc.o g-debpoo.o g-debuti.o g-decstr.o g-deutst.o g-diopit.o g-dirope.o g-dynhta.o g-dyntab.o g-encstr.o g-enutst.o g-excact.o g-except.o
[Bug bootstrap/63622] [5.0 Regression] Bootstrap fails on x86_64-apple-darwin1[34] after revision r216305
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63622 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added CC||ebotcazou at gcc dot gnu.org --- Comment #2 from Dominique d'Humieres dominiq at lps dot ens.fr --- I have bootstrapped r216305 without ada. Is there a way to propagate -fno-ipa-icf to the Ada build?