2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / lto-plugin / ChangeLog
blob7b2170c4f4f2761e5355ed73d1434ea5619a965a
1 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
3         Update copyright years.
5 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
7         PR lto/81487
8         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
9         asprintf.
10         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
12 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
14         PR other/79046
15         * configure.ac: Add GCC_BASE_VER.
16         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
17         get version from BASE-VER file.
18         * configure: Regenerated.
19         * Makefile.in: Regenerated.
21 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
23         Update copyright years.
25 2016-11-15  Matthias Klose  <doko@ubuntu.com>
27         * configure: Regenerate.
29 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
31         PR driver/68463
32         * lto-plugin.c (struct plugin_offload_file): New.
33         (offload_files): Change type.
34         (offload_files_last, offload_files_last_obj): New.
35         (offload_files_last_lto): New.
36         (free_2): Adjust accordingly.
37         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
38         Don't call free_1 for offload_files.  Write names of object files with
39         offloading to the temporary file.  Add new option to lto_arg_ptr.
40         (claim_file_handler): Don't claim file if it contains offload sections
41         without LTO sections.  If it contains offload sections, add to the list.
43 2016-01-15  Martin Liska  <mliska@suse.cz>
45         * lto-plugin.c (all_symbols_read_handler): Assign default
46         value to a string variable.
48 2015-11-25  Jan Hubicka  <jh@suse.cz>
50         PR lto/67548
51         * lto-plugin.c (linker_output, linker_output_set): New statics.
52         (all_symbols_read_handler): Add -flinker-output option.
53         (onload): Record linker_output info.
55 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
57         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
58         * configure: Regenerate.
59         * config.h.in: Ditto.
61 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
63         * Makefile.am: Drop 'by automake version' from top-level comment.
64         * Makefile.in: Regenerated with automake-1.11.6.
65         * aclocal.m4: Likewise.
66         * configure: Likewise.
68 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
70         * lto-plugin.c (release_input_file): Removed.
71         (claim_file_handler): Don't call release_input_file.
72         (onload): Don't set release_input_file.
74 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
76         * lto-plugin.c (claim_file_handler): Pass handle to
77         release_input_file.
79 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
81         * lto-plugin.c (claim_file_handler): Call release_input_file only
82         if file is claimed.
84 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
86         * lto-plugin.c (claim_file_handler): Call release_input_file only
87         if it is not NULL.
89 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
91         PR lto/64837
92         * lto-plugin.c (release_input_file): New.
93         (claim_file_handler): Call release_input_file.
94         (onload): Set release_input_file.
96 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
98         * lto-plugin.c (offload_files, num_offload_files): New static variables.
99         (free_1): Use arguments instead of global variables.
100         (free_2): Free offload_files.
101         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
102         arguments.
103         (claim_file_handler): Do not add file to claimed_files if it contains
104         offload sections without LTO sections.  Add it to offload_files instead.
106 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
108         PR bootstrap/63784
109         * configure: Regenerated.
111 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
112             Bernd Schmidt  <bernds@codesourcery.com>
113             Andrey Turetskiy  <andrey.turetskiy@intel.com>
114             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
116         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
117         (struct plugin_objfile): Add new field "offload".
118         (process_offload_section): New static function.
119         (claim_file_handler): Claim file if it contains offload sections.
121 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
122             Thomas Schwinge  <thomas@codesourcery.com>
123             Ilya Verbin  <ilya.verbin@intel.com>
124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
126         * Makefile.am (libexecsubdir): Tweak for the possibility of being
127         configured for offload compiler.
128         (accel_dir_suffix, real_target_noncanonical): New variables substituted
129         by configure.
130         * Makefile.in: Regenerate.
131         * configure: Regenerate.
132         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
133         variables.
135 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
137         PR target/63610
138         * configure: Regenerate.
140 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
142         PR bootstrap/62260
143         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
144         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
145         $host_subdir.
146         * Makefile.in: Regenerated.
147         * configure: Likewise.
149 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
151         * configure.ac (--with-libiberty): New configure option.
152         * configure: Regenerate.
153         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
154         variables.
155         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
156         (liblto_plugin_la_DEPENDENCIES): Use them.
157         * Makefile.in: Regenerate.
159 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
161         PR lto/60981
162         * configure.ac: Check for -static-libgcc.
163         * configure: Regenerate.
165 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
167         PR sanitizer/56781
168         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
169         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
170         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
171         over ../libiberty/pic/libiberty.a if the former exists.
172         * Makefile.in: Regenerated.
174         PR sanitizer/56781
175         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
176         * Makefile.in: Regenerated.
178 2014-04-02  Richard Biener  <rguenther@suse.de>
180         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
181         is set in COLLECT_GCC_OPTIONS.
183 2014-03-28  Richard Biener  <rguenther@suse.de>
185         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
187 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
189         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
190         for gcc.
191         * configure: Regenerate.
192         * Makefile.am (AM_LDFLAGS): New variable.
193         (liblto_plugin_la_LDFLAGS): Add it.
194         * Makefile.in: Regenerate.
196 2013-09-20  Alan Modra  <amodra@gmail.com>
198         * configure: Regenerate.
200 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
202         * configure: Regenerated.
204 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
206         * lto-plugin.c: Fix typo.
208 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
210         * configure: Regenerated.
212 2012-02-22  Kai Tietz  <ktietz@redhat.com>
214         PR lto/50616
215         * lto-plugin.c (PRI_LL): New macro.
216         (dump_symtab): Use PRI_LL instead of ll in print.
217         (process_symtab): Use PRI_LL instead of ll in scan.
219 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
221         * configure: Regenerate.
223 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
225         * configure: Regenerate.
227 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
229         * configure: Regenerate.
231 2011-10-02  Jan Hubicka  <jh@suse.cz>
233         PR lto/47247
234         * lto-plugin.c (get_symbols_v2): New variable.
235         (write_resolution): Use V2 API when available.
236         (onload): Handle LDPT_GET_SYMBOLS_V2.
238 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
239             Andi Kleen  <ak@linux.intel.com>
241         PR lto/50568
242         * lto-plugin.c (sym_aux): Change id to unsigned long long.
243         (plugin_symtab): Likewise.
244         (dump_symtab): Likewise.
245         (resolve_conflicts): Likewise.
246         (process_symtab): Likewise.
248 2011-08-10  Richard Guenther  <rguenther@suse.de>
250         PR bootstrap/49907
251         lto-plugin/
252         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
253         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
254         * configure: Regenerate.
255         * Makefile.in: Likewise.
256         * aclocal.m4: Likewise.
258 2011-04-20  Jim Meyering  <meyering@redhat.com>
260         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
262 2011-04-05  Richard Guenther  <rguenther@suse.de>
264         PR bootstrap/48431
265         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
267 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
269         * Makefile.in: Regenerate.
270         * aclocal.m4: Regenerate.
271         * configure: Regenerate.
273 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
275         * Makefile.am (all-local): Rename from 'all'.
276         * Makefile.in: Regenerate.
278 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
280         PR lto/47225
281         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
282         (liblto_plugin_la_LDFLAGS): Add -module.
283         (copy_lto_plugin): Renamed to...
284         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
285         of static modules.
286         * Makefile.in: Rebuild.
288 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
290         PR lto/47225
291         * Makefile.am (Wc): New helper for encoding -Wc,.
292         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
293         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
294         * Makefile.in: Regenerated.
296 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
298         Revert:
300         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
302         PR lto/47225
303         * Makefile.am (Wl): New helper for encoding -Wl,.
304         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
305         * Makefile.in: Regenerated.
307 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
309         PR lto/47225
310         * Makefile.am (Wl): New helper for encoding -Wl,.
311         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
312         * Makefile.in: Regenerated.
314 2011-01-25  Ian Lance Taylor  <iant@google.com>
316         * lto-plugin.c (gold_version): New static variable.
317         (all_symbols_read_handler): Don't check pass_through_items if
318         using gold 1.11 or later.
319         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
321 2011-01-12  Richard Guenther  <rguenther@suse.de>
323         PR lto/47264
324         * lto-plugin.c (parse_table_entry): Use memcpy to access
325         unaligned fields.
327 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
329         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
330         * Makefile.in: Regenerate.
332 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
334         Revert last change.
336 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
338         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
339         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
340         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
341         * Makefile.in: Regenerate.
343 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
345         PR middle-end/46674
346         PR lto/43157
347         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
348         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
349         * configure: Regenerate.
350         * config.h.in: Likewise.
352 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
354         PR target/40125
355         PR lto/46695
356         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
357         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
358         override -bindir setting.
359         * aclocal.m4: Regenerate.
360         * configure: Regenerate.
361         * Makefile.in: Regenerate.
363 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
365         * config.h.in: Regenerated.
366         * configure: Regenerated.
367         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
368         * lto-plugin.c (WIFEXITED): Define default.
369         (WEXITSTATUS): Likeiwse.
371 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
373         * config.h.in: Regenerated.
374         * configure: Regenerated.
375         * Makefile.in: Regenerated.
376         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
377         * lto-plugin.c:  Include sys/wait.h conditionally.
378         * aclocal.m4: Regenerated.
380 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
382         * lto-plugin.c (add_output_files): Fix memory leak.
384 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
386         PR bootstrap/46397
387         PR bootstrap/46362
388         * configure.ac: Add AC_TYPE_INT64_T test.
389         * config.h.in: Regenerate.
390         * configure: Likewise.
391         * lto-plugin.c (debug): Use char not bool.
392         (nop): Likewise.
393         (check_1): Rename from check, and use int not bool for gate argument.
394         (check): Macro wrapper for the above to coerce gate argument into
395         boolean-valued integer in case it has pointer type.
396         (parse_table_entry): Use 0 not false.
397         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
398         into two 32-bit parts and printing as hex ints.
400 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
402         PR lto/46291
403         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
405 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
407         PR lto/46273
408         * lto-plugin.h: Delete.
409         * lto-plugin-elf.c: Likewise.
410         * lto-plugin-coff.c: Likewise.
411         * configure.ac: Don't use libelf, don't source config.gcc.
412         (LIBELFLIBS): Delete.
413         (LIBELFINC): Delete.
414         (LTO_FORMAT): Delete.
415         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
416         (config.h): Add AC_CONFIG_HEADERS directive.
417         * Makefile.am (LIBELFLIBS): Delete.
418         (LIBELFINC): Delete.
419         (LTO_FORMAT): Delete.
420         (DEFS): Import.
421         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
422         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
423         any object-format-specific source file in the link.
424         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
425         * config.h.in: Generate.
426         * configure: Regenerate.
427         * Makefile.in: Likewise.
428         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
429         (LTO_SEGMENT_NAME): New definition.
430         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
431         (LTO_SECTION_PREFIX_LEN): New definition.
432         (struct sym_aux): Struct definition moved here from lto-plugin.h.
433         (struct plugin_symtab): Likewise.
434         (struct plugin_objfile): Likewise.
435         (struct plugin_objfile): New struct def.
436         (enum symbol_style): New enum type.
437         (add_symbols): Make static.
438         (claimed_files): Likewise.
439         (num_claimed_files): Likewise.
440         (sym_style): New global.
441         (check): Make static.
442         (parse_table_entry): Likewise.  Respect sym_style when extracting
443         symbol from symtab entry.
444         (translate): Make static.
445         (resolve_conflicts): Likewise.
446         (process_symtab): New function, per-section callback version of
447         old object-format-specific handling from deleted lto-plugin-elf.c.
448         (claim_file_handler): Convert ELF-specific version from deleted
449         lto-plugin-elf.c to simple_object interface and move here.
450         (process_options): Allow new '-sym-style=' option.
451         (onload): Don't call deleted onload_format_checks hook.
453 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
455         * lto-plugin.c (dump_symtab): Correct printf argument type.
456         (finish_conflict_resolution): Initialize resolution.
458 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
460         PR bootstrap/45951
461         * configure.ac: Add AC_CANONICAL_SYSTEM.
462         * configure: Regenerated.
464 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
466         * configure.ac: Source config.gcc to determine lto_binary_reader.
467         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
468         * Makefile.am (LTO_FORMAT): Import.
469         (liblto_plugin_la_SOURCES): Add object format dependent module
470         defined by LTO_FORMAT.
471         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
472         and work around libtool warning.
473         * configure: Regenerate.
474         * Makefile.in: Likewise.
475         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
476         (struct sym_aux): Likewise.
477         (struct plugin_symtab): Likewise.
478         (struct plugin_file_info): Likewise.
479         (LTO_SECTION_PREFIX): Likewise.
480         (add_symbols):  Make non-static.
481         (claimed_files): Likewise.
482         (num_claimed_files): Likewise.
483         (check): Likewise.
484         (parse_table_entry): Likewise.
485         (translate): Likewise.
486         (resolve_conflicts): Likewise.
487         (process_symtab): Move to new lto-plugin-elf.c object format dependent
488         source file.
489         (claim_file_handler): Likewise, and make non-static.
490         (onload): Call new onload_format_checks function.
491         * lto-plugin.h: New file.
492         (LTO_SECTION_PREFIX): Move here.
493         (struct sym_aux): Likewise.
494         (struct plugin_symtab): Likewise.
495         (struct plugin_file_info): Likewise.
496         (claim_file_handler): Add new function prototype.
497         (onload_format_checks): Likewise.
498         (check): Declare extern.
499         (translate): Likewise.
500         (parse_table_entry): Likewise.
501         (resolve_conflicts): Likewise.
502         (add_symbols):  Likewise.
503         (claimed_files): Likewise.
504         (num_claimed_files): Likewise.
505         * lto-plugin-elf.c (process_symtab): Move here.
506         (claim_file_handler): Likewise, and make non-static.
507         (onload_format_checks): New function factored out from onload.
508         * lto-plugin-coff.c (claim_file_handler): New function stub.
509         (onload_format_checks): Likewise.
511 2010-08-05  Andi Kleen  <ak@linux.intel.com>
513         * lto-plugin.c: Include <hashtab.h>
514         (sym_aux): Add next_conflict field to save conflict chains.
515         (plugin_file_info): Add conflicts symtab.
516         (parse_table_entry): Initialize aux->next_conflict.
517         (process_symtab): Increment found.
518         (dump_symtab): Add.
519         (finish_conflict_resolution): Add.
520         (free_symtab): Add.
521         (write_resolution): Remove symbols loop and move into
522         dump_symtab. Call dump_symtab for main symbol and conflicts table.
523         Call free_symtab to free conflicts table.
524         (SWAP): Add.
525         (eq_sym): Add.
526         (hash_sym): Add.
527         (symbol_strength): Add.
528         (resolve_conflicts): Add.
529         (claim_file_handler): Add n variable. Check return value of
530         process_symtab. Call resolve_conflicts.
532 2010-07-27  Andi Kleen  <ak@linux.intel.com>
534         * lto-plugin.c (translate): Remove debug fprintf.
536 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
538         PR bootstrap/45042
539         * lto-plugin.c (translate): Cast to unsigned long.
541 2010-07-23   Andi Kleen  <ak@linux.intel.com>
543         PR lto/44992
544         * lto-plugin.c (sym_aux): Add.
545         (plugin_symtab): Remove slots. Add aux and id.
546         (parse_table_entry): Change to use aux instead of slots.
547         (LTO_SECTION_PREFIX): Add.
548         (translate): Improve buffer allocation. Change to append
549         symbols to existing out buffer.
550         (get_section): Remove.
551         (process_symtab): Add.
552         (free_2): Free symtab->aux.
553         (write_resolution): Handle aux instead of slots.
554         Print sub id to resolution file.
555         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
556         calls with call to process_symtab.
558 2010-07-22  Richard Guenther  <rguenther@suse.de>
560         * Makefile.am: New copy_lto_plugin rule to install the plugin
561         into ../gcc.
562         * Makefile.in: Regenerated.
564 2010-05-21  Richard Guenther  <rguenther@suse.de>
566         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
568 2010-05-07  Richard Guenther <rguenther@suse.de>
570         * lto-plugin.c (free_2): Do not free resolution_file.
571         (write_resolution): Check that we were passed a resolution file.
572         (all_symbols_read_handler): Adjust.
573         (cleanup_handler): Do not remove the resolution file.
574         (process_option): Handle -fresolution=.
576 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
578         PR other/43620
579         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
580         * Makefile.in: Regenerate.
582 2010-04-23  Richard Guenther  <rguenther@suse.de>
584         PR lto/41550
585         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
586         (translate): Likewise.
587         (all_symbols_read_handler): Likewise.
588         (claim_file_handler): Likewise.
589         (process_option): Likewise.
590         (add_output_files): Likewise.  Remove filename length limit.
592 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
594         * Makefile.in: Regenerate.
595         * aclocal.m4: Regenerate.
597 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
599         PR lto/43336
600         * lto-plugin.c (cleanup_handler): Delete temporary output files.
602 2010-01-11  Richard Guenther  <rguenther@suse.de>
604         PR lto/41569
605         * Makefile.am: Disable dependencies.
606         * Makefile.in: Regenerated.
608 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
610         PR lto/42520
611         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
612         if -v is passed.
614 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
616         PR bootstrap/42306
617         * configure: Regenerated.
618         * Makefile.in: Likewise.
620 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
622         PR bootstrap/42096
623         * lto-plugin.c (claim_file_handler): Print offsets in hex.
625 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
627         * lto-plugin.c (write_resolution): Assume resolution_file is set.
628         Print the symbol name.
629         (all_symbols_read_handler): Create a resolution file.
630         Pass it to gcc.
631         (cleanup_handler): Remove the resolution file.
632         (process_option): Drop the -resolution option.
634 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
636         * lto-plugin.c (temp_obj_dir_name): Remove.
637         (arguments_file_name): New.
638         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
639         (exec_lto_wrapper):  Create arguments file with make_temp_file.
640         (cleanup_handler): Don't remove the temporary directory. Remove the
641         arguments file.
642         (onload): Don't create the temporary directory.
644 2009-11-04  Richard Guenther  <rguenther@suse.de>
645             Rafael Avila de Espindola  <espindola@google.com>
647         * lto-plugin.c (plugin_file_info): Remove temp field.
648         (cleanup_handler): Don't delete temporary objects.
649         (claim_file_handler): Don't create temporary objects.
651 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
653         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
655 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
657         PR41871
658         * lto-plugin.c (claim_file_handler): Close files that we created.
660 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
662         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
663         LDPL_ERROR
665 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
667         PR lto/41652
668         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
669         * configure: Regenerate.
671 2009-10-26  Richard Guenther  <rguenther@suse.de>
673         * configure.ac: Use AM_MAINTAINER_MODE.
674         * acinclude.m4: Remove.
675         * configure: Re-generate.
676         * Makefile.in: Likewise.
677         * aclocal.m4: Likewise.
679 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
680     
681         PR40790
682         * configure: Regenerate.
683         * configure.ac: Add AC_TYPE_UINT64_T.
685 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
687         * lto-plugin.c (message): New variable.
688         (check): New function.
689         (parse_table_entry, translate, write_resolution,add_output_files,
690         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
691         assert.
692         (cleanup_handler): Use check instead of assert. Remove the arguments
693         file if it exists.
695 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
697         * lto-plugin.c (resolution_file): New.
698         (free_1): Update comment.
699         (free_2): Free resolution_file.
700         (write_resolution): Write resolution to specified file. Use the
701         syms array from the symbol table.
702         (all_symbols_read_handler): Delay call to free_1 past call to
703         write_resolution.
704         (process_option): Add a -resolution option.
706 2009-10-13  Richard Guenther  <rguenther@suse.de>
708         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
709         correct libiberty.
710         * Makefile.in: Regenerated.
712 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
714         * lto-plugin.c (add_input_library): New.
715         (all_symbols_read_handler): Use add_input_library for items that
716         start with -l.
717         (process_option): Fit in 80 columns.
718         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
720 2009-10-02  Diego Novillo  <dnovillo@google.com>
722         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
723         and -D_FILE_OFFSET_BITS=64.
724         * configure.ac: Add AC_SYS_LARGEFILE.
725         * configure: Regenerate.
726         * Makefile.in: Regenerate.
727         * lto-plugin.c: Fix copyright boilerplate.
729 2009-10-02  Diego Novillo  <dnovillo@google.com>
731         * Makefile.am (ACLOCAL_AMFLAGS): Define.
732         * aclocal.m4: Regenerate with aclocal-2.64
733         * acinclude.m4: Remove.
734         * Makefile.in: Regenerate with automake-1.11
735         * configure.ac (AC_PREREQ): Update to 2.64.
736         * configure: Regenerate.
738 2009-10-02  Diego Novillo  <dnovillo@google.com>
740         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
741         and -D_FILE_OFFSET_BITS=64.
742         * configure.ac: Add AC_SYS_LARGEFILE.
743         * configure: Regenerate.
744         * Makefile.in: Regenerate.
745         * lto-plugin.c: Fix copyright boilerplate.
747 2009-10-02  Diego Novillo  <dnovillo@google.com>
749         * Makefile.am (ACLOCAL_AMFLAGS): Define.
750         * aclocal.m4: Regenerate with aclocal-2.64
751         * acinclude.m4: Remove.
752         * Makefile.in: Regenerate with automake-1.11
753         * configure.ac (AC_PREREQ): Update to 2.64.
754         * configure: Regenerate.
756 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
758         * Makefile.am (liblto_plugin_la_SOURCES): Remove
759         $(top_srcdir)/../gcc/lto/common.c
760         * Makefile.in: Regenerate.
762 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
764         * lto-plugin.c (pass_through_items): New.
765         (num_pass_through_items): New.
766         (all_symbols_read_handler): Update to use the -pass-through option.
767         (process_option): Replace -libgcc with -pass-through.
768         
769 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
771         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
772         register_cleanup to be set.
774 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
776         * Makefile.am: Remove all reference to ltosymtab.
777         * Makefile.in: Regenerate.
778         * lto-symtab.c: Remove.
780 2009-05-21  Diego Novillo  <dnovillo@google.com>
782         * configure.ac: Remove call to AC_CHECK_GELF.
783         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
784         * acinclude.m4: Do not include ../config/libelf.m4
785         * Makefile.am (LIBELFLIBS): Define.
786         (LIBELFINC): Define.
787         (AM_CPPFLAGS): Add $(LIBELFINC).
788         (ltosymtab_LDADD): Add $(LIBELFLIBS).
789         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
790         * lto-plugin.c: Always include <gelf.h>
791         * lto-symtab.c: Likewise.
792         * configure: Regenerate.
793         * Makefile.in: Regenerate.
795 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
797         * lto-plugin.c (libgcc_filename): New.
798         (all_symbols_read_handler): Pass libgcc to the linker.
799         (all_symbols_read_handler): Parse -libgcc
801 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
803         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
804         * Makefile.in: Regenerate.
805         * lto-plugin.c (add_output_files): Argument is now a FILE.
806         (exec_lto_wrapper): Use writeargv and pex.
808 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
810         Revert:
811         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
812         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
815 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
817         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
819 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
821         * lto-plugin.c: Include libiberty.h.
822         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
823         snprintf.
825 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
827         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
828         file to lto-wrapper.
830 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
832         * lto-plugin.c (plugin_file_info): Remove fd and elf.
833         (parse_table_entry): strdup entry->name and entry->comdat_key.
834         (free_1): Free name and comdat_key. Don't close the file. Don't call
835         elf_end.
836         (claim_file_handler): Always call elf_end.
838 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
840         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
841         -D_FILE_OFFSET_BITS=64
842         * Makefile.in: Regenerate
844 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
846         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
847         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
848         * Makefile.in: Regenerate.
849         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
850         * configure: Regenerate.
851         * configure.ac: Add AC_SUBST(target_noncanonical).
853 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
855         * lto-plugin.c: Include stdbool.h.
856         (debug, nop): Declare as bool.
858 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
860         * lto-plugin.c (nop): New.
861         (use_original_files): New.
862         (all_symbols_read_handler): Call use_original_files if nop is true.
863         (process_option): Parse the -nop option.
865 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
867         * lto-plugin.c (debug): New.
868         (exec_lto_wrapper): Print argv if debug is true.
869         (process_option): Process the -debug command line option.
871 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
873         * lto-plugin.c (process_option): The argument is now a single option,
874         not a space separated list.
876 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
878         * lto-plugin.c: Include sys/types.h and sys/wait.h
879         (output_files, num_output_files, lto_wrapper_argv,
880         lto_wrapper_num_args): New.
881         (free_2): Free output_files.
882         (write_resolution): Disable.
883         (add_output_files): New.
884         (exec_lto_wrapper): New.
885         (all_symbols_read_handler): Run lto-wrapper.
886         (claim_file_handler): Free lto_file.name and call elf_end.
887         (process_option): New.
889 2008-11-26  Rafael Espindola  <espindola@google.com>
891         * lto-plugin.c (add_input_file): New.
892         (get_section): Return NULL if get_section fails.
893         (write_resolution): New.
894         (all_symbols_read_handler): Call add_input_file.
895         (claim_file_handler): Unlink the correct file.
896         (onload): Record add_input_file.
898 2008-09-23 Rafael Espindola  <espindola@google.com>
900         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
901         Update the location of common.c.
902         * Makefile.in: Regenerate.
903         * common.c: Moved to gcc/lto.
904         * common.h: Moved to gcc/lto.
905         * lto-plugin.c: Update the location of common.h.
906         * lto-symtab.c: Update the location of common.h.
908 2008-09-23 Rafael Espindola  <espindola@google.com>
910         * common.c: Include common.h.
911         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
912         sizes.
913         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
914         explicit sizes.
916 2008-09-23 Rafael Espindola  <espindola@google.com>
918         * lto-plugin.c (plugin_file_info): Add temp.
919         (cleanup_handler): Only delete temporary files.
920         (claim_file_handler): Initialize lto_file.temp.
922 2008-09-23  Rafael Espindola  <espindola@google.com>
924         * plugin-api.h: Moved to include.
926 2008-09-23 Rafael Espindola  <espindola@google.com>
928         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
929         format.
931 2008-09-22 Rafael Espindola  <espindola@google.com>
933         * plugin-api.h: Copy from binutils' cvs.
935 2008-09-22 Rafael Espindola  <espindola@google.com>
937         * lto-symtab.c (get_symbols, add_symbols): Update signature.
938         * plugin-api.h: Copy from binutils' cvs.
940 2008-09-22 Rafael Espindola  <espindola@google.com>
942         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
943         Make extern
945 2008-09-10 Rafael Espindola  <espindola@google.com>
947         * lto-plugin.c (onload): add missing break statements and asserts.
948         * lto-symtab.c (claim_file_handler): Make it static.
949         (all_symbols_read_handler): Make it static.
950         (all_file_handles): Make it static.
951         (num_file_handles): Make it static.
952         (register_claim_file): Make it static.
953         (register_object): Indent properly.
955 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
957         * Makefile.am (ltosymtab_LDADD): Add -lelf.
958         * Makefiel.in: Regenerate.
959         * lto-plugin.c: Include ar.h.
960         (claim_file_handler): Handle file->offset != 0.
961         * lto-symtab.c: Include gelf.h.
962         (all_file_handles): Change type.
963         (register_object): New.
964         (register_file): Add support for archives.
965         (resolve): Update to new type of all_file_handles.
966         (print): Update to new type of all_file_handles.
967         (free_all): Update to new type of all_file_handles.
968         (main): Update to new type of all_file_handles.
970 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
972         * lto-plugin.c (get_string_table): Remove.
973         (get_section): Use elf_strptr instead of get_string_table.
975 2008-09-08  Doug Kwan  <dougkwan@google.com>
977         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
978         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
980 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
982         * Makefile.am (ltosymtab_SOURCES): add common.c.
983         (ltosymtab_CFLAGS): New.
984         (liblto_plugin_la_SOURCES): Add common.c.
985         * Makefile.in: Regenerate.
986         * common.c: New.
987         * common.h: New.
988         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
989         (plugin_symtab): New.
990         (plugin_file_info): New.
991         (register_all_symbols_read): New.
992         (get_symbols): New.
993         (claimed_files): New.
994         (num_claimed_files): New.
995         (translate): Don't drop the slot number.
996         (free_1): New.
997         (free_2): New.
998         (all_symbols_read_handler): New.
999         (claim_file_handler): Record every claimed file.
1000         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1001         LDPT_GET_SYMBOLS.
1002         * lto-symtab.c: Include stdlib.h, string.h and common.h.
1003         (current_file_handle): Remove.
1004         (ld_plugin_all_symbols_read_handler): New.
1005         (plugin_handle): New.
1006         (file_handle): New.
1007         (all_file_handles): New.
1008         (num_file_handles): New.
1009         (get_symbols): New.
1010         (register_all_symbols_read): New.
1011         (add_symbols): Don't print the symbols, just record them.
1012         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1013         LDPT_GET_SYMBOLS.
1014         (load_plugin): Use plugin_handle.
1015         (register_file): Add the file handle to all_file_handles.
1016         (resolve): New.
1017         (print): New.
1018         (unload_plugin): New.
1019         (free_all): New.
1020         (main): Call all_symbols_read_handler and free resources.
1022 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1024         * Makefile.am (AM_CFLAGS): New.
1025         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1026         (lib_LTLIBRARIES): New.
1027         (liblto_plugin_la_SOURCES): New.
1028         (liblto_plugin_la_LIBADD): New.
1029         * Makefile.in: Regenerate.
1030         * acinclude.m4: Don't include ../config/acx.m4 and
1031         ../config/no-executables.m4.
1032         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1033         ../libtool.m4.
1034         * aclocal.m4: Regenerate.
1035         * configure: Regenerate.
1036         * configure.ac: Use AM_PROG_LIBTOOL.
1037         * lto-plugin.c: New.
1038         * lto-symtab.c: Rewrite to use the plugin.
1039         * plugin-api.h: New.
1041 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1043         * configure: Regenerate.
1044         * configure.ac: Use AC_CHECK_GELF.
1045         * lto-symtab.c: Include gelf.h.
1046         (get_string_table): Use size independent API.
1047         (printTable): Use lld to print 64 bit integers.
1049 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1051         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1052         entry->visibility are valid.
1054 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1055         * lto-symtab.c (table_entry): Add comdat.
1056         (parse_table_entry): Read comdat.
1058 2008-08-21  Rafael Espindola  <espindola@google.com>
1060         * Makefile.am: New.
1061         * Makefile.in: New.
1062         * acinclude.m4: New.
1063         * aclocal.m4: New.
1064         * configure: New.
1065         * configure.ac: New.
1066         * lto-symtab.c: New.