2014-12-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / lto-plugin / ChangeLog
blob5307e478ef3dbce8f7e16ee49eb8ead3cdd6980d
1 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
3         PR bootstrap/63784
4         * configure: Regenerated.
6 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
7             Bernd Schmidt  <bernds@codesourcery.com>
8             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
12         (struct plugin_objfile): Add new field "offload".
13         (process_offload_section): New static function.
14         (claim_file_handler): Claim file if it contains offload sections.
16 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
17             Thomas Schwinge  <thomas@codesourcery.com>
18             Ilya Verbin  <ilya.verbin@intel.com>
19             Andrey Turetskiy  <andrey.turetskiy@intel.com>
21         * Makefile.am (libexecsubdir): Tweak for the possibility of being
22         configured for offload compiler.
23         (accel_dir_suffix, real_target_noncanonical): New variables substituted
24         by configure.
25         * Makefile.in: Regenerate.
26         * configure: Regenerate.
27         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
28         variables.
30 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
32         PR target/63610
33         * configure: Regenerate.
35 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
37         PR bootstrap/62260
38         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
39         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
40         $host_subdir.
41         * Makefile.in: Regenerated.
42         * configure: Likewise.
44 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
46         * configure.ac (--with-libiberty): New configure option.
47         * configure: Regenerate.
48         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
49         variables.
50         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
51         (liblto_plugin_la_DEPENDENCIES): Use them.
52         * Makefile.in: Regenerate.
54 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
56         PR lto/60981
57         * configure.ac: Check for -static-libgcc.
58         * configure: Regenerate.
60 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
62         PR sanitizer/56781
63         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
64         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
65         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
66         over ../libiberty/pic/libiberty.a if the former exists.
67         * Makefile.in: Regenerated.
69         PR sanitizer/56781
70         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
71         * Makefile.in: Regenerated.
73 2014-04-02  Richard Biener  <rguenther@suse.de>
75         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
76         is set in COLLECT_GCC_OPTIONS.
78 2014-03-28  Richard Biener  <rguenther@suse.de>
80         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
82 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
84         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
85         for gcc.
86         * configure: Regenerate.
87         * Makefile.am (AM_LDFLAGS): New variable.
88         (liblto_plugin_la_LDFLAGS): Add it.
89         * Makefile.in: Regenerate.
91 2013-09-20  Alan Modra  <amodra@gmail.com>
93         * configure: Regenerate.
95 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
97         * configure: Regenerated.
99 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
101         * lto-plugin.c: Fix typo.
103 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
105         * configure: Regenerated.
107 2012-02-22  Kai Tietz  <ktietz@redhat.com>
109         PR lto/50616
110         * lto-plugin.c (PRI_LL): New macro.
111         (dump_symtab): Use PRI_LL instead of ll in print.
112         (process_symtab): Use PRI_LL instead of ll in scan.
114 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
116         * configure: Regenerate.
118 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
120         * configure: Regenerate.
122 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
124         * configure: Regenerate.
126 2011-10-02  Jan Hubicka  <jh@suse.cz>
128         PR lto/47247
129         * lto-plugin.c (get_symbols_v2): New variable.
130         (write_resolution): Use V2 API when available.
131         (onload): Handle LDPT_GET_SYMBOLS_V2.
133 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
134             Andi Kleen  <ak@linux.intel.com>
136         PR lto/50568
137         * lto-plugin.c (sym_aux): Change id to unsigned long long.
138         (plugin_symtab): Likewise.
139         (dump_symtab): Likewise.
140         (resolve_conflicts): Likewise.
141         (process_symtab): Likewise.
143 2011-08-10  Richard Guenther  <rguenther@suse.de>
145         PR bootstrap/49907
146         lto-plugin/
147         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
148         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
149         * configure: Regenerate.
150         * Makefile.in: Likewise.
151         * aclocal.m4: Likewise.
153 2011-04-20  Jim Meyering  <meyering@redhat.com>
155         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
157 2011-04-05  Richard Guenther  <rguenther@suse.de>
159         PR bootstrap/48431
160         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
162 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
164         * Makefile.in: Regenerate.
165         * aclocal.m4: Regenerate.
166         * configure: Regenerate.
168 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
170         * Makefile.am (all-local): Rename from 'all'.
171         * Makefile.in: Regenerate.
173 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
175         PR lto/47225
176         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
177         (liblto_plugin_la_LDFLAGS): Add -module.
178         (copy_lto_plugin): Renamed to...
179         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
180         of static modules.
181         * Makefile.in: Rebuild.
183 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
185         PR lto/47225
186         * Makefile.am (Wc): New helper for encoding -Wc,.
187         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
188         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
189         * Makefile.in: Regenerated.
191 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
193         Revert:
195         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
197         PR lto/47225
198         * Makefile.am (Wl): New helper for encoding -Wl,.
199         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
200         * Makefile.in: Regenerated.
202 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
204         PR lto/47225
205         * Makefile.am (Wl): New helper for encoding -Wl,.
206         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
207         * Makefile.in: Regenerated.
209 2011-01-25  Ian Lance Taylor  <iant@google.com>
211         * lto-plugin.c (gold_version): New static variable.
212         (all_symbols_read_handler): Don't check pass_through_items if
213         using gold 1.11 or later.
214         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
216 2011-01-12  Richard Guenther  <rguenther@suse.de>
218         PR lto/47264
219         * lto-plugin.c (parse_table_entry): Use memcpy to access
220         unaligned fields.
222 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
224         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
225         * Makefile.in: Regenerate.
227 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
229         Revert last change.
231 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
233         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
234         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
235         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
236         * Makefile.in: Regenerate.
238 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
240         PR middle-end/46674
241         PR lto/43157
242         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
243         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
244         * configure: Regenerate.
245         * config.h.in: Likewise.
247 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
249         PR target/40125
250         PR lto/46695
251         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
252         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
253         override -bindir setting.
254         * aclocal.m4: Regenerate.
255         * configure: Regenerate.
256         * Makefile.in: Regenerate.
258 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
260         * config.h.in: Regenerated.
261         * configure: Regenerated.
262         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
263         * lto-plugin.c (WIFEXITED): Define default.
264         (WEXITSTATUS): Likeiwse.
266 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
268         * config.h.in: Regenerated.
269         * configure: Regenerated.
270         * Makefile.in: Regenerated.
271         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
272         * lto-plugin.c:  Include sys/wait.h conditionally.
273         * aclocal.m4: Regenerated.
275 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
277         * lto-plugin.c (add_output_files): Fix memory leak.
279 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
281         PR bootstrap/46397
282         PR bootstrap/46362
283         * configure.ac: Add AC_TYPE_INT64_T test.
284         * config.h.in: Regenerate.
285         * configure: Likewise.
286         * lto-plugin.c (debug): Use char not bool.
287         (nop): Likewise.
288         (check_1): Rename from check, and use int not bool for gate argument.
289         (check): Macro wrapper for the above to coerce gate argument into
290         boolean-valued integer in case it has pointer type.
291         (parse_table_entry): Use 0 not false.
292         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
293         into two 32-bit parts and printing as hex ints.
295 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
297         PR lto/46291
298         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
300 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
302         PR lto/46273
303         * lto-plugin.h: Delete.
304         * lto-plugin-elf.c: Likewise.
305         * lto-plugin-coff.c: Likewise.
306         * configure.ac: Don't use libelf, don't source config.gcc.
307         (LIBELFLIBS): Delete.
308         (LIBELFINC): Delete.
309         (LTO_FORMAT): Delete.
310         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
311         (config.h): Add AC_CONFIG_HEADERS directive.
312         * Makefile.am (LIBELFLIBS): Delete.
313         (LIBELFINC): Delete.
314         (LTO_FORMAT): Delete.
315         (DEFS): Import.
316         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
317         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
318         any object-format-specific source file in the link.
319         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
320         * config.h.in: Generate.
321         * configure: Regenerate.
322         * Makefile.in: Likewise.
323         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
324         (LTO_SEGMENT_NAME): New definition.
325         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
326         (LTO_SECTION_PREFIX_LEN): New definition.
327         (struct sym_aux): Struct definition moved here from lto-plugin.h.
328         (struct plugin_symtab): Likewise.
329         (struct plugin_objfile): Likewise.
330         (struct plugin_objfile): New struct def.
331         (enum symbol_style): New enum type.
332         (add_symbols): Make static.
333         (claimed_files): Likewise.
334         (num_claimed_files): Likewise.
335         (sym_style): New global.
336         (check): Make static.
337         (parse_table_entry): Likewise.  Respect sym_style when extracting
338         symbol from symtab entry.
339         (translate): Make static.
340         (resolve_conflicts): Likewise.
341         (process_symtab): New function, per-section callback version of
342         old object-format-specific handling from deleted lto-plugin-elf.c.
343         (claim_file_handler): Convert ELF-specific version from deleted
344         lto-plugin-elf.c to simple_object interface and move here.
345         (process_options): Allow new '-sym-style=' option.
346         (onload): Don't call deleted onload_format_checks hook.
348 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
350         * lto-plugin.c (dump_symtab): Correct printf argument type.
351         (finish_conflict_resolution): Initialize resolution.
353 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
355         PR bootstrap/45951
356         * configure.ac: Add AC_CANONICAL_SYSTEM.
357         * configure: Regenerated.
359 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
361         * configure.ac: Source config.gcc to determine lto_binary_reader.
362         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
363         * Makefile.am (LTO_FORMAT): Import.
364         (liblto_plugin_la_SOURCES): Add object format dependent module
365         defined by LTO_FORMAT.
366         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
367         and work around libtool warning.
368         * configure: Regenerate.
369         * Makefile.in: Likewise.
370         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
371         (struct sym_aux): Likewise.
372         (struct plugin_symtab): Likewise.
373         (struct plugin_file_info): Likewise.
374         (LTO_SECTION_PREFIX): Likewise.
375         (add_symbols):  Make non-static.
376         (claimed_files): Likewise.
377         (num_claimed_files): Likewise.
378         (check): Likewise.
379         (parse_table_entry): Likewise.
380         (translate): Likewise.
381         (resolve_conflicts): Likewise.
382         (process_symtab): Move to new lto-plugin-elf.c object format dependent
383         source file.
384         (claim_file_handler): Likewise, and make non-static.
385         (onload): Call new onload_format_checks function.
386         * lto-plugin.h: New file.
387         (LTO_SECTION_PREFIX): Move here.
388         (struct sym_aux): Likewise.
389         (struct plugin_symtab): Likewise.
390         (struct plugin_file_info): Likewise.
391         (claim_file_handler): Add new function prototype.
392         (onload_format_checks): Likewise.
393         (check): Declare extern.
394         (translate): Likewise.
395         (parse_table_entry): Likewise.
396         (resolve_conflicts): Likewise.
397         (add_symbols):  Likewise.
398         (claimed_files): Likewise.
399         (num_claimed_files): Likewise.
400         * lto-plugin-elf.c (process_symtab): Move here.
401         (claim_file_handler): Likewise, and make non-static.
402         (onload_format_checks): New function factored out from onload.
403         * lto-plugin-coff.c (claim_file_handler): New function stub.
404         (onload_format_checks): Likewise.
406 2010-08-05  Andi Kleen  <ak@linux.intel.com>
408         * lto-plugin.c: Include <hashtab.h>
409         (sym_aux): Add next_conflict field to save conflict chains.
410         (plugin_file_info): Add conflicts symtab.
411         (parse_table_entry): Initialize aux->next_conflict.
412         (process_symtab): Increment found.
413         (dump_symtab): Add.
414         (finish_conflict_resolution): Add.
415         (free_symtab): Add.
416         (write_resolution): Remove symbols loop and move into
417         dump_symtab. Call dump_symtab for main symbol and conflicts table.
418         Call free_symtab to free conflicts table.
419         (SWAP): Add.
420         (eq_sym): Add.
421         (hash_sym): Add.
422         (symbol_strength): Add.
423         (resolve_conflicts): Add.
424         (claim_file_handler): Add n variable. Check return value of
425         process_symtab. Call resolve_conflicts.
427 2010-07-27  Andi Kleen  <ak@linux.intel.com>
429         * lto-plugin.c (translate): Remove debug fprintf.
431 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
433         PR bootstrap/45042
434         * lto-plugin.c (translate): Cast to unsigned long.
436 2010-07-23   Andi Kleen  <ak@linux.intel.com>
438         PR lto/44992
439         * lto-plugin.c (sym_aux): Add.
440         (plugin_symtab): Remove slots. Add aux and id.
441         (parse_table_entry): Change to use aux instead of slots.
442         (LTO_SECTION_PREFIX): Add.
443         (translate): Improve buffer allocation. Change to append
444         symbols to existing out buffer.
445         (get_section): Remove.
446         (process_symtab): Add.
447         (free_2): Free symtab->aux.
448         (write_resolution): Handle aux instead of slots.
449         Print sub id to resolution file.
450         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
451         calls with call to process_symtab.
453 2010-07-22  Richard Guenther  <rguenther@suse.de>
455         * Makefile.am: New copy_lto_plugin rule to install the plugin
456         into ../gcc.
457         * Makefile.in: Regenerated.
459 2010-05-21  Richard Guenther  <rguenther@suse.de>
461         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
463 2010-05-07  Richard Guenther <rguenther@suse.de>
465         * lto-plugin.c (free_2): Do not free resolution_file.
466         (write_resolution): Check that we were passed a resolution file.
467         (all_symbols_read_handler): Adjust.
468         (cleanup_handler): Do not remove the resolution file.
469         (process_option): Handle -fresolution=.
471 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
473         PR other/43620
474         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
475         * Makefile.in: Regenerate.
477 2010-04-23  Richard Guenther  <rguenther@suse.de>
479         PR lto/41550
480         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
481         (translate): Likewise.
482         (all_symbols_read_handler): Likewise.
483         (claim_file_handler): Likewise.
484         (process_option): Likewise.
485         (add_output_files): Likewise.  Remove filename length limit.
487 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
489         * Makefile.in: Regenerate.
490         * aclocal.m4: Regenerate.
492 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
494         PR lto/43336
495         * lto-plugin.c (cleanup_handler): Delete temporary output files.
497 2010-01-11  Richard Guenther  <rguenther@suse.de>
499         PR lto/41569
500         * Makefile.am: Disable dependencies.
501         * Makefile.in: Regenerated.
503 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
505         PR lto/42520
506         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
507         if -v is passed.
509 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
511         PR bootstrap/42306
512         * configure: Regenerated.
513         * Makefile.in: Likewise.
515 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
517         PR bootstrap/42096
518         * lto-plugin.c (claim_file_handler): Print offsets in hex.
520 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
522         * lto-plugin.c (write_resolution): Assume resolution_file is set.
523         Print the symbol name.
524         (all_symbols_read_handler): Create a resolution file.
525         Pass it to gcc.
526         (cleanup_handler): Remove the resolution file.
527         (process_option): Drop the -resolution option.
529 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
531         * lto-plugin.c (temp_obj_dir_name): Remove.
532         (arguments_file_name): New.
533         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
534         (exec_lto_wrapper):  Create arguments file with make_temp_file.
535         (cleanup_handler): Don't remove the temporary directory. Remove the
536         arguments file.
537         (onload): Don't create the temporary directory.
539 2009-11-04  Richard Guenther  <rguenther@suse.de>
540             Rafael Avila de Espindola  <espindola@google.com>
542         * lto-plugin.c (plugin_file_info): Remove temp field.
543         (cleanup_handler): Don't delete temporary objects.
544         (claim_file_handler): Don't create temporary objects.
546 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
548         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
550 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
552         PR41871
553         * lto-plugin.c (claim_file_handler): Close files that we created.
555 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
557         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
558         LDPL_ERROR
560 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
562         PR lto/41652
563         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
564         * configure: Regenerate.
566 2009-10-26  Richard Guenther  <rguenther@suse.de>
568         * configure.ac: Use AM_MAINTAINER_MODE.
569         * acinclude.m4: Remove.
570         * configure: Re-generate.
571         * Makefile.in: Likewise.
572         * aclocal.m4: Likewise.
574 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
575     
576         PR40790
577         * configure: Regenerate.
578         * configure.ac: Add AC_TYPE_UINT64_T.
580 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
582         * lto-plugin.c (message): New variable.
583         (check): New function.
584         (parse_table_entry, translate, write_resolution,add_output_files,
585         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
586         assert.
587         (cleanup_handler): Use check instead of assert. Remove the arguments
588         file if it exists.
590 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
592         * lto-plugin.c (resolution_file): New.
593         (free_1): Update comment.
594         (free_2): Free resolution_file.
595         (write_resolution): Write resolution to specified file. Use the
596         syms array from the symbol table.
597         (all_symbols_read_handler): Delay call to free_1 past call to
598         write_resolution.
599         (process_option): Add a -resolution option.
601 2009-10-13  Richard Guenther  <rguenther@suse.de>
603         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
604         correct libiberty.
605         * Makefile.in: Regenerated.
607 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
609         * lto-plugin.c (add_input_library): New.
610         (all_symbols_read_handler): Use add_input_library for items that
611         start with -l.
612         (process_option): Fit in 80 columns.
613         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
615 2009-10-02  Diego Novillo  <dnovillo@google.com>
617         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
618         and -D_FILE_OFFSET_BITS=64.
619         * configure.ac: Add AC_SYS_LARGEFILE.
620         * configure: Regenerate.
621         * Makefile.in: Regenerate.
622         * lto-plugin.c: Fix copyright boilerplate.
624 2009-10-02  Diego Novillo  <dnovillo@google.com>
626         * Makefile.am (ACLOCAL_AMFLAGS): Define.
627         * aclocal.m4: Regenerate with aclocal-2.64
628         * acinclude.m4: Remove.
629         * Makefile.in: Regenerate with automake-1.11
630         * configure.ac (AC_PREREQ): Update to 2.64.
631         * configure: Regenerate.
633 2009-10-02  Diego Novillo  <dnovillo@google.com>
635         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
636         and -D_FILE_OFFSET_BITS=64.
637         * configure.ac: Add AC_SYS_LARGEFILE.
638         * configure: Regenerate.
639         * Makefile.in: Regenerate.
640         * lto-plugin.c: Fix copyright boilerplate.
642 2009-10-02  Diego Novillo  <dnovillo@google.com>
644         * Makefile.am (ACLOCAL_AMFLAGS): Define.
645         * aclocal.m4: Regenerate with aclocal-2.64
646         * acinclude.m4: Remove.
647         * Makefile.in: Regenerate with automake-1.11
648         * configure.ac (AC_PREREQ): Update to 2.64.
649         * configure: Regenerate.
651 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
653         * Makefile.am (liblto_plugin_la_SOURCES): Remove
654         $(top_srcdir)/../gcc/lto/common.c
655         * Makefile.in: Regenerate.
657 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
659         * lto-plugin.c (pass_through_items): New.
660         (num_pass_through_items): New.
661         (all_symbols_read_handler): Update to use the -pass-through option.
662         (process_option): Replace -libgcc with -pass-through.
663         
664 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
666         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
667         register_cleanup to be set.
669 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
671         * Makefile.am: Remove all reference to ltosymtab.
672         * Makefile.in: Regenerate.
673         * lto-symtab.c: Remove.
675 2009-05-21  Diego Novillo  <dnovillo@google.com>
677         * configure.ac: Remove call to AC_CHECK_GELF.
678         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
679         * acinclude.m4: Do not include ../config/libelf.m4
680         * Makefile.am (LIBELFLIBS): Define.
681         (LIBELFINC): Define.
682         (AM_CPPFLAGS): Add $(LIBELFINC).
683         (ltosymtab_LDADD): Add $(LIBELFLIBS).
684         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
685         * lto-plugin.c: Always include <gelf.h>
686         * lto-symtab.c: Likewise.
687         * configure: Regenerate.
688         * Makefile.in: Regenerate.
690 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
692         * lto-plugin.c (libgcc_filename): New.
693         (all_symbols_read_handler): Pass libgcc to the linker.
694         (all_symbols_read_handler): Parse -libgcc
696 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
698         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
699         * Makefile.in: Regenerate.
700         * lto-plugin.c (add_output_files): Argument is now a FILE.
701         (exec_lto_wrapper): Use writeargv and pex.
703 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
705         Revert:
706         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
707         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
710 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
712         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
714 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
716         * lto-plugin.c: Include libiberty.h.
717         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
718         snprintf.
720 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
722         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
723         file to lto-wrapper.
725 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
727         * lto-plugin.c (plugin_file_info): Remove fd and elf.
728         (parse_table_entry): strdup entry->name and entry->comdat_key.
729         (free_1): Free name and comdat_key. Don't close the file. Don't call
730         elf_end.
731         (claim_file_handler): Always call elf_end.
733 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
735         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
736         -D_FILE_OFFSET_BITS=64
737         * Makefile.in: Regenerate
739 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
741         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
742         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
743         * Makefile.in: Regenerate.
744         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
745         * configure: Regenerate.
746         * configure.ac: Add AC_SUBST(target_noncanonical).
748 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
750         * lto-plugin.c: Include stdbool.h.
751         (debug, nop): Declare as bool.
753 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
755         * lto-plugin.c (nop): New.
756         (use_original_files): New.
757         (all_symbols_read_handler): Call use_original_files if nop is true.
758         (process_option): Parse the -nop option.
760 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
762         * lto-plugin.c (debug): New.
763         (exec_lto_wrapper): Print argv if debug is true.
764         (process_option): Process the -debug command line option.
766 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
768         * lto-plugin.c (process_option): The argument is now a single option,
769         not a space separated list.
771 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
773         * lto-plugin.c: Include sys/types.h and sys/wait.h
774         (output_files, num_output_files, lto_wrapper_argv,
775         lto_wrapper_num_args): New.
776         (free_2): Free output_files.
777         (write_resolution): Disable.
778         (add_output_files): New.
779         (exec_lto_wrapper): New.
780         (all_symbols_read_handler): Run lto-wrapper.
781         (claim_file_handler): Free lto_file.name and call elf_end.
782         (process_option): New.
784 2008-11-26  Rafael Espindola  <espindola@google.com>
786         * lto-plugin.c (add_input_file): New.
787         (get_section): Return NULL if get_section fails.
788         (write_resolution): New.
789         (all_symbols_read_handler): Call add_input_file.
790         (claim_file_handler): Unlink the correct file.
791         (onload): Record add_input_file.
793 2008-09-23 Rafael Espindola  <espindola@google.com>
795         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
796         Update the location of common.c.
797         * Makefile.in: Regenerate.
798         * common.c: Moved to gcc/lto.
799         * common.h: Moved to gcc/lto.
800         * lto-plugin.c: Update the location of common.h.
801         * lto-symtab.c: Update the location of common.h.
803 2008-09-23 Rafael Espindola  <espindola@google.com>
805         * common.c: Include common.h.
806         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
807         sizes.
808         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
809         explicit sizes.
811 2008-09-23 Rafael Espindola  <espindola@google.com>
813         * lto-plugin.c (plugin_file_info): Add temp.
814         (cleanup_handler): Only delete temporary files.
815         (claim_file_handler): Initialize lto_file.temp.
817 2008-09-23  Rafael Espindola  <espindola@google.com>
819         * plugin-api.h: Moved to include.
821 2008-09-23 Rafael Espindola  <espindola@google.com>
823         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
824         format.
826 2008-09-22 Rafael Espindola  <espindola@google.com>
828         * plugin-api.h: Copy from binutils' cvs.
830 2008-09-22 Rafael Espindola  <espindola@google.com>
832         * lto-symtab.c (get_symbols, add_symbols): Update signature.
833         * plugin-api.h: Copy from binutils' cvs.
835 2008-09-22 Rafael Espindola  <espindola@google.com>
837         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
838         Make extern
840 2008-09-10 Rafael Espindola  <espindola@google.com>
842         * lto-plugin.c (onload): add missing break statements and asserts.
843         * lto-symtab.c (claim_file_handler): Make it static.
844         (all_symbols_read_handler): Make it static.
845         (all_file_handles): Make it static.
846         (num_file_handles): Make it static.
847         (register_claim_file): Make it static.
848         (register_object): Indent properly.
850 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
852         * Makefile.am (ltosymtab_LDADD): Add -lelf.
853         * Makefiel.in: Regenerate.
854         * lto-plugin.c: Include ar.h.
855         (claim_file_handler): Handle file->offset != 0.
856         * lto-symtab.c: Include gelf.h.
857         (all_file_handles): Change type.
858         (register_object): New.
859         (register_file): Add support for archives.
860         (resolve): Update to new type of all_file_handles.
861         (print): Update to new type of all_file_handles.
862         (free_all): Update to new type of all_file_handles.
863         (main): Update to new type of all_file_handles.
865 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
867         * lto-plugin.c (get_string_table): Remove.
868         (get_section): Use elf_strptr instead of get_string_table.
870 2008-09-08  Doug Kwan  <dougkwan@google.com>
872         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
873         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
875 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
877         * Makefile.am (ltosymtab_SOURCES): add common.c.
878         (ltosymtab_CFLAGS): New.
879         (liblto_plugin_la_SOURCES): Add common.c.
880         * Makefile.in: Regenerate.
881         * common.c: New.
882         * common.h: New.
883         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
884         (plugin_symtab): New.
885         (plugin_file_info): New.
886         (register_all_symbols_read): New.
887         (get_symbols): New.
888         (claimed_files): New.
889         (num_claimed_files): New.
890         (translate): Don't drop the slot number.
891         (free_1): New.
892         (free_2): New.
893         (all_symbols_read_handler): New.
894         (claim_file_handler): Record every claimed file.
895         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
896         LDPT_GET_SYMBOLS.
897         * lto-symtab.c: Include stdlib.h, string.h and common.h.
898         (current_file_handle): Remove.
899         (ld_plugin_all_symbols_read_handler): New.
900         (plugin_handle): New.
901         (file_handle): New.
902         (all_file_handles): New.
903         (num_file_handles): New.
904         (get_symbols): New.
905         (register_all_symbols_read): New.
906         (add_symbols): Don't print the symbols, just record them.
907         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
908         LDPT_GET_SYMBOLS.
909         (load_plugin): Use plugin_handle.
910         (register_file): Add the file handle to all_file_handles.
911         (resolve): New.
912         (print): New.
913         (unload_plugin): New.
914         (free_all): New.
915         (main): Call all_symbols_read_handler and free resources.
917 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
919         * Makefile.am (AM_CFLAGS): New.
920         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
921         (lib_LTLIBRARIES): New.
922         (liblto_plugin_la_SOURCES): New.
923         (liblto_plugin_la_LIBADD): New.
924         * Makefile.in: Regenerate.
925         * acinclude.m4: Don't include ../config/acx.m4 and
926         ../config/no-executables.m4.
927         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
928         ../libtool.m4.
929         * aclocal.m4: Regenerate.
930         * configure: Regenerate.
931         * configure.ac: Use AM_PROG_LIBTOOL.
932         * lto-plugin.c: New.
933         * lto-symtab.c: Rewrite to use the plugin.
934         * plugin-api.h: New.
936 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
938         * configure: Regenerate.
939         * configure.ac: Use AC_CHECK_GELF.
940         * lto-symtab.c: Include gelf.h.
941         (get_string_table): Use size independent API.
942         (printTable): Use lld to print 64 bit integers.
944 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
946         * lto-symtab.c (parse_table_entry): Assert entry->kind and
947         entry->visibility are valid.
949 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
950         * lto-symtab.c (table_entry): Add comdat.
951         (parse_table_entry): Read comdat.
953 2008-08-21  Rafael Espindola  <espindola@google.com>
955         * Makefile.am: New.
956         * Makefile.in: New.
957         * acinclude.m4: New.
958         * aclocal.m4: New.
959         * configure: New.
960         * configure.ac: New.
961         * lto-symtab.c: New.