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