mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
ae064303ef
The tests currently in binutils are aimed at the original GCC-based implementation of CTF, which emitted CTF directly from GCC's internal representation. The approach now under review emits CTF from DWARF, with an eye to eventually doing this for all non-DWARF debuginfo-like formats GCC supports. It also uses a different flag to enable CTF emission (-gctf rather than -gt). Adjust the testsuite accordingly. Given that the ld testsuite results are dependent on type ordering, which we do not guarantee at all, it's amazing how little changes. We see a few type ordering differences, slices change because the old GCC was buggy (slices were emitted "backwards", from the wrong end of the machine word) and its expected results were wrong, and GCC now emits the underlying integral type for enumerated types, though CTF has no way to record this yet (coming in v4). GCC also now emits even hidden symbols into the symtab (and thus symtypetab), so one symtypetab test changes its expected results slightly to compensate. Also add tests for the CTF_K_UNKNOWN nonrepresentable type: this couldn't be done before now since the only GCC that emits CTF_K_UNKNOWN for nonrepresentable types is the new one. ld/ChangeLog 2021-05-06 Nick Alcock <nick.alcock@oracle.com> * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt. * testsuite/lib/ld-lib.exp: Likewise. * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types. * testsuite/ld-ctf/nonrepresentable-2.c: Likewise. * testsuite/ld-ctf/nonrepresentable.d: Likewise. * testsuite/ld-ctf/array.d: Larger type section. * testsuite/ld-ctf/data-func-conflicted.d: Likewise. * testsuite/ld-ctf/enums.d: Likewise. * testsuite/ld-ctf/conflicting-enums.d: Don't compare types. * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order. * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise. * testsuite/ld-ctf/slice.d: Adjust for improved slice emission. libctf/ChangeLog 2021-05-06 Nick Alcock <nick.alcock@oracle.com> * testsuite/lib/ctf-lib.exp: Use -gctf, not -gt. * testsuite/libctf-regression/nonstatic-var-section-ld-r.lk: Hidden symbols now get into the symtypetab anyway. |
||
---|---|---|
.. | ||
A-2.c | ||
A.c | ||
array-char.c | ||
array-int.c | ||
array.d | ||
B-2.c | ||
B.c | ||
C-2.c | ||
C.c | ||
child-float.c | ||
child-int.c | ||
conflicting-cycle-1.B-1.d | ||
conflicting-cycle-1.B-2.d | ||
conflicting-cycle-1.parent.d | ||
conflicting-cycle-2.A-1.d | ||
conflicting-cycle-2.A-2.d | ||
conflicting-cycle-2.parent.d | ||
conflicting-cycle-3.C-1.d | ||
conflicting-cycle-3.C-2.d | ||
conflicting-cycle-3.parent.d | ||
conflicting-enums.d | ||
conflicting-typedefs.d | ||
cross-tu-1.c | ||
cross-tu-2.c | ||
cross-tu-conflicting-2.c | ||
cross-tu-cyclic-1.c | ||
cross-tu-cyclic-2.c | ||
cross-tu-cyclic-3.c | ||
cross-tu-cyclic-4.c | ||
cross-tu-cyclic-conflicting.d | ||
cross-tu-cyclic-nonconflicting.d | ||
cross-tu-into-cycle.d | ||
cross-tu-noncyclic.d | ||
ctf.exp | ||
cycle-1.c | ||
cycle-1.d | ||
cycle-2.A.d | ||
cycle-2.B.d | ||
cycle-2.C.d | ||
data-func-1.c | ||
data-func-2.c | ||
data-func-conflicted.d | ||
diag-ctf-version-0.d | ||
diag-ctf-version-0.s | ||
diag-ctf-version-2-unsupported-feature.d | ||
diag-ctf-version-2-unsupported-feature.s | ||
diag-ctf-version-f.d | ||
diag-ctf-version-f.s | ||
diag-cttname-invalid.d | ||
diag-cttname-invalid.s | ||
diag-cttname-null.d | ||
diag-cttname-null.s | ||
diag-cuname.d | ||
diag-cuname.s | ||
diag-decompression-failure.d | ||
diag-decompression-failure.s | ||
diag-parlabel.d | ||
diag-parlabel.s | ||
diag-parname.d | ||
diag-parname.s | ||
diag-unsupported-flag.d | ||
diag-unsupported-flag.s | ||
diag-wrong-magic-number-mixed.d | ||
diag-wrong-magic-number.d | ||
diag-wrong-magic-number.s | ||
enum-2.c | ||
enum-forward.c | ||
enum-forward.d | ||
enum.c | ||
enums.c | ||
enums.d | ||
forward.c | ||
forward.d | ||
function.c | ||
function.d | ||
nonrepresentable-1.c | ||
nonrepresentable-2.c | ||
nonrepresentable.d | ||
slice.c | ||
slice.d | ||
super-sub-cycles.c | ||
super-sub-cycles.d | ||
typedef-int.c | ||
typedef-long.c | ||
union-1.c |