Fix up accidentally twice-applied patch.
[official-gcc.git] / lto-plugin / ChangeLog
blob69af7814e6f1f9c182bf467d7548a5942b029120
1 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
2             Bernd Schmidt  <bernds@codesourcery.com>
3             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
7         (struct plugin_objfile): Add new field "offload".
8         (process_offload_section): New static function.
9         (claim_file_handler): Claim file if it contains offload sections.
11 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
12             Thomas Schwinge  <thomas@codesourcery.com>
13             Ilya Verbin  <ilya.verbin@intel.com>
14             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16         * Makefile.am (libexecsubdir): Tweak for the possibility of being
17         configured for offload compiler.
18         (accel_dir_suffix, real_target_noncanonical): New variables substituted
19         by configure.
20         * Makefile.in: Regenerate.
21         * configure: Regenerate.
22         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
23         variables.
25 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
27         PR target/63610
28         * configure: Regenerate.
30 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
32         PR bootstrap/62260
33         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
34         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
35         $host_subdir.
36         * Makefile.in: Regenerated.
37         * configure: Likewise.
39 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
41         * configure.ac (--with-libiberty): New configure option.
42         * configure: Regenerate.
43         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
44         variables.
45         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
46         (liblto_plugin_la_DEPENDENCIES): Use them.
47         * Makefile.in: Regenerate.
49 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
51         PR lto/60981
52         * configure.ac: Check for -static-libgcc.
53         * configure: Regenerate.
55 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
57         PR sanitizer/56781
58         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
59         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
60         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
61         over ../libiberty/pic/libiberty.a if the former exists.
62         * Makefile.in: Regenerated.
64         PR sanitizer/56781
65         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
66         * Makefile.in: Regenerated.
68 2014-04-02  Richard Biener  <rguenther@suse.de>
70         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
71         is set in COLLECT_GCC_OPTIONS.
73 2014-03-28  Richard Biener  <rguenther@suse.de>
75         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
77 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
79         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
80         for gcc.
81         * configure: Regenerate.
82         * Makefile.am (AM_LDFLAGS): New variable.
83         (liblto_plugin_la_LDFLAGS): Add it.
84         * Makefile.in: Regenerate.
86 2013-09-20  Alan Modra  <amodra@gmail.com>
88         * configure: Regenerate.
90 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
92         * configure: Regenerated.
94 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
96         * lto-plugin.c: Fix typo.
98 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
100         * configure: Regenerated.
102 2012-02-22  Kai Tietz  <ktietz@redhat.com>
104         PR lto/50616
105         * lto-plugin.c (PRI_LL): New macro.
106         (dump_symtab): Use PRI_LL instead of ll in print.
107         (process_symtab): Use PRI_LL instead of ll in scan.
109 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
111         * configure: Regenerate.
113 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
115         * configure: Regenerate.
117 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
119         * configure: Regenerate.
121 2011-10-02  Jan Hubicka  <jh@suse.cz>
123         PR lto/47247
124         * lto-plugin.c (get_symbols_v2): New variable.
125         (write_resolution): Use V2 API when available.
126         (onload): Handle LDPT_GET_SYMBOLS_V2.
128 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
129             Andi Kleen  <ak@linux.intel.com>
131         PR lto/50568
132         * lto-plugin.c (sym_aux): Change id to unsigned long long.
133         (plugin_symtab): Likewise.
134         (dump_symtab): Likewise.
135         (resolve_conflicts): Likewise.
136         (process_symtab): Likewise.
138 2011-08-10  Richard Guenther  <rguenther@suse.de>
140         PR bootstrap/49907
141         lto-plugin/
142         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
143         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
144         * configure: Regenerate.
145         * Makefile.in: Likewise.
146         * aclocal.m4: Likewise.
148 2011-04-20  Jim Meyering  <meyering@redhat.com>
150         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
152 2011-04-05  Richard Guenther  <rguenther@suse.de>
154         PR bootstrap/48431
155         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
157 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
159         * Makefile.in: Regenerate.
160         * aclocal.m4: Regenerate.
161         * configure: Regenerate.
163 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
165         * Makefile.am (all-local): Rename from 'all'.
166         * Makefile.in: Regenerate.
168 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
170         PR lto/47225
171         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
172         (liblto_plugin_la_LDFLAGS): Add -module.
173         (copy_lto_plugin): Renamed to...
174         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
175         of static modules.
176         * Makefile.in: Rebuild.
178 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
180         PR lto/47225
181         * Makefile.am (Wc): New helper for encoding -Wc,.
182         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
183         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
184         * Makefile.in: Regenerated.
186 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
188         Revert:
190         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
192         PR lto/47225
193         * Makefile.am (Wl): New helper for encoding -Wl,.
194         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
195         * Makefile.in: Regenerated.
197 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
199         PR lto/47225
200         * Makefile.am (Wl): New helper for encoding -Wl,.
201         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
202         * Makefile.in: Regenerated.
204 2011-01-25  Ian Lance Taylor  <iant@google.com>
206         * lto-plugin.c (gold_version): New static variable.
207         (all_symbols_read_handler): Don't check pass_through_items if
208         using gold 1.11 or later.
209         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
211 2011-01-12  Richard Guenther  <rguenther@suse.de>
213         PR lto/47264
214         * lto-plugin.c (parse_table_entry): Use memcpy to access
215         unaligned fields.
217 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
219         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
220         * Makefile.in: Regenerate.
222 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
224         Revert last change.
226 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
228         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
229         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
230         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
231         * Makefile.in: Regenerate.
233 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
235         PR middle-end/46674
236         PR lto/43157
237         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
238         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
239         * configure: Regenerate.
240         * config.h.in: Likewise.
242 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
244         PR target/40125
245         PR lto/46695
246         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
247         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
248         override -bindir setting.
249         * aclocal.m4: Regenerate.
250         * configure: Regenerate.
251         * Makefile.in: Regenerate.
253 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
255         * config.h.in: Regenerated.
256         * configure: Regenerated.
257         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
258         * lto-plugin.c (WIFEXITED): Define default.
259         (WEXITSTATUS): Likeiwse.
261 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
263         * config.h.in: Regenerated.
264         * configure: Regenerated.
265         * Makefile.in: Regenerated.
266         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
267         * lto-plugin.c:  Include sys/wait.h conditionally.
268         * aclocal.m4: Regenerated.
270 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
272         * lto-plugin.c (add_output_files): Fix memory leak.
274 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
276         PR bootstrap/46397
277         PR bootstrap/46362
278         * configure.ac: Add AC_TYPE_INT64_T test.
279         * config.h.in: Regenerate.
280         * configure: Likewise.
281         * lto-plugin.c (debug): Use char not bool.
282         (nop): Likewise.
283         (check_1): Rename from check, and use int not bool for gate argument.
284         (check): Macro wrapper for the above to coerce gate argument into
285         boolean-valued integer in case it has pointer type.
286         (parse_table_entry): Use 0 not false.
287         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
288         into two 32-bit parts and printing as hex ints.
290 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
292         PR lto/46291
293         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
295 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
297         PR lto/46273
298         * lto-plugin.h: Delete.
299         * lto-plugin-elf.c: Likewise.
300         * lto-plugin-coff.c: Likewise.
301         * configure.ac: Don't use libelf, don't source config.gcc.
302         (LIBELFLIBS): Delete.
303         (LIBELFINC): Delete.
304         (LTO_FORMAT): Delete.
305         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
306         (config.h): Add AC_CONFIG_HEADERS directive.
307         * Makefile.am (LIBELFLIBS): Delete.
308         (LIBELFINC): Delete.
309         (LTO_FORMAT): Delete.
310         (DEFS): Import.
311         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
312         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
313         any object-format-specific source file in the link.
314         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
315         * config.h.in: Generate.
316         * configure: Regenerate.
317         * Makefile.in: Likewise.
318         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
319         (LTO_SEGMENT_NAME): New definition.
320         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
321         (LTO_SECTION_PREFIX_LEN): New definition.
322         (struct sym_aux): Struct definition moved here from lto-plugin.h.
323         (struct plugin_symtab): Likewise.
324         (struct plugin_objfile): Likewise.
325         (struct plugin_objfile): New struct def.
326         (enum symbol_style): New enum type.
327         (add_symbols): Make static.
328         (claimed_files): Likewise.
329         (num_claimed_files): Likewise.
330         (sym_style): New global.
331         (check): Make static.
332         (parse_table_entry): Likewise.  Respect sym_style when extracting
333         symbol from symtab entry.
334         (translate): Make static.
335         (resolve_conflicts): Likewise.
336         (process_symtab): New function, per-section callback version of
337         old object-format-specific handling from deleted lto-plugin-elf.c.
338         (claim_file_handler): Convert ELF-specific version from deleted
339         lto-plugin-elf.c to simple_object interface and move here.
340         (process_options): Allow new '-sym-style=' option.
341         (onload): Don't call deleted onload_format_checks hook.
343 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
345         * lto-plugin.c (dump_symtab): Correct printf argument type.
346         (finish_conflict_resolution): Initialize resolution.
348 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
350         PR bootstrap/45951
351         * configure.ac: Add AC_CANONICAL_SYSTEM.
352         * configure: Regenerated.
354 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
356         * configure.ac: Source config.gcc to determine lto_binary_reader.
357         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
358         * Makefile.am (LTO_FORMAT): Import.
359         (liblto_plugin_la_SOURCES): Add object format dependent module
360         defined by LTO_FORMAT.
361         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
362         and work around libtool warning.
363         * configure: Regenerate.
364         * Makefile.in: Likewise.
365         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
366         (struct sym_aux): Likewise.
367         (struct plugin_symtab): Likewise.
368         (struct plugin_file_info): Likewise.
369         (LTO_SECTION_PREFIX): Likewise.
370         (add_symbols):  Make non-static.
371         (claimed_files): Likewise.
372         (num_claimed_files): Likewise.
373         (check): Likewise.
374         (parse_table_entry): Likewise.
375         (translate): Likewise.
376         (resolve_conflicts): Likewise.
377         (process_symtab): Move to new lto-plugin-elf.c object format dependent
378         source file.
379         (claim_file_handler): Likewise, and make non-static.
380         (onload): Call new onload_format_checks function.
381         * lto-plugin.h: New file.
382         (LTO_SECTION_PREFIX): Move here.
383         (struct sym_aux): Likewise.
384         (struct plugin_symtab): Likewise.
385         (struct plugin_file_info): Likewise.
386         (claim_file_handler): Add new function prototype.
387         (onload_format_checks): Likewise.
388         (check): Declare extern.
389         (translate): Likewise.
390         (parse_table_entry): Likewise.
391         (resolve_conflicts): Likewise.
392         (add_symbols):  Likewise.
393         (claimed_files): Likewise.
394         (num_claimed_files): Likewise.
395         * lto-plugin-elf.c (process_symtab): Move here.
396         (claim_file_handler): Likewise, and make non-static.
397         (onload_format_checks): New function factored out from onload.
398         * lto-plugin-coff.c (claim_file_handler): New function stub.
399         (onload_format_checks): Likewise.
401 2010-08-05  Andi Kleen  <ak@linux.intel.com>
403         * lto-plugin.c: Include <hashtab.h>
404         (sym_aux): Add next_conflict field to save conflict chains.
405         (plugin_file_info): Add conflicts symtab.
406         (parse_table_entry): Initialize aux->next_conflict.
407         (process_symtab): Increment found.
408         (dump_symtab): Add.
409         (finish_conflict_resolution): Add.
410         (free_symtab): Add.
411         (write_resolution): Remove symbols loop and move into
412         dump_symtab. Call dump_symtab for main symbol and conflicts table.
413         Call free_symtab to free conflicts table.
414         (SWAP): Add.
415         (eq_sym): Add.
416         (hash_sym): Add.
417         (symbol_strength): Add.
418         (resolve_conflicts): Add.
419         (claim_file_handler): Add n variable. Check return value of
420         process_symtab. Call resolve_conflicts.
422 2010-07-27  Andi Kleen  <ak@linux.intel.com>
424         * lto-plugin.c (translate): Remove debug fprintf.
426 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
428         PR bootstrap/45042
429         * lto-plugin.c (translate): Cast to unsigned long.
431 2010-07-23   Andi Kleen  <ak@linux.intel.com>
433         PR lto/44992
434         * lto-plugin.c (sym_aux): Add.
435         (plugin_symtab): Remove slots. Add aux and id.
436         (parse_table_entry): Change to use aux instead of slots.
437         (LTO_SECTION_PREFIX): Add.
438         (translate): Improve buffer allocation. Change to append
439         symbols to existing out buffer.
440         (get_section): Remove.
441         (process_symtab): Add.
442         (free_2): Free symtab->aux.
443         (write_resolution): Handle aux instead of slots.
444         Print sub id to resolution file.
445         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
446         calls with call to process_symtab.
448 2010-07-22  Richard Guenther  <rguenther@suse.de>
450         * Makefile.am: New copy_lto_plugin rule to install the plugin
451         into ../gcc.
452         * Makefile.in: Regenerated.
454 2010-05-21  Richard Guenther  <rguenther@suse.de>
456         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
458 2010-05-07  Richard Guenther <rguenther@suse.de>
460         * lto-plugin.c (free_2): Do not free resolution_file.
461         (write_resolution): Check that we were passed a resolution file.
462         (all_symbols_read_handler): Adjust.
463         (cleanup_handler): Do not remove the resolution file.
464         (process_option): Handle -fresolution=.
466 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
468         PR other/43620
469         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
470         * Makefile.in: Regenerate.
472 2010-04-23  Richard Guenther  <rguenther@suse.de>
474         PR lto/41550
475         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
476         (translate): Likewise.
477         (all_symbols_read_handler): Likewise.
478         (claim_file_handler): Likewise.
479         (process_option): Likewise.
480         (add_output_files): Likewise.  Remove filename length limit.
482 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
484         * Makefile.in: Regenerate.
485         * aclocal.m4: Regenerate.
487 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
489         PR lto/43336
490         * lto-plugin.c (cleanup_handler): Delete temporary output files.
492 2010-01-11  Richard Guenther  <rguenther@suse.de>
494         PR lto/41569
495         * Makefile.am: Disable dependencies.
496         * Makefile.in: Regenerated.
498 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
500         PR lto/42520
501         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
502         if -v is passed.
504 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
506         PR bootstrap/42306
507         * configure: Regenerated.
508         * Makefile.in: Likewise.
510 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
512         PR bootstrap/42096
513         * lto-plugin.c (claim_file_handler): Print offsets in hex.
515 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
517         * lto-plugin.c (write_resolution): Assume resolution_file is set.
518         Print the symbol name.
519         (all_symbols_read_handler): Create a resolution file.
520         Pass it to gcc.
521         (cleanup_handler): Remove the resolution file.
522         (process_option): Drop the -resolution option.
524 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
526         * lto-plugin.c (temp_obj_dir_name): Remove.
527         (arguments_file_name): New.
528         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
529         (exec_lto_wrapper):  Create arguments file with make_temp_file.
530         (cleanup_handler): Don't remove the temporary directory. Remove the
531         arguments file.
532         (onload): Don't create the temporary directory.
534 2009-11-04  Richard Guenther  <rguenther@suse.de>
535             Rafael Avila de Espindola  <espindola@google.com>
537         * lto-plugin.c (plugin_file_info): Remove temp field.
538         (cleanup_handler): Don't delete temporary objects.
539         (claim_file_handler): Don't create temporary objects.
541 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
543         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
545 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
547         PR41871
548         * lto-plugin.c (claim_file_handler): Close files that we created.
550 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
552         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
553         LDPL_ERROR
555 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
557         PR lto/41652
558         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
559         * configure: Regenerate.
561 2009-10-26  Richard Guenther  <rguenther@suse.de>
563         * configure.ac: Use AM_MAINTAINER_MODE.
564         * acinclude.m4: Remove.
565         * configure: Re-generate.
566         * Makefile.in: Likewise.
567         * aclocal.m4: Likewise.
569 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
570     
571         PR40790
572         * configure: Regenerate.
573         * configure.ac: Add AC_TYPE_UINT64_T.
575 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
577         * lto-plugin.c (message): New variable.
578         (check): New function.
579         (parse_table_entry, translate, write_resolution,add_output_files,
580         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
581         assert.
582         (cleanup_handler): Use check instead of assert. Remove the arguments
583         file if it exists.
585 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
587         * lto-plugin.c (resolution_file): New.
588         (free_1): Update comment.
589         (free_2): Free resolution_file.
590         (write_resolution): Write resolution to specified file. Use the
591         syms array from the symbol table.
592         (all_symbols_read_handler): Delay call to free_1 past call to
593         write_resolution.
594         (process_option): Add a -resolution option.
596 2009-10-13  Richard Guenther  <rguenther@suse.de>
598         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
599         correct libiberty.
600         * Makefile.in: Regenerated.
602 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
604         * lto-plugin.c (add_input_library): New.
605         (all_symbols_read_handler): Use add_input_library for items that
606         start with -l.
607         (process_option): Fit in 80 columns.
608         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
610 2009-10-02  Diego Novillo  <dnovillo@google.com>
612         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
613         and -D_FILE_OFFSET_BITS=64.
614         * configure.ac: Add AC_SYS_LARGEFILE.
615         * configure: Regenerate.
616         * Makefile.in: Regenerate.
617         * lto-plugin.c: Fix copyright boilerplate.
619 2009-10-02  Diego Novillo  <dnovillo@google.com>
621         * Makefile.am (ACLOCAL_AMFLAGS): Define.
622         * aclocal.m4: Regenerate with aclocal-2.64
623         * acinclude.m4: Remove.
624         * Makefile.in: Regenerate with automake-1.11
625         * configure.ac (AC_PREREQ): Update to 2.64.
626         * configure: Regenerate.
628 2009-10-02  Diego Novillo  <dnovillo@google.com>
630         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
631         and -D_FILE_OFFSET_BITS=64.
632         * configure.ac: Add AC_SYS_LARGEFILE.
633         * configure: Regenerate.
634         * Makefile.in: Regenerate.
635         * lto-plugin.c: Fix copyright boilerplate.
637 2009-10-02  Diego Novillo  <dnovillo@google.com>
639         * Makefile.am (ACLOCAL_AMFLAGS): Define.
640         * aclocal.m4: Regenerate with aclocal-2.64
641         * acinclude.m4: Remove.
642         * Makefile.in: Regenerate with automake-1.11
643         * configure.ac (AC_PREREQ): Update to 2.64.
644         * configure: Regenerate.
646 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
648         * Makefile.am (liblto_plugin_la_SOURCES): Remove
649         $(top_srcdir)/../gcc/lto/common.c
650         * Makefile.in: Regenerate.
652 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
654         * lto-plugin.c (pass_through_items): New.
655         (num_pass_through_items): New.
656         (all_symbols_read_handler): Update to use the -pass-through option.
657         (process_option): Replace -libgcc with -pass-through.
658         
659 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
661         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
662         register_cleanup to be set.
664 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
666         * Makefile.am: Remove all reference to ltosymtab.
667         * Makefile.in: Regenerate.
668         * lto-symtab.c: Remove.
670 2009-05-21  Diego Novillo  <dnovillo@google.com>
672         * configure.ac: Remove call to AC_CHECK_GELF.
673         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
674         * acinclude.m4: Do not include ../config/libelf.m4
675         * Makefile.am (LIBELFLIBS): Define.
676         (LIBELFINC): Define.
677         (AM_CPPFLAGS): Add $(LIBELFINC).
678         (ltosymtab_LDADD): Add $(LIBELFLIBS).
679         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
680         * lto-plugin.c: Always include <gelf.h>
681         * lto-symtab.c: Likewise.
682         * configure: Regenerate.
683         * Makefile.in: Regenerate.
685 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
687         * lto-plugin.c (libgcc_filename): New.
688         (all_symbols_read_handler): Pass libgcc to the linker.
689         (all_symbols_read_handler): Parse -libgcc
691 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
693         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
694         * Makefile.in: Regenerate.
695         * lto-plugin.c (add_output_files): Argument is now a FILE.
696         (exec_lto_wrapper): Use writeargv and pex.
698 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
700         Revert:
701         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
702         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
705 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
707         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
709 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
711         * lto-plugin.c: Include libiberty.h.
712         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
713         snprintf.
715 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
717         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
718         file to lto-wrapper.
720 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
722         * lto-plugin.c (plugin_file_info): Remove fd and elf.
723         (parse_table_entry): strdup entry->name and entry->comdat_key.
724         (free_1): Free name and comdat_key. Don't close the file. Don't call
725         elf_end.
726         (claim_file_handler): Always call elf_end.
728 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
730         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
731         -D_FILE_OFFSET_BITS=64
732         * Makefile.in: Regenerate
734 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
736         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
737         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
738         * Makefile.in: Regenerate.
739         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
740         * configure: Regenerate.
741         * configure.ac: Add AC_SUBST(target_noncanonical).
743 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
745         * lto-plugin.c: Include stdbool.h.
746         (debug, nop): Declare as bool.
748 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
750         * lto-plugin.c (nop): New.
751         (use_original_files): New.
752         (all_symbols_read_handler): Call use_original_files if nop is true.
753         (process_option): Parse the -nop option.
755 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
757         * lto-plugin.c (debug): New.
758         (exec_lto_wrapper): Print argv if debug is true.
759         (process_option): Process the -debug command line option.
761 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
763         * lto-plugin.c (process_option): The argument is now a single option,
764         not a space separated list.
766 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
768         * lto-plugin.c: Include sys/types.h and sys/wait.h
769         (output_files, num_output_files, lto_wrapper_argv,
770         lto_wrapper_num_args): New.
771         (free_2): Free output_files.
772         (write_resolution): Disable.
773         (add_output_files): New.
774         (exec_lto_wrapper): New.
775         (all_symbols_read_handler): Run lto-wrapper.
776         (claim_file_handler): Free lto_file.name and call elf_end.
777         (process_option): New.
779 2008-11-26  Rafael Espindola  <espindola@google.com>
781         * lto-plugin.c (add_input_file): New.
782         (get_section): Return NULL if get_section fails.
783         (write_resolution): New.
784         (all_symbols_read_handler): Call add_input_file.
785         (claim_file_handler): Unlink the correct file.
786         (onload): Record add_input_file.
788 2008-09-23 Rafael Espindola  <espindola@google.com>
790         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
791         Update the location of common.c.
792         * Makefile.in: Regenerate.
793         * common.c: Moved to gcc/lto.
794         * common.h: Moved to gcc/lto.
795         * lto-plugin.c: Update the location of common.h.
796         * lto-symtab.c: Update the location of common.h.
798 2008-09-23 Rafael Espindola  <espindola@google.com>
800         * common.c: Include common.h.
801         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
802         sizes.
803         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
804         explicit sizes.
806 2008-09-23 Rafael Espindola  <espindola@google.com>
808         * lto-plugin.c (plugin_file_info): Add temp.
809         (cleanup_handler): Only delete temporary files.
810         (claim_file_handler): Initialize lto_file.temp.
812 2008-09-23  Rafael Espindola  <espindola@google.com>
814         * plugin-api.h: Moved to include.
816 2008-09-23 Rafael Espindola  <espindola@google.com>
818         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
819         format.
821 2008-09-22 Rafael Espindola  <espindola@google.com>
823         * plugin-api.h: Copy from binutils' cvs.
825 2008-09-22 Rafael Espindola  <espindola@google.com>
827         * lto-symtab.c (get_symbols, add_symbols): Update signature.
828         * plugin-api.h: Copy from binutils' cvs.
830 2008-09-22 Rafael Espindola  <espindola@google.com>
832         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
833         Make extern
835 2008-09-10 Rafael Espindola  <espindola@google.com>
837         * lto-plugin.c (onload): add missing break statements and asserts.
838         * lto-symtab.c (claim_file_handler): Make it static.
839         (all_symbols_read_handler): Make it static.
840         (all_file_handles): Make it static.
841         (num_file_handles): Make it static.
842         (register_claim_file): Make it static.
843         (register_object): Indent properly.
845 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
847         * Makefile.am (ltosymtab_LDADD): Add -lelf.
848         * Makefiel.in: Regenerate.
849         * lto-plugin.c: Include ar.h.
850         (claim_file_handler): Handle file->offset != 0.
851         * lto-symtab.c: Include gelf.h.
852         (all_file_handles): Change type.
853         (register_object): New.
854         (register_file): Add support for archives.
855         (resolve): Update to new type of all_file_handles.
856         (print): Update to new type of all_file_handles.
857         (free_all): Update to new type of all_file_handles.
858         (main): Update to new type of all_file_handles.
860 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
862         * lto-plugin.c (get_string_table): Remove.
863         (get_section): Use elf_strptr instead of get_string_table.
865 2008-09-08  Doug Kwan  <dougkwan@google.com>
867         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
868         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
870 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
872         * Makefile.am (ltosymtab_SOURCES): add common.c.
873         (ltosymtab_CFLAGS): New.
874         (liblto_plugin_la_SOURCES): Add common.c.
875         * Makefile.in: Regenerate.
876         * common.c: New.
877         * common.h: New.
878         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
879         (plugin_symtab): New.
880         (plugin_file_info): New.
881         (register_all_symbols_read): New.
882         (get_symbols): New.
883         (claimed_files): New.
884         (num_claimed_files): New.
885         (translate): Don't drop the slot number.
886         (free_1): New.
887         (free_2): New.
888         (all_symbols_read_handler): New.
889         (claim_file_handler): Record every claimed file.
890         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
891         LDPT_GET_SYMBOLS.
892         * lto-symtab.c: Include stdlib.h, string.h and common.h.
893         (current_file_handle): Remove.
894         (ld_plugin_all_symbols_read_handler): New.
895         (plugin_handle): New.
896         (file_handle): New.
897         (all_file_handles): New.
898         (num_file_handles): New.
899         (get_symbols): New.
900         (register_all_symbols_read): New.
901         (add_symbols): Don't print the symbols, just record them.
902         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
903         LDPT_GET_SYMBOLS.
904         (load_plugin): Use plugin_handle.
905         (register_file): Add the file handle to all_file_handles.
906         (resolve): New.
907         (print): New.
908         (unload_plugin): New.
909         (free_all): New.
910         (main): Call all_symbols_read_handler and free resources.
912 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
914         * Makefile.am (AM_CFLAGS): New.
915         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
916         (lib_LTLIBRARIES): New.
917         (liblto_plugin_la_SOURCES): New.
918         (liblto_plugin_la_LIBADD): New.
919         * Makefile.in: Regenerate.
920         * acinclude.m4: Don't include ../config/acx.m4 and
921         ../config/no-executables.m4.
922         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
923         ../libtool.m4.
924         * aclocal.m4: Regenerate.
925         * configure: Regenerate.
926         * configure.ac: Use AM_PROG_LIBTOOL.
927         * lto-plugin.c: New.
928         * lto-symtab.c: Rewrite to use the plugin.
929         * plugin-api.h: New.
931 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
933         * configure: Regenerate.
934         * configure.ac: Use AC_CHECK_GELF.
935         * lto-symtab.c: Include gelf.h.
936         (get_string_table): Use size independent API.
937         (printTable): Use lld to print 64 bit integers.
939 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
941         * lto-symtab.c (parse_table_entry): Assert entry->kind and
942         entry->visibility are valid.
944 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
945         * lto-symtab.c (table_entry): Add comdat.
946         (parse_table_entry): Read comdat.
948 2008-08-21  Rafael Espindola  <espindola@google.com>
950         * Makefile.am: New.
951         * Makefile.in: New.
952         * acinclude.m4: New.
953         * aclocal.m4: New.
954         * configure: New.
955         * configure.ac: New.
956         * lto-symtab.c: New.