]> git.ipfire.org Git - thirdparty/gcc.git/blob - lto-plugin/ChangeLog
missing changelog
[thirdparty/gcc.git] / lto-plugin / ChangeLog
1 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
2
3 PR40790
4 * configure: Regenerate.
5 * configure.ac: Add AC_TYPE_UINT64_T.
6
7 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
8
9 * lto-plugin.c (message): New variable.
10 (check): New function.
11 (parse_table_entry, translate, write_resolution,add_output_files,
12 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
13 assert.
14 (cleanup_handler): Use check instead of assert. Remove the arguments
15 file if it exists.
16
17 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
18
19 * lto-plugin.c (resolution_file): New.
20 (free_1): Update comment.
21 (free_2): Free resolution_file.
22 (write_resolution): Write resolution to specified file. Use the
23 syms array from the symbol table.
24 (all_symbols_read_handler): Delay call to free_1 past call to
25 write_resolution.
26 (process_option): Add a -resolution option.
27
28 2009-10-13 Richard Guenther <rguenther@suse.de>
29
30 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
31 correct libiberty.
32 * Makefile.in: Regenerated.
33
34 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
35
36 * lto-plugin.c (add_input_library): New.
37 (all_symbols_read_handler): Use add_input_library for items that
38 start with -l.
39 (process_option): Fit in 80 columns.
40 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
41
42 2009-10-02 Diego Novillo <dnovillo@google.com>
43
44 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
45 and -D_FILE_OFFSET_BITS=64.
46 * configure.ac: Add AC_SYS_LARGEFILE.
47 * configure: Regenerate.
48 * Makefile.in: Regenerate.
49 * lto-plugin.c: Fix copyright boilerplate.
50
51 2009-10-02 Diego Novillo <dnovillo@google.com>
52
53 * Makefile.am (ACLOCAL_AMFLAGS): Define.
54 * aclocal.m4: Regenerate with aclocal-2.64
55 * acinclude.m4: Remove.
56 * Makefile.in: Regenerate with automake-1.11
57 * configure.ac (AC_PREREQ): Update to 2.64.
58 * configure: Regenerate.
59
60 2009-10-02 Diego Novillo <dnovillo@google.com>
61
62 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
63 and -D_FILE_OFFSET_BITS=64.
64 * configure.ac: Add AC_SYS_LARGEFILE.
65 * configure: Regenerate.
66 * Makefile.in: Regenerate.
67 * lto-plugin.c: Fix copyright boilerplate.
68
69 2009-10-02 Diego Novillo <dnovillo@google.com>
70
71 * Makefile.am (ACLOCAL_AMFLAGS): Define.
72 * aclocal.m4: Regenerate with aclocal-2.64
73 * acinclude.m4: Remove.
74 * Makefile.in: Regenerate with automake-1.11
75 * configure.ac (AC_PREREQ): Update to 2.64.
76 * configure: Regenerate.
77
78 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
79
80 * Makefile.am (liblto_plugin_la_SOURCES): Remove
81 $(top_srcdir)/../gcc/lto/common.c
82 * Makefile.in: Regenerate.
83
84 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
85
86 * lto-plugin.c (pass_through_items): New.
87 (num_pass_through_items): New.
88 (all_symbols_read_handler): Update to use the -pass-through option.
89 (process_option): Replace -libgcc with -pass-through.
90
91 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
92
93 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
94 register_cleanup to be set.
95
96 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
97
98 * Makefile.am: Remove all reference to ltosymtab.
99 * Makefile.in: Regenerate.
100 * lto-symtab.c: Remove.
101
102 2009-05-21 Diego Novillo <dnovillo@google.com>
103
104 * configure.ac: Remove call to AC_CHECK_GELF.
105 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
106 * acinclude.m4: Do not include ../config/libelf.m4
107 * Makefile.am (LIBELFLIBS): Define.
108 (LIBELFINC): Define.
109 (AM_CPPFLAGS): Add $(LIBELFINC).
110 (ltosymtab_LDADD): Add $(LIBELFLIBS).
111 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
112 * lto-plugin.c: Always include <gelf.h>
113 * lto-symtab.c: Likewise.
114 * configure: Regenerate.
115 * Makefile.in: Regenerate.
116
117 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
118
119 * lto-plugin.c (libgcc_filename): New.
120 (all_symbols_read_handler): Pass libgcc to the linker.
121 (all_symbols_read_handler): Parse -libgcc
122
123 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
124
125 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
126 * Makefile.in: Regenerate.
127 * lto-plugin.c (add_output_files): Argument is now a FILE.
128 (exec_lto_wrapper): Use writeargv and pex.
129
130 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
131
132 Revert:
133 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
134 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
135
136
137 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
138
139 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
140
141 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
142
143 * lto-plugin.c: Include libiberty.h.
144 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
145 snprintf.
146
147 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
148
149 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
150 file to lto-wrapper.
151
152 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
153
154 * lto-plugin.c (plugin_file_info): Remove fd and elf.
155 (parse_table_entry): strdup entry->name and entry->comdat_key.
156 (free_1): Free name and comdat_key. Don't close the file. Don't call
157 elf_end.
158 (claim_file_handler): Always call elf_end.
159
160 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
161
162 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
163 -D_FILE_OFFSET_BITS=64
164 * Makefile.in: Regenerate
165
166 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
167
168 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
169 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
170 * Makefile.in: Regenerate.
171 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
172 * configure: Regenerate.
173 * configure.ac: Add AC_SUBST(target_noncanonical).
174
175 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
176
177 * lto-plugin.c: Include stdbool.h.
178 (debug, nop): Declare as bool.
179
180 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
181
182 * lto-plugin.c (nop): New.
183 (use_original_files): New.
184 (all_symbols_read_handler): Call use_original_files if nop is true.
185 (process_option): Parse the -nop option.
186
187 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
188
189 * lto-plugin.c (debug): New.
190 (exec_lto_wrapper): Print argv if debug is true.
191 (process_option): Process the -debug command line option.
192
193 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
194
195 * lto-plugin.c (process_option): The argument is now a single option,
196 not a space separated list.
197
198 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
199
200 * lto-plugin.c: Include sys/types.h and sys/wait.h
201 (output_files, num_output_files, lto_wrapper_argv,
202 lto_wrapper_num_args): New.
203 (free_2): Free output_files.
204 (write_resolution): Disable.
205 (add_output_files): New.
206 (exec_lto_wrapper): New.
207 (all_symbols_read_handler): Run lto-wrapper.
208 (claim_file_handler): Free lto_file.name and call elf_end.
209 (process_option): New.
210
211 2008-11-26 Rafael Espindola <espindola@google.com>
212
213 * lto-plugin.c (add_input_file): New.
214 (get_section): Return NULL if get_section fails.
215 (write_resolution): New.
216 (all_symbols_read_handler): Call add_input_file.
217 (claim_file_handler): Unlink the correct file.
218 (onload): Record add_input_file.
219
220 2008-09-23 Rafael Espindola <espindola@google.com>
221
222 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
223 Update the location of common.c.
224 * Makefile.in: Regenerate.
225 * common.c: Moved to gcc/lto.
226 * common.h: Moved to gcc/lto.
227 * lto-plugin.c: Update the location of common.h.
228 * lto-symtab.c: Update the location of common.h.
229
230 2008-09-23 Rafael Espindola <espindola@google.com>
231
232 * common.c: Include common.h.
233 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
234 sizes.
235 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
236 explicit sizes.
237
238 2008-09-23 Rafael Espindola <espindola@google.com>
239
240 * lto-plugin.c (plugin_file_info): Add temp.
241 (cleanup_handler): Only delete temporary files.
242 (claim_file_handler): Initialize lto_file.temp.
243
244 2008-09-23 Rafael Espindola <espindola@google.com>
245
246 * plugin-api.h: Moved to include.
247
248 2008-09-23 Rafael Espindola <espindola@google.com>
249
250 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
251 format.
252
253 2008-09-22 Rafael Espindola <espindola@google.com>
254
255 * plugin-api.h: Copy from binutils' cvs.
256
257 2008-09-22 Rafael Espindola <espindola@google.com>
258
259 * lto-symtab.c (get_symbols, add_symbols): Update signature.
260 * plugin-api.h: Copy from binutils' cvs.
261
262 2008-09-22 Rafael Espindola <espindola@google.com>
263
264 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
265 Make extern
266
267 2008-09-10 Rafael Espindola <espindola@google.com>
268
269 * lto-plugin.c (onload): add missing break statements and asserts.
270 * lto-symtab.c (claim_file_handler): Make it static.
271 (all_symbols_read_handler): Make it static.
272 (all_file_handles): Make it static.
273 (num_file_handles): Make it static.
274 (register_claim_file): Make it static.
275 (register_object): Indent properly.
276
277 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
278
279 * Makefile.am (ltosymtab_LDADD): Add -lelf.
280 * Makefiel.in: Regenerate.
281 * lto-plugin.c: Include ar.h.
282 (claim_file_handler): Handle file->offset != 0.
283 * lto-symtab.c: Include gelf.h.
284 (all_file_handles): Change type.
285 (register_object): New.
286 (register_file): Add support for archives.
287 (resolve): Update to new type of all_file_handles.
288 (print): Update to new type of all_file_handles.
289 (free_all): Update to new type of all_file_handles.
290 (main): Update to new type of all_file_handles.
291
292 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
293
294 * lto-plugin.c (get_string_table): Remove.
295 (get_section): Use elf_strptr instead of get_string_table.
296
297 2008-09-08 Doug Kwan <dougkwan@google.com>
298
299 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
300 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
301
302 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
303
304 * Makefile.am (ltosymtab_SOURCES): add common.c.
305 (ltosymtab_CFLAGS): New.
306 (liblto_plugin_la_SOURCES): Add common.c.
307 * Makefile.in: Regenerate.
308 * common.c: New.
309 * common.h: New.
310 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
311 (plugin_symtab): New.
312 (plugin_file_info): New.
313 (register_all_symbols_read): New.
314 (get_symbols): New.
315 (claimed_files): New.
316 (num_claimed_files): New.
317 (translate): Don't drop the slot number.
318 (free_1): New.
319 (free_2): New.
320 (all_symbols_read_handler): New.
321 (claim_file_handler): Record every claimed file.
322 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
323 LDPT_GET_SYMBOLS.
324 * lto-symtab.c: Include stdlib.h, string.h and common.h.
325 (current_file_handle): Remove.
326 (ld_plugin_all_symbols_read_handler): New.
327 (plugin_handle): New.
328 (file_handle): New.
329 (all_file_handles): New.
330 (num_file_handles): New.
331 (get_symbols): New.
332 (register_all_symbols_read): New.
333 (add_symbols): Don't print the symbols, just record them.
334 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
335 LDPT_GET_SYMBOLS.
336 (load_plugin): Use plugin_handle.
337 (register_file): Add the file handle to all_file_handles.
338 (resolve): New.
339 (print): New.
340 (unload_plugin): New.
341 (free_all): New.
342 (main): Call all_symbols_read_handler and free resources.
343
344 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
345
346 * Makefile.am (AM_CFLAGS): New.
347 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
348 (lib_LTLIBRARIES): New.
349 (liblto_plugin_la_SOURCES): New.
350 (liblto_plugin_la_LIBADD): New.
351 * Makefile.in: Regenerate.
352 * acinclude.m4: Don't include ../config/acx.m4 and
353 ../config/no-executables.m4.
354 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
355 ../libtool.m4.
356 * aclocal.m4: Regenerate.
357 * configure: Regenerate.
358 * configure.ac: Use AM_PROG_LIBTOOL.
359 * lto-plugin.c: New.
360 * lto-symtab.c: Rewrite to use the plugin.
361 * plugin-api.h: New.
362
363 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
364
365 * configure: Regenerate.
366 * configure.ac: Use AC_CHECK_GELF.
367 * lto-symtab.c: Include gelf.h.
368 (get_string_table): Use size independent API.
369 (printTable): Use lld to print 64 bit integers.
370
371 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
372
373 * lto-symtab.c (parse_table_entry): Assert entry->kind and
374 entry->visibility are valid.
375
376 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
377 * lto-symtab.c (table_entry): Add comdat.
378 (parse_table_entry): Read comdat.
379
380 2008-08-21 Rafael Espindola <espindola@google.com>
381
382 * Makefile.am: New.
383 * Makefile.in: New.
384 * acinclude.m4: New.
385 * aclocal.m4: New.
386 * configure: New.
387 * configure.ac: New.
388 * lto-symtab.c: New.