* tree-vrp.c (set_value_range): Do not reference vrp_equiv_obstack.
[official-gcc.git] / lto-plugin / ChangeLog
blobd3617a12ea3587707c80e5c30489a4badaa5bf41
1 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
3         PR lto/81487
4         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
5         asprintf.
6         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
8 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
10         PR other/79046
11         * configure.ac: Add GCC_BASE_VER.
12         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
13         get version from BASE-VER file.
14         * configure: Regenerated.
15         * Makefile.in: Regenerated.
17 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
19         Update copyright years.
21 2016-11-15  Matthias Klose  <doko@ubuntu.com>
23         * configure: Regenerate.
25 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
27         PR driver/68463
28         * lto-plugin.c (struct plugin_offload_file): New.
29         (offload_files): Change type.
30         (offload_files_last, offload_files_last_obj): New.
31         (offload_files_last_lto): New.
32         (free_2): Adjust accordingly.
33         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
34         Don't call free_1 for offload_files.  Write names of object files with
35         offloading to the temporary file.  Add new option to lto_arg_ptr.
36         (claim_file_handler): Don't claim file if it contains offload sections
37         without LTO sections.  If it contains offload sections, add to the list.
39 2016-01-15  Martin Liska  <mliska@suse.cz>
41         * lto-plugin.c (all_symbols_read_handler): Assign default
42         value to a string variable.
44 2015-11-25  Jan Hubicka  <jh@suse.cz>
46         PR lto/67548
47         * lto-plugin.c (linker_output, linker_output_set): New statics.
48         (all_symbols_read_handler): Add -flinker-output option.
49         (onload): Record linker_output info.
51 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
53         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
54         * configure: Regenerate.
55         * config.h.in: Ditto.
57 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
59         * Makefile.am: Drop 'by automake version' from top-level comment.
60         * Makefile.in: Regenerated with automake-1.11.6.
61         * aclocal.m4: Likewise.
62         * configure: Likewise.
64 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
66         * lto-plugin.c (release_input_file): Removed.
67         (claim_file_handler): Don't call release_input_file.
68         (onload): Don't set release_input_file.
70 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
72         * lto-plugin.c (claim_file_handler): Pass handle to
73         release_input_file.
75 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
77         * lto-plugin.c (claim_file_handler): Call release_input_file only
78         if file is claimed.
80 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
82         * lto-plugin.c (claim_file_handler): Call release_input_file only
83         if it is not NULL.
85 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
87         PR lto/64837
88         * lto-plugin.c (release_input_file): New.
89         (claim_file_handler): Call release_input_file.
90         (onload): Set release_input_file.
92 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
94         * lto-plugin.c (offload_files, num_offload_files): New static variables.
95         (free_1): Use arguments instead of global variables.
96         (free_2): Free offload_files.
97         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
98         arguments.
99         (claim_file_handler): Do not add file to claimed_files if it contains
100         offload sections without LTO sections.  Add it to offload_files instead.
102 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
104         PR bootstrap/63784
105         * configure: Regenerated.
107 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
108             Bernd Schmidt  <bernds@codesourcery.com>
109             Andrey Turetskiy  <andrey.turetskiy@intel.com>
110             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
112         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
113         (struct plugin_objfile): Add new field "offload".
114         (process_offload_section): New static function.
115         (claim_file_handler): Claim file if it contains offload sections.
117 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
118             Thomas Schwinge  <thomas@codesourcery.com>
119             Ilya Verbin  <ilya.verbin@intel.com>
120             Andrey Turetskiy  <andrey.turetskiy@intel.com>
122         * Makefile.am (libexecsubdir): Tweak for the possibility of being
123         configured for offload compiler.
124         (accel_dir_suffix, real_target_noncanonical): New variables substituted
125         by configure.
126         * Makefile.in: Regenerate.
127         * configure: Regenerate.
128         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
129         variables.
131 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
133         PR target/63610
134         * configure: Regenerate.
136 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
138         PR bootstrap/62260
139         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
140         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
141         $host_subdir.
142         * Makefile.in: Regenerated.
143         * configure: Likewise.
145 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
147         * configure.ac (--with-libiberty): New configure option.
148         * configure: Regenerate.
149         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
150         variables.
151         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
152         (liblto_plugin_la_DEPENDENCIES): Use them.
153         * Makefile.in: Regenerate.
155 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
157         PR lto/60981
158         * configure.ac: Check for -static-libgcc.
159         * configure: Regenerate.
161 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
163         PR sanitizer/56781
164         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
165         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
166         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
167         over ../libiberty/pic/libiberty.a if the former exists.
168         * Makefile.in: Regenerated.
170         PR sanitizer/56781
171         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
172         * Makefile.in: Regenerated.
174 2014-04-02  Richard Biener  <rguenther@suse.de>
176         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
177         is set in COLLECT_GCC_OPTIONS.
179 2014-03-28  Richard Biener  <rguenther@suse.de>
181         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
183 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
185         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
186         for gcc.
187         * configure: Regenerate.
188         * Makefile.am (AM_LDFLAGS): New variable.
189         (liblto_plugin_la_LDFLAGS): Add it.
190         * Makefile.in: Regenerate.
192 2013-09-20  Alan Modra  <amodra@gmail.com>
194         * configure: Regenerate.
196 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
198         * configure: Regenerated.
200 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
202         * lto-plugin.c: Fix typo.
204 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
206         * configure: Regenerated.
208 2012-02-22  Kai Tietz  <ktietz@redhat.com>
210         PR lto/50616
211         * lto-plugin.c (PRI_LL): New macro.
212         (dump_symtab): Use PRI_LL instead of ll in print.
213         (process_symtab): Use PRI_LL instead of ll in scan.
215 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
217         * configure: Regenerate.
219 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
221         * configure: Regenerate.
223 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
225         * configure: Regenerate.
227 2011-10-02  Jan Hubicka  <jh@suse.cz>
229         PR lto/47247
230         * lto-plugin.c (get_symbols_v2): New variable.
231         (write_resolution): Use V2 API when available.
232         (onload): Handle LDPT_GET_SYMBOLS_V2.
234 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
235             Andi Kleen  <ak@linux.intel.com>
237         PR lto/50568
238         * lto-plugin.c (sym_aux): Change id to unsigned long long.
239         (plugin_symtab): Likewise.
240         (dump_symtab): Likewise.
241         (resolve_conflicts): Likewise.
242         (process_symtab): Likewise.
244 2011-08-10  Richard Guenther  <rguenther@suse.de>
246         PR bootstrap/49907
247         lto-plugin/
248         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
249         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
250         * configure: Regenerate.
251         * Makefile.in: Likewise.
252         * aclocal.m4: Likewise.
254 2011-04-20  Jim Meyering  <meyering@redhat.com>
256         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
258 2011-04-05  Richard Guenther  <rguenther@suse.de>
260         PR bootstrap/48431
261         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
263 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
265         * Makefile.in: Regenerate.
266         * aclocal.m4: Regenerate.
267         * configure: Regenerate.
269 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
271         * Makefile.am (all-local): Rename from 'all'.
272         * Makefile.in: Regenerate.
274 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
276         PR lto/47225
277         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
278         (liblto_plugin_la_LDFLAGS): Add -module.
279         (copy_lto_plugin): Renamed to...
280         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
281         of static modules.
282         * Makefile.in: Rebuild.
284 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
286         PR lto/47225
287         * Makefile.am (Wc): New helper for encoding -Wc,.
288         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
289         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
290         * Makefile.in: Regenerated.
292 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
294         Revert:
296         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
298         PR lto/47225
299         * Makefile.am (Wl): New helper for encoding -Wl,.
300         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
301         * Makefile.in: Regenerated.
303 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
305         PR lto/47225
306         * Makefile.am (Wl): New helper for encoding -Wl,.
307         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
308         * Makefile.in: Regenerated.
310 2011-01-25  Ian Lance Taylor  <iant@google.com>
312         * lto-plugin.c (gold_version): New static variable.
313         (all_symbols_read_handler): Don't check pass_through_items if
314         using gold 1.11 or later.
315         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
317 2011-01-12  Richard Guenther  <rguenther@suse.de>
319         PR lto/47264
320         * lto-plugin.c (parse_table_entry): Use memcpy to access
321         unaligned fields.
323 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
325         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
326         * Makefile.in: Regenerate.
328 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
330         Revert last change.
332 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
334         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
335         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
336         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
337         * Makefile.in: Regenerate.
339 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
341         PR middle-end/46674
342         PR lto/43157
343         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
344         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
345         * configure: Regenerate.
346         * config.h.in: Likewise.
348 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
350         PR target/40125
351         PR lto/46695
352         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
353         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
354         override -bindir setting.
355         * aclocal.m4: Regenerate.
356         * configure: Regenerate.
357         * Makefile.in: Regenerate.
359 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
361         * config.h.in: Regenerated.
362         * configure: Regenerated.
363         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
364         * lto-plugin.c (WIFEXITED): Define default.
365         (WEXITSTATUS): Likeiwse.
367 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
369         * config.h.in: Regenerated.
370         * configure: Regenerated.
371         * Makefile.in: Regenerated.
372         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
373         * lto-plugin.c:  Include sys/wait.h conditionally.
374         * aclocal.m4: Regenerated.
376 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
378         * lto-plugin.c (add_output_files): Fix memory leak.
380 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
382         PR bootstrap/46397
383         PR bootstrap/46362
384         * configure.ac: Add AC_TYPE_INT64_T test.
385         * config.h.in: Regenerate.
386         * configure: Likewise.
387         * lto-plugin.c (debug): Use char not bool.
388         (nop): Likewise.
389         (check_1): Rename from check, and use int not bool for gate argument.
390         (check): Macro wrapper for the above to coerce gate argument into
391         boolean-valued integer in case it has pointer type.
392         (parse_table_entry): Use 0 not false.
393         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
394         into two 32-bit parts and printing as hex ints.
396 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
398         PR lto/46291
399         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
401 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
403         PR lto/46273
404         * lto-plugin.h: Delete.
405         * lto-plugin-elf.c: Likewise.
406         * lto-plugin-coff.c: Likewise.
407         * configure.ac: Don't use libelf, don't source config.gcc.
408         (LIBELFLIBS): Delete.
409         (LIBELFINC): Delete.
410         (LTO_FORMAT): Delete.
411         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
412         (config.h): Add AC_CONFIG_HEADERS directive.
413         * Makefile.am (LIBELFLIBS): Delete.
414         (LIBELFINC): Delete.
415         (LTO_FORMAT): Delete.
416         (DEFS): Import.
417         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
418         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
419         any object-format-specific source file in the link.
420         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
421         * config.h.in: Generate.
422         * configure: Regenerate.
423         * Makefile.in: Likewise.
424         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
425         (LTO_SEGMENT_NAME): New definition.
426         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
427         (LTO_SECTION_PREFIX_LEN): New definition.
428         (struct sym_aux): Struct definition moved here from lto-plugin.h.
429         (struct plugin_symtab): Likewise.
430         (struct plugin_objfile): Likewise.
431         (struct plugin_objfile): New struct def.
432         (enum symbol_style): New enum type.
433         (add_symbols): Make static.
434         (claimed_files): Likewise.
435         (num_claimed_files): Likewise.
436         (sym_style): New global.
437         (check): Make static.
438         (parse_table_entry): Likewise.  Respect sym_style when extracting
439         symbol from symtab entry.
440         (translate): Make static.
441         (resolve_conflicts): Likewise.
442         (process_symtab): New function, per-section callback version of
443         old object-format-specific handling from deleted lto-plugin-elf.c.
444         (claim_file_handler): Convert ELF-specific version from deleted
445         lto-plugin-elf.c to simple_object interface and move here.
446         (process_options): Allow new '-sym-style=' option.
447         (onload): Don't call deleted onload_format_checks hook.
449 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
451         * lto-plugin.c (dump_symtab): Correct printf argument type.
452         (finish_conflict_resolution): Initialize resolution.
454 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
456         PR bootstrap/45951
457         * configure.ac: Add AC_CANONICAL_SYSTEM.
458         * configure: Regenerated.
460 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
462         * configure.ac: Source config.gcc to determine lto_binary_reader.
463         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
464         * Makefile.am (LTO_FORMAT): Import.
465         (liblto_plugin_la_SOURCES): Add object format dependent module
466         defined by LTO_FORMAT.
467         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
468         and work around libtool warning.
469         * configure: Regenerate.
470         * Makefile.in: Likewise.
471         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
472         (struct sym_aux): Likewise.
473         (struct plugin_symtab): Likewise.
474         (struct plugin_file_info): Likewise.
475         (LTO_SECTION_PREFIX): Likewise.
476         (add_symbols):  Make non-static.
477         (claimed_files): Likewise.
478         (num_claimed_files): Likewise.
479         (check): Likewise.
480         (parse_table_entry): Likewise.
481         (translate): Likewise.
482         (resolve_conflicts): Likewise.
483         (process_symtab): Move to new lto-plugin-elf.c object format dependent
484         source file.
485         (claim_file_handler): Likewise, and make non-static.
486         (onload): Call new onload_format_checks function.
487         * lto-plugin.h: New file.
488         (LTO_SECTION_PREFIX): Move here.
489         (struct sym_aux): Likewise.
490         (struct plugin_symtab): Likewise.
491         (struct plugin_file_info): Likewise.
492         (claim_file_handler): Add new function prototype.
493         (onload_format_checks): Likewise.
494         (check): Declare extern.
495         (translate): Likewise.
496         (parse_table_entry): Likewise.
497         (resolve_conflicts): Likewise.
498         (add_symbols):  Likewise.
499         (claimed_files): Likewise.
500         (num_claimed_files): Likewise.
501         * lto-plugin-elf.c (process_symtab): Move here.
502         (claim_file_handler): Likewise, and make non-static.
503         (onload_format_checks): New function factored out from onload.
504         * lto-plugin-coff.c (claim_file_handler): New function stub.
505         (onload_format_checks): Likewise.
507 2010-08-05  Andi Kleen  <ak@linux.intel.com>
509         * lto-plugin.c: Include <hashtab.h>
510         (sym_aux): Add next_conflict field to save conflict chains.
511         (plugin_file_info): Add conflicts symtab.
512         (parse_table_entry): Initialize aux->next_conflict.
513         (process_symtab): Increment found.
514         (dump_symtab): Add.
515         (finish_conflict_resolution): Add.
516         (free_symtab): Add.
517         (write_resolution): Remove symbols loop and move into
518         dump_symtab. Call dump_symtab for main symbol and conflicts table.
519         Call free_symtab to free conflicts table.
520         (SWAP): Add.
521         (eq_sym): Add.
522         (hash_sym): Add.
523         (symbol_strength): Add.
524         (resolve_conflicts): Add.
525         (claim_file_handler): Add n variable. Check return value of
526         process_symtab. Call resolve_conflicts.
528 2010-07-27  Andi Kleen  <ak@linux.intel.com>
530         * lto-plugin.c (translate): Remove debug fprintf.
532 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
534         PR bootstrap/45042
535         * lto-plugin.c (translate): Cast to unsigned long.
537 2010-07-23   Andi Kleen  <ak@linux.intel.com>
539         PR lto/44992
540         * lto-plugin.c (sym_aux): Add.
541         (plugin_symtab): Remove slots. Add aux and id.
542         (parse_table_entry): Change to use aux instead of slots.
543         (LTO_SECTION_PREFIX): Add.
544         (translate): Improve buffer allocation. Change to append
545         symbols to existing out buffer.
546         (get_section): Remove.
547         (process_symtab): Add.
548         (free_2): Free symtab->aux.
549         (write_resolution): Handle aux instead of slots.
550         Print sub id to resolution file.
551         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
552         calls with call to process_symtab.
554 2010-07-22  Richard Guenther  <rguenther@suse.de>
556         * Makefile.am: New copy_lto_plugin rule to install the plugin
557         into ../gcc.
558         * Makefile.in: Regenerated.
560 2010-05-21  Richard Guenther  <rguenther@suse.de>
562         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
564 2010-05-07  Richard Guenther <rguenther@suse.de>
566         * lto-plugin.c (free_2): Do not free resolution_file.
567         (write_resolution): Check that we were passed a resolution file.
568         (all_symbols_read_handler): Adjust.
569         (cleanup_handler): Do not remove the resolution file.
570         (process_option): Handle -fresolution=.
572 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
574         PR other/43620
575         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
576         * Makefile.in: Regenerate.
578 2010-04-23  Richard Guenther  <rguenther@suse.de>
580         PR lto/41550
581         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
582         (translate): Likewise.
583         (all_symbols_read_handler): Likewise.
584         (claim_file_handler): Likewise.
585         (process_option): Likewise.
586         (add_output_files): Likewise.  Remove filename length limit.
588 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
590         * Makefile.in: Regenerate.
591         * aclocal.m4: Regenerate.
593 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
595         PR lto/43336
596         * lto-plugin.c (cleanup_handler): Delete temporary output files.
598 2010-01-11  Richard Guenther  <rguenther@suse.de>
600         PR lto/41569
601         * Makefile.am: Disable dependencies.
602         * Makefile.in: Regenerated.
604 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
606         PR lto/42520
607         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
608         if -v is passed.
610 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
612         PR bootstrap/42306
613         * configure: Regenerated.
614         * Makefile.in: Likewise.
616 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
618         PR bootstrap/42096
619         * lto-plugin.c (claim_file_handler): Print offsets in hex.
621 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
623         * lto-plugin.c (write_resolution): Assume resolution_file is set.
624         Print the symbol name.
625         (all_symbols_read_handler): Create a resolution file.
626         Pass it to gcc.
627         (cleanup_handler): Remove the resolution file.
628         (process_option): Drop the -resolution option.
630 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
632         * lto-plugin.c (temp_obj_dir_name): Remove.
633         (arguments_file_name): New.
634         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
635         (exec_lto_wrapper):  Create arguments file with make_temp_file.
636         (cleanup_handler): Don't remove the temporary directory. Remove the
637         arguments file.
638         (onload): Don't create the temporary directory.
640 2009-11-04  Richard Guenther  <rguenther@suse.de>
641             Rafael Avila de Espindola  <espindola@google.com>
643         * lto-plugin.c (plugin_file_info): Remove temp field.
644         (cleanup_handler): Don't delete temporary objects.
645         (claim_file_handler): Don't create temporary objects.
647 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
649         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
651 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
653         PR41871
654         * lto-plugin.c (claim_file_handler): Close files that we created.
656 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
658         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
659         LDPL_ERROR
661 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
663         PR lto/41652
664         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
665         * configure: Regenerate.
667 2009-10-26  Richard Guenther  <rguenther@suse.de>
669         * configure.ac: Use AM_MAINTAINER_MODE.
670         * acinclude.m4: Remove.
671         * configure: Re-generate.
672         * Makefile.in: Likewise.
673         * aclocal.m4: Likewise.
675 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
676     
677         PR40790
678         * configure: Regenerate.
679         * configure.ac: Add AC_TYPE_UINT64_T.
681 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
683         * lto-plugin.c (message): New variable.
684         (check): New function.
685         (parse_table_entry, translate, write_resolution,add_output_files,
686         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
687         assert.
688         (cleanup_handler): Use check instead of assert. Remove the arguments
689         file if it exists.
691 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
693         * lto-plugin.c (resolution_file): New.
694         (free_1): Update comment.
695         (free_2): Free resolution_file.
696         (write_resolution): Write resolution to specified file. Use the
697         syms array from the symbol table.
698         (all_symbols_read_handler): Delay call to free_1 past call to
699         write_resolution.
700         (process_option): Add a -resolution option.
702 2009-10-13  Richard Guenther  <rguenther@suse.de>
704         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
705         correct libiberty.
706         * Makefile.in: Regenerated.
708 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
710         * lto-plugin.c (add_input_library): New.
711         (all_symbols_read_handler): Use add_input_library for items that
712         start with -l.
713         (process_option): Fit in 80 columns.
714         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
716 2009-10-02  Diego Novillo  <dnovillo@google.com>
718         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
719         and -D_FILE_OFFSET_BITS=64.
720         * configure.ac: Add AC_SYS_LARGEFILE.
721         * configure: Regenerate.
722         * Makefile.in: Regenerate.
723         * lto-plugin.c: Fix copyright boilerplate.
725 2009-10-02  Diego Novillo  <dnovillo@google.com>
727         * Makefile.am (ACLOCAL_AMFLAGS): Define.
728         * aclocal.m4: Regenerate with aclocal-2.64
729         * acinclude.m4: Remove.
730         * Makefile.in: Regenerate with automake-1.11
731         * configure.ac (AC_PREREQ): Update to 2.64.
732         * configure: Regenerate.
734 2009-10-02  Diego Novillo  <dnovillo@google.com>
736         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
737         and -D_FILE_OFFSET_BITS=64.
738         * configure.ac: Add AC_SYS_LARGEFILE.
739         * configure: Regenerate.
740         * Makefile.in: Regenerate.
741         * lto-plugin.c: Fix copyright boilerplate.
743 2009-10-02  Diego Novillo  <dnovillo@google.com>
745         * Makefile.am (ACLOCAL_AMFLAGS): Define.
746         * aclocal.m4: Regenerate with aclocal-2.64
747         * acinclude.m4: Remove.
748         * Makefile.in: Regenerate with automake-1.11
749         * configure.ac (AC_PREREQ): Update to 2.64.
750         * configure: Regenerate.
752 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
754         * Makefile.am (liblto_plugin_la_SOURCES): Remove
755         $(top_srcdir)/../gcc/lto/common.c
756         * Makefile.in: Regenerate.
758 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
760         * lto-plugin.c (pass_through_items): New.
761         (num_pass_through_items): New.
762         (all_symbols_read_handler): Update to use the -pass-through option.
763         (process_option): Replace -libgcc with -pass-through.
764         
765 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
767         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
768         register_cleanup to be set.
770 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
772         * Makefile.am: Remove all reference to ltosymtab.
773         * Makefile.in: Regenerate.
774         * lto-symtab.c: Remove.
776 2009-05-21  Diego Novillo  <dnovillo@google.com>
778         * configure.ac: Remove call to AC_CHECK_GELF.
779         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
780         * acinclude.m4: Do not include ../config/libelf.m4
781         * Makefile.am (LIBELFLIBS): Define.
782         (LIBELFINC): Define.
783         (AM_CPPFLAGS): Add $(LIBELFINC).
784         (ltosymtab_LDADD): Add $(LIBELFLIBS).
785         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
786         * lto-plugin.c: Always include <gelf.h>
787         * lto-symtab.c: Likewise.
788         * configure: Regenerate.
789         * Makefile.in: Regenerate.
791 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
793         * lto-plugin.c (libgcc_filename): New.
794         (all_symbols_read_handler): Pass libgcc to the linker.
795         (all_symbols_read_handler): Parse -libgcc
797 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
799         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
800         * Makefile.in: Regenerate.
801         * lto-plugin.c (add_output_files): Argument is now a FILE.
802         (exec_lto_wrapper): Use writeargv and pex.
804 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
806         Revert:
807         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
808         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
811 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
813         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
815 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
817         * lto-plugin.c: Include libiberty.h.
818         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
819         snprintf.
821 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
823         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
824         file to lto-wrapper.
826 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
828         * lto-plugin.c (plugin_file_info): Remove fd and elf.
829         (parse_table_entry): strdup entry->name and entry->comdat_key.
830         (free_1): Free name and comdat_key. Don't close the file. Don't call
831         elf_end.
832         (claim_file_handler): Always call elf_end.
834 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
836         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
837         -D_FILE_OFFSET_BITS=64
838         * Makefile.in: Regenerate
840 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
842         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
843         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
844         * Makefile.in: Regenerate.
845         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
846         * configure: Regenerate.
847         * configure.ac: Add AC_SUBST(target_noncanonical).
849 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
851         * lto-plugin.c: Include stdbool.h.
852         (debug, nop): Declare as bool.
854 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
856         * lto-plugin.c (nop): New.
857         (use_original_files): New.
858         (all_symbols_read_handler): Call use_original_files if nop is true.
859         (process_option): Parse the -nop option.
861 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
863         * lto-plugin.c (debug): New.
864         (exec_lto_wrapper): Print argv if debug is true.
865         (process_option): Process the -debug command line option.
867 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
869         * lto-plugin.c (process_option): The argument is now a single option,
870         not a space separated list.
872 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
874         * lto-plugin.c: Include sys/types.h and sys/wait.h
875         (output_files, num_output_files, lto_wrapper_argv,
876         lto_wrapper_num_args): New.
877         (free_2): Free output_files.
878         (write_resolution): Disable.
879         (add_output_files): New.
880         (exec_lto_wrapper): New.
881         (all_symbols_read_handler): Run lto-wrapper.
882         (claim_file_handler): Free lto_file.name and call elf_end.
883         (process_option): New.
885 2008-11-26  Rafael Espindola  <espindola@google.com>
887         * lto-plugin.c (add_input_file): New.
888         (get_section): Return NULL if get_section fails.
889         (write_resolution): New.
890         (all_symbols_read_handler): Call add_input_file.
891         (claim_file_handler): Unlink the correct file.
892         (onload): Record add_input_file.
894 2008-09-23 Rafael Espindola  <espindola@google.com>
896         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
897         Update the location of common.c.
898         * Makefile.in: Regenerate.
899         * common.c: Moved to gcc/lto.
900         * common.h: Moved to gcc/lto.
901         * lto-plugin.c: Update the location of common.h.
902         * lto-symtab.c: Update the location of common.h.
904 2008-09-23 Rafael Espindola  <espindola@google.com>
906         * common.c: Include common.h.
907         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
908         sizes.
909         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
910         explicit sizes.
912 2008-09-23 Rafael Espindola  <espindola@google.com>
914         * lto-plugin.c (plugin_file_info): Add temp.
915         (cleanup_handler): Only delete temporary files.
916         (claim_file_handler): Initialize lto_file.temp.
918 2008-09-23  Rafael Espindola  <espindola@google.com>
920         * plugin-api.h: Moved to include.
922 2008-09-23 Rafael Espindola  <espindola@google.com>
924         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
925         format.
927 2008-09-22 Rafael Espindola  <espindola@google.com>
929         * plugin-api.h: Copy from binutils' cvs.
931 2008-09-22 Rafael Espindola  <espindola@google.com>
933         * lto-symtab.c (get_symbols, add_symbols): Update signature.
934         * plugin-api.h: Copy from binutils' cvs.
936 2008-09-22 Rafael Espindola  <espindola@google.com>
938         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
939         Make extern
941 2008-09-10 Rafael Espindola  <espindola@google.com>
943         * lto-plugin.c (onload): add missing break statements and asserts.
944         * lto-symtab.c (claim_file_handler): Make it static.
945         (all_symbols_read_handler): Make it static.
946         (all_file_handles): Make it static.
947         (num_file_handles): Make it static.
948         (register_claim_file): Make it static.
949         (register_object): Indent properly.
951 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
953         * Makefile.am (ltosymtab_LDADD): Add -lelf.
954         * Makefiel.in: Regenerate.
955         * lto-plugin.c: Include ar.h.
956         (claim_file_handler): Handle file->offset != 0.
957         * lto-symtab.c: Include gelf.h.
958         (all_file_handles): Change type.
959         (register_object): New.
960         (register_file): Add support for archives.
961         (resolve): Update to new type of all_file_handles.
962         (print): Update to new type of all_file_handles.
963         (free_all): Update to new type of all_file_handles.
964         (main): Update to new type of all_file_handles.
966 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
968         * lto-plugin.c (get_string_table): Remove.
969         (get_section): Use elf_strptr instead of get_string_table.
971 2008-09-08  Doug Kwan  <dougkwan@google.com>
973         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
974         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
976 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
978         * Makefile.am (ltosymtab_SOURCES): add common.c.
979         (ltosymtab_CFLAGS): New.
980         (liblto_plugin_la_SOURCES): Add common.c.
981         * Makefile.in: Regenerate.
982         * common.c: New.
983         * common.h: New.
984         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
985         (plugin_symtab): New.
986         (plugin_file_info): New.
987         (register_all_symbols_read): New.
988         (get_symbols): New.
989         (claimed_files): New.
990         (num_claimed_files): New.
991         (translate): Don't drop the slot number.
992         (free_1): New.
993         (free_2): New.
994         (all_symbols_read_handler): New.
995         (claim_file_handler): Record every claimed file.
996         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
997         LDPT_GET_SYMBOLS.
998         * lto-symtab.c: Include stdlib.h, string.h and common.h.
999         (current_file_handle): Remove.
1000         (ld_plugin_all_symbols_read_handler): New.
1001         (plugin_handle): New.
1002         (file_handle): New.
1003         (all_file_handles): New.
1004         (num_file_handles): New.
1005         (get_symbols): New.
1006         (register_all_symbols_read): New.
1007         (add_symbols): Don't print the symbols, just record them.
1008         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1009         LDPT_GET_SYMBOLS.
1010         (load_plugin): Use plugin_handle.
1011         (register_file): Add the file handle to all_file_handles.
1012         (resolve): New.
1013         (print): New.
1014         (unload_plugin): New.
1015         (free_all): New.
1016         (main): Call all_symbols_read_handler and free resources.
1018 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1020         * Makefile.am (AM_CFLAGS): New.
1021         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1022         (lib_LTLIBRARIES): New.
1023         (liblto_plugin_la_SOURCES): New.
1024         (liblto_plugin_la_LIBADD): New.
1025         * Makefile.in: Regenerate.
1026         * acinclude.m4: Don't include ../config/acx.m4 and
1027         ../config/no-executables.m4.
1028         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1029         ../libtool.m4.
1030         * aclocal.m4: Regenerate.
1031         * configure: Regenerate.
1032         * configure.ac: Use AM_PROG_LIBTOOL.
1033         * lto-plugin.c: New.
1034         * lto-symtab.c: Rewrite to use the plugin.
1035         * plugin-api.h: New.
1037 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1039         * configure: Regenerate.
1040         * configure.ac: Use AC_CHECK_GELF.
1041         * lto-symtab.c: Include gelf.h.
1042         (get_string_table): Use size independent API.
1043         (printTable): Use lld to print 64 bit integers.
1045 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1047         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1048         entry->visibility are valid.
1050 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1051         * lto-symtab.c (table_entry): Add comdat.
1052         (parse_table_entry): Read comdat.
1054 2008-08-21  Rafael Espindola  <espindola@google.com>
1056         * Makefile.am: New.
1057         * Makefile.in: New.
1058         * acinclude.m4: New.
1059         * aclocal.m4: New.
1060         * configure: New.
1061         * configure.ac: New.
1062         * lto-symtab.c: New.