https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87229
--- Comment #6 from Andreas Schwab <sch...@linux-m68k.org> --- That breaks gnat.dg/lto19.adb on aarch64. Executing on host: /opt/gcc/gcc-20181120/Build/gcc/gnatmake --GCC=/opt/gcc/gcc-20181120/Build/gcc/xgcc --GNATBIND=/opt/gcc/gcc-20181120/Build/gcc/gnatbind --GNATLINK=/opt/gcc/gcc-20181120/Build/gcc/gnatlink -cargs -B/opt/gcc/gcc-20181120/Build/gcc -largs --GCC=/opt/gcc/gcc-20181120/Build/gcc/xgcc\ -B/opt/gcc/gcc-20181120/Build/gcc\ \ -mabi=lp64 -margs --RTS=/opt/gcc/gcc-20181120/Build/aarch64-suse-linux/./libada -q -f /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19.adb -mabi=lp64 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -flto -lm -o ./lto19.exe (timeout = 300) spawn -ignore SIGHUP /opt/gcc/gcc-20181120/Build/gcc/gnatmake --GCC=/opt/gcc/gcc-20181120/Build/gcc/xgcc --GNATBIND=/opt/gcc/gcc-20181120/Build/gcc/gnatbind --GNATLINK=/opt/gcc/gcc-20181120/Build/gcc/gnatlink -cargs -B/opt/gcc/gcc-20181120/Build/gcc -largs --GCC=/opt/gcc/gcc-20181120/Build/gcc/xgcc -B/opt/gcc/gcc-20181120/Build/gcc -mabi=lp64 -margs --RTS=/opt/gcc/gcc-20181120/Build/aarch64-suse-linux/./libada -q -f /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19.adb -mabi=lp64 -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=never -flto -lm -o ./lto19.exe lto1: error: TYPE_FIELDS defined in incomplete type <record_type 0xffff7cf13888 lto19_pkg1__rec BLK align:32 warn_if_not_align:0 symtab:0 alias-set -1 structural-equality fields <field_decl 0xffff7cf191c8 i type <integer_type 0xffff7cf13e70 integer type <integer_type 0xffff7cd885e8 int> SI size <integer_cst 0xffff7cd7be40 constant 32> unit-size <integer_cst 0xffff7cd7be58 constant 4> align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0xffff7cd885e8 precision:32 min <integer_cst 0xffff7cf163d8 -2147483648> max <integer_cst 0xffff7cf163f0 2147483647> context <translation_unit_decl 0xffff7cf18168 /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19_pkg1.adb>> nonaddressable SI /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19_pkg1.ads:9:5 size <integer_cst 0xffff7cd7be40 32> unit-size <integer_cst 0xffff7cd7be58 4> align:32 warn_if_not_align:0 offset_align 128 offset <integer_cst 0xffff7cd7bc30 constant 0> bit-offset <integer_cst 0xffff7cd7bc78 constant 0> context <record_type 0xffff7cf13888 lto19_pkg1__rec> chain <field_decl 0xffff7cf19130 a type <array_type 0xffff7cf137e0 lto19_pkg1__arr> BLK /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19_pkg1.ads:8:5 align:32 warn_if_not_align:0 offset_align 128 offset <integer_cst 0xffff7cd7bc30 0> bit-offset <integer_cst 0xffff7cd7be40 32> context <record_type 0xffff7cf13888 lto19_pkg1__rec>>> context <translation_unit_decl 0xffff7cf18168 /opt/gcc/gcc-20181120/gcc/testsuite/gnat.dg/lto19_pkg1.adb> pointer_to_this <pointer_type 0xffff7cf1a3f0> reference_to_this <reference_type 0xffff7cf13930>> lto1: internal compiler error: verify_type failed 0xdb963f verify_type(tree_node const*) ../../gcc/tree.c:14320 0x5d2d73 lto_fixup_state ../../gcc/lto/lto.c:2706 0x5df75f lto_fixup_decls ../../gcc/lto/lto.c:2737 0x5df75f read_cgraph_and_symbols ../../gcc/lto/lto.c:2971 0x5df75f lto_main() ../../gcc/lto/lto.c:3401 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: /opt/gcc/gcc-20181120/Build/gcc/xgcc returned 1 exit status compilation terminated. /usr/aarch64-suse-linux/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status gnatlink: error when calling /opt/gcc/gcc-20181120/Build/gcc/xgcc gnatmake: *** link failed. compiler exited with status 1 FAIL: gnat.dg/lto19.adb (internal compiler error)