Update ChangeLog and version files for release
[official-gcc.git] / lto-plugin / ChangeLog
blob110ddcf30531dab2f1747ef5da6b959ecc0ff0e1
1 2017-07-04  Release Manager
3         * GCC 6.4.0 released.
5 2016-12-21  Release Manager
7         * GCC 6.3.0 released.
9 2016-08-22  Release Manager
11         * GCC 6.2.0 released.
13 2016-04-27  Release Manager
15         * GCC 6.1.0 released.
17 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
19         PR driver/68463
20         * lto-plugin.c (struct plugin_offload_file): New.
21         (offload_files): Change type.
22         (offload_files_last, offload_files_last_obj): New.
23         (offload_files_last_lto): New.
24         (free_2): Adjust accordingly.
25         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
26         Don't call free_1 for offload_files.  Write names of object files with
27         offloading to the temporary file.  Add new option to lto_arg_ptr.
28         (claim_file_handler): Don't claim file if it contains offload sections
29         without LTO sections.  If it contains offload sections, add to the list.
31 2016-01-15  Martin Liska  <mliska@suse.cz>
33         * lto-plugin.c (all_symbols_read_handler): Assign default
34         value to a string variable.
36 2015-11-25  Jan Hubicka  <jh@suse.cz>
38         PR lto/67548
39         * lto-plugin.c (linker_output, linker_output_set): New statics.
40         (all_symbols_read_handler): Add -flinker-output option.
41         (onload): Record linker_output info.
43 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
45         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
46         * configure: Regenerate.
47         * config.h.in: Ditto.
49 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
51         * Makefile.am: Drop 'by automake version' from top-level comment.
52         * Makefile.in: Regenerated with automake-1.11.6.
53         * aclocal.m4: Likewise.
54         * configure: Likewise.
56 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
58         * lto-plugin.c (release_input_file): Removed.
59         (claim_file_handler): Don't call release_input_file.
60         (onload): Don't set release_input_file.
62 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
64         * lto-plugin.c (claim_file_handler): Pass handle to
65         release_input_file.
67 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
69         * lto-plugin.c (claim_file_handler): Call release_input_file only
70         if file is claimed.
72 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
74         * lto-plugin.c (claim_file_handler): Call release_input_file only
75         if it is not NULL.
77 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
79         PR lto/64837
80         * lto-plugin.c (release_input_file): New.
81         (claim_file_handler): Call release_input_file.
82         (onload): Set release_input_file.
84 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
86         * lto-plugin.c (offload_files, num_offload_files): New static variables.
87         (free_1): Use arguments instead of global variables.
88         (free_2): Free offload_files.
89         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
90         arguments.
91         (claim_file_handler): Do not add file to claimed_files if it contains
92         offload sections without LTO sections.  Add it to offload_files instead.
94 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
96         PR bootstrap/63784
97         * configure: Regenerated.
99 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
100             Bernd Schmidt  <bernds@codesourcery.com>
101             Andrey Turetskiy  <andrey.turetskiy@intel.com>
102             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
104         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
105         (struct plugin_objfile): Add new field "offload".
106         (process_offload_section): New static function.
107         (claim_file_handler): Claim file if it contains offload sections.
109 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
110             Thomas Schwinge  <thomas@codesourcery.com>
111             Ilya Verbin  <ilya.verbin@intel.com>
112             Andrey Turetskiy  <andrey.turetskiy@intel.com>
114         * Makefile.am (libexecsubdir): Tweak for the possibility of being
115         configured for offload compiler.
116         (accel_dir_suffix, real_target_noncanonical): New variables substituted
117         by configure.
118         * Makefile.in: Regenerate.
119         * configure: Regenerate.
120         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
121         variables.
123 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
125         PR target/63610
126         * configure: Regenerate.
128 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
130         PR bootstrap/62260
131         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
132         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
133         $host_subdir.
134         * Makefile.in: Regenerated.
135         * configure: Likewise.
137 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
139         * configure.ac (--with-libiberty): New configure option.
140         * configure: Regenerate.
141         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
142         variables.
143         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
144         (liblto_plugin_la_DEPENDENCIES): Use them.
145         * Makefile.in: Regenerate.
147 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
149         PR lto/60981
150         * configure.ac: Check for -static-libgcc.
151         * configure: Regenerate.
153 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
155         PR sanitizer/56781
156         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
157         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
158         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
159         over ../libiberty/pic/libiberty.a if the former exists.
160         * Makefile.in: Regenerated.
162         PR sanitizer/56781
163         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
164         * Makefile.in: Regenerated.
166 2014-04-02  Richard Biener  <rguenther@suse.de>
168         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
169         is set in COLLECT_GCC_OPTIONS.
171 2014-03-28  Richard Biener  <rguenther@suse.de>
173         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
175 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
177         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
178         for gcc.
179         * configure: Regenerate.
180         * Makefile.am (AM_LDFLAGS): New variable.
181         (liblto_plugin_la_LDFLAGS): Add it.
182         * Makefile.in: Regenerate.
184 2013-09-20  Alan Modra  <amodra@gmail.com>
186         * configure: Regenerate.
188 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
190         * configure: Regenerated.
192 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
194         * lto-plugin.c: Fix typo.
196 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
198         * configure: Regenerated.
200 2012-02-22  Kai Tietz  <ktietz@redhat.com>
202         PR lto/50616
203         * lto-plugin.c (PRI_LL): New macro.
204         (dump_symtab): Use PRI_LL instead of ll in print.
205         (process_symtab): Use PRI_LL instead of ll in scan.
207 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
209         * configure: Regenerate.
211 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
213         * configure: Regenerate.
215 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
217         * configure: Regenerate.
219 2011-10-02  Jan Hubicka  <jh@suse.cz>
221         PR lto/47247
222         * lto-plugin.c (get_symbols_v2): New variable.
223         (write_resolution): Use V2 API when available.
224         (onload): Handle LDPT_GET_SYMBOLS_V2.
226 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
227             Andi Kleen  <ak@linux.intel.com>
229         PR lto/50568
230         * lto-plugin.c (sym_aux): Change id to unsigned long long.
231         (plugin_symtab): Likewise.
232         (dump_symtab): Likewise.
233         (resolve_conflicts): Likewise.
234         (process_symtab): Likewise.
236 2011-08-10  Richard Guenther  <rguenther@suse.de>
238         PR bootstrap/49907
239         lto-plugin/
240         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
241         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
242         * configure: Regenerate.
243         * Makefile.in: Likewise.
244         * aclocal.m4: Likewise.
246 2011-04-20  Jim Meyering  <meyering@redhat.com>
248         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
250 2011-04-05  Richard Guenther  <rguenther@suse.de>
252         PR bootstrap/48431
253         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
255 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
257         * Makefile.in: Regenerate.
258         * aclocal.m4: Regenerate.
259         * configure: Regenerate.
261 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
263         * Makefile.am (all-local): Rename from 'all'.
264         * Makefile.in: Regenerate.
266 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
268         PR lto/47225
269         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
270         (liblto_plugin_la_LDFLAGS): Add -module.
271         (copy_lto_plugin): Renamed to...
272         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
273         of static modules.
274         * Makefile.in: Rebuild.
276 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
278         PR lto/47225
279         * Makefile.am (Wc): New helper for encoding -Wc,.
280         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
281         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
282         * Makefile.in: Regenerated.
284 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
286         Revert:
288         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
290         PR lto/47225
291         * Makefile.am (Wl): New helper for encoding -Wl,.
292         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
293         * Makefile.in: Regenerated.
295 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
297         PR lto/47225
298         * Makefile.am (Wl): New helper for encoding -Wl,.
299         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
300         * Makefile.in: Regenerated.
302 2011-01-25  Ian Lance Taylor  <iant@google.com>
304         * lto-plugin.c (gold_version): New static variable.
305         (all_symbols_read_handler): Don't check pass_through_items if
306         using gold 1.11 or later.
307         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
309 2011-01-12  Richard Guenther  <rguenther@suse.de>
311         PR lto/47264
312         * lto-plugin.c (parse_table_entry): Use memcpy to access
313         unaligned fields.
315 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
317         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
318         * Makefile.in: Regenerate.
320 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
322         Revert last change.
324 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
326         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
327         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
328         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
329         * Makefile.in: Regenerate.
331 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
333         PR middle-end/46674
334         PR lto/43157
335         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
336         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
337         * configure: Regenerate.
338         * config.h.in: Likewise.
340 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
342         PR target/40125
343         PR lto/46695
344         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
345         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
346         override -bindir setting.
347         * aclocal.m4: Regenerate.
348         * configure: Regenerate.
349         * Makefile.in: Regenerate.
351 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
353         * config.h.in: Regenerated.
354         * configure: Regenerated.
355         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
356         * lto-plugin.c (WIFEXITED): Define default.
357         (WEXITSTATUS): Likeiwse.
359 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
361         * config.h.in: Regenerated.
362         * configure: Regenerated.
363         * Makefile.in: Regenerated.
364         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
365         * lto-plugin.c:  Include sys/wait.h conditionally.
366         * aclocal.m4: Regenerated.
368 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
370         * lto-plugin.c (add_output_files): Fix memory leak.
372 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
374         PR bootstrap/46397
375         PR bootstrap/46362
376         * configure.ac: Add AC_TYPE_INT64_T test.
377         * config.h.in: Regenerate.
378         * configure: Likewise.
379         * lto-plugin.c (debug): Use char not bool.
380         (nop): Likewise.
381         (check_1): Rename from check, and use int not bool for gate argument.
382         (check): Macro wrapper for the above to coerce gate argument into
383         boolean-valued integer in case it has pointer type.
384         (parse_table_entry): Use 0 not false.
385         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
386         into two 32-bit parts and printing as hex ints.
388 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
390         PR lto/46291
391         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
393 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
395         PR lto/46273
396         * lto-plugin.h: Delete.
397         * lto-plugin-elf.c: Likewise.
398         * lto-plugin-coff.c: Likewise.
399         * configure.ac: Don't use libelf, don't source config.gcc.
400         (LIBELFLIBS): Delete.
401         (LIBELFINC): Delete.
402         (LTO_FORMAT): Delete.
403         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
404         (config.h): Add AC_CONFIG_HEADERS directive.
405         * Makefile.am (LIBELFLIBS): Delete.
406         (LIBELFINC): Delete.
407         (LTO_FORMAT): Delete.
408         (DEFS): Import.
409         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
410         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
411         any object-format-specific source file in the link.
412         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
413         * config.h.in: Generate.
414         * configure: Regenerate.
415         * Makefile.in: Likewise.
416         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
417         (LTO_SEGMENT_NAME): New definition.
418         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
419         (LTO_SECTION_PREFIX_LEN): New definition.
420         (struct sym_aux): Struct definition moved here from lto-plugin.h.
421         (struct plugin_symtab): Likewise.
422         (struct plugin_objfile): Likewise.
423         (struct plugin_objfile): New struct def.
424         (enum symbol_style): New enum type.
425         (add_symbols): Make static.
426         (claimed_files): Likewise.
427         (num_claimed_files): Likewise.
428         (sym_style): New global.
429         (check): Make static.
430         (parse_table_entry): Likewise.  Respect sym_style when extracting
431         symbol from symtab entry.
432         (translate): Make static.
433         (resolve_conflicts): Likewise.
434         (process_symtab): New function, per-section callback version of
435         old object-format-specific handling from deleted lto-plugin-elf.c.
436         (claim_file_handler): Convert ELF-specific version from deleted
437         lto-plugin-elf.c to simple_object interface and move here.
438         (process_options): Allow new '-sym-style=' option.
439         (onload): Don't call deleted onload_format_checks hook.
441 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
443         * lto-plugin.c (dump_symtab): Correct printf argument type.
444         (finish_conflict_resolution): Initialize resolution.
446 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
448         PR bootstrap/45951
449         * configure.ac: Add AC_CANONICAL_SYSTEM.
450         * configure: Regenerated.
452 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
454         * configure.ac: Source config.gcc to determine lto_binary_reader.
455         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
456         * Makefile.am (LTO_FORMAT): Import.
457         (liblto_plugin_la_SOURCES): Add object format dependent module
458         defined by LTO_FORMAT.
459         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
460         and work around libtool warning.
461         * configure: Regenerate.
462         * Makefile.in: Likewise.
463         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
464         (struct sym_aux): Likewise.
465         (struct plugin_symtab): Likewise.
466         (struct plugin_file_info): Likewise.
467         (LTO_SECTION_PREFIX): Likewise.
468         (add_symbols):  Make non-static.
469         (claimed_files): Likewise.
470         (num_claimed_files): Likewise.
471         (check): Likewise.
472         (parse_table_entry): Likewise.
473         (translate): Likewise.
474         (resolve_conflicts): Likewise.
475         (process_symtab): Move to new lto-plugin-elf.c object format dependent
476         source file.
477         (claim_file_handler): Likewise, and make non-static.
478         (onload): Call new onload_format_checks function.
479         * lto-plugin.h: New file.
480         (LTO_SECTION_PREFIX): Move here.
481         (struct sym_aux): Likewise.
482         (struct plugin_symtab): Likewise.
483         (struct plugin_file_info): Likewise.
484         (claim_file_handler): Add new function prototype.
485         (onload_format_checks): Likewise.
486         (check): Declare extern.
487         (translate): Likewise.
488         (parse_table_entry): Likewise.
489         (resolve_conflicts): Likewise.
490         (add_symbols):  Likewise.
491         (claimed_files): Likewise.
492         (num_claimed_files): Likewise.
493         * lto-plugin-elf.c (process_symtab): Move here.
494         (claim_file_handler): Likewise, and make non-static.
495         (onload_format_checks): New function factored out from onload.
496         * lto-plugin-coff.c (claim_file_handler): New function stub.
497         (onload_format_checks): Likewise.
499 2010-08-05  Andi Kleen  <ak@linux.intel.com>
501         * lto-plugin.c: Include <hashtab.h>
502         (sym_aux): Add next_conflict field to save conflict chains.
503         (plugin_file_info): Add conflicts symtab.
504         (parse_table_entry): Initialize aux->next_conflict.
505         (process_symtab): Increment found.
506         (dump_symtab): Add.
507         (finish_conflict_resolution): Add.
508         (free_symtab): Add.
509         (write_resolution): Remove symbols loop and move into
510         dump_symtab. Call dump_symtab for main symbol and conflicts table.
511         Call free_symtab to free conflicts table.
512         (SWAP): Add.
513         (eq_sym): Add.
514         (hash_sym): Add.
515         (symbol_strength): Add.
516         (resolve_conflicts): Add.
517         (claim_file_handler): Add n variable. Check return value of
518         process_symtab. Call resolve_conflicts.
520 2010-07-27  Andi Kleen  <ak@linux.intel.com>
522         * lto-plugin.c (translate): Remove debug fprintf.
524 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
526         PR bootstrap/45042
527         * lto-plugin.c (translate): Cast to unsigned long.
529 2010-07-23   Andi Kleen  <ak@linux.intel.com>
531         PR lto/44992
532         * lto-plugin.c (sym_aux): Add.
533         (plugin_symtab): Remove slots. Add aux and id.
534         (parse_table_entry): Change to use aux instead of slots.
535         (LTO_SECTION_PREFIX): Add.
536         (translate): Improve buffer allocation. Change to append
537         symbols to existing out buffer.
538         (get_section): Remove.
539         (process_symtab): Add.
540         (free_2): Free symtab->aux.
541         (write_resolution): Handle aux instead of slots.
542         Print sub id to resolution file.
543         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
544         calls with call to process_symtab.
546 2010-07-22  Richard Guenther  <rguenther@suse.de>
548         * Makefile.am: New copy_lto_plugin rule to install the plugin
549         into ../gcc.
550         * Makefile.in: Regenerated.
552 2010-05-21  Richard Guenther  <rguenther@suse.de>
554         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
556 2010-05-07  Richard Guenther <rguenther@suse.de>
558         * lto-plugin.c (free_2): Do not free resolution_file.
559         (write_resolution): Check that we were passed a resolution file.
560         (all_symbols_read_handler): Adjust.
561         (cleanup_handler): Do not remove the resolution file.
562         (process_option): Handle -fresolution=.
564 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
566         PR other/43620
567         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
568         * Makefile.in: Regenerate.
570 2010-04-23  Richard Guenther  <rguenther@suse.de>
572         PR lto/41550
573         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
574         (translate): Likewise.
575         (all_symbols_read_handler): Likewise.
576         (claim_file_handler): Likewise.
577         (process_option): Likewise.
578         (add_output_files): Likewise.  Remove filename length limit.
580 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582         * Makefile.in: Regenerate.
583         * aclocal.m4: Regenerate.
585 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
587         PR lto/43336
588         * lto-plugin.c (cleanup_handler): Delete temporary output files.
590 2010-01-11  Richard Guenther  <rguenther@suse.de>
592         PR lto/41569
593         * Makefile.am: Disable dependencies.
594         * Makefile.in: Regenerated.
596 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
598         PR lto/42520
599         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
600         if -v is passed.
602 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
604         PR bootstrap/42306
605         * configure: Regenerated.
606         * Makefile.in: Likewise.
608 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
610         PR bootstrap/42096
611         * lto-plugin.c (claim_file_handler): Print offsets in hex.
613 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
615         * lto-plugin.c (write_resolution): Assume resolution_file is set.
616         Print the symbol name.
617         (all_symbols_read_handler): Create a resolution file.
618         Pass it to gcc.
619         (cleanup_handler): Remove the resolution file.
620         (process_option): Drop the -resolution option.
622 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
624         * lto-plugin.c (temp_obj_dir_name): Remove.
625         (arguments_file_name): New.
626         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
627         (exec_lto_wrapper):  Create arguments file with make_temp_file.
628         (cleanup_handler): Don't remove the temporary directory. Remove the
629         arguments file.
630         (onload): Don't create the temporary directory.
632 2009-11-04  Richard Guenther  <rguenther@suse.de>
633             Rafael Avila de Espindola  <espindola@google.com>
635         * lto-plugin.c (plugin_file_info): Remove temp field.
636         (cleanup_handler): Don't delete temporary objects.
637         (claim_file_handler): Don't create temporary objects.
639 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
641         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
643 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
645         PR41871
646         * lto-plugin.c (claim_file_handler): Close files that we created.
648 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
650         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
651         LDPL_ERROR
653 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
655         PR lto/41652
656         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
657         * configure: Regenerate.
659 2009-10-26  Richard Guenther  <rguenther@suse.de>
661         * configure.ac: Use AM_MAINTAINER_MODE.
662         * acinclude.m4: Remove.
663         * configure: Re-generate.
664         * Makefile.in: Likewise.
665         * aclocal.m4: Likewise.
667 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
668     
669         PR40790
670         * configure: Regenerate.
671         * configure.ac: Add AC_TYPE_UINT64_T.
673 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
675         * lto-plugin.c (message): New variable.
676         (check): New function.
677         (parse_table_entry, translate, write_resolution,add_output_files,
678         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
679         assert.
680         (cleanup_handler): Use check instead of assert. Remove the arguments
681         file if it exists.
683 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
685         * lto-plugin.c (resolution_file): New.
686         (free_1): Update comment.
687         (free_2): Free resolution_file.
688         (write_resolution): Write resolution to specified file. Use the
689         syms array from the symbol table.
690         (all_symbols_read_handler): Delay call to free_1 past call to
691         write_resolution.
692         (process_option): Add a -resolution option.
694 2009-10-13  Richard Guenther  <rguenther@suse.de>
696         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
697         correct libiberty.
698         * Makefile.in: Regenerated.
700 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
702         * lto-plugin.c (add_input_library): New.
703         (all_symbols_read_handler): Use add_input_library for items that
704         start with -l.
705         (process_option): Fit in 80 columns.
706         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
708 2009-10-02  Diego Novillo  <dnovillo@google.com>
710         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
711         and -D_FILE_OFFSET_BITS=64.
712         * configure.ac: Add AC_SYS_LARGEFILE.
713         * configure: Regenerate.
714         * Makefile.in: Regenerate.
715         * lto-plugin.c: Fix copyright boilerplate.
717 2009-10-02  Diego Novillo  <dnovillo@google.com>
719         * Makefile.am (ACLOCAL_AMFLAGS): Define.
720         * aclocal.m4: Regenerate with aclocal-2.64
721         * acinclude.m4: Remove.
722         * Makefile.in: Regenerate with automake-1.11
723         * configure.ac (AC_PREREQ): Update to 2.64.
724         * configure: Regenerate.
726 2009-10-02  Diego Novillo  <dnovillo@google.com>
728         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
729         and -D_FILE_OFFSET_BITS=64.
730         * configure.ac: Add AC_SYS_LARGEFILE.
731         * configure: Regenerate.
732         * Makefile.in: Regenerate.
733         * lto-plugin.c: Fix copyright boilerplate.
735 2009-10-02  Diego Novillo  <dnovillo@google.com>
737         * Makefile.am (ACLOCAL_AMFLAGS): Define.
738         * aclocal.m4: Regenerate with aclocal-2.64
739         * acinclude.m4: Remove.
740         * Makefile.in: Regenerate with automake-1.11
741         * configure.ac (AC_PREREQ): Update to 2.64.
742         * configure: Regenerate.
744 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
746         * Makefile.am (liblto_plugin_la_SOURCES): Remove
747         $(top_srcdir)/../gcc/lto/common.c
748         * Makefile.in: Regenerate.
750 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
752         * lto-plugin.c (pass_through_items): New.
753         (num_pass_through_items): New.
754         (all_symbols_read_handler): Update to use the -pass-through option.
755         (process_option): Replace -libgcc with -pass-through.
756         
757 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
759         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
760         register_cleanup to be set.
762 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
764         * Makefile.am: Remove all reference to ltosymtab.
765         * Makefile.in: Regenerate.
766         * lto-symtab.c: Remove.
768 2009-05-21  Diego Novillo  <dnovillo@google.com>
770         * configure.ac: Remove call to AC_CHECK_GELF.
771         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
772         * acinclude.m4: Do not include ../config/libelf.m4
773         * Makefile.am (LIBELFLIBS): Define.
774         (LIBELFINC): Define.
775         (AM_CPPFLAGS): Add $(LIBELFINC).
776         (ltosymtab_LDADD): Add $(LIBELFLIBS).
777         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
778         * lto-plugin.c: Always include <gelf.h>
779         * lto-symtab.c: Likewise.
780         * configure: Regenerate.
781         * Makefile.in: Regenerate.
783 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
785         * lto-plugin.c (libgcc_filename): New.
786         (all_symbols_read_handler): Pass libgcc to the linker.
787         (all_symbols_read_handler): Parse -libgcc
789 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
791         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
792         * Makefile.in: Regenerate.
793         * lto-plugin.c (add_output_files): Argument is now a FILE.
794         (exec_lto_wrapper): Use writeargv and pex.
796 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
798         Revert:
799         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
800         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
803 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
805         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
807 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
809         * lto-plugin.c: Include libiberty.h.
810         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
811         snprintf.
813 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
815         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
816         file to lto-wrapper.
818 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
820         * lto-plugin.c (plugin_file_info): Remove fd and elf.
821         (parse_table_entry): strdup entry->name and entry->comdat_key.
822         (free_1): Free name and comdat_key. Don't close the file. Don't call
823         elf_end.
824         (claim_file_handler): Always call elf_end.
826 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
828         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
829         -D_FILE_OFFSET_BITS=64
830         * Makefile.in: Regenerate
832 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
834         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
835         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
836         * Makefile.in: Regenerate.
837         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
838         * configure: Regenerate.
839         * configure.ac: Add AC_SUBST(target_noncanonical).
841 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
843         * lto-plugin.c: Include stdbool.h.
844         (debug, nop): Declare as bool.
846 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
848         * lto-plugin.c (nop): New.
849         (use_original_files): New.
850         (all_symbols_read_handler): Call use_original_files if nop is true.
851         (process_option): Parse the -nop option.
853 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
855         * lto-plugin.c (debug): New.
856         (exec_lto_wrapper): Print argv if debug is true.
857         (process_option): Process the -debug command line option.
859 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
861         * lto-plugin.c (process_option): The argument is now a single option,
862         not a space separated list.
864 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
866         * lto-plugin.c: Include sys/types.h and sys/wait.h
867         (output_files, num_output_files, lto_wrapper_argv,
868         lto_wrapper_num_args): New.
869         (free_2): Free output_files.
870         (write_resolution): Disable.
871         (add_output_files): New.
872         (exec_lto_wrapper): New.
873         (all_symbols_read_handler): Run lto-wrapper.
874         (claim_file_handler): Free lto_file.name and call elf_end.
875         (process_option): New.
877 2008-11-26  Rafael Espindola  <espindola@google.com>
879         * lto-plugin.c (add_input_file): New.
880         (get_section): Return NULL if get_section fails.
881         (write_resolution): New.
882         (all_symbols_read_handler): Call add_input_file.
883         (claim_file_handler): Unlink the correct file.
884         (onload): Record add_input_file.
886 2008-09-23 Rafael Espindola  <espindola@google.com>
888         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
889         Update the location of common.c.
890         * Makefile.in: Regenerate.
891         * common.c: Moved to gcc/lto.
892         * common.h: Moved to gcc/lto.
893         * lto-plugin.c: Update the location of common.h.
894         * lto-symtab.c: Update the location of common.h.
896 2008-09-23 Rafael Espindola  <espindola@google.com>
898         * common.c: Include common.h.
899         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
900         sizes.
901         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
902         explicit sizes.
904 2008-09-23 Rafael Espindola  <espindola@google.com>
906         * lto-plugin.c (plugin_file_info): Add temp.
907         (cleanup_handler): Only delete temporary files.
908         (claim_file_handler): Initialize lto_file.temp.
910 2008-09-23  Rafael Espindola  <espindola@google.com>
912         * plugin-api.h: Moved to include.
914 2008-09-23 Rafael Espindola  <espindola@google.com>
916         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
917         format.
919 2008-09-22 Rafael Espindola  <espindola@google.com>
921         * plugin-api.h: Copy from binutils' cvs.
923 2008-09-22 Rafael Espindola  <espindola@google.com>
925         * lto-symtab.c (get_symbols, add_symbols): Update signature.
926         * plugin-api.h: Copy from binutils' cvs.
928 2008-09-22 Rafael Espindola  <espindola@google.com>
930         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
931         Make extern
933 2008-09-10 Rafael Espindola  <espindola@google.com>
935         * lto-plugin.c (onload): add missing break statements and asserts.
936         * lto-symtab.c (claim_file_handler): Make it static.
937         (all_symbols_read_handler): Make it static.
938         (all_file_handles): Make it static.
939         (num_file_handles): Make it static.
940         (register_claim_file): Make it static.
941         (register_object): Indent properly.
943 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
945         * Makefile.am (ltosymtab_LDADD): Add -lelf.
946         * Makefiel.in: Regenerate.
947         * lto-plugin.c: Include ar.h.
948         (claim_file_handler): Handle file->offset != 0.
949         * lto-symtab.c: Include gelf.h.
950         (all_file_handles): Change type.
951         (register_object): New.
952         (register_file): Add support for archives.
953         (resolve): Update to new type of all_file_handles.
954         (print): Update to new type of all_file_handles.
955         (free_all): Update to new type of all_file_handles.
956         (main): Update to new type of all_file_handles.
958 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
960         * lto-plugin.c (get_string_table): Remove.
961         (get_section): Use elf_strptr instead of get_string_table.
963 2008-09-08  Doug Kwan  <dougkwan@google.com>
965         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
966         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
968 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
970         * Makefile.am (ltosymtab_SOURCES): add common.c.
971         (ltosymtab_CFLAGS): New.
972         (liblto_plugin_la_SOURCES): Add common.c.
973         * Makefile.in: Regenerate.
974         * common.c: New.
975         * common.h: New.
976         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
977         (plugin_symtab): New.
978         (plugin_file_info): New.
979         (register_all_symbols_read): New.
980         (get_symbols): New.
981         (claimed_files): New.
982         (num_claimed_files): New.
983         (translate): Don't drop the slot number.
984         (free_1): New.
985         (free_2): New.
986         (all_symbols_read_handler): New.
987         (claim_file_handler): Record every claimed file.
988         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
989         LDPT_GET_SYMBOLS.
990         * lto-symtab.c: Include stdlib.h, string.h and common.h.
991         (current_file_handle): Remove.
992         (ld_plugin_all_symbols_read_handler): New.
993         (plugin_handle): New.
994         (file_handle): New.
995         (all_file_handles): New.
996         (num_file_handles): New.
997         (get_symbols): New.
998         (register_all_symbols_read): New.
999         (add_symbols): Don't print the symbols, just record them.
1000         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1001         LDPT_GET_SYMBOLS.
1002         (load_plugin): Use plugin_handle.
1003         (register_file): Add the file handle to all_file_handles.
1004         (resolve): New.
1005         (print): New.
1006         (unload_plugin): New.
1007         (free_all): New.
1008         (main): Call all_symbols_read_handler and free resources.
1010 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1012         * Makefile.am (AM_CFLAGS): New.
1013         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1014         (lib_LTLIBRARIES): New.
1015         (liblto_plugin_la_SOURCES): New.
1016         (liblto_plugin_la_LIBADD): New.
1017         * Makefile.in: Regenerate.
1018         * acinclude.m4: Don't include ../config/acx.m4 and
1019         ../config/no-executables.m4.
1020         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1021         ../libtool.m4.
1022         * aclocal.m4: Regenerate.
1023         * configure: Regenerate.
1024         * configure.ac: Use AM_PROG_LIBTOOL.
1025         * lto-plugin.c: New.
1026         * lto-symtab.c: Rewrite to use the plugin.
1027         * plugin-api.h: New.
1029 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1031         * configure: Regenerate.
1032         * configure.ac: Use AC_CHECK_GELF.
1033         * lto-symtab.c: Include gelf.h.
1034         (get_string_table): Use size independent API.
1035         (printTable): Use lld to print 64 bit integers.
1037 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1039         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1040         entry->visibility are valid.
1042 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1043         * lto-symtab.c (table_entry): Add comdat.
1044         (parse_table_entry): Read comdat.
1046 2008-08-21  Rafael Espindola  <espindola@google.com>
1048         * Makefile.am: New.
1049         * Makefile.in: New.
1050         * acinclude.m4: New.
1051         * aclocal.m4: New.
1052         * configure: New.
1053         * configure.ac: New.
1054         * lto-symtab.c: New.