2015-05-12 Pierre-Marie de Rodat <derodat@adacore.com>
[official-gcc.git] / lto-plugin / ChangeLog
blob2d6152fec2477ba72cfbf9a2e494ec6aa3f46dac
1 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
3         * lto-plugin.c (release_input_file): Removed.
4         (claim_file_handler): Don't call release_input_file.
5         (onload): Don't set release_input_file.
7 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9         * lto-plugin.c (claim_file_handler): Pass handle to
10         release_input_file.
12 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
14         * lto-plugin.c (claim_file_handler): Call release_input_file only
15         if file is claimed.
17 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
19         * lto-plugin.c (claim_file_handler): Call release_input_file only
20         if it is not NULL.
22 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
24         PR lto/64837
25         * lto-plugin.c (release_input_file): New.
26         (claim_file_handler): Call release_input_file.
27         (onload): Set release_input_file.
29 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
31         * lto-plugin.c (offload_files, num_offload_files): New static variables.
32         (free_1): Use arguments instead of global variables.
33         (free_2): Free offload_files.
34         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
35         arguments.
36         (claim_file_handler): Do not add file to claimed_files if it contains
37         offload sections without LTO sections.  Add it to offload_files instead.
39 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
41         PR bootstrap/63784
42         * configure: Regenerated.
44 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
45             Bernd Schmidt  <bernds@codesourcery.com>
46             Andrey Turetskiy  <andrey.turetskiy@intel.com>
47             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
49         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
50         (struct plugin_objfile): Add new field "offload".
51         (process_offload_section): New static function.
52         (claim_file_handler): Claim file if it contains offload sections.
54 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
55             Thomas Schwinge  <thomas@codesourcery.com>
56             Ilya Verbin  <ilya.verbin@intel.com>
57             Andrey Turetskiy  <andrey.turetskiy@intel.com>
59         * Makefile.am (libexecsubdir): Tweak for the possibility of being
60         configured for offload compiler.
61         (accel_dir_suffix, real_target_noncanonical): New variables substituted
62         by configure.
63         * Makefile.in: Regenerate.
64         * configure: Regenerate.
65         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
66         variables.
68 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
70         PR target/63610
71         * configure: Regenerate.
73 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
75         PR bootstrap/62260
76         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
77         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
78         $host_subdir.
79         * Makefile.in: Regenerated.
80         * configure: Likewise.
82 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
84         * configure.ac (--with-libiberty): New configure option.
85         * configure: Regenerate.
86         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
87         variables.
88         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
89         (liblto_plugin_la_DEPENDENCIES): Use them.
90         * Makefile.in: Regenerate.
92 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
94         PR lto/60981
95         * configure.ac: Check for -static-libgcc.
96         * configure: Regenerate.
98 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
100         PR sanitizer/56781
101         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
102         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
103         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
104         over ../libiberty/pic/libiberty.a if the former exists.
105         * Makefile.in: Regenerated.
107         PR sanitizer/56781
108         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
109         * Makefile.in: Regenerated.
111 2014-04-02  Richard Biener  <rguenther@suse.de>
113         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
114         is set in COLLECT_GCC_OPTIONS.
116 2014-03-28  Richard Biener  <rguenther@suse.de>
118         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
120 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
122         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
123         for gcc.
124         * configure: Regenerate.
125         * Makefile.am (AM_LDFLAGS): New variable.
126         (liblto_plugin_la_LDFLAGS): Add it.
127         * Makefile.in: Regenerate.
129 2013-09-20  Alan Modra  <amodra@gmail.com>
131         * configure: Regenerate.
133 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
135         * configure: Regenerated.
137 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
139         * lto-plugin.c: Fix typo.
141 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
143         * configure: Regenerated.
145 2012-02-22  Kai Tietz  <ktietz@redhat.com>
147         PR lto/50616
148         * lto-plugin.c (PRI_LL): New macro.
149         (dump_symtab): Use PRI_LL instead of ll in print.
150         (process_symtab): Use PRI_LL instead of ll in scan.
152 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
154         * configure: Regenerate.
156 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
158         * configure: Regenerate.
160 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
162         * configure: Regenerate.
164 2011-10-02  Jan Hubicka  <jh@suse.cz>
166         PR lto/47247
167         * lto-plugin.c (get_symbols_v2): New variable.
168         (write_resolution): Use V2 API when available.
169         (onload): Handle LDPT_GET_SYMBOLS_V2.
171 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
172             Andi Kleen  <ak@linux.intel.com>
174         PR lto/50568
175         * lto-plugin.c (sym_aux): Change id to unsigned long long.
176         (plugin_symtab): Likewise.
177         (dump_symtab): Likewise.
178         (resolve_conflicts): Likewise.
179         (process_symtab): Likewise.
181 2011-08-10  Richard Guenther  <rguenther@suse.de>
183         PR bootstrap/49907
184         lto-plugin/
185         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
186         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
187         * configure: Regenerate.
188         * Makefile.in: Likewise.
189         * aclocal.m4: Likewise.
191 2011-04-20  Jim Meyering  <meyering@redhat.com>
193         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
195 2011-04-05  Richard Guenther  <rguenther@suse.de>
197         PR bootstrap/48431
198         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
200 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
202         * Makefile.in: Regenerate.
203         * aclocal.m4: Regenerate.
204         * configure: Regenerate.
206 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
208         * Makefile.am (all-local): Rename from 'all'.
209         * Makefile.in: Regenerate.
211 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
213         PR lto/47225
214         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
215         (liblto_plugin_la_LDFLAGS): Add -module.
216         (copy_lto_plugin): Renamed to...
217         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
218         of static modules.
219         * Makefile.in: Rebuild.
221 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
223         PR lto/47225
224         * Makefile.am (Wc): New helper for encoding -Wc,.
225         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
226         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
227         * Makefile.in: Regenerated.
229 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
231         Revert:
233         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
235         PR lto/47225
236         * Makefile.am (Wl): New helper for encoding -Wl,.
237         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
238         * Makefile.in: Regenerated.
240 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
242         PR lto/47225
243         * Makefile.am (Wl): New helper for encoding -Wl,.
244         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
245         * Makefile.in: Regenerated.
247 2011-01-25  Ian Lance Taylor  <iant@google.com>
249         * lto-plugin.c (gold_version): New static variable.
250         (all_symbols_read_handler): Don't check pass_through_items if
251         using gold 1.11 or later.
252         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
254 2011-01-12  Richard Guenther  <rguenther@suse.de>
256         PR lto/47264
257         * lto-plugin.c (parse_table_entry): Use memcpy to access
258         unaligned fields.
260 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
262         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
263         * Makefile.in: Regenerate.
265 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
267         Revert last change.
269 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
271         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
272         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
273         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
274         * Makefile.in: Regenerate.
276 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
278         PR middle-end/46674
279         PR lto/43157
280         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
281         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
282         * configure: Regenerate.
283         * config.h.in: Likewise.
285 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
287         PR target/40125
288         PR lto/46695
289         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
290         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
291         override -bindir setting.
292         * aclocal.m4: Regenerate.
293         * configure: Regenerate.
294         * Makefile.in: Regenerate.
296 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
298         * config.h.in: Regenerated.
299         * configure: Regenerated.
300         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
301         * lto-plugin.c (WIFEXITED): Define default.
302         (WEXITSTATUS): Likeiwse.
304 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
306         * config.h.in: Regenerated.
307         * configure: Regenerated.
308         * Makefile.in: Regenerated.
309         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
310         * lto-plugin.c:  Include sys/wait.h conditionally.
311         * aclocal.m4: Regenerated.
313 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
315         * lto-plugin.c (add_output_files): Fix memory leak.
317 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
319         PR bootstrap/46397
320         PR bootstrap/46362
321         * configure.ac: Add AC_TYPE_INT64_T test.
322         * config.h.in: Regenerate.
323         * configure: Likewise.
324         * lto-plugin.c (debug): Use char not bool.
325         (nop): Likewise.
326         (check_1): Rename from check, and use int not bool for gate argument.
327         (check): Macro wrapper for the above to coerce gate argument into
328         boolean-valued integer in case it has pointer type.
329         (parse_table_entry): Use 0 not false.
330         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
331         into two 32-bit parts and printing as hex ints.
333 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
335         PR lto/46291
336         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
338 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
340         PR lto/46273
341         * lto-plugin.h: Delete.
342         * lto-plugin-elf.c: Likewise.
343         * lto-plugin-coff.c: Likewise.
344         * configure.ac: Don't use libelf, don't source config.gcc.
345         (LIBELFLIBS): Delete.
346         (LIBELFINC): Delete.
347         (LTO_FORMAT): Delete.
348         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
349         (config.h): Add AC_CONFIG_HEADERS directive.
350         * Makefile.am (LIBELFLIBS): Delete.
351         (LIBELFINC): Delete.
352         (LTO_FORMAT): Delete.
353         (DEFS): Import.
354         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
355         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
356         any object-format-specific source file in the link.
357         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
358         * config.h.in: Generate.
359         * configure: Regenerate.
360         * Makefile.in: Likewise.
361         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
362         (LTO_SEGMENT_NAME): New definition.
363         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
364         (LTO_SECTION_PREFIX_LEN): New definition.
365         (struct sym_aux): Struct definition moved here from lto-plugin.h.
366         (struct plugin_symtab): Likewise.
367         (struct plugin_objfile): Likewise.
368         (struct plugin_objfile): New struct def.
369         (enum symbol_style): New enum type.
370         (add_symbols): Make static.
371         (claimed_files): Likewise.
372         (num_claimed_files): Likewise.
373         (sym_style): New global.
374         (check): Make static.
375         (parse_table_entry): Likewise.  Respect sym_style when extracting
376         symbol from symtab entry.
377         (translate): Make static.
378         (resolve_conflicts): Likewise.
379         (process_symtab): New function, per-section callback version of
380         old object-format-specific handling from deleted lto-plugin-elf.c.
381         (claim_file_handler): Convert ELF-specific version from deleted
382         lto-plugin-elf.c to simple_object interface and move here.
383         (process_options): Allow new '-sym-style=' option.
384         (onload): Don't call deleted onload_format_checks hook.
386 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
388         * lto-plugin.c (dump_symtab): Correct printf argument type.
389         (finish_conflict_resolution): Initialize resolution.
391 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
393         PR bootstrap/45951
394         * configure.ac: Add AC_CANONICAL_SYSTEM.
395         * configure: Regenerated.
397 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
399         * configure.ac: Source config.gcc to determine lto_binary_reader.
400         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
401         * Makefile.am (LTO_FORMAT): Import.
402         (liblto_plugin_la_SOURCES): Add object format dependent module
403         defined by LTO_FORMAT.
404         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
405         and work around libtool warning.
406         * configure: Regenerate.
407         * Makefile.in: Likewise.
408         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
409         (struct sym_aux): Likewise.
410         (struct plugin_symtab): Likewise.
411         (struct plugin_file_info): Likewise.
412         (LTO_SECTION_PREFIX): Likewise.
413         (add_symbols):  Make non-static.
414         (claimed_files): Likewise.
415         (num_claimed_files): Likewise.
416         (check): Likewise.
417         (parse_table_entry): Likewise.
418         (translate): Likewise.
419         (resolve_conflicts): Likewise.
420         (process_symtab): Move to new lto-plugin-elf.c object format dependent
421         source file.
422         (claim_file_handler): Likewise, and make non-static.
423         (onload): Call new onload_format_checks function.
424         * lto-plugin.h: New file.
425         (LTO_SECTION_PREFIX): Move here.
426         (struct sym_aux): Likewise.
427         (struct plugin_symtab): Likewise.
428         (struct plugin_file_info): Likewise.
429         (claim_file_handler): Add new function prototype.
430         (onload_format_checks): Likewise.
431         (check): Declare extern.
432         (translate): Likewise.
433         (parse_table_entry): Likewise.
434         (resolve_conflicts): Likewise.
435         (add_symbols):  Likewise.
436         (claimed_files): Likewise.
437         (num_claimed_files): Likewise.
438         * lto-plugin-elf.c (process_symtab): Move here.
439         (claim_file_handler): Likewise, and make non-static.
440         (onload_format_checks): New function factored out from onload.
441         * lto-plugin-coff.c (claim_file_handler): New function stub.
442         (onload_format_checks): Likewise.
444 2010-08-05  Andi Kleen  <ak@linux.intel.com>
446         * lto-plugin.c: Include <hashtab.h>
447         (sym_aux): Add next_conflict field to save conflict chains.
448         (plugin_file_info): Add conflicts symtab.
449         (parse_table_entry): Initialize aux->next_conflict.
450         (process_symtab): Increment found.
451         (dump_symtab): Add.
452         (finish_conflict_resolution): Add.
453         (free_symtab): Add.
454         (write_resolution): Remove symbols loop and move into
455         dump_symtab. Call dump_symtab for main symbol and conflicts table.
456         Call free_symtab to free conflicts table.
457         (SWAP): Add.
458         (eq_sym): Add.
459         (hash_sym): Add.
460         (symbol_strength): Add.
461         (resolve_conflicts): Add.
462         (claim_file_handler): Add n variable. Check return value of
463         process_symtab. Call resolve_conflicts.
465 2010-07-27  Andi Kleen  <ak@linux.intel.com>
467         * lto-plugin.c (translate): Remove debug fprintf.
469 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
471         PR bootstrap/45042
472         * lto-plugin.c (translate): Cast to unsigned long.
474 2010-07-23   Andi Kleen  <ak@linux.intel.com>
476         PR lto/44992
477         * lto-plugin.c (sym_aux): Add.
478         (plugin_symtab): Remove slots. Add aux and id.
479         (parse_table_entry): Change to use aux instead of slots.
480         (LTO_SECTION_PREFIX): Add.
481         (translate): Improve buffer allocation. Change to append
482         symbols to existing out buffer.
483         (get_section): Remove.
484         (process_symtab): Add.
485         (free_2): Free symtab->aux.
486         (write_resolution): Handle aux instead of slots.
487         Print sub id to resolution file.
488         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
489         calls with call to process_symtab.
491 2010-07-22  Richard Guenther  <rguenther@suse.de>
493         * Makefile.am: New copy_lto_plugin rule to install the plugin
494         into ../gcc.
495         * Makefile.in: Regenerated.
497 2010-05-21  Richard Guenther  <rguenther@suse.de>
499         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
501 2010-05-07  Richard Guenther <rguenther@suse.de>
503         * lto-plugin.c (free_2): Do not free resolution_file.
504         (write_resolution): Check that we were passed a resolution file.
505         (all_symbols_read_handler): Adjust.
506         (cleanup_handler): Do not remove the resolution file.
507         (process_option): Handle -fresolution=.
509 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
511         PR other/43620
512         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
513         * Makefile.in: Regenerate.
515 2010-04-23  Richard Guenther  <rguenther@suse.de>
517         PR lto/41550
518         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
519         (translate): Likewise.
520         (all_symbols_read_handler): Likewise.
521         (claim_file_handler): Likewise.
522         (process_option): Likewise.
523         (add_output_files): Likewise.  Remove filename length limit.
525 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
527         * Makefile.in: Regenerate.
528         * aclocal.m4: Regenerate.
530 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
532         PR lto/43336
533         * lto-plugin.c (cleanup_handler): Delete temporary output files.
535 2010-01-11  Richard Guenther  <rguenther@suse.de>
537         PR lto/41569
538         * Makefile.am: Disable dependencies.
539         * Makefile.in: Regenerated.
541 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
543         PR lto/42520
544         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
545         if -v is passed.
547 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
549         PR bootstrap/42306
550         * configure: Regenerated.
551         * Makefile.in: Likewise.
553 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
555         PR bootstrap/42096
556         * lto-plugin.c (claim_file_handler): Print offsets in hex.
558 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
560         * lto-plugin.c (write_resolution): Assume resolution_file is set.
561         Print the symbol name.
562         (all_symbols_read_handler): Create a resolution file.
563         Pass it to gcc.
564         (cleanup_handler): Remove the resolution file.
565         (process_option): Drop the -resolution option.
567 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
569         * lto-plugin.c (temp_obj_dir_name): Remove.
570         (arguments_file_name): New.
571         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
572         (exec_lto_wrapper):  Create arguments file with make_temp_file.
573         (cleanup_handler): Don't remove the temporary directory. Remove the
574         arguments file.
575         (onload): Don't create the temporary directory.
577 2009-11-04  Richard Guenther  <rguenther@suse.de>
578             Rafael Avila de Espindola  <espindola@google.com>
580         * lto-plugin.c (plugin_file_info): Remove temp field.
581         (cleanup_handler): Don't delete temporary objects.
582         (claim_file_handler): Don't create temporary objects.
584 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
586         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
588 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
590         PR41871
591         * lto-plugin.c (claim_file_handler): Close files that we created.
593 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
595         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
596         LDPL_ERROR
598 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
600         PR lto/41652
601         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
602         * configure: Regenerate.
604 2009-10-26  Richard Guenther  <rguenther@suse.de>
606         * configure.ac: Use AM_MAINTAINER_MODE.
607         * acinclude.m4: Remove.
608         * configure: Re-generate.
609         * Makefile.in: Likewise.
610         * aclocal.m4: Likewise.
612 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
613     
614         PR40790
615         * configure: Regenerate.
616         * configure.ac: Add AC_TYPE_UINT64_T.
618 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
620         * lto-plugin.c (message): New variable.
621         (check): New function.
622         (parse_table_entry, translate, write_resolution,add_output_files,
623         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
624         assert.
625         (cleanup_handler): Use check instead of assert. Remove the arguments
626         file if it exists.
628 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
630         * lto-plugin.c (resolution_file): New.
631         (free_1): Update comment.
632         (free_2): Free resolution_file.
633         (write_resolution): Write resolution to specified file. Use the
634         syms array from the symbol table.
635         (all_symbols_read_handler): Delay call to free_1 past call to
636         write_resolution.
637         (process_option): Add a -resolution option.
639 2009-10-13  Richard Guenther  <rguenther@suse.de>
641         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
642         correct libiberty.
643         * Makefile.in: Regenerated.
645 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
647         * lto-plugin.c (add_input_library): New.
648         (all_symbols_read_handler): Use add_input_library for items that
649         start with -l.
650         (process_option): Fit in 80 columns.
651         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
653 2009-10-02  Diego Novillo  <dnovillo@google.com>
655         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
656         and -D_FILE_OFFSET_BITS=64.
657         * configure.ac: Add AC_SYS_LARGEFILE.
658         * configure: Regenerate.
659         * Makefile.in: Regenerate.
660         * lto-plugin.c: Fix copyright boilerplate.
662 2009-10-02  Diego Novillo  <dnovillo@google.com>
664         * Makefile.am (ACLOCAL_AMFLAGS): Define.
665         * aclocal.m4: Regenerate with aclocal-2.64
666         * acinclude.m4: Remove.
667         * Makefile.in: Regenerate with automake-1.11
668         * configure.ac (AC_PREREQ): Update to 2.64.
669         * configure: Regenerate.
671 2009-10-02  Diego Novillo  <dnovillo@google.com>
673         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
674         and -D_FILE_OFFSET_BITS=64.
675         * configure.ac: Add AC_SYS_LARGEFILE.
676         * configure: Regenerate.
677         * Makefile.in: Regenerate.
678         * lto-plugin.c: Fix copyright boilerplate.
680 2009-10-02  Diego Novillo  <dnovillo@google.com>
682         * Makefile.am (ACLOCAL_AMFLAGS): Define.
683         * aclocal.m4: Regenerate with aclocal-2.64
684         * acinclude.m4: Remove.
685         * Makefile.in: Regenerate with automake-1.11
686         * configure.ac (AC_PREREQ): Update to 2.64.
687         * configure: Regenerate.
689 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
691         * Makefile.am (liblto_plugin_la_SOURCES): Remove
692         $(top_srcdir)/../gcc/lto/common.c
693         * Makefile.in: Regenerate.
695 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
697         * lto-plugin.c (pass_through_items): New.
698         (num_pass_through_items): New.
699         (all_symbols_read_handler): Update to use the -pass-through option.
700         (process_option): Replace -libgcc with -pass-through.
701         
702 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
704         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
705         register_cleanup to be set.
707 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
709         * Makefile.am: Remove all reference to ltosymtab.
710         * Makefile.in: Regenerate.
711         * lto-symtab.c: Remove.
713 2009-05-21  Diego Novillo  <dnovillo@google.com>
715         * configure.ac: Remove call to AC_CHECK_GELF.
716         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
717         * acinclude.m4: Do not include ../config/libelf.m4
718         * Makefile.am (LIBELFLIBS): Define.
719         (LIBELFINC): Define.
720         (AM_CPPFLAGS): Add $(LIBELFINC).
721         (ltosymtab_LDADD): Add $(LIBELFLIBS).
722         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
723         * lto-plugin.c: Always include <gelf.h>
724         * lto-symtab.c: Likewise.
725         * configure: Regenerate.
726         * Makefile.in: Regenerate.
728 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
730         * lto-plugin.c (libgcc_filename): New.
731         (all_symbols_read_handler): Pass libgcc to the linker.
732         (all_symbols_read_handler): Parse -libgcc
734 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
736         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
737         * Makefile.in: Regenerate.
738         * lto-plugin.c (add_output_files): Argument is now a FILE.
739         (exec_lto_wrapper): Use writeargv and pex.
741 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
743         Revert:
744         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
745         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
748 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
750         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
752 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
754         * lto-plugin.c: Include libiberty.h.
755         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
756         snprintf.
758 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
760         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
761         file to lto-wrapper.
763 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
765         * lto-plugin.c (plugin_file_info): Remove fd and elf.
766         (parse_table_entry): strdup entry->name and entry->comdat_key.
767         (free_1): Free name and comdat_key. Don't close the file. Don't call
768         elf_end.
769         (claim_file_handler): Always call elf_end.
771 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
773         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
774         -D_FILE_OFFSET_BITS=64
775         * Makefile.in: Regenerate
777 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
779         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
780         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
781         * Makefile.in: Regenerate.
782         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
783         * configure: Regenerate.
784         * configure.ac: Add AC_SUBST(target_noncanonical).
786 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
788         * lto-plugin.c: Include stdbool.h.
789         (debug, nop): Declare as bool.
791 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
793         * lto-plugin.c (nop): New.
794         (use_original_files): New.
795         (all_symbols_read_handler): Call use_original_files if nop is true.
796         (process_option): Parse the -nop option.
798 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
800         * lto-plugin.c (debug): New.
801         (exec_lto_wrapper): Print argv if debug is true.
802         (process_option): Process the -debug command line option.
804 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
806         * lto-plugin.c (process_option): The argument is now a single option,
807         not a space separated list.
809 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
811         * lto-plugin.c: Include sys/types.h and sys/wait.h
812         (output_files, num_output_files, lto_wrapper_argv,
813         lto_wrapper_num_args): New.
814         (free_2): Free output_files.
815         (write_resolution): Disable.
816         (add_output_files): New.
817         (exec_lto_wrapper): New.
818         (all_symbols_read_handler): Run lto-wrapper.
819         (claim_file_handler): Free lto_file.name and call elf_end.
820         (process_option): New.
822 2008-11-26  Rafael Espindola  <espindola@google.com>
824         * lto-plugin.c (add_input_file): New.
825         (get_section): Return NULL if get_section fails.
826         (write_resolution): New.
827         (all_symbols_read_handler): Call add_input_file.
828         (claim_file_handler): Unlink the correct file.
829         (onload): Record add_input_file.
831 2008-09-23 Rafael Espindola  <espindola@google.com>
833         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
834         Update the location of common.c.
835         * Makefile.in: Regenerate.
836         * common.c: Moved to gcc/lto.
837         * common.h: Moved to gcc/lto.
838         * lto-plugin.c: Update the location of common.h.
839         * lto-symtab.c: Update the location of common.h.
841 2008-09-23 Rafael Espindola  <espindola@google.com>
843         * common.c: Include common.h.
844         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
845         sizes.
846         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
847         explicit sizes.
849 2008-09-23 Rafael Espindola  <espindola@google.com>
851         * lto-plugin.c (plugin_file_info): Add temp.
852         (cleanup_handler): Only delete temporary files.
853         (claim_file_handler): Initialize lto_file.temp.
855 2008-09-23  Rafael Espindola  <espindola@google.com>
857         * plugin-api.h: Moved to include.
859 2008-09-23 Rafael Espindola  <espindola@google.com>
861         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
862         format.
864 2008-09-22 Rafael Espindola  <espindola@google.com>
866         * plugin-api.h: Copy from binutils' cvs.
868 2008-09-22 Rafael Espindola  <espindola@google.com>
870         * lto-symtab.c (get_symbols, add_symbols): Update signature.
871         * plugin-api.h: Copy from binutils' cvs.
873 2008-09-22 Rafael Espindola  <espindola@google.com>
875         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
876         Make extern
878 2008-09-10 Rafael Espindola  <espindola@google.com>
880         * lto-plugin.c (onload): add missing break statements and asserts.
881         * lto-symtab.c (claim_file_handler): Make it static.
882         (all_symbols_read_handler): Make it static.
883         (all_file_handles): Make it static.
884         (num_file_handles): Make it static.
885         (register_claim_file): Make it static.
886         (register_object): Indent properly.
888 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
890         * Makefile.am (ltosymtab_LDADD): Add -lelf.
891         * Makefiel.in: Regenerate.
892         * lto-plugin.c: Include ar.h.
893         (claim_file_handler): Handle file->offset != 0.
894         * lto-symtab.c: Include gelf.h.
895         (all_file_handles): Change type.
896         (register_object): New.
897         (register_file): Add support for archives.
898         (resolve): Update to new type of all_file_handles.
899         (print): Update to new type of all_file_handles.
900         (free_all): Update to new type of all_file_handles.
901         (main): Update to new type of all_file_handles.
903 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
905         * lto-plugin.c (get_string_table): Remove.
906         (get_section): Use elf_strptr instead of get_string_table.
908 2008-09-08  Doug Kwan  <dougkwan@google.com>
910         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
911         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
913 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
915         * Makefile.am (ltosymtab_SOURCES): add common.c.
916         (ltosymtab_CFLAGS): New.
917         (liblto_plugin_la_SOURCES): Add common.c.
918         * Makefile.in: Regenerate.
919         * common.c: New.
920         * common.h: New.
921         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
922         (plugin_symtab): New.
923         (plugin_file_info): New.
924         (register_all_symbols_read): New.
925         (get_symbols): New.
926         (claimed_files): New.
927         (num_claimed_files): New.
928         (translate): Don't drop the slot number.
929         (free_1): New.
930         (free_2): New.
931         (all_symbols_read_handler): New.
932         (claim_file_handler): Record every claimed file.
933         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
934         LDPT_GET_SYMBOLS.
935         * lto-symtab.c: Include stdlib.h, string.h and common.h.
936         (current_file_handle): Remove.
937         (ld_plugin_all_symbols_read_handler): New.
938         (plugin_handle): New.
939         (file_handle): New.
940         (all_file_handles): New.
941         (num_file_handles): New.
942         (get_symbols): New.
943         (register_all_symbols_read): New.
944         (add_symbols): Don't print the symbols, just record them.
945         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
946         LDPT_GET_SYMBOLS.
947         (load_plugin): Use plugin_handle.
948         (register_file): Add the file handle to all_file_handles.
949         (resolve): New.
950         (print): New.
951         (unload_plugin): New.
952         (free_all): New.
953         (main): Call all_symbols_read_handler and free resources.
955 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
957         * Makefile.am (AM_CFLAGS): New.
958         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
959         (lib_LTLIBRARIES): New.
960         (liblto_plugin_la_SOURCES): New.
961         (liblto_plugin_la_LIBADD): New.
962         * Makefile.in: Regenerate.
963         * acinclude.m4: Don't include ../config/acx.m4 and
964         ../config/no-executables.m4.
965         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
966         ../libtool.m4.
967         * aclocal.m4: Regenerate.
968         * configure: Regenerate.
969         * configure.ac: Use AM_PROG_LIBTOOL.
970         * lto-plugin.c: New.
971         * lto-symtab.c: Rewrite to use the plugin.
972         * plugin-api.h: New.
974 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
976         * configure: Regenerate.
977         * configure.ac: Use AC_CHECK_GELF.
978         * lto-symtab.c: Include gelf.h.
979         (get_string_table): Use size independent API.
980         (printTable): Use lld to print 64 bit integers.
982 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
984         * lto-symtab.c (parse_table_entry): Assert entry->kind and
985         entry->visibility are valid.
987 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
988         * lto-symtab.c (table_entry): Add comdat.
989         (parse_table_entry): Read comdat.
991 2008-08-21  Rafael Espindola  <espindola@google.com>
993         * Makefile.am: New.
994         * Makefile.in: New.
995         * acinclude.m4: New.
996         * aclocal.m4: New.
997         * configure: New.
998         * configure.ac: New.
999         * lto-symtab.c: New.