1 2015-07-16 Release Manager
5 2015-04-22 Release Manager
9 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
11 * lto-plugin.c (release_input_file): Removed.
12 (claim_file_handler): Don't call release_input_file.
13 (onload): Don't set release_input_file.
15 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
17 * lto-plugin.c (claim_file_handler): Pass handle to
20 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
22 * lto-plugin.c (claim_file_handler): Call release_input_file only
25 2015-01-28 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>
33 * lto-plugin.c (release_input_file): New.
34 (claim_file_handler): Call release_input_file.
35 (onload): Set release_input_file.
37 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
39 * lto-plugin.c (offload_files, num_offload_files): New static variables.
40 (free_1): Use arguments instead of global variables.
41 (free_2): Free offload_files.
42 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
44 (claim_file_handler): Do not add file to claimed_files if it contains
45 offload sections without LTO sections. Add it to offload_files instead.
47 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
50 * configure: Regenerated.
52 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
53 Bernd Schmidt <bernds@codesourcery.com>
54 Andrey Turetskiy <andrey.turetskiy@intel.com>
55 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
57 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
58 (struct plugin_objfile): Add new field "offload".
59 (process_offload_section): New static function.
60 (claim_file_handler): Claim file if it contains offload sections.
62 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
63 Thomas Schwinge <thomas@codesourcery.com>
64 Ilya Verbin <ilya.verbin@intel.com>
65 Andrey Turetskiy <andrey.turetskiy@intel.com>
67 * Makefile.am (libexecsubdir): Tweak for the possibility of being
68 configured for offload compiler.
69 (accel_dir_suffix, real_target_noncanonical): New variables substituted
71 * Makefile.in: Regenerate.
72 * configure: Regenerate.
73 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
76 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
79 * configure: Regenerate.
81 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
84 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
85 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
87 * Makefile.in: Regenerated.
88 * configure: Likewise.
90 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
92 * configure.ac (--with-libiberty): New configure option.
93 * configure: Regenerate.
94 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
96 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
97 (liblto_plugin_la_DEPENDENCIES): Use them.
98 * Makefile.in: Regenerate.
100 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
103 * configure.ac: Check for -static-libgcc.
104 * configure: Regenerate.
106 2014-04-17 Jakub Jelinek <jakub@redhat.com>
109 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
110 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
111 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
112 over ../libiberty/pic/libiberty.a if the former exists.
113 * Makefile.in: Regenerated.
116 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
117 * Makefile.in: Regenerated.
119 2014-04-02 Richard Biener <rguenther@suse.de>
121 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
122 is set in COLLECT_GCC_OPTIONS.
124 2014-03-28 Richard Biener <rguenther@suse.de>
126 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
128 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
130 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
132 * configure: Regenerate.
133 * Makefile.am (AM_LDFLAGS): New variable.
134 (liblto_plugin_la_LDFLAGS): Add it.
135 * Makefile.in: Regenerate.
137 2013-09-20 Alan Modra <amodra@gmail.com>
139 * configure: Regenerate.
141 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
143 * configure: Regenerated.
145 2012-05-29 Joseph Myers <joseph@codesourcery.com>
147 * lto-plugin.c: Fix typo.
149 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
151 * configure: Regenerated.
153 2012-02-22 Kai Tietz <ktietz@redhat.com>
156 * lto-plugin.c (PRI_LL): New macro.
157 (dump_symtab): Use PRI_LL instead of ll in print.
158 (process_symtab): Use PRI_LL instead of ll in scan.
160 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
162 * configure: Regenerate.
164 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
166 * configure: Regenerate.
168 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
170 * configure: Regenerate.
172 2011-10-02 Jan Hubicka <jh@suse.cz>
175 * lto-plugin.c (get_symbols_v2): New variable.
176 (write_resolution): Use V2 API when available.
177 (onload): Handle LDPT_GET_SYMBOLS_V2.
179 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
180 Andi Kleen <ak@linux.intel.com>
183 * lto-plugin.c (sym_aux): Change id to unsigned long long.
184 (plugin_symtab): Likewise.
185 (dump_symtab): Likewise.
186 (resolve_conflicts): Likewise.
187 (process_symtab): Likewise.
189 2011-08-10 Richard Guenther <rguenther@suse.de>
193 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
194 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
195 * configure: Regenerate.
196 * Makefile.in: Likewise.
197 * aclocal.m4: Likewise.
199 2011-04-20 Jim Meyering <meyering@redhat.com>
201 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
203 2011-04-05 Richard Guenther <rguenther@suse.de>
206 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
208 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
210 * Makefile.in: Regenerate.
211 * aclocal.m4: Regenerate.
212 * configure: Regenerate.
214 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
216 * Makefile.am (all-local): Rename from 'all'.
217 * Makefile.in: Regenerate.
219 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
222 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
223 (liblto_plugin_la_LDFLAGS): Add -module.
224 (copy_lto_plugin): Renamed to...
225 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
227 * Makefile.in: Rebuild.
229 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
232 * Makefile.am (Wc): New helper for encoding -Wc,.
233 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
234 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
235 * Makefile.in: Regenerated.
237 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
241 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
244 * Makefile.am (Wl): New helper for encoding -Wl,.
245 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
246 * Makefile.in: Regenerated.
248 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
251 * Makefile.am (Wl): New helper for encoding -Wl,.
252 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
253 * Makefile.in: Regenerated.
255 2011-01-25 Ian Lance Taylor <iant@google.com>
257 * lto-plugin.c (gold_version): New static variable.
258 (all_symbols_read_handler): Don't check pass_through_items if
259 using gold 1.11 or later.
260 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
262 2011-01-12 Richard Guenther <rguenther@suse.de>
265 * lto-plugin.c (parse_table_entry): Use memcpy to access
268 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
270 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
271 * Makefile.in: Regenerate.
273 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
277 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
280 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
281 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
282 * Makefile.in: Regenerate.
284 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
288 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
289 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
290 * configure: Regenerate.
291 * config.h.in: Likewise.
293 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
297 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
298 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
299 override -bindir setting.
300 * aclocal.m4: Regenerate.
301 * configure: Regenerate.
302 * Makefile.in: Regenerate.
304 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
306 * config.h.in: Regenerated.
307 * configure: Regenerated.
308 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
309 * lto-plugin.c (WIFEXITED): Define default.
310 (WEXITSTATUS): Likeiwse.
312 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
314 * config.h.in: Regenerated.
315 * configure: Regenerated.
316 * Makefile.in: Regenerated.
317 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
318 * lto-plugin.c: Include sys/wait.h conditionally.
319 * aclocal.m4: Regenerated.
321 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
323 * lto-plugin.c (add_output_files): Fix memory leak.
325 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
329 * configure.ac: Add AC_TYPE_INT64_T test.
330 * config.h.in: Regenerate.
331 * configure: Likewise.
332 * lto-plugin.c (debug): Use char not bool.
334 (check_1): Rename from check, and use int not bool for gate argument.
335 (check): Macro wrapper for the above to coerce gate argument into
336 boolean-valued integer in case it has pointer type.
337 (parse_table_entry): Use 0 not false.
338 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
339 into two 32-bit parts and printing as hex ints.
341 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
344 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
346 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
349 * lto-plugin.h: Delete.
350 * lto-plugin-elf.c: Likewise.
351 * lto-plugin-coff.c: Likewise.
352 * configure.ac: Don't use libelf, don't source config.gcc.
353 (LIBELFLIBS): Delete.
355 (LTO_FORMAT): Delete.
356 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
357 (config.h): Add AC_CONFIG_HEADERS directive.
358 * Makefile.am (LIBELFLIBS): Delete.
360 (LTO_FORMAT): Delete.
362 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
363 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
364 any object-format-specific source file in the link.
365 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
366 * config.h.in: Generate.
367 * configure: Regenerate.
368 * Makefile.in: Likewise.
369 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
370 (LTO_SEGMENT_NAME): New definition.
371 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
372 (LTO_SECTION_PREFIX_LEN): New definition.
373 (struct sym_aux): Struct definition moved here from lto-plugin.h.
374 (struct plugin_symtab): Likewise.
375 (struct plugin_objfile): Likewise.
376 (struct plugin_objfile): New struct def.
377 (enum symbol_style): New enum type.
378 (add_symbols): Make static.
379 (claimed_files): Likewise.
380 (num_claimed_files): Likewise.
381 (sym_style): New global.
382 (check): Make static.
383 (parse_table_entry): Likewise. Respect sym_style when extracting
384 symbol from symtab entry.
385 (translate): Make static.
386 (resolve_conflicts): Likewise.
387 (process_symtab): New function, per-section callback version of
388 old object-format-specific handling from deleted lto-plugin-elf.c.
389 (claim_file_handler): Convert ELF-specific version from deleted
390 lto-plugin-elf.c to simple_object interface and move here.
391 (process_options): Allow new '-sym-style=' option.
392 (onload): Don't call deleted onload_format_checks hook.
394 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
396 * lto-plugin.c (dump_symtab): Correct printf argument type.
397 (finish_conflict_resolution): Initialize resolution.
399 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
402 * configure.ac: Add AC_CANONICAL_SYSTEM.
403 * configure: Regenerated.
405 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
407 * configure.ac: Source config.gcc to determine lto_binary_reader.
408 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
409 * Makefile.am (LTO_FORMAT): Import.
410 (liblto_plugin_la_SOURCES): Add object format dependent module
411 defined by LTO_FORMAT.
412 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
413 and work around libtool warning.
414 * configure: Regenerate.
415 * Makefile.in: Likewise.
416 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
417 (struct sym_aux): Likewise.
418 (struct plugin_symtab): Likewise.
419 (struct plugin_file_info): Likewise.
420 (LTO_SECTION_PREFIX): Likewise.
421 (add_symbols): Make non-static.
422 (claimed_files): Likewise.
423 (num_claimed_files): Likewise.
425 (parse_table_entry): Likewise.
426 (translate): Likewise.
427 (resolve_conflicts): Likewise.
428 (process_symtab): Move to new lto-plugin-elf.c object format dependent
430 (claim_file_handler): Likewise, and make non-static.
431 (onload): Call new onload_format_checks function.
432 * lto-plugin.h: New file.
433 (LTO_SECTION_PREFIX): Move here.
434 (struct sym_aux): Likewise.
435 (struct plugin_symtab): Likewise.
436 (struct plugin_file_info): Likewise.
437 (claim_file_handler): Add new function prototype.
438 (onload_format_checks): Likewise.
439 (check): Declare extern.
440 (translate): Likewise.
441 (parse_table_entry): Likewise.
442 (resolve_conflicts): Likewise.
443 (add_symbols): Likewise.
444 (claimed_files): Likewise.
445 (num_claimed_files): Likewise.
446 * lto-plugin-elf.c (process_symtab): Move here.
447 (claim_file_handler): Likewise, and make non-static.
448 (onload_format_checks): New function factored out from onload.
449 * lto-plugin-coff.c (claim_file_handler): New function stub.
450 (onload_format_checks): Likewise.
452 2010-08-05 Andi Kleen <ak@linux.intel.com>
454 * lto-plugin.c: Include <hashtab.h>
455 (sym_aux): Add next_conflict field to save conflict chains.
456 (plugin_file_info): Add conflicts symtab.
457 (parse_table_entry): Initialize aux->next_conflict.
458 (process_symtab): Increment found.
460 (finish_conflict_resolution): Add.
462 (write_resolution): Remove symbols loop and move into
463 dump_symtab. Call dump_symtab for main symbol and conflicts table.
464 Call free_symtab to free conflicts table.
468 (symbol_strength): Add.
469 (resolve_conflicts): Add.
470 (claim_file_handler): Add n variable. Check return value of
471 process_symtab. Call resolve_conflicts.
473 2010-07-27 Andi Kleen <ak@linux.intel.com>
475 * lto-plugin.c (translate): Remove debug fprintf.
477 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
480 * lto-plugin.c (translate): Cast to unsigned long.
482 2010-07-23 Andi Kleen <ak@linux.intel.com>
485 * lto-plugin.c (sym_aux): Add.
486 (plugin_symtab): Remove slots. Add aux and id.
487 (parse_table_entry): Change to use aux instead of slots.
488 (LTO_SECTION_PREFIX): Add.
489 (translate): Improve buffer allocation. Change to append
490 symbols to existing out buffer.
491 (get_section): Remove.
492 (process_symtab): Add.
493 (free_2): Free symtab->aux.
494 (write_resolution): Handle aux instead of slots.
495 Print sub id to resolution file.
496 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
497 calls with call to process_symtab.
499 2010-07-22 Richard Guenther <rguenther@suse.de>
501 * Makefile.am: New copy_lto_plugin rule to install the plugin
503 * Makefile.in: Regenerated.
505 2010-05-21 Richard Guenther <rguenther@suse.de>
507 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
509 2010-05-07 Richard Guenther <rguenther@suse.de>
511 * lto-plugin.c (free_2): Do not free resolution_file.
512 (write_resolution): Check that we were passed a resolution file.
513 (all_symbols_read_handler): Adjust.
514 (cleanup_handler): Do not remove the resolution file.
515 (process_option): Handle -fresolution=.
517 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
520 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
521 * Makefile.in: Regenerate.
523 2010-04-23 Richard Guenther <rguenther@suse.de>
526 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
527 (translate): Likewise.
528 (all_symbols_read_handler): Likewise.
529 (claim_file_handler): Likewise.
530 (process_option): Likewise.
531 (add_output_files): Likewise. Remove filename length limit.
533 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
535 * Makefile.in: Regenerate.
536 * aclocal.m4: Regenerate.
538 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
541 * lto-plugin.c (cleanup_handler): Delete temporary output files.
543 2010-01-11 Richard Guenther <rguenther@suse.de>
546 * Makefile.am: Disable dependencies.
547 * Makefile.in: Regenerated.
549 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
552 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
555 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
558 * configure: Regenerated.
559 * Makefile.in: Likewise.
561 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
564 * lto-plugin.c (claim_file_handler): Print offsets in hex.
566 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
568 * lto-plugin.c (write_resolution): Assume resolution_file is set.
569 Print the symbol name.
570 (all_symbols_read_handler): Create a resolution file.
572 (cleanup_handler): Remove the resolution file.
573 (process_option): Drop the -resolution option.
575 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
577 * lto-plugin.c (temp_obj_dir_name): Remove.
578 (arguments_file_name): New.
579 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
580 (exec_lto_wrapper): Create arguments file with make_temp_file.
581 (cleanup_handler): Don't remove the temporary directory. Remove the
583 (onload): Don't create the temporary directory.
585 2009-11-04 Richard Guenther <rguenther@suse.de>
586 Rafael Avila de Espindola <espindola@google.com>
588 * lto-plugin.c (plugin_file_info): Remove temp field.
589 (cleanup_handler): Don't delete temporary objects.
590 (claim_file_handler): Don't create temporary objects.
592 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
594 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
596 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
599 * lto-plugin.c (claim_file_handler): Close files that we created.
601 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
603 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
606 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
609 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
610 * configure: Regenerate.
612 2009-10-26 Richard Guenther <rguenther@suse.de>
614 * configure.ac: Use AM_MAINTAINER_MODE.
615 * acinclude.m4: Remove.
616 * configure: Re-generate.
617 * Makefile.in: Likewise.
618 * aclocal.m4: Likewise.
620 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
623 * configure: Regenerate.
624 * configure.ac: Add AC_TYPE_UINT64_T.
626 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
628 * lto-plugin.c (message): New variable.
629 (check): New function.
630 (parse_table_entry, translate, write_resolution,add_output_files,
631 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
633 (cleanup_handler): Use check instead of assert. Remove the arguments
636 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
638 * lto-plugin.c (resolution_file): New.
639 (free_1): Update comment.
640 (free_2): Free resolution_file.
641 (write_resolution): Write resolution to specified file. Use the
642 syms array from the symbol table.
643 (all_symbols_read_handler): Delay call to free_1 past call to
645 (process_option): Add a -resolution option.
647 2009-10-13 Richard Guenther <rguenther@suse.de>
649 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
651 * Makefile.in: Regenerated.
653 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
655 * lto-plugin.c (add_input_library): New.
656 (all_symbols_read_handler): Use add_input_library for items that
658 (process_option): Fit in 80 columns.
659 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
661 2009-10-02 Diego Novillo <dnovillo@google.com>
663 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
664 and -D_FILE_OFFSET_BITS=64.
665 * configure.ac: Add AC_SYS_LARGEFILE.
666 * configure: Regenerate.
667 * Makefile.in: Regenerate.
668 * lto-plugin.c: Fix copyright boilerplate.
670 2009-10-02 Diego Novillo <dnovillo@google.com>
672 * Makefile.am (ACLOCAL_AMFLAGS): Define.
673 * aclocal.m4: Regenerate with aclocal-2.64
674 * acinclude.m4: Remove.
675 * Makefile.in: Regenerate with automake-1.11
676 * configure.ac (AC_PREREQ): Update to 2.64.
677 * configure: Regenerate.
679 2009-10-02 Diego Novillo <dnovillo@google.com>
681 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
682 and -D_FILE_OFFSET_BITS=64.
683 * configure.ac: Add AC_SYS_LARGEFILE.
684 * configure: Regenerate.
685 * Makefile.in: Regenerate.
686 * lto-plugin.c: Fix copyright boilerplate.
688 2009-10-02 Diego Novillo <dnovillo@google.com>
690 * Makefile.am (ACLOCAL_AMFLAGS): Define.
691 * aclocal.m4: Regenerate with aclocal-2.64
692 * acinclude.m4: Remove.
693 * Makefile.in: Regenerate with automake-1.11
694 * configure.ac (AC_PREREQ): Update to 2.64.
695 * configure: Regenerate.
697 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
699 * Makefile.am (liblto_plugin_la_SOURCES): Remove
700 $(top_srcdir)/../gcc/lto/common.c
701 * Makefile.in: Regenerate.
703 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
705 * lto-plugin.c (pass_through_items): New.
706 (num_pass_through_items): New.
707 (all_symbols_read_handler): Update to use the -pass-through option.
708 (process_option): Replace -libgcc with -pass-through.
710 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
712 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
713 register_cleanup to be set.
715 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
717 * Makefile.am: Remove all reference to ltosymtab.
718 * Makefile.in: Regenerate.
719 * lto-symtab.c: Remove.
721 2009-05-21 Diego Novillo <dnovillo@google.com>
723 * configure.ac: Remove call to AC_CHECK_GELF.
724 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
725 * acinclude.m4: Do not include ../config/libelf.m4
726 * Makefile.am (LIBELFLIBS): Define.
728 (AM_CPPFLAGS): Add $(LIBELFINC).
729 (ltosymtab_LDADD): Add $(LIBELFLIBS).
730 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
731 * lto-plugin.c: Always include <gelf.h>
732 * lto-symtab.c: Likewise.
733 * configure: Regenerate.
734 * Makefile.in: Regenerate.
736 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
738 * lto-plugin.c (libgcc_filename): New.
739 (all_symbols_read_handler): Pass libgcc to the linker.
740 (all_symbols_read_handler): Parse -libgcc
742 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
744 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
745 * Makefile.in: Regenerate.
746 * lto-plugin.c (add_output_files): Argument is now a FILE.
747 (exec_lto_wrapper): Use writeargv and pex.
749 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
752 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
753 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
756 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
758 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
760 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
762 * lto-plugin.c: Include libiberty.h.
763 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
766 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
768 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
771 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
773 * lto-plugin.c (plugin_file_info): Remove fd and elf.
774 (parse_table_entry): strdup entry->name and entry->comdat_key.
775 (free_1): Free name and comdat_key. Don't close the file. Don't call
777 (claim_file_handler): Always call elf_end.
779 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
781 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
782 -D_FILE_OFFSET_BITS=64
783 * Makefile.in: Regenerate
785 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
787 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
788 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
789 * Makefile.in: Regenerate.
790 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
791 * configure: Regenerate.
792 * configure.ac: Add AC_SUBST(target_noncanonical).
794 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
796 * lto-plugin.c: Include stdbool.h.
797 (debug, nop): Declare as bool.
799 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
801 * lto-plugin.c (nop): New.
802 (use_original_files): New.
803 (all_symbols_read_handler): Call use_original_files if nop is true.
804 (process_option): Parse the -nop option.
806 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
808 * lto-plugin.c (debug): New.
809 (exec_lto_wrapper): Print argv if debug is true.
810 (process_option): Process the -debug command line option.
812 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
814 * lto-plugin.c (process_option): The argument is now a single option,
815 not a space separated list.
817 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
819 * lto-plugin.c: Include sys/types.h and sys/wait.h
820 (output_files, num_output_files, lto_wrapper_argv,
821 lto_wrapper_num_args): New.
822 (free_2): Free output_files.
823 (write_resolution): Disable.
824 (add_output_files): New.
825 (exec_lto_wrapper): New.
826 (all_symbols_read_handler): Run lto-wrapper.
827 (claim_file_handler): Free lto_file.name and call elf_end.
828 (process_option): New.
830 2008-11-26 Rafael Espindola <espindola@google.com>
832 * lto-plugin.c (add_input_file): New.
833 (get_section): Return NULL if get_section fails.
834 (write_resolution): New.
835 (all_symbols_read_handler): Call add_input_file.
836 (claim_file_handler): Unlink the correct file.
837 (onload): Record add_input_file.
839 2008-09-23 Rafael Espindola <espindola@google.com>
841 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
842 Update the location of common.c.
843 * Makefile.in: Regenerate.
844 * common.c: Moved to gcc/lto.
845 * common.h: Moved to gcc/lto.
846 * lto-plugin.c: Update the location of common.h.
847 * lto-symtab.c: Update the location of common.h.
849 2008-09-23 Rafael Espindola <espindola@google.com>
851 * common.c: Include common.h.
852 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
854 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
857 2008-09-23 Rafael Espindola <espindola@google.com>
859 * lto-plugin.c (plugin_file_info): Add temp.
860 (cleanup_handler): Only delete temporary files.
861 (claim_file_handler): Initialize lto_file.temp.
863 2008-09-23 Rafael Espindola <espindola@google.com>
865 * plugin-api.h: Moved to include.
867 2008-09-23 Rafael Espindola <espindola@google.com>
869 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
872 2008-09-22 Rafael Espindola <espindola@google.com>
874 * plugin-api.h: Copy from binutils' cvs.
876 2008-09-22 Rafael Espindola <espindola@google.com>
878 * lto-symtab.c (get_symbols, add_symbols): Update signature.
879 * plugin-api.h: Copy from binutils' cvs.
881 2008-09-22 Rafael Espindola <espindola@google.com>
883 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
886 2008-09-10 Rafael Espindola <espindola@google.com>
888 * lto-plugin.c (onload): add missing break statements and asserts.
889 * lto-symtab.c (claim_file_handler): Make it static.
890 (all_symbols_read_handler): Make it static.
891 (all_file_handles): Make it static.
892 (num_file_handles): Make it static.
893 (register_claim_file): Make it static.
894 (register_object): Indent properly.
896 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
898 * Makefile.am (ltosymtab_LDADD): Add -lelf.
899 * Makefiel.in: Regenerate.
900 * lto-plugin.c: Include ar.h.
901 (claim_file_handler): Handle file->offset != 0.
902 * lto-symtab.c: Include gelf.h.
903 (all_file_handles): Change type.
904 (register_object): New.
905 (register_file): Add support for archives.
906 (resolve): Update to new type of all_file_handles.
907 (print): Update to new type of all_file_handles.
908 (free_all): Update to new type of all_file_handles.
909 (main): Update to new type of all_file_handles.
911 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
913 * lto-plugin.c (get_string_table): Remove.
914 (get_section): Use elf_strptr instead of get_string_table.
916 2008-09-08 Doug Kwan <dougkwan@google.com>
918 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
919 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
921 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
923 * Makefile.am (ltosymtab_SOURCES): add common.c.
924 (ltosymtab_CFLAGS): New.
925 (liblto_plugin_la_SOURCES): Add common.c.
926 * Makefile.in: Regenerate.
929 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
930 (plugin_symtab): New.
931 (plugin_file_info): New.
932 (register_all_symbols_read): New.
934 (claimed_files): New.
935 (num_claimed_files): New.
936 (translate): Don't drop the slot number.
939 (all_symbols_read_handler): New.
940 (claim_file_handler): Record every claimed file.
941 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
943 * lto-symtab.c: Include stdlib.h, string.h and common.h.
944 (current_file_handle): Remove.
945 (ld_plugin_all_symbols_read_handler): New.
946 (plugin_handle): New.
948 (all_file_handles): New.
949 (num_file_handles): New.
951 (register_all_symbols_read): New.
952 (add_symbols): Don't print the symbols, just record them.
953 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
955 (load_plugin): Use plugin_handle.
956 (register_file): Add the file handle to all_file_handles.
959 (unload_plugin): New.
961 (main): Call all_symbols_read_handler and free resources.
963 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
965 * Makefile.am (AM_CFLAGS): New.
966 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
967 (lib_LTLIBRARIES): New.
968 (liblto_plugin_la_SOURCES): New.
969 (liblto_plugin_la_LIBADD): New.
970 * Makefile.in: Regenerate.
971 * acinclude.m4: Don't include ../config/acx.m4 and
972 ../config/no-executables.m4.
973 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
975 * aclocal.m4: Regenerate.
976 * configure: Regenerate.
977 * configure.ac: Use AM_PROG_LIBTOOL.
979 * lto-symtab.c: Rewrite to use the plugin.
982 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
984 * configure: Regenerate.
985 * configure.ac: Use AC_CHECK_GELF.
986 * lto-symtab.c: Include gelf.h.
987 (get_string_table): Use size independent API.
988 (printTable): Use lld to print 64 bit integers.
990 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
992 * lto-symtab.c (parse_table_entry): Assert entry->kind and
993 entry->visibility are valid.
995 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
996 * lto-symtab.c (table_entry): Add comdat.
997 (parse_table_entry): Read comdat.
999 2008-08-21 Rafael Espindola <espindola@google.com>
1003 * acinclude.m4: New.
1006 * configure.ac: New.
1007 * lto-symtab.c: New.