OSDN Git Service

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