1 2016-01-15 Martin Liska <mliska@suse.cz>
3 * lto-plugin.c (all_symbols_read_handler): Assign default
4 value to a string variable.
6 2015-11-25 Jan Hubicka <jh@suse.cz>
9 * lto-plugin.c (linker_output, linker_output_set): New statics.
10 (all_symbols_read_handler): Add -flinker-output option.
11 (onload): Record linker_output info.
13 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
15 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
16 * configure: Regenerate.
19 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
21 * Makefile.am: Drop 'by automake version' from top-level comment.
22 * Makefile.in: Regenerated with automake-1.11.6.
23 * aclocal.m4: Likewise.
24 * configure: Likewise.
26 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
28 * lto-plugin.c (release_input_file): Removed.
29 (claim_file_handler): Don't call release_input_file.
30 (onload): Don't set release_input_file.
32 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
34 * lto-plugin.c (claim_file_handler): Pass handle to
37 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
39 * lto-plugin.c (claim_file_handler): Call release_input_file only
42 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
44 * lto-plugin.c (claim_file_handler): Call release_input_file only
47 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
50 * lto-plugin.c (release_input_file): New.
51 (claim_file_handler): Call release_input_file.
52 (onload): Set release_input_file.
54 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
56 * lto-plugin.c (offload_files, num_offload_files): New static variables.
57 (free_1): Use arguments instead of global variables.
58 (free_2): Free offload_files.
59 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
61 (claim_file_handler): Do not add file to claimed_files if it contains
62 offload sections without LTO sections. Add it to offload_files instead.
64 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
67 * configure: Regenerated.
69 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
70 Bernd Schmidt <bernds@codesourcery.com>
71 Andrey Turetskiy <andrey.turetskiy@intel.com>
72 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
74 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
75 (struct plugin_objfile): Add new field "offload".
76 (process_offload_section): New static function.
77 (claim_file_handler): Claim file if it contains offload sections.
79 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
80 Thomas Schwinge <thomas@codesourcery.com>
81 Ilya Verbin <ilya.verbin@intel.com>
82 Andrey Turetskiy <andrey.turetskiy@intel.com>
84 * Makefile.am (libexecsubdir): Tweak for the possibility of being
85 configured for offload compiler.
86 (accel_dir_suffix, real_target_noncanonical): New variables substituted
88 * Makefile.in: Regenerate.
89 * configure: Regenerate.
90 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
93 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
96 * configure: Regenerate.
98 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
101 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
102 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
104 * Makefile.in: Regenerated.
105 * configure: Likewise.
107 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
109 * configure.ac (--with-libiberty): New configure option.
110 * configure: Regenerate.
111 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
113 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
114 (liblto_plugin_la_DEPENDENCIES): Use them.
115 * Makefile.in: Regenerate.
117 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
120 * configure.ac: Check for -static-libgcc.
121 * configure: Regenerate.
123 2014-04-17 Jakub Jelinek <jakub@redhat.com>
126 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
127 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
128 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
129 over ../libiberty/pic/libiberty.a if the former exists.
130 * Makefile.in: Regenerated.
133 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
134 * Makefile.in: Regenerated.
136 2014-04-02 Richard Biener <rguenther@suse.de>
138 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
139 is set in COLLECT_GCC_OPTIONS.
141 2014-03-28 Richard Biener <rguenther@suse.de>
143 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
145 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
147 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
149 * configure: Regenerate.
150 * Makefile.am (AM_LDFLAGS): New variable.
151 (liblto_plugin_la_LDFLAGS): Add it.
152 * Makefile.in: Regenerate.
154 2013-09-20 Alan Modra <amodra@gmail.com>
156 * configure: Regenerate.
158 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
160 * configure: Regenerated.
162 2012-05-29 Joseph Myers <joseph@codesourcery.com>
164 * lto-plugin.c: Fix typo.
166 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
168 * configure: Regenerated.
170 2012-02-22 Kai Tietz <ktietz@redhat.com>
173 * lto-plugin.c (PRI_LL): New macro.
174 (dump_symtab): Use PRI_LL instead of ll in print.
175 (process_symtab): Use PRI_LL instead of ll in scan.
177 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
179 * configure: Regenerate.
181 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
183 * configure: Regenerate.
185 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
187 * configure: Regenerate.
189 2011-10-02 Jan Hubicka <jh@suse.cz>
192 * lto-plugin.c (get_symbols_v2): New variable.
193 (write_resolution): Use V2 API when available.
194 (onload): Handle LDPT_GET_SYMBOLS_V2.
196 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
197 Andi Kleen <ak@linux.intel.com>
200 * lto-plugin.c (sym_aux): Change id to unsigned long long.
201 (plugin_symtab): Likewise.
202 (dump_symtab): Likewise.
203 (resolve_conflicts): Likewise.
204 (process_symtab): Likewise.
206 2011-08-10 Richard Guenther <rguenther@suse.de>
210 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
211 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
212 * configure: Regenerate.
213 * Makefile.in: Likewise.
214 * aclocal.m4: Likewise.
216 2011-04-20 Jim Meyering <meyering@redhat.com>
218 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
220 2011-04-05 Richard Guenther <rguenther@suse.de>
223 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
225 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
227 * Makefile.in: Regenerate.
228 * aclocal.m4: Regenerate.
229 * configure: Regenerate.
231 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
233 * Makefile.am (all-local): Rename from 'all'.
234 * Makefile.in: Regenerate.
236 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
239 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
240 (liblto_plugin_la_LDFLAGS): Add -module.
241 (copy_lto_plugin): Renamed to...
242 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
244 * Makefile.in: Rebuild.
246 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
249 * Makefile.am (Wc): New helper for encoding -Wc,.
250 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
251 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
252 * Makefile.in: Regenerated.
254 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
258 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
261 * Makefile.am (Wl): New helper for encoding -Wl,.
262 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
263 * Makefile.in: Regenerated.
265 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
268 * Makefile.am (Wl): New helper for encoding -Wl,.
269 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
270 * Makefile.in: Regenerated.
272 2011-01-25 Ian Lance Taylor <iant@google.com>
274 * lto-plugin.c (gold_version): New static variable.
275 (all_symbols_read_handler): Don't check pass_through_items if
276 using gold 1.11 or later.
277 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
279 2011-01-12 Richard Guenther <rguenther@suse.de>
282 * lto-plugin.c (parse_table_entry): Use memcpy to access
285 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
287 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
288 * Makefile.in: Regenerate.
290 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
297 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
298 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
299 * Makefile.in: Regenerate.
301 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
305 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
306 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
307 * configure: Regenerate.
308 * config.h.in: Likewise.
310 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
314 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
315 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
316 override -bindir setting.
317 * aclocal.m4: Regenerate.
318 * configure: Regenerate.
319 * Makefile.in: Regenerate.
321 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
323 * config.h.in: Regenerated.
324 * configure: Regenerated.
325 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
326 * lto-plugin.c (WIFEXITED): Define default.
327 (WEXITSTATUS): Likeiwse.
329 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
331 * config.h.in: Regenerated.
332 * configure: Regenerated.
333 * Makefile.in: Regenerated.
334 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
335 * lto-plugin.c: Include sys/wait.h conditionally.
336 * aclocal.m4: Regenerated.
338 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
340 * lto-plugin.c (add_output_files): Fix memory leak.
342 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
346 * configure.ac: Add AC_TYPE_INT64_T test.
347 * config.h.in: Regenerate.
348 * configure: Likewise.
349 * lto-plugin.c (debug): Use char not bool.
351 (check_1): Rename from check, and use int not bool for gate argument.
352 (check): Macro wrapper for the above to coerce gate argument into
353 boolean-valued integer in case it has pointer type.
354 (parse_table_entry): Use 0 not false.
355 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
356 into two 32-bit parts and printing as hex ints.
358 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
361 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
363 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
366 * lto-plugin.h: Delete.
367 * lto-plugin-elf.c: Likewise.
368 * lto-plugin-coff.c: Likewise.
369 * configure.ac: Don't use libelf, don't source config.gcc.
370 (LIBELFLIBS): Delete.
372 (LTO_FORMAT): Delete.
373 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
374 (config.h): Add AC_CONFIG_HEADERS directive.
375 * Makefile.am (LIBELFLIBS): Delete.
377 (LTO_FORMAT): Delete.
379 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
380 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
381 any object-format-specific source file in the link.
382 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
383 * config.h.in: Generate.
384 * configure: Regenerate.
385 * Makefile.in: Likewise.
386 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
387 (LTO_SEGMENT_NAME): New definition.
388 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
389 (LTO_SECTION_PREFIX_LEN): New definition.
390 (struct sym_aux): Struct definition moved here from lto-plugin.h.
391 (struct plugin_symtab): Likewise.
392 (struct plugin_objfile): Likewise.
393 (struct plugin_objfile): New struct def.
394 (enum symbol_style): New enum type.
395 (add_symbols): Make static.
396 (claimed_files): Likewise.
397 (num_claimed_files): Likewise.
398 (sym_style): New global.
399 (check): Make static.
400 (parse_table_entry): Likewise. Respect sym_style when extracting
401 symbol from symtab entry.
402 (translate): Make static.
403 (resolve_conflicts): Likewise.
404 (process_symtab): New function, per-section callback version of
405 old object-format-specific handling from deleted lto-plugin-elf.c.
406 (claim_file_handler): Convert ELF-specific version from deleted
407 lto-plugin-elf.c to simple_object interface and move here.
408 (process_options): Allow new '-sym-style=' option.
409 (onload): Don't call deleted onload_format_checks hook.
411 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
413 * lto-plugin.c (dump_symtab): Correct printf argument type.
414 (finish_conflict_resolution): Initialize resolution.
416 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
419 * configure.ac: Add AC_CANONICAL_SYSTEM.
420 * configure: Regenerated.
422 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
424 * configure.ac: Source config.gcc to determine lto_binary_reader.
425 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
426 * Makefile.am (LTO_FORMAT): Import.
427 (liblto_plugin_la_SOURCES): Add object format dependent module
428 defined by LTO_FORMAT.
429 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
430 and work around libtool warning.
431 * configure: Regenerate.
432 * Makefile.in: Likewise.
433 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
434 (struct sym_aux): Likewise.
435 (struct plugin_symtab): Likewise.
436 (struct plugin_file_info): Likewise.
437 (LTO_SECTION_PREFIX): Likewise.
438 (add_symbols): Make non-static.
439 (claimed_files): Likewise.
440 (num_claimed_files): Likewise.
442 (parse_table_entry): Likewise.
443 (translate): Likewise.
444 (resolve_conflicts): Likewise.
445 (process_symtab): Move to new lto-plugin-elf.c object format dependent
447 (claim_file_handler): Likewise, and make non-static.
448 (onload): Call new onload_format_checks function.
449 * lto-plugin.h: New file.
450 (LTO_SECTION_PREFIX): Move here.
451 (struct sym_aux): Likewise.
452 (struct plugin_symtab): Likewise.
453 (struct plugin_file_info): Likewise.
454 (claim_file_handler): Add new function prototype.
455 (onload_format_checks): Likewise.
456 (check): Declare extern.
457 (translate): Likewise.
458 (parse_table_entry): Likewise.
459 (resolve_conflicts): Likewise.
460 (add_symbols): Likewise.
461 (claimed_files): Likewise.
462 (num_claimed_files): Likewise.
463 * lto-plugin-elf.c (process_symtab): Move here.
464 (claim_file_handler): Likewise, and make non-static.
465 (onload_format_checks): New function factored out from onload.
466 * lto-plugin-coff.c (claim_file_handler): New function stub.
467 (onload_format_checks): Likewise.
469 2010-08-05 Andi Kleen <ak@linux.intel.com>
471 * lto-plugin.c: Include <hashtab.h>
472 (sym_aux): Add next_conflict field to save conflict chains.
473 (plugin_file_info): Add conflicts symtab.
474 (parse_table_entry): Initialize aux->next_conflict.
475 (process_symtab): Increment found.
477 (finish_conflict_resolution): Add.
479 (write_resolution): Remove symbols loop and move into
480 dump_symtab. Call dump_symtab for main symbol and conflicts table.
481 Call free_symtab to free conflicts table.
485 (symbol_strength): Add.
486 (resolve_conflicts): Add.
487 (claim_file_handler): Add n variable. Check return value of
488 process_symtab. Call resolve_conflicts.
490 2010-07-27 Andi Kleen <ak@linux.intel.com>
492 * lto-plugin.c (translate): Remove debug fprintf.
494 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
497 * lto-plugin.c (translate): Cast to unsigned long.
499 2010-07-23 Andi Kleen <ak@linux.intel.com>
502 * lto-plugin.c (sym_aux): Add.
503 (plugin_symtab): Remove slots. Add aux and id.
504 (parse_table_entry): Change to use aux instead of slots.
505 (LTO_SECTION_PREFIX): Add.
506 (translate): Improve buffer allocation. Change to append
507 symbols to existing out buffer.
508 (get_section): Remove.
509 (process_symtab): Add.
510 (free_2): Free symtab->aux.
511 (write_resolution): Handle aux instead of slots.
512 Print sub id to resolution file.
513 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
514 calls with call to process_symtab.
516 2010-07-22 Richard Guenther <rguenther@suse.de>
518 * Makefile.am: New copy_lto_plugin rule to install the plugin
520 * Makefile.in: Regenerated.
522 2010-05-21 Richard Guenther <rguenther@suse.de>
524 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
526 2010-05-07 Richard Guenther <rguenther@suse.de>
528 * lto-plugin.c (free_2): Do not free resolution_file.
529 (write_resolution): Check that we were passed a resolution file.
530 (all_symbols_read_handler): Adjust.
531 (cleanup_handler): Do not remove the resolution file.
532 (process_option): Handle -fresolution=.
534 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
537 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
538 * Makefile.in: Regenerate.
540 2010-04-23 Richard Guenther <rguenther@suse.de>
543 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
544 (translate): Likewise.
545 (all_symbols_read_handler): Likewise.
546 (claim_file_handler): Likewise.
547 (process_option): Likewise.
548 (add_output_files): Likewise. Remove filename length limit.
550 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
552 * Makefile.in: Regenerate.
553 * aclocal.m4: Regenerate.
555 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
558 * lto-plugin.c (cleanup_handler): Delete temporary output files.
560 2010-01-11 Richard Guenther <rguenther@suse.de>
563 * Makefile.am: Disable dependencies.
564 * Makefile.in: Regenerated.
566 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
569 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
572 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
575 * configure: Regenerated.
576 * Makefile.in: Likewise.
578 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
581 * lto-plugin.c (claim_file_handler): Print offsets in hex.
583 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
585 * lto-plugin.c (write_resolution): Assume resolution_file is set.
586 Print the symbol name.
587 (all_symbols_read_handler): Create a resolution file.
589 (cleanup_handler): Remove the resolution file.
590 (process_option): Drop the -resolution option.
592 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
594 * lto-plugin.c (temp_obj_dir_name): Remove.
595 (arguments_file_name): New.
596 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
597 (exec_lto_wrapper): Create arguments file with make_temp_file.
598 (cleanup_handler): Don't remove the temporary directory. Remove the
600 (onload): Don't create the temporary directory.
602 2009-11-04 Richard Guenther <rguenther@suse.de>
603 Rafael Avila de Espindola <espindola@google.com>
605 * lto-plugin.c (plugin_file_info): Remove temp field.
606 (cleanup_handler): Don't delete temporary objects.
607 (claim_file_handler): Don't create temporary objects.
609 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
611 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
613 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
616 * lto-plugin.c (claim_file_handler): Close files that we created.
618 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
620 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
623 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
626 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
627 * configure: Regenerate.
629 2009-10-26 Richard Guenther <rguenther@suse.de>
631 * configure.ac: Use AM_MAINTAINER_MODE.
632 * acinclude.m4: Remove.
633 * configure: Re-generate.
634 * Makefile.in: Likewise.
635 * aclocal.m4: Likewise.
637 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
640 * configure: Regenerate.
641 * configure.ac: Add AC_TYPE_UINT64_T.
643 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
645 * lto-plugin.c (message): New variable.
646 (check): New function.
647 (parse_table_entry, translate, write_resolution,add_output_files,
648 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
650 (cleanup_handler): Use check instead of assert. Remove the arguments
653 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
655 * lto-plugin.c (resolution_file): New.
656 (free_1): Update comment.
657 (free_2): Free resolution_file.
658 (write_resolution): Write resolution to specified file. Use the
659 syms array from the symbol table.
660 (all_symbols_read_handler): Delay call to free_1 past call to
662 (process_option): Add a -resolution option.
664 2009-10-13 Richard Guenther <rguenther@suse.de>
666 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
668 * Makefile.in: Regenerated.
670 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
672 * lto-plugin.c (add_input_library): New.
673 (all_symbols_read_handler): Use add_input_library for items that
675 (process_option): Fit in 80 columns.
676 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
678 2009-10-02 Diego Novillo <dnovillo@google.com>
680 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
681 and -D_FILE_OFFSET_BITS=64.
682 * configure.ac: Add AC_SYS_LARGEFILE.
683 * configure: Regenerate.
684 * Makefile.in: Regenerate.
685 * lto-plugin.c: Fix copyright boilerplate.
687 2009-10-02 Diego Novillo <dnovillo@google.com>
689 * Makefile.am (ACLOCAL_AMFLAGS): Define.
690 * aclocal.m4: Regenerate with aclocal-2.64
691 * acinclude.m4: Remove.
692 * Makefile.in: Regenerate with automake-1.11
693 * configure.ac (AC_PREREQ): Update to 2.64.
694 * configure: Regenerate.
696 2009-10-02 Diego Novillo <dnovillo@google.com>
698 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
699 and -D_FILE_OFFSET_BITS=64.
700 * configure.ac: Add AC_SYS_LARGEFILE.
701 * configure: Regenerate.
702 * Makefile.in: Regenerate.
703 * lto-plugin.c: Fix copyright boilerplate.
705 2009-10-02 Diego Novillo <dnovillo@google.com>
707 * Makefile.am (ACLOCAL_AMFLAGS): Define.
708 * aclocal.m4: Regenerate with aclocal-2.64
709 * acinclude.m4: Remove.
710 * Makefile.in: Regenerate with automake-1.11
711 * configure.ac (AC_PREREQ): Update to 2.64.
712 * configure: Regenerate.
714 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
716 * Makefile.am (liblto_plugin_la_SOURCES): Remove
717 $(top_srcdir)/../gcc/lto/common.c
718 * Makefile.in: Regenerate.
720 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
722 * lto-plugin.c (pass_through_items): New.
723 (num_pass_through_items): New.
724 (all_symbols_read_handler): Update to use the -pass-through option.
725 (process_option): Replace -libgcc with -pass-through.
727 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
729 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
730 register_cleanup to be set.
732 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
734 * Makefile.am: Remove all reference to ltosymtab.
735 * Makefile.in: Regenerate.
736 * lto-symtab.c: Remove.
738 2009-05-21 Diego Novillo <dnovillo@google.com>
740 * configure.ac: Remove call to AC_CHECK_GELF.
741 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
742 * acinclude.m4: Do not include ../config/libelf.m4
743 * Makefile.am (LIBELFLIBS): Define.
745 (AM_CPPFLAGS): Add $(LIBELFINC).
746 (ltosymtab_LDADD): Add $(LIBELFLIBS).
747 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
748 * lto-plugin.c: Always include <gelf.h>
749 * lto-symtab.c: Likewise.
750 * configure: Regenerate.
751 * Makefile.in: Regenerate.
753 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
755 * lto-plugin.c (libgcc_filename): New.
756 (all_symbols_read_handler): Pass libgcc to the linker.
757 (all_symbols_read_handler): Parse -libgcc
759 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
761 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
762 * Makefile.in: Regenerate.
763 * lto-plugin.c (add_output_files): Argument is now a FILE.
764 (exec_lto_wrapper): Use writeargv and pex.
766 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
769 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
770 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
773 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
775 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
777 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
779 * lto-plugin.c: Include libiberty.h.
780 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
783 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
785 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
788 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
790 * lto-plugin.c (plugin_file_info): Remove fd and elf.
791 (parse_table_entry): strdup entry->name and entry->comdat_key.
792 (free_1): Free name and comdat_key. Don't close the file. Don't call
794 (claim_file_handler): Always call elf_end.
796 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
798 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
799 -D_FILE_OFFSET_BITS=64
800 * Makefile.in: Regenerate
802 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
804 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
805 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
806 * Makefile.in: Regenerate.
807 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
808 * configure: Regenerate.
809 * configure.ac: Add AC_SUBST(target_noncanonical).
811 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
813 * lto-plugin.c: Include stdbool.h.
814 (debug, nop): Declare as bool.
816 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
818 * lto-plugin.c (nop): New.
819 (use_original_files): New.
820 (all_symbols_read_handler): Call use_original_files if nop is true.
821 (process_option): Parse the -nop option.
823 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
825 * lto-plugin.c (debug): New.
826 (exec_lto_wrapper): Print argv if debug is true.
827 (process_option): Process the -debug command line option.
829 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
831 * lto-plugin.c (process_option): The argument is now a single option,
832 not a space separated list.
834 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
836 * lto-plugin.c: Include sys/types.h and sys/wait.h
837 (output_files, num_output_files, lto_wrapper_argv,
838 lto_wrapper_num_args): New.
839 (free_2): Free output_files.
840 (write_resolution): Disable.
841 (add_output_files): New.
842 (exec_lto_wrapper): New.
843 (all_symbols_read_handler): Run lto-wrapper.
844 (claim_file_handler): Free lto_file.name and call elf_end.
845 (process_option): New.
847 2008-11-26 Rafael Espindola <espindola@google.com>
849 * lto-plugin.c (add_input_file): New.
850 (get_section): Return NULL if get_section fails.
851 (write_resolution): New.
852 (all_symbols_read_handler): Call add_input_file.
853 (claim_file_handler): Unlink the correct file.
854 (onload): Record add_input_file.
856 2008-09-23 Rafael Espindola <espindola@google.com>
858 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
859 Update the location of common.c.
860 * Makefile.in: Regenerate.
861 * common.c: Moved to gcc/lto.
862 * common.h: Moved to gcc/lto.
863 * lto-plugin.c: Update the location of common.h.
864 * lto-symtab.c: Update the location of common.h.
866 2008-09-23 Rafael Espindola <espindola@google.com>
868 * common.c: Include common.h.
869 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
871 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
874 2008-09-23 Rafael Espindola <espindola@google.com>
876 * lto-plugin.c (plugin_file_info): Add temp.
877 (cleanup_handler): Only delete temporary files.
878 (claim_file_handler): Initialize lto_file.temp.
880 2008-09-23 Rafael Espindola <espindola@google.com>
882 * plugin-api.h: Moved to include.
884 2008-09-23 Rafael Espindola <espindola@google.com>
886 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
889 2008-09-22 Rafael Espindola <espindola@google.com>
891 * plugin-api.h: Copy from binutils' cvs.
893 2008-09-22 Rafael Espindola <espindola@google.com>
895 * lto-symtab.c (get_symbols, add_symbols): Update signature.
896 * plugin-api.h: Copy from binutils' cvs.
898 2008-09-22 Rafael Espindola <espindola@google.com>
900 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
903 2008-09-10 Rafael Espindola <espindola@google.com>
905 * lto-plugin.c (onload): add missing break statements and asserts.
906 * lto-symtab.c (claim_file_handler): Make it static.
907 (all_symbols_read_handler): Make it static.
908 (all_file_handles): Make it static.
909 (num_file_handles): Make it static.
910 (register_claim_file): Make it static.
911 (register_object): Indent properly.
913 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
915 * Makefile.am (ltosymtab_LDADD): Add -lelf.
916 * Makefiel.in: Regenerate.
917 * lto-plugin.c: Include ar.h.
918 (claim_file_handler): Handle file->offset != 0.
919 * lto-symtab.c: Include gelf.h.
920 (all_file_handles): Change type.
921 (register_object): New.
922 (register_file): Add support for archives.
923 (resolve): Update to new type of all_file_handles.
924 (print): Update to new type of all_file_handles.
925 (free_all): Update to new type of all_file_handles.
926 (main): Update to new type of all_file_handles.
928 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
930 * lto-plugin.c (get_string_table): Remove.
931 (get_section): Use elf_strptr instead of get_string_table.
933 2008-09-08 Doug Kwan <dougkwan@google.com>
935 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
936 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
938 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
940 * Makefile.am (ltosymtab_SOURCES): add common.c.
941 (ltosymtab_CFLAGS): New.
942 (liblto_plugin_la_SOURCES): Add common.c.
943 * Makefile.in: Regenerate.
946 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
947 (plugin_symtab): New.
948 (plugin_file_info): New.
949 (register_all_symbols_read): New.
951 (claimed_files): New.
952 (num_claimed_files): New.
953 (translate): Don't drop the slot number.
956 (all_symbols_read_handler): New.
957 (claim_file_handler): Record every claimed file.
958 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
960 * lto-symtab.c: Include stdlib.h, string.h and common.h.
961 (current_file_handle): Remove.
962 (ld_plugin_all_symbols_read_handler): New.
963 (plugin_handle): New.
965 (all_file_handles): New.
966 (num_file_handles): New.
968 (register_all_symbols_read): New.
969 (add_symbols): Don't print the symbols, just record them.
970 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
972 (load_plugin): Use plugin_handle.
973 (register_file): Add the file handle to all_file_handles.
976 (unload_plugin): New.
978 (main): Call all_symbols_read_handler and free resources.
980 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
982 * Makefile.am (AM_CFLAGS): New.
983 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
984 (lib_LTLIBRARIES): New.
985 (liblto_plugin_la_SOURCES): New.
986 (liblto_plugin_la_LIBADD): New.
987 * Makefile.in: Regenerate.
988 * acinclude.m4: Don't include ../config/acx.m4 and
989 ../config/no-executables.m4.
990 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
992 * aclocal.m4: Regenerate.
993 * configure: Regenerate.
994 * configure.ac: Use AM_PROG_LIBTOOL.
996 * lto-symtab.c: Rewrite to use the plugin.
999 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1001 * configure: Regenerate.
1002 * configure.ac: Use AC_CHECK_GELF.
1003 * lto-symtab.c: Include gelf.h.
1004 (get_string_table): Use size independent API.
1005 (printTable): Use lld to print 64 bit integers.
1007 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1009 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1010 entry->visibility are valid.
1012 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1013 * lto-symtab.c (table_entry): Add comdat.
1014 (parse_table_entry): Read comdat.
1016 2008-08-21 Rafael Espindola <espindola@google.com>
1020 * acinclude.m4: New.
1023 * configure.ac: New.
1024 * lto-symtab.c: New.