Makefile.am: Avoid the -D option which is not available with the install-sh fallback.
[official-gcc.git] / lto-plugin / ChangeLog
blobf450efa0d2b2015b972bc2a247ab478710123b62
1 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
3         Update copyright years.
5 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
7         PR bootstrap/82856
8         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
9         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11 2018-05-30  Jan Hubicka  <jh@suse.cz>
13         * lto-plugin.c: (non_claimed_files): New static var.
14         (linker_ouput_known): New static var.
15         (all_symbols_read_handler): When user specifies linker output do not
16         imply it; output warning when nonlto-rel mode is forced.
17         (claim_file_header): Record number of nonclaimed files.
18         (process_option): Remember if linker output is known
20 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
22         PR jit/85384
23         * configure: Regenerate.
25 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
27         Update copyright years.
29 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
31         PR lto/81487
32         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
33         asprintf.
34         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
36 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
38         PR other/79046
39         * configure.ac: Add GCC_BASE_VER.
40         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
41         get version from BASE-VER file.
42         * configure: Regenerated.
43         * Makefile.in: Regenerated.
45 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
47         Update copyright years.
49 2016-11-15  Matthias Klose  <doko@ubuntu.com>
51         * configure: Regenerate.
53 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
55         PR driver/68463
56         * lto-plugin.c (struct plugin_offload_file): New.
57         (offload_files): Change type.
58         (offload_files_last, offload_files_last_obj): New.
59         (offload_files_last_lto): New.
60         (free_2): Adjust accordingly.
61         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
62         Don't call free_1 for offload_files.  Write names of object files with
63         offloading to the temporary file.  Add new option to lto_arg_ptr.
64         (claim_file_handler): Don't claim file if it contains offload sections
65         without LTO sections.  If it contains offload sections, add to the list.
67 2016-01-15  Martin Liska  <mliska@suse.cz>
69         * lto-plugin.c (all_symbols_read_handler): Assign default
70         value to a string variable.
72 2015-11-25  Jan Hubicka  <jh@suse.cz>
74         PR lto/67548
75         * lto-plugin.c (linker_output, linker_output_set): New statics.
76         (all_symbols_read_handler): Add -flinker-output option.
77         (onload): Record linker_output info.
79 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
81         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
82         * configure: Regenerate.
83         * config.h.in: Ditto.
85 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
87         * Makefile.am: Drop 'by automake version' from top-level comment.
88         * Makefile.in: Regenerated with automake-1.11.6.
89         * aclocal.m4: Likewise.
90         * configure: Likewise.
92 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
94         * lto-plugin.c (release_input_file): Removed.
95         (claim_file_handler): Don't call release_input_file.
96         (onload): Don't set release_input_file.
98 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
100         * lto-plugin.c (claim_file_handler): Pass handle to
101         release_input_file.
103 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
105         * lto-plugin.c (claim_file_handler): Call release_input_file only
106         if file is claimed.
108 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
110         * lto-plugin.c (claim_file_handler): Call release_input_file only
111         if it is not NULL.
113 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
115         PR lto/64837
116         * lto-plugin.c (release_input_file): New.
117         (claim_file_handler): Call release_input_file.
118         (onload): Set release_input_file.
120 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
122         * lto-plugin.c (offload_files, num_offload_files): New static variables.
123         (free_1): Use arguments instead of global variables.
124         (free_2): Free offload_files.
125         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
126         arguments.
127         (claim_file_handler): Do not add file to claimed_files if it contains
128         offload sections without LTO sections.  Add it to offload_files instead.
130 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
132         PR bootstrap/63784
133         * configure: Regenerated.
135 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
136             Bernd Schmidt  <bernds@codesourcery.com>
137             Andrey Turetskiy  <andrey.turetskiy@intel.com>
138             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
140         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
141         (struct plugin_objfile): Add new field "offload".
142         (process_offload_section): New static function.
143         (claim_file_handler): Claim file if it contains offload sections.
145 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
146             Thomas Schwinge  <thomas@codesourcery.com>
147             Ilya Verbin  <ilya.verbin@intel.com>
148             Andrey Turetskiy  <andrey.turetskiy@intel.com>
150         * Makefile.am (libexecsubdir): Tweak for the possibility of being
151         configured for offload compiler.
152         (accel_dir_suffix, real_target_noncanonical): New variables substituted
153         by configure.
154         * Makefile.in: Regenerate.
155         * configure: Regenerate.
156         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
157         variables.
159 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
161         PR target/63610
162         * configure: Regenerate.
164 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
166         PR bootstrap/62260
167         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
168         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
169         $host_subdir.
170         * Makefile.in: Regenerated.
171         * configure: Likewise.
173 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
175         * configure.ac (--with-libiberty): New configure option.
176         * configure: Regenerate.
177         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
178         variables.
179         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
180         (liblto_plugin_la_DEPENDENCIES): Use them.
181         * Makefile.in: Regenerate.
183 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
185         PR lto/60981
186         * configure.ac: Check for -static-libgcc.
187         * configure: Regenerate.
189 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
191         PR sanitizer/56781
192         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
193         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
194         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
195         over ../libiberty/pic/libiberty.a if the former exists.
196         * Makefile.in: Regenerated.
198         PR sanitizer/56781
199         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
200         * Makefile.in: Regenerated.
202 2014-04-02  Richard Biener  <rguenther@suse.de>
204         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
205         is set in COLLECT_GCC_OPTIONS.
207 2014-03-28  Richard Biener  <rguenther@suse.de>
209         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
211 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
213         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
214         for gcc.
215         * configure: Regenerate.
216         * Makefile.am (AM_LDFLAGS): New variable.
217         (liblto_plugin_la_LDFLAGS): Add it.
218         * Makefile.in: Regenerate.
220 2013-09-20  Alan Modra  <amodra@gmail.com>
222         * configure: Regenerate.
224 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
226         * configure: Regenerated.
228 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
230         * lto-plugin.c: Fix typo.
232 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
234         * configure: Regenerated.
236 2012-02-22  Kai Tietz  <ktietz@redhat.com>
238         PR lto/50616
239         * lto-plugin.c (PRI_LL): New macro.
240         (dump_symtab): Use PRI_LL instead of ll in print.
241         (process_symtab): Use PRI_LL instead of ll in scan.
243 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
245         * configure: Regenerate.
247 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
249         * configure: Regenerate.
251 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
253         * configure: Regenerate.
255 2011-10-02  Jan Hubicka  <jh@suse.cz>
257         PR lto/47247
258         * lto-plugin.c (get_symbols_v2): New variable.
259         (write_resolution): Use V2 API when available.
260         (onload): Handle LDPT_GET_SYMBOLS_V2.
262 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
263             Andi Kleen  <ak@linux.intel.com>
265         PR lto/50568
266         * lto-plugin.c (sym_aux): Change id to unsigned long long.
267         (plugin_symtab): Likewise.
268         (dump_symtab): Likewise.
269         (resolve_conflicts): Likewise.
270         (process_symtab): Likewise.
272 2011-08-10  Richard Guenther  <rguenther@suse.de>
274         PR bootstrap/49907
275         lto-plugin/
276         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
277         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
278         * configure: Regenerate.
279         * Makefile.in: Likewise.
280         * aclocal.m4: Likewise.
282 2011-04-20  Jim Meyering  <meyering@redhat.com>
284         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
286 2011-04-05  Richard Guenther  <rguenther@suse.de>
288         PR bootstrap/48431
289         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
291 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
293         * Makefile.in: Regenerate.
294         * aclocal.m4: Regenerate.
295         * configure: Regenerate.
297 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
299         * Makefile.am (all-local): Rename from 'all'.
300         * Makefile.in: Regenerate.
302 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
304         PR lto/47225
305         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
306         (liblto_plugin_la_LDFLAGS): Add -module.
307         (copy_lto_plugin): Renamed to...
308         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
309         of static modules.
310         * Makefile.in: Rebuild.
312 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
314         PR lto/47225
315         * Makefile.am (Wc): New helper for encoding -Wc,.
316         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
317         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
318         * Makefile.in: Regenerated.
320 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
322         Revert:
324         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
326         PR lto/47225
327         * Makefile.am (Wl): New helper for encoding -Wl,.
328         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
329         * Makefile.in: Regenerated.
331 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
333         PR lto/47225
334         * Makefile.am (Wl): New helper for encoding -Wl,.
335         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
336         * Makefile.in: Regenerated.
338 2011-01-25  Ian Lance Taylor  <iant@google.com>
340         * lto-plugin.c (gold_version): New static variable.
341         (all_symbols_read_handler): Don't check pass_through_items if
342         using gold 1.11 or later.
343         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
345 2011-01-12  Richard Guenther  <rguenther@suse.de>
347         PR lto/47264
348         * lto-plugin.c (parse_table_entry): Use memcpy to access
349         unaligned fields.
351 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
353         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
354         * Makefile.in: Regenerate.
356 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
358         Revert last change.
360 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
362         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
363         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
364         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
365         * Makefile.in: Regenerate.
367 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
369         PR middle-end/46674
370         PR lto/43157
371         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
372         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
373         * configure: Regenerate.
374         * config.h.in: Likewise.
376 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
378         PR target/40125
379         PR lto/46695
380         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
381         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
382         override -bindir setting.
383         * aclocal.m4: Regenerate.
384         * configure: Regenerate.
385         * Makefile.in: Regenerate.
387 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
389         * config.h.in: Regenerated.
390         * configure: Regenerated.
391         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
392         * lto-plugin.c (WIFEXITED): Define default.
393         (WEXITSTATUS): Likeiwse.
395 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
397         * config.h.in: Regenerated.
398         * configure: Regenerated.
399         * Makefile.in: Regenerated.
400         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
401         * lto-plugin.c:  Include sys/wait.h conditionally.
402         * aclocal.m4: Regenerated.
404 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
406         * lto-plugin.c (add_output_files): Fix memory leak.
408 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
410         PR bootstrap/46397
411         PR bootstrap/46362
412         * configure.ac: Add AC_TYPE_INT64_T test.
413         * config.h.in: Regenerate.
414         * configure: Likewise.
415         * lto-plugin.c (debug): Use char not bool.
416         (nop): Likewise.
417         (check_1): Rename from check, and use int not bool for gate argument.
418         (check): Macro wrapper for the above to coerce gate argument into
419         boolean-valued integer in case it has pointer type.
420         (parse_table_entry): Use 0 not false.
421         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
422         into two 32-bit parts and printing as hex ints.
424 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
426         PR lto/46291
427         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
429 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
431         PR lto/46273
432         * lto-plugin.h: Delete.
433         * lto-plugin-elf.c: Likewise.
434         * lto-plugin-coff.c: Likewise.
435         * configure.ac: Don't use libelf, don't source config.gcc.
436         (LIBELFLIBS): Delete.
437         (LIBELFINC): Delete.
438         (LTO_FORMAT): Delete.
439         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
440         (config.h): Add AC_CONFIG_HEADERS directive.
441         * Makefile.am (LIBELFLIBS): Delete.
442         (LIBELFINC): Delete.
443         (LTO_FORMAT): Delete.
444         (DEFS): Import.
445         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
446         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
447         any object-format-specific source file in the link.
448         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
449         * config.h.in: Generate.
450         * configure: Regenerate.
451         * Makefile.in: Likewise.
452         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
453         (LTO_SEGMENT_NAME): New definition.
454         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
455         (LTO_SECTION_PREFIX_LEN): New definition.
456         (struct sym_aux): Struct definition moved here from lto-plugin.h.
457         (struct plugin_symtab): Likewise.
458         (struct plugin_objfile): Likewise.
459         (struct plugin_objfile): New struct def.
460         (enum symbol_style): New enum type.
461         (add_symbols): Make static.
462         (claimed_files): Likewise.
463         (num_claimed_files): Likewise.
464         (sym_style): New global.
465         (check): Make static.
466         (parse_table_entry): Likewise.  Respect sym_style when extracting
467         symbol from symtab entry.
468         (translate): Make static.
469         (resolve_conflicts): Likewise.
470         (process_symtab): New function, per-section callback version of
471         old object-format-specific handling from deleted lto-plugin-elf.c.
472         (claim_file_handler): Convert ELF-specific version from deleted
473         lto-plugin-elf.c to simple_object interface and move here.
474         (process_options): Allow new '-sym-style=' option.
475         (onload): Don't call deleted onload_format_checks hook.
477 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
479         * lto-plugin.c (dump_symtab): Correct printf argument type.
480         (finish_conflict_resolution): Initialize resolution.
482 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
484         PR bootstrap/45951
485         * configure.ac: Add AC_CANONICAL_SYSTEM.
486         * configure: Regenerated.
488 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
490         * configure.ac: Source config.gcc to determine lto_binary_reader.
491         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
492         * Makefile.am (LTO_FORMAT): Import.
493         (liblto_plugin_la_SOURCES): Add object format dependent module
494         defined by LTO_FORMAT.
495         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
496         and work around libtool warning.
497         * configure: Regenerate.
498         * Makefile.in: Likewise.
499         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
500         (struct sym_aux): Likewise.
501         (struct plugin_symtab): Likewise.
502         (struct plugin_file_info): Likewise.
503         (LTO_SECTION_PREFIX): Likewise.
504         (add_symbols):  Make non-static.
505         (claimed_files): Likewise.
506         (num_claimed_files): Likewise.
507         (check): Likewise.
508         (parse_table_entry): Likewise.
509         (translate): Likewise.
510         (resolve_conflicts): Likewise.
511         (process_symtab): Move to new lto-plugin-elf.c object format dependent
512         source file.
513         (claim_file_handler): Likewise, and make non-static.
514         (onload): Call new onload_format_checks function.
515         * lto-plugin.h: New file.
516         (LTO_SECTION_PREFIX): Move here.
517         (struct sym_aux): Likewise.
518         (struct plugin_symtab): Likewise.
519         (struct plugin_file_info): Likewise.
520         (claim_file_handler): Add new function prototype.
521         (onload_format_checks): Likewise.
522         (check): Declare extern.
523         (translate): Likewise.
524         (parse_table_entry): Likewise.
525         (resolve_conflicts): Likewise.
526         (add_symbols):  Likewise.
527         (claimed_files): Likewise.
528         (num_claimed_files): Likewise.
529         * lto-plugin-elf.c (process_symtab): Move here.
530         (claim_file_handler): Likewise, and make non-static.
531         (onload_format_checks): New function factored out from onload.
532         * lto-plugin-coff.c (claim_file_handler): New function stub.
533         (onload_format_checks): Likewise.
535 2010-08-05  Andi Kleen  <ak@linux.intel.com>
537         * lto-plugin.c: Include <hashtab.h>
538         (sym_aux): Add next_conflict field to save conflict chains.
539         (plugin_file_info): Add conflicts symtab.
540         (parse_table_entry): Initialize aux->next_conflict.
541         (process_symtab): Increment found.
542         (dump_symtab): Add.
543         (finish_conflict_resolution): Add.
544         (free_symtab): Add.
545         (write_resolution): Remove symbols loop and move into
546         dump_symtab. Call dump_symtab for main symbol and conflicts table.
547         Call free_symtab to free conflicts table.
548         (SWAP): Add.
549         (eq_sym): Add.
550         (hash_sym): Add.
551         (symbol_strength): Add.
552         (resolve_conflicts): Add.
553         (claim_file_handler): Add n variable. Check return value of
554         process_symtab. Call resolve_conflicts.
556 2010-07-27  Andi Kleen  <ak@linux.intel.com>
558         * lto-plugin.c (translate): Remove debug fprintf.
560 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
562         PR bootstrap/45042
563         * lto-plugin.c (translate): Cast to unsigned long.
565 2010-07-23   Andi Kleen  <ak@linux.intel.com>
567         PR lto/44992
568         * lto-plugin.c (sym_aux): Add.
569         (plugin_symtab): Remove slots. Add aux and id.
570         (parse_table_entry): Change to use aux instead of slots.
571         (LTO_SECTION_PREFIX): Add.
572         (translate): Improve buffer allocation. Change to append
573         symbols to existing out buffer.
574         (get_section): Remove.
575         (process_symtab): Add.
576         (free_2): Free symtab->aux.
577         (write_resolution): Handle aux instead of slots.
578         Print sub id to resolution file.
579         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
580         calls with call to process_symtab.
582 2010-07-22  Richard Guenther  <rguenther@suse.de>
584         * Makefile.am: New copy_lto_plugin rule to install the plugin
585         into ../gcc.
586         * Makefile.in: Regenerated.
588 2010-05-21  Richard Guenther  <rguenther@suse.de>
590         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
592 2010-05-07  Richard Guenther <rguenther@suse.de>
594         * lto-plugin.c (free_2): Do not free resolution_file.
595         (write_resolution): Check that we were passed a resolution file.
596         (all_symbols_read_handler): Adjust.
597         (cleanup_handler): Do not remove the resolution file.
598         (process_option): Handle -fresolution=.
600 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
602         PR other/43620
603         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
604         * Makefile.in: Regenerate.
606 2010-04-23  Richard Guenther  <rguenther@suse.de>
608         PR lto/41550
609         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
610         (translate): Likewise.
611         (all_symbols_read_handler): Likewise.
612         (claim_file_handler): Likewise.
613         (process_option): Likewise.
614         (add_output_files): Likewise.  Remove filename length limit.
616 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
618         * Makefile.in: Regenerate.
619         * aclocal.m4: Regenerate.
621 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
623         PR lto/43336
624         * lto-plugin.c (cleanup_handler): Delete temporary output files.
626 2010-01-11  Richard Guenther  <rguenther@suse.de>
628         PR lto/41569
629         * Makefile.am: Disable dependencies.
630         * Makefile.in: Regenerated.
632 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
634         PR lto/42520
635         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
636         if -v is passed.
638 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
640         PR bootstrap/42306
641         * configure: Regenerated.
642         * Makefile.in: Likewise.
644 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
646         PR bootstrap/42096
647         * lto-plugin.c (claim_file_handler): Print offsets in hex.
649 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
651         * lto-plugin.c (write_resolution): Assume resolution_file is set.
652         Print the symbol name.
653         (all_symbols_read_handler): Create a resolution file.
654         Pass it to gcc.
655         (cleanup_handler): Remove the resolution file.
656         (process_option): Drop the -resolution option.
658 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
660         * lto-plugin.c (temp_obj_dir_name): Remove.
661         (arguments_file_name): New.
662         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
663         (exec_lto_wrapper):  Create arguments file with make_temp_file.
664         (cleanup_handler): Don't remove the temporary directory. Remove the
665         arguments file.
666         (onload): Don't create the temporary directory.
668 2009-11-04  Richard Guenther  <rguenther@suse.de>
669             Rafael Avila de Espindola  <espindola@google.com>
671         * lto-plugin.c (plugin_file_info): Remove temp field.
672         (cleanup_handler): Don't delete temporary objects.
673         (claim_file_handler): Don't create temporary objects.
675 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
677         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
679 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
681         PR41871
682         * lto-plugin.c (claim_file_handler): Close files that we created.
684 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
686         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
687         LDPL_ERROR
689 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
691         PR lto/41652
692         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
693         * configure: Regenerate.
695 2009-10-26  Richard Guenther  <rguenther@suse.de>
697         * configure.ac: Use AM_MAINTAINER_MODE.
698         * acinclude.m4: Remove.
699         * configure: Re-generate.
700         * Makefile.in: Likewise.
701         * aclocal.m4: Likewise.
703 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
704     
705         PR40790
706         * configure: Regenerate.
707         * configure.ac: Add AC_TYPE_UINT64_T.
709 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
711         * lto-plugin.c (message): New variable.
712         (check): New function.
713         (parse_table_entry, translate, write_resolution,add_output_files,
714         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
715         assert.
716         (cleanup_handler): Use check instead of assert. Remove the arguments
717         file if it exists.
719 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
721         * lto-plugin.c (resolution_file): New.
722         (free_1): Update comment.
723         (free_2): Free resolution_file.
724         (write_resolution): Write resolution to specified file. Use the
725         syms array from the symbol table.
726         (all_symbols_read_handler): Delay call to free_1 past call to
727         write_resolution.
728         (process_option): Add a -resolution option.
730 2009-10-13  Richard Guenther  <rguenther@suse.de>
732         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
733         correct libiberty.
734         * Makefile.in: Regenerated.
736 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
738         * lto-plugin.c (add_input_library): New.
739         (all_symbols_read_handler): Use add_input_library for items that
740         start with -l.
741         (process_option): Fit in 80 columns.
742         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
744 2009-10-02  Diego Novillo  <dnovillo@google.com>
746         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
747         and -D_FILE_OFFSET_BITS=64.
748         * configure.ac: Add AC_SYS_LARGEFILE.
749         * configure: Regenerate.
750         * Makefile.in: Regenerate.
751         * lto-plugin.c: Fix copyright boilerplate.
753 2009-10-02  Diego Novillo  <dnovillo@google.com>
755         * Makefile.am (ACLOCAL_AMFLAGS): Define.
756         * aclocal.m4: Regenerate with aclocal-2.64
757         * acinclude.m4: Remove.
758         * Makefile.in: Regenerate with automake-1.11
759         * configure.ac (AC_PREREQ): Update to 2.64.
760         * configure: Regenerate.
762 2009-10-02  Diego Novillo  <dnovillo@google.com>
764         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
765         and -D_FILE_OFFSET_BITS=64.
766         * configure.ac: Add AC_SYS_LARGEFILE.
767         * configure: Regenerate.
768         * Makefile.in: Regenerate.
769         * lto-plugin.c: Fix copyright boilerplate.
771 2009-10-02  Diego Novillo  <dnovillo@google.com>
773         * Makefile.am (ACLOCAL_AMFLAGS): Define.
774         * aclocal.m4: Regenerate with aclocal-2.64
775         * acinclude.m4: Remove.
776         * Makefile.in: Regenerate with automake-1.11
777         * configure.ac (AC_PREREQ): Update to 2.64.
778         * configure: Regenerate.
780 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
782         * Makefile.am (liblto_plugin_la_SOURCES): Remove
783         $(top_srcdir)/../gcc/lto/common.c
784         * Makefile.in: Regenerate.
786 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
788         * lto-plugin.c (pass_through_items): New.
789         (num_pass_through_items): New.
790         (all_symbols_read_handler): Update to use the -pass-through option.
791         (process_option): Replace -libgcc with -pass-through.
792         
793 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
795         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
796         register_cleanup to be set.
798 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
800         * Makefile.am: Remove all reference to ltosymtab.
801         * Makefile.in: Regenerate.
802         * lto-symtab.c: Remove.
804 2009-05-21  Diego Novillo  <dnovillo@google.com>
806         * configure.ac: Remove call to AC_CHECK_GELF.
807         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
808         * acinclude.m4: Do not include ../config/libelf.m4
809         * Makefile.am (LIBELFLIBS): Define.
810         (LIBELFINC): Define.
811         (AM_CPPFLAGS): Add $(LIBELFINC).
812         (ltosymtab_LDADD): Add $(LIBELFLIBS).
813         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
814         * lto-plugin.c: Always include <gelf.h>
815         * lto-symtab.c: Likewise.
816         * configure: Regenerate.
817         * Makefile.in: Regenerate.
819 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
821         * lto-plugin.c (libgcc_filename): New.
822         (all_symbols_read_handler): Pass libgcc to the linker.
823         (all_symbols_read_handler): Parse -libgcc
825 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
827         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
828         * Makefile.in: Regenerate.
829         * lto-plugin.c (add_output_files): Argument is now a FILE.
830         (exec_lto_wrapper): Use writeargv and pex.
832 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
834         Revert:
835         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
836         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
839 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
841         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
843 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
845         * lto-plugin.c: Include libiberty.h.
846         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
847         snprintf.
849 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
851         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
852         file to lto-wrapper.
854 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
856         * lto-plugin.c (plugin_file_info): Remove fd and elf.
857         (parse_table_entry): strdup entry->name and entry->comdat_key.
858         (free_1): Free name and comdat_key. Don't close the file. Don't call
859         elf_end.
860         (claim_file_handler): Always call elf_end.
862 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
864         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
865         -D_FILE_OFFSET_BITS=64
866         * Makefile.in: Regenerate
868 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
870         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
871         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
872         * Makefile.in: Regenerate.
873         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
874         * configure: Regenerate.
875         * configure.ac: Add AC_SUBST(target_noncanonical).
877 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
879         * lto-plugin.c: Include stdbool.h.
880         (debug, nop): Declare as bool.
882 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
884         * lto-plugin.c (nop): New.
885         (use_original_files): New.
886         (all_symbols_read_handler): Call use_original_files if nop is true.
887         (process_option): Parse the -nop option.
889 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
891         * lto-plugin.c (debug): New.
892         (exec_lto_wrapper): Print argv if debug is true.
893         (process_option): Process the -debug command line option.
895 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
897         * lto-plugin.c (process_option): The argument is now a single option,
898         not a space separated list.
900 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
902         * lto-plugin.c: Include sys/types.h and sys/wait.h
903         (output_files, num_output_files, lto_wrapper_argv,
904         lto_wrapper_num_args): New.
905         (free_2): Free output_files.
906         (write_resolution): Disable.
907         (add_output_files): New.
908         (exec_lto_wrapper): New.
909         (all_symbols_read_handler): Run lto-wrapper.
910         (claim_file_handler): Free lto_file.name and call elf_end.
911         (process_option): New.
913 2008-11-26  Rafael Espindola  <espindola@google.com>
915         * lto-plugin.c (add_input_file): New.
916         (get_section): Return NULL if get_section fails.
917         (write_resolution): New.
918         (all_symbols_read_handler): Call add_input_file.
919         (claim_file_handler): Unlink the correct file.
920         (onload): Record add_input_file.
922 2008-09-23 Rafael Espindola  <espindola@google.com>
924         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
925         Update the location of common.c.
926         * Makefile.in: Regenerate.
927         * common.c: Moved to gcc/lto.
928         * common.h: Moved to gcc/lto.
929         * lto-plugin.c: Update the location of common.h.
930         * lto-symtab.c: Update the location of common.h.
932 2008-09-23 Rafael Espindola  <espindola@google.com>
934         * common.c: Include common.h.
935         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
936         sizes.
937         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
938         explicit sizes.
940 2008-09-23 Rafael Espindola  <espindola@google.com>
942         * lto-plugin.c (plugin_file_info): Add temp.
943         (cleanup_handler): Only delete temporary files.
944         (claim_file_handler): Initialize lto_file.temp.
946 2008-09-23  Rafael Espindola  <espindola@google.com>
948         * plugin-api.h: Moved to include.
950 2008-09-23 Rafael Espindola  <espindola@google.com>
952         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
953         format.
955 2008-09-22 Rafael Espindola  <espindola@google.com>
957         * plugin-api.h: Copy from binutils' cvs.
959 2008-09-22 Rafael Espindola  <espindola@google.com>
961         * lto-symtab.c (get_symbols, add_symbols): Update signature.
962         * plugin-api.h: Copy from binutils' cvs.
964 2008-09-22 Rafael Espindola  <espindola@google.com>
966         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
967         Make extern
969 2008-09-10 Rafael Espindola  <espindola@google.com>
971         * lto-plugin.c (onload): add missing break statements and asserts.
972         * lto-symtab.c (claim_file_handler): Make it static.
973         (all_symbols_read_handler): Make it static.
974         (all_file_handles): Make it static.
975         (num_file_handles): Make it static.
976         (register_claim_file): Make it static.
977         (register_object): Indent properly.
979 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
981         * Makefile.am (ltosymtab_LDADD): Add -lelf.
982         * Makefiel.in: Regenerate.
983         * lto-plugin.c: Include ar.h.
984         (claim_file_handler): Handle file->offset != 0.
985         * lto-symtab.c: Include gelf.h.
986         (all_file_handles): Change type.
987         (register_object): New.
988         (register_file): Add support for archives.
989         (resolve): Update to new type of all_file_handles.
990         (print): Update to new type of all_file_handles.
991         (free_all): Update to new type of all_file_handles.
992         (main): Update to new type of all_file_handles.
994 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
996         * lto-plugin.c (get_string_table): Remove.
997         (get_section): Use elf_strptr instead of get_string_table.
999 2008-09-08  Doug Kwan  <dougkwan@google.com>
1001         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1002         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1004 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
1006         * Makefile.am (ltosymtab_SOURCES): add common.c.
1007         (ltosymtab_CFLAGS): New.
1008         (liblto_plugin_la_SOURCES): Add common.c.
1009         * Makefile.in: Regenerate.
1010         * common.c: New.
1011         * common.h: New.
1012         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1013         (plugin_symtab): New.
1014         (plugin_file_info): New.
1015         (register_all_symbols_read): New.
1016         (get_symbols): New.
1017         (claimed_files): New.
1018         (num_claimed_files): New.
1019         (translate): Don't drop the slot number.
1020         (free_1): New.
1021         (free_2): New.
1022         (all_symbols_read_handler): New.
1023         (claim_file_handler): Record every claimed file.
1024         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1025         LDPT_GET_SYMBOLS.
1026         * lto-symtab.c: Include stdlib.h, string.h and common.h.
1027         (current_file_handle): Remove.
1028         (ld_plugin_all_symbols_read_handler): New.
1029         (plugin_handle): New.
1030         (file_handle): New.
1031         (all_file_handles): New.
1032         (num_file_handles): New.
1033         (get_symbols): New.
1034         (register_all_symbols_read): New.
1035         (add_symbols): Don't print the symbols, just record them.
1036         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1037         LDPT_GET_SYMBOLS.
1038         (load_plugin): Use plugin_handle.
1039         (register_file): Add the file handle to all_file_handles.
1040         (resolve): New.
1041         (print): New.
1042         (unload_plugin): New.
1043         (free_all): New.
1044         (main): Call all_symbols_read_handler and free resources.
1046 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1048         * Makefile.am (AM_CFLAGS): New.
1049         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1050         (lib_LTLIBRARIES): New.
1051         (liblto_plugin_la_SOURCES): New.
1052         (liblto_plugin_la_LIBADD): New.
1053         * Makefile.in: Regenerate.
1054         * acinclude.m4: Don't include ../config/acx.m4 and
1055         ../config/no-executables.m4.
1056         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1057         ../libtool.m4.
1058         * aclocal.m4: Regenerate.
1059         * configure: Regenerate.
1060         * configure.ac: Use AM_PROG_LIBTOOL.
1061         * lto-plugin.c: New.
1062         * lto-symtab.c: Rewrite to use the plugin.
1063         * plugin-api.h: New.
1065 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1067         * configure: Regenerate.
1068         * configure.ac: Use AC_CHECK_GELF.
1069         * lto-symtab.c: Include gelf.h.
1070         (get_string_table): Use size independent API.
1071         (printTable): Use lld to print 64 bit integers.
1073 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1075         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1076         entry->visibility are valid.
1078 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1079         * lto-symtab.c (table_entry): Add comdat.
1080         (parse_table_entry): Read comdat.
1082 2008-08-21  Rafael Espindola  <espindola@google.com>
1084         * Makefile.am: New.
1085         * Makefile.in: New.
1086         * acinclude.m4: New.
1087         * aclocal.m4: New.
1088         * configure: New.
1089         * configure.ac: New.
1090         * lto-symtab.c: New.