libctf, ld: fix data symbol test with newer GCC
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
5347ed60
AM
12021-01-13 Alan Modra <amodra@gmail.com>
2
3 * Makefile.in: Regenerate.
4
d546b610
L
52021-01-12 H.J. Lu <hongjiu.lu@intel.com>
6
7 PR binutils/26792
8 * configure.ac: Use GNU_MAKE_JOBSERVER.
9 * aclocal.m4: Regenerated.
10 * configure: Likewise.
11
83b33c6c
L
122021-01-11 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR ld/27173
15 * configure: Regenerated.
16
a4966cd9
L
172021-01-09 H.J. Lu <hongjiu.lu@intel.com>
18
19 * configure: Regenerated.
20
055bc77a
NC
212021-01-09 Nick Clifton <nickc@redhat.com>
22
23 * 2.36 release branch crated.
24
64307045
AM
252021-01-09 Alan Modra <amodra@gmail.com>
26
27 * configure: Regenerate.
28
f4782128
ST
292021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
30
31 * configure: Regenerate.
32
0814dbfb
NA
332021-01-05 Nick Alcock <nick.alcock@oracle.com>
34
35 * testsuite/libctf-lookup/struct-iteration.c (main):
36 ctf_member_count returns an int.
37
70d3120f
NA
382021-01-05 Nick Alcock <nick.alcock@oracle.com>
39
40 * Makefile.am (BASEDIR): New.
41 (BFDDIR): Likewise.
42 (check-DEJAGNU): Add development.exp to prerequisites.
43 (development.exp): New.
44 (CONFIG_STATUS_DEPENDENCIES): New.
45 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
46 (DISTCLEANFILES): Likewise.
47 * Makefile.in: Regenerated.
48 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
49 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
50 * testsuite/libctf-regression/regression.exp: Likewise.
51
b4b6ea46
NA
522021-01-05 Nick Alcock <nick.alcock@oracle.com>
53
54 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
55 properly.
56
abe4ca69
NA
572021-01-05 Nick Alcock <nick.alcock@oracle.com>
58
59 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
60 <ctf_pptrtab_len>: New.
61 <ctf_pptrtab_typemax>: New.
62 * ctf-create.c (ctf_serialize): Update accordingly.
63 (ctf_add_reftype): Note that we don't need to update pptrtab here,
64 despite updating ptrtab.
65 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
66 (ctf_import): Likewise.
67 (ctf_import_unref): Likewise.
68 * ctf-lookup.c (grow_pptrtab): New.
69 (refresh_pptrtab): New, update a pptrtab.
70 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
71 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
72 use it in addition to the parent's ptrtab when parent dicts are
73 searched.
74 * testsuite/libctf-regression/regression.exp: New testsuite for
75 regression tests.
76 * testsuite/libctf-regression/pptrtab*: New test.
77 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
78 writable CTF dicts.
79 * testsuite/libctf-writable/pptrtab*: New test.
80
8769046e
NA
812021-01-05 Nick Alcock <nick.alcock@oracle.com>
82
83 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
84
6c3a3877
NA
852021-01-05 Nick Alcock <nick.alcock@oracle.com>
86
87 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
88 <ctn_next>: ... here.
89 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
90 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
91 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
92 (ctf_member_next): ... this. Support recursive unnamed member
93 iteration (off by default).
94 (ctf_member_info): Look up members in unnamed sub-structs.
95 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
96 (ctf_dedup_emit_struct_members): Likewise.
97 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
98 members, and a normal member after the end.
99 * testsuite/libctf-lookup/struct-iteration.c: Verify that
100 ctf_member_count is consistent with the number of successful returns
101 from a non-recursive ctf_member_next.
102 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
103 over struct members.
104 * testsuite/libctf-lookup/struct-lookup.c: New test.
105 * testsuite/libctf-lookup/struct-lookup.lk: New test.
106
abed0b07
NA
1072021-01-05 Nick Alcock <nick.alcock@oracle.com>
108
109 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
110 (ctf_link_write): Call it.
111
9bc76971
NA
1122021-01-05 Nick Alcock <nick.alcock@oracle.com>
113
114 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
115 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
116 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
117
c59e30ed
NA
1182021-01-05 Nick Alcock <nick.alcock@oracle.com>
119
120 * Makefile.am (EXPECT): New.
121 (RUNTEST): Likewise.
122 (RUNTESTFLAGS): Likewise.
123 (CC_FOR_TARGET): Likewise.
124 (check-DEJAGNU): Likewise.
125 (AUTOMAKE_OPTIONS): Add dejagnu.
126 * Makefile.in: Regenerated.
127 * testsuite/config/default.exp: New.
128 * testsuite/lib/ctf-lib.exp: Likewise.
129 * testsuite/libctf-lookup/enum.lk: New test.
130 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
131 * testsuite/libctf-lookup/enum.c: New lookup test.
132 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
133 * testsuite/libctf-lookup/lookup.exp: New.
134
1038406a
NA
1352021-01-05 Nick Alcock <nick.alcock@oracle.com>
136
137 * configure.ac (BFD_LIBADD): Remove.
138 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
139 (SHARED_LIBADD): Rename to...
140 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
141 linking statically.
142 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
143 libctf uses libintl.
144 (libctf_la_LIBADD): Reference libbfd.la directly, not via
145 BFD_LIBADD.
146 (libctf_la_DEPENDENCIES): Remove.
147 * Makefile.in: Regenerate.
148 * configure: Likewise.
149
37002871
NA
1502021-01-05 Nick Alcock <nick.alcock@oracle.com>
151
152 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
153 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
154 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
155 (CTF_FT_REFS): New.
156 (CTF_FT_BITFIELD): Likewise.
157 (CTF_FT_ID): Likewise.
158 (ctf_dump_member): Do not do indentation here. Migrate the
159 type-printing parts of this into...
160 (ctf_dump_format_type): ... here, to be shared by all type printers.
161 Get the errno value for non-representable types right. Do not print
162 bitfield info for non-bitfields. Improve the format and indentation
163 of other type output. Shuffle spacing around to make all indentation
164 either 'width of column' or 4 chars.
165 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
166 (ctf_dump_objts): Likewise. Spacing shuffle.
167 (ctf_dump_var): Likewise.
168 (type_hex_digits): Migrate down in the file, to above its new user.
169 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
170 ctf_dump_format_type. Don't trim off excess linefeeds now we no
171 longer generate them. Dump enumerated types.
172
ffeece6a
NA
1732021-01-05 Nick Alcock <nick.alcock@oracle.com>
174
175 * ctf-types.c (ctf_type_resolve): Improve comment.
176 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
177 Emit errors into the right dict.
178 (ctf_type_align): Likewise.
179 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
180 when adding a member without explicit offset when this member, or
181 the previous member, is incomplete.
182 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
183 forwards.
184 (ctf_dump_member): Do not try to print their alignment.
185
91e7ce2f
NA
1862021-01-05 Nick Alcock <nick.alcock@oracle.com>
187
188 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
189 (ctf_dump_format_type): Don't emit the size for function objects.
190 Dump the element type of arrays like we dump the pointed-to type of
191 pointers, etc.
192
57f97d0e
NA
1932021-01-05 Nick Alcock <nick.alcock@oracle.com>
194
195 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
196 (ctf_dump_header): Add 0x to the hex magic number.
197 (ctf_dump_str): Add 0x to the hex string offsets.
198 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
199 (ctf_dump_type): Adjust. Free it when we're done.
200 (type_hex_digits): New.
201 (ctf_dump_member): Align output depending on the width of the type
202 ID being generated. Use printf padding, not a loop, to generate
203 indentation.
204
b09ad6ea
NA
2052021-01-05 Nick Alcock <nick.alcock@oracle.com>
206
207 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
208
a7c23ac9
NB
2092021-01-04 Nicolas Boulenguez <nicolas@debian.org>
210
211 PR 27117
212 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
213 ACLOCAL_AMFLAGS -I dirs.
214 * configure: Regenerate.
215
250d07de
AM
2162021-01-01 Alan Modra <amodra@gmail.com>
217
218 Update year range in copyright notice of all files.
219
c2795844
AM
220For older changes see ChangeLog-2020
221\f
222Copyright (C) 2021 Free Software Foundation, Inc.
60da9d95 223
c2795844
AM
224Copying and distribution of this file, with or without modification,
225are permitted in any medium without royalty provided the copyright
226notice and this notice are preserved.
60da9d95 227
60da9d95
NA
228Local Variables:
229mode: change-log
230left-margin: 8
c2795844 231fill-column: 74
60da9d95
NA
232version-control: never
233End:
This page took 0.122715 seconds and 4 git commands to generate.