gcc/testsuite/
[official-gcc.git] / lto-plugin / ChangeLog
blob332067ea48e91eaa487acef64db2922d0f6b7c05
1 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3         PR lto/60981
4         * configure.ac: Check for -static-libgcc.
5         * configure: Regenerate.
7 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
9         PR sanitizer/56781
10         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
11         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
12         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
13         over ../libiberty/pic/libiberty.a if the former exists.
14         * Makefile.in: Regenerated.
16         PR sanitizer/56781
17         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
18         * Makefile.in: Regenerated.
20 2014-04-02  Richard Biener  <rguenther@suse.de>
22         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
23         is set in COLLECT_GCC_OPTIONS.
25 2014-03-28  Richard Biener  <rguenther@suse.de>
27         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
29 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
32         for gcc.
33         * configure: Regenerate.
34         * Makefile.am (AM_LDFLAGS): New variable.
35         (liblto_plugin_la_LDFLAGS): Add it.
36         * Makefile.in: Regenerate.
38 2013-09-20  Alan Modra  <amodra@gmail.com>
40         * configure: Regenerate.
42 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
44         * configure: Regenerated.
46 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
48         * lto-plugin.c: Fix typo.
50 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
52         * configure: Regenerated.
54 2012-02-22  Kai Tietz  <ktietz@redhat.com>
56         PR lto/50616
57         * lto-plugin.c (PRI_LL): New macro.
58         (dump_symtab): Use PRI_LL instead of ll in print.
59         (process_symtab): Use PRI_LL instead of ll in scan.
61 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
63         * configure: Regenerate.
65 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
67         * configure: Regenerate.
69 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
71         * configure: Regenerate.
73 2011-10-02  Jan Hubicka  <jh@suse.cz>
75         PR lto/47247
76         * lto-plugin.c (get_symbols_v2): New variable.
77         (write_resolution): Use V2 API when available.
78         (onload): Handle LDPT_GET_SYMBOLS_V2.
80 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
81             Andi Kleen  <ak@linux.intel.com>
83         PR lto/50568
84         * lto-plugin.c (sym_aux): Change id to unsigned long long.
85         (plugin_symtab): Likewise.
86         (dump_symtab): Likewise.
87         (resolve_conflicts): Likewise.
88         (process_symtab): Likewise.
90 2011-08-10  Richard Guenther  <rguenther@suse.de>
92         PR bootstrap/49907
93         lto-plugin/
94         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
95         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
96         * configure: Regenerate.
97         * Makefile.in: Likewise.
98         * aclocal.m4: Likewise.
100 2011-04-20  Jim Meyering  <meyering@redhat.com>
102         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
104 2011-04-05  Richard Guenther  <rguenther@suse.de>
106         PR bootstrap/48431
107         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
109 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111         * Makefile.in: Regenerate.
112         * aclocal.m4: Regenerate.
113         * configure: Regenerate.
115 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117         * Makefile.am (all-local): Rename from 'all'.
118         * Makefile.in: Regenerate.
120 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
122         PR lto/47225
123         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
124         (liblto_plugin_la_LDFLAGS): Add -module.
125         (copy_lto_plugin): Renamed to...
126         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
127         of static modules.
128         * Makefile.in: Rebuild.
130 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
132         PR lto/47225
133         * Makefile.am (Wc): New helper for encoding -Wc,.
134         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
135         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
136         * Makefile.in: Regenerated.
138 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
140         Revert:
142         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
144         PR lto/47225
145         * Makefile.am (Wl): New helper for encoding -Wl,.
146         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
147         * Makefile.in: Regenerated.
149 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
151         PR lto/47225
152         * Makefile.am (Wl): New helper for encoding -Wl,.
153         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
154         * Makefile.in: Regenerated.
156 2011-01-25  Ian Lance Taylor  <iant@google.com>
158         * lto-plugin.c (gold_version): New static variable.
159         (all_symbols_read_handler): Don't check pass_through_items if
160         using gold 1.11 or later.
161         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
163 2011-01-12  Richard Guenther  <rguenther@suse.de>
165         PR lto/47264
166         * lto-plugin.c (parse_table_entry): Use memcpy to access
167         unaligned fields.
169 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
171         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
172         * Makefile.in: Regenerate.
174 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
176         Revert last change.
178 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
180         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
181         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
182         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
183         * Makefile.in: Regenerate.
185 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
187         PR middle-end/46674
188         PR lto/43157
189         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
190         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
191         * configure: Regenerate.
192         * config.h.in: Likewise.
194 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
196         PR target/40125
197         PR lto/46695
198         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
199         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
200         override -bindir setting.
201         * aclocal.m4: Regenerate.
202         * configure: Regenerate.
203         * Makefile.in: Regenerate.
205 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
207         * config.h.in: Regenerated.
208         * configure: Regenerated.
209         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
210         * lto-plugin.c (WIFEXITED): Define default.
211         (WEXITSTATUS): Likeiwse.
213 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
215         * config.h.in: Regenerated.
216         * configure: Regenerated.
217         * Makefile.in: Regenerated.
218         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
219         * lto-plugin.c:  Include sys/wait.h conditionally.
220         * aclocal.m4: Regenerated.
222 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
224         * lto-plugin.c (add_output_files): Fix memory leak.
226 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
228         PR bootstrap/46397
229         PR bootstrap/46362
230         * configure.ac: Add AC_TYPE_INT64_T test.
231         * config.h.in: Regenerate.
232         * configure: Likewise.
233         * lto-plugin.c (debug): Use char not bool.
234         (nop): Likewise.
235         (check_1): Rename from check, and use int not bool for gate argument.
236         (check): Macro wrapper for the above to coerce gate argument into
237         boolean-valued integer in case it has pointer type.
238         (parse_table_entry): Use 0 not false.
239         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
240         into two 32-bit parts and printing as hex ints.
242 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
244         PR lto/46291
245         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
247 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
249         PR lto/46273
250         * lto-plugin.h: Delete.
251         * lto-plugin-elf.c: Likewise.
252         * lto-plugin-coff.c: Likewise.
253         * configure.ac: Don't use libelf, don't source config.gcc.
254         (LIBELFLIBS): Delete.
255         (LIBELFINC): Delete.
256         (LTO_FORMAT): Delete.
257         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
258         (config.h): Add AC_CONFIG_HEADERS directive.
259         * Makefile.am (LIBELFLIBS): Delete.
260         (LIBELFINC): Delete.
261         (LTO_FORMAT): Delete.
262         (DEFS): Import.
263         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
264         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
265         any object-format-specific source file in the link.
266         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
267         * config.h.in: Generate.
268         * configure: Regenerate.
269         * Makefile.in: Likewise.
270         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
271         (LTO_SEGMENT_NAME): New definition.
272         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
273         (LTO_SECTION_PREFIX_LEN): New definition.
274         (struct sym_aux): Struct definition moved here from lto-plugin.h.
275         (struct plugin_symtab): Likewise.
276         (struct plugin_objfile): Likewise.
277         (struct plugin_objfile): New struct def.
278         (enum symbol_style): New enum type.
279         (add_symbols): Make static.
280         (claimed_files): Likewise.
281         (num_claimed_files): Likewise.
282         (sym_style): New global.
283         (check): Make static.
284         (parse_table_entry): Likewise.  Respect sym_style when extracting
285         symbol from symtab entry.
286         (translate): Make static.
287         (resolve_conflicts): Likewise.
288         (process_symtab): New function, per-section callback version of
289         old object-format-specific handling from deleted lto-plugin-elf.c.
290         (claim_file_handler): Convert ELF-specific version from deleted
291         lto-plugin-elf.c to simple_object interface and move here.
292         (process_options): Allow new '-sym-style=' option.
293         (onload): Don't call deleted onload_format_checks hook.
295 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
297         * lto-plugin.c (dump_symtab): Correct printf argument type.
298         (finish_conflict_resolution): Initialize resolution.
300 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
302         PR bootstrap/45951
303         * configure.ac: Add AC_CANONICAL_SYSTEM.
304         * configure: Regenerated.
306 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
308         * configure.ac: Source config.gcc to determine lto_binary_reader.
309         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
310         * Makefile.am (LTO_FORMAT): Import.
311         (liblto_plugin_la_SOURCES): Add object format dependent module
312         defined by LTO_FORMAT.
313         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
314         and work around libtool warning.
315         * configure: Regenerate.
316         * Makefile.in: Likewise.
317         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
318         (struct sym_aux): Likewise.
319         (struct plugin_symtab): Likewise.
320         (struct plugin_file_info): Likewise.
321         (LTO_SECTION_PREFIX): Likewise.
322         (add_symbols):  Make non-static.
323         (claimed_files): Likewise.
324         (num_claimed_files): Likewise.
325         (check): Likewise.
326         (parse_table_entry): Likewise.
327         (translate): Likewise.
328         (resolve_conflicts): Likewise.
329         (process_symtab): Move to new lto-plugin-elf.c object format dependent
330         source file.
331         (claim_file_handler): Likewise, and make non-static.
332         (onload): Call new onload_format_checks function.
333         * lto-plugin.h: New file.
334         (LTO_SECTION_PREFIX): Move here.
335         (struct sym_aux): Likewise.
336         (struct plugin_symtab): Likewise.
337         (struct plugin_file_info): Likewise.
338         (claim_file_handler): Add new function prototype.
339         (onload_format_checks): Likewise.
340         (check): Declare extern.
341         (translate): Likewise.
342         (parse_table_entry): Likewise.
343         (resolve_conflicts): Likewise.
344         (add_symbols):  Likewise.
345         (claimed_files): Likewise.
346         (num_claimed_files): Likewise.
347         * lto-plugin-elf.c (process_symtab): Move here.
348         (claim_file_handler): Likewise, and make non-static.
349         (onload_format_checks): New function factored out from onload.
350         * lto-plugin-coff.c (claim_file_handler): New function stub.
351         (onload_format_checks): Likewise.
353 2010-08-05  Andi Kleen  <ak@linux.intel.com>
355         * lto-plugin.c: Include <hashtab.h>
356         (sym_aux): Add next_conflict field to save conflict chains.
357         (plugin_file_info): Add conflicts symtab.
358         (parse_table_entry): Initialize aux->next_conflict.
359         (process_symtab): Increment found.
360         (dump_symtab): Add.
361         (finish_conflict_resolution): Add.
362         (free_symtab): Add.
363         (write_resolution): Remove symbols loop and move into
364         dump_symtab. Call dump_symtab for main symbol and conflicts table.
365         Call free_symtab to free conflicts table.
366         (SWAP): Add.
367         (eq_sym): Add.
368         (hash_sym): Add.
369         (symbol_strength): Add.
370         (resolve_conflicts): Add.
371         (claim_file_handler): Add n variable. Check return value of
372         process_symtab. Call resolve_conflicts.
374 2010-07-27  Andi Kleen  <ak@linux.intel.com>
376         * lto-plugin.c (translate): Remove debug fprintf.
378 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
380         PR bootstrap/45042
381         * lto-plugin.c (translate): Cast to unsigned long.
383 2010-07-23   Andi Kleen  <ak@linux.intel.com>
385         PR lto/44992
386         * lto-plugin.c (sym_aux): Add.
387         (plugin_symtab): Remove slots. Add aux and id.
388         (parse_table_entry): Change to use aux instead of slots.
389         (LTO_SECTION_PREFIX): Add.
390         (translate): Improve buffer allocation. Change to append
391         symbols to existing out buffer.
392         (get_section): Remove.
393         (process_symtab): Add.
394         (free_2): Free symtab->aux.
395         (write_resolution): Handle aux instead of slots.
396         Print sub id to resolution file.
397         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
398         calls with call to process_symtab.
400 2010-07-22  Richard Guenther  <rguenther@suse.de>
402         * Makefile.am: New copy_lto_plugin rule to install the plugin
403         into ../gcc.
404         * Makefile.in: Regenerated.
406 2010-05-21  Richard Guenther  <rguenther@suse.de>
408         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
410 2010-05-07  Richard Guenther <rguenther@suse.de>
412         * lto-plugin.c (free_2): Do not free resolution_file.
413         (write_resolution): Check that we were passed a resolution file.
414         (all_symbols_read_handler): Adjust.
415         (cleanup_handler): Do not remove the resolution file.
416         (process_option): Handle -fresolution=.
418 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
420         PR other/43620
421         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
422         * Makefile.in: Regenerate.
424 2010-04-23  Richard Guenther  <rguenther@suse.de>
426         PR lto/41550
427         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
428         (translate): Likewise.
429         (all_symbols_read_handler): Likewise.
430         (claim_file_handler): Likewise.
431         (process_option): Likewise.
432         (add_output_files): Likewise.  Remove filename length limit.
434 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
436         * Makefile.in: Regenerate.
437         * aclocal.m4: Regenerate.
439 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
441         PR lto/43336
442         * lto-plugin.c (cleanup_handler): Delete temporary output files.
444 2010-01-11  Richard Guenther  <rguenther@suse.de>
446         PR lto/41569
447         * Makefile.am: Disable dependencies.
448         * Makefile.in: Regenerated.
450 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
452         PR lto/42520
453         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
454         if -v is passed.
456 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
458         PR bootstrap/42306
459         * configure: Regenerated.
460         * Makefile.in: Likewise.
462 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
464         PR bootstrap/42096
465         * lto-plugin.c (claim_file_handler): Print offsets in hex.
467 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
469         * lto-plugin.c (write_resolution): Assume resolution_file is set.
470         Print the symbol name.
471         (all_symbols_read_handler): Create a resolution file.
472         Pass it to gcc.
473         (cleanup_handler): Remove the resolution file.
474         (process_option): Drop the -resolution option.
476 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
478         * lto-plugin.c (temp_obj_dir_name): Remove.
479         (arguments_file_name): New.
480         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
481         (exec_lto_wrapper):  Create arguments file with make_temp_file.
482         (cleanup_handler): Don't remove the temporary directory. Remove the
483         arguments file.
484         (onload): Don't create the temporary directory.
486 2009-11-04  Richard Guenther  <rguenther@suse.de>
487             Rafael Avila de Espindola  <espindola@google.com>
489         * lto-plugin.c (plugin_file_info): Remove temp field.
490         (cleanup_handler): Don't delete temporary objects.
491         (claim_file_handler): Don't create temporary objects.
493 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
495         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
497 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
499         PR41871
500         * lto-plugin.c (claim_file_handler): Close files that we created.
502 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
504         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
505         LDPL_ERROR
507 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
509         PR lto/41652
510         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
511         * configure: Regenerate.
513 2009-10-26  Richard Guenther  <rguenther@suse.de>
515         * configure.ac: Use AM_MAINTAINER_MODE.
516         * acinclude.m4: Remove.
517         * configure: Re-generate.
518         * Makefile.in: Likewise.
519         * aclocal.m4: Likewise.
521 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
522     
523         PR40790
524         * configure: Regenerate.
525         * configure.ac: Add AC_TYPE_UINT64_T.
527 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
529         * lto-plugin.c (message): New variable.
530         (check): New function.
531         (parse_table_entry, translate, write_resolution,add_output_files,
532         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
533         assert.
534         (cleanup_handler): Use check instead of assert. Remove the arguments
535         file if it exists.
537 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
539         * lto-plugin.c (resolution_file): New.
540         (free_1): Update comment.
541         (free_2): Free resolution_file.
542         (write_resolution): Write resolution to specified file. Use the
543         syms array from the symbol table.
544         (all_symbols_read_handler): Delay call to free_1 past call to
545         write_resolution.
546         (process_option): Add a -resolution option.
548 2009-10-13  Richard Guenther  <rguenther@suse.de>
550         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
551         correct libiberty.
552         * Makefile.in: Regenerated.
554 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
556         * lto-plugin.c (add_input_library): New.
557         (all_symbols_read_handler): Use add_input_library for items that
558         start with -l.
559         (process_option): Fit in 80 columns.
560         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
562 2009-10-02  Diego Novillo  <dnovillo@google.com>
564         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
565         and -D_FILE_OFFSET_BITS=64.
566         * configure.ac: Add AC_SYS_LARGEFILE.
567         * configure: Regenerate.
568         * Makefile.in: Regenerate.
569         * lto-plugin.c: Fix copyright boilerplate.
571 2009-10-02  Diego Novillo  <dnovillo@google.com>
573         * Makefile.am (ACLOCAL_AMFLAGS): Define.
574         * aclocal.m4: Regenerate with aclocal-2.64
575         * acinclude.m4: Remove.
576         * Makefile.in: Regenerate with automake-1.11
577         * configure.ac (AC_PREREQ): Update to 2.64.
578         * configure: Regenerate.
580 2009-10-02  Diego Novillo  <dnovillo@google.com>
582         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
583         and -D_FILE_OFFSET_BITS=64.
584         * configure.ac: Add AC_SYS_LARGEFILE.
585         * configure: Regenerate.
586         * Makefile.in: Regenerate.
587         * lto-plugin.c: Fix copyright boilerplate.
589 2009-10-02  Diego Novillo  <dnovillo@google.com>
591         * Makefile.am (ACLOCAL_AMFLAGS): Define.
592         * aclocal.m4: Regenerate with aclocal-2.64
593         * acinclude.m4: Remove.
594         * Makefile.in: Regenerate with automake-1.11
595         * configure.ac (AC_PREREQ): Update to 2.64.
596         * configure: Regenerate.
598 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
600         * Makefile.am (liblto_plugin_la_SOURCES): Remove
601         $(top_srcdir)/../gcc/lto/common.c
602         * Makefile.in: Regenerate.
604 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
606         * lto-plugin.c (pass_through_items): New.
607         (num_pass_through_items): New.
608         (all_symbols_read_handler): Update to use the -pass-through option.
609         (process_option): Replace -libgcc with -pass-through.
610         
611 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
613         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
614         register_cleanup to be set.
616 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
618         * Makefile.am: Remove all reference to ltosymtab.
619         * Makefile.in: Regenerate.
620         * lto-symtab.c: Remove.
622 2009-05-21  Diego Novillo  <dnovillo@google.com>
624         * configure.ac: Remove call to AC_CHECK_GELF.
625         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
626         * acinclude.m4: Do not include ../config/libelf.m4
627         * Makefile.am (LIBELFLIBS): Define.
628         (LIBELFINC): Define.
629         (AM_CPPFLAGS): Add $(LIBELFINC).
630         (ltosymtab_LDADD): Add $(LIBELFLIBS).
631         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
632         * lto-plugin.c: Always include <gelf.h>
633         * lto-symtab.c: Likewise.
634         * configure: Regenerate.
635         * Makefile.in: Regenerate.
637 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
639         * lto-plugin.c (libgcc_filename): New.
640         (all_symbols_read_handler): Pass libgcc to the linker.
641         (all_symbols_read_handler): Parse -libgcc
643 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
645         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
646         * Makefile.in: Regenerate.
647         * lto-plugin.c (add_output_files): Argument is now a FILE.
648         (exec_lto_wrapper): Use writeargv and pex.
650 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
652         Revert:
653         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
654         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
657 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
659         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
661 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
663         * lto-plugin.c: Include libiberty.h.
664         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
665         snprintf.
667 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
669         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
670         file to lto-wrapper.
672 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
674         * lto-plugin.c (plugin_file_info): Remove fd and elf.
675         (parse_table_entry): strdup entry->name and entry->comdat_key.
676         (free_1): Free name and comdat_key. Don't close the file. Don't call
677         elf_end.
678         (claim_file_handler): Always call elf_end.
680 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
682         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
683         -D_FILE_OFFSET_BITS=64
684         * Makefile.in: Regenerate
686 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
688         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
689         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
690         * Makefile.in: Regenerate.
691         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
692         * configure: Regenerate.
693         * configure.ac: Add AC_SUBST(target_noncanonical).
695 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
697         * lto-plugin.c: Include stdbool.h.
698         (debug, nop): Declare as bool.
700 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
702         * lto-plugin.c (nop): New.
703         (use_original_files): New.
704         (all_symbols_read_handler): Call use_original_files if nop is true.
705         (process_option): Parse the -nop option.
707 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
709         * lto-plugin.c (debug): New.
710         (exec_lto_wrapper): Print argv if debug is true.
711         (process_option): Process the -debug command line option.
713 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
715         * lto-plugin.c (process_option): The argument is now a single option,
716         not a space separated list.
718 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
720         * lto-plugin.c: Include sys/types.h and sys/wait.h
721         (output_files, num_output_files, lto_wrapper_argv,
722         lto_wrapper_num_args): New.
723         (free_2): Free output_files.
724         (write_resolution): Disable.
725         (add_output_files): New.
726         (exec_lto_wrapper): New.
727         (all_symbols_read_handler): Run lto-wrapper.
728         (claim_file_handler): Free lto_file.name and call elf_end.
729         (process_option): New.
731 2008-11-26  Rafael Espindola  <espindola@google.com>
733         * lto-plugin.c (add_input_file): New.
734         (get_section): Return NULL if get_section fails.
735         (write_resolution): New.
736         (all_symbols_read_handler): Call add_input_file.
737         (claim_file_handler): Unlink the correct file.
738         (onload): Record add_input_file.
740 2008-09-23 Rafael Espindola  <espindola@google.com>
742         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
743         Update the location of common.c.
744         * Makefile.in: Regenerate.
745         * common.c: Moved to gcc/lto.
746         * common.h: Moved to gcc/lto.
747         * lto-plugin.c: Update the location of common.h.
748         * lto-symtab.c: Update the location of common.h.
750 2008-09-23 Rafael Espindola  <espindola@google.com>
752         * common.c: Include common.h.
753         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
754         sizes.
755         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
756         explicit sizes.
758 2008-09-23 Rafael Espindola  <espindola@google.com>
760         * lto-plugin.c (plugin_file_info): Add temp.
761         (cleanup_handler): Only delete temporary files.
762         (claim_file_handler): Initialize lto_file.temp.
764 2008-09-23  Rafael Espindola  <espindola@google.com>
766         * plugin-api.h: Moved to include.
768 2008-09-23 Rafael Espindola  <espindola@google.com>
770         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
771         format.
773 2008-09-22 Rafael Espindola  <espindola@google.com>
775         * plugin-api.h: Copy from binutils' cvs.
777 2008-09-22 Rafael Espindola  <espindola@google.com>
779         * lto-symtab.c (get_symbols, add_symbols): Update signature.
780         * plugin-api.h: Copy from binutils' cvs.
782 2008-09-22 Rafael Espindola  <espindola@google.com>
784         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
785         Make extern
787 2008-09-10 Rafael Espindola  <espindola@google.com>
789         * lto-plugin.c (onload): add missing break statements and asserts.
790         * lto-symtab.c (claim_file_handler): Make it static.
791         (all_symbols_read_handler): Make it static.
792         (all_file_handles): Make it static.
793         (num_file_handles): Make it static.
794         (register_claim_file): Make it static.
795         (register_object): Indent properly.
797 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
799         * Makefile.am (ltosymtab_LDADD): Add -lelf.
800         * Makefiel.in: Regenerate.
801         * lto-plugin.c: Include ar.h.
802         (claim_file_handler): Handle file->offset != 0.
803         * lto-symtab.c: Include gelf.h.
804         (all_file_handles): Change type.
805         (register_object): New.
806         (register_file): Add support for archives.
807         (resolve): Update to new type of all_file_handles.
808         (print): Update to new type of all_file_handles.
809         (free_all): Update to new type of all_file_handles.
810         (main): Update to new type of all_file_handles.
812 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
814         * lto-plugin.c (get_string_table): Remove.
815         (get_section): Use elf_strptr instead of get_string_table.
817 2008-09-08  Doug Kwan  <dougkwan@google.com>
819         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
820         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
822 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
824         * Makefile.am (ltosymtab_SOURCES): add common.c.
825         (ltosymtab_CFLAGS): New.
826         (liblto_plugin_la_SOURCES): Add common.c.
827         * Makefile.in: Regenerate.
828         * common.c: New.
829         * common.h: New.
830         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
831         (plugin_symtab): New.
832         (plugin_file_info): New.
833         (register_all_symbols_read): New.
834         (get_symbols): New.
835         (claimed_files): New.
836         (num_claimed_files): New.
837         (translate): Don't drop the slot number.
838         (free_1): New.
839         (free_2): New.
840         (all_symbols_read_handler): New.
841         (claim_file_handler): Record every claimed file.
842         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
843         LDPT_GET_SYMBOLS.
844         * lto-symtab.c: Include stdlib.h, string.h and common.h.
845         (current_file_handle): Remove.
846         (ld_plugin_all_symbols_read_handler): New.
847         (plugin_handle): New.
848         (file_handle): New.
849         (all_file_handles): New.
850         (num_file_handles): New.
851         (get_symbols): New.
852         (register_all_symbols_read): New.
853         (add_symbols): Don't print the symbols, just record them.
854         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
855         LDPT_GET_SYMBOLS.
856         (load_plugin): Use plugin_handle.
857         (register_file): Add the file handle to all_file_handles.
858         (resolve): New.
859         (print): New.
860         (unload_plugin): New.
861         (free_all): New.
862         (main): Call all_symbols_read_handler and free resources.
864 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
866         * Makefile.am (AM_CFLAGS): New.
867         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
868         (lib_LTLIBRARIES): New.
869         (liblto_plugin_la_SOURCES): New.
870         (liblto_plugin_la_LIBADD): New.
871         * Makefile.in: Regenerate.
872         * acinclude.m4: Don't include ../config/acx.m4 and
873         ../config/no-executables.m4.
874         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
875         ../libtool.m4.
876         * aclocal.m4: Regenerate.
877         * configure: Regenerate.
878         * configure.ac: Use AM_PROG_LIBTOOL.
879         * lto-plugin.c: New.
880         * lto-symtab.c: Rewrite to use the plugin.
881         * plugin-api.h: New.
883 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
885         * configure: Regenerate.
886         * configure.ac: Use AC_CHECK_GELF.
887         * lto-symtab.c: Include gelf.h.
888         (get_string_table): Use size independent API.
889         (printTable): Use lld to print 64 bit integers.
891 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
893         * lto-symtab.c (parse_table_entry): Assert entry->kind and
894         entry->visibility are valid.
896 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
897         * lto-symtab.c (table_entry): Add comdat.
898         (parse_table_entry): Read comdat.
900 2008-08-21  Rafael Espindola  <espindola@google.com>
902         * Makefile.am: New.
903         * Makefile.in: New.
904         * acinclude.m4: New.
905         * aclocal.m4: New.
906         * configure: New.
907         * configure.ac: New.
908         * lto-symtab.c: New.