Update ChangeLog and version files for release
[official-gcc.git] / lto-plugin / ChangeLog
blob81f7df7c66db9b0f12e5b9b98e71452821171f72
1 2015-12-04  Release Manager
3         * GCC 5.3.0 released.
5 2015-07-16  Release Manager
7         * GCC 5.2.0 released.
9 2015-04-22  Release Manager
11         * GCC 5.1.0 released.
13 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
15         * lto-plugin.c (release_input_file): Removed.
16         (claim_file_handler): Don't call release_input_file.
17         (onload): Don't set release_input_file.
19 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21         * lto-plugin.c (claim_file_handler): Pass handle to
22         release_input_file.
24 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
26         * lto-plugin.c (claim_file_handler): Call release_input_file only
27         if file is claimed.
29 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
31         * lto-plugin.c (claim_file_handler): Call release_input_file only
32         if it is not NULL.
34 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
36         PR lto/64837
37         * lto-plugin.c (release_input_file): New.
38         (claim_file_handler): Call release_input_file.
39         (onload): Set release_input_file.
41 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
43         * lto-plugin.c (offload_files, num_offload_files): New static variables.
44         (free_1): Use arguments instead of global variables.
45         (free_2): Free offload_files.
46         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
47         arguments.
48         (claim_file_handler): Do not add file to claimed_files if it contains
49         offload sections without LTO sections.  Add it to offload_files instead.
51 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
53         PR bootstrap/63784
54         * configure: Regenerated.
56 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
57             Bernd Schmidt  <bernds@codesourcery.com>
58             Andrey Turetskiy  <andrey.turetskiy@intel.com>
59             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
61         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
62         (struct plugin_objfile): Add new field "offload".
63         (process_offload_section): New static function.
64         (claim_file_handler): Claim file if it contains offload sections.
66 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
67             Thomas Schwinge  <thomas@codesourcery.com>
68             Ilya Verbin  <ilya.verbin@intel.com>
69             Andrey Turetskiy  <andrey.turetskiy@intel.com>
71         * Makefile.am (libexecsubdir): Tweak for the possibility of being
72         configured for offload compiler.
73         (accel_dir_suffix, real_target_noncanonical): New variables substituted
74         by configure.
75         * Makefile.in: Regenerate.
76         * configure: Regenerate.
77         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
78         variables.
80 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
82         PR target/63610
83         * configure: Regenerate.
85 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
87         PR bootstrap/62260
88         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
89         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
90         $host_subdir.
91         * Makefile.in: Regenerated.
92         * configure: Likewise.
94 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
96         * configure.ac (--with-libiberty): New configure option.
97         * configure: Regenerate.
98         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
99         variables.
100         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
101         (liblto_plugin_la_DEPENDENCIES): Use them.
102         * Makefile.in: Regenerate.
104 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106         PR lto/60981
107         * configure.ac: Check for -static-libgcc.
108         * configure: Regenerate.
110 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
112         PR sanitizer/56781
113         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
114         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
115         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
116         over ../libiberty/pic/libiberty.a if the former exists.
117         * Makefile.in: Regenerated.
119         PR sanitizer/56781
120         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
121         * Makefile.in: Regenerated.
123 2014-04-02  Richard Biener  <rguenther@suse.de>
125         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
126         is set in COLLECT_GCC_OPTIONS.
128 2014-03-28  Richard Biener  <rguenther@suse.de>
130         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
132 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
134         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
135         for gcc.
136         * configure: Regenerate.
137         * Makefile.am (AM_LDFLAGS): New variable.
138         (liblto_plugin_la_LDFLAGS): Add it.
139         * Makefile.in: Regenerate.
141 2013-09-20  Alan Modra  <amodra@gmail.com>
143         * configure: Regenerate.
145 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
147         * configure: Regenerated.
149 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
151         * lto-plugin.c: Fix typo.
153 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
155         * configure: Regenerated.
157 2012-02-22  Kai Tietz  <ktietz@redhat.com>
159         PR lto/50616
160         * lto-plugin.c (PRI_LL): New macro.
161         (dump_symtab): Use PRI_LL instead of ll in print.
162         (process_symtab): Use PRI_LL instead of ll in scan.
164 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
166         * configure: Regenerate.
168 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
170         * configure: Regenerate.
172 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
174         * configure: Regenerate.
176 2011-10-02  Jan Hubicka  <jh@suse.cz>
178         PR lto/47247
179         * lto-plugin.c (get_symbols_v2): New variable.
180         (write_resolution): Use V2 API when available.
181         (onload): Handle LDPT_GET_SYMBOLS_V2.
183 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
184             Andi Kleen  <ak@linux.intel.com>
186         PR lto/50568
187         * lto-plugin.c (sym_aux): Change id to unsigned long long.
188         (plugin_symtab): Likewise.
189         (dump_symtab): Likewise.
190         (resolve_conflicts): Likewise.
191         (process_symtab): Likewise.
193 2011-08-10  Richard Guenther  <rguenther@suse.de>
195         PR bootstrap/49907
196         lto-plugin/
197         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
198         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
199         * configure: Regenerate.
200         * Makefile.in: Likewise.
201         * aclocal.m4: Likewise.
203 2011-04-20  Jim Meyering  <meyering@redhat.com>
205         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
207 2011-04-05  Richard Guenther  <rguenther@suse.de>
209         PR bootstrap/48431
210         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
212 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
214         * Makefile.in: Regenerate.
215         * aclocal.m4: Regenerate.
216         * configure: Regenerate.
218 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
220         * Makefile.am (all-local): Rename from 'all'.
221         * Makefile.in: Regenerate.
223 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
225         PR lto/47225
226         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
227         (liblto_plugin_la_LDFLAGS): Add -module.
228         (copy_lto_plugin): Renamed to...
229         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
230         of static modules.
231         * Makefile.in: Rebuild.
233 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
235         PR lto/47225
236         * Makefile.am (Wc): New helper for encoding -Wc,.
237         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
238         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
239         * Makefile.in: Regenerated.
241 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
243         Revert:
245         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
247         PR lto/47225
248         * Makefile.am (Wl): New helper for encoding -Wl,.
249         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
250         * Makefile.in: Regenerated.
252 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
254         PR lto/47225
255         * Makefile.am (Wl): New helper for encoding -Wl,.
256         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
257         * Makefile.in: Regenerated.
259 2011-01-25  Ian Lance Taylor  <iant@google.com>
261         * lto-plugin.c (gold_version): New static variable.
262         (all_symbols_read_handler): Don't check pass_through_items if
263         using gold 1.11 or later.
264         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
266 2011-01-12  Richard Guenther  <rguenther@suse.de>
268         PR lto/47264
269         * lto-plugin.c (parse_table_entry): Use memcpy to access
270         unaligned fields.
272 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
274         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
275         * Makefile.in: Regenerate.
277 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
279         Revert last change.
281 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
283         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
284         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
285         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
286         * Makefile.in: Regenerate.
288 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
290         PR middle-end/46674
291         PR lto/43157
292         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
293         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
294         * configure: Regenerate.
295         * config.h.in: Likewise.
297 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
299         PR target/40125
300         PR lto/46695
301         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
302         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
303         override -bindir setting.
304         * aclocal.m4: Regenerate.
305         * configure: Regenerate.
306         * Makefile.in: Regenerate.
308 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
310         * config.h.in: Regenerated.
311         * configure: Regenerated.
312         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
313         * lto-plugin.c (WIFEXITED): Define default.
314         (WEXITSTATUS): Likeiwse.
316 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
318         * config.h.in: Regenerated.
319         * configure: Regenerated.
320         * Makefile.in: Regenerated.
321         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
322         * lto-plugin.c:  Include sys/wait.h conditionally.
323         * aclocal.m4: Regenerated.
325 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
327         * lto-plugin.c (add_output_files): Fix memory leak.
329 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
331         PR bootstrap/46397
332         PR bootstrap/46362
333         * configure.ac: Add AC_TYPE_INT64_T test.
334         * config.h.in: Regenerate.
335         * configure: Likewise.
336         * lto-plugin.c (debug): Use char not bool.
337         (nop): Likewise.
338         (check_1): Rename from check, and use int not bool for gate argument.
339         (check): Macro wrapper for the above to coerce gate argument into
340         boolean-valued integer in case it has pointer type.
341         (parse_table_entry): Use 0 not false.
342         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
343         into two 32-bit parts and printing as hex ints.
345 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
347         PR lto/46291
348         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
350 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
352         PR lto/46273
353         * lto-plugin.h: Delete.
354         * lto-plugin-elf.c: Likewise.
355         * lto-plugin-coff.c: Likewise.
356         * configure.ac: Don't use libelf, don't source config.gcc.
357         (LIBELFLIBS): Delete.
358         (LIBELFINC): Delete.
359         (LTO_FORMAT): Delete.
360         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
361         (config.h): Add AC_CONFIG_HEADERS directive.
362         * Makefile.am (LIBELFLIBS): Delete.
363         (LIBELFINC): Delete.
364         (LTO_FORMAT): Delete.
365         (DEFS): Import.
366         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
367         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
368         any object-format-specific source file in the link.
369         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
370         * config.h.in: Generate.
371         * configure: Regenerate.
372         * Makefile.in: Likewise.
373         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
374         (LTO_SEGMENT_NAME): New definition.
375         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
376         (LTO_SECTION_PREFIX_LEN): New definition.
377         (struct sym_aux): Struct definition moved here from lto-plugin.h.
378         (struct plugin_symtab): Likewise.
379         (struct plugin_objfile): Likewise.
380         (struct plugin_objfile): New struct def.
381         (enum symbol_style): New enum type.
382         (add_symbols): Make static.
383         (claimed_files): Likewise.
384         (num_claimed_files): Likewise.
385         (sym_style): New global.
386         (check): Make static.
387         (parse_table_entry): Likewise.  Respect sym_style when extracting
388         symbol from symtab entry.
389         (translate): Make static.
390         (resolve_conflicts): Likewise.
391         (process_symtab): New function, per-section callback version of
392         old object-format-specific handling from deleted lto-plugin-elf.c.
393         (claim_file_handler): Convert ELF-specific version from deleted
394         lto-plugin-elf.c to simple_object interface and move here.
395         (process_options): Allow new '-sym-style=' option.
396         (onload): Don't call deleted onload_format_checks hook.
398 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
400         * lto-plugin.c (dump_symtab): Correct printf argument type.
401         (finish_conflict_resolution): Initialize resolution.
403 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
405         PR bootstrap/45951
406         * configure.ac: Add AC_CANONICAL_SYSTEM.
407         * configure: Regenerated.
409 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
411         * configure.ac: Source config.gcc to determine lto_binary_reader.
412         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
413         * Makefile.am (LTO_FORMAT): Import.
414         (liblto_plugin_la_SOURCES): Add object format dependent module
415         defined by LTO_FORMAT.
416         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
417         and work around libtool warning.
418         * configure: Regenerate.
419         * Makefile.in: Likewise.
420         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
421         (struct sym_aux): Likewise.
422         (struct plugin_symtab): Likewise.
423         (struct plugin_file_info): Likewise.
424         (LTO_SECTION_PREFIX): Likewise.
425         (add_symbols):  Make non-static.
426         (claimed_files): Likewise.
427         (num_claimed_files): Likewise.
428         (check): Likewise.
429         (parse_table_entry): Likewise.
430         (translate): Likewise.
431         (resolve_conflicts): Likewise.
432         (process_symtab): Move to new lto-plugin-elf.c object format dependent
433         source file.
434         (claim_file_handler): Likewise, and make non-static.
435         (onload): Call new onload_format_checks function.
436         * lto-plugin.h: New file.
437         (LTO_SECTION_PREFIX): Move here.
438         (struct sym_aux): Likewise.
439         (struct plugin_symtab): Likewise.
440         (struct plugin_file_info): Likewise.
441         (claim_file_handler): Add new function prototype.
442         (onload_format_checks): Likewise.
443         (check): Declare extern.
444         (translate): Likewise.
445         (parse_table_entry): Likewise.
446         (resolve_conflicts): Likewise.
447         (add_symbols):  Likewise.
448         (claimed_files): Likewise.
449         (num_claimed_files): Likewise.
450         * lto-plugin-elf.c (process_symtab): Move here.
451         (claim_file_handler): Likewise, and make non-static.
452         (onload_format_checks): New function factored out from onload.
453         * lto-plugin-coff.c (claim_file_handler): New function stub.
454         (onload_format_checks): Likewise.
456 2010-08-05  Andi Kleen  <ak@linux.intel.com>
458         * lto-plugin.c: Include <hashtab.h>
459         (sym_aux): Add next_conflict field to save conflict chains.
460         (plugin_file_info): Add conflicts symtab.
461         (parse_table_entry): Initialize aux->next_conflict.
462         (process_symtab): Increment found.
463         (dump_symtab): Add.
464         (finish_conflict_resolution): Add.
465         (free_symtab): Add.
466         (write_resolution): Remove symbols loop and move into
467         dump_symtab. Call dump_symtab for main symbol and conflicts table.
468         Call free_symtab to free conflicts table.
469         (SWAP): Add.
470         (eq_sym): Add.
471         (hash_sym): Add.
472         (symbol_strength): Add.
473         (resolve_conflicts): Add.
474         (claim_file_handler): Add n variable. Check return value of
475         process_symtab. Call resolve_conflicts.
477 2010-07-27  Andi Kleen  <ak@linux.intel.com>
479         * lto-plugin.c (translate): Remove debug fprintf.
481 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
483         PR bootstrap/45042
484         * lto-plugin.c (translate): Cast to unsigned long.
486 2010-07-23   Andi Kleen  <ak@linux.intel.com>
488         PR lto/44992
489         * lto-plugin.c (sym_aux): Add.
490         (plugin_symtab): Remove slots. Add aux and id.
491         (parse_table_entry): Change to use aux instead of slots.
492         (LTO_SECTION_PREFIX): Add.
493         (translate): Improve buffer allocation. Change to append
494         symbols to existing out buffer.
495         (get_section): Remove.
496         (process_symtab): Add.
497         (free_2): Free symtab->aux.
498         (write_resolution): Handle aux instead of slots.
499         Print sub id to resolution file.
500         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
501         calls with call to process_symtab.
503 2010-07-22  Richard Guenther  <rguenther@suse.de>
505         * Makefile.am: New copy_lto_plugin rule to install the plugin
506         into ../gcc.
507         * Makefile.in: Regenerated.
509 2010-05-21  Richard Guenther  <rguenther@suse.de>
511         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
513 2010-05-07  Richard Guenther <rguenther@suse.de>
515         * lto-plugin.c (free_2): Do not free resolution_file.
516         (write_resolution): Check that we were passed a resolution file.
517         (all_symbols_read_handler): Adjust.
518         (cleanup_handler): Do not remove the resolution file.
519         (process_option): Handle -fresolution=.
521 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
523         PR other/43620
524         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
525         * Makefile.in: Regenerate.
527 2010-04-23  Richard Guenther  <rguenther@suse.de>
529         PR lto/41550
530         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
531         (translate): Likewise.
532         (all_symbols_read_handler): Likewise.
533         (claim_file_handler): Likewise.
534         (process_option): Likewise.
535         (add_output_files): Likewise.  Remove filename length limit.
537 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
539         * Makefile.in: Regenerate.
540         * aclocal.m4: Regenerate.
542 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
544         PR lto/43336
545         * lto-plugin.c (cleanup_handler): Delete temporary output files.
547 2010-01-11  Richard Guenther  <rguenther@suse.de>
549         PR lto/41569
550         * Makefile.am: Disable dependencies.
551         * Makefile.in: Regenerated.
553 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
555         PR lto/42520
556         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
557         if -v is passed.
559 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
561         PR bootstrap/42306
562         * configure: Regenerated.
563         * Makefile.in: Likewise.
565 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
567         PR bootstrap/42096
568         * lto-plugin.c (claim_file_handler): Print offsets in hex.
570 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
572         * lto-plugin.c (write_resolution): Assume resolution_file is set.
573         Print the symbol name.
574         (all_symbols_read_handler): Create a resolution file.
575         Pass it to gcc.
576         (cleanup_handler): Remove the resolution file.
577         (process_option): Drop the -resolution option.
579 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
581         * lto-plugin.c (temp_obj_dir_name): Remove.
582         (arguments_file_name): New.
583         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
584         (exec_lto_wrapper):  Create arguments file with make_temp_file.
585         (cleanup_handler): Don't remove the temporary directory. Remove the
586         arguments file.
587         (onload): Don't create the temporary directory.
589 2009-11-04  Richard Guenther  <rguenther@suse.de>
590             Rafael Avila de Espindola  <espindola@google.com>
592         * lto-plugin.c (plugin_file_info): Remove temp field.
593         (cleanup_handler): Don't delete temporary objects.
594         (claim_file_handler): Don't create temporary objects.
596 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
598         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
600 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
602         PR41871
603         * lto-plugin.c (claim_file_handler): Close files that we created.
605 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
607         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
608         LDPL_ERROR
610 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
612         PR lto/41652
613         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
614         * configure: Regenerate.
616 2009-10-26  Richard Guenther  <rguenther@suse.de>
618         * configure.ac: Use AM_MAINTAINER_MODE.
619         * acinclude.m4: Remove.
620         * configure: Re-generate.
621         * Makefile.in: Likewise.
622         * aclocal.m4: Likewise.
624 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
625     
626         PR40790
627         * configure: Regenerate.
628         * configure.ac: Add AC_TYPE_UINT64_T.
630 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
632         * lto-plugin.c (message): New variable.
633         (check): New function.
634         (parse_table_entry, translate, write_resolution,add_output_files,
635         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
636         assert.
637         (cleanup_handler): Use check instead of assert. Remove the arguments
638         file if it exists.
640 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
642         * lto-plugin.c (resolution_file): New.
643         (free_1): Update comment.
644         (free_2): Free resolution_file.
645         (write_resolution): Write resolution to specified file. Use the
646         syms array from the symbol table.
647         (all_symbols_read_handler): Delay call to free_1 past call to
648         write_resolution.
649         (process_option): Add a -resolution option.
651 2009-10-13  Richard Guenther  <rguenther@suse.de>
653         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
654         correct libiberty.
655         * Makefile.in: Regenerated.
657 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
659         * lto-plugin.c (add_input_library): New.
660         (all_symbols_read_handler): Use add_input_library for items that
661         start with -l.
662         (process_option): Fit in 80 columns.
663         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
665 2009-10-02  Diego Novillo  <dnovillo@google.com>
667         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
668         and -D_FILE_OFFSET_BITS=64.
669         * configure.ac: Add AC_SYS_LARGEFILE.
670         * configure: Regenerate.
671         * Makefile.in: Regenerate.
672         * lto-plugin.c: Fix copyright boilerplate.
674 2009-10-02  Diego Novillo  <dnovillo@google.com>
676         * Makefile.am (ACLOCAL_AMFLAGS): Define.
677         * aclocal.m4: Regenerate with aclocal-2.64
678         * acinclude.m4: Remove.
679         * Makefile.in: Regenerate with automake-1.11
680         * configure.ac (AC_PREREQ): Update to 2.64.
681         * configure: Regenerate.
683 2009-10-02  Diego Novillo  <dnovillo@google.com>
685         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
686         and -D_FILE_OFFSET_BITS=64.
687         * configure.ac: Add AC_SYS_LARGEFILE.
688         * configure: Regenerate.
689         * Makefile.in: Regenerate.
690         * lto-plugin.c: Fix copyright boilerplate.
692 2009-10-02  Diego Novillo  <dnovillo@google.com>
694         * Makefile.am (ACLOCAL_AMFLAGS): Define.
695         * aclocal.m4: Regenerate with aclocal-2.64
696         * acinclude.m4: Remove.
697         * Makefile.in: Regenerate with automake-1.11
698         * configure.ac (AC_PREREQ): Update to 2.64.
699         * configure: Regenerate.
701 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
703         * Makefile.am (liblto_plugin_la_SOURCES): Remove
704         $(top_srcdir)/../gcc/lto/common.c
705         * Makefile.in: Regenerate.
707 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
709         * lto-plugin.c (pass_through_items): New.
710         (num_pass_through_items): New.
711         (all_symbols_read_handler): Update to use the -pass-through option.
712         (process_option): Replace -libgcc with -pass-through.
713         
714 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
716         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
717         register_cleanup to be set.
719 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
721         * Makefile.am: Remove all reference to ltosymtab.
722         * Makefile.in: Regenerate.
723         * lto-symtab.c: Remove.
725 2009-05-21  Diego Novillo  <dnovillo@google.com>
727         * configure.ac: Remove call to AC_CHECK_GELF.
728         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
729         * acinclude.m4: Do not include ../config/libelf.m4
730         * Makefile.am (LIBELFLIBS): Define.
731         (LIBELFINC): Define.
732         (AM_CPPFLAGS): Add $(LIBELFINC).
733         (ltosymtab_LDADD): Add $(LIBELFLIBS).
734         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
735         * lto-plugin.c: Always include <gelf.h>
736         * lto-symtab.c: Likewise.
737         * configure: Regenerate.
738         * Makefile.in: Regenerate.
740 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
742         * lto-plugin.c (libgcc_filename): New.
743         (all_symbols_read_handler): Pass libgcc to the linker.
744         (all_symbols_read_handler): Parse -libgcc
746 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
748         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
749         * Makefile.in: Regenerate.
750         * lto-plugin.c (add_output_files): Argument is now a FILE.
751         (exec_lto_wrapper): Use writeargv and pex.
753 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
755         Revert:
756         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
757         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
760 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
762         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
764 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
766         * lto-plugin.c: Include libiberty.h.
767         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
768         snprintf.
770 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
772         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
773         file to lto-wrapper.
775 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
777         * lto-plugin.c (plugin_file_info): Remove fd and elf.
778         (parse_table_entry): strdup entry->name and entry->comdat_key.
779         (free_1): Free name and comdat_key. Don't close the file. Don't call
780         elf_end.
781         (claim_file_handler): Always call elf_end.
783 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
785         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
786         -D_FILE_OFFSET_BITS=64
787         * Makefile.in: Regenerate
789 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
791         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
792         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
793         * Makefile.in: Regenerate.
794         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
795         * configure: Regenerate.
796         * configure.ac: Add AC_SUBST(target_noncanonical).
798 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
800         * lto-plugin.c: Include stdbool.h.
801         (debug, nop): Declare as bool.
803 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
805         * lto-plugin.c (nop): New.
806         (use_original_files): New.
807         (all_symbols_read_handler): Call use_original_files if nop is true.
808         (process_option): Parse the -nop option.
810 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
812         * lto-plugin.c (debug): New.
813         (exec_lto_wrapper): Print argv if debug is true.
814         (process_option): Process the -debug command line option.
816 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
818         * lto-plugin.c (process_option): The argument is now a single option,
819         not a space separated list.
821 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
823         * lto-plugin.c: Include sys/types.h and sys/wait.h
824         (output_files, num_output_files, lto_wrapper_argv,
825         lto_wrapper_num_args): New.
826         (free_2): Free output_files.
827         (write_resolution): Disable.
828         (add_output_files): New.
829         (exec_lto_wrapper): New.
830         (all_symbols_read_handler): Run lto-wrapper.
831         (claim_file_handler): Free lto_file.name and call elf_end.
832         (process_option): New.
834 2008-11-26  Rafael Espindola  <espindola@google.com>
836         * lto-plugin.c (add_input_file): New.
837         (get_section): Return NULL if get_section fails.
838         (write_resolution): New.
839         (all_symbols_read_handler): Call add_input_file.
840         (claim_file_handler): Unlink the correct file.
841         (onload): Record add_input_file.
843 2008-09-23 Rafael Espindola  <espindola@google.com>
845         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
846         Update the location of common.c.
847         * Makefile.in: Regenerate.
848         * common.c: Moved to gcc/lto.
849         * common.h: Moved to gcc/lto.
850         * lto-plugin.c: Update the location of common.h.
851         * lto-symtab.c: Update the location of common.h.
853 2008-09-23 Rafael Espindola  <espindola@google.com>
855         * common.c: Include common.h.
856         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
857         sizes.
858         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
859         explicit sizes.
861 2008-09-23 Rafael Espindola  <espindola@google.com>
863         * lto-plugin.c (plugin_file_info): Add temp.
864         (cleanup_handler): Only delete temporary files.
865         (claim_file_handler): Initialize lto_file.temp.
867 2008-09-23  Rafael Espindola  <espindola@google.com>
869         * plugin-api.h: Moved to include.
871 2008-09-23 Rafael Espindola  <espindola@google.com>
873         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
874         format.
876 2008-09-22 Rafael Espindola  <espindola@google.com>
878         * plugin-api.h: Copy from binutils' cvs.
880 2008-09-22 Rafael Espindola  <espindola@google.com>
882         * lto-symtab.c (get_symbols, add_symbols): Update signature.
883         * plugin-api.h: Copy from binutils' cvs.
885 2008-09-22 Rafael Espindola  <espindola@google.com>
887         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
888         Make extern
890 2008-09-10 Rafael Espindola  <espindola@google.com>
892         * lto-plugin.c (onload): add missing break statements and asserts.
893         * lto-symtab.c (claim_file_handler): Make it static.
894         (all_symbols_read_handler): Make it static.
895         (all_file_handles): Make it static.
896         (num_file_handles): Make it static.
897         (register_claim_file): Make it static.
898         (register_object): Indent properly.
900 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
902         * Makefile.am (ltosymtab_LDADD): Add -lelf.
903         * Makefiel.in: Regenerate.
904         * lto-plugin.c: Include ar.h.
905         (claim_file_handler): Handle file->offset != 0.
906         * lto-symtab.c: Include gelf.h.
907         (all_file_handles): Change type.
908         (register_object): New.
909         (register_file): Add support for archives.
910         (resolve): Update to new type of all_file_handles.
911         (print): Update to new type of all_file_handles.
912         (free_all): Update to new type of all_file_handles.
913         (main): Update to new type of all_file_handles.
915 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
917         * lto-plugin.c (get_string_table): Remove.
918         (get_section): Use elf_strptr instead of get_string_table.
920 2008-09-08  Doug Kwan  <dougkwan@google.com>
922         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
923         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
925 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
927         * Makefile.am (ltosymtab_SOURCES): add common.c.
928         (ltosymtab_CFLAGS): New.
929         (liblto_plugin_la_SOURCES): Add common.c.
930         * Makefile.in: Regenerate.
931         * common.c: New.
932         * common.h: New.
933         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
934         (plugin_symtab): New.
935         (plugin_file_info): New.
936         (register_all_symbols_read): New.
937         (get_symbols): New.
938         (claimed_files): New.
939         (num_claimed_files): New.
940         (translate): Don't drop the slot number.
941         (free_1): New.
942         (free_2): New.
943         (all_symbols_read_handler): New.
944         (claim_file_handler): Record every claimed file.
945         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
946         LDPT_GET_SYMBOLS.
947         * lto-symtab.c: Include stdlib.h, string.h and common.h.
948         (current_file_handle): Remove.
949         (ld_plugin_all_symbols_read_handler): New.
950         (plugin_handle): New.
951         (file_handle): New.
952         (all_file_handles): New.
953         (num_file_handles): New.
954         (get_symbols): New.
955         (register_all_symbols_read): New.
956         (add_symbols): Don't print the symbols, just record them.
957         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
958         LDPT_GET_SYMBOLS.
959         (load_plugin): Use plugin_handle.
960         (register_file): Add the file handle to all_file_handles.
961         (resolve): New.
962         (print): New.
963         (unload_plugin): New.
964         (free_all): New.
965         (main): Call all_symbols_read_handler and free resources.
967 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
969         * Makefile.am (AM_CFLAGS): New.
970         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
971         (lib_LTLIBRARIES): New.
972         (liblto_plugin_la_SOURCES): New.
973         (liblto_plugin_la_LIBADD): New.
974         * Makefile.in: Regenerate.
975         * acinclude.m4: Don't include ../config/acx.m4 and
976         ../config/no-executables.m4.
977         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
978         ../libtool.m4.
979         * aclocal.m4: Regenerate.
980         * configure: Regenerate.
981         * configure.ac: Use AM_PROG_LIBTOOL.
982         * lto-plugin.c: New.
983         * lto-symtab.c: Rewrite to use the plugin.
984         * plugin-api.h: New.
986 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
988         * configure: Regenerate.
989         * configure.ac: Use AC_CHECK_GELF.
990         * lto-symtab.c: Include gelf.h.
991         (get_string_table): Use size independent API.
992         (printTable): Use lld to print 64 bit integers.
994 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
996         * lto-symtab.c (parse_table_entry): Assert entry->kind and
997         entry->visibility are valid.
999 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1000         * lto-symtab.c (table_entry): Add comdat.
1001         (parse_table_entry): Read comdat.
1003 2008-08-21  Rafael Espindola  <espindola@google.com>
1005         * Makefile.am: New.
1006         * Makefile.in: New.
1007         * acinclude.m4: New.
1008         * aclocal.m4: New.
1009         * configure: New.
1010         * configure.ac: New.
1011         * lto-symtab.c: New.