]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/ChangeLog
thumb2.md (thumb2_mulsi_short_compare0): Use a low-register for the scratch.
[thirdparty/gcc.git] / lto-plugin / ChangeLog
CommitLineData
92fa7608
RAE
12009-11-19 Rafael Avila de Espindola <espindola@google.com>
2
3 PR bootstrap/42096
4 * lto-plugin.c (claim_file_handler): Print offsets in hex.
5
06bd7f56
RAE
62009-11-12 Rafael Avila de Espindola <espindola@google.com>
7
8 * lto-plugin.c (write_resolution): Assume resolution_file is set.
9 Print the symbol name.
10 (all_symbols_read_handler): Create a resolution file.
11 Pass it to gcc.
12 (cleanup_handler): Remove the resolution file.
13 (process_option): Drop the -resolution option.
14
94086ef6
RAE
152009-11-05 Rafael Avila de Espindola <espindola@google.com>
16
17 * lto-plugin.c (temp_obj_dir_name): Remove.
18 (arguments_file_name): New.
19 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
20 (exec_lto_wrapper): Create arguments file with make_temp_file.
21 (cleanup_handler): Don't remove the temporary directory. Remove the
22 arguments file.
23 (onload): Don't create the temporary directory.
24
7e9dc421
RG
252009-11-04 Richard Guenther <rguenther@suse.de>
26 Rafael Avila de Espindola <espindola@google.com>
27
28 * lto-plugin.c (plugin_file_info): Remove temp field.
29 (cleanup_handler): Don't delete temporary objects.
30 (claim_file_handler): Don't create temporary objects.
31
1cddcdca
RAE
322009-11-04 Rafael Avila de Espindola <espindola@google.com>
33
34 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
35
86ed04df
RAE
362009-10-30 Rafael Avila de Espindola <espindola@google.com>
37
38 PR41871
39 * lto-plugin.c (claim_file_handler): Close files that we created.
40
aff4273c
RAE
412009-10-28 Rafael Avila de Espindola <espindola@google.com>
42
43 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
44 LDPL_ERROR
45
4c0f4b0b
DG
462009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
47
48 PR lto/41652
49 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
50 * configure: Regenerate.
51
03428d41
RG
522009-10-26 Richard Guenther <rguenther@suse.de>
53
54 * configure.ac: Use AM_MAINTAINER_MODE.
55 * acinclude.m4: Remove.
56 * configure: Re-generate.
57 * Makefile.in: Likewise.
58 * aclocal.m4: Likewise.
59
941e566a
RE
602009-10-19 Rafael Avila de Espindola <espindola@google.com>
61
62 PR40790
63 * configure: Regenerate.
64 * configure.ac: Add AC_TYPE_UINT64_T.
65
33662270
RAE
662009-10-16 Rafael Avila de Espindola <espindola@google.com>
67
68 * lto-plugin.c (message): New variable.
69 (check): New function.
70 (parse_table_entry, translate, write_resolution,add_output_files,
71 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
72 assert.
73 (cleanup_handler): Use check instead of assert. Remove the arguments
74 file if it exists.
75
b10071c5
RAE
762009-10-15 Rafael Avila de Espindola <espindola@google.com>
77
78 * lto-plugin.c (resolution_file): New.
79 (free_1): Update comment.
80 (free_2): Free resolution_file.
81 (write_resolution): Write resolution to specified file. Use the
82 syms array from the symbol table.
83 (all_symbols_read_handler): Delay call to free_1 past call to
84 write_resolution.
85 (process_option): Add a -resolution option.
86
076c7ebe
RG
872009-10-13 Richard Guenther <rguenther@suse.de>
88
89 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
90 correct libiberty.
91 * Makefile.in: Regenerated.
92
d520c7fb
RAE
932009-10-08 Rafael Avila de Espindola <espindola@google.com>
94
95 * lto-plugin.c (add_input_library): New.
96 (all_symbols_read_handler): Use add_input_library for items that
97 start with -l.
98 (process_option): Fit in 80 columns.
99 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
100
d7f09764
DN
1012009-10-02 Diego Novillo <dnovillo@google.com>
102
103 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
104 and -D_FILE_OFFSET_BITS=64.
105 * configure.ac: Add AC_SYS_LARGEFILE.
106 * configure: Regenerate.
107 * Makefile.in: Regenerate.
108 * lto-plugin.c: Fix copyright boilerplate.
109
1102009-10-02 Diego Novillo <dnovillo@google.com>
111
112 * Makefile.am (ACLOCAL_AMFLAGS): Define.
113 * aclocal.m4: Regenerate with aclocal-2.64
114 * acinclude.m4: Remove.
115 * Makefile.in: Regenerate with automake-1.11
116 * configure.ac (AC_PREREQ): Update to 2.64.
117 * configure: Regenerate.
118
1192009-10-02 Diego Novillo <dnovillo@google.com>
120
121 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
122 and -D_FILE_OFFSET_BITS=64.
123 * configure.ac: Add AC_SYS_LARGEFILE.
124 * configure: Regenerate.
125 * Makefile.in: Regenerate.
126 * lto-plugin.c: Fix copyright boilerplate.
127
1282009-10-02 Diego Novillo <dnovillo@google.com>
129
130 * Makefile.am (ACLOCAL_AMFLAGS): Define.
131 * aclocal.m4: Regenerate with aclocal-2.64
132 * acinclude.m4: Remove.
133 * Makefile.in: Regenerate with automake-1.11
134 * configure.ac (AC_PREREQ): Update to 2.64.
135 * configure: Regenerate.
136
1372009-10-02 Rafael Avila de Espindola <espindola@google.com>
138
139 * Makefile.am (liblto_plugin_la_SOURCES): Remove
140 $(top_srcdir)/../gcc/lto/common.c
141 * Makefile.in: Regenerate.
142
1432009-10-01 Rafael Avila de Espindola <espindola@google.com>
144
145 * lto-plugin.c (pass_through_items): New.
146 (num_pass_through_items): New.
147 (all_symbols_read_handler): Update to use the -pass-through option.
148 (process_option): Replace -libgcc with -pass-through.
149
1502009-09-30 Rafael Avila de Espindola <espindola@google.com>
151
152 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
153 register_cleanup to be set.
154
1552009-09-30 Rafael Avila de Espindola <espindola@google.com>
156
157 * Makefile.am: Remove all reference to ltosymtab.
158 * Makefile.in: Regenerate.
159 * lto-symtab.c: Remove.
160
1612009-05-21 Diego Novillo <dnovillo@google.com>
162
163 * configure.ac: Remove call to AC_CHECK_GELF.
164 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
165 * acinclude.m4: Do not include ../config/libelf.m4
166 * Makefile.am (LIBELFLIBS): Define.
167 (LIBELFINC): Define.
168 (AM_CPPFLAGS): Add $(LIBELFINC).
169 (ltosymtab_LDADD): Add $(LIBELFLIBS).
170 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
171 * lto-plugin.c: Always include <gelf.h>
172 * lto-symtab.c: Likewise.
173 * configure: Regenerate.
174 * Makefile.in: Regenerate.
175
1762009-03-23 Rafael Avila de Espindola <espindola@google.com>
177
178 * lto-plugin.c (libgcc_filename): New.
179 (all_symbols_read_handler): Pass libgcc to the linker.
180 (all_symbols_read_handler): Parse -libgcc
181
1822009-02-05 Rafael Avila de Espindola <espindola@google.com>
183
184 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
185 * Makefile.in: Regenerate.
186 * lto-plugin.c (add_output_files): Argument is now a FILE.
187 (exec_lto_wrapper): Use writeargv and pex.
188
1892009-02-04 Rafael Avila de Espindola <espindola@google.com>
190
191 Revert:
192 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
193 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
194
195
1962009-02-04 Rafael Avila de Espindola <espindola@google.com>
197
198 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
199
2002009-01-29 Rafael Avila de Espindola <espindola@google.com>
201
202 * lto-plugin.c: Include libiberty.h.
203 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
204 snprintf.
205
2062009-01-29 Rafael Avila de Espindola <espindola@google.com>
207
208 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
209 file to lto-wrapper.
210
2112009-01-28 Rafael Avila de Espindola <espindola@google.com>
212
213 * lto-plugin.c (plugin_file_info): Remove fd and elf.
214 (parse_table_entry): strdup entry->name and entry->comdat_key.
215 (free_1): Free name and comdat_key. Don't close the file. Don't call
216 elf_end.
217 (claim_file_handler): Always call elf_end.
218
2192008-12-23 Rafael Avila de Espindola <espindola@google.com>
220
221 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
222 -D_FILE_OFFSET_BITS=64
223 * Makefile.in: Regenerate
224
2252008-12-22 Rafael Avila de Espindola <espindola@google.com>
226
227 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
228 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
229 * Makefile.in: Regenerate.
230 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
231 * configure: Regenerate.
232 * configure.ac: Add AC_SUBST(target_noncanonical).
233
2342008-12-08 Rafael Avila de Espindola <espindola@google.com>
235
236 * lto-plugin.c: Include stdbool.h.
237 (debug, nop): Declare as bool.
238
2392008-12-08 Rafael Avila de Espindola <espindola@google.com>
240
241 * lto-plugin.c (nop): New.
242 (use_original_files): New.
243 (all_symbols_read_handler): Call use_original_files if nop is true.
244 (process_option): Parse the -nop option.
245
2462008-12-08 Rafael Avila de Espindola <espindola@google.com>
247
248 * lto-plugin.c (debug): New.
249 (exec_lto_wrapper): Print argv if debug is true.
250 (process_option): Process the -debug command line option.
251
2522008-12-03 Rafael Avila de Espindola <espindola@google.com>
253
254 * lto-plugin.c (process_option): The argument is now a single option,
255 not a space separated list.
256
2572008-12-02 Rafael Avila de Espindola <espindola@google.com>
258
259 * lto-plugin.c: Include sys/types.h and sys/wait.h
260 (output_files, num_output_files, lto_wrapper_argv,
261 lto_wrapper_num_args): New.
262 (free_2): Free output_files.
263 (write_resolution): Disable.
264 (add_output_files): New.
265 (exec_lto_wrapper): New.
266 (all_symbols_read_handler): Run lto-wrapper.
267 (claim_file_handler): Free lto_file.name and call elf_end.
268 (process_option): New.
269
2702008-11-26 Rafael Espindola <espindola@google.com>
271
272 * lto-plugin.c (add_input_file): New.
273 (get_section): Return NULL if get_section fails.
274 (write_resolution): New.
275 (all_symbols_read_handler): Call add_input_file.
276 (claim_file_handler): Unlink the correct file.
277 (onload): Record add_input_file.
278
2792008-09-23 Rafael Espindola <espindola@google.com>
280
281 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
282 Update the location of common.c.
283 * Makefile.in: Regenerate.
284 * common.c: Moved to gcc/lto.
285 * common.h: Moved to gcc/lto.
286 * lto-plugin.c: Update the location of common.h.
287 * lto-symtab.c: Update the location of common.h.
288
2892008-09-23 Rafael Espindola <espindola@google.com>
290
291 * common.c: Include common.h.
292 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
293 sizes.
294 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
295 explicit sizes.
296
2972008-09-23 Rafael Espindola <espindola@google.com>
298
299 * lto-plugin.c (plugin_file_info): Add temp.
300 (cleanup_handler): Only delete temporary files.
301 (claim_file_handler): Initialize lto_file.temp.
302
3032008-09-23 Rafael Espindola <espindola@google.com>
304
305 * plugin-api.h: Moved to include.
306
3072008-09-23 Rafael Espindola <espindola@google.com>
308
309 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
310 format.
311
3122008-09-22 Rafael Espindola <espindola@google.com>
313
314 * plugin-api.h: Copy from binutils' cvs.
315
3162008-09-22 Rafael Espindola <espindola@google.com>
317
318 * lto-symtab.c (get_symbols, add_symbols): Update signature.
319 * plugin-api.h: Copy from binutils' cvs.
320
3212008-09-22 Rafael Espindola <espindola@google.com>
322
323 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
324 Make extern
325
3262008-09-10 Rafael Espindola <espindola@google.com>
327
328 * lto-plugin.c (onload): add missing break statements and asserts.
329 * lto-symtab.c (claim_file_handler): Make it static.
330 (all_symbols_read_handler): Make it static.
331 (all_file_handles): Make it static.
332 (num_file_handles): Make it static.
333 (register_claim_file): Make it static.
334 (register_object): Indent properly.
335
3362008-09-10 Rafael Avila de Espindola <espindola@google.com>
337
338 * Makefile.am (ltosymtab_LDADD): Add -lelf.
339 * Makefiel.in: Regenerate.
340 * lto-plugin.c: Include ar.h.
341 (claim_file_handler): Handle file->offset != 0.
342 * lto-symtab.c: Include gelf.h.
343 (all_file_handles): Change type.
344 (register_object): New.
345 (register_file): Add support for archives.
346 (resolve): Update to new type of all_file_handles.
347 (print): Update to new type of all_file_handles.
348 (free_all): Update to new type of all_file_handles.
349 (main): Update to new type of all_file_handles.
350
3512008-09-10 Rafael Avila de Espindola <espindola@google.com>
352
353 * lto-plugin.c (get_string_table): Remove.
354 (get_section): Use elf_strptr instead of get_string_table.
355
3562008-09-08 Doug Kwan <dougkwan@google.com>
357
358 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
359 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
360
3612008-09-08 Rafael Avila de Espindola <espindola@google.com>
362
363 * Makefile.am (ltosymtab_SOURCES): add common.c.
364 (ltosymtab_CFLAGS): New.
365 (liblto_plugin_la_SOURCES): Add common.c.
366 * Makefile.in: Regenerate.
367 * common.c: New.
368 * common.h: New.
369 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
370 (plugin_symtab): New.
371 (plugin_file_info): New.
372 (register_all_symbols_read): New.
373 (get_symbols): New.
374 (claimed_files): New.
375 (num_claimed_files): New.
376 (translate): Don't drop the slot number.
377 (free_1): New.
378 (free_2): New.
379 (all_symbols_read_handler): New.
380 (claim_file_handler): Record every claimed file.
381 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
382 LDPT_GET_SYMBOLS.
383 * lto-symtab.c: Include stdlib.h, string.h and common.h.
384 (current_file_handle): Remove.
385 (ld_plugin_all_symbols_read_handler): New.
386 (plugin_handle): New.
387 (file_handle): New.
388 (all_file_handles): New.
389 (num_file_handles): New.
390 (get_symbols): New.
391 (register_all_symbols_read): New.
392 (add_symbols): Don't print the symbols, just record them.
393 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
394 LDPT_GET_SYMBOLS.
395 (load_plugin): Use plugin_handle.
396 (register_file): Add the file handle to all_file_handles.
397 (resolve): New.
398 (print): New.
399 (unload_plugin): New.
400 (free_all): New.
401 (main): Call all_symbols_read_handler and free resources.
402
4032008-09-03 Rafael Avila de Espindola <espindola@google.com>
404
405 * Makefile.am (AM_CFLAGS): New.
406 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
407 (lib_LTLIBRARIES): New.
408 (liblto_plugin_la_SOURCES): New.
409 (liblto_plugin_la_LIBADD): New.
410 * Makefile.in: Regenerate.
411 * acinclude.m4: Don't include ../config/acx.m4 and
412 ../config/no-executables.m4.
413 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
414 ../libtool.m4.
415 * aclocal.m4: Regenerate.
416 * configure: Regenerate.
417 * configure.ac: Use AM_PROG_LIBTOOL.
418 * lto-plugin.c: New.
419 * lto-symtab.c: Rewrite to use the plugin.
420 * plugin-api.h: New.
421
4222008-08-25 Rafael Avila de Espindola <espindola@google.com>
423
424 * configure: Regenerate.
425 * configure.ac: Use AC_CHECK_GELF.
426 * lto-symtab.c: Include gelf.h.
427 (get_string_table): Use size independent API.
428 (printTable): Use lld to print 64 bit integers.
429
4302008-08-22 Rafael Avila de Espindola <espindola@google.com>
431
432 * lto-symtab.c (parse_table_entry): Assert entry->kind and
433 entry->visibility are valid.
434
4352008-07-22 Rafael Avila de Espindola <espindola@google.com>
436 * lto-symtab.c (table_entry): Add comdat.
437 (parse_table_entry): Read comdat.
438
4392008-08-21 Rafael Espindola <espindola@google.com>
440
441 * Makefile.am: New.
442 * Makefile.in: New.
443 * acinclude.m4: New.
444 * aclocal.m4: New.
445 * configure: New.
446 * configure.ac: New.
447 * lto-symtab.c: New.