1 2016-11-15 Matthias Klose <doko@ubuntu.com>
3 * configure: Regenerate.
5 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8 * lto-plugin.c (struct plugin_offload_file): New.
9 (offload_files): Change type.
10 (offload_files_last, offload_files_last_obj): New.
11 (offload_files_last_lto): New.
12 (free_2): Adjust accordingly.
13 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
14 Don't call free_1 for offload_files. Write names of object files with
15 offloading to the temporary file. Add new option to lto_arg_ptr.
16 (claim_file_handler): Don't claim file if it contains offload sections
17 without LTO sections. If it contains offload sections, add to the list.
19 2016-01-15 Martin Liska <mliska@suse.cz>
21 * lto-plugin.c (all_symbols_read_handler): Assign default
22 value to a string variable.
24 2015-11-25 Jan Hubicka <jh@suse.cz>
27 * lto-plugin.c (linker_output, linker_output_set): New statics.
28 (all_symbols_read_handler): Add -flinker-output option.
29 (onload): Record linker_output info.
31 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
33 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
34 * configure: Regenerate.
37 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39 * Makefile.am: Drop 'by automake version' from top-level comment.
40 * Makefile.in: Regenerated with automake-1.11.6.
41 * aclocal.m4: Likewise.
42 * configure: Likewise.
44 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
46 * lto-plugin.c (release_input_file): Removed.
47 (claim_file_handler): Don't call release_input_file.
48 (onload): Don't set release_input_file.
50 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
52 * lto-plugin.c (claim_file_handler): Pass handle to
55 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
57 * lto-plugin.c (claim_file_handler): Call release_input_file only
60 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
62 * lto-plugin.c (claim_file_handler): Call release_input_file only
65 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
68 * lto-plugin.c (release_input_file): New.
69 (claim_file_handler): Call release_input_file.
70 (onload): Set release_input_file.
72 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
74 * lto-plugin.c (offload_files, num_offload_files): New static variables.
75 (free_1): Use arguments instead of global variables.
76 (free_2): Free offload_files.
77 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
79 (claim_file_handler): Do not add file to claimed_files if it contains
80 offload sections without LTO sections. Add it to offload_files instead.
82 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
85 * configure: Regenerated.
87 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
88 Bernd Schmidt <bernds@codesourcery.com>
89 Andrey Turetskiy <andrey.turetskiy@intel.com>
90 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
92 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
93 (struct plugin_objfile): Add new field "offload".
94 (process_offload_section): New static function.
95 (claim_file_handler): Claim file if it contains offload sections.
97 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
98 Thomas Schwinge <thomas@codesourcery.com>
99 Ilya Verbin <ilya.verbin@intel.com>
100 Andrey Turetskiy <andrey.turetskiy@intel.com>
102 * Makefile.am (libexecsubdir): Tweak for the possibility of being
103 configured for offload compiler.
104 (accel_dir_suffix, real_target_noncanonical): New variables substituted
106 * Makefile.in: Regenerate.
107 * configure: Regenerate.
108 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
111 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
114 * configure: Regenerate.
116 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
119 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
120 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
122 * Makefile.in: Regenerated.
123 * configure: Likewise.
125 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
127 * configure.ac (--with-libiberty): New configure option.
128 * configure: Regenerate.
129 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
131 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
132 (liblto_plugin_la_DEPENDENCIES): Use them.
133 * Makefile.in: Regenerate.
135 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
138 * configure.ac: Check for -static-libgcc.
139 * configure: Regenerate.
141 2014-04-17 Jakub Jelinek <jakub@redhat.com>
144 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
145 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
146 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
147 over ../libiberty/pic/libiberty.a if the former exists.
148 * Makefile.in: Regenerated.
151 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
152 * Makefile.in: Regenerated.
154 2014-04-02 Richard Biener <rguenther@suse.de>
156 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
157 is set in COLLECT_GCC_OPTIONS.
159 2014-03-28 Richard Biener <rguenther@suse.de>
161 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
163 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
165 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
167 * configure: Regenerate.
168 * Makefile.am (AM_LDFLAGS): New variable.
169 (liblto_plugin_la_LDFLAGS): Add it.
170 * Makefile.in: Regenerate.
172 2013-09-20 Alan Modra <amodra@gmail.com>
174 * configure: Regenerate.
176 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
178 * configure: Regenerated.
180 2012-05-29 Joseph Myers <joseph@codesourcery.com>
182 * lto-plugin.c: Fix typo.
184 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
186 * configure: Regenerated.
188 2012-02-22 Kai Tietz <ktietz@redhat.com>
191 * lto-plugin.c (PRI_LL): New macro.
192 (dump_symtab): Use PRI_LL instead of ll in print.
193 (process_symtab): Use PRI_LL instead of ll in scan.
195 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
197 * configure: Regenerate.
199 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
201 * configure: Regenerate.
203 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
205 * configure: Regenerate.
207 2011-10-02 Jan Hubicka <jh@suse.cz>
210 * lto-plugin.c (get_symbols_v2): New variable.
211 (write_resolution): Use V2 API when available.
212 (onload): Handle LDPT_GET_SYMBOLS_V2.
214 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
215 Andi Kleen <ak@linux.intel.com>
218 * lto-plugin.c (sym_aux): Change id to unsigned long long.
219 (plugin_symtab): Likewise.
220 (dump_symtab): Likewise.
221 (resolve_conflicts): Likewise.
222 (process_symtab): Likewise.
224 2011-08-10 Richard Guenther <rguenther@suse.de>
228 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
229 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
230 * configure: Regenerate.
231 * Makefile.in: Likewise.
232 * aclocal.m4: Likewise.
234 2011-04-20 Jim Meyering <meyering@redhat.com>
236 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
238 2011-04-05 Richard Guenther <rguenther@suse.de>
241 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
243 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
245 * Makefile.in: Regenerate.
246 * aclocal.m4: Regenerate.
247 * configure: Regenerate.
249 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
251 * Makefile.am (all-local): Rename from 'all'.
252 * Makefile.in: Regenerate.
254 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
257 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
258 (liblto_plugin_la_LDFLAGS): Add -module.
259 (copy_lto_plugin): Renamed to...
260 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
262 * Makefile.in: Rebuild.
264 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
267 * Makefile.am (Wc): New helper for encoding -Wc,.
268 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
269 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
270 * Makefile.in: Regenerated.
272 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
276 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
279 * Makefile.am (Wl): New helper for encoding -Wl,.
280 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
281 * Makefile.in: Regenerated.
283 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
286 * Makefile.am (Wl): New helper for encoding -Wl,.
287 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
288 * Makefile.in: Regenerated.
290 2011-01-25 Ian Lance Taylor <iant@google.com>
292 * lto-plugin.c (gold_version): New static variable.
293 (all_symbols_read_handler): Don't check pass_through_items if
294 using gold 1.11 or later.
295 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
297 2011-01-12 Richard Guenther <rguenther@suse.de>
300 * lto-plugin.c (parse_table_entry): Use memcpy to access
303 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
305 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
306 * Makefile.in: Regenerate.
308 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
312 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
315 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
316 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
317 * Makefile.in: Regenerate.
319 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
323 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
324 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
325 * configure: Regenerate.
326 * config.h.in: Likewise.
328 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
332 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
333 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
334 override -bindir setting.
335 * aclocal.m4: Regenerate.
336 * configure: Regenerate.
337 * Makefile.in: Regenerate.
339 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
341 * config.h.in: Regenerated.
342 * configure: Regenerated.
343 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
344 * lto-plugin.c (WIFEXITED): Define default.
345 (WEXITSTATUS): Likeiwse.
347 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
349 * config.h.in: Regenerated.
350 * configure: Regenerated.
351 * Makefile.in: Regenerated.
352 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
353 * lto-plugin.c: Include sys/wait.h conditionally.
354 * aclocal.m4: Regenerated.
356 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
358 * lto-plugin.c (add_output_files): Fix memory leak.
360 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
364 * configure.ac: Add AC_TYPE_INT64_T test.
365 * config.h.in: Regenerate.
366 * configure: Likewise.
367 * lto-plugin.c (debug): Use char not bool.
369 (check_1): Rename from check, and use int not bool for gate argument.
370 (check): Macro wrapper for the above to coerce gate argument into
371 boolean-valued integer in case it has pointer type.
372 (parse_table_entry): Use 0 not false.
373 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
374 into two 32-bit parts and printing as hex ints.
376 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
379 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
381 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
384 * lto-plugin.h: Delete.
385 * lto-plugin-elf.c: Likewise.
386 * lto-plugin-coff.c: Likewise.
387 * configure.ac: Don't use libelf, don't source config.gcc.
388 (LIBELFLIBS): Delete.
390 (LTO_FORMAT): Delete.
391 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
392 (config.h): Add AC_CONFIG_HEADERS directive.
393 * Makefile.am (LIBELFLIBS): Delete.
395 (LTO_FORMAT): Delete.
397 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
398 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
399 any object-format-specific source file in the link.
400 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
401 * config.h.in: Generate.
402 * configure: Regenerate.
403 * Makefile.in: Likewise.
404 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
405 (LTO_SEGMENT_NAME): New definition.
406 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
407 (LTO_SECTION_PREFIX_LEN): New definition.
408 (struct sym_aux): Struct definition moved here from lto-plugin.h.
409 (struct plugin_symtab): Likewise.
410 (struct plugin_objfile): Likewise.
411 (struct plugin_objfile): New struct def.
412 (enum symbol_style): New enum type.
413 (add_symbols): Make static.
414 (claimed_files): Likewise.
415 (num_claimed_files): Likewise.
416 (sym_style): New global.
417 (check): Make static.
418 (parse_table_entry): Likewise. Respect sym_style when extracting
419 symbol from symtab entry.
420 (translate): Make static.
421 (resolve_conflicts): Likewise.
422 (process_symtab): New function, per-section callback version of
423 old object-format-specific handling from deleted lto-plugin-elf.c.
424 (claim_file_handler): Convert ELF-specific version from deleted
425 lto-plugin-elf.c to simple_object interface and move here.
426 (process_options): Allow new '-sym-style=' option.
427 (onload): Don't call deleted onload_format_checks hook.
429 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
431 * lto-plugin.c (dump_symtab): Correct printf argument type.
432 (finish_conflict_resolution): Initialize resolution.
434 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
437 * configure.ac: Add AC_CANONICAL_SYSTEM.
438 * configure: Regenerated.
440 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
442 * configure.ac: Source config.gcc to determine lto_binary_reader.
443 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
444 * Makefile.am (LTO_FORMAT): Import.
445 (liblto_plugin_la_SOURCES): Add object format dependent module
446 defined by LTO_FORMAT.
447 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
448 and work around libtool warning.
449 * configure: Regenerate.
450 * Makefile.in: Likewise.
451 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
452 (struct sym_aux): Likewise.
453 (struct plugin_symtab): Likewise.
454 (struct plugin_file_info): Likewise.
455 (LTO_SECTION_PREFIX): Likewise.
456 (add_symbols): Make non-static.
457 (claimed_files): Likewise.
458 (num_claimed_files): Likewise.
460 (parse_table_entry): Likewise.
461 (translate): Likewise.
462 (resolve_conflicts): Likewise.
463 (process_symtab): Move to new lto-plugin-elf.c object format dependent
465 (claim_file_handler): Likewise, and make non-static.
466 (onload): Call new onload_format_checks function.
467 * lto-plugin.h: New file.
468 (LTO_SECTION_PREFIX): Move here.
469 (struct sym_aux): Likewise.
470 (struct plugin_symtab): Likewise.
471 (struct plugin_file_info): Likewise.
472 (claim_file_handler): Add new function prototype.
473 (onload_format_checks): Likewise.
474 (check): Declare extern.
475 (translate): Likewise.
476 (parse_table_entry): Likewise.
477 (resolve_conflicts): Likewise.
478 (add_symbols): Likewise.
479 (claimed_files): Likewise.
480 (num_claimed_files): Likewise.
481 * lto-plugin-elf.c (process_symtab): Move here.
482 (claim_file_handler): Likewise, and make non-static.
483 (onload_format_checks): New function factored out from onload.
484 * lto-plugin-coff.c (claim_file_handler): New function stub.
485 (onload_format_checks): Likewise.
487 2010-08-05 Andi Kleen <ak@linux.intel.com>
489 * lto-plugin.c: Include <hashtab.h>
490 (sym_aux): Add next_conflict field to save conflict chains.
491 (plugin_file_info): Add conflicts symtab.
492 (parse_table_entry): Initialize aux->next_conflict.
493 (process_symtab): Increment found.
495 (finish_conflict_resolution): Add.
497 (write_resolution): Remove symbols loop and move into
498 dump_symtab. Call dump_symtab for main symbol and conflicts table.
499 Call free_symtab to free conflicts table.
503 (symbol_strength): Add.
504 (resolve_conflicts): Add.
505 (claim_file_handler): Add n variable. Check return value of
506 process_symtab. Call resolve_conflicts.
508 2010-07-27 Andi Kleen <ak@linux.intel.com>
510 * lto-plugin.c (translate): Remove debug fprintf.
512 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
515 * lto-plugin.c (translate): Cast to unsigned long.
517 2010-07-23 Andi Kleen <ak@linux.intel.com>
520 * lto-plugin.c (sym_aux): Add.
521 (plugin_symtab): Remove slots. Add aux and id.
522 (parse_table_entry): Change to use aux instead of slots.
523 (LTO_SECTION_PREFIX): Add.
524 (translate): Improve buffer allocation. Change to append
525 symbols to existing out buffer.
526 (get_section): Remove.
527 (process_symtab): Add.
528 (free_2): Free symtab->aux.
529 (write_resolution): Handle aux instead of slots.
530 Print sub id to resolution file.
531 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
532 calls with call to process_symtab.
534 2010-07-22 Richard Guenther <rguenther@suse.de>
536 * Makefile.am: New copy_lto_plugin rule to install the plugin
538 * Makefile.in: Regenerated.
540 2010-05-21 Richard Guenther <rguenther@suse.de>
542 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
544 2010-05-07 Richard Guenther <rguenther@suse.de>
546 * lto-plugin.c (free_2): Do not free resolution_file.
547 (write_resolution): Check that we were passed a resolution file.
548 (all_symbols_read_handler): Adjust.
549 (cleanup_handler): Do not remove the resolution file.
550 (process_option): Handle -fresolution=.
552 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
555 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
556 * Makefile.in: Regenerate.
558 2010-04-23 Richard Guenther <rguenther@suse.de>
561 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
562 (translate): Likewise.
563 (all_symbols_read_handler): Likewise.
564 (claim_file_handler): Likewise.
565 (process_option): Likewise.
566 (add_output_files): Likewise. Remove filename length limit.
568 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
570 * Makefile.in: Regenerate.
571 * aclocal.m4: Regenerate.
573 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
576 * lto-plugin.c (cleanup_handler): Delete temporary output files.
578 2010-01-11 Richard Guenther <rguenther@suse.de>
581 * Makefile.am: Disable dependencies.
582 * Makefile.in: Regenerated.
584 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
587 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
590 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
593 * configure: Regenerated.
594 * Makefile.in: Likewise.
596 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (claim_file_handler): Print offsets in hex.
601 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
603 * lto-plugin.c (write_resolution): Assume resolution_file is set.
604 Print the symbol name.
605 (all_symbols_read_handler): Create a resolution file.
607 (cleanup_handler): Remove the resolution file.
608 (process_option): Drop the -resolution option.
610 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
612 * lto-plugin.c (temp_obj_dir_name): Remove.
613 (arguments_file_name): New.
614 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
615 (exec_lto_wrapper): Create arguments file with make_temp_file.
616 (cleanup_handler): Don't remove the temporary directory. Remove the
618 (onload): Don't create the temporary directory.
620 2009-11-04 Richard Guenther <rguenther@suse.de>
621 Rafael Avila de Espindola <espindola@google.com>
623 * lto-plugin.c (plugin_file_info): Remove temp field.
624 (cleanup_handler): Don't delete temporary objects.
625 (claim_file_handler): Don't create temporary objects.
627 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
629 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
631 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
634 * lto-plugin.c (claim_file_handler): Close files that we created.
636 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
638 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
641 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
644 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
645 * configure: Regenerate.
647 2009-10-26 Richard Guenther <rguenther@suse.de>
649 * configure.ac: Use AM_MAINTAINER_MODE.
650 * acinclude.m4: Remove.
651 * configure: Re-generate.
652 * Makefile.in: Likewise.
653 * aclocal.m4: Likewise.
655 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
658 * configure: Regenerate.
659 * configure.ac: Add AC_TYPE_UINT64_T.
661 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
663 * lto-plugin.c (message): New variable.
664 (check): New function.
665 (parse_table_entry, translate, write_resolution,add_output_files,
666 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
668 (cleanup_handler): Use check instead of assert. Remove the arguments
671 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
673 * lto-plugin.c (resolution_file): New.
674 (free_1): Update comment.
675 (free_2): Free resolution_file.
676 (write_resolution): Write resolution to specified file. Use the
677 syms array from the symbol table.
678 (all_symbols_read_handler): Delay call to free_1 past call to
680 (process_option): Add a -resolution option.
682 2009-10-13 Richard Guenther <rguenther@suse.de>
684 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
686 * Makefile.in: Regenerated.
688 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
690 * lto-plugin.c (add_input_library): New.
691 (all_symbols_read_handler): Use add_input_library for items that
693 (process_option): Fit in 80 columns.
694 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
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 Diego Novillo <dnovillo@google.com>
716 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
717 and -D_FILE_OFFSET_BITS=64.
718 * configure.ac: Add AC_SYS_LARGEFILE.
719 * configure: Regenerate.
720 * Makefile.in: Regenerate.
721 * lto-plugin.c: Fix copyright boilerplate.
723 2009-10-02 Diego Novillo <dnovillo@google.com>
725 * Makefile.am (ACLOCAL_AMFLAGS): Define.
726 * aclocal.m4: Regenerate with aclocal-2.64
727 * acinclude.m4: Remove.
728 * Makefile.in: Regenerate with automake-1.11
729 * configure.ac (AC_PREREQ): Update to 2.64.
730 * configure: Regenerate.
732 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
734 * Makefile.am (liblto_plugin_la_SOURCES): Remove
735 $(top_srcdir)/../gcc/lto/common.c
736 * Makefile.in: Regenerate.
738 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
740 * lto-plugin.c (pass_through_items): New.
741 (num_pass_through_items): New.
742 (all_symbols_read_handler): Update to use the -pass-through option.
743 (process_option): Replace -libgcc with -pass-through.
745 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
747 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
748 register_cleanup to be set.
750 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
752 * Makefile.am: Remove all reference to ltosymtab.
753 * Makefile.in: Regenerate.
754 * lto-symtab.c: Remove.
756 2009-05-21 Diego Novillo <dnovillo@google.com>
758 * configure.ac: Remove call to AC_CHECK_GELF.
759 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
760 * acinclude.m4: Do not include ../config/libelf.m4
761 * Makefile.am (LIBELFLIBS): Define.
763 (AM_CPPFLAGS): Add $(LIBELFINC).
764 (ltosymtab_LDADD): Add $(LIBELFLIBS).
765 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
766 * lto-plugin.c: Always include <gelf.h>
767 * lto-symtab.c: Likewise.
768 * configure: Regenerate.
769 * Makefile.in: Regenerate.
771 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
773 * lto-plugin.c (libgcc_filename): New.
774 (all_symbols_read_handler): Pass libgcc to the linker.
775 (all_symbols_read_handler): Parse -libgcc
777 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
779 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
780 * Makefile.in: Regenerate.
781 * lto-plugin.c (add_output_files): Argument is now a FILE.
782 (exec_lto_wrapper): Use writeargv and pex.
784 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
787 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
788 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
791 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
793 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
795 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
797 * lto-plugin.c: Include libiberty.h.
798 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
801 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
803 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
806 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
808 * lto-plugin.c (plugin_file_info): Remove fd and elf.
809 (parse_table_entry): strdup entry->name and entry->comdat_key.
810 (free_1): Free name and comdat_key. Don't close the file. Don't call
812 (claim_file_handler): Always call elf_end.
814 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
816 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
817 -D_FILE_OFFSET_BITS=64
818 * Makefile.in: Regenerate
820 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
822 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
823 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
824 * Makefile.in: Regenerate.
825 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
826 * configure: Regenerate.
827 * configure.ac: Add AC_SUBST(target_noncanonical).
829 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
831 * lto-plugin.c: Include stdbool.h.
832 (debug, nop): Declare as bool.
834 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
836 * lto-plugin.c (nop): New.
837 (use_original_files): New.
838 (all_symbols_read_handler): Call use_original_files if nop is true.
839 (process_option): Parse the -nop option.
841 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
843 * lto-plugin.c (debug): New.
844 (exec_lto_wrapper): Print argv if debug is true.
845 (process_option): Process the -debug command line option.
847 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
849 * lto-plugin.c (process_option): The argument is now a single option,
850 not a space separated list.
852 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
854 * lto-plugin.c: Include sys/types.h and sys/wait.h
855 (output_files, num_output_files, lto_wrapper_argv,
856 lto_wrapper_num_args): New.
857 (free_2): Free output_files.
858 (write_resolution): Disable.
859 (add_output_files): New.
860 (exec_lto_wrapper): New.
861 (all_symbols_read_handler): Run lto-wrapper.
862 (claim_file_handler): Free lto_file.name and call elf_end.
863 (process_option): New.
865 2008-11-26 Rafael Espindola <espindola@google.com>
867 * lto-plugin.c (add_input_file): New.
868 (get_section): Return NULL if get_section fails.
869 (write_resolution): New.
870 (all_symbols_read_handler): Call add_input_file.
871 (claim_file_handler): Unlink the correct file.
872 (onload): Record add_input_file.
874 2008-09-23 Rafael Espindola <espindola@google.com>
876 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
877 Update the location of common.c.
878 * Makefile.in: Regenerate.
879 * common.c: Moved to gcc/lto.
880 * common.h: Moved to gcc/lto.
881 * lto-plugin.c: Update the location of common.h.
882 * lto-symtab.c: Update the location of common.h.
884 2008-09-23 Rafael Espindola <espindola@google.com>
886 * common.c: Include common.h.
887 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
889 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
892 2008-09-23 Rafael Espindola <espindola@google.com>
894 * lto-plugin.c (plugin_file_info): Add temp.
895 (cleanup_handler): Only delete temporary files.
896 (claim_file_handler): Initialize lto_file.temp.
898 2008-09-23 Rafael Espindola <espindola@google.com>
900 * plugin-api.h: Moved to include.
902 2008-09-23 Rafael Espindola <espindola@google.com>
904 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
907 2008-09-22 Rafael Espindola <espindola@google.com>
909 * plugin-api.h: Copy from binutils' cvs.
911 2008-09-22 Rafael Espindola <espindola@google.com>
913 * lto-symtab.c (get_symbols, add_symbols): Update signature.
914 * plugin-api.h: Copy from binutils' cvs.
916 2008-09-22 Rafael Espindola <espindola@google.com>
918 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
921 2008-09-10 Rafael Espindola <espindola@google.com>
923 * lto-plugin.c (onload): add missing break statements and asserts.
924 * lto-symtab.c (claim_file_handler): Make it static.
925 (all_symbols_read_handler): Make it static.
926 (all_file_handles): Make it static.
927 (num_file_handles): Make it static.
928 (register_claim_file): Make it static.
929 (register_object): Indent properly.
931 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
933 * Makefile.am (ltosymtab_LDADD): Add -lelf.
934 * Makefiel.in: Regenerate.
935 * lto-plugin.c: Include ar.h.
936 (claim_file_handler): Handle file->offset != 0.
937 * lto-symtab.c: Include gelf.h.
938 (all_file_handles): Change type.
939 (register_object): New.
940 (register_file): Add support for archives.
941 (resolve): Update to new type of all_file_handles.
942 (print): Update to new type of all_file_handles.
943 (free_all): Update to new type of all_file_handles.
944 (main): Update to new type of all_file_handles.
946 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
948 * lto-plugin.c (get_string_table): Remove.
949 (get_section): Use elf_strptr instead of get_string_table.
951 2008-09-08 Doug Kwan <dougkwan@google.com>
953 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
954 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
956 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
958 * Makefile.am (ltosymtab_SOURCES): add common.c.
959 (ltosymtab_CFLAGS): New.
960 (liblto_plugin_la_SOURCES): Add common.c.
961 * Makefile.in: Regenerate.
964 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
965 (plugin_symtab): New.
966 (plugin_file_info): New.
967 (register_all_symbols_read): New.
969 (claimed_files): New.
970 (num_claimed_files): New.
971 (translate): Don't drop the slot number.
974 (all_symbols_read_handler): New.
975 (claim_file_handler): Record every claimed file.
976 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
978 * lto-symtab.c: Include stdlib.h, string.h and common.h.
979 (current_file_handle): Remove.
980 (ld_plugin_all_symbols_read_handler): New.
981 (plugin_handle): New.
983 (all_file_handles): New.
984 (num_file_handles): New.
986 (register_all_symbols_read): New.
987 (add_symbols): Don't print the symbols, just record them.
988 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
990 (load_plugin): Use plugin_handle.
991 (register_file): Add the file handle to all_file_handles.
994 (unload_plugin): New.
996 (main): Call all_symbols_read_handler and free resources.
998 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1000 * Makefile.am (AM_CFLAGS): New.
1001 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1002 (lib_LTLIBRARIES): New.
1003 (liblto_plugin_la_SOURCES): New.
1004 (liblto_plugin_la_LIBADD): New.
1005 * Makefile.in: Regenerate.
1006 * acinclude.m4: Don't include ../config/acx.m4 and
1007 ../config/no-executables.m4.
1008 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1010 * aclocal.m4: Regenerate.
1011 * configure: Regenerate.
1012 * configure.ac: Use AM_PROG_LIBTOOL.
1013 * lto-plugin.c: New.
1014 * lto-symtab.c: Rewrite to use the plugin.
1015 * plugin-api.h: New.
1017 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1019 * configure: Regenerate.
1020 * configure.ac: Use AC_CHECK_GELF.
1021 * lto-symtab.c: Include gelf.h.
1022 (get_string_table): Use size independent API.
1023 (printTable): Use lld to print 64 bit integers.
1025 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1027 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1028 entry->visibility are valid.
1030 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1031 * lto-symtab.c (table_entry): Add comdat.
1032 (parse_table_entry): Read comdat.
1034 2008-08-21 Rafael Espindola <espindola@google.com>
1038 * acinclude.m4: New.
1041 * configure.ac: New.
1042 * lto-symtab.c: New.