Update ChangeLog and version files for release
[official-gcc.git] / lto-plugin / ChangeLog
blob2b5d3162da506c1c58101efbbd3db4c94cda31df
1 2017-10-10  Release Manager
3         * GCC 5.5.0 released.
5 2017-08-22  Georg-Johann Lay  <avr@gjlay.de>
7         Backport from 2017-07-26 gcc-7-branch r250562.
9         PR lto/81487
10         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
11         asprintf.
12         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
14 2016-06-03  Release Manager
16         * GCC 5.4.0 released.
18 2015-12-04  Release Manager
20         * GCC 5.3.0 released.
22 2015-07-16  Release Manager
24         * GCC 5.2.0 released.
26 2015-04-22  Release Manager
28         * GCC 5.1.0 released.
30 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
32         * lto-plugin.c (release_input_file): Removed.
33         (claim_file_handler): Don't call release_input_file.
34         (onload): Don't set release_input_file.
36 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
38         * lto-plugin.c (claim_file_handler): Pass handle to
39         release_input_file.
41 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
43         * lto-plugin.c (claim_file_handler): Call release_input_file only
44         if file is claimed.
46 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
48         * lto-plugin.c (claim_file_handler): Call release_input_file only
49         if it is not NULL.
51 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
53         PR lto/64837
54         * lto-plugin.c (release_input_file): New.
55         (claim_file_handler): Call release_input_file.
56         (onload): Set release_input_file.
58 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
60         * lto-plugin.c (offload_files, num_offload_files): New static variables.
61         (free_1): Use arguments instead of global variables.
62         (free_2): Free offload_files.
63         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
64         arguments.
65         (claim_file_handler): Do not add file to claimed_files if it contains
66         offload sections without LTO sections.  Add it to offload_files instead.
68 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
70         PR bootstrap/63784
71         * configure: Regenerated.
73 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
74             Bernd Schmidt  <bernds@codesourcery.com>
75             Andrey Turetskiy  <andrey.turetskiy@intel.com>
76             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
78         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
79         (struct plugin_objfile): Add new field "offload".
80         (process_offload_section): New static function.
81         (claim_file_handler): Claim file if it contains offload sections.
83 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
84             Thomas Schwinge  <thomas@codesourcery.com>
85             Ilya Verbin  <ilya.verbin@intel.com>
86             Andrey Turetskiy  <andrey.turetskiy@intel.com>
88         * Makefile.am (libexecsubdir): Tweak for the possibility of being
89         configured for offload compiler.
90         (accel_dir_suffix, real_target_noncanonical): New variables substituted
91         by configure.
92         * Makefile.in: Regenerate.
93         * configure: Regenerate.
94         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
95         variables.
97 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
99         PR target/63610
100         * configure: Regenerate.
102 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
104         PR bootstrap/62260
105         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
106         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
107         $host_subdir.
108         * Makefile.in: Regenerated.
109         * configure: Likewise.
111 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
113         * configure.ac (--with-libiberty): New configure option.
114         * configure: Regenerate.
115         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
116         variables.
117         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
118         (liblto_plugin_la_DEPENDENCIES): Use them.
119         * Makefile.in: Regenerate.
121 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
123         PR lto/60981
124         * configure.ac: Check for -static-libgcc.
125         * configure: Regenerate.
127 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
129         PR sanitizer/56781
130         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
131         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
132         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
133         over ../libiberty/pic/libiberty.a if the former exists.
134         * Makefile.in: Regenerated.
136         PR sanitizer/56781
137         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
138         * Makefile.in: Regenerated.
140 2014-04-02  Richard Biener  <rguenther@suse.de>
142         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
143         is set in COLLECT_GCC_OPTIONS.
145 2014-03-28  Richard Biener  <rguenther@suse.de>
147         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
149 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
151         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
152         for gcc.
153         * configure: Regenerate.
154         * Makefile.am (AM_LDFLAGS): New variable.
155         (liblto_plugin_la_LDFLAGS): Add it.
156         * Makefile.in: Regenerate.
158 2013-09-20  Alan Modra  <amodra@gmail.com>
160         * configure: Regenerate.
162 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
164         * configure: Regenerated.
166 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
168         * lto-plugin.c: Fix typo.
170 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
172         * configure: Regenerated.
174 2012-02-22  Kai Tietz  <ktietz@redhat.com>
176         PR lto/50616
177         * lto-plugin.c (PRI_LL): New macro.
178         (dump_symtab): Use PRI_LL instead of ll in print.
179         (process_symtab): Use PRI_LL instead of ll in scan.
181 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
183         * configure: Regenerate.
185 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
187         * configure: Regenerate.
189 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
191         * configure: Regenerate.
193 2011-10-02  Jan Hubicka  <jh@suse.cz>
195         PR lto/47247
196         * lto-plugin.c (get_symbols_v2): New variable.
197         (write_resolution): Use V2 API when available.
198         (onload): Handle LDPT_GET_SYMBOLS_V2.
200 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
201             Andi Kleen  <ak@linux.intel.com>
203         PR lto/50568
204         * lto-plugin.c (sym_aux): Change id to unsigned long long.
205         (plugin_symtab): Likewise.
206         (dump_symtab): Likewise.
207         (resolve_conflicts): Likewise.
208         (process_symtab): Likewise.
210 2011-08-10  Richard Guenther  <rguenther@suse.de>
212         PR bootstrap/49907
213         lto-plugin/
214         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
215         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
216         * configure: Regenerate.
217         * Makefile.in: Likewise.
218         * aclocal.m4: Likewise.
220 2011-04-20  Jim Meyering  <meyering@redhat.com>
222         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
224 2011-04-05  Richard Guenther  <rguenther@suse.de>
226         PR bootstrap/48431
227         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
229 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
231         * Makefile.in: Regenerate.
232         * aclocal.m4: Regenerate.
233         * configure: Regenerate.
235 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
237         * Makefile.am (all-local): Rename from 'all'.
238         * Makefile.in: Regenerate.
240 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
242         PR lto/47225
243         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
244         (liblto_plugin_la_LDFLAGS): Add -module.
245         (copy_lto_plugin): Renamed to...
246         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
247         of static modules.
248         * Makefile.in: Rebuild.
250 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
252         PR lto/47225
253         * Makefile.am (Wc): New helper for encoding -Wc,.
254         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
255         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
256         * Makefile.in: Regenerated.
258 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
260         Revert:
262         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
264         PR lto/47225
265         * Makefile.am (Wl): New helper for encoding -Wl,.
266         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
267         * Makefile.in: Regenerated.
269 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
271         PR lto/47225
272         * Makefile.am (Wl): New helper for encoding -Wl,.
273         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
274         * Makefile.in: Regenerated.
276 2011-01-25  Ian Lance Taylor  <iant@google.com>
278         * lto-plugin.c (gold_version): New static variable.
279         (all_symbols_read_handler): Don't check pass_through_items if
280         using gold 1.11 or later.
281         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
283 2011-01-12  Richard Guenther  <rguenther@suse.de>
285         PR lto/47264
286         * lto-plugin.c (parse_table_entry): Use memcpy to access
287         unaligned fields.
289 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
291         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
292         * Makefile.in: Regenerate.
294 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
296         Revert last change.
298 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
300         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
301         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
302         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
303         * Makefile.in: Regenerate.
305 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
307         PR middle-end/46674
308         PR lto/43157
309         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
310         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
311         * configure: Regenerate.
312         * config.h.in: Likewise.
314 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
316         PR target/40125
317         PR lto/46695
318         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
319         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
320         override -bindir setting.
321         * aclocal.m4: Regenerate.
322         * configure: Regenerate.
323         * Makefile.in: Regenerate.
325 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
327         * config.h.in: Regenerated.
328         * configure: Regenerated.
329         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
330         * lto-plugin.c (WIFEXITED): Define default.
331         (WEXITSTATUS): Likeiwse.
333 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
335         * config.h.in: Regenerated.
336         * configure: Regenerated.
337         * Makefile.in: Regenerated.
338         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
339         * lto-plugin.c:  Include sys/wait.h conditionally.
340         * aclocal.m4: Regenerated.
342 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
344         * lto-plugin.c (add_output_files): Fix memory leak.
346 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
348         PR bootstrap/46397
349         PR bootstrap/46362
350         * configure.ac: Add AC_TYPE_INT64_T test.
351         * config.h.in: Regenerate.
352         * configure: Likewise.
353         * lto-plugin.c (debug): Use char not bool.
354         (nop): Likewise.
355         (check_1): Rename from check, and use int not bool for gate argument.
356         (check): Macro wrapper for the above to coerce gate argument into
357         boolean-valued integer in case it has pointer type.
358         (parse_table_entry): Use 0 not false.
359         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
360         into two 32-bit parts and printing as hex ints.
362 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
364         PR lto/46291
365         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
367 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
369         PR lto/46273
370         * lto-plugin.h: Delete.
371         * lto-plugin-elf.c: Likewise.
372         * lto-plugin-coff.c: Likewise.
373         * configure.ac: Don't use libelf, don't source config.gcc.
374         (LIBELFLIBS): Delete.
375         (LIBELFINC): Delete.
376         (LTO_FORMAT): Delete.
377         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
378         (config.h): Add AC_CONFIG_HEADERS directive.
379         * Makefile.am (LIBELFLIBS): Delete.
380         (LIBELFINC): Delete.
381         (LTO_FORMAT): Delete.
382         (DEFS): Import.
383         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
384         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
385         any object-format-specific source file in the link.
386         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
387         * config.h.in: Generate.
388         * configure: Regenerate.
389         * Makefile.in: Likewise.
390         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
391         (LTO_SEGMENT_NAME): New definition.
392         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
393         (LTO_SECTION_PREFIX_LEN): New definition.
394         (struct sym_aux): Struct definition moved here from lto-plugin.h.
395         (struct plugin_symtab): Likewise.
396         (struct plugin_objfile): Likewise.
397         (struct plugin_objfile): New struct def.
398         (enum symbol_style): New enum type.
399         (add_symbols): Make static.
400         (claimed_files): Likewise.
401         (num_claimed_files): Likewise.
402         (sym_style): New global.
403         (check): Make static.
404         (parse_table_entry): Likewise.  Respect sym_style when extracting
405         symbol from symtab entry.
406         (translate): Make static.
407         (resolve_conflicts): Likewise.
408         (process_symtab): New function, per-section callback version of
409         old object-format-specific handling from deleted lto-plugin-elf.c.
410         (claim_file_handler): Convert ELF-specific version from deleted
411         lto-plugin-elf.c to simple_object interface and move here.
412         (process_options): Allow new '-sym-style=' option.
413         (onload): Don't call deleted onload_format_checks hook.
415 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
417         * lto-plugin.c (dump_symtab): Correct printf argument type.
418         (finish_conflict_resolution): Initialize resolution.
420 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
422         PR bootstrap/45951
423         * configure.ac: Add AC_CANONICAL_SYSTEM.
424         * configure: Regenerated.
426 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
428         * configure.ac: Source config.gcc to determine lto_binary_reader.
429         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
430         * Makefile.am (LTO_FORMAT): Import.
431         (liblto_plugin_la_SOURCES): Add object format dependent module
432         defined by LTO_FORMAT.
433         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
434         and work around libtool warning.
435         * configure: Regenerate.
436         * Makefile.in: Likewise.
437         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
438         (struct sym_aux): Likewise.
439         (struct plugin_symtab): Likewise.
440         (struct plugin_file_info): Likewise.
441         (LTO_SECTION_PREFIX): Likewise.
442         (add_symbols):  Make non-static.
443         (claimed_files): Likewise.
444         (num_claimed_files): Likewise.
445         (check): Likewise.
446         (parse_table_entry): Likewise.
447         (translate): Likewise.
448         (resolve_conflicts): Likewise.
449         (process_symtab): Move to new lto-plugin-elf.c object format dependent
450         source file.
451         (claim_file_handler): Likewise, and make non-static.
452         (onload): Call new onload_format_checks function.
453         * lto-plugin.h: New file.
454         (LTO_SECTION_PREFIX): Move here.
455         (struct sym_aux): Likewise.
456         (struct plugin_symtab): Likewise.
457         (struct plugin_file_info): Likewise.
458         (claim_file_handler): Add new function prototype.
459         (onload_format_checks): Likewise.
460         (check): Declare extern.
461         (translate): Likewise.
462         (parse_table_entry): Likewise.
463         (resolve_conflicts): Likewise.
464         (add_symbols):  Likewise.
465         (claimed_files): Likewise.
466         (num_claimed_files): Likewise.
467         * lto-plugin-elf.c (process_symtab): Move here.
468         (claim_file_handler): Likewise, and make non-static.
469         (onload_format_checks): New function factored out from onload.
470         * lto-plugin-coff.c (claim_file_handler): New function stub.
471         (onload_format_checks): Likewise.
473 2010-08-05  Andi Kleen  <ak@linux.intel.com>
475         * lto-plugin.c: Include <hashtab.h>
476         (sym_aux): Add next_conflict field to save conflict chains.
477         (plugin_file_info): Add conflicts symtab.
478         (parse_table_entry): Initialize aux->next_conflict.
479         (process_symtab): Increment found.
480         (dump_symtab): Add.
481         (finish_conflict_resolution): Add.
482         (free_symtab): Add.
483         (write_resolution): Remove symbols loop and move into
484         dump_symtab. Call dump_symtab for main symbol and conflicts table.
485         Call free_symtab to free conflicts table.
486         (SWAP): Add.
487         (eq_sym): Add.
488         (hash_sym): Add.
489         (symbol_strength): Add.
490         (resolve_conflicts): Add.
491         (claim_file_handler): Add n variable. Check return value of
492         process_symtab. Call resolve_conflicts.
494 2010-07-27  Andi Kleen  <ak@linux.intel.com>
496         * lto-plugin.c (translate): Remove debug fprintf.
498 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
500         PR bootstrap/45042
501         * lto-plugin.c (translate): Cast to unsigned long.
503 2010-07-23   Andi Kleen  <ak@linux.intel.com>
505         PR lto/44992
506         * lto-plugin.c (sym_aux): Add.
507         (plugin_symtab): Remove slots. Add aux and id.
508         (parse_table_entry): Change to use aux instead of slots.
509         (LTO_SECTION_PREFIX): Add.
510         (translate): Improve buffer allocation. Change to append
511         symbols to existing out buffer.
512         (get_section): Remove.
513         (process_symtab): Add.
514         (free_2): Free symtab->aux.
515         (write_resolution): Handle aux instead of slots.
516         Print sub id to resolution file.
517         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
518         calls with call to process_symtab.
520 2010-07-22  Richard Guenther  <rguenther@suse.de>
522         * Makefile.am: New copy_lto_plugin rule to install the plugin
523         into ../gcc.
524         * Makefile.in: Regenerated.
526 2010-05-21  Richard Guenther  <rguenther@suse.de>
528         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
530 2010-05-07  Richard Guenther <rguenther@suse.de>
532         * lto-plugin.c (free_2): Do not free resolution_file.
533         (write_resolution): Check that we were passed a resolution file.
534         (all_symbols_read_handler): Adjust.
535         (cleanup_handler): Do not remove the resolution file.
536         (process_option): Handle -fresolution=.
538 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
540         PR other/43620
541         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
542         * Makefile.in: Regenerate.
544 2010-04-23  Richard Guenther  <rguenther@suse.de>
546         PR lto/41550
547         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
548         (translate): Likewise.
549         (all_symbols_read_handler): Likewise.
550         (claim_file_handler): Likewise.
551         (process_option): Likewise.
552         (add_output_files): Likewise.  Remove filename length limit.
554 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
556         * Makefile.in: Regenerate.
557         * aclocal.m4: Regenerate.
559 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
561         PR lto/43336
562         * lto-plugin.c (cleanup_handler): Delete temporary output files.
564 2010-01-11  Richard Guenther  <rguenther@suse.de>
566         PR lto/41569
567         * Makefile.am: Disable dependencies.
568         * Makefile.in: Regenerated.
570 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
572         PR lto/42520
573         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
574         if -v is passed.
576 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
578         PR bootstrap/42306
579         * configure: Regenerated.
580         * Makefile.in: Likewise.
582 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
584         PR bootstrap/42096
585         * lto-plugin.c (claim_file_handler): Print offsets in hex.
587 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
589         * lto-plugin.c (write_resolution): Assume resolution_file is set.
590         Print the symbol name.
591         (all_symbols_read_handler): Create a resolution file.
592         Pass it to gcc.
593         (cleanup_handler): Remove the resolution file.
594         (process_option): Drop the -resolution option.
596 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
598         * lto-plugin.c (temp_obj_dir_name): Remove.
599         (arguments_file_name): New.
600         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
601         (exec_lto_wrapper):  Create arguments file with make_temp_file.
602         (cleanup_handler): Don't remove the temporary directory. Remove the
603         arguments file.
604         (onload): Don't create the temporary directory.
606 2009-11-04  Richard Guenther  <rguenther@suse.de>
607             Rafael Avila de Espindola  <espindola@google.com>
609         * lto-plugin.c (plugin_file_info): Remove temp field.
610         (cleanup_handler): Don't delete temporary objects.
611         (claim_file_handler): Don't create temporary objects.
613 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
615         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
617 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
619         PR41871
620         * lto-plugin.c (claim_file_handler): Close files that we created.
622 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
624         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
625         LDPL_ERROR
627 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
629         PR lto/41652
630         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
631         * configure: Regenerate.
633 2009-10-26  Richard Guenther  <rguenther@suse.de>
635         * configure.ac: Use AM_MAINTAINER_MODE.
636         * acinclude.m4: Remove.
637         * configure: Re-generate.
638         * Makefile.in: Likewise.
639         * aclocal.m4: Likewise.
641 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
642     
643         PR40790
644         * configure: Regenerate.
645         * configure.ac: Add AC_TYPE_UINT64_T.
647 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
649         * lto-plugin.c (message): New variable.
650         (check): New function.
651         (parse_table_entry, translate, write_resolution,add_output_files,
652         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
653         assert.
654         (cleanup_handler): Use check instead of assert. Remove the arguments
655         file if it exists.
657 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
659         * lto-plugin.c (resolution_file): New.
660         (free_1): Update comment.
661         (free_2): Free resolution_file.
662         (write_resolution): Write resolution to specified file. Use the
663         syms array from the symbol table.
664         (all_symbols_read_handler): Delay call to free_1 past call to
665         write_resolution.
666         (process_option): Add a -resolution option.
668 2009-10-13  Richard Guenther  <rguenther@suse.de>
670         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
671         correct libiberty.
672         * Makefile.in: Regenerated.
674 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
676         * lto-plugin.c (add_input_library): New.
677         (all_symbols_read_handler): Use add_input_library for items that
678         start with -l.
679         (process_option): Fit in 80 columns.
680         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
682 2009-10-02  Diego Novillo  <dnovillo@google.com>
684         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
685         and -D_FILE_OFFSET_BITS=64.
686         * configure.ac: Add AC_SYS_LARGEFILE.
687         * configure: Regenerate.
688         * Makefile.in: Regenerate.
689         * lto-plugin.c: Fix copyright boilerplate.
691 2009-10-02  Diego Novillo  <dnovillo@google.com>
693         * Makefile.am (ACLOCAL_AMFLAGS): Define.
694         * aclocal.m4: Regenerate with aclocal-2.64
695         * acinclude.m4: Remove.
696         * Makefile.in: Regenerate with automake-1.11
697         * configure.ac (AC_PREREQ): Update to 2.64.
698         * configure: Regenerate.
700 2009-10-02  Diego Novillo  <dnovillo@google.com>
702         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
703         and -D_FILE_OFFSET_BITS=64.
704         * configure.ac: Add AC_SYS_LARGEFILE.
705         * configure: Regenerate.
706         * Makefile.in: Regenerate.
707         * lto-plugin.c: Fix copyright boilerplate.
709 2009-10-02  Diego Novillo  <dnovillo@google.com>
711         * Makefile.am (ACLOCAL_AMFLAGS): Define.
712         * aclocal.m4: Regenerate with aclocal-2.64
713         * acinclude.m4: Remove.
714         * Makefile.in: Regenerate with automake-1.11
715         * configure.ac (AC_PREREQ): Update to 2.64.
716         * configure: Regenerate.
718 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
720         * Makefile.am (liblto_plugin_la_SOURCES): Remove
721         $(top_srcdir)/../gcc/lto/common.c
722         * Makefile.in: Regenerate.
724 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
726         * lto-plugin.c (pass_through_items): New.
727         (num_pass_through_items): New.
728         (all_symbols_read_handler): Update to use the -pass-through option.
729         (process_option): Replace -libgcc with -pass-through.
730         
731 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
733         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
734         register_cleanup to be set.
736 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
738         * Makefile.am: Remove all reference to ltosymtab.
739         * Makefile.in: Regenerate.
740         * lto-symtab.c: Remove.
742 2009-05-21  Diego Novillo  <dnovillo@google.com>
744         * configure.ac: Remove call to AC_CHECK_GELF.
745         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
746         * acinclude.m4: Do not include ../config/libelf.m4
747         * Makefile.am (LIBELFLIBS): Define.
748         (LIBELFINC): Define.
749         (AM_CPPFLAGS): Add $(LIBELFINC).
750         (ltosymtab_LDADD): Add $(LIBELFLIBS).
751         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
752         * lto-plugin.c: Always include <gelf.h>
753         * lto-symtab.c: Likewise.
754         * configure: Regenerate.
755         * Makefile.in: Regenerate.
757 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
759         * lto-plugin.c (libgcc_filename): New.
760         (all_symbols_read_handler): Pass libgcc to the linker.
761         (all_symbols_read_handler): Parse -libgcc
763 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
765         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
766         * Makefile.in: Regenerate.
767         * lto-plugin.c (add_output_files): Argument is now a FILE.
768         (exec_lto_wrapper): Use writeargv and pex.
770 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
772         Revert:
773         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
774         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
777 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
779         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
781 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
783         * lto-plugin.c: Include libiberty.h.
784         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
785         snprintf.
787 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
789         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
790         file to lto-wrapper.
792 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
794         * lto-plugin.c (plugin_file_info): Remove fd and elf.
795         (parse_table_entry): strdup entry->name and entry->comdat_key.
796         (free_1): Free name and comdat_key. Don't close the file. Don't call
797         elf_end.
798         (claim_file_handler): Always call elf_end.
800 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
802         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
803         -D_FILE_OFFSET_BITS=64
804         * Makefile.in: Regenerate
806 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
808         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
809         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
810         * Makefile.in: Regenerate.
811         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
812         * configure: Regenerate.
813         * configure.ac: Add AC_SUBST(target_noncanonical).
815 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
817         * lto-plugin.c: Include stdbool.h.
818         (debug, nop): Declare as bool.
820 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
822         * lto-plugin.c (nop): New.
823         (use_original_files): New.
824         (all_symbols_read_handler): Call use_original_files if nop is true.
825         (process_option): Parse the -nop option.
827 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
829         * lto-plugin.c (debug): New.
830         (exec_lto_wrapper): Print argv if debug is true.
831         (process_option): Process the -debug command line option.
833 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
835         * lto-plugin.c (process_option): The argument is now a single option,
836         not a space separated list.
838 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
840         * lto-plugin.c: Include sys/types.h and sys/wait.h
841         (output_files, num_output_files, lto_wrapper_argv,
842         lto_wrapper_num_args): New.
843         (free_2): Free output_files.
844         (write_resolution): Disable.
845         (add_output_files): New.
846         (exec_lto_wrapper): New.
847         (all_symbols_read_handler): Run lto-wrapper.
848         (claim_file_handler): Free lto_file.name and call elf_end.
849         (process_option): New.
851 2008-11-26  Rafael Espindola  <espindola@google.com>
853         * lto-plugin.c (add_input_file): New.
854         (get_section): Return NULL if get_section fails.
855         (write_resolution): New.
856         (all_symbols_read_handler): Call add_input_file.
857         (claim_file_handler): Unlink the correct file.
858         (onload): Record add_input_file.
860 2008-09-23 Rafael Espindola  <espindola@google.com>
862         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
863         Update the location of common.c.
864         * Makefile.in: Regenerate.
865         * common.c: Moved to gcc/lto.
866         * common.h: Moved to gcc/lto.
867         * lto-plugin.c: Update the location of common.h.
868         * lto-symtab.c: Update the location of common.h.
870 2008-09-23 Rafael Espindola  <espindola@google.com>
872         * common.c: Include common.h.
873         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
874         sizes.
875         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
876         explicit sizes.
878 2008-09-23 Rafael Espindola  <espindola@google.com>
880         * lto-plugin.c (plugin_file_info): Add temp.
881         (cleanup_handler): Only delete temporary files.
882         (claim_file_handler): Initialize lto_file.temp.
884 2008-09-23  Rafael Espindola  <espindola@google.com>
886         * plugin-api.h: Moved to include.
888 2008-09-23 Rafael Espindola  <espindola@google.com>
890         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
891         format.
893 2008-09-22 Rafael Espindola  <espindola@google.com>
895         * plugin-api.h: Copy from binutils' cvs.
897 2008-09-22 Rafael Espindola  <espindola@google.com>
899         * lto-symtab.c (get_symbols, add_symbols): Update signature.
900         * plugin-api.h: Copy from binutils' cvs.
902 2008-09-22 Rafael Espindola  <espindola@google.com>
904         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
905         Make extern
907 2008-09-10 Rafael Espindola  <espindola@google.com>
909         * lto-plugin.c (onload): add missing break statements and asserts.
910         * lto-symtab.c (claim_file_handler): Make it static.
911         (all_symbols_read_handler): Make it static.
912         (all_file_handles): Make it static.
913         (num_file_handles): Make it static.
914         (register_claim_file): Make it static.
915         (register_object): Indent properly.
917 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
919         * Makefile.am (ltosymtab_LDADD): Add -lelf.
920         * Makefiel.in: Regenerate.
921         * lto-plugin.c: Include ar.h.
922         (claim_file_handler): Handle file->offset != 0.
923         * lto-symtab.c: Include gelf.h.
924         (all_file_handles): Change type.
925         (register_object): New.
926         (register_file): Add support for archives.
927         (resolve): Update to new type of all_file_handles.
928         (print): Update to new type of all_file_handles.
929         (free_all): Update to new type of all_file_handles.
930         (main): Update to new type of all_file_handles.
932 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
934         * lto-plugin.c (get_string_table): Remove.
935         (get_section): Use elf_strptr instead of get_string_table.
937 2008-09-08  Doug Kwan  <dougkwan@google.com>
939         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
940         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
942 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
944         * Makefile.am (ltosymtab_SOURCES): add common.c.
945         (ltosymtab_CFLAGS): New.
946         (liblto_plugin_la_SOURCES): Add common.c.
947         * Makefile.in: Regenerate.
948         * common.c: New.
949         * common.h: New.
950         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
951         (plugin_symtab): New.
952         (plugin_file_info): New.
953         (register_all_symbols_read): New.
954         (get_symbols): New.
955         (claimed_files): New.
956         (num_claimed_files): New.
957         (translate): Don't drop the slot number.
958         (free_1): New.
959         (free_2): New.
960         (all_symbols_read_handler): New.
961         (claim_file_handler): Record every claimed file.
962         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
963         LDPT_GET_SYMBOLS.
964         * lto-symtab.c: Include stdlib.h, string.h and common.h.
965         (current_file_handle): Remove.
966         (ld_plugin_all_symbols_read_handler): New.
967         (plugin_handle): New.
968         (file_handle): New.
969         (all_file_handles): New.
970         (num_file_handles): New.
971         (get_symbols): New.
972         (register_all_symbols_read): New.
973         (add_symbols): Don't print the symbols, just record them.
974         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
975         LDPT_GET_SYMBOLS.
976         (load_plugin): Use plugin_handle.
977         (register_file): Add the file handle to all_file_handles.
978         (resolve): New.
979         (print): New.
980         (unload_plugin): New.
981         (free_all): New.
982         (main): Call all_symbols_read_handler and free resources.
984 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
986         * Makefile.am (AM_CFLAGS): New.
987         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
988         (lib_LTLIBRARIES): New.
989         (liblto_plugin_la_SOURCES): New.
990         (liblto_plugin_la_LIBADD): New.
991         * Makefile.in: Regenerate.
992         * acinclude.m4: Don't include ../config/acx.m4 and
993         ../config/no-executables.m4.
994         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
995         ../libtool.m4.
996         * aclocal.m4: Regenerate.
997         * configure: Regenerate.
998         * configure.ac: Use AM_PROG_LIBTOOL.
999         * lto-plugin.c: New.
1000         * lto-symtab.c: Rewrite to use the plugin.
1001         * plugin-api.h: New.
1003 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1005         * configure: Regenerate.
1006         * configure.ac: Use AC_CHECK_GELF.
1007         * lto-symtab.c: Include gelf.h.
1008         (get_string_table): Use size independent API.
1009         (printTable): Use lld to print 64 bit integers.
1011 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1013         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1014         entry->visibility are valid.
1016 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1017         * lto-symtab.c (table_entry): Add comdat.
1018         (parse_table_entry): Read comdat.
1020 2008-08-21  Rafael Espindola  <espindola@google.com>
1022         * Makefile.am: New.
1023         * Makefile.in: New.
1024         * acinclude.m4: New.
1025         * aclocal.m4: New.
1026         * configure: New.
1027         * configure.ac: New.
1028         * lto-symtab.c: New.