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