1 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
3 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
4 * configure: Regenerate.
7 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
9 * Makefile.am: Drop 'by automake version' from top-level comment.
10 * Makefile.in: Regenerated with automake-1.11.6.
11 * aclocal.m4: Likewise.
12 * configure: Likewise.
14 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
16 * lto-plugin.c (release_input_file): Removed.
17 (claim_file_handler): Don't call release_input_file.
18 (onload): Don't set release_input_file.
20 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
22 * lto-plugin.c (claim_file_handler): Pass handle to
25 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
27 * lto-plugin.c (claim_file_handler): Call release_input_file only
30 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
32 * lto-plugin.c (claim_file_handler): Call release_input_file only
35 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
38 * lto-plugin.c (release_input_file): New.
39 (claim_file_handler): Call release_input_file.
40 (onload): Set release_input_file.
42 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
44 * lto-plugin.c (offload_files, num_offload_files): New static variables.
45 (free_1): Use arguments instead of global variables.
46 (free_2): Free offload_files.
47 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
49 (claim_file_handler): Do not add file to claimed_files if it contains
50 offload sections without LTO sections. Add it to offload_files instead.
52 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
55 * configure: Regenerated.
57 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
58 Bernd Schmidt <bernds@codesourcery.com>
59 Andrey Turetskiy <andrey.turetskiy@intel.com>
60 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
62 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
63 (struct plugin_objfile): Add new field "offload".
64 (process_offload_section): New static function.
65 (claim_file_handler): Claim file if it contains offload sections.
67 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
68 Thomas Schwinge <thomas@codesourcery.com>
69 Ilya Verbin <ilya.verbin@intel.com>
70 Andrey Turetskiy <andrey.turetskiy@intel.com>
72 * Makefile.am (libexecsubdir): Tweak for the possibility of being
73 configured for offload compiler.
74 (accel_dir_suffix, real_target_noncanonical): New variables substituted
76 * Makefile.in: Regenerate.
77 * configure: Regenerate.
78 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
81 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
84 * configure: Regenerate.
86 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
89 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
90 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
92 * Makefile.in: Regenerated.
93 * configure: Likewise.
95 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
97 * configure.ac (--with-libiberty): New configure option.
98 * configure: Regenerate.
99 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
101 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
102 (liblto_plugin_la_DEPENDENCIES): Use them.
103 * Makefile.in: Regenerate.
105 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
108 * configure.ac: Check for -static-libgcc.
109 * configure: Regenerate.
111 2014-04-17 Jakub Jelinek <jakub@redhat.com>
114 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
115 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
116 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
117 over ../libiberty/pic/libiberty.a if the former exists.
118 * Makefile.in: Regenerated.
121 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
122 * Makefile.in: Regenerated.
124 2014-04-02 Richard Biener <rguenther@suse.de>
126 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
127 is set in COLLECT_GCC_OPTIONS.
129 2014-03-28 Richard Biener <rguenther@suse.de>
131 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
133 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
137 * configure: Regenerate.
138 * Makefile.am (AM_LDFLAGS): New variable.
139 (liblto_plugin_la_LDFLAGS): Add it.
140 * Makefile.in: Regenerate.
142 2013-09-20 Alan Modra <amodra@gmail.com>
144 * configure: Regenerate.
146 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
148 * configure: Regenerated.
150 2012-05-29 Joseph Myers <joseph@codesourcery.com>
152 * lto-plugin.c: Fix typo.
154 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
156 * configure: Regenerated.
158 2012-02-22 Kai Tietz <ktietz@redhat.com>
161 * lto-plugin.c (PRI_LL): New macro.
162 (dump_symtab): Use PRI_LL instead of ll in print.
163 (process_symtab): Use PRI_LL instead of ll in scan.
165 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
167 * configure: Regenerate.
169 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
171 * configure: Regenerate.
173 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
175 * configure: Regenerate.
177 2011-10-02 Jan Hubicka <jh@suse.cz>
180 * lto-plugin.c (get_symbols_v2): New variable.
181 (write_resolution): Use V2 API when available.
182 (onload): Handle LDPT_GET_SYMBOLS_V2.
184 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
185 Andi Kleen <ak@linux.intel.com>
188 * lto-plugin.c (sym_aux): Change id to unsigned long long.
189 (plugin_symtab): Likewise.
190 (dump_symtab): Likewise.
191 (resolve_conflicts): Likewise.
192 (process_symtab): Likewise.
194 2011-08-10 Richard Guenther <rguenther@suse.de>
198 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
199 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
200 * configure: Regenerate.
201 * Makefile.in: Likewise.
202 * aclocal.m4: Likewise.
204 2011-04-20 Jim Meyering <meyering@redhat.com>
206 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
208 2011-04-05 Richard Guenther <rguenther@suse.de>
211 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
213 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
215 * Makefile.in: Regenerate.
216 * aclocal.m4: Regenerate.
217 * configure: Regenerate.
219 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
221 * Makefile.am (all-local): Rename from 'all'.
222 * Makefile.in: Regenerate.
224 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
227 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
228 (liblto_plugin_la_LDFLAGS): Add -module.
229 (copy_lto_plugin): Renamed to...
230 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
232 * Makefile.in: Rebuild.
234 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
237 * Makefile.am (Wc): New helper for encoding -Wc,.
238 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
239 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
240 * Makefile.in: Regenerated.
242 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
246 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
249 * Makefile.am (Wl): New helper for encoding -Wl,.
250 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
251 * Makefile.in: Regenerated.
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-01-25 Ian Lance Taylor <iant@google.com>
262 * lto-plugin.c (gold_version): New static variable.
263 (all_symbols_read_handler): Don't check pass_through_items if
264 using gold 1.11 or later.
265 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
267 2011-01-12 Richard Guenther <rguenther@suse.de>
270 * lto-plugin.c (parse_table_entry): Use memcpy to access
273 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
275 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
276 * Makefile.in: Regenerate.
278 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
282 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
284 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
285 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
286 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
287 * Makefile.in: Regenerate.
289 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
293 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
294 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
295 * configure: Regenerate.
296 * config.h.in: Likewise.
298 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
302 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
303 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
304 override -bindir setting.
305 * aclocal.m4: Regenerate.
306 * configure: Regenerate.
307 * Makefile.in: Regenerate.
309 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
311 * config.h.in: Regenerated.
312 * configure: Regenerated.
313 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
314 * lto-plugin.c (WIFEXITED): Define default.
315 (WEXITSTATUS): Likeiwse.
317 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
319 * config.h.in: Regenerated.
320 * configure: Regenerated.
321 * Makefile.in: Regenerated.
322 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
323 * lto-plugin.c: Include sys/wait.h conditionally.
324 * aclocal.m4: Regenerated.
326 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
328 * lto-plugin.c (add_output_files): Fix memory leak.
330 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
334 * configure.ac: Add AC_TYPE_INT64_T test.
335 * config.h.in: Regenerate.
336 * configure: Likewise.
337 * lto-plugin.c (debug): Use char not bool.
339 (check_1): Rename from check, and use int not bool for gate argument.
340 (check): Macro wrapper for the above to coerce gate argument into
341 boolean-valued integer in case it has pointer type.
342 (parse_table_entry): Use 0 not false.
343 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
344 into two 32-bit parts and printing as hex ints.
346 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
349 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
351 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
354 * lto-plugin.h: Delete.
355 * lto-plugin-elf.c: Likewise.
356 * lto-plugin-coff.c: Likewise.
357 * configure.ac: Don't use libelf, don't source config.gcc.
358 (LIBELFLIBS): Delete.
360 (LTO_FORMAT): Delete.
361 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
362 (config.h): Add AC_CONFIG_HEADERS directive.
363 * Makefile.am (LIBELFLIBS): Delete.
365 (LTO_FORMAT): Delete.
367 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
368 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
369 any object-format-specific source file in the link.
370 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
371 * config.h.in: Generate.
372 * configure: Regenerate.
373 * Makefile.in: Likewise.
374 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
375 (LTO_SEGMENT_NAME): New definition.
376 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
377 (LTO_SECTION_PREFIX_LEN): New definition.
378 (struct sym_aux): Struct definition moved here from lto-plugin.h.
379 (struct plugin_symtab): Likewise.
380 (struct plugin_objfile): Likewise.
381 (struct plugin_objfile): New struct def.
382 (enum symbol_style): New enum type.
383 (add_symbols): Make static.
384 (claimed_files): Likewise.
385 (num_claimed_files): Likewise.
386 (sym_style): New global.
387 (check): Make static.
388 (parse_table_entry): Likewise. Respect sym_style when extracting
389 symbol from symtab entry.
390 (translate): Make static.
391 (resolve_conflicts): Likewise.
392 (process_symtab): New function, per-section callback version of
393 old object-format-specific handling from deleted lto-plugin-elf.c.
394 (claim_file_handler): Convert ELF-specific version from deleted
395 lto-plugin-elf.c to simple_object interface and move here.
396 (process_options): Allow new '-sym-style=' option.
397 (onload): Don't call deleted onload_format_checks hook.
399 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
401 * lto-plugin.c (dump_symtab): Correct printf argument type.
402 (finish_conflict_resolution): Initialize resolution.
404 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
407 * configure.ac: Add AC_CANONICAL_SYSTEM.
408 * configure: Regenerated.
410 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
412 * configure.ac: Source config.gcc to determine lto_binary_reader.
413 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
414 * Makefile.am (LTO_FORMAT): Import.
415 (liblto_plugin_la_SOURCES): Add object format dependent module
416 defined by LTO_FORMAT.
417 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
418 and work around libtool warning.
419 * configure: Regenerate.
420 * Makefile.in: Likewise.
421 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
422 (struct sym_aux): Likewise.
423 (struct plugin_symtab): Likewise.
424 (struct plugin_file_info): Likewise.
425 (LTO_SECTION_PREFIX): Likewise.
426 (add_symbols): Make non-static.
427 (claimed_files): Likewise.
428 (num_claimed_files): Likewise.
430 (parse_table_entry): Likewise.
431 (translate): Likewise.
432 (resolve_conflicts): Likewise.
433 (process_symtab): Move to new lto-plugin-elf.c object format dependent
435 (claim_file_handler): Likewise, and make non-static.
436 (onload): Call new onload_format_checks function.
437 * lto-plugin.h: New file.
438 (LTO_SECTION_PREFIX): Move here.
439 (struct sym_aux): Likewise.
440 (struct plugin_symtab): Likewise.
441 (struct plugin_file_info): Likewise.
442 (claim_file_handler): Add new function prototype.
443 (onload_format_checks): Likewise.
444 (check): Declare extern.
445 (translate): Likewise.
446 (parse_table_entry): Likewise.
447 (resolve_conflicts): Likewise.
448 (add_symbols): Likewise.
449 (claimed_files): Likewise.
450 (num_claimed_files): Likewise.
451 * lto-plugin-elf.c (process_symtab): Move here.
452 (claim_file_handler): Likewise, and make non-static.
453 (onload_format_checks): New function factored out from onload.
454 * lto-plugin-coff.c (claim_file_handler): New function stub.
455 (onload_format_checks): Likewise.
457 2010-08-05 Andi Kleen <ak@linux.intel.com>
459 * lto-plugin.c: Include <hashtab.h>
460 (sym_aux): Add next_conflict field to save conflict chains.
461 (plugin_file_info): Add conflicts symtab.
462 (parse_table_entry): Initialize aux->next_conflict.
463 (process_symtab): Increment found.
465 (finish_conflict_resolution): Add.
467 (write_resolution): Remove symbols loop and move into
468 dump_symtab. Call dump_symtab for main symbol and conflicts table.
469 Call free_symtab to free conflicts table.
473 (symbol_strength): Add.
474 (resolve_conflicts): Add.
475 (claim_file_handler): Add n variable. Check return value of
476 process_symtab. Call resolve_conflicts.
478 2010-07-27 Andi Kleen <ak@linux.intel.com>
480 * lto-plugin.c (translate): Remove debug fprintf.
482 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
485 * lto-plugin.c (translate): Cast to unsigned long.
487 2010-07-23 Andi Kleen <ak@linux.intel.com>
490 * lto-plugin.c (sym_aux): Add.
491 (plugin_symtab): Remove slots. Add aux and id.
492 (parse_table_entry): Change to use aux instead of slots.
493 (LTO_SECTION_PREFIX): Add.
494 (translate): Improve buffer allocation. Change to append
495 symbols to existing out buffer.
496 (get_section): Remove.
497 (process_symtab): Add.
498 (free_2): Free symtab->aux.
499 (write_resolution): Handle aux instead of slots.
500 Print sub id to resolution file.
501 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
502 calls with call to process_symtab.
504 2010-07-22 Richard Guenther <rguenther@suse.de>
506 * Makefile.am: New copy_lto_plugin rule to install the plugin
508 * Makefile.in: Regenerated.
510 2010-05-21 Richard Guenther <rguenther@suse.de>
512 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
514 2010-05-07 Richard Guenther <rguenther@suse.de>
516 * lto-plugin.c (free_2): Do not free resolution_file.
517 (write_resolution): Check that we were passed a resolution file.
518 (all_symbols_read_handler): Adjust.
519 (cleanup_handler): Do not remove the resolution file.
520 (process_option): Handle -fresolution=.
522 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
525 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
526 * Makefile.in: Regenerate.
528 2010-04-23 Richard Guenther <rguenther@suse.de>
531 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
532 (translate): Likewise.
533 (all_symbols_read_handler): Likewise.
534 (claim_file_handler): Likewise.
535 (process_option): Likewise.
536 (add_output_files): Likewise. Remove filename length limit.
538 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
540 * Makefile.in: Regenerate.
541 * aclocal.m4: Regenerate.
543 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
546 * lto-plugin.c (cleanup_handler): Delete temporary output files.
548 2010-01-11 Richard Guenther <rguenther@suse.de>
551 * Makefile.am: Disable dependencies.
552 * Makefile.in: Regenerated.
554 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
557 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
560 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
563 * configure: Regenerated.
564 * Makefile.in: Likewise.
566 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
569 * lto-plugin.c (claim_file_handler): Print offsets in hex.
571 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
573 * lto-plugin.c (write_resolution): Assume resolution_file is set.
574 Print the symbol name.
575 (all_symbols_read_handler): Create a resolution file.
577 (cleanup_handler): Remove the resolution file.
578 (process_option): Drop the -resolution option.
580 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
582 * lto-plugin.c (temp_obj_dir_name): Remove.
583 (arguments_file_name): New.
584 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
585 (exec_lto_wrapper): Create arguments file with make_temp_file.
586 (cleanup_handler): Don't remove the temporary directory. Remove the
588 (onload): Don't create the temporary directory.
590 2009-11-04 Richard Guenther <rguenther@suse.de>
591 Rafael Avila de Espindola <espindola@google.com>
593 * lto-plugin.c (plugin_file_info): Remove temp field.
594 (cleanup_handler): Don't delete temporary objects.
595 (claim_file_handler): Don't create temporary objects.
597 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
601 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
604 * lto-plugin.c (claim_file_handler): Close files that we created.
606 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
608 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
611 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
614 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
615 * configure: Regenerate.
617 2009-10-26 Richard Guenther <rguenther@suse.de>
619 * configure.ac: Use AM_MAINTAINER_MODE.
620 * acinclude.m4: Remove.
621 * configure: Re-generate.
622 * Makefile.in: Likewise.
623 * aclocal.m4: Likewise.
625 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
628 * configure: Regenerate.
629 * configure.ac: Add AC_TYPE_UINT64_T.
631 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
633 * lto-plugin.c (message): New variable.
634 (check): New function.
635 (parse_table_entry, translate, write_resolution,add_output_files,
636 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
638 (cleanup_handler): Use check instead of assert. Remove the arguments
641 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
643 * lto-plugin.c (resolution_file): New.
644 (free_1): Update comment.
645 (free_2): Free resolution_file.
646 (write_resolution): Write resolution to specified file. Use the
647 syms array from the symbol table.
648 (all_symbols_read_handler): Delay call to free_1 past call to
650 (process_option): Add a -resolution option.
652 2009-10-13 Richard Guenther <rguenther@suse.de>
654 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
656 * Makefile.in: Regenerated.
658 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
660 * lto-plugin.c (add_input_library): New.
661 (all_symbols_read_handler): Use add_input_library for items that
663 (process_option): Fit in 80 columns.
664 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
666 2009-10-02 Diego Novillo <dnovillo@google.com>
668 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
669 and -D_FILE_OFFSET_BITS=64.
670 * configure.ac: Add AC_SYS_LARGEFILE.
671 * configure: Regenerate.
672 * Makefile.in: Regenerate.
673 * lto-plugin.c: Fix copyright boilerplate.
675 2009-10-02 Diego Novillo <dnovillo@google.com>
677 * Makefile.am (ACLOCAL_AMFLAGS): Define.
678 * aclocal.m4: Regenerate with aclocal-2.64
679 * acinclude.m4: Remove.
680 * Makefile.in: Regenerate with automake-1.11
681 * configure.ac (AC_PREREQ): Update to 2.64.
682 * configure: Regenerate.
684 2009-10-02 Diego Novillo <dnovillo@google.com>
686 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
687 and -D_FILE_OFFSET_BITS=64.
688 * configure.ac: Add AC_SYS_LARGEFILE.
689 * configure: Regenerate.
690 * Makefile.in: Regenerate.
691 * lto-plugin.c: Fix copyright boilerplate.
693 2009-10-02 Diego Novillo <dnovillo@google.com>
695 * Makefile.am (ACLOCAL_AMFLAGS): Define.
696 * aclocal.m4: Regenerate with aclocal-2.64
697 * acinclude.m4: Remove.
698 * Makefile.in: Regenerate with automake-1.11
699 * configure.ac (AC_PREREQ): Update to 2.64.
700 * configure: Regenerate.
702 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
704 * Makefile.am (liblto_plugin_la_SOURCES): Remove
705 $(top_srcdir)/../gcc/lto/common.c
706 * Makefile.in: Regenerate.
708 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
710 * lto-plugin.c (pass_through_items): New.
711 (num_pass_through_items): New.
712 (all_symbols_read_handler): Update to use the -pass-through option.
713 (process_option): Replace -libgcc with -pass-through.
715 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
717 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
718 register_cleanup to be set.
720 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
722 * Makefile.am: Remove all reference to ltosymtab.
723 * Makefile.in: Regenerate.
724 * lto-symtab.c: Remove.
726 2009-05-21 Diego Novillo <dnovillo@google.com>
728 * configure.ac: Remove call to AC_CHECK_GELF.
729 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
730 * acinclude.m4: Do not include ../config/libelf.m4
731 * Makefile.am (LIBELFLIBS): Define.
733 (AM_CPPFLAGS): Add $(LIBELFINC).
734 (ltosymtab_LDADD): Add $(LIBELFLIBS).
735 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
736 * lto-plugin.c: Always include <gelf.h>
737 * lto-symtab.c: Likewise.
738 * configure: Regenerate.
739 * Makefile.in: Regenerate.
741 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
743 * lto-plugin.c (libgcc_filename): New.
744 (all_symbols_read_handler): Pass libgcc to the linker.
745 (all_symbols_read_handler): Parse -libgcc
747 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
749 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
750 * Makefile.in: Regenerate.
751 * lto-plugin.c (add_output_files): Argument is now a FILE.
752 (exec_lto_wrapper): Use writeargv and pex.
754 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
757 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
758 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
761 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
763 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
765 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
767 * lto-plugin.c: Include libiberty.h.
768 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
771 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
773 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
776 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
778 * lto-plugin.c (plugin_file_info): Remove fd and elf.
779 (parse_table_entry): strdup entry->name and entry->comdat_key.
780 (free_1): Free name and comdat_key. Don't close the file. Don't call
782 (claim_file_handler): Always call elf_end.
784 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
786 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
787 -D_FILE_OFFSET_BITS=64
788 * Makefile.in: Regenerate
790 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
792 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
793 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
794 * Makefile.in: Regenerate.
795 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
796 * configure: Regenerate.
797 * configure.ac: Add AC_SUBST(target_noncanonical).
799 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
801 * lto-plugin.c: Include stdbool.h.
802 (debug, nop): Declare as bool.
804 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
806 * lto-plugin.c (nop): New.
807 (use_original_files): New.
808 (all_symbols_read_handler): Call use_original_files if nop is true.
809 (process_option): Parse the -nop option.
811 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
813 * lto-plugin.c (debug): New.
814 (exec_lto_wrapper): Print argv if debug is true.
815 (process_option): Process the -debug command line option.
817 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
819 * lto-plugin.c (process_option): The argument is now a single option,
820 not a space separated list.
822 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
824 * lto-plugin.c: Include sys/types.h and sys/wait.h
825 (output_files, num_output_files, lto_wrapper_argv,
826 lto_wrapper_num_args): New.
827 (free_2): Free output_files.
828 (write_resolution): Disable.
829 (add_output_files): New.
830 (exec_lto_wrapper): New.
831 (all_symbols_read_handler): Run lto-wrapper.
832 (claim_file_handler): Free lto_file.name and call elf_end.
833 (process_option): New.
835 2008-11-26 Rafael Espindola <espindola@google.com>
837 * lto-plugin.c (add_input_file): New.
838 (get_section): Return NULL if get_section fails.
839 (write_resolution): New.
840 (all_symbols_read_handler): Call add_input_file.
841 (claim_file_handler): Unlink the correct file.
842 (onload): Record add_input_file.
844 2008-09-23 Rafael Espindola <espindola@google.com>
846 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
847 Update the location of common.c.
848 * Makefile.in: Regenerate.
849 * common.c: Moved to gcc/lto.
850 * common.h: Moved to gcc/lto.
851 * lto-plugin.c: Update the location of common.h.
852 * lto-symtab.c: Update the location of common.h.
854 2008-09-23 Rafael Espindola <espindola@google.com>
856 * common.c: Include common.h.
857 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
859 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
862 2008-09-23 Rafael Espindola <espindola@google.com>
864 * lto-plugin.c (plugin_file_info): Add temp.
865 (cleanup_handler): Only delete temporary files.
866 (claim_file_handler): Initialize lto_file.temp.
868 2008-09-23 Rafael Espindola <espindola@google.com>
870 * plugin-api.h: Moved to include.
872 2008-09-23 Rafael Espindola <espindola@google.com>
874 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
877 2008-09-22 Rafael Espindola <espindola@google.com>
879 * plugin-api.h: Copy from binutils' cvs.
881 2008-09-22 Rafael Espindola <espindola@google.com>
883 * lto-symtab.c (get_symbols, add_symbols): Update signature.
884 * plugin-api.h: Copy from binutils' cvs.
886 2008-09-22 Rafael Espindola <espindola@google.com>
888 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
891 2008-09-10 Rafael Espindola <espindola@google.com>
893 * lto-plugin.c (onload): add missing break statements and asserts.
894 * lto-symtab.c (claim_file_handler): Make it static.
895 (all_symbols_read_handler): Make it static.
896 (all_file_handles): Make it static.
897 (num_file_handles): Make it static.
898 (register_claim_file): Make it static.
899 (register_object): Indent properly.
901 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
903 * Makefile.am (ltosymtab_LDADD): Add -lelf.
904 * Makefiel.in: Regenerate.
905 * lto-plugin.c: Include ar.h.
906 (claim_file_handler): Handle file->offset != 0.
907 * lto-symtab.c: Include gelf.h.
908 (all_file_handles): Change type.
909 (register_object): New.
910 (register_file): Add support for archives.
911 (resolve): Update to new type of all_file_handles.
912 (print): Update to new type of all_file_handles.
913 (free_all): Update to new type of all_file_handles.
914 (main): Update to new type of all_file_handles.
916 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
918 * lto-plugin.c (get_string_table): Remove.
919 (get_section): Use elf_strptr instead of get_string_table.
921 2008-09-08 Doug Kwan <dougkwan@google.com>
923 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
924 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
926 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
928 * Makefile.am (ltosymtab_SOURCES): add common.c.
929 (ltosymtab_CFLAGS): New.
930 (liblto_plugin_la_SOURCES): Add common.c.
931 * Makefile.in: Regenerate.
934 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
935 (plugin_symtab): New.
936 (plugin_file_info): New.
937 (register_all_symbols_read): New.
939 (claimed_files): New.
940 (num_claimed_files): New.
941 (translate): Don't drop the slot number.
944 (all_symbols_read_handler): New.
945 (claim_file_handler): Record every claimed file.
946 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
948 * lto-symtab.c: Include stdlib.h, string.h and common.h.
949 (current_file_handle): Remove.
950 (ld_plugin_all_symbols_read_handler): New.
951 (plugin_handle): New.
953 (all_file_handles): New.
954 (num_file_handles): New.
956 (register_all_symbols_read): New.
957 (add_symbols): Don't print the symbols, just record them.
958 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
960 (load_plugin): Use plugin_handle.
961 (register_file): Add the file handle to all_file_handles.
964 (unload_plugin): New.
966 (main): Call all_symbols_read_handler and free resources.
968 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
970 * Makefile.am (AM_CFLAGS): New.
971 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
972 (lib_LTLIBRARIES): New.
973 (liblto_plugin_la_SOURCES): New.
974 (liblto_plugin_la_LIBADD): New.
975 * Makefile.in: Regenerate.
976 * acinclude.m4: Don't include ../config/acx.m4 and
977 ../config/no-executables.m4.
978 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
980 * aclocal.m4: Regenerate.
981 * configure: Regenerate.
982 * configure.ac: Use AM_PROG_LIBTOOL.
984 * lto-symtab.c: Rewrite to use the plugin.
987 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
989 * configure: Regenerate.
990 * configure.ac: Use AC_CHECK_GELF.
991 * lto-symtab.c: Include gelf.h.
992 (get_string_table): Use size independent API.
993 (printTable): Use lld to print 64 bit integers.
995 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
997 * lto-symtab.c (parse_table_entry): Assert entry->kind and
998 entry->visibility are valid.
1000 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1001 * lto-symtab.c (table_entry): Add comdat.
1002 (parse_table_entry): Read comdat.
1004 2008-08-21 Rafael Espindola <espindola@google.com>
1008 * acinclude.m4: New.
1011 * configure.ac: New.
1012 * lto-symtab.c: New.