Update ChangeLog and version files for release
[official-gcc.git] / lto-plugin / ChangeLog
blob2a2f8f851ae57d73e4b3e9247dddf98b4ca5e3fc
1 2016-12-21  Release Manager
3         * GCC 6.3.0 released.
5 2016-08-22  Release Manager
7         * GCC 6.2.0 released.
9 2016-04-27  Release Manager
11         * GCC 6.1.0 released.
13 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
15         PR driver/68463
16         * lto-plugin.c (struct plugin_offload_file): New.
17         (offload_files): Change type.
18         (offload_files_last, offload_files_last_obj): New.
19         (offload_files_last_lto): New.
20         (free_2): Adjust accordingly.
21         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
22         Don't call free_1 for offload_files.  Write names of object files with
23         offloading to the temporary file.  Add new option to lto_arg_ptr.
24         (claim_file_handler): Don't claim file if it contains offload sections
25         without LTO sections.  If it contains offload sections, add to the list.
27 2016-01-15  Martin Liska  <mliska@suse.cz>
29         * lto-plugin.c (all_symbols_read_handler): Assign default
30         value to a string variable.
32 2015-11-25  Jan Hubicka  <jh@suse.cz>
34         PR lto/67548
35         * lto-plugin.c (linker_output, linker_output_set): New statics.
36         (all_symbols_read_handler): Add -flinker-output option.
37         (onload): Record linker_output info.
39 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
41         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
42         * configure: Regenerate.
43         * config.h.in: Ditto.
45 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
47         * Makefile.am: Drop 'by automake version' from top-level comment.
48         * Makefile.in: Regenerated with automake-1.11.6.
49         * aclocal.m4: Likewise.
50         * configure: Likewise.
52 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
54         * lto-plugin.c (release_input_file): Removed.
55         (claim_file_handler): Don't call release_input_file.
56         (onload): Don't set release_input_file.
58 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
60         * lto-plugin.c (claim_file_handler): Pass handle to
61         release_input_file.
63 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
65         * lto-plugin.c (claim_file_handler): Call release_input_file only
66         if file is claimed.
68 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
70         * lto-plugin.c (claim_file_handler): Call release_input_file only
71         if it is not NULL.
73 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
75         PR lto/64837
76         * lto-plugin.c (release_input_file): New.
77         (claim_file_handler): Call release_input_file.
78         (onload): Set release_input_file.
80 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
82         * lto-plugin.c (offload_files, num_offload_files): New static variables.
83         (free_1): Use arguments instead of global variables.
84         (free_2): Free offload_files.
85         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
86         arguments.
87         (claim_file_handler): Do not add file to claimed_files if it contains
88         offload sections without LTO sections.  Add it to offload_files instead.
90 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
92         PR bootstrap/63784
93         * configure: Regenerated.
95 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
96             Bernd Schmidt  <bernds@codesourcery.com>
97             Andrey Turetskiy  <andrey.turetskiy@intel.com>
98             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
100         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
101         (struct plugin_objfile): Add new field "offload".
102         (process_offload_section): New static function.
103         (claim_file_handler): Claim file if it contains offload sections.
105 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
106             Thomas Schwinge  <thomas@codesourcery.com>
107             Ilya Verbin  <ilya.verbin@intel.com>
108             Andrey Turetskiy  <andrey.turetskiy@intel.com>
110         * Makefile.am (libexecsubdir): Tweak for the possibility of being
111         configured for offload compiler.
112         (accel_dir_suffix, real_target_noncanonical): New variables substituted
113         by configure.
114         * Makefile.in: Regenerate.
115         * configure: Regenerate.
116         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
117         variables.
119 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
121         PR target/63610
122         * configure: Regenerate.
124 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
126         PR bootstrap/62260
127         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
128         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
129         $host_subdir.
130         * Makefile.in: Regenerated.
131         * configure: Likewise.
133 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
135         * configure.ac (--with-libiberty): New configure option.
136         * configure: Regenerate.
137         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
138         variables.
139         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
140         (liblto_plugin_la_DEPENDENCIES): Use them.
141         * Makefile.in: Regenerate.
143 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
145         PR lto/60981
146         * configure.ac: Check for -static-libgcc.
147         * configure: Regenerate.
149 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
151         PR sanitizer/56781
152         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
153         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
154         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
155         over ../libiberty/pic/libiberty.a if the former exists.
156         * Makefile.in: Regenerated.
158         PR sanitizer/56781
159         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
160         * Makefile.in: Regenerated.
162 2014-04-02  Richard Biener  <rguenther@suse.de>
164         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
165         is set in COLLECT_GCC_OPTIONS.
167 2014-03-28  Richard Biener  <rguenther@suse.de>
169         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
171 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
173         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
174         for gcc.
175         * configure: Regenerate.
176         * Makefile.am (AM_LDFLAGS): New variable.
177         (liblto_plugin_la_LDFLAGS): Add it.
178         * Makefile.in: Regenerate.
180 2013-09-20  Alan Modra  <amodra@gmail.com>
182         * configure: Regenerate.
184 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
186         * configure: Regenerated.
188 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
190         * lto-plugin.c: Fix typo.
192 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
194         * configure: Regenerated.
196 2012-02-22  Kai Tietz  <ktietz@redhat.com>
198         PR lto/50616
199         * lto-plugin.c (PRI_LL): New macro.
200         (dump_symtab): Use PRI_LL instead of ll in print.
201         (process_symtab): Use PRI_LL instead of ll in scan.
203 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
205         * configure: Regenerate.
207 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
209         * configure: Regenerate.
211 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
213         * configure: Regenerate.
215 2011-10-02  Jan Hubicka  <jh@suse.cz>
217         PR lto/47247
218         * lto-plugin.c (get_symbols_v2): New variable.
219         (write_resolution): Use V2 API when available.
220         (onload): Handle LDPT_GET_SYMBOLS_V2.
222 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
223             Andi Kleen  <ak@linux.intel.com>
225         PR lto/50568
226         * lto-plugin.c (sym_aux): Change id to unsigned long long.
227         (plugin_symtab): Likewise.
228         (dump_symtab): Likewise.
229         (resolve_conflicts): Likewise.
230         (process_symtab): Likewise.
232 2011-08-10  Richard Guenther  <rguenther@suse.de>
234         PR bootstrap/49907
235         lto-plugin/
236         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
237         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
238         * configure: Regenerate.
239         * Makefile.in: Likewise.
240         * aclocal.m4: Likewise.
242 2011-04-20  Jim Meyering  <meyering@redhat.com>
244         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
246 2011-04-05  Richard Guenther  <rguenther@suse.de>
248         PR bootstrap/48431
249         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
251 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
253         * Makefile.in: Regenerate.
254         * aclocal.m4: Regenerate.
255         * configure: Regenerate.
257 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
259         * Makefile.am (all-local): Rename from 'all'.
260         * Makefile.in: Regenerate.
262 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
264         PR lto/47225
265         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
266         (liblto_plugin_la_LDFLAGS): Add -module.
267         (copy_lto_plugin): Renamed to...
268         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
269         of static modules.
270         * Makefile.in: Rebuild.
272 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
274         PR lto/47225
275         * Makefile.am (Wc): New helper for encoding -Wc,.
276         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
277         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
278         * Makefile.in: Regenerated.
280 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
282         Revert:
284         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
286         PR lto/47225
287         * Makefile.am (Wl): New helper for encoding -Wl,.
288         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
289         * Makefile.in: Regenerated.
291 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
293         PR lto/47225
294         * Makefile.am (Wl): New helper for encoding -Wl,.
295         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
296         * Makefile.in: Regenerated.
298 2011-01-25  Ian Lance Taylor  <iant@google.com>
300         * lto-plugin.c (gold_version): New static variable.
301         (all_symbols_read_handler): Don't check pass_through_items if
302         using gold 1.11 or later.
303         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
305 2011-01-12  Richard Guenther  <rguenther@suse.de>
307         PR lto/47264
308         * lto-plugin.c (parse_table_entry): Use memcpy to access
309         unaligned fields.
311 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
313         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
314         * Makefile.in: Regenerate.
316 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
318         Revert last change.
320 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
322         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
323         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
324         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
325         * Makefile.in: Regenerate.
327 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
329         PR middle-end/46674
330         PR lto/43157
331         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
332         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
333         * configure: Regenerate.
334         * config.h.in: Likewise.
336 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
338         PR target/40125
339         PR lto/46695
340         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
341         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
342         override -bindir setting.
343         * aclocal.m4: Regenerate.
344         * configure: Regenerate.
345         * Makefile.in: Regenerate.
347 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
349         * config.h.in: Regenerated.
350         * configure: Regenerated.
351         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
352         * lto-plugin.c (WIFEXITED): Define default.
353         (WEXITSTATUS): Likeiwse.
355 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
357         * config.h.in: Regenerated.
358         * configure: Regenerated.
359         * Makefile.in: Regenerated.
360         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
361         * lto-plugin.c:  Include sys/wait.h conditionally.
362         * aclocal.m4: Regenerated.
364 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
366         * lto-plugin.c (add_output_files): Fix memory leak.
368 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
370         PR bootstrap/46397
371         PR bootstrap/46362
372         * configure.ac: Add AC_TYPE_INT64_T test.
373         * config.h.in: Regenerate.
374         * configure: Likewise.
375         * lto-plugin.c (debug): Use char not bool.
376         (nop): Likewise.
377         (check_1): Rename from check, and use int not bool for gate argument.
378         (check): Macro wrapper for the above to coerce gate argument into
379         boolean-valued integer in case it has pointer type.
380         (parse_table_entry): Use 0 not false.
381         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
382         into two 32-bit parts and printing as hex ints.
384 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
386         PR lto/46291
387         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
389 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
391         PR lto/46273
392         * lto-plugin.h: Delete.
393         * lto-plugin-elf.c: Likewise.
394         * lto-plugin-coff.c: Likewise.
395         * configure.ac: Don't use libelf, don't source config.gcc.
396         (LIBELFLIBS): Delete.
397         (LIBELFINC): Delete.
398         (LTO_FORMAT): Delete.
399         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
400         (config.h): Add AC_CONFIG_HEADERS directive.
401         * Makefile.am (LIBELFLIBS): Delete.
402         (LIBELFINC): Delete.
403         (LTO_FORMAT): Delete.
404         (DEFS): Import.
405         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
406         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
407         any object-format-specific source file in the link.
408         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
409         * config.h.in: Generate.
410         * configure: Regenerate.
411         * Makefile.in: Likewise.
412         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
413         (LTO_SEGMENT_NAME): New definition.
414         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
415         (LTO_SECTION_PREFIX_LEN): New definition.
416         (struct sym_aux): Struct definition moved here from lto-plugin.h.
417         (struct plugin_symtab): Likewise.
418         (struct plugin_objfile): Likewise.
419         (struct plugin_objfile): New struct def.
420         (enum symbol_style): New enum type.
421         (add_symbols): Make static.
422         (claimed_files): Likewise.
423         (num_claimed_files): Likewise.
424         (sym_style): New global.
425         (check): Make static.
426         (parse_table_entry): Likewise.  Respect sym_style when extracting
427         symbol from symtab entry.
428         (translate): Make static.
429         (resolve_conflicts): Likewise.
430         (process_symtab): New function, per-section callback version of
431         old object-format-specific handling from deleted lto-plugin-elf.c.
432         (claim_file_handler): Convert ELF-specific version from deleted
433         lto-plugin-elf.c to simple_object interface and move here.
434         (process_options): Allow new '-sym-style=' option.
435         (onload): Don't call deleted onload_format_checks hook.
437 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
439         * lto-plugin.c (dump_symtab): Correct printf argument type.
440         (finish_conflict_resolution): Initialize resolution.
442 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
444         PR bootstrap/45951
445         * configure.ac: Add AC_CANONICAL_SYSTEM.
446         * configure: Regenerated.
448 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
450         * configure.ac: Source config.gcc to determine lto_binary_reader.
451         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
452         * Makefile.am (LTO_FORMAT): Import.
453         (liblto_plugin_la_SOURCES): Add object format dependent module
454         defined by LTO_FORMAT.
455         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
456         and work around libtool warning.
457         * configure: Regenerate.
458         * Makefile.in: Likewise.
459         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
460         (struct sym_aux): Likewise.
461         (struct plugin_symtab): Likewise.
462         (struct plugin_file_info): Likewise.
463         (LTO_SECTION_PREFIX): Likewise.
464         (add_symbols):  Make non-static.
465         (claimed_files): Likewise.
466         (num_claimed_files): Likewise.
467         (check): Likewise.
468         (parse_table_entry): Likewise.
469         (translate): Likewise.
470         (resolve_conflicts): Likewise.
471         (process_symtab): Move to new lto-plugin-elf.c object format dependent
472         source file.
473         (claim_file_handler): Likewise, and make non-static.
474         (onload): Call new onload_format_checks function.
475         * lto-plugin.h: New file.
476         (LTO_SECTION_PREFIX): Move here.
477         (struct sym_aux): Likewise.
478         (struct plugin_symtab): Likewise.
479         (struct plugin_file_info): Likewise.
480         (claim_file_handler): Add new function prototype.
481         (onload_format_checks): Likewise.
482         (check): Declare extern.
483         (translate): Likewise.
484         (parse_table_entry): Likewise.
485         (resolve_conflicts): Likewise.
486         (add_symbols):  Likewise.
487         (claimed_files): Likewise.
488         (num_claimed_files): Likewise.
489         * lto-plugin-elf.c (process_symtab): Move here.
490         (claim_file_handler): Likewise, and make non-static.
491         (onload_format_checks): New function factored out from onload.
492         * lto-plugin-coff.c (claim_file_handler): New function stub.
493         (onload_format_checks): Likewise.
495 2010-08-05  Andi Kleen  <ak@linux.intel.com>
497         * lto-plugin.c: Include <hashtab.h>
498         (sym_aux): Add next_conflict field to save conflict chains.
499         (plugin_file_info): Add conflicts symtab.
500         (parse_table_entry): Initialize aux->next_conflict.
501         (process_symtab): Increment found.
502         (dump_symtab): Add.
503         (finish_conflict_resolution): Add.
504         (free_symtab): Add.
505         (write_resolution): Remove symbols loop and move into
506         dump_symtab. Call dump_symtab for main symbol and conflicts table.
507         Call free_symtab to free conflicts table.
508         (SWAP): Add.
509         (eq_sym): Add.
510         (hash_sym): Add.
511         (symbol_strength): Add.
512         (resolve_conflicts): Add.
513         (claim_file_handler): Add n variable. Check return value of
514         process_symtab. Call resolve_conflicts.
516 2010-07-27  Andi Kleen  <ak@linux.intel.com>
518         * lto-plugin.c (translate): Remove debug fprintf.
520 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
522         PR bootstrap/45042
523         * lto-plugin.c (translate): Cast to unsigned long.
525 2010-07-23   Andi Kleen  <ak@linux.intel.com>
527         PR lto/44992
528         * lto-plugin.c (sym_aux): Add.
529         (plugin_symtab): Remove slots. Add aux and id.
530         (parse_table_entry): Change to use aux instead of slots.
531         (LTO_SECTION_PREFIX): Add.
532         (translate): Improve buffer allocation. Change to append
533         symbols to existing out buffer.
534         (get_section): Remove.
535         (process_symtab): Add.
536         (free_2): Free symtab->aux.
537         (write_resolution): Handle aux instead of slots.
538         Print sub id to resolution file.
539         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
540         calls with call to process_symtab.
542 2010-07-22  Richard Guenther  <rguenther@suse.de>
544         * Makefile.am: New copy_lto_plugin rule to install the plugin
545         into ../gcc.
546         * Makefile.in: Regenerated.
548 2010-05-21  Richard Guenther  <rguenther@suse.de>
550         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
552 2010-05-07  Richard Guenther <rguenther@suse.de>
554         * lto-plugin.c (free_2): Do not free resolution_file.
555         (write_resolution): Check that we were passed a resolution file.
556         (all_symbols_read_handler): Adjust.
557         (cleanup_handler): Do not remove the resolution file.
558         (process_option): Handle -fresolution=.
560 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
562         PR other/43620
563         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
564         * Makefile.in: Regenerate.
566 2010-04-23  Richard Guenther  <rguenther@suse.de>
568         PR lto/41550
569         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
570         (translate): Likewise.
571         (all_symbols_read_handler): Likewise.
572         (claim_file_handler): Likewise.
573         (process_option): Likewise.
574         (add_output_files): Likewise.  Remove filename length limit.
576 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
578         * Makefile.in: Regenerate.
579         * aclocal.m4: Regenerate.
581 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
583         PR lto/43336
584         * lto-plugin.c (cleanup_handler): Delete temporary output files.
586 2010-01-11  Richard Guenther  <rguenther@suse.de>
588         PR lto/41569
589         * Makefile.am: Disable dependencies.
590         * Makefile.in: Regenerated.
592 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
594         PR lto/42520
595         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
596         if -v is passed.
598 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
600         PR bootstrap/42306
601         * configure: Regenerated.
602         * Makefile.in: Likewise.
604 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
606         PR bootstrap/42096
607         * lto-plugin.c (claim_file_handler): Print offsets in hex.
609 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
611         * lto-plugin.c (write_resolution): Assume resolution_file is set.
612         Print the symbol name.
613         (all_symbols_read_handler): Create a resolution file.
614         Pass it to gcc.
615         (cleanup_handler): Remove the resolution file.
616         (process_option): Drop the -resolution option.
618 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
620         * lto-plugin.c (temp_obj_dir_name): Remove.
621         (arguments_file_name): New.
622         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
623         (exec_lto_wrapper):  Create arguments file with make_temp_file.
624         (cleanup_handler): Don't remove the temporary directory. Remove the
625         arguments file.
626         (onload): Don't create the temporary directory.
628 2009-11-04  Richard Guenther  <rguenther@suse.de>
629             Rafael Avila de Espindola  <espindola@google.com>
631         * lto-plugin.c (plugin_file_info): Remove temp field.
632         (cleanup_handler): Don't delete temporary objects.
633         (claim_file_handler): Don't create temporary objects.
635 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
637         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
639 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
641         PR41871
642         * lto-plugin.c (claim_file_handler): Close files that we created.
644 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
646         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
647         LDPL_ERROR
649 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
651         PR lto/41652
652         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
653         * configure: Regenerate.
655 2009-10-26  Richard Guenther  <rguenther@suse.de>
657         * configure.ac: Use AM_MAINTAINER_MODE.
658         * acinclude.m4: Remove.
659         * configure: Re-generate.
660         * Makefile.in: Likewise.
661         * aclocal.m4: Likewise.
663 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
664     
665         PR40790
666         * configure: Regenerate.
667         * configure.ac: Add AC_TYPE_UINT64_T.
669 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
671         * lto-plugin.c (message): New variable.
672         (check): New function.
673         (parse_table_entry, translate, write_resolution,add_output_files,
674         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
675         assert.
676         (cleanup_handler): Use check instead of assert. Remove the arguments
677         file if it exists.
679 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
681         * lto-plugin.c (resolution_file): New.
682         (free_1): Update comment.
683         (free_2): Free resolution_file.
684         (write_resolution): Write resolution to specified file. Use the
685         syms array from the symbol table.
686         (all_symbols_read_handler): Delay call to free_1 past call to
687         write_resolution.
688         (process_option): Add a -resolution option.
690 2009-10-13  Richard Guenther  <rguenther@suse.de>
692         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
693         correct libiberty.
694         * Makefile.in: Regenerated.
696 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
698         * lto-plugin.c (add_input_library): New.
699         (all_symbols_read_handler): Use add_input_library for items that
700         start with -l.
701         (process_option): Fit in 80 columns.
702         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
704 2009-10-02  Diego Novillo  <dnovillo@google.com>
706         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
707         and -D_FILE_OFFSET_BITS=64.
708         * configure.ac: Add AC_SYS_LARGEFILE.
709         * configure: Regenerate.
710         * Makefile.in: Regenerate.
711         * lto-plugin.c: Fix copyright boilerplate.
713 2009-10-02  Diego Novillo  <dnovillo@google.com>
715         * Makefile.am (ACLOCAL_AMFLAGS): Define.
716         * aclocal.m4: Regenerate with aclocal-2.64
717         * acinclude.m4: Remove.
718         * Makefile.in: Regenerate with automake-1.11
719         * configure.ac (AC_PREREQ): Update to 2.64.
720         * configure: Regenerate.
722 2009-10-02  Diego Novillo  <dnovillo@google.com>
724         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
725         and -D_FILE_OFFSET_BITS=64.
726         * configure.ac: Add AC_SYS_LARGEFILE.
727         * configure: Regenerate.
728         * Makefile.in: Regenerate.
729         * lto-plugin.c: Fix copyright boilerplate.
731 2009-10-02  Diego Novillo  <dnovillo@google.com>
733         * Makefile.am (ACLOCAL_AMFLAGS): Define.
734         * aclocal.m4: Regenerate with aclocal-2.64
735         * acinclude.m4: Remove.
736         * Makefile.in: Regenerate with automake-1.11
737         * configure.ac (AC_PREREQ): Update to 2.64.
738         * configure: Regenerate.
740 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
742         * Makefile.am (liblto_plugin_la_SOURCES): Remove
743         $(top_srcdir)/../gcc/lto/common.c
744         * Makefile.in: Regenerate.
746 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
748         * lto-plugin.c (pass_through_items): New.
749         (num_pass_through_items): New.
750         (all_symbols_read_handler): Update to use the -pass-through option.
751         (process_option): Replace -libgcc with -pass-through.
752         
753 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
755         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
756         register_cleanup to be set.
758 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
760         * Makefile.am: Remove all reference to ltosymtab.
761         * Makefile.in: Regenerate.
762         * lto-symtab.c: Remove.
764 2009-05-21  Diego Novillo  <dnovillo@google.com>
766         * configure.ac: Remove call to AC_CHECK_GELF.
767         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
768         * acinclude.m4: Do not include ../config/libelf.m4
769         * Makefile.am (LIBELFLIBS): Define.
770         (LIBELFINC): Define.
771         (AM_CPPFLAGS): Add $(LIBELFINC).
772         (ltosymtab_LDADD): Add $(LIBELFLIBS).
773         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
774         * lto-plugin.c: Always include <gelf.h>
775         * lto-symtab.c: Likewise.
776         * configure: Regenerate.
777         * Makefile.in: Regenerate.
779 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
781         * lto-plugin.c (libgcc_filename): New.
782         (all_symbols_read_handler): Pass libgcc to the linker.
783         (all_symbols_read_handler): Parse -libgcc
785 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
787         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
788         * Makefile.in: Regenerate.
789         * lto-plugin.c (add_output_files): Argument is now a FILE.
790         (exec_lto_wrapper): Use writeargv and pex.
792 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
794         Revert:
795         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
796         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
799 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
801         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
803 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
805         * lto-plugin.c: Include libiberty.h.
806         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
807         snprintf.
809 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
811         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
812         file to lto-wrapper.
814 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
816         * lto-plugin.c (plugin_file_info): Remove fd and elf.
817         (parse_table_entry): strdup entry->name and entry->comdat_key.
818         (free_1): Free name and comdat_key. Don't close the file. Don't call
819         elf_end.
820         (claim_file_handler): Always call elf_end.
822 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
824         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
825         -D_FILE_OFFSET_BITS=64
826         * Makefile.in: Regenerate
828 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
830         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
831         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
832         * Makefile.in: Regenerate.
833         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
834         * configure: Regenerate.
835         * configure.ac: Add AC_SUBST(target_noncanonical).
837 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
839         * lto-plugin.c: Include stdbool.h.
840         (debug, nop): Declare as bool.
842 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
844         * lto-plugin.c (nop): New.
845         (use_original_files): New.
846         (all_symbols_read_handler): Call use_original_files if nop is true.
847         (process_option): Parse the -nop option.
849 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
851         * lto-plugin.c (debug): New.
852         (exec_lto_wrapper): Print argv if debug is true.
853         (process_option): Process the -debug command line option.
855 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
857         * lto-plugin.c (process_option): The argument is now a single option,
858         not a space separated list.
860 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
862         * lto-plugin.c: Include sys/types.h and sys/wait.h
863         (output_files, num_output_files, lto_wrapper_argv,
864         lto_wrapper_num_args): New.
865         (free_2): Free output_files.
866         (write_resolution): Disable.
867         (add_output_files): New.
868         (exec_lto_wrapper): New.
869         (all_symbols_read_handler): Run lto-wrapper.
870         (claim_file_handler): Free lto_file.name and call elf_end.
871         (process_option): New.
873 2008-11-26  Rafael Espindola  <espindola@google.com>
875         * lto-plugin.c (add_input_file): New.
876         (get_section): Return NULL if get_section fails.
877         (write_resolution): New.
878         (all_symbols_read_handler): Call add_input_file.
879         (claim_file_handler): Unlink the correct file.
880         (onload): Record add_input_file.
882 2008-09-23 Rafael Espindola  <espindola@google.com>
884         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
885         Update the location of common.c.
886         * Makefile.in: Regenerate.
887         * common.c: Moved to gcc/lto.
888         * common.h: Moved to gcc/lto.
889         * lto-plugin.c: Update the location of common.h.
890         * lto-symtab.c: Update the location of common.h.
892 2008-09-23 Rafael Espindola  <espindola@google.com>
894         * common.c: Include common.h.
895         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
896         sizes.
897         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
898         explicit sizes.
900 2008-09-23 Rafael Espindola  <espindola@google.com>
902         * lto-plugin.c (plugin_file_info): Add temp.
903         (cleanup_handler): Only delete temporary files.
904         (claim_file_handler): Initialize lto_file.temp.
906 2008-09-23  Rafael Espindola  <espindola@google.com>
908         * plugin-api.h: Moved to include.
910 2008-09-23 Rafael Espindola  <espindola@google.com>
912         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
913         format.
915 2008-09-22 Rafael Espindola  <espindola@google.com>
917         * plugin-api.h: Copy from binutils' cvs.
919 2008-09-22 Rafael Espindola  <espindola@google.com>
921         * lto-symtab.c (get_symbols, add_symbols): Update signature.
922         * plugin-api.h: Copy from binutils' cvs.
924 2008-09-22 Rafael Espindola  <espindola@google.com>
926         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
927         Make extern
929 2008-09-10 Rafael Espindola  <espindola@google.com>
931         * lto-plugin.c (onload): add missing break statements and asserts.
932         * lto-symtab.c (claim_file_handler): Make it static.
933         (all_symbols_read_handler): Make it static.
934         (all_file_handles): Make it static.
935         (num_file_handles): Make it static.
936         (register_claim_file): Make it static.
937         (register_object): Indent properly.
939 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
941         * Makefile.am (ltosymtab_LDADD): Add -lelf.
942         * Makefiel.in: Regenerate.
943         * lto-plugin.c: Include ar.h.
944         (claim_file_handler): Handle file->offset != 0.
945         * lto-symtab.c: Include gelf.h.
946         (all_file_handles): Change type.
947         (register_object): New.
948         (register_file): Add support for archives.
949         (resolve): Update to new type of all_file_handles.
950         (print): Update to new type of all_file_handles.
951         (free_all): Update to new type of all_file_handles.
952         (main): Update to new type of all_file_handles.
954 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
956         * lto-plugin.c (get_string_table): Remove.
957         (get_section): Use elf_strptr instead of get_string_table.
959 2008-09-08  Doug Kwan  <dougkwan@google.com>
961         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
962         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
964 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
966         * Makefile.am (ltosymtab_SOURCES): add common.c.
967         (ltosymtab_CFLAGS): New.
968         (liblto_plugin_la_SOURCES): Add common.c.
969         * Makefile.in: Regenerate.
970         * common.c: New.
971         * common.h: New.
972         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
973         (plugin_symtab): New.
974         (plugin_file_info): New.
975         (register_all_symbols_read): New.
976         (get_symbols): New.
977         (claimed_files): New.
978         (num_claimed_files): New.
979         (translate): Don't drop the slot number.
980         (free_1): New.
981         (free_2): New.
982         (all_symbols_read_handler): New.
983         (claim_file_handler): Record every claimed file.
984         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
985         LDPT_GET_SYMBOLS.
986         * lto-symtab.c: Include stdlib.h, string.h and common.h.
987         (current_file_handle): Remove.
988         (ld_plugin_all_symbols_read_handler): New.
989         (plugin_handle): New.
990         (file_handle): New.
991         (all_file_handles): New.
992         (num_file_handles): New.
993         (get_symbols): New.
994         (register_all_symbols_read): New.
995         (add_symbols): Don't print the symbols, just record them.
996         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
997         LDPT_GET_SYMBOLS.
998         (load_plugin): Use plugin_handle.
999         (register_file): Add the file handle to all_file_handles.
1000         (resolve): New.
1001         (print): New.
1002         (unload_plugin): New.
1003         (free_all): New.
1004         (main): Call all_symbols_read_handler and free resources.
1006 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1008         * Makefile.am (AM_CFLAGS): New.
1009         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1010         (lib_LTLIBRARIES): New.
1011         (liblto_plugin_la_SOURCES): New.
1012         (liblto_plugin_la_LIBADD): New.
1013         * Makefile.in: Regenerate.
1014         * acinclude.m4: Don't include ../config/acx.m4 and
1015         ../config/no-executables.m4.
1016         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1017         ../libtool.m4.
1018         * aclocal.m4: Regenerate.
1019         * configure: Regenerate.
1020         * configure.ac: Use AM_PROG_LIBTOOL.
1021         * lto-plugin.c: New.
1022         * lto-symtab.c: Rewrite to use the plugin.
1023         * plugin-api.h: New.
1025 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1027         * configure: Regenerate.
1028         * configure.ac: Use AC_CHECK_GELF.
1029         * lto-symtab.c: Include gelf.h.
1030         (get_string_table): Use size independent API.
1031         (printTable): Use lld to print 64 bit integers.
1033 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1035         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1036         entry->visibility are valid.
1038 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1039         * lto-symtab.c (table_entry): Add comdat.
1040         (parse_table_entry): Read comdat.
1042 2008-08-21  Rafael Espindola  <espindola@google.com>
1044         * Makefile.am: New.
1045         * Makefile.in: New.
1046         * acinclude.m4: New.
1047         * aclocal.m4: New.
1048         * configure: New.
1049         * configure.ac: New.
1050         * lto-symtab.c: New.