1 2015-11-25 Jan Hubicka <jh@suse.cz>
4 * lto-plugin.c (linker_output, linker_output_set): New statics.
5 (all_symbols_read_handler): Add -flinker-output option.
6 (onload): Record linker_output info.
8 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
10 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
11 * configure: Regenerate.
14 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16 * Makefile.am: Drop 'by automake version' from top-level comment.
17 * Makefile.in: Regenerated with automake-1.11.6.
18 * aclocal.m4: Likewise.
19 * configure: Likewise.
21 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
23 * lto-plugin.c (release_input_file): Removed.
24 (claim_file_handler): Don't call release_input_file.
25 (onload): Don't set release_input_file.
27 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
29 * lto-plugin.c (claim_file_handler): Pass handle to
32 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
34 * lto-plugin.c (claim_file_handler): Call release_input_file only
37 2015-01-28 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>
45 * lto-plugin.c (release_input_file): New.
46 (claim_file_handler): Call release_input_file.
47 (onload): Set release_input_file.
49 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
51 * lto-plugin.c (offload_files, num_offload_files): New static variables.
52 (free_1): Use arguments instead of global variables.
53 (free_2): Free offload_files.
54 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
56 (claim_file_handler): Do not add file to claimed_files if it contains
57 offload sections without LTO sections. Add it to offload_files instead.
59 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
62 * configure: Regenerated.
64 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
65 Bernd Schmidt <bernds@codesourcery.com>
66 Andrey Turetskiy <andrey.turetskiy@intel.com>
67 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
69 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
70 (struct plugin_objfile): Add new field "offload".
71 (process_offload_section): New static function.
72 (claim_file_handler): Claim file if it contains offload sections.
74 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
75 Thomas Schwinge <thomas@codesourcery.com>
76 Ilya Verbin <ilya.verbin@intel.com>
77 Andrey Turetskiy <andrey.turetskiy@intel.com>
79 * Makefile.am (libexecsubdir): Tweak for the possibility of being
80 configured for offload compiler.
81 (accel_dir_suffix, real_target_noncanonical): New variables substituted
83 * Makefile.in: Regenerate.
84 * configure: Regenerate.
85 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
88 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
91 * configure: Regenerate.
93 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
96 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
97 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
99 * Makefile.in: Regenerated.
100 * configure: Likewise.
102 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
104 * configure.ac (--with-libiberty): New configure option.
105 * configure: Regenerate.
106 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
108 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
109 (liblto_plugin_la_DEPENDENCIES): Use them.
110 * Makefile.in: Regenerate.
112 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
115 * configure.ac: Check for -static-libgcc.
116 * configure: Regenerate.
118 2014-04-17 Jakub Jelinek <jakub@redhat.com>
121 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
122 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
123 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
124 over ../libiberty/pic/libiberty.a if the former exists.
125 * Makefile.in: Regenerated.
128 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
129 * Makefile.in: Regenerated.
131 2014-04-02 Richard Biener <rguenther@suse.de>
133 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
134 is set in COLLECT_GCC_OPTIONS.
136 2014-03-28 Richard Biener <rguenther@suse.de>
138 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
140 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
142 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
144 * configure: Regenerate.
145 * Makefile.am (AM_LDFLAGS): New variable.
146 (liblto_plugin_la_LDFLAGS): Add it.
147 * Makefile.in: Regenerate.
149 2013-09-20 Alan Modra <amodra@gmail.com>
151 * configure: Regenerate.
153 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
155 * configure: Regenerated.
157 2012-05-29 Joseph Myers <joseph@codesourcery.com>
159 * lto-plugin.c: Fix typo.
161 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
163 * configure: Regenerated.
165 2012-02-22 Kai Tietz <ktietz@redhat.com>
168 * lto-plugin.c (PRI_LL): New macro.
169 (dump_symtab): Use PRI_LL instead of ll in print.
170 (process_symtab): Use PRI_LL instead of ll in scan.
172 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
174 * configure: Regenerate.
176 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
178 * configure: Regenerate.
180 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
182 * configure: Regenerate.
184 2011-10-02 Jan Hubicka <jh@suse.cz>
187 * lto-plugin.c (get_symbols_v2): New variable.
188 (write_resolution): Use V2 API when available.
189 (onload): Handle LDPT_GET_SYMBOLS_V2.
191 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
192 Andi Kleen <ak@linux.intel.com>
195 * lto-plugin.c (sym_aux): Change id to unsigned long long.
196 (plugin_symtab): Likewise.
197 (dump_symtab): Likewise.
198 (resolve_conflicts): Likewise.
199 (process_symtab): Likewise.
201 2011-08-10 Richard Guenther <rguenther@suse.de>
205 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
206 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
207 * configure: Regenerate.
208 * Makefile.in: Likewise.
209 * aclocal.m4: Likewise.
211 2011-04-20 Jim Meyering <meyering@redhat.com>
213 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
215 2011-04-05 Richard Guenther <rguenther@suse.de>
218 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
220 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
222 * Makefile.in: Regenerate.
223 * aclocal.m4: Regenerate.
224 * configure: Regenerate.
226 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
228 * Makefile.am (all-local): Rename from 'all'.
229 * Makefile.in: Regenerate.
231 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
234 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
235 (liblto_plugin_la_LDFLAGS): Add -module.
236 (copy_lto_plugin): Renamed to...
237 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
239 * Makefile.in: Rebuild.
241 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
244 * Makefile.am (Wc): New helper for encoding -Wc,.
245 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
246 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
247 * Makefile.in: Regenerated.
249 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
253 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
256 * Makefile.am (Wl): New helper for encoding -Wl,.
257 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
258 * Makefile.in: Regenerated.
260 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
263 * Makefile.am (Wl): New helper for encoding -Wl,.
264 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
265 * Makefile.in: Regenerated.
267 2011-01-25 Ian Lance Taylor <iant@google.com>
269 * lto-plugin.c (gold_version): New static variable.
270 (all_symbols_read_handler): Don't check pass_through_items if
271 using gold 1.11 or later.
272 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
274 2011-01-12 Richard Guenther <rguenther@suse.de>
277 * lto-plugin.c (parse_table_entry): Use memcpy to access
280 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
282 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
283 * Makefile.in: Regenerate.
285 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
289 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
291 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
292 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
293 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
294 * Makefile.in: Regenerate.
296 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
300 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
301 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
302 * configure: Regenerate.
303 * config.h.in: Likewise.
305 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
309 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
310 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
311 override -bindir setting.
312 * aclocal.m4: Regenerate.
313 * configure: Regenerate.
314 * Makefile.in: Regenerate.
316 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
318 * config.h.in: Regenerated.
319 * configure: Regenerated.
320 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
321 * lto-plugin.c (WIFEXITED): Define default.
322 (WEXITSTATUS): Likeiwse.
324 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
326 * config.h.in: Regenerated.
327 * configure: Regenerated.
328 * Makefile.in: Regenerated.
329 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
330 * lto-plugin.c: Include sys/wait.h conditionally.
331 * aclocal.m4: Regenerated.
333 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
335 * lto-plugin.c (add_output_files): Fix memory leak.
337 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
341 * configure.ac: Add AC_TYPE_INT64_T test.
342 * config.h.in: Regenerate.
343 * configure: Likewise.
344 * lto-plugin.c (debug): Use char not bool.
346 (check_1): Rename from check, and use int not bool for gate argument.
347 (check): Macro wrapper for the above to coerce gate argument into
348 boolean-valued integer in case it has pointer type.
349 (parse_table_entry): Use 0 not false.
350 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
351 into two 32-bit parts and printing as hex ints.
353 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
356 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
358 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
361 * lto-plugin.h: Delete.
362 * lto-plugin-elf.c: Likewise.
363 * lto-plugin-coff.c: Likewise.
364 * configure.ac: Don't use libelf, don't source config.gcc.
365 (LIBELFLIBS): Delete.
367 (LTO_FORMAT): Delete.
368 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
369 (config.h): Add AC_CONFIG_HEADERS directive.
370 * Makefile.am (LIBELFLIBS): Delete.
372 (LTO_FORMAT): Delete.
374 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
375 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
376 any object-format-specific source file in the link.
377 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
378 * config.h.in: Generate.
379 * configure: Regenerate.
380 * Makefile.in: Likewise.
381 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
382 (LTO_SEGMENT_NAME): New definition.
383 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
384 (LTO_SECTION_PREFIX_LEN): New definition.
385 (struct sym_aux): Struct definition moved here from lto-plugin.h.
386 (struct plugin_symtab): Likewise.
387 (struct plugin_objfile): Likewise.
388 (struct plugin_objfile): New struct def.
389 (enum symbol_style): New enum type.
390 (add_symbols): Make static.
391 (claimed_files): Likewise.
392 (num_claimed_files): Likewise.
393 (sym_style): New global.
394 (check): Make static.
395 (parse_table_entry): Likewise. Respect sym_style when extracting
396 symbol from symtab entry.
397 (translate): Make static.
398 (resolve_conflicts): Likewise.
399 (process_symtab): New function, per-section callback version of
400 old object-format-specific handling from deleted lto-plugin-elf.c.
401 (claim_file_handler): Convert ELF-specific version from deleted
402 lto-plugin-elf.c to simple_object interface and move here.
403 (process_options): Allow new '-sym-style=' option.
404 (onload): Don't call deleted onload_format_checks hook.
406 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
408 * lto-plugin.c (dump_symtab): Correct printf argument type.
409 (finish_conflict_resolution): Initialize resolution.
411 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
414 * configure.ac: Add AC_CANONICAL_SYSTEM.
415 * configure: Regenerated.
417 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
419 * configure.ac: Source config.gcc to determine lto_binary_reader.
420 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
421 * Makefile.am (LTO_FORMAT): Import.
422 (liblto_plugin_la_SOURCES): Add object format dependent module
423 defined by LTO_FORMAT.
424 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
425 and work around libtool warning.
426 * configure: Regenerate.
427 * Makefile.in: Likewise.
428 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
429 (struct sym_aux): Likewise.
430 (struct plugin_symtab): Likewise.
431 (struct plugin_file_info): Likewise.
432 (LTO_SECTION_PREFIX): Likewise.
433 (add_symbols): Make non-static.
434 (claimed_files): Likewise.
435 (num_claimed_files): Likewise.
437 (parse_table_entry): Likewise.
438 (translate): Likewise.
439 (resolve_conflicts): Likewise.
440 (process_symtab): Move to new lto-plugin-elf.c object format dependent
442 (claim_file_handler): Likewise, and make non-static.
443 (onload): Call new onload_format_checks function.
444 * lto-plugin.h: New file.
445 (LTO_SECTION_PREFIX): Move here.
446 (struct sym_aux): Likewise.
447 (struct plugin_symtab): Likewise.
448 (struct plugin_file_info): Likewise.
449 (claim_file_handler): Add new function prototype.
450 (onload_format_checks): Likewise.
451 (check): Declare extern.
452 (translate): Likewise.
453 (parse_table_entry): Likewise.
454 (resolve_conflicts): Likewise.
455 (add_symbols): Likewise.
456 (claimed_files): Likewise.
457 (num_claimed_files): Likewise.
458 * lto-plugin-elf.c (process_symtab): Move here.
459 (claim_file_handler): Likewise, and make non-static.
460 (onload_format_checks): New function factored out from onload.
461 * lto-plugin-coff.c (claim_file_handler): New function stub.
462 (onload_format_checks): Likewise.
464 2010-08-05 Andi Kleen <ak@linux.intel.com>
466 * lto-plugin.c: Include <hashtab.h>
467 (sym_aux): Add next_conflict field to save conflict chains.
468 (plugin_file_info): Add conflicts symtab.
469 (parse_table_entry): Initialize aux->next_conflict.
470 (process_symtab): Increment found.
472 (finish_conflict_resolution): Add.
474 (write_resolution): Remove symbols loop and move into
475 dump_symtab. Call dump_symtab for main symbol and conflicts table.
476 Call free_symtab to free conflicts table.
480 (symbol_strength): Add.
481 (resolve_conflicts): Add.
482 (claim_file_handler): Add n variable. Check return value of
483 process_symtab. Call resolve_conflicts.
485 2010-07-27 Andi Kleen <ak@linux.intel.com>
487 * lto-plugin.c (translate): Remove debug fprintf.
489 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
492 * lto-plugin.c (translate): Cast to unsigned long.
494 2010-07-23 Andi Kleen <ak@linux.intel.com>
497 * lto-plugin.c (sym_aux): Add.
498 (plugin_symtab): Remove slots. Add aux and id.
499 (parse_table_entry): Change to use aux instead of slots.
500 (LTO_SECTION_PREFIX): Add.
501 (translate): Improve buffer allocation. Change to append
502 symbols to existing out buffer.
503 (get_section): Remove.
504 (process_symtab): Add.
505 (free_2): Free symtab->aux.
506 (write_resolution): Handle aux instead of slots.
507 Print sub id to resolution file.
508 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
509 calls with call to process_symtab.
511 2010-07-22 Richard Guenther <rguenther@suse.de>
513 * Makefile.am: New copy_lto_plugin rule to install the plugin
515 * Makefile.in: Regenerated.
517 2010-05-21 Richard Guenther <rguenther@suse.de>
519 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
521 2010-05-07 Richard Guenther <rguenther@suse.de>
523 * lto-plugin.c (free_2): Do not free resolution_file.
524 (write_resolution): Check that we were passed a resolution file.
525 (all_symbols_read_handler): Adjust.
526 (cleanup_handler): Do not remove the resolution file.
527 (process_option): Handle -fresolution=.
529 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
532 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
533 * Makefile.in: Regenerate.
535 2010-04-23 Richard Guenther <rguenther@suse.de>
538 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
539 (translate): Likewise.
540 (all_symbols_read_handler): Likewise.
541 (claim_file_handler): Likewise.
542 (process_option): Likewise.
543 (add_output_files): Likewise. Remove filename length limit.
545 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
547 * Makefile.in: Regenerate.
548 * aclocal.m4: Regenerate.
550 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
553 * lto-plugin.c (cleanup_handler): Delete temporary output files.
555 2010-01-11 Richard Guenther <rguenther@suse.de>
558 * Makefile.am: Disable dependencies.
559 * Makefile.in: Regenerated.
561 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
564 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
567 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
570 * configure: Regenerated.
571 * Makefile.in: Likewise.
573 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
576 * lto-plugin.c (claim_file_handler): Print offsets in hex.
578 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
580 * lto-plugin.c (write_resolution): Assume resolution_file is set.
581 Print the symbol name.
582 (all_symbols_read_handler): Create a resolution file.
584 (cleanup_handler): Remove the resolution file.
585 (process_option): Drop the -resolution option.
587 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
589 * lto-plugin.c (temp_obj_dir_name): Remove.
590 (arguments_file_name): New.
591 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
592 (exec_lto_wrapper): Create arguments file with make_temp_file.
593 (cleanup_handler): Don't remove the temporary directory. Remove the
595 (onload): Don't create the temporary directory.
597 2009-11-04 Richard Guenther <rguenther@suse.de>
598 Rafael Avila de Espindola <espindola@google.com>
600 * lto-plugin.c (plugin_file_info): Remove temp field.
601 (cleanup_handler): Don't delete temporary objects.
602 (claim_file_handler): Don't create temporary objects.
604 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
606 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
608 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
611 * lto-plugin.c (claim_file_handler): Close files that we created.
613 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
615 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
618 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
621 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
622 * configure: Regenerate.
624 2009-10-26 Richard Guenther <rguenther@suse.de>
626 * configure.ac: Use AM_MAINTAINER_MODE.
627 * acinclude.m4: Remove.
628 * configure: Re-generate.
629 * Makefile.in: Likewise.
630 * aclocal.m4: Likewise.
632 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
635 * configure: Regenerate.
636 * configure.ac: Add AC_TYPE_UINT64_T.
638 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (message): New variable.
641 (check): New function.
642 (parse_table_entry, translate, write_resolution,add_output_files,
643 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
645 (cleanup_handler): Use check instead of assert. Remove the arguments
648 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
650 * lto-plugin.c (resolution_file): New.
651 (free_1): Update comment.
652 (free_2): Free resolution_file.
653 (write_resolution): Write resolution to specified file. Use the
654 syms array from the symbol table.
655 (all_symbols_read_handler): Delay call to free_1 past call to
657 (process_option): Add a -resolution option.
659 2009-10-13 Richard Guenther <rguenther@suse.de>
661 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
663 * Makefile.in: Regenerated.
665 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
667 * lto-plugin.c (add_input_library): New.
668 (all_symbols_read_handler): Use add_input_library for items that
670 (process_option): Fit in 80 columns.
671 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
673 2009-10-02 Diego Novillo <dnovillo@google.com>
675 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
676 and -D_FILE_OFFSET_BITS=64.
677 * configure.ac: Add AC_SYS_LARGEFILE.
678 * configure: Regenerate.
679 * Makefile.in: Regenerate.
680 * lto-plugin.c: Fix copyright boilerplate.
682 2009-10-02 Diego Novillo <dnovillo@google.com>
684 * Makefile.am (ACLOCAL_AMFLAGS): Define.
685 * aclocal.m4: Regenerate with aclocal-2.64
686 * acinclude.m4: Remove.
687 * Makefile.in: Regenerate with automake-1.11
688 * configure.ac (AC_PREREQ): Update to 2.64.
689 * configure: Regenerate.
691 2009-10-02 Diego Novillo <dnovillo@google.com>
693 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
694 and -D_FILE_OFFSET_BITS=64.
695 * configure.ac: Add AC_SYS_LARGEFILE.
696 * configure: Regenerate.
697 * Makefile.in: Regenerate.
698 * lto-plugin.c: Fix copyright boilerplate.
700 2009-10-02 Diego Novillo <dnovillo@google.com>
702 * Makefile.am (ACLOCAL_AMFLAGS): Define.
703 * aclocal.m4: Regenerate with aclocal-2.64
704 * acinclude.m4: Remove.
705 * Makefile.in: Regenerate with automake-1.11
706 * configure.ac (AC_PREREQ): Update to 2.64.
707 * configure: Regenerate.
709 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
711 * Makefile.am (liblto_plugin_la_SOURCES): Remove
712 $(top_srcdir)/../gcc/lto/common.c
713 * Makefile.in: Regenerate.
715 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
717 * lto-plugin.c (pass_through_items): New.
718 (num_pass_through_items): New.
719 (all_symbols_read_handler): Update to use the -pass-through option.
720 (process_option): Replace -libgcc with -pass-through.
722 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
724 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
725 register_cleanup to be set.
727 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
729 * Makefile.am: Remove all reference to ltosymtab.
730 * Makefile.in: Regenerate.
731 * lto-symtab.c: Remove.
733 2009-05-21 Diego Novillo <dnovillo@google.com>
735 * configure.ac: Remove call to AC_CHECK_GELF.
736 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
737 * acinclude.m4: Do not include ../config/libelf.m4
738 * Makefile.am (LIBELFLIBS): Define.
740 (AM_CPPFLAGS): Add $(LIBELFINC).
741 (ltosymtab_LDADD): Add $(LIBELFLIBS).
742 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
743 * lto-plugin.c: Always include <gelf.h>
744 * lto-symtab.c: Likewise.
745 * configure: Regenerate.
746 * Makefile.in: Regenerate.
748 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
750 * lto-plugin.c (libgcc_filename): New.
751 (all_symbols_read_handler): Pass libgcc to the linker.
752 (all_symbols_read_handler): Parse -libgcc
754 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
756 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
757 * Makefile.in: Regenerate.
758 * lto-plugin.c (add_output_files): Argument is now a FILE.
759 (exec_lto_wrapper): Use writeargv and pex.
761 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
764 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
765 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
768 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
770 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
772 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
774 * lto-plugin.c: Include libiberty.h.
775 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
778 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
780 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
783 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
785 * lto-plugin.c (plugin_file_info): Remove fd and elf.
786 (parse_table_entry): strdup entry->name and entry->comdat_key.
787 (free_1): Free name and comdat_key. Don't close the file. Don't call
789 (claim_file_handler): Always call elf_end.
791 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
793 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
794 -D_FILE_OFFSET_BITS=64
795 * Makefile.in: Regenerate
797 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
799 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
800 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
801 * Makefile.in: Regenerate.
802 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
803 * configure: Regenerate.
804 * configure.ac: Add AC_SUBST(target_noncanonical).
806 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
808 * lto-plugin.c: Include stdbool.h.
809 (debug, nop): Declare as bool.
811 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
813 * lto-plugin.c (nop): New.
814 (use_original_files): New.
815 (all_symbols_read_handler): Call use_original_files if nop is true.
816 (process_option): Parse the -nop option.
818 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
820 * lto-plugin.c (debug): New.
821 (exec_lto_wrapper): Print argv if debug is true.
822 (process_option): Process the -debug command line option.
824 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
826 * lto-plugin.c (process_option): The argument is now a single option,
827 not a space separated list.
829 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
831 * lto-plugin.c: Include sys/types.h and sys/wait.h
832 (output_files, num_output_files, lto_wrapper_argv,
833 lto_wrapper_num_args): New.
834 (free_2): Free output_files.
835 (write_resolution): Disable.
836 (add_output_files): New.
837 (exec_lto_wrapper): New.
838 (all_symbols_read_handler): Run lto-wrapper.
839 (claim_file_handler): Free lto_file.name and call elf_end.
840 (process_option): New.
842 2008-11-26 Rafael Espindola <espindola@google.com>
844 * lto-plugin.c (add_input_file): New.
845 (get_section): Return NULL if get_section fails.
846 (write_resolution): New.
847 (all_symbols_read_handler): Call add_input_file.
848 (claim_file_handler): Unlink the correct file.
849 (onload): Record add_input_file.
851 2008-09-23 Rafael Espindola <espindola@google.com>
853 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
854 Update the location of common.c.
855 * Makefile.in: Regenerate.
856 * common.c: Moved to gcc/lto.
857 * common.h: Moved to gcc/lto.
858 * lto-plugin.c: Update the location of common.h.
859 * lto-symtab.c: Update the location of common.h.
861 2008-09-23 Rafael Espindola <espindola@google.com>
863 * common.c: Include common.h.
864 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
866 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
869 2008-09-23 Rafael Espindola <espindola@google.com>
871 * lto-plugin.c (plugin_file_info): Add temp.
872 (cleanup_handler): Only delete temporary files.
873 (claim_file_handler): Initialize lto_file.temp.
875 2008-09-23 Rafael Espindola <espindola@google.com>
877 * plugin-api.h: Moved to include.
879 2008-09-23 Rafael Espindola <espindola@google.com>
881 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
884 2008-09-22 Rafael Espindola <espindola@google.com>
886 * plugin-api.h: Copy from binutils' cvs.
888 2008-09-22 Rafael Espindola <espindola@google.com>
890 * lto-symtab.c (get_symbols, add_symbols): Update signature.
891 * plugin-api.h: Copy from binutils' cvs.
893 2008-09-22 Rafael Espindola <espindola@google.com>
895 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
898 2008-09-10 Rafael Espindola <espindola@google.com>
900 * lto-plugin.c (onload): add missing break statements and asserts.
901 * lto-symtab.c (claim_file_handler): Make it static.
902 (all_symbols_read_handler): Make it static.
903 (all_file_handles): Make it static.
904 (num_file_handles): Make it static.
905 (register_claim_file): Make it static.
906 (register_object): Indent properly.
908 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
910 * Makefile.am (ltosymtab_LDADD): Add -lelf.
911 * Makefiel.in: Regenerate.
912 * lto-plugin.c: Include ar.h.
913 (claim_file_handler): Handle file->offset != 0.
914 * lto-symtab.c: Include gelf.h.
915 (all_file_handles): Change type.
916 (register_object): New.
917 (register_file): Add support for archives.
918 (resolve): Update to new type of all_file_handles.
919 (print): Update to new type of all_file_handles.
920 (free_all): Update to new type of all_file_handles.
921 (main): Update to new type of all_file_handles.
923 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
925 * lto-plugin.c (get_string_table): Remove.
926 (get_section): Use elf_strptr instead of get_string_table.
928 2008-09-08 Doug Kwan <dougkwan@google.com>
930 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
931 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
933 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
935 * Makefile.am (ltosymtab_SOURCES): add common.c.
936 (ltosymtab_CFLAGS): New.
937 (liblto_plugin_la_SOURCES): Add common.c.
938 * Makefile.in: Regenerate.
941 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
942 (plugin_symtab): New.
943 (plugin_file_info): New.
944 (register_all_symbols_read): New.
946 (claimed_files): New.
947 (num_claimed_files): New.
948 (translate): Don't drop the slot number.
951 (all_symbols_read_handler): New.
952 (claim_file_handler): Record every claimed file.
953 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
955 * lto-symtab.c: Include stdlib.h, string.h and common.h.
956 (current_file_handle): Remove.
957 (ld_plugin_all_symbols_read_handler): New.
958 (plugin_handle): New.
960 (all_file_handles): New.
961 (num_file_handles): New.
963 (register_all_symbols_read): New.
964 (add_symbols): Don't print the symbols, just record them.
965 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
967 (load_plugin): Use plugin_handle.
968 (register_file): Add the file handle to all_file_handles.
971 (unload_plugin): New.
973 (main): Call all_symbols_read_handler and free resources.
975 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
977 * Makefile.am (AM_CFLAGS): New.
978 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
979 (lib_LTLIBRARIES): New.
980 (liblto_plugin_la_SOURCES): New.
981 (liblto_plugin_la_LIBADD): New.
982 * Makefile.in: Regenerate.
983 * acinclude.m4: Don't include ../config/acx.m4 and
984 ../config/no-executables.m4.
985 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
987 * aclocal.m4: Regenerate.
988 * configure: Regenerate.
989 * configure.ac: Use AM_PROG_LIBTOOL.
991 * lto-symtab.c: Rewrite to use the plugin.
994 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
996 * configure: Regenerate.
997 * configure.ac: Use AC_CHECK_GELF.
998 * lto-symtab.c: Include gelf.h.
999 (get_string_table): Use size independent API.
1000 (printTable): Use lld to print 64 bit integers.
1002 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1004 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1005 entry->visibility are valid.
1007 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1008 * lto-symtab.c (table_entry): Add comdat.
1009 (parse_table_entry): Read comdat.
1011 2008-08-21 Rafael Espindola <espindola@google.com>
1015 * acinclude.m4: New.
1018 * configure.ac: New.
1019 * lto-symtab.c: New.