1 2015-04-22 Release Manager
5 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
7 * lto-plugin.c (release_input_file): Removed.
8 (claim_file_handler): Don't call release_input_file.
9 (onload): Don't set release_input_file.
11 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
13 * lto-plugin.c (claim_file_handler): Pass handle to
16 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
18 * lto-plugin.c (claim_file_handler): Call release_input_file only
21 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
23 * lto-plugin.c (claim_file_handler): Call release_input_file only
26 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
29 * lto-plugin.c (release_input_file): New.
30 (claim_file_handler): Call release_input_file.
31 (onload): Set release_input_file.
33 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
35 * lto-plugin.c (offload_files, num_offload_files): New static variables.
36 (free_1): Use arguments instead of global variables.
37 (free_2): Free offload_files.
38 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
40 (claim_file_handler): Do not add file to claimed_files if it contains
41 offload sections without LTO sections. Add it to offload_files instead.
43 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
46 * configure: Regenerated.
48 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
49 Bernd Schmidt <bernds@codesourcery.com>
50 Andrey Turetskiy <andrey.turetskiy@intel.com>
51 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
53 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
54 (struct plugin_objfile): Add new field "offload".
55 (process_offload_section): New static function.
56 (claim_file_handler): Claim file if it contains offload sections.
58 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
59 Thomas Schwinge <thomas@codesourcery.com>
60 Ilya Verbin <ilya.verbin@intel.com>
61 Andrey Turetskiy <andrey.turetskiy@intel.com>
63 * Makefile.am (libexecsubdir): Tweak for the possibility of being
64 configured for offload compiler.
65 (accel_dir_suffix, real_target_noncanonical): New variables substituted
67 * Makefile.in: Regenerate.
68 * configure: Regenerate.
69 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
72 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
75 * configure: Regenerate.
77 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
80 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
81 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
83 * Makefile.in: Regenerated.
84 * configure: Likewise.
86 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
88 * configure.ac (--with-libiberty): New configure option.
89 * configure: Regenerate.
90 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
92 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
93 (liblto_plugin_la_DEPENDENCIES): Use them.
94 * Makefile.in: Regenerate.
96 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
99 * configure.ac: Check for -static-libgcc.
100 * configure: Regenerate.
102 2014-04-17 Jakub Jelinek <jakub@redhat.com>
105 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
106 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
107 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
108 over ../libiberty/pic/libiberty.a if the former exists.
109 * Makefile.in: Regenerated.
112 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
113 * Makefile.in: Regenerated.
115 2014-04-02 Richard Biener <rguenther@suse.de>
117 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
118 is set in COLLECT_GCC_OPTIONS.
120 2014-03-28 Richard Biener <rguenther@suse.de>
122 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
124 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
126 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
128 * configure: Regenerate.
129 * Makefile.am (AM_LDFLAGS): New variable.
130 (liblto_plugin_la_LDFLAGS): Add it.
131 * Makefile.in: Regenerate.
133 2013-09-20 Alan Modra <amodra@gmail.com>
135 * configure: Regenerate.
137 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
139 * configure: Regenerated.
141 2012-05-29 Joseph Myers <joseph@codesourcery.com>
143 * lto-plugin.c: Fix typo.
145 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
147 * configure: Regenerated.
149 2012-02-22 Kai Tietz <ktietz@redhat.com>
152 * lto-plugin.c (PRI_LL): New macro.
153 (dump_symtab): Use PRI_LL instead of ll in print.
154 (process_symtab): Use PRI_LL instead of ll in scan.
156 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
158 * configure: Regenerate.
160 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
162 * configure: Regenerate.
164 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
166 * configure: Regenerate.
168 2011-10-02 Jan Hubicka <jh@suse.cz>
171 * lto-plugin.c (get_symbols_v2): New variable.
172 (write_resolution): Use V2 API when available.
173 (onload): Handle LDPT_GET_SYMBOLS_V2.
175 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
176 Andi Kleen <ak@linux.intel.com>
179 * lto-plugin.c (sym_aux): Change id to unsigned long long.
180 (plugin_symtab): Likewise.
181 (dump_symtab): Likewise.
182 (resolve_conflicts): Likewise.
183 (process_symtab): Likewise.
185 2011-08-10 Richard Guenther <rguenther@suse.de>
189 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
190 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
191 * configure: Regenerate.
192 * Makefile.in: Likewise.
193 * aclocal.m4: Likewise.
195 2011-04-20 Jim Meyering <meyering@redhat.com>
197 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
199 2011-04-05 Richard Guenther <rguenther@suse.de>
202 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
204 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
206 * Makefile.in: Regenerate.
207 * aclocal.m4: Regenerate.
208 * configure: Regenerate.
210 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
212 * Makefile.am (all-local): Rename from 'all'.
213 * Makefile.in: Regenerate.
215 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
218 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
219 (liblto_plugin_la_LDFLAGS): Add -module.
220 (copy_lto_plugin): Renamed to...
221 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
223 * Makefile.in: Rebuild.
225 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
228 * Makefile.am (Wc): New helper for encoding -Wc,.
229 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
230 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
231 * Makefile.in: Regenerated.
233 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
237 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
240 * Makefile.am (Wl): New helper for encoding -Wl,.
241 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
242 * Makefile.in: Regenerated.
244 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
247 * Makefile.am (Wl): New helper for encoding -Wl,.
248 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
249 * Makefile.in: Regenerated.
251 2011-01-25 Ian Lance Taylor <iant@google.com>
253 * lto-plugin.c (gold_version): New static variable.
254 (all_symbols_read_handler): Don't check pass_through_items if
255 using gold 1.11 or later.
256 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
258 2011-01-12 Richard Guenther <rguenther@suse.de>
261 * lto-plugin.c (parse_table_entry): Use memcpy to access
264 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
266 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
267 * Makefile.in: Regenerate.
269 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
273 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
276 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
277 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
278 * Makefile.in: Regenerate.
280 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
284 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
285 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
286 * configure: Regenerate.
287 * config.h.in: Likewise.
289 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
293 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
294 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
295 override -bindir setting.
296 * aclocal.m4: Regenerate.
297 * configure: Regenerate.
298 * Makefile.in: Regenerate.
300 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
302 * config.h.in: Regenerated.
303 * configure: Regenerated.
304 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
305 * lto-plugin.c (WIFEXITED): Define default.
306 (WEXITSTATUS): Likeiwse.
308 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
310 * config.h.in: Regenerated.
311 * configure: Regenerated.
312 * Makefile.in: Regenerated.
313 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
314 * lto-plugin.c: Include sys/wait.h conditionally.
315 * aclocal.m4: Regenerated.
317 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
319 * lto-plugin.c (add_output_files): Fix memory leak.
321 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
325 * configure.ac: Add AC_TYPE_INT64_T test.
326 * config.h.in: Regenerate.
327 * configure: Likewise.
328 * lto-plugin.c (debug): Use char not bool.
330 (check_1): Rename from check, and use int not bool for gate argument.
331 (check): Macro wrapper for the above to coerce gate argument into
332 boolean-valued integer in case it has pointer type.
333 (parse_table_entry): Use 0 not false.
334 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
335 into two 32-bit parts and printing as hex ints.
337 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
340 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
342 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
345 * lto-plugin.h: Delete.
346 * lto-plugin-elf.c: Likewise.
347 * lto-plugin-coff.c: Likewise.
348 * configure.ac: Don't use libelf, don't source config.gcc.
349 (LIBELFLIBS): Delete.
351 (LTO_FORMAT): Delete.
352 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
353 (config.h): Add AC_CONFIG_HEADERS directive.
354 * Makefile.am (LIBELFLIBS): Delete.
356 (LTO_FORMAT): Delete.
358 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
359 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
360 any object-format-specific source file in the link.
361 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
362 * config.h.in: Generate.
363 * configure: Regenerate.
364 * Makefile.in: Likewise.
365 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
366 (LTO_SEGMENT_NAME): New definition.
367 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
368 (LTO_SECTION_PREFIX_LEN): New definition.
369 (struct sym_aux): Struct definition moved here from lto-plugin.h.
370 (struct plugin_symtab): Likewise.
371 (struct plugin_objfile): Likewise.
372 (struct plugin_objfile): New struct def.
373 (enum symbol_style): New enum type.
374 (add_symbols): Make static.
375 (claimed_files): Likewise.
376 (num_claimed_files): Likewise.
377 (sym_style): New global.
378 (check): Make static.
379 (parse_table_entry): Likewise. Respect sym_style when extracting
380 symbol from symtab entry.
381 (translate): Make static.
382 (resolve_conflicts): Likewise.
383 (process_symtab): New function, per-section callback version of
384 old object-format-specific handling from deleted lto-plugin-elf.c.
385 (claim_file_handler): Convert ELF-specific version from deleted
386 lto-plugin-elf.c to simple_object interface and move here.
387 (process_options): Allow new '-sym-style=' option.
388 (onload): Don't call deleted onload_format_checks hook.
390 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
392 * lto-plugin.c (dump_symtab): Correct printf argument type.
393 (finish_conflict_resolution): Initialize resolution.
395 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
398 * configure.ac: Add AC_CANONICAL_SYSTEM.
399 * configure: Regenerated.
401 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
403 * configure.ac: Source config.gcc to determine lto_binary_reader.
404 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
405 * Makefile.am (LTO_FORMAT): Import.
406 (liblto_plugin_la_SOURCES): Add object format dependent module
407 defined by LTO_FORMAT.
408 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
409 and work around libtool warning.
410 * configure: Regenerate.
411 * Makefile.in: Likewise.
412 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
413 (struct sym_aux): Likewise.
414 (struct plugin_symtab): Likewise.
415 (struct plugin_file_info): Likewise.
416 (LTO_SECTION_PREFIX): Likewise.
417 (add_symbols): Make non-static.
418 (claimed_files): Likewise.
419 (num_claimed_files): Likewise.
421 (parse_table_entry): Likewise.
422 (translate): Likewise.
423 (resolve_conflicts): Likewise.
424 (process_symtab): Move to new lto-plugin-elf.c object format dependent
426 (claim_file_handler): Likewise, and make non-static.
427 (onload): Call new onload_format_checks function.
428 * lto-plugin.h: New file.
429 (LTO_SECTION_PREFIX): Move here.
430 (struct sym_aux): Likewise.
431 (struct plugin_symtab): Likewise.
432 (struct plugin_file_info): Likewise.
433 (claim_file_handler): Add new function prototype.
434 (onload_format_checks): Likewise.
435 (check): Declare extern.
436 (translate): Likewise.
437 (parse_table_entry): Likewise.
438 (resolve_conflicts): Likewise.
439 (add_symbols): Likewise.
440 (claimed_files): Likewise.
441 (num_claimed_files): Likewise.
442 * lto-plugin-elf.c (process_symtab): Move here.
443 (claim_file_handler): Likewise, and make non-static.
444 (onload_format_checks): New function factored out from onload.
445 * lto-plugin-coff.c (claim_file_handler): New function stub.
446 (onload_format_checks): Likewise.
448 2010-08-05 Andi Kleen <ak@linux.intel.com>
450 * lto-plugin.c: Include <hashtab.h>
451 (sym_aux): Add next_conflict field to save conflict chains.
452 (plugin_file_info): Add conflicts symtab.
453 (parse_table_entry): Initialize aux->next_conflict.
454 (process_symtab): Increment found.
456 (finish_conflict_resolution): Add.
458 (write_resolution): Remove symbols loop and move into
459 dump_symtab. Call dump_symtab for main symbol and conflicts table.
460 Call free_symtab to free conflicts table.
464 (symbol_strength): Add.
465 (resolve_conflicts): Add.
466 (claim_file_handler): Add n variable. Check return value of
467 process_symtab. Call resolve_conflicts.
469 2010-07-27 Andi Kleen <ak@linux.intel.com>
471 * lto-plugin.c (translate): Remove debug fprintf.
473 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
476 * lto-plugin.c (translate): Cast to unsigned long.
478 2010-07-23 Andi Kleen <ak@linux.intel.com>
481 * lto-plugin.c (sym_aux): Add.
482 (plugin_symtab): Remove slots. Add aux and id.
483 (parse_table_entry): Change to use aux instead of slots.
484 (LTO_SECTION_PREFIX): Add.
485 (translate): Improve buffer allocation. Change to append
486 symbols to existing out buffer.
487 (get_section): Remove.
488 (process_symtab): Add.
489 (free_2): Free symtab->aux.
490 (write_resolution): Handle aux instead of slots.
491 Print sub id to resolution file.
492 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
493 calls with call to process_symtab.
495 2010-07-22 Richard Guenther <rguenther@suse.de>
497 * Makefile.am: New copy_lto_plugin rule to install the plugin
499 * Makefile.in: Regenerated.
501 2010-05-21 Richard Guenther <rguenther@suse.de>
503 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
505 2010-05-07 Richard Guenther <rguenther@suse.de>
507 * lto-plugin.c (free_2): Do not free resolution_file.
508 (write_resolution): Check that we were passed a resolution file.
509 (all_symbols_read_handler): Adjust.
510 (cleanup_handler): Do not remove the resolution file.
511 (process_option): Handle -fresolution=.
513 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
516 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
517 * Makefile.in: Regenerate.
519 2010-04-23 Richard Guenther <rguenther@suse.de>
522 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
523 (translate): Likewise.
524 (all_symbols_read_handler): Likewise.
525 (claim_file_handler): Likewise.
526 (process_option): Likewise.
527 (add_output_files): Likewise. Remove filename length limit.
529 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
531 * Makefile.in: Regenerate.
532 * aclocal.m4: Regenerate.
534 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
537 * lto-plugin.c (cleanup_handler): Delete temporary output files.
539 2010-01-11 Richard Guenther <rguenther@suse.de>
542 * Makefile.am: Disable dependencies.
543 * Makefile.in: Regenerated.
545 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
548 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
551 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
554 * configure: Regenerated.
555 * Makefile.in: Likewise.
557 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
560 * lto-plugin.c (claim_file_handler): Print offsets in hex.
562 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
564 * lto-plugin.c (write_resolution): Assume resolution_file is set.
565 Print the symbol name.
566 (all_symbols_read_handler): Create a resolution file.
568 (cleanup_handler): Remove the resolution file.
569 (process_option): Drop the -resolution option.
571 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
573 * lto-plugin.c (temp_obj_dir_name): Remove.
574 (arguments_file_name): New.
575 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
576 (exec_lto_wrapper): Create arguments file with make_temp_file.
577 (cleanup_handler): Don't remove the temporary directory. Remove the
579 (onload): Don't create the temporary directory.
581 2009-11-04 Richard Guenther <rguenther@suse.de>
582 Rafael Avila de Espindola <espindola@google.com>
584 * lto-plugin.c (plugin_file_info): Remove temp field.
585 (cleanup_handler): Don't delete temporary objects.
586 (claim_file_handler): Don't create temporary objects.
588 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
590 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
592 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
595 * lto-plugin.c (claim_file_handler): Close files that we created.
597 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
602 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
605 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
606 * configure: Regenerate.
608 2009-10-26 Richard Guenther <rguenther@suse.de>
610 * configure.ac: Use AM_MAINTAINER_MODE.
611 * acinclude.m4: Remove.
612 * configure: Re-generate.
613 * Makefile.in: Likewise.
614 * aclocal.m4: Likewise.
616 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
619 * configure: Regenerate.
620 * configure.ac: Add AC_TYPE_UINT64_T.
622 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
624 * lto-plugin.c (message): New variable.
625 (check): New function.
626 (parse_table_entry, translate, write_resolution,add_output_files,
627 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
629 (cleanup_handler): Use check instead of assert. Remove the arguments
632 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
634 * lto-plugin.c (resolution_file): New.
635 (free_1): Update comment.
636 (free_2): Free resolution_file.
637 (write_resolution): Write resolution to specified file. Use the
638 syms array from the symbol table.
639 (all_symbols_read_handler): Delay call to free_1 past call to
641 (process_option): Add a -resolution option.
643 2009-10-13 Richard Guenther <rguenther@suse.de>
645 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
647 * Makefile.in: Regenerated.
649 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
651 * lto-plugin.c (add_input_library): New.
652 (all_symbols_read_handler): Use add_input_library for items that
654 (process_option): Fit in 80 columns.
655 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
657 2009-10-02 Diego Novillo <dnovillo@google.com>
659 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
660 and -D_FILE_OFFSET_BITS=64.
661 * configure.ac: Add AC_SYS_LARGEFILE.
662 * configure: Regenerate.
663 * Makefile.in: Regenerate.
664 * lto-plugin.c: Fix copyright boilerplate.
666 2009-10-02 Diego Novillo <dnovillo@google.com>
668 * Makefile.am (ACLOCAL_AMFLAGS): Define.
669 * aclocal.m4: Regenerate with aclocal-2.64
670 * acinclude.m4: Remove.
671 * Makefile.in: Regenerate with automake-1.11
672 * configure.ac (AC_PREREQ): Update to 2.64.
673 * configure: Regenerate.
675 2009-10-02 Diego Novillo <dnovillo@google.com>
677 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
678 and -D_FILE_OFFSET_BITS=64.
679 * configure.ac: Add AC_SYS_LARGEFILE.
680 * configure: Regenerate.
681 * Makefile.in: Regenerate.
682 * lto-plugin.c: Fix copyright boilerplate.
684 2009-10-02 Diego Novillo <dnovillo@google.com>
686 * Makefile.am (ACLOCAL_AMFLAGS): Define.
687 * aclocal.m4: Regenerate with aclocal-2.64
688 * acinclude.m4: Remove.
689 * Makefile.in: Regenerate with automake-1.11
690 * configure.ac (AC_PREREQ): Update to 2.64.
691 * configure: Regenerate.
693 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
695 * Makefile.am (liblto_plugin_la_SOURCES): Remove
696 $(top_srcdir)/../gcc/lto/common.c
697 * Makefile.in: Regenerate.
699 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
701 * lto-plugin.c (pass_through_items): New.
702 (num_pass_through_items): New.
703 (all_symbols_read_handler): Update to use the -pass-through option.
704 (process_option): Replace -libgcc with -pass-through.
706 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
708 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
709 register_cleanup to be set.
711 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
713 * Makefile.am: Remove all reference to ltosymtab.
714 * Makefile.in: Regenerate.
715 * lto-symtab.c: Remove.
717 2009-05-21 Diego Novillo <dnovillo@google.com>
719 * configure.ac: Remove call to AC_CHECK_GELF.
720 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
721 * acinclude.m4: Do not include ../config/libelf.m4
722 * Makefile.am (LIBELFLIBS): Define.
724 (AM_CPPFLAGS): Add $(LIBELFINC).
725 (ltosymtab_LDADD): Add $(LIBELFLIBS).
726 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
727 * lto-plugin.c: Always include <gelf.h>
728 * lto-symtab.c: Likewise.
729 * configure: Regenerate.
730 * Makefile.in: Regenerate.
732 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
734 * lto-plugin.c (libgcc_filename): New.
735 (all_symbols_read_handler): Pass libgcc to the linker.
736 (all_symbols_read_handler): Parse -libgcc
738 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
740 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
741 * Makefile.in: Regenerate.
742 * lto-plugin.c (add_output_files): Argument is now a FILE.
743 (exec_lto_wrapper): Use writeargv and pex.
745 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
748 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
749 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
752 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
754 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
756 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
758 * lto-plugin.c: Include libiberty.h.
759 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
762 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
764 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
767 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
769 * lto-plugin.c (plugin_file_info): Remove fd and elf.
770 (parse_table_entry): strdup entry->name and entry->comdat_key.
771 (free_1): Free name and comdat_key. Don't close the file. Don't call
773 (claim_file_handler): Always call elf_end.
775 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
777 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
778 -D_FILE_OFFSET_BITS=64
779 * Makefile.in: Regenerate
781 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
783 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
784 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
785 * Makefile.in: Regenerate.
786 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
787 * configure: Regenerate.
788 * configure.ac: Add AC_SUBST(target_noncanonical).
790 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
792 * lto-plugin.c: Include stdbool.h.
793 (debug, nop): Declare as bool.
795 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
797 * lto-plugin.c (nop): New.
798 (use_original_files): New.
799 (all_symbols_read_handler): Call use_original_files if nop is true.
800 (process_option): Parse the -nop option.
802 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
804 * lto-plugin.c (debug): New.
805 (exec_lto_wrapper): Print argv if debug is true.
806 (process_option): Process the -debug command line option.
808 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
810 * lto-plugin.c (process_option): The argument is now a single option,
811 not a space separated list.
813 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
815 * lto-plugin.c: Include sys/types.h and sys/wait.h
816 (output_files, num_output_files, lto_wrapper_argv,
817 lto_wrapper_num_args): New.
818 (free_2): Free output_files.
819 (write_resolution): Disable.
820 (add_output_files): New.
821 (exec_lto_wrapper): New.
822 (all_symbols_read_handler): Run lto-wrapper.
823 (claim_file_handler): Free lto_file.name and call elf_end.
824 (process_option): New.
826 2008-11-26 Rafael Espindola <espindola@google.com>
828 * lto-plugin.c (add_input_file): New.
829 (get_section): Return NULL if get_section fails.
830 (write_resolution): New.
831 (all_symbols_read_handler): Call add_input_file.
832 (claim_file_handler): Unlink the correct file.
833 (onload): Record add_input_file.
835 2008-09-23 Rafael Espindola <espindola@google.com>
837 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
838 Update the location of common.c.
839 * Makefile.in: Regenerate.
840 * common.c: Moved to gcc/lto.
841 * common.h: Moved to gcc/lto.
842 * lto-plugin.c: Update the location of common.h.
843 * lto-symtab.c: Update the location of common.h.
845 2008-09-23 Rafael Espindola <espindola@google.com>
847 * common.c: Include common.h.
848 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
850 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
853 2008-09-23 Rafael Espindola <espindola@google.com>
855 * lto-plugin.c (plugin_file_info): Add temp.
856 (cleanup_handler): Only delete temporary files.
857 (claim_file_handler): Initialize lto_file.temp.
859 2008-09-23 Rafael Espindola <espindola@google.com>
861 * plugin-api.h: Moved to include.
863 2008-09-23 Rafael Espindola <espindola@google.com>
865 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
868 2008-09-22 Rafael Espindola <espindola@google.com>
870 * plugin-api.h: Copy from binutils' cvs.
872 2008-09-22 Rafael Espindola <espindola@google.com>
874 * lto-symtab.c (get_symbols, add_symbols): Update signature.
875 * plugin-api.h: Copy from binutils' cvs.
877 2008-09-22 Rafael Espindola <espindola@google.com>
879 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
882 2008-09-10 Rafael Espindola <espindola@google.com>
884 * lto-plugin.c (onload): add missing break statements and asserts.
885 * lto-symtab.c (claim_file_handler): Make it static.
886 (all_symbols_read_handler): Make it static.
887 (all_file_handles): Make it static.
888 (num_file_handles): Make it static.
889 (register_claim_file): Make it static.
890 (register_object): Indent properly.
892 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
894 * Makefile.am (ltosymtab_LDADD): Add -lelf.
895 * Makefiel.in: Regenerate.
896 * lto-plugin.c: Include ar.h.
897 (claim_file_handler): Handle file->offset != 0.
898 * lto-symtab.c: Include gelf.h.
899 (all_file_handles): Change type.
900 (register_object): New.
901 (register_file): Add support for archives.
902 (resolve): Update to new type of all_file_handles.
903 (print): Update to new type of all_file_handles.
904 (free_all): Update to new type of all_file_handles.
905 (main): Update to new type of all_file_handles.
907 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
909 * lto-plugin.c (get_string_table): Remove.
910 (get_section): Use elf_strptr instead of get_string_table.
912 2008-09-08 Doug Kwan <dougkwan@google.com>
914 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
915 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
917 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
919 * Makefile.am (ltosymtab_SOURCES): add common.c.
920 (ltosymtab_CFLAGS): New.
921 (liblto_plugin_la_SOURCES): Add common.c.
922 * Makefile.in: Regenerate.
925 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
926 (plugin_symtab): New.
927 (plugin_file_info): New.
928 (register_all_symbols_read): New.
930 (claimed_files): New.
931 (num_claimed_files): New.
932 (translate): Don't drop the slot number.
935 (all_symbols_read_handler): New.
936 (claim_file_handler): Record every claimed file.
937 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
939 * lto-symtab.c: Include stdlib.h, string.h and common.h.
940 (current_file_handle): Remove.
941 (ld_plugin_all_symbols_read_handler): New.
942 (plugin_handle): New.
944 (all_file_handles): New.
945 (num_file_handles): New.
947 (register_all_symbols_read): New.
948 (add_symbols): Don't print the symbols, just record them.
949 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
951 (load_plugin): Use plugin_handle.
952 (register_file): Add the file handle to all_file_handles.
955 (unload_plugin): New.
957 (main): Call all_symbols_read_handler and free resources.
959 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
961 * Makefile.am (AM_CFLAGS): New.
962 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
963 (lib_LTLIBRARIES): New.
964 (liblto_plugin_la_SOURCES): New.
965 (liblto_plugin_la_LIBADD): New.
966 * Makefile.in: Regenerate.
967 * acinclude.m4: Don't include ../config/acx.m4 and
968 ../config/no-executables.m4.
969 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
971 * aclocal.m4: Regenerate.
972 * configure: Regenerate.
973 * configure.ac: Use AM_PROG_LIBTOOL.
975 * lto-symtab.c: Rewrite to use the plugin.
978 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
980 * configure: Regenerate.
981 * configure.ac: Use AC_CHECK_GELF.
982 * lto-symtab.c: Include gelf.h.
983 (get_string_table): Use size independent API.
984 (printTable): Use lld to print 64 bit integers.
986 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
988 * lto-symtab.c (parse_table_entry): Assert entry->kind and
989 entry->visibility are valid.
991 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
992 * lto-symtab.c (table_entry): Add comdat.
993 (parse_table_entry): Read comdat.
995 2008-08-21 Rafael Espindola <espindola@google.com>
1002 * configure.ac: New.
1003 * lto-symtab.c: New.