https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90889
Bug ID: 90889 Summary: ada: snapshot 20190614 fails to build with LTO Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: jason.duerstock at gmail dot com Target Milestone: --- From debian gcc-snapshot-20190614: https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=amd64&ver=1%3A20190614-1&stamp=1560510118&raw=0 /<<PKGBUILDDIR>>/build/./prev-gcc/gcc-ar -B/<<PKGBUILDDIR>>/build/./prev-gcc/ rcT libbackend.a gimple-match.o generic-match.o insn-attrtab.o insn-automata.o insn-dfatab.o insn-emit.o insn-extract.o insn-latencytab.o insn-modes.o insn-opinit.o insn-output.o insn-peep.o insn-preds.o insn-recog.o insn-enums.o ggc-page.o alias.o alloc-pool.o auto-inc-dec.o auto-profile.o bb-reorder.o bitmap.o bt-load.o builtins.o caller-save.o calls.o ccmp.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfgexpand.o cfghooks.o cfgloop.o cfgloopanal.o cfgloopmanip.o cfgrtl.o symtab.o cgraph.o cgraphbuild.o cgraphunit.o cgraphclones.o combine.o combine-stack-adj.o compare-elim.o context.o convert.o coverage.o cppbuiltin.o cppdefault.o cprop.o cse.o cselib.o data-streamer.o data-streamer-in.o data-streamer-out.o dbxout.o dbgcnt.o dce.o ddg.o debug.o df-core.o df-problems.o df-scan.o dfp.o dojump.o dominance.o domwalk.o double-int.o dse.o dumpfile.o dwarf2asm.o dwarf2cfi.o dwarf2out.o early-remat.o emit-rtl.o et-forest.o except.o explow.o expmed.o expr.o fibonacci_heap.o file-prefix-map.o final.o fixed-value.o fold-const.o fold-const-call.o function.o function-tests.o fwprop.o gcc-rich-location.o gcse.o gcse-common.o ggc-common.o ggc-tests.o gimple.o gimple-builder.o gimple-expr.o gimple-iterator.o gimple-fold.o gimple-laddress.o gimple-loop-interchange.o gimple-loop-jam.o gimple-loop-versioning.o gimple-low.o gimple-pretty-print.o gimple-ssa-backprop.o gimple-ssa-evrp.o gimple-ssa-evrp-analyze.o gimple-ssa-isolate-paths.o gimple-ssa-nonnull-compare.o gimple-ssa-split-paths.o gimple-ssa-store-merging.o gimple-ssa-strength-reduction.o gimple-ssa-sprintf.o gimple-ssa-warn-alloca.o gimple-ssa-warn-restrict.o gimple-streamer-in.o gimple-streamer-out.o gimple-walk.o gimplify.o gimplify-me.o godump.o graph.o graphds.o graphite.o graphite-isl-ast-to-gimple.o graphite-dependences.o graphite-optimize-isl.o graphite-poly.o graphite-scop-detection.o graphite-sese-to-poly.o gtype-desc.o haifa-sched.o hash-map-tests.o hash-set-tests.o hsa-common.o hsa-gen.o hsa-regalloc.o hsa-brig.o hsa-dump.o hw-doloop.o hwint.o ifcvt.o ree.o inchash.o incpath.o init-regs.o internal-fn.o ipa-cp.o ipa-devirt.o ipa-fnsummary.o ipa-polymorphic-call.o ipa-split.o ipa-inline.o ipa-comdats.o ipa-visibility.o ipa-inline-analysis.o ipa-inline-transform.o ipa-predicate.o ipa-profile.o ipa-prop.o ipa-param-manipulation.o ipa-pure-const.o ipa-icf.o ipa-icf-gimple.o ipa-reference.o ipa-hsa.o ipa-ref.o ipa-utils.o ipa.o ira.o ira-build.o ira-costs.o ira-conflicts.o ira-color.o ira-emit.o ira-lives.o jump.o langhooks.o lcm.o lists.o loop-doloop.o loop-init.o loop-invariant.o loop-iv.o loop-unroll.o lower-subreg.o lra.o lra-assigns.o lra-coalesce.o lra-constraints.o lra-eliminations.o lra-lives.o lra-remat.o lra-spills.o lto-cgraph.o lto-streamer.o lto-streamer-in.o lto-streamer-out.o lto-section-in.o lto-section-out.o lto-opts.o lto-compress.o mcf.o mode-switching.o modulo-sched.o multiple_target.o omp-offload.o omp-expand.o omp-general.o omp-grid.o omp-low.o omp-simd-clone.o opt-problem.o optabs.o optabs-libfuncs.o optabs-query.o optabs-tree.o optinfo.o optinfo-emit-json.o options-save.o opts-global.o passes.o plugin.o postreload-gcse.o postreload.o predict.o print-rtl.o print-rtl-function.o print-tree.o profile.o profile-count.o read-md.o read-rtl.o read-rtl-function.o real.o realmpfr.o recog.o reg-stack.o regcprop.o reginfo.o regrename.o regstat.o reload.o reload1.o reorg.o resource.o rtl-error.o rtl-tests.o rtl.o rtlhash.o rtlanal.o rtlhooks.o rtx-vector-builder.o run-rtl-passes.o sched-deps.o sched-ebb.o sched-rgn.o sel-sched-ir.o sel-sched-dump.o sel-sched.o selftest-rtl.o selftest-run-tests.o sese.o shrink-wrap.o simplify-rtx.o sparseset.o spellcheck.o spellcheck-tree.o sreal.o stack-ptr-mod.o statistics.o stmt.o stor-layout.o store-motion.o streamer-hooks.o stringpool.o substring-locations.o target-globals.o targhooks.o timevar.o toplev.o tracer.o trans-mem.o tree-affine.o asan.o tsan.o ubsan.o sanopt.o sancov.o tree-call-cdce.o tree-cfg.o tree-cfgcleanup.o tree-chrec.o tree-complex.o tree-data-ref.o tree-dfa.o tree-diagnostic.o tree-dump.o tree-eh.o tree-emutls.o tree-if-conv.o tree-inline.o tree-into-ssa.o tree-iterator.o tree-loop-distribution.o tree-nested.o tree-nrv.o tree-object-size.o tree-outof-ssa.o tree-parloops.o tree-phinodes.o tree-predcom.o tree-pretty-print.o tree-profile.o tree-scalar-evolution.o tree-sra.o tree-switch-conversion.o tree-ssa-address.o tree-ssa-alias.o tree-ssa-ccp.o tree-ssa-coalesce.o tree-ssa-copy.o tree-ssa-dce.o tree-ssa-dom.o tree-ssa-dse.o tree-ssa-forwprop.o tree-ssa-ifcombine.o tree-ssa-live.o tree-ssa-loop-ch.o tree-ssa-loop-im.o tree-ssa-loop-ivcanon.o tree-ssa-loop-ivopts.o tree-ssa-loop-manip.o tree-ssa-loop-niter.o tree-ssa-loop-prefetch.o tree-ssa-loop-split.o tree-ssa-loop-unswitch.o tree-ssa-loop.o tree-ssa-math-opts.o tree-ssa-operands.o tree-ssa-phiopt.o tree-ssa-phiprop.o tree-ssa-pre.o tree-ssa-propagate.o tree-ssa-reassoc.o tree-ssa-sccvn.o tree-ssa-scopedtables.o tree-ssa-sink.o tree-ssa-strlen.o tree-ssa-structalias.o tree-ssa-tail-merge.o tree-ssa-ter.o tree-ssa-threadbackward.o tree-ssa-threadedge.o tree-ssa-threadupdate.o tree-ssa-uncprop.o tree-ssa-uninit.o tree-ssa.o tree-ssanames.o tree-stdarg.o tree-streamer.o tree-streamer-in.o tree-streamer-out.o tree-tailcall.o tree-vect-generic.o tree-vect-patterns.o tree-vect-data-refs.o tree-vect-stmts.o tree-vect-loop.o tree-vect-loop-manip.o tree-vect-slp.o tree-vectorizer.o tree-vector-builder.o tree-vrp.o tree.o typed-splay-tree.o unique-ptr-tests.o valtrack.o value-prof.o var-tracking.o varasm.o varpool.o vec-perm-indices.o vmsdbgout.o vr-values.o vtable-verify.o web.o wide-int.o wide-int-print.o wide-int-range.o xcoffout.o i386.o x86-tune-sched.o x86-tune-sched-bd.o x86-tune-sched-atom.o x86-tune-sched-core.o i386-options.o i386-builtins.o i386-expand.o i386-features.o linux.o cet.o host-linux.o /<<PKGBUILDDIR>>/build/./prev-gcc/xg++ -B/<<PKGBUILDDIR>>/build/./prev-gcc/ -B/usr/lib/gcc-snapshot/x86_64-linux-gnu/bin/ -nostdinc++ -B/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/src/.libs -B/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs -I/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/include/x86_64-linux-gnu -I/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/include -I/<<PKGBUILDDIR>>/src/libstdc++-v3/libsupc++ -L/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/src/.libs -L/<<PKGBUILDDIR>>/build/prev-x86_64-linux-gnu/libstdc++-v3/libsupc++/.libs -no-pie -g -O2 -fchecking=1 -flto=jobserver -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-z,relro -o gnatbind ada/b_gnatb.o ada/libgnat/a-elchha.o ada/libgnat/a-except.o ada/libgnat/ada.o ada/adaint.o ada/ali-util.o ada/ali.o ada/alloc.o ada/argv.o ada/aspects.o ada/atree.o ada/bcheck.o ada/binde.o ada/binderr.o ada/bindgen.o ada/bindusg.o ada/butil.o ada/casing.o ada/cio.o ada/csets.o ada/cstreams.o ada/debug.o ada/einfo.o ada/elists.o ada/env.o ada/err_vars.o ada/errout.o ada/erroutc.o ada/exit.o ada/final.o ada/fmap.o ada/fname-uf.o ada/fname.o ada/libgnat/g-byorma.o ada/libgnat/g-hesora.o ada/libgnat/g-htable.o ada/libgnat/gnat.o ada/gnatbind.o ada/gnatvsn.o ada/hostparm.o ada/init.o ada/initialize.o ada/libgnat/interfac.o ada/krunch.o ada/lib.o ada/link.o ada/namet.o ada/nlists.o ada/opt.o ada/osint-b.o ada/osint.o ada/output.o ada/raise.o ada/raise-gcc.o ada/restrict.o ada/rident.o ada/rtfinal.o ada/rtinit.o ada/libgnat/s-addope.o ada/libgnat/s-assert.o ada/libgnat/s-carun8.o ada/libgnat/s-casuti.o ada/libgnat/s-conca2.o ada/libgnat/s-conca3.o ada/libgnat/s-conca4.o ada/libgnat/s-conca5.o ada/libgnat/s-conca6.o ada/libgnat/s-conca7.o ada/libgnat/s-conca8.o ada/libgnat/s-conca9.o ada/libgnat/s-crc32.o ada/libgnat/s-crtl.o ada/libgnat/s-excdeb.o ada/libgnat/s-except.o ada/libgnat/s-excmac.o ada/libgnat/s-exctab.o ada/libgnat/s-htable.o ada/libgnat/s-imenne.o ada/libgnat/s-imgenu.o ada/libgnat/s-imgint.o ada/libgnat/s-mastop.o ada/libgnat/s-memory.o ada/libgnat/s-os_lib.o ada/libgnat/s-parame.o ada/libgnat/s-resfil.o ada/libgnat/s-restri.o ada/libgnat/s-secsta.o ada/libgnat/s-soflin.o ada/libgnat/s-soliin.o ada/libgnat/s-sopco3.o ada/libgnat/s-sopco4.o ada/libgnat/s-sopco5.o ada/libgnat/s-stache.o ada/libgnat/s-stalib.o ada/libgnat/s-stoele.o ada/libgnat/s-strhas.o ada/libgnat/s-string.o ada/libgnat/s-strops.o ada/libgnat/s-traent.o ada/libgnat/s-traceb.o ada/libgnat/s-unstyp.o ada/libgnat/s-utf_32.o ada/libgnat/s-wchcnv.o ada/libgnat/s-wchcon.o ada/libgnat/s-wchjis.o ada/libgnat/s-wchstw.o ada/scans.o ada/scil_ll.o ada/scng.o ada/sdefault.o ada/seh_init.o ada/sem_aux.o ada/sinfo.o ada/sinput-c.o ada/sinput.o ada/snames.o ada/stand.o ada/stringt.o ada/style.o ada/styleg.o ada/stylesw.o ada/switch-b.o ada/switch.o ada/libgnat/system.o ada/table.o ada/targext.o ada/targparm.o ada/tree_io.o ada/types.o ada/uintp.o ada/uname.o ada/urealp.o ada/widechar.o ggc-none.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -g -O2 -fchecking=1 -flto=jobserver ../../src/gcc/ada/gnatvsn.adb:57:4: warning: type of 'gnatvsn__version_string' does not match original declaration [-Wlto-type-mismatch] 57 | Version_String : char_array (0 .. Ver_Len_Max - 1); | ^ ../../src/gcc/version.c:34:12: note: array types have different bounds 34 | const char version_string[] = BASEVER DATESTAMP DEVPHASE REVISION; | ^ ../../src/gcc/version.c:34:12: note: 'version_string' was previously declared here ../../src/gcc/ada/libgnat/a-except.adb:1662:17: warning: type of 'ada__exceptions__to_stderr__put_char_stderr__2' does not match original declaration [-Wlto-type-mismatch] 1662 | procedure Put_Char_Stderr (C : Character); | ^ ../../src/gcc/ada/cio.c:127:1: note: type mismatch in parameter 1 127 | put_char_stderr (int c) | ^ ../../src/gcc/ada/cio.c:127:1: note: type 'int' should match type 'character' ../../src/gcc/ada/cio.c:127:1: note: 'put_char_stderr' was previously declared here ../../src/gcc/ada/raise-gcc.c:538:18: warning: type of '__gnat_others_value' does not match original declaration [-Wlto-type-mismatch] 538 | extern const int __gnat_others_value; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:243:4: note: type 'character' should match type 'const int' 243 | Others_Value : constant Character := 'O'; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:243:4: note: 'ada__exceptions__exception_propagation__others_valueXn' was previously declared here ../../src/gcc/ada/raise-gcc.c:541:18: warning: type of '__gnat_all_others_value' does not match original declaration [-Wlto-type-mismatch] 541 | extern const int __gnat_all_others_value; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:246:4: note: type 'character' should match type 'const int' 246 | All_Others_Value : constant Character := 'A'; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:246:4: note: 'ada__exceptions__exception_propagation__all_others_valueXn' was previously declared here ../../src/gcc/ada/raise-gcc.c:544:18: warning: type of '__gnat_unhandled_others_value' does not match original declaration [-Wlto-type-mismatch] 544 | extern const int __gnat_unhandled_others_value; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:249:4: note: type 'character' should match type 'const int' 249 | Unhandled_Others_Value : constant Character := 'U'; | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:249:4: note: 'ada__exceptions__exception_propagation__unhandled_others_valueXn' was previously declared here ../../src/gcc/ada/init.c:94:13: warning: type of 'ada__exceptions__raise_from_signal_handler' does not match original declaration [-Wlto-type-mismatch] 94 | extern void Raise_From_Signal_Handler (struct Exception_Data *, const char *); | ^ ../../src/gcc/ada/libgnat/a-except.adb:1088:4: note: type mismatch in parameter 2 1088 | procedure Raise_From_Signal_Handler | ^ ../../src/gcc/ada/libgnat/a-except.adb:1088:4: note: 'ada__exceptions__raise_from_signal_handler' was previously declared here ../../src/gcc/ada/libgnat/a-except.adb:1088:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/init.c:83:30: warning: type of 'storage_error' does not match original declaration [-Wlto-type-mismatch] 83 | extern struct Exception_Data storage_error; | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:179:4: note: type 'struct exception' should match type 'struct Exception_Data' 179 | Storage_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/raise.h:38:8: note: the incompatible type is defined here 38 | struct Exception_Data | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:179:4: note: 'system__standard_library__storage_error_def' was previously declared here 179 | Storage_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:179:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/init.c:80:30: warning: type of 'constraint_error' does not match original declaration [-Wlto-type-mismatch] 80 | extern struct Exception_Data constraint_error; | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:152:4: note: type 'struct exception' should match type 'struct Exception_Data' 152 | Constraint_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/raise.h:38:8: note: the incompatible type is defined here 38 | struct Exception_Data | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:152:4: note: 'system__standard_library__constraint_error_def' was previously declared here 152 | Constraint_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:152:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/init.c:82:30: warning: type of 'program_error' does not match original declaration [-Wlto-type-mismatch] 82 | extern struct Exception_Data program_error; | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:170:4: note: type 'struct exception' should match type 'struct Exception_Data' 170 | Program_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/raise.h:38:8: note: the incompatible type is defined here 38 | struct Exception_Data | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:170:4: note: 'system__standard_library__program_error_def' was previously declared here 170 | Program_Error_Def : aliased Exception_Data := | ^ ../../src/gcc/ada/libgnat/s-stalib.ads:170:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/raise-gcc.c:896:13: warning: type of '__gnat_language_for' does not match original declaration [-Wlto-type-mismatch] 896 | extern char Language_For (_Unwind_Ptr eid); | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:526:4: note: type mismatch in parameter 1 526 | function Language_For (E : SSL.Exception_Data_Ptr) return Character is | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:526:4: note: type 'struct system__standard_library__exception_data *' should match type '_Unwind_Ptr' ../../src/gcc/ada/libgnat/a-exexpr.adb:526:4: note: 'ada__exceptions__exception_propagation__language_forXn' was previously declared here ../../src/gcc/ada/libgnat/a-exexpr.adb:526:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/raise-gcc.c:895:13: warning: type of '__gnat_is_handled_by_others' does not match original declaration [-Wlto-type-mismatch] 895 | extern bool Is_Handled_By_Others (_Unwind_Ptr eid); | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:517:4: note: return value type mismatch 517 | function Is_Handled_By_Others (E : SSL.Exception_Data_Ptr) return Boolean is | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:517:4: note: type 'boolean' should match type 'bool' ../../src/gcc/ada/libgnat/a-exexpr.adb:517:4: note: 'ada__exceptions__exception_propagation__is_handled_by_othersXn' was previously declared here ../../src/gcc/ada/libgnat/a-exexpr.adb:517:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/raise-gcc.c:898:14: warning: type of '__gnat_foreign_data_for' does not match original declaration [-Wlto-type-mismatch] 898 | extern void *Foreign_Data_For (_Unwind_Ptr eid); | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:506:4: note: type mismatch in parameter 1 506 | function Foreign_Data_For | ^ ../../src/gcc/ada/libgnat/a-exexpr.adb:506:4: note: type 'struct system__standard_library__exception_data *' should match type '_Unwind_Ptr' ../../src/gcc/ada/libgnat/a-exexpr.adb:506:4: note: 'ada__exceptions__exception_propagation__foreign_data_forXn' was previously declared here ../../src/gcc/ada/libgnat/a-exexpr.adb:506:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used ../../src/gcc/ada/raise-gcc.c:903:30: warning: type of 'system__exceptions__foreign_exception' does not match original declaration [-Wlto-type-mismatch] 903 | extern struct Exception_Data Foreign_Exception; | ^ ../../src/gcc/ada/libgnat/s-except.ads:61:4: note: type 'struct exception' should match type 'struct Exception_Data' 61 | Foreign_Exception : exception; | ^ ../../src/gcc/ada/raise.h:38:8: note: the incompatible type is defined here 38 | struct Exception_Data | ^ ../../src/gcc/ada/libgnat/s-except.ads:61:4: note: 'system__exceptions__foreign_exception' was previously declared here 61 | Foreign_Exception : exception; | ^ ../../src/gcc/ada/libgnat/s-except.ads:61:4: note: code may be misoptimized unless '-fno-strict-aliasing' is used during IPA pass: cp lto1: internal compiler error: in ipcp_verify_propagated_values, at ipa-cp.c:1446 0x77d92f ipcp_verify_propagated_values() ../../src/gcc/ipa-cp.c:1446 0x14fc298 ipcp_propagate_stage ../../src/gcc/ipa-cp.c:3314 0x14ffc2b ipcp_driver ../../src/gcc/ipa-cp.c:5096 0x14ffc2b execute ../../src/gcc/ipa-cp.c:5189 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions. lto-wrapper: fatal error: /<<PKGBUILDDIR>>/build/./prev-gcc/xg++ returned 1 exit status compilation terminated. /usr/bin/x86_64-linux-gnu-ld: error: lto-wrapper failed