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