runtime: copy more of scheduler from Go 1.7 runtime
[official-gcc.git] / lto-plugin / ChangeLog
blobb0051b6bc1ffad6e2c3f9496c18178a5b2bce948
1 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
3         Update copyright years.
5 2016-11-15  Matthias Klose  <doko@ubuntu.com>
7         * configure: Regenerate.
9 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
11         PR driver/68463
12         * lto-plugin.c (struct plugin_offload_file): New.
13         (offload_files): Change type.
14         (offload_files_last, offload_files_last_obj): New.
15         (offload_files_last_lto): New.
16         (free_2): Adjust accordingly.
17         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
18         Don't call free_1 for offload_files.  Write names of object files with
19         offloading to the temporary file.  Add new option to lto_arg_ptr.
20         (claim_file_handler): Don't claim file if it contains offload sections
21         without LTO sections.  If it contains offload sections, add to the list.
23 2016-01-15  Martin Liska  <mliska@suse.cz>
25         * lto-plugin.c (all_symbols_read_handler): Assign default
26         value to a string variable.
28 2015-11-25  Jan Hubicka  <jh@suse.cz>
30         PR lto/67548
31         * lto-plugin.c (linker_output, linker_output_set): New statics.
32         (all_symbols_read_handler): Add -flinker-output option.
33         (onload): Record linker_output info.
35 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
37         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
38         * configure: Regenerate.
39         * config.h.in: Ditto.
41 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
43         * Makefile.am: Drop 'by automake version' from top-level comment.
44         * Makefile.in: Regenerated with automake-1.11.6.
45         * aclocal.m4: Likewise.
46         * configure: Likewise.
48 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
50         * lto-plugin.c (release_input_file): Removed.
51         (claim_file_handler): Don't call release_input_file.
52         (onload): Don't set release_input_file.
54 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
56         * lto-plugin.c (claim_file_handler): Pass handle to
57         release_input_file.
59 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
61         * lto-plugin.c (claim_file_handler): Call release_input_file only
62         if file is claimed.
64 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
66         * lto-plugin.c (claim_file_handler): Call release_input_file only
67         if it is not NULL.
69 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
71         PR lto/64837
72         * lto-plugin.c (release_input_file): New.
73         (claim_file_handler): Call release_input_file.
74         (onload): Set release_input_file.
76 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
78         * lto-plugin.c (offload_files, num_offload_files): New static variables.
79         (free_1): Use arguments instead of global variables.
80         (free_2): Free offload_files.
81         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
82         arguments.
83         (claim_file_handler): Do not add file to claimed_files if it contains
84         offload sections without LTO sections.  Add it to offload_files instead.
86 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
88         PR bootstrap/63784
89         * configure: Regenerated.
91 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
92             Bernd Schmidt  <bernds@codesourcery.com>
93             Andrey Turetskiy  <andrey.turetskiy@intel.com>
94             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
96         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
97         (struct plugin_objfile): Add new field "offload".
98         (process_offload_section): New static function.
99         (claim_file_handler): Claim file if it contains offload sections.
101 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
102             Thomas Schwinge  <thomas@codesourcery.com>
103             Ilya Verbin  <ilya.verbin@intel.com>
104             Andrey Turetskiy  <andrey.turetskiy@intel.com>
106         * Makefile.am (libexecsubdir): Tweak for the possibility of being
107         configured for offload compiler.
108         (accel_dir_suffix, real_target_noncanonical): New variables substituted
109         by configure.
110         * Makefile.in: Regenerate.
111         * configure: Regenerate.
112         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
113         variables.
115 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
117         PR target/63610
118         * configure: Regenerate.
120 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
122         PR bootstrap/62260
123         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
124         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
125         $host_subdir.
126         * Makefile.in: Regenerated.
127         * configure: Likewise.
129 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
131         * configure.ac (--with-libiberty): New configure option.
132         * configure: Regenerate.
133         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
134         variables.
135         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
136         (liblto_plugin_la_DEPENDENCIES): Use them.
137         * Makefile.in: Regenerate.
139 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
141         PR lto/60981
142         * configure.ac: Check for -static-libgcc.
143         * configure: Regenerate.
145 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
147         PR sanitizer/56781
148         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
149         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
150         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
151         over ../libiberty/pic/libiberty.a if the former exists.
152         * Makefile.in: Regenerated.
154         PR sanitizer/56781
155         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
156         * Makefile.in: Regenerated.
158 2014-04-02  Richard Biener  <rguenther@suse.de>
160         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
161         is set in COLLECT_GCC_OPTIONS.
163 2014-03-28  Richard Biener  <rguenther@suse.de>
165         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
167 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
169         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
170         for gcc.
171         * configure: Regenerate.
172         * Makefile.am (AM_LDFLAGS): New variable.
173         (liblto_plugin_la_LDFLAGS): Add it.
174         * Makefile.in: Regenerate.
176 2013-09-20  Alan Modra  <amodra@gmail.com>
178         * configure: Regenerate.
180 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
182         * configure: Regenerated.
184 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
186         * lto-plugin.c: Fix typo.
188 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
190         * configure: Regenerated.
192 2012-02-22  Kai Tietz  <ktietz@redhat.com>
194         PR lto/50616
195         * lto-plugin.c (PRI_LL): New macro.
196         (dump_symtab): Use PRI_LL instead of ll in print.
197         (process_symtab): Use PRI_LL instead of ll in scan.
199 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
201         * configure: Regenerate.
203 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
205         * configure: Regenerate.
207 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
209         * configure: Regenerate.
211 2011-10-02  Jan Hubicka  <jh@suse.cz>
213         PR lto/47247
214         * lto-plugin.c (get_symbols_v2): New variable.
215         (write_resolution): Use V2 API when available.
216         (onload): Handle LDPT_GET_SYMBOLS_V2.
218 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
219             Andi Kleen  <ak@linux.intel.com>
221         PR lto/50568
222         * lto-plugin.c (sym_aux): Change id to unsigned long long.
223         (plugin_symtab): Likewise.
224         (dump_symtab): Likewise.
225         (resolve_conflicts): Likewise.
226         (process_symtab): Likewise.
228 2011-08-10  Richard Guenther  <rguenther@suse.de>
230         PR bootstrap/49907
231         lto-plugin/
232         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
233         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
234         * configure: Regenerate.
235         * Makefile.in: Likewise.
236         * aclocal.m4: Likewise.
238 2011-04-20  Jim Meyering  <meyering@redhat.com>
240         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
242 2011-04-05  Richard Guenther  <rguenther@suse.de>
244         PR bootstrap/48431
245         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
247 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
249         * Makefile.in: Regenerate.
250         * aclocal.m4: Regenerate.
251         * configure: Regenerate.
253 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
255         * Makefile.am (all-local): Rename from 'all'.
256         * Makefile.in: Regenerate.
258 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
260         PR lto/47225
261         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
262         (liblto_plugin_la_LDFLAGS): Add -module.
263         (copy_lto_plugin): Renamed to...
264         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
265         of static modules.
266         * Makefile.in: Rebuild.
268 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
270         PR lto/47225
271         * Makefile.am (Wc): New helper for encoding -Wc,.
272         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
273         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
274         * Makefile.in: Regenerated.
276 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
278         Revert:
280         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
282         PR lto/47225
283         * Makefile.am (Wl): New helper for encoding -Wl,.
284         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
285         * Makefile.in: Regenerated.
287 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
289         PR lto/47225
290         * Makefile.am (Wl): New helper for encoding -Wl,.
291         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
292         * Makefile.in: Regenerated.
294 2011-01-25  Ian Lance Taylor  <iant@google.com>
296         * lto-plugin.c (gold_version): New static variable.
297         (all_symbols_read_handler): Don't check pass_through_items if
298         using gold 1.11 or later.
299         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
301 2011-01-12  Richard Guenther  <rguenther@suse.de>
303         PR lto/47264
304         * lto-plugin.c (parse_table_entry): Use memcpy to access
305         unaligned fields.
307 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
309         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
310         * Makefile.in: Regenerate.
312 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
314         Revert last change.
316 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
318         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
319         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
320         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
321         * Makefile.in: Regenerate.
323 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
325         PR middle-end/46674
326         PR lto/43157
327         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
328         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
329         * configure: Regenerate.
330         * config.h.in: Likewise.
332 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
334         PR target/40125
335         PR lto/46695
336         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
337         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
338         override -bindir setting.
339         * aclocal.m4: Regenerate.
340         * configure: Regenerate.
341         * Makefile.in: Regenerate.
343 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
345         * config.h.in: Regenerated.
346         * configure: Regenerated.
347         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
348         * lto-plugin.c (WIFEXITED): Define default.
349         (WEXITSTATUS): Likeiwse.
351 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
353         * config.h.in: Regenerated.
354         * configure: Regenerated.
355         * Makefile.in: Regenerated.
356         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
357         * lto-plugin.c:  Include sys/wait.h conditionally.
358         * aclocal.m4: Regenerated.
360 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
362         * lto-plugin.c (add_output_files): Fix memory leak.
364 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
366         PR bootstrap/46397
367         PR bootstrap/46362
368         * configure.ac: Add AC_TYPE_INT64_T test.
369         * config.h.in: Regenerate.
370         * configure: Likewise.
371         * lto-plugin.c (debug): Use char not bool.
372         (nop): Likewise.
373         (check_1): Rename from check, and use int not bool for gate argument.
374         (check): Macro wrapper for the above to coerce gate argument into
375         boolean-valued integer in case it has pointer type.
376         (parse_table_entry): Use 0 not false.
377         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
378         into two 32-bit parts and printing as hex ints.
380 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
382         PR lto/46291
383         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
385 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
387         PR lto/46273
388         * lto-plugin.h: Delete.
389         * lto-plugin-elf.c: Likewise.
390         * lto-plugin-coff.c: Likewise.
391         * configure.ac: Don't use libelf, don't source config.gcc.
392         (LIBELFLIBS): Delete.
393         (LIBELFINC): Delete.
394         (LTO_FORMAT): Delete.
395         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
396         (config.h): Add AC_CONFIG_HEADERS directive.
397         * Makefile.am (LIBELFLIBS): Delete.
398         (LIBELFINC): Delete.
399         (LTO_FORMAT): Delete.
400         (DEFS): Import.
401         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
402         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
403         any object-format-specific source file in the link.
404         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
405         * config.h.in: Generate.
406         * configure: Regenerate.
407         * Makefile.in: Likewise.
408         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
409         (LTO_SEGMENT_NAME): New definition.
410         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
411         (LTO_SECTION_PREFIX_LEN): New definition.
412         (struct sym_aux): Struct definition moved here from lto-plugin.h.
413         (struct plugin_symtab): Likewise.
414         (struct plugin_objfile): Likewise.
415         (struct plugin_objfile): New struct def.
416         (enum symbol_style): New enum type.
417         (add_symbols): Make static.
418         (claimed_files): Likewise.
419         (num_claimed_files): Likewise.
420         (sym_style): New global.
421         (check): Make static.
422         (parse_table_entry): Likewise.  Respect sym_style when extracting
423         symbol from symtab entry.
424         (translate): Make static.
425         (resolve_conflicts): Likewise.
426         (process_symtab): New function, per-section callback version of
427         old object-format-specific handling from deleted lto-plugin-elf.c.
428         (claim_file_handler): Convert ELF-specific version from deleted
429         lto-plugin-elf.c to simple_object interface and move here.
430         (process_options): Allow new '-sym-style=' option.
431         (onload): Don't call deleted onload_format_checks hook.
433 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
435         * lto-plugin.c (dump_symtab): Correct printf argument type.
436         (finish_conflict_resolution): Initialize resolution.
438 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
440         PR bootstrap/45951
441         * configure.ac: Add AC_CANONICAL_SYSTEM.
442         * configure: Regenerated.
444 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
446         * configure.ac: Source config.gcc to determine lto_binary_reader.
447         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
448         * Makefile.am (LTO_FORMAT): Import.
449         (liblto_plugin_la_SOURCES): Add object format dependent module
450         defined by LTO_FORMAT.
451         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
452         and work around libtool warning.
453         * configure: Regenerate.
454         * Makefile.in: Likewise.
455         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
456         (struct sym_aux): Likewise.
457         (struct plugin_symtab): Likewise.
458         (struct plugin_file_info): Likewise.
459         (LTO_SECTION_PREFIX): Likewise.
460         (add_symbols):  Make non-static.
461         (claimed_files): Likewise.
462         (num_claimed_files): Likewise.
463         (check): Likewise.
464         (parse_table_entry): Likewise.
465         (translate): Likewise.
466         (resolve_conflicts): Likewise.
467         (process_symtab): Move to new lto-plugin-elf.c object format dependent
468         source file.
469         (claim_file_handler): Likewise, and make non-static.
470         (onload): Call new onload_format_checks function.
471         * lto-plugin.h: New file.
472         (LTO_SECTION_PREFIX): Move here.
473         (struct sym_aux): Likewise.
474         (struct plugin_symtab): Likewise.
475         (struct plugin_file_info): Likewise.
476         (claim_file_handler): Add new function prototype.
477         (onload_format_checks): Likewise.
478         (check): Declare extern.
479         (translate): Likewise.
480         (parse_table_entry): Likewise.
481         (resolve_conflicts): Likewise.
482         (add_symbols):  Likewise.
483         (claimed_files): Likewise.
484         (num_claimed_files): Likewise.
485         * lto-plugin-elf.c (process_symtab): Move here.
486         (claim_file_handler): Likewise, and make non-static.
487         (onload_format_checks): New function factored out from onload.
488         * lto-plugin-coff.c (claim_file_handler): New function stub.
489         (onload_format_checks): Likewise.
491 2010-08-05  Andi Kleen  <ak@linux.intel.com>
493         * lto-plugin.c: Include <hashtab.h>
494         (sym_aux): Add next_conflict field to save conflict chains.
495         (plugin_file_info): Add conflicts symtab.
496         (parse_table_entry): Initialize aux->next_conflict.
497         (process_symtab): Increment found.
498         (dump_symtab): Add.
499         (finish_conflict_resolution): Add.
500         (free_symtab): Add.
501         (write_resolution): Remove symbols loop and move into
502         dump_symtab. Call dump_symtab for main symbol and conflicts table.
503         Call free_symtab to free conflicts table.
504         (SWAP): Add.
505         (eq_sym): Add.
506         (hash_sym): Add.
507         (symbol_strength): Add.
508         (resolve_conflicts): Add.
509         (claim_file_handler): Add n variable. Check return value of
510         process_symtab. Call resolve_conflicts.
512 2010-07-27  Andi Kleen  <ak@linux.intel.com>
514         * lto-plugin.c (translate): Remove debug fprintf.
516 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
518         PR bootstrap/45042
519         * lto-plugin.c (translate): Cast to unsigned long.
521 2010-07-23   Andi Kleen  <ak@linux.intel.com>
523         PR lto/44992
524         * lto-plugin.c (sym_aux): Add.
525         (plugin_symtab): Remove slots. Add aux and id.
526         (parse_table_entry): Change to use aux instead of slots.
527         (LTO_SECTION_PREFIX): Add.
528         (translate): Improve buffer allocation. Change to append
529         symbols to existing out buffer.
530         (get_section): Remove.
531         (process_symtab): Add.
532         (free_2): Free symtab->aux.
533         (write_resolution): Handle aux instead of slots.
534         Print sub id to resolution file.
535         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
536         calls with call to process_symtab.
538 2010-07-22  Richard Guenther  <rguenther@suse.de>
540         * Makefile.am: New copy_lto_plugin rule to install the plugin
541         into ../gcc.
542         * Makefile.in: Regenerated.
544 2010-05-21  Richard Guenther  <rguenther@suse.de>
546         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
548 2010-05-07  Richard Guenther <rguenther@suse.de>
550         * lto-plugin.c (free_2): Do not free resolution_file.
551         (write_resolution): Check that we were passed a resolution file.
552         (all_symbols_read_handler): Adjust.
553         (cleanup_handler): Do not remove the resolution file.
554         (process_option): Handle -fresolution=.
556 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
558         PR other/43620
559         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
560         * Makefile.in: Regenerate.
562 2010-04-23  Richard Guenther  <rguenther@suse.de>
564         PR lto/41550
565         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
566         (translate): Likewise.
567         (all_symbols_read_handler): Likewise.
568         (claim_file_handler): Likewise.
569         (process_option): Likewise.
570         (add_output_files): Likewise.  Remove filename length limit.
572 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
574         * Makefile.in: Regenerate.
575         * aclocal.m4: Regenerate.
577 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
579         PR lto/43336
580         * lto-plugin.c (cleanup_handler): Delete temporary output files.
582 2010-01-11  Richard Guenther  <rguenther@suse.de>
584         PR lto/41569
585         * Makefile.am: Disable dependencies.
586         * Makefile.in: Regenerated.
588 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
590         PR lto/42520
591         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
592         if -v is passed.
594 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
596         PR bootstrap/42306
597         * configure: Regenerated.
598         * Makefile.in: Likewise.
600 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
602         PR bootstrap/42096
603         * lto-plugin.c (claim_file_handler): Print offsets in hex.
605 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
607         * lto-plugin.c (write_resolution): Assume resolution_file is set.
608         Print the symbol name.
609         (all_symbols_read_handler): Create a resolution file.
610         Pass it to gcc.
611         (cleanup_handler): Remove the resolution file.
612         (process_option): Drop the -resolution option.
614 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
616         * lto-plugin.c (temp_obj_dir_name): Remove.
617         (arguments_file_name): New.
618         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
619         (exec_lto_wrapper):  Create arguments file with make_temp_file.
620         (cleanup_handler): Don't remove the temporary directory. Remove the
621         arguments file.
622         (onload): Don't create the temporary directory.
624 2009-11-04  Richard Guenther  <rguenther@suse.de>
625             Rafael Avila de Espindola  <espindola@google.com>
627         * lto-plugin.c (plugin_file_info): Remove temp field.
628         (cleanup_handler): Don't delete temporary objects.
629         (claim_file_handler): Don't create temporary objects.
631 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
633         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
635 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
637         PR41871
638         * lto-plugin.c (claim_file_handler): Close files that we created.
640 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
642         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
643         LDPL_ERROR
645 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
647         PR lto/41652
648         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
649         * configure: Regenerate.
651 2009-10-26  Richard Guenther  <rguenther@suse.de>
653         * configure.ac: Use AM_MAINTAINER_MODE.
654         * acinclude.m4: Remove.
655         * configure: Re-generate.
656         * Makefile.in: Likewise.
657         * aclocal.m4: Likewise.
659 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
660     
661         PR40790
662         * configure: Regenerate.
663         * configure.ac: Add AC_TYPE_UINT64_T.
665 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
667         * lto-plugin.c (message): New variable.
668         (check): New function.
669         (parse_table_entry, translate, write_resolution,add_output_files,
670         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
671         assert.
672         (cleanup_handler): Use check instead of assert. Remove the arguments
673         file if it exists.
675 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
677         * lto-plugin.c (resolution_file): New.
678         (free_1): Update comment.
679         (free_2): Free resolution_file.
680         (write_resolution): Write resolution to specified file. Use the
681         syms array from the symbol table.
682         (all_symbols_read_handler): Delay call to free_1 past call to
683         write_resolution.
684         (process_option): Add a -resolution option.
686 2009-10-13  Richard Guenther  <rguenther@suse.de>
688         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
689         correct libiberty.
690         * Makefile.in: Regenerated.
692 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
694         * lto-plugin.c (add_input_library): New.
695         (all_symbols_read_handler): Use add_input_library for items that
696         start with -l.
697         (process_option): Fit in 80 columns.
698         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
700 2009-10-02  Diego Novillo  <dnovillo@google.com>
702         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
703         and -D_FILE_OFFSET_BITS=64.
704         * configure.ac: Add AC_SYS_LARGEFILE.
705         * configure: Regenerate.
706         * Makefile.in: Regenerate.
707         * lto-plugin.c: Fix copyright boilerplate.
709 2009-10-02  Diego Novillo  <dnovillo@google.com>
711         * Makefile.am (ACLOCAL_AMFLAGS): Define.
712         * aclocal.m4: Regenerate with aclocal-2.64
713         * acinclude.m4: Remove.
714         * Makefile.in: Regenerate with automake-1.11
715         * configure.ac (AC_PREREQ): Update to 2.64.
716         * configure: Regenerate.
718 2009-10-02  Diego Novillo  <dnovillo@google.com>
720         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
721         and -D_FILE_OFFSET_BITS=64.
722         * configure.ac: Add AC_SYS_LARGEFILE.
723         * configure: Regenerate.
724         * Makefile.in: Regenerate.
725         * lto-plugin.c: Fix copyright boilerplate.
727 2009-10-02  Diego Novillo  <dnovillo@google.com>
729         * Makefile.am (ACLOCAL_AMFLAGS): Define.
730         * aclocal.m4: Regenerate with aclocal-2.64
731         * acinclude.m4: Remove.
732         * Makefile.in: Regenerate with automake-1.11
733         * configure.ac (AC_PREREQ): Update to 2.64.
734         * configure: Regenerate.
736 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
738         * Makefile.am (liblto_plugin_la_SOURCES): Remove
739         $(top_srcdir)/../gcc/lto/common.c
740         * Makefile.in: Regenerate.
742 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
744         * lto-plugin.c (pass_through_items): New.
745         (num_pass_through_items): New.
746         (all_symbols_read_handler): Update to use the -pass-through option.
747         (process_option): Replace -libgcc with -pass-through.
748         
749 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
751         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
752         register_cleanup to be set.
754 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
756         * Makefile.am: Remove all reference to ltosymtab.
757         * Makefile.in: Regenerate.
758         * lto-symtab.c: Remove.
760 2009-05-21  Diego Novillo  <dnovillo@google.com>
762         * configure.ac: Remove call to AC_CHECK_GELF.
763         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
764         * acinclude.m4: Do not include ../config/libelf.m4
765         * Makefile.am (LIBELFLIBS): Define.
766         (LIBELFINC): Define.
767         (AM_CPPFLAGS): Add $(LIBELFINC).
768         (ltosymtab_LDADD): Add $(LIBELFLIBS).
769         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
770         * lto-plugin.c: Always include <gelf.h>
771         * lto-symtab.c: Likewise.
772         * configure: Regenerate.
773         * Makefile.in: Regenerate.
775 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
777         * lto-plugin.c (libgcc_filename): New.
778         (all_symbols_read_handler): Pass libgcc to the linker.
779         (all_symbols_read_handler): Parse -libgcc
781 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
783         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
784         * Makefile.in: Regenerate.
785         * lto-plugin.c (add_output_files): Argument is now a FILE.
786         (exec_lto_wrapper): Use writeargv and pex.
788 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
790         Revert:
791         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
792         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
795 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
797         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
799 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
801         * lto-plugin.c: Include libiberty.h.
802         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
803         snprintf.
805 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
807         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
808         file to lto-wrapper.
810 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
812         * lto-plugin.c (plugin_file_info): Remove fd and elf.
813         (parse_table_entry): strdup entry->name and entry->comdat_key.
814         (free_1): Free name and comdat_key. Don't close the file. Don't call
815         elf_end.
816         (claim_file_handler): Always call elf_end.
818 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
820         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
821         -D_FILE_OFFSET_BITS=64
822         * Makefile.in: Regenerate
824 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
826         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
827         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
828         * Makefile.in: Regenerate.
829         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
830         * configure: Regenerate.
831         * configure.ac: Add AC_SUBST(target_noncanonical).
833 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
835         * lto-plugin.c: Include stdbool.h.
836         (debug, nop): Declare as bool.
838 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
840         * lto-plugin.c (nop): New.
841         (use_original_files): New.
842         (all_symbols_read_handler): Call use_original_files if nop is true.
843         (process_option): Parse the -nop option.
845 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
847         * lto-plugin.c (debug): New.
848         (exec_lto_wrapper): Print argv if debug is true.
849         (process_option): Process the -debug command line option.
851 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
853         * lto-plugin.c (process_option): The argument is now a single option,
854         not a space separated list.
856 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
858         * lto-plugin.c: Include sys/types.h and sys/wait.h
859         (output_files, num_output_files, lto_wrapper_argv,
860         lto_wrapper_num_args): New.
861         (free_2): Free output_files.
862         (write_resolution): Disable.
863         (add_output_files): New.
864         (exec_lto_wrapper): New.
865         (all_symbols_read_handler): Run lto-wrapper.
866         (claim_file_handler): Free lto_file.name and call elf_end.
867         (process_option): New.
869 2008-11-26  Rafael Espindola  <espindola@google.com>
871         * lto-plugin.c (add_input_file): New.
872         (get_section): Return NULL if get_section fails.
873         (write_resolution): New.
874         (all_symbols_read_handler): Call add_input_file.
875         (claim_file_handler): Unlink the correct file.
876         (onload): Record add_input_file.
878 2008-09-23 Rafael Espindola  <espindola@google.com>
880         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
881         Update the location of common.c.
882         * Makefile.in: Regenerate.
883         * common.c: Moved to gcc/lto.
884         * common.h: Moved to gcc/lto.
885         * lto-plugin.c: Update the location of common.h.
886         * lto-symtab.c: Update the location of common.h.
888 2008-09-23 Rafael Espindola  <espindola@google.com>
890         * common.c: Include common.h.
891         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
892         sizes.
893         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
894         explicit sizes.
896 2008-09-23 Rafael Espindola  <espindola@google.com>
898         * lto-plugin.c (plugin_file_info): Add temp.
899         (cleanup_handler): Only delete temporary files.
900         (claim_file_handler): Initialize lto_file.temp.
902 2008-09-23  Rafael Espindola  <espindola@google.com>
904         * plugin-api.h: Moved to include.
906 2008-09-23 Rafael Espindola  <espindola@google.com>
908         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
909         format.
911 2008-09-22 Rafael Espindola  <espindola@google.com>
913         * plugin-api.h: Copy from binutils' cvs.
915 2008-09-22 Rafael Espindola  <espindola@google.com>
917         * lto-symtab.c (get_symbols, add_symbols): Update signature.
918         * plugin-api.h: Copy from binutils' cvs.
920 2008-09-22 Rafael Espindola  <espindola@google.com>
922         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
923         Make extern
925 2008-09-10 Rafael Espindola  <espindola@google.com>
927         * lto-plugin.c (onload): add missing break statements and asserts.
928         * lto-symtab.c (claim_file_handler): Make it static.
929         (all_symbols_read_handler): Make it static.
930         (all_file_handles): Make it static.
931         (num_file_handles): Make it static.
932         (register_claim_file): Make it static.
933         (register_object): Indent properly.
935 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
937         * Makefile.am (ltosymtab_LDADD): Add -lelf.
938         * Makefiel.in: Regenerate.
939         * lto-plugin.c: Include ar.h.
940         (claim_file_handler): Handle file->offset != 0.
941         * lto-symtab.c: Include gelf.h.
942         (all_file_handles): Change type.
943         (register_object): New.
944         (register_file): Add support for archives.
945         (resolve): Update to new type of all_file_handles.
946         (print): Update to new type of all_file_handles.
947         (free_all): Update to new type of all_file_handles.
948         (main): Update to new type of all_file_handles.
950 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
952         * lto-plugin.c (get_string_table): Remove.
953         (get_section): Use elf_strptr instead of get_string_table.
955 2008-09-08  Doug Kwan  <dougkwan@google.com>
957         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
958         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
960 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
962         * Makefile.am (ltosymtab_SOURCES): add common.c.
963         (ltosymtab_CFLAGS): New.
964         (liblto_plugin_la_SOURCES): Add common.c.
965         * Makefile.in: Regenerate.
966         * common.c: New.
967         * common.h: New.
968         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
969         (plugin_symtab): New.
970         (plugin_file_info): New.
971         (register_all_symbols_read): New.
972         (get_symbols): New.
973         (claimed_files): New.
974         (num_claimed_files): New.
975         (translate): Don't drop the slot number.
976         (free_1): New.
977         (free_2): New.
978         (all_symbols_read_handler): New.
979         (claim_file_handler): Record every claimed file.
980         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
981         LDPT_GET_SYMBOLS.
982         * lto-symtab.c: Include stdlib.h, string.h and common.h.
983         (current_file_handle): Remove.
984         (ld_plugin_all_symbols_read_handler): New.
985         (plugin_handle): New.
986         (file_handle): New.
987         (all_file_handles): New.
988         (num_file_handles): New.
989         (get_symbols): New.
990         (register_all_symbols_read): New.
991         (add_symbols): Don't print the symbols, just record them.
992         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
993         LDPT_GET_SYMBOLS.
994         (load_plugin): Use plugin_handle.
995         (register_file): Add the file handle to all_file_handles.
996         (resolve): New.
997         (print): New.
998         (unload_plugin): New.
999         (free_all): New.
1000         (main): Call all_symbols_read_handler and free resources.
1002 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1004         * Makefile.am (AM_CFLAGS): New.
1005         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1006         (lib_LTLIBRARIES): New.
1007         (liblto_plugin_la_SOURCES): New.
1008         (liblto_plugin_la_LIBADD): New.
1009         * Makefile.in: Regenerate.
1010         * acinclude.m4: Don't include ../config/acx.m4 and
1011         ../config/no-executables.m4.
1012         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1013         ../libtool.m4.
1014         * aclocal.m4: Regenerate.
1015         * configure: Regenerate.
1016         * configure.ac: Use AM_PROG_LIBTOOL.
1017         * lto-plugin.c: New.
1018         * lto-symtab.c: Rewrite to use the plugin.
1019         * plugin-api.h: New.
1021 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1023         * configure: Regenerate.
1024         * configure.ac: Use AC_CHECK_GELF.
1025         * lto-symtab.c: Include gelf.h.
1026         (get_string_table): Use size independent API.
1027         (printTable): Use lld to print 64 bit integers.
1029 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1031         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1032         entry->visibility are valid.
1034 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1035         * lto-symtab.c (table_entry): Add comdat.
1036         (parse_table_entry): Read comdat.
1038 2008-08-21  Rafael Espindola  <espindola@google.com>
1040         * Makefile.am: New.
1041         * Makefile.in: New.
1042         * acinclude.m4: New.
1043         * aclocal.m4: New.
1044         * configure: New.
1045         * configure.ac: New.
1046         * lto-symtab.c: New.