> > tree type_decl = build_decl (input_location, TYPE_DECL, > > > > get_identifier ("__asan_global"), ret); > > > > DECL_IGNORED_P (type_decl) = 1; > > > > DECL_ARTIFICIAL (type_decl) = 1; > > > > TYPE_FIELDS (ret) = fields[0]; > > > > TYPE_NAME (ret) = type_decl; > > > > TYPE_STUB_DECL (ret) = type_decl; > > > > > > It seems to me that setting TYPE_NAME to identifier node would be easier. > > Yeah. I probably added the DECL_INGORED_P to most of those so indeed > type_decls are somewhat pointless.
OK, I will send separate patch and turn those into identifier nodes. > > > gcov uses finish_builtin_struct which in turn does: > > > > #if 0 /* not yet, should get fixed properly later */ > > > > TYPE_NAME (type) = make_type_decl (get_identifier (name), type); > > #else > > TYPE_NAME (type) = build_decl (BUILTINS_LOCATION, > > TYPE_DECL, get_identifier (name), type); > > #endif > > TYPE_STUB_DECL (type) = TYPE_NAME (type); > > > > It does not seem to set artificial. I am not quite sure what to do about > > those. > > given gcov has a runtime component with debug info did we intend to > make the compiler-generated part debuggable maybe? It never appeared to me that I could debug them and source level :). Compiling simple main function with profile gnerate we get: __gcov_.main __gcov0.main __gcov7.main (counters and the structure describing them) Neither of those seems to be accessible from gdb nor we generate debug info for the structures we finalize builtins for. Note that with this patch and sanity check about type_stub_decl being NULL I get the following errors and the lto-bootstrap passes (which is not too bad I would say): Running target unix +FAIL: gcc.c-torture/compile/pr44686.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: gcc.c-torture/compile/pr44686.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: gcc.c-torture/compile/pr44686.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: gcc.c-torture/compile/pr44686.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) XPASS: gcc.dg/guality/example.c -O0 execution test XPASS: gcc.dg/guality/example.c -O1 -DPREVENT_OPTIMIZATION execution test XPASS: gcc.dg/guality/example.c -Og -DPREVENT_OPTIMIZATION execution test @@ -136,15 +140,81 @@ FAIL: gcc.dg/guality/vla-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects -DPREVENT_OPTIMIZATION line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -O3 -g -DPREVENT_OPTIMIZATION line 17 sizeof (a) == 6 FAIL: gcc.dg/guality/vla-1.c -Os -DPREVENT_OPTIMIZATION line 17 sizeof (a) == 6 +FAIL: gcc.dg/lto/20100430-1 c_lto_20100430-1_0.o assemble, -O2 -fprofile-arcs -flto -r -nostdlib (internal compiler error) +UNRESOLVED: gcc.dg/lto/20100430-1 c_lto_20100430-1_0.o-c_lto_20100430-1_0.o execute -O2 -fprofile-arcs -flto -r -nostdlib +UNRESOLVED: gcc.dg/lto/20100430-1 c_lto_20100430-1_0.o-c_lto_20100430-1_0.o link -O2 -fprofile-arcs -flto -r -nostdlib +FAIL: gcc.dg/lto/pr69188 c_lto_pr69188_0.o assemble, -flto -O0 -fprofile-generate (internal compiler error) +UNRESOLVED: gcc.dg/lto/pr69188 c_lto_pr69188_0.o-c_lto_pr69188_1.o execute -flto -O0 -fprofile-generate +UNRESOLVED: gcc.dg/lto/pr69188 c_lto_pr69188_0.o-c_lto_pr69188_1.o link -flto -O0 -fprofile-generate +FAIL: gcc.dg/lto/pr69188 c_lto_pr69188_1.o assemble, -flto -O0 -fprofile-generate (internal compiler error) +FAIL: gcc.dg/torture/pr41261.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: gcc.dg/torture/pr41261.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: gcc.dg/torture/pr41261.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: gcc.dg/torture/pr41261.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: gcc.dg/torture/pr83055.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: gcc.dg/torture/pr83055.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: gcc.dg/torture/pr83055.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: gcc.dg/torture/pr83055.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: gcc.dg/tree-prof/crossmodule-indircall-1.c compilation, -fprofile-generate -D_PROFILE_GENERATE (internal compiler error) +UNRESOLVED: gcc.dg/tree-prof/crossmodule-indircall-1.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/crossmodule-indircall-1.c execution, -fprofile-generate -D_PROFILE_GENERATE +UNRESOLVED: gcc.dg/tree-prof/crossmodule-indircall-1.c execution, -fprofile-use -D_PROFILE_USE +FAIL: gcc.dg/tree-prof/pr79587.c compilation, -fprofile-generate -D_PROFILE_GENERATE (internal compiler error) +UNRESOLVED: gcc.dg/tree-prof/pr79587.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/pr79587.c execution, -fprofile-generate -D_PROFILE_GENERATE +UNRESOLVED: gcc.dg/tree-prof/pr79587.c execution, -fprofile-use -D_PROFILE_USE +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: gcc.dg/vect/bb-slp-pr80705.c -flto -ffat-lto-objects scan-tree-dump slp1 "base object not addressable" +UNRESOLVED: gcc.dg/vect/bb-slp-pr80705.c -flto -ffat-lto-objects scan-tree-dump-not slp1 "MEM[^\\r\\n]*__gcov[^\\r\\n]* = vect_cst" +FAIL: gcc.dg/vect/bb-slp-pr80705.c -flto -ffat-lto-objects (internal compiler error) +FAIL: gcc.dg/vect/bb-slp-pr80705.c -flto -ffat-lto-objects (test for excess errors) === gcc Summary === -# of expected passes 137922 -# of unexpected failures 95 +# of expected passes 137890 +# of unexpected failures 142 # of unexpected successes 23 # of expected failures 469 +# of unresolved testcases 22 # of unsupported tests 2265 -/aux/hubicka/trunk3/build-lto2/gcc/xgcc version 9.0.0 20180820 (experimental) (GCC) +/aux/hubicka/trunk3/build-lto-new/gcc/xgcc version 9.0.0 20180821 (experimental) (GCC) === gfortran tests === @@ -156,7 +226,7 @@ # of expected passes 47667 # of expected failures 104 # of unsupported tests 81 -/aux/hubicka/trunk3/build-lto2/gcc/gfortran version 9.0.0 20180820 (experimental) (GCC) +/aux/hubicka/trunk3/build-lto-new/gcc/gfortran version 9.0.0 20180821 (experimental) (GCC) === g++ tests === @@ -167,14 +237,88 @@ FAIL: g++.dg/pr80481.C -std=gnu++98 scan-assembler-not vmovaps FAIL: g++.dg/pr83239.C -std=gnu++98 (test for excess errors) FAIL: g++.dg/guality/pr55665.C -O2 line 23 p == 40 +FAIL: g++.dg/lto/pr65316 cp_lto_pr65316_0.o assemble, -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 -Wno-return-type (internal compiler error) +UNRESOLVED: g++.dg/lto/pr65316 cp_lto_pr65316_0.o-cp_lto_pr65316_1.o execute -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 -Wno-return-type +UNRESOLVED: g++.dg/lto/pr65316 cp_lto_pr65316_0.o-cp_lto_pr65316_1.o link -flto -std=c++11 -g2 -fno-lto-odr-type-merging -O2 -Wno-return-type +FAIL: g++.dg/torture/pr39732.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/torture/pr39732.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: g++.dg/torture/pr39732.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/torture/pr39732.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: g++.dg/torture/pr40642.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/torture/pr40642.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: g++.dg/torture/pr40642.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/torture/pr40642.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: g++.dg/torture/pr53321.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/torture/pr53321.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: g++.dg/torture/pr53321.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/torture/pr53321.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/builtin-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/builtin-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/load-bool-enum.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-2.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: c-c++-common/ubsan/nonnull-3.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/pr65984.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/pr78858.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: c-c++-common/ubsan/pr79897.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: c-c++-common/ubsan/pr79897.c -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: c-c++-common/ubsan/pr79897.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: c-c++-common/ubsan/pr79897.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: g++.dg/ubsan/pr63913.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/ubsan/pr63913.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +FAIL: g++.dg/ubsan/pr63913.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/ubsan/pr63913.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +FAIL: g++.dg/ubsan/pr82353-2.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/ubsan/pr82353-2.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: g++.dg/ubsan/pr82353-2.C -O2 -flto -fno-use-linker-plugin -flto-partition=none compilation failed to produce executable +FAIL: g++.dg/ubsan/pr82353-2.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/ubsan/pr82353-2.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) +UNRESOLVED: g++.dg/ubsan/pr82353-2.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects compilation failed to produce executable +UNRESOLVED: g++.dg/ubsan/pr82353.C -O2 -flto -fno-use-linker-plugin -flto-partition=none scan-rtl-dump-not reload "Inserting rematerialization insn" +FAIL: g++.dg/ubsan/pr82353.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (internal compiler error) +FAIL: g++.dg/ubsan/pr82353.C -O2 -flto -fno-use-linker-plugin -flto-partition=none (test for excess errors) +UNRESOLVED: g++.dg/ubsan/pr82353.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects scan-rtl-dump-not reload "Inserting rematerialization insn" +FAIL: g++.dg/ubsan/pr82353.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (internal compiler error) +FAIL: g++.dg/ubsan/pr82353.C -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects (test for excess errors) === g++ Summary === Honza > > > In any case we should free lang data frontend created pointer types that may > > get back to IL stream. C++ will give them TYPE_DECL based TYPE_NAMEs that > > we want to translate to identifiers for example. > > Ah, yes, that makes sense. Which means your patch is OK if you reflect > the above in the comment (it's about FE generated pointer types). We > might also somehow forcefully "collect" unused pointer types from the > chains... > > Richard. > > > Honza > > > > > > -- > Richard Biener <rguent...@suse.de> > SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB > 21284 (AG Nuernberg)