2015-03-03 Andrew Sutton <andrew.n.sutton@gmail.com>
[official-gcc.git] / lto-plugin / ChangeLog
blob0bb13540db0d6fb1db3fda4ceff062df4bbb5854
1 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3         PR target/63610
4         * configure: Regenerate.
6 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
8         PR bootstrap/62260
9         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
10         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
11         $host_subdir.
12         * Makefile.in: Regenerated.
13         * configure: Likewise.
15 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
17         * configure.ac (--with-libiberty): New configure option.
18         * configure: Regenerate.
19         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
20         variables.
21         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
22         (liblto_plugin_la_DEPENDENCIES): Use them.
23         * Makefile.in: Regenerate.
25 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27         PR lto/60981
28         * configure.ac: Check for -static-libgcc.
29         * configure: Regenerate.
31 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
33         PR sanitizer/56781
34         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
35         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
36         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
37         over ../libiberty/pic/libiberty.a if the former exists.
38         * Makefile.in: Regenerated.
40         PR sanitizer/56781
41         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
42         * Makefile.in: Regenerated.
44 2014-04-02  Richard Biener  <rguenther@suse.de>
46         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
47         is set in COLLECT_GCC_OPTIONS.
49 2014-03-28  Richard Biener  <rguenther@suse.de>
51         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
53 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
55         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
56         for gcc.
57         * configure: Regenerate.
58         * Makefile.am (AM_LDFLAGS): New variable.
59         (liblto_plugin_la_LDFLAGS): Add it.
60         * Makefile.in: Regenerate.
62 2013-09-20  Alan Modra  <amodra@gmail.com>
64         * configure: Regenerate.
66 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
68         * configure: Regenerated.
70 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
72         * lto-plugin.c: Fix typo.
74 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76         * configure: Regenerated.
78 2012-02-22  Kai Tietz  <ktietz@redhat.com>
80         PR lto/50616
81         * lto-plugin.c (PRI_LL): New macro.
82         (dump_symtab): Use PRI_LL instead of ll in print.
83         (process_symtab): Use PRI_LL instead of ll in scan.
85 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
87         * configure: Regenerate.
89 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
91         * configure: Regenerate.
93 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
95         * configure: Regenerate.
97 2011-10-02  Jan Hubicka  <jh@suse.cz>
99         PR lto/47247
100         * lto-plugin.c (get_symbols_v2): New variable.
101         (write_resolution): Use V2 API when available.
102         (onload): Handle LDPT_GET_SYMBOLS_V2.
104 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
105             Andi Kleen  <ak@linux.intel.com>
107         PR lto/50568
108         * lto-plugin.c (sym_aux): Change id to unsigned long long.
109         (plugin_symtab): Likewise.
110         (dump_symtab): Likewise.
111         (resolve_conflicts): Likewise.
112         (process_symtab): Likewise.
114 2011-08-10  Richard Guenther  <rguenther@suse.de>
116         PR bootstrap/49907
117         lto-plugin/
118         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
119         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
120         * configure: Regenerate.
121         * Makefile.in: Likewise.
122         * aclocal.m4: Likewise.
124 2011-04-20  Jim Meyering  <meyering@redhat.com>
126         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
128 2011-04-05  Richard Guenther  <rguenther@suse.de>
130         PR bootstrap/48431
131         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
133 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
135         * Makefile.in: Regenerate.
136         * aclocal.m4: Regenerate.
137         * configure: Regenerate.
139 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
141         * Makefile.am (all-local): Rename from 'all'.
142         * Makefile.in: Regenerate.
144 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
146         PR lto/47225
147         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
148         (liblto_plugin_la_LDFLAGS): Add -module.
149         (copy_lto_plugin): Renamed to...
150         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
151         of static modules.
152         * Makefile.in: Rebuild.
154 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
156         PR lto/47225
157         * Makefile.am (Wc): New helper for encoding -Wc,.
158         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
159         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
160         * Makefile.in: Regenerated.
162 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
164         Revert:
166         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
168         PR lto/47225
169         * Makefile.am (Wl): New helper for encoding -Wl,.
170         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
171         * Makefile.in: Regenerated.
173 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
175         PR lto/47225
176         * Makefile.am (Wl): New helper for encoding -Wl,.
177         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
178         * Makefile.in: Regenerated.
180 2011-01-25  Ian Lance Taylor  <iant@google.com>
182         * lto-plugin.c (gold_version): New static variable.
183         (all_symbols_read_handler): Don't check pass_through_items if
184         using gold 1.11 or later.
185         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
187 2011-01-12  Richard Guenther  <rguenther@suse.de>
189         PR lto/47264
190         * lto-plugin.c (parse_table_entry): Use memcpy to access
191         unaligned fields.
193 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
195         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
196         * Makefile.in: Regenerate.
198 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
200         Revert last change.
202 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
204         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
205         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
206         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
207         * Makefile.in: Regenerate.
209 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
211         PR middle-end/46674
212         PR lto/43157
213         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
214         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
215         * configure: Regenerate.
216         * config.h.in: Likewise.
218 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
220         PR target/40125
221         PR lto/46695
222         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
223         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
224         override -bindir setting.
225         * aclocal.m4: Regenerate.
226         * configure: Regenerate.
227         * Makefile.in: Regenerate.
229 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
231         * config.h.in: Regenerated.
232         * configure: Regenerated.
233         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
234         * lto-plugin.c (WIFEXITED): Define default.
235         (WEXITSTATUS): Likeiwse.
237 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
239         * config.h.in: Regenerated.
240         * configure: Regenerated.
241         * Makefile.in: Regenerated.
242         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
243         * lto-plugin.c:  Include sys/wait.h conditionally.
244         * aclocal.m4: Regenerated.
246 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
248         * lto-plugin.c (add_output_files): Fix memory leak.
250 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
252         PR bootstrap/46397
253         PR bootstrap/46362
254         * configure.ac: Add AC_TYPE_INT64_T test.
255         * config.h.in: Regenerate.
256         * configure: Likewise.
257         * lto-plugin.c (debug): Use char not bool.
258         (nop): Likewise.
259         (check_1): Rename from check, and use int not bool for gate argument.
260         (check): Macro wrapper for the above to coerce gate argument into
261         boolean-valued integer in case it has pointer type.
262         (parse_table_entry): Use 0 not false.
263         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
264         into two 32-bit parts and printing as hex ints.
266 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
268         PR lto/46291
269         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
271 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
273         PR lto/46273
274         * lto-plugin.h: Delete.
275         * lto-plugin-elf.c: Likewise.
276         * lto-plugin-coff.c: Likewise.
277         * configure.ac: Don't use libelf, don't source config.gcc.
278         (LIBELFLIBS): Delete.
279         (LIBELFINC): Delete.
280         (LTO_FORMAT): Delete.
281         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
282         (config.h): Add AC_CONFIG_HEADERS directive.
283         * Makefile.am (LIBELFLIBS): Delete.
284         (LIBELFINC): Delete.
285         (LTO_FORMAT): Delete.
286         (DEFS): Import.
287         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
288         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
289         any object-format-specific source file in the link.
290         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
291         * config.h.in: Generate.
292         * configure: Regenerate.
293         * Makefile.in: Likewise.
294         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
295         (LTO_SEGMENT_NAME): New definition.
296         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
297         (LTO_SECTION_PREFIX_LEN): New definition.
298         (struct sym_aux): Struct definition moved here from lto-plugin.h.
299         (struct plugin_symtab): Likewise.
300         (struct plugin_objfile): Likewise.
301         (struct plugin_objfile): New struct def.
302         (enum symbol_style): New enum type.
303         (add_symbols): Make static.
304         (claimed_files): Likewise.
305         (num_claimed_files): Likewise.
306         (sym_style): New global.
307         (check): Make static.
308         (parse_table_entry): Likewise.  Respect sym_style when extracting
309         symbol from symtab entry.
310         (translate): Make static.
311         (resolve_conflicts): Likewise.
312         (process_symtab): New function, per-section callback version of
313         old object-format-specific handling from deleted lto-plugin-elf.c.
314         (claim_file_handler): Convert ELF-specific version from deleted
315         lto-plugin-elf.c to simple_object interface and move here.
316         (process_options): Allow new '-sym-style=' option.
317         (onload): Don't call deleted onload_format_checks hook.
319 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
321         * lto-plugin.c (dump_symtab): Correct printf argument type.
322         (finish_conflict_resolution): Initialize resolution.
324 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
326         PR bootstrap/45951
327         * configure.ac: Add AC_CANONICAL_SYSTEM.
328         * configure: Regenerated.
330 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
332         * configure.ac: Source config.gcc to determine lto_binary_reader.
333         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
334         * Makefile.am (LTO_FORMAT): Import.
335         (liblto_plugin_la_SOURCES): Add object format dependent module
336         defined by LTO_FORMAT.
337         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
338         and work around libtool warning.
339         * configure: Regenerate.
340         * Makefile.in: Likewise.
341         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
342         (struct sym_aux): Likewise.
343         (struct plugin_symtab): Likewise.
344         (struct plugin_file_info): Likewise.
345         (LTO_SECTION_PREFIX): Likewise.
346         (add_symbols):  Make non-static.
347         (claimed_files): Likewise.
348         (num_claimed_files): Likewise.
349         (check): Likewise.
350         (parse_table_entry): Likewise.
351         (translate): Likewise.
352         (resolve_conflicts): Likewise.
353         (process_symtab): Move to new lto-plugin-elf.c object format dependent
354         source file.
355         (claim_file_handler): Likewise, and make non-static.
356         (onload): Call new onload_format_checks function.
357         * lto-plugin.h: New file.
358         (LTO_SECTION_PREFIX): Move here.
359         (struct sym_aux): Likewise.
360         (struct plugin_symtab): Likewise.
361         (struct plugin_file_info): Likewise.
362         (claim_file_handler): Add new function prototype.
363         (onload_format_checks): Likewise.
364         (check): Declare extern.
365         (translate): Likewise.
366         (parse_table_entry): Likewise.
367         (resolve_conflicts): Likewise.
368         (add_symbols):  Likewise.
369         (claimed_files): Likewise.
370         (num_claimed_files): Likewise.
371         * lto-plugin-elf.c (process_symtab): Move here.
372         (claim_file_handler): Likewise, and make non-static.
373         (onload_format_checks): New function factored out from onload.
374         * lto-plugin-coff.c (claim_file_handler): New function stub.
375         (onload_format_checks): Likewise.
377 2010-08-05  Andi Kleen  <ak@linux.intel.com>
379         * lto-plugin.c: Include <hashtab.h>
380         (sym_aux): Add next_conflict field to save conflict chains.
381         (plugin_file_info): Add conflicts symtab.
382         (parse_table_entry): Initialize aux->next_conflict.
383         (process_symtab): Increment found.
384         (dump_symtab): Add.
385         (finish_conflict_resolution): Add.
386         (free_symtab): Add.
387         (write_resolution): Remove symbols loop and move into
388         dump_symtab. Call dump_symtab for main symbol and conflicts table.
389         Call free_symtab to free conflicts table.
390         (SWAP): Add.
391         (eq_sym): Add.
392         (hash_sym): Add.
393         (symbol_strength): Add.
394         (resolve_conflicts): Add.
395         (claim_file_handler): Add n variable. Check return value of
396         process_symtab. Call resolve_conflicts.
398 2010-07-27  Andi Kleen  <ak@linux.intel.com>
400         * lto-plugin.c (translate): Remove debug fprintf.
402 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
404         PR bootstrap/45042
405         * lto-plugin.c (translate): Cast to unsigned long.
407 2010-07-23   Andi Kleen  <ak@linux.intel.com>
409         PR lto/44992
410         * lto-plugin.c (sym_aux): Add.
411         (plugin_symtab): Remove slots. Add aux and id.
412         (parse_table_entry): Change to use aux instead of slots.
413         (LTO_SECTION_PREFIX): Add.
414         (translate): Improve buffer allocation. Change to append
415         symbols to existing out buffer.
416         (get_section): Remove.
417         (process_symtab): Add.
418         (free_2): Free symtab->aux.
419         (write_resolution): Handle aux instead of slots.
420         Print sub id to resolution file.
421         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
422         calls with call to process_symtab.
424 2010-07-22  Richard Guenther  <rguenther@suse.de>
426         * Makefile.am: New copy_lto_plugin rule to install the plugin
427         into ../gcc.
428         * Makefile.in: Regenerated.
430 2010-05-21  Richard Guenther  <rguenther@suse.de>
432         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
434 2010-05-07  Richard Guenther <rguenther@suse.de>
436         * lto-plugin.c (free_2): Do not free resolution_file.
437         (write_resolution): Check that we were passed a resolution file.
438         (all_symbols_read_handler): Adjust.
439         (cleanup_handler): Do not remove the resolution file.
440         (process_option): Handle -fresolution=.
442 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
444         PR other/43620
445         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
446         * Makefile.in: Regenerate.
448 2010-04-23  Richard Guenther  <rguenther@suse.de>
450         PR lto/41550
451         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
452         (translate): Likewise.
453         (all_symbols_read_handler): Likewise.
454         (claim_file_handler): Likewise.
455         (process_option): Likewise.
456         (add_output_files): Likewise.  Remove filename length limit.
458 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
460         * Makefile.in: Regenerate.
461         * aclocal.m4: Regenerate.
463 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
465         PR lto/43336
466         * lto-plugin.c (cleanup_handler): Delete temporary output files.
468 2010-01-11  Richard Guenther  <rguenther@suse.de>
470         PR lto/41569
471         * Makefile.am: Disable dependencies.
472         * Makefile.in: Regenerated.
474 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
476         PR lto/42520
477         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
478         if -v is passed.
480 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
482         PR bootstrap/42306
483         * configure: Regenerated.
484         * Makefile.in: Likewise.
486 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
488         PR bootstrap/42096
489         * lto-plugin.c (claim_file_handler): Print offsets in hex.
491 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
493         * lto-plugin.c (write_resolution): Assume resolution_file is set.
494         Print the symbol name.
495         (all_symbols_read_handler): Create a resolution file.
496         Pass it to gcc.
497         (cleanup_handler): Remove the resolution file.
498         (process_option): Drop the -resolution option.
500 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
502         * lto-plugin.c (temp_obj_dir_name): Remove.
503         (arguments_file_name): New.
504         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
505         (exec_lto_wrapper):  Create arguments file with make_temp_file.
506         (cleanup_handler): Don't remove the temporary directory. Remove the
507         arguments file.
508         (onload): Don't create the temporary directory.
510 2009-11-04  Richard Guenther  <rguenther@suse.de>
511             Rafael Avila de Espindola  <espindola@google.com>
513         * lto-plugin.c (plugin_file_info): Remove temp field.
514         (cleanup_handler): Don't delete temporary objects.
515         (claim_file_handler): Don't create temporary objects.
517 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
519         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
521 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
523         PR41871
524         * lto-plugin.c (claim_file_handler): Close files that we created.
526 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
528         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
529         LDPL_ERROR
531 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
533         PR lto/41652
534         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
535         * configure: Regenerate.
537 2009-10-26  Richard Guenther  <rguenther@suse.de>
539         * configure.ac: Use AM_MAINTAINER_MODE.
540         * acinclude.m4: Remove.
541         * configure: Re-generate.
542         * Makefile.in: Likewise.
543         * aclocal.m4: Likewise.
545 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
546     
547         PR40790
548         * configure: Regenerate.
549         * configure.ac: Add AC_TYPE_UINT64_T.
551 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
553         * lto-plugin.c (message): New variable.
554         (check): New function.
555         (parse_table_entry, translate, write_resolution,add_output_files,
556         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
557         assert.
558         (cleanup_handler): Use check instead of assert. Remove the arguments
559         file if it exists.
561 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
563         * lto-plugin.c (resolution_file): New.
564         (free_1): Update comment.
565         (free_2): Free resolution_file.
566         (write_resolution): Write resolution to specified file. Use the
567         syms array from the symbol table.
568         (all_symbols_read_handler): Delay call to free_1 past call to
569         write_resolution.
570         (process_option): Add a -resolution option.
572 2009-10-13  Richard Guenther  <rguenther@suse.de>
574         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
575         correct libiberty.
576         * Makefile.in: Regenerated.
578 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
580         * lto-plugin.c (add_input_library): New.
581         (all_symbols_read_handler): Use add_input_library for items that
582         start with -l.
583         (process_option): Fit in 80 columns.
584         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
586 2009-10-02  Diego Novillo  <dnovillo@google.com>
588         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
589         and -D_FILE_OFFSET_BITS=64.
590         * configure.ac: Add AC_SYS_LARGEFILE.
591         * configure: Regenerate.
592         * Makefile.in: Regenerate.
593         * lto-plugin.c: Fix copyright boilerplate.
595 2009-10-02  Diego Novillo  <dnovillo@google.com>
597         * Makefile.am (ACLOCAL_AMFLAGS): Define.
598         * aclocal.m4: Regenerate with aclocal-2.64
599         * acinclude.m4: Remove.
600         * Makefile.in: Regenerate with automake-1.11
601         * configure.ac (AC_PREREQ): Update to 2.64.
602         * configure: Regenerate.
604 2009-10-02  Diego Novillo  <dnovillo@google.com>
606         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
607         and -D_FILE_OFFSET_BITS=64.
608         * configure.ac: Add AC_SYS_LARGEFILE.
609         * configure: Regenerate.
610         * Makefile.in: Regenerate.
611         * lto-plugin.c: Fix copyright boilerplate.
613 2009-10-02  Diego Novillo  <dnovillo@google.com>
615         * Makefile.am (ACLOCAL_AMFLAGS): Define.
616         * aclocal.m4: Regenerate with aclocal-2.64
617         * acinclude.m4: Remove.
618         * Makefile.in: Regenerate with automake-1.11
619         * configure.ac (AC_PREREQ): Update to 2.64.
620         * configure: Regenerate.
622 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
624         * Makefile.am (liblto_plugin_la_SOURCES): Remove
625         $(top_srcdir)/../gcc/lto/common.c
626         * Makefile.in: Regenerate.
628 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
630         * lto-plugin.c (pass_through_items): New.
631         (num_pass_through_items): New.
632         (all_symbols_read_handler): Update to use the -pass-through option.
633         (process_option): Replace -libgcc with -pass-through.
634         
635 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
637         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
638         register_cleanup to be set.
640 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
642         * Makefile.am: Remove all reference to ltosymtab.
643         * Makefile.in: Regenerate.
644         * lto-symtab.c: Remove.
646 2009-05-21  Diego Novillo  <dnovillo@google.com>
648         * configure.ac: Remove call to AC_CHECK_GELF.
649         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
650         * acinclude.m4: Do not include ../config/libelf.m4
651         * Makefile.am (LIBELFLIBS): Define.
652         (LIBELFINC): Define.
653         (AM_CPPFLAGS): Add $(LIBELFINC).
654         (ltosymtab_LDADD): Add $(LIBELFLIBS).
655         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
656         * lto-plugin.c: Always include <gelf.h>
657         * lto-symtab.c: Likewise.
658         * configure: Regenerate.
659         * Makefile.in: Regenerate.
661 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
663         * lto-plugin.c (libgcc_filename): New.
664         (all_symbols_read_handler): Pass libgcc to the linker.
665         (all_symbols_read_handler): Parse -libgcc
667 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
669         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
670         * Makefile.in: Regenerate.
671         * lto-plugin.c (add_output_files): Argument is now a FILE.
672         (exec_lto_wrapper): Use writeargv and pex.
674 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
676         Revert:
677         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
678         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
681 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
683         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
685 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
687         * lto-plugin.c: Include libiberty.h.
688         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
689         snprintf.
691 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
693         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
694         file to lto-wrapper.
696 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
698         * lto-plugin.c (plugin_file_info): Remove fd and elf.
699         (parse_table_entry): strdup entry->name and entry->comdat_key.
700         (free_1): Free name and comdat_key. Don't close the file. Don't call
701         elf_end.
702         (claim_file_handler): Always call elf_end.
704 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
706         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
707         -D_FILE_OFFSET_BITS=64
708         * Makefile.in: Regenerate
710 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
712         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
713         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
714         * Makefile.in: Regenerate.
715         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
716         * configure: Regenerate.
717         * configure.ac: Add AC_SUBST(target_noncanonical).
719 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
721         * lto-plugin.c: Include stdbool.h.
722         (debug, nop): Declare as bool.
724 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
726         * lto-plugin.c (nop): New.
727         (use_original_files): New.
728         (all_symbols_read_handler): Call use_original_files if nop is true.
729         (process_option): Parse the -nop option.
731 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
733         * lto-plugin.c (debug): New.
734         (exec_lto_wrapper): Print argv if debug is true.
735         (process_option): Process the -debug command line option.
737 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
739         * lto-plugin.c (process_option): The argument is now a single option,
740         not a space separated list.
742 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
744         * lto-plugin.c: Include sys/types.h and sys/wait.h
745         (output_files, num_output_files, lto_wrapper_argv,
746         lto_wrapper_num_args): New.
747         (free_2): Free output_files.
748         (write_resolution): Disable.
749         (add_output_files): New.
750         (exec_lto_wrapper): New.
751         (all_symbols_read_handler): Run lto-wrapper.
752         (claim_file_handler): Free lto_file.name and call elf_end.
753         (process_option): New.
755 2008-11-26  Rafael Espindola  <espindola@google.com>
757         * lto-plugin.c (add_input_file): New.
758         (get_section): Return NULL if get_section fails.
759         (write_resolution): New.
760         (all_symbols_read_handler): Call add_input_file.
761         (claim_file_handler): Unlink the correct file.
762         (onload): Record add_input_file.
764 2008-09-23 Rafael Espindola  <espindola@google.com>
766         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
767         Update the location of common.c.
768         * Makefile.in: Regenerate.
769         * common.c: Moved to gcc/lto.
770         * common.h: Moved to gcc/lto.
771         * lto-plugin.c: Update the location of common.h.
772         * lto-symtab.c: Update the location of common.h.
774 2008-09-23 Rafael Espindola  <espindola@google.com>
776         * common.c: Include common.h.
777         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
778         sizes.
779         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
780         explicit sizes.
782 2008-09-23 Rafael Espindola  <espindola@google.com>
784         * lto-plugin.c (plugin_file_info): Add temp.
785         (cleanup_handler): Only delete temporary files.
786         (claim_file_handler): Initialize lto_file.temp.
788 2008-09-23  Rafael Espindola  <espindola@google.com>
790         * plugin-api.h: Moved to include.
792 2008-09-23 Rafael Espindola  <espindola@google.com>
794         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
795         format.
797 2008-09-22 Rafael Espindola  <espindola@google.com>
799         * plugin-api.h: Copy from binutils' cvs.
801 2008-09-22 Rafael Espindola  <espindola@google.com>
803         * lto-symtab.c (get_symbols, add_symbols): Update signature.
804         * plugin-api.h: Copy from binutils' cvs.
806 2008-09-22 Rafael Espindola  <espindola@google.com>
808         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
809         Make extern
811 2008-09-10 Rafael Espindola  <espindola@google.com>
813         * lto-plugin.c (onload): add missing break statements and asserts.
814         * lto-symtab.c (claim_file_handler): Make it static.
815         (all_symbols_read_handler): Make it static.
816         (all_file_handles): Make it static.
817         (num_file_handles): Make it static.
818         (register_claim_file): Make it static.
819         (register_object): Indent properly.
821 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
823         * Makefile.am (ltosymtab_LDADD): Add -lelf.
824         * Makefiel.in: Regenerate.
825         * lto-plugin.c: Include ar.h.
826         (claim_file_handler): Handle file->offset != 0.
827         * lto-symtab.c: Include gelf.h.
828         (all_file_handles): Change type.
829         (register_object): New.
830         (register_file): Add support for archives.
831         (resolve): Update to new type of all_file_handles.
832         (print): Update to new type of all_file_handles.
833         (free_all): Update to new type of all_file_handles.
834         (main): Update to new type of all_file_handles.
836 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
838         * lto-plugin.c (get_string_table): Remove.
839         (get_section): Use elf_strptr instead of get_string_table.
841 2008-09-08  Doug Kwan  <dougkwan@google.com>
843         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
844         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
846 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
848         * Makefile.am (ltosymtab_SOURCES): add common.c.
849         (ltosymtab_CFLAGS): New.
850         (liblto_plugin_la_SOURCES): Add common.c.
851         * Makefile.in: Regenerate.
852         * common.c: New.
853         * common.h: New.
854         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
855         (plugin_symtab): New.
856         (plugin_file_info): New.
857         (register_all_symbols_read): New.
858         (get_symbols): New.
859         (claimed_files): New.
860         (num_claimed_files): New.
861         (translate): Don't drop the slot number.
862         (free_1): New.
863         (free_2): New.
864         (all_symbols_read_handler): New.
865         (claim_file_handler): Record every claimed file.
866         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
867         LDPT_GET_SYMBOLS.
868         * lto-symtab.c: Include stdlib.h, string.h and common.h.
869         (current_file_handle): Remove.
870         (ld_plugin_all_symbols_read_handler): New.
871         (plugin_handle): New.
872         (file_handle): New.
873         (all_file_handles): New.
874         (num_file_handles): New.
875         (get_symbols): New.
876         (register_all_symbols_read): New.
877         (add_symbols): Don't print the symbols, just record them.
878         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
879         LDPT_GET_SYMBOLS.
880         (load_plugin): Use plugin_handle.
881         (register_file): Add the file handle to all_file_handles.
882         (resolve): New.
883         (print): New.
884         (unload_plugin): New.
885         (free_all): New.
886         (main): Call all_symbols_read_handler and free resources.
888 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
890         * Makefile.am (AM_CFLAGS): New.
891         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
892         (lib_LTLIBRARIES): New.
893         (liblto_plugin_la_SOURCES): New.
894         (liblto_plugin_la_LIBADD): New.
895         * Makefile.in: Regenerate.
896         * acinclude.m4: Don't include ../config/acx.m4 and
897         ../config/no-executables.m4.
898         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
899         ../libtool.m4.
900         * aclocal.m4: Regenerate.
901         * configure: Regenerate.
902         * configure.ac: Use AM_PROG_LIBTOOL.
903         * lto-plugin.c: New.
904         * lto-symtab.c: Rewrite to use the plugin.
905         * plugin-api.h: New.
907 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
909         * configure: Regenerate.
910         * configure.ac: Use AC_CHECK_GELF.
911         * lto-symtab.c: Include gelf.h.
912         (get_string_table): Use size independent API.
913         (printTable): Use lld to print 64 bit integers.
915 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
917         * lto-symtab.c (parse_table_entry): Assert entry->kind and
918         entry->visibility are valid.
920 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
921         * lto-symtab.c (table_entry): Add comdat.
922         (parse_table_entry): Read comdat.
924 2008-08-21  Rafael Espindola  <espindola@google.com>
926         * Makefile.am: New.
927         * Makefile.in: New.
928         * acinclude.m4: New.
929         * aclocal.m4: New.
930         * configure: New.
931         * configure.ac: New.
932         * lto-symtab.c: New.