1 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
3 * lto-plugin.c (claim_file_handler): Call release_input_file only
6 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
8 * lto-plugin.c (claim_file_handler): Call release_input_file only
11 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
14 * lto-plugin.c (release_input_file): New.
15 (claim_file_handler): Call release_input_file.
16 (onload): Set release_input_file.
18 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
20 * lto-plugin.c (offload_files, num_offload_files): New static variables.
21 (free_1): Use arguments instead of global variables.
22 (free_2): Free offload_files.
23 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
25 (claim_file_handler): Do not add file to claimed_files if it contains
26 offload sections without LTO sections. Add it to offload_files instead.
28 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
31 * configure: Regenerated.
33 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
34 Bernd Schmidt <bernds@codesourcery.com>
35 Andrey Turetskiy <andrey.turetskiy@intel.com>
36 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
38 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
39 (struct plugin_objfile): Add new field "offload".
40 (process_offload_section): New static function.
41 (claim_file_handler): Claim file if it contains offload sections.
43 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
44 Thomas Schwinge <thomas@codesourcery.com>
45 Ilya Verbin <ilya.verbin@intel.com>
46 Andrey Turetskiy <andrey.turetskiy@intel.com>
48 * Makefile.am (libexecsubdir): Tweak for the possibility of being
49 configured for offload compiler.
50 (accel_dir_suffix, real_target_noncanonical): New variables substituted
52 * Makefile.in: Regenerate.
53 * configure: Regenerate.
54 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
57 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
60 * configure: Regenerate.
62 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
65 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
66 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
68 * Makefile.in: Regenerated.
69 * configure: Likewise.
71 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
73 * configure.ac (--with-libiberty): New configure option.
74 * configure: Regenerate.
75 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
77 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
78 (liblto_plugin_la_DEPENDENCIES): Use them.
79 * Makefile.in: Regenerate.
81 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
84 * configure.ac: Check for -static-libgcc.
85 * configure: Regenerate.
87 2014-04-17 Jakub Jelinek <jakub@redhat.com>
90 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
91 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
92 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
93 over ../libiberty/pic/libiberty.a if the former exists.
94 * Makefile.in: Regenerated.
97 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
98 * Makefile.in: Regenerated.
100 2014-04-02 Richard Biener <rguenther@suse.de>
102 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
103 is set in COLLECT_GCC_OPTIONS.
105 2014-03-28 Richard Biener <rguenther@suse.de>
107 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
109 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
111 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
113 * configure: Regenerate.
114 * Makefile.am (AM_LDFLAGS): New variable.
115 (liblto_plugin_la_LDFLAGS): Add it.
116 * Makefile.in: Regenerate.
118 2013-09-20 Alan Modra <amodra@gmail.com>
120 * configure: Regenerate.
122 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
124 * configure: Regenerated.
126 2012-05-29 Joseph Myers <joseph@codesourcery.com>
128 * lto-plugin.c: Fix typo.
130 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
132 * configure: Regenerated.
134 2012-02-22 Kai Tietz <ktietz@redhat.com>
137 * lto-plugin.c (PRI_LL): New macro.
138 (dump_symtab): Use PRI_LL instead of ll in print.
139 (process_symtab): Use PRI_LL instead of ll in scan.
141 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
143 * configure: Regenerate.
145 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
147 * configure: Regenerate.
149 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
151 * configure: Regenerate.
153 2011-10-02 Jan Hubicka <jh@suse.cz>
156 * lto-plugin.c (get_symbols_v2): New variable.
157 (write_resolution): Use V2 API when available.
158 (onload): Handle LDPT_GET_SYMBOLS_V2.
160 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
161 Andi Kleen <ak@linux.intel.com>
164 * lto-plugin.c (sym_aux): Change id to unsigned long long.
165 (plugin_symtab): Likewise.
166 (dump_symtab): Likewise.
167 (resolve_conflicts): Likewise.
168 (process_symtab): Likewise.
170 2011-08-10 Richard Guenther <rguenther@suse.de>
174 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
175 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
176 * configure: Regenerate.
177 * Makefile.in: Likewise.
178 * aclocal.m4: Likewise.
180 2011-04-20 Jim Meyering <meyering@redhat.com>
182 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
184 2011-04-05 Richard Guenther <rguenther@suse.de>
187 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
189 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
191 * Makefile.in: Regenerate.
192 * aclocal.m4: Regenerate.
193 * configure: Regenerate.
195 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
197 * Makefile.am (all-local): Rename from 'all'.
198 * Makefile.in: Regenerate.
200 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
203 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
204 (liblto_plugin_la_LDFLAGS): Add -module.
205 (copy_lto_plugin): Renamed to...
206 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
208 * Makefile.in: Rebuild.
210 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
213 * Makefile.am (Wc): New helper for encoding -Wc,.
214 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
215 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
216 * Makefile.in: Regenerated.
218 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
222 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
225 * Makefile.am (Wl): New helper for encoding -Wl,.
226 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
227 * Makefile.in: Regenerated.
229 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
232 * Makefile.am (Wl): New helper for encoding -Wl,.
233 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
234 * Makefile.in: Regenerated.
236 2011-01-25 Ian Lance Taylor <iant@google.com>
238 * lto-plugin.c (gold_version): New static variable.
239 (all_symbols_read_handler): Don't check pass_through_items if
240 using gold 1.11 or later.
241 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
243 2011-01-12 Richard Guenther <rguenther@suse.de>
246 * lto-plugin.c (parse_table_entry): Use memcpy to access
249 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
251 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
252 * Makefile.in: Regenerate.
254 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
258 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
260 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
261 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
262 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
263 * Makefile.in: Regenerate.
265 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
269 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
270 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
271 * configure: Regenerate.
272 * config.h.in: Likewise.
274 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
278 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
279 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
280 override -bindir setting.
281 * aclocal.m4: Regenerate.
282 * configure: Regenerate.
283 * Makefile.in: Regenerate.
285 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
287 * config.h.in: Regenerated.
288 * configure: Regenerated.
289 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
290 * lto-plugin.c (WIFEXITED): Define default.
291 (WEXITSTATUS): Likeiwse.
293 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
295 * config.h.in: Regenerated.
296 * configure: Regenerated.
297 * Makefile.in: Regenerated.
298 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
299 * lto-plugin.c: Include sys/wait.h conditionally.
300 * aclocal.m4: Regenerated.
302 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
304 * lto-plugin.c (add_output_files): Fix memory leak.
306 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
310 * configure.ac: Add AC_TYPE_INT64_T test.
311 * config.h.in: Regenerate.
312 * configure: Likewise.
313 * lto-plugin.c (debug): Use char not bool.
315 (check_1): Rename from check, and use int not bool for gate argument.
316 (check): Macro wrapper for the above to coerce gate argument into
317 boolean-valued integer in case it has pointer type.
318 (parse_table_entry): Use 0 not false.
319 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
320 into two 32-bit parts and printing as hex ints.
322 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
325 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
327 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
330 * lto-plugin.h: Delete.
331 * lto-plugin-elf.c: Likewise.
332 * lto-plugin-coff.c: Likewise.
333 * configure.ac: Don't use libelf, don't source config.gcc.
334 (LIBELFLIBS): Delete.
336 (LTO_FORMAT): Delete.
337 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
338 (config.h): Add AC_CONFIG_HEADERS directive.
339 * Makefile.am (LIBELFLIBS): Delete.
341 (LTO_FORMAT): Delete.
343 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
344 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
345 any object-format-specific source file in the link.
346 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
347 * config.h.in: Generate.
348 * configure: Regenerate.
349 * Makefile.in: Likewise.
350 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
351 (LTO_SEGMENT_NAME): New definition.
352 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
353 (LTO_SECTION_PREFIX_LEN): New definition.
354 (struct sym_aux): Struct definition moved here from lto-plugin.h.
355 (struct plugin_symtab): Likewise.
356 (struct plugin_objfile): Likewise.
357 (struct plugin_objfile): New struct def.
358 (enum symbol_style): New enum type.
359 (add_symbols): Make static.
360 (claimed_files): Likewise.
361 (num_claimed_files): Likewise.
362 (sym_style): New global.
363 (check): Make static.
364 (parse_table_entry): Likewise. Respect sym_style when extracting
365 symbol from symtab entry.
366 (translate): Make static.
367 (resolve_conflicts): Likewise.
368 (process_symtab): New function, per-section callback version of
369 old object-format-specific handling from deleted lto-plugin-elf.c.
370 (claim_file_handler): Convert ELF-specific version from deleted
371 lto-plugin-elf.c to simple_object interface and move here.
372 (process_options): Allow new '-sym-style=' option.
373 (onload): Don't call deleted onload_format_checks hook.
375 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
377 * lto-plugin.c (dump_symtab): Correct printf argument type.
378 (finish_conflict_resolution): Initialize resolution.
380 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
383 * configure.ac: Add AC_CANONICAL_SYSTEM.
384 * configure: Regenerated.
386 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
388 * configure.ac: Source config.gcc to determine lto_binary_reader.
389 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
390 * Makefile.am (LTO_FORMAT): Import.
391 (liblto_plugin_la_SOURCES): Add object format dependent module
392 defined by LTO_FORMAT.
393 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
394 and work around libtool warning.
395 * configure: Regenerate.
396 * Makefile.in: Likewise.
397 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
398 (struct sym_aux): Likewise.
399 (struct plugin_symtab): Likewise.
400 (struct plugin_file_info): Likewise.
401 (LTO_SECTION_PREFIX): Likewise.
402 (add_symbols): Make non-static.
403 (claimed_files): Likewise.
404 (num_claimed_files): Likewise.
406 (parse_table_entry): Likewise.
407 (translate): Likewise.
408 (resolve_conflicts): Likewise.
409 (process_symtab): Move to new lto-plugin-elf.c object format dependent
411 (claim_file_handler): Likewise, and make non-static.
412 (onload): Call new onload_format_checks function.
413 * lto-plugin.h: New file.
414 (LTO_SECTION_PREFIX): Move here.
415 (struct sym_aux): Likewise.
416 (struct plugin_symtab): Likewise.
417 (struct plugin_file_info): Likewise.
418 (claim_file_handler): Add new function prototype.
419 (onload_format_checks): Likewise.
420 (check): Declare extern.
421 (translate): Likewise.
422 (parse_table_entry): Likewise.
423 (resolve_conflicts): Likewise.
424 (add_symbols): Likewise.
425 (claimed_files): Likewise.
426 (num_claimed_files): Likewise.
427 * lto-plugin-elf.c (process_symtab): Move here.
428 (claim_file_handler): Likewise, and make non-static.
429 (onload_format_checks): New function factored out from onload.
430 * lto-plugin-coff.c (claim_file_handler): New function stub.
431 (onload_format_checks): Likewise.
433 2010-08-05 Andi Kleen <ak@linux.intel.com>
435 * lto-plugin.c: Include <hashtab.h>
436 (sym_aux): Add next_conflict field to save conflict chains.
437 (plugin_file_info): Add conflicts symtab.
438 (parse_table_entry): Initialize aux->next_conflict.
439 (process_symtab): Increment found.
441 (finish_conflict_resolution): Add.
443 (write_resolution): Remove symbols loop and move into
444 dump_symtab. Call dump_symtab for main symbol and conflicts table.
445 Call free_symtab to free conflicts table.
449 (symbol_strength): Add.
450 (resolve_conflicts): Add.
451 (claim_file_handler): Add n variable. Check return value of
452 process_symtab. Call resolve_conflicts.
454 2010-07-27 Andi Kleen <ak@linux.intel.com>
456 * lto-plugin.c (translate): Remove debug fprintf.
458 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
461 * lto-plugin.c (translate): Cast to unsigned long.
463 2010-07-23 Andi Kleen <ak@linux.intel.com>
466 * lto-plugin.c (sym_aux): Add.
467 (plugin_symtab): Remove slots. Add aux and id.
468 (parse_table_entry): Change to use aux instead of slots.
469 (LTO_SECTION_PREFIX): Add.
470 (translate): Improve buffer allocation. Change to append
471 symbols to existing out buffer.
472 (get_section): Remove.
473 (process_symtab): Add.
474 (free_2): Free symtab->aux.
475 (write_resolution): Handle aux instead of slots.
476 Print sub id to resolution file.
477 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
478 calls with call to process_symtab.
480 2010-07-22 Richard Guenther <rguenther@suse.de>
482 * Makefile.am: New copy_lto_plugin rule to install the plugin
484 * Makefile.in: Regenerated.
486 2010-05-21 Richard Guenther <rguenther@suse.de>
488 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
490 2010-05-07 Richard Guenther <rguenther@suse.de>
492 * lto-plugin.c (free_2): Do not free resolution_file.
493 (write_resolution): Check that we were passed a resolution file.
494 (all_symbols_read_handler): Adjust.
495 (cleanup_handler): Do not remove the resolution file.
496 (process_option): Handle -fresolution=.
498 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
501 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
502 * Makefile.in: Regenerate.
504 2010-04-23 Richard Guenther <rguenther@suse.de>
507 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
508 (translate): Likewise.
509 (all_symbols_read_handler): Likewise.
510 (claim_file_handler): Likewise.
511 (process_option): Likewise.
512 (add_output_files): Likewise. Remove filename length limit.
514 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
516 * Makefile.in: Regenerate.
517 * aclocal.m4: Regenerate.
519 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
522 * lto-plugin.c (cleanup_handler): Delete temporary output files.
524 2010-01-11 Richard Guenther <rguenther@suse.de>
527 * Makefile.am: Disable dependencies.
528 * Makefile.in: Regenerated.
530 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
533 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
536 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
539 * configure: Regenerated.
540 * Makefile.in: Likewise.
542 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
545 * lto-plugin.c (claim_file_handler): Print offsets in hex.
547 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
549 * lto-plugin.c (write_resolution): Assume resolution_file is set.
550 Print the symbol name.
551 (all_symbols_read_handler): Create a resolution file.
553 (cleanup_handler): Remove the resolution file.
554 (process_option): Drop the -resolution option.
556 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
558 * lto-plugin.c (temp_obj_dir_name): Remove.
559 (arguments_file_name): New.
560 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
561 (exec_lto_wrapper): Create arguments file with make_temp_file.
562 (cleanup_handler): Don't remove the temporary directory. Remove the
564 (onload): Don't create the temporary directory.
566 2009-11-04 Richard Guenther <rguenther@suse.de>
567 Rafael Avila de Espindola <espindola@google.com>
569 * lto-plugin.c (plugin_file_info): Remove temp field.
570 (cleanup_handler): Don't delete temporary objects.
571 (claim_file_handler): Don't create temporary objects.
573 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
575 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
577 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
580 * lto-plugin.c (claim_file_handler): Close files that we created.
582 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
584 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
587 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
590 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
591 * configure: Regenerate.
593 2009-10-26 Richard Guenther <rguenther@suse.de>
595 * configure.ac: Use AM_MAINTAINER_MODE.
596 * acinclude.m4: Remove.
597 * configure: Re-generate.
598 * Makefile.in: Likewise.
599 * aclocal.m4: Likewise.
601 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
604 * configure: Regenerate.
605 * configure.ac: Add AC_TYPE_UINT64_T.
607 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
609 * lto-plugin.c (message): New variable.
610 (check): New function.
611 (parse_table_entry, translate, write_resolution,add_output_files,
612 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
614 (cleanup_handler): Use check instead of assert. Remove the arguments
617 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
619 * lto-plugin.c (resolution_file): New.
620 (free_1): Update comment.
621 (free_2): Free resolution_file.
622 (write_resolution): Write resolution to specified file. Use the
623 syms array from the symbol table.
624 (all_symbols_read_handler): Delay call to free_1 past call to
626 (process_option): Add a -resolution option.
628 2009-10-13 Richard Guenther <rguenther@suse.de>
630 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
632 * Makefile.in: Regenerated.
634 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
636 * lto-plugin.c (add_input_library): New.
637 (all_symbols_read_handler): Use add_input_library for items that
639 (process_option): Fit in 80 columns.
640 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
642 2009-10-02 Diego Novillo <dnovillo@google.com>
644 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
645 and -D_FILE_OFFSET_BITS=64.
646 * configure.ac: Add AC_SYS_LARGEFILE.
647 * configure: Regenerate.
648 * Makefile.in: Regenerate.
649 * lto-plugin.c: Fix copyright boilerplate.
651 2009-10-02 Diego Novillo <dnovillo@google.com>
653 * Makefile.am (ACLOCAL_AMFLAGS): Define.
654 * aclocal.m4: Regenerate with aclocal-2.64
655 * acinclude.m4: Remove.
656 * Makefile.in: Regenerate with automake-1.11
657 * configure.ac (AC_PREREQ): Update to 2.64.
658 * configure: Regenerate.
660 2009-10-02 Diego Novillo <dnovillo@google.com>
662 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
663 and -D_FILE_OFFSET_BITS=64.
664 * configure.ac: Add AC_SYS_LARGEFILE.
665 * configure: Regenerate.
666 * Makefile.in: Regenerate.
667 * lto-plugin.c: Fix copyright boilerplate.
669 2009-10-02 Diego Novillo <dnovillo@google.com>
671 * Makefile.am (ACLOCAL_AMFLAGS): Define.
672 * aclocal.m4: Regenerate with aclocal-2.64
673 * acinclude.m4: Remove.
674 * Makefile.in: Regenerate with automake-1.11
675 * configure.ac (AC_PREREQ): Update to 2.64.
676 * configure: Regenerate.
678 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
680 * Makefile.am (liblto_plugin_la_SOURCES): Remove
681 $(top_srcdir)/../gcc/lto/common.c
682 * Makefile.in: Regenerate.
684 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
686 * lto-plugin.c (pass_through_items): New.
687 (num_pass_through_items): New.
688 (all_symbols_read_handler): Update to use the -pass-through option.
689 (process_option): Replace -libgcc with -pass-through.
691 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
693 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
694 register_cleanup to be set.
696 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
698 * Makefile.am: Remove all reference to ltosymtab.
699 * Makefile.in: Regenerate.
700 * lto-symtab.c: Remove.
702 2009-05-21 Diego Novillo <dnovillo@google.com>
704 * configure.ac: Remove call to AC_CHECK_GELF.
705 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
706 * acinclude.m4: Do not include ../config/libelf.m4
707 * Makefile.am (LIBELFLIBS): Define.
709 (AM_CPPFLAGS): Add $(LIBELFINC).
710 (ltosymtab_LDADD): Add $(LIBELFLIBS).
711 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
712 * lto-plugin.c: Always include <gelf.h>
713 * lto-symtab.c: Likewise.
714 * configure: Regenerate.
715 * Makefile.in: Regenerate.
717 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
719 * lto-plugin.c (libgcc_filename): New.
720 (all_symbols_read_handler): Pass libgcc to the linker.
721 (all_symbols_read_handler): Parse -libgcc
723 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
725 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
726 * Makefile.in: Regenerate.
727 * lto-plugin.c (add_output_files): Argument is now a FILE.
728 (exec_lto_wrapper): Use writeargv and pex.
730 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
733 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
734 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
737 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
739 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
741 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
743 * lto-plugin.c: Include libiberty.h.
744 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
747 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
749 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
752 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
754 * lto-plugin.c (plugin_file_info): Remove fd and elf.
755 (parse_table_entry): strdup entry->name and entry->comdat_key.
756 (free_1): Free name and comdat_key. Don't close the file. Don't call
758 (claim_file_handler): Always call elf_end.
760 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
762 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
763 -D_FILE_OFFSET_BITS=64
764 * Makefile.in: Regenerate
766 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
768 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
769 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
770 * Makefile.in: Regenerate.
771 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
772 * configure: Regenerate.
773 * configure.ac: Add AC_SUBST(target_noncanonical).
775 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
777 * lto-plugin.c: Include stdbool.h.
778 (debug, nop): Declare as bool.
780 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
782 * lto-plugin.c (nop): New.
783 (use_original_files): New.
784 (all_symbols_read_handler): Call use_original_files if nop is true.
785 (process_option): Parse the -nop option.
787 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
789 * lto-plugin.c (debug): New.
790 (exec_lto_wrapper): Print argv if debug is true.
791 (process_option): Process the -debug command line option.
793 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
795 * lto-plugin.c (process_option): The argument is now a single option,
796 not a space separated list.
798 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
800 * lto-plugin.c: Include sys/types.h and sys/wait.h
801 (output_files, num_output_files, lto_wrapper_argv,
802 lto_wrapper_num_args): New.
803 (free_2): Free output_files.
804 (write_resolution): Disable.
805 (add_output_files): New.
806 (exec_lto_wrapper): New.
807 (all_symbols_read_handler): Run lto-wrapper.
808 (claim_file_handler): Free lto_file.name and call elf_end.
809 (process_option): New.
811 2008-11-26 Rafael Espindola <espindola@google.com>
813 * lto-plugin.c (add_input_file): New.
814 (get_section): Return NULL if get_section fails.
815 (write_resolution): New.
816 (all_symbols_read_handler): Call add_input_file.
817 (claim_file_handler): Unlink the correct file.
818 (onload): Record add_input_file.
820 2008-09-23 Rafael Espindola <espindola@google.com>
822 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
823 Update the location of common.c.
824 * Makefile.in: Regenerate.
825 * common.c: Moved to gcc/lto.
826 * common.h: Moved to gcc/lto.
827 * lto-plugin.c: Update the location of common.h.
828 * lto-symtab.c: Update the location of common.h.
830 2008-09-23 Rafael Espindola <espindola@google.com>
832 * common.c: Include common.h.
833 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
835 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
838 2008-09-23 Rafael Espindola <espindola@google.com>
840 * lto-plugin.c (plugin_file_info): Add temp.
841 (cleanup_handler): Only delete temporary files.
842 (claim_file_handler): Initialize lto_file.temp.
844 2008-09-23 Rafael Espindola <espindola@google.com>
846 * plugin-api.h: Moved to include.
848 2008-09-23 Rafael Espindola <espindola@google.com>
850 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
853 2008-09-22 Rafael Espindola <espindola@google.com>
855 * plugin-api.h: Copy from binutils' cvs.
857 2008-09-22 Rafael Espindola <espindola@google.com>
859 * lto-symtab.c (get_symbols, add_symbols): Update signature.
860 * plugin-api.h: Copy from binutils' cvs.
862 2008-09-22 Rafael Espindola <espindola@google.com>
864 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
867 2008-09-10 Rafael Espindola <espindola@google.com>
869 * lto-plugin.c (onload): add missing break statements and asserts.
870 * lto-symtab.c (claim_file_handler): Make it static.
871 (all_symbols_read_handler): Make it static.
872 (all_file_handles): Make it static.
873 (num_file_handles): Make it static.
874 (register_claim_file): Make it static.
875 (register_object): Indent properly.
877 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
879 * Makefile.am (ltosymtab_LDADD): Add -lelf.
880 * Makefiel.in: Regenerate.
881 * lto-plugin.c: Include ar.h.
882 (claim_file_handler): Handle file->offset != 0.
883 * lto-symtab.c: Include gelf.h.
884 (all_file_handles): Change type.
885 (register_object): New.
886 (register_file): Add support for archives.
887 (resolve): Update to new type of all_file_handles.
888 (print): Update to new type of all_file_handles.
889 (free_all): Update to new type of all_file_handles.
890 (main): Update to new type of all_file_handles.
892 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
894 * lto-plugin.c (get_string_table): Remove.
895 (get_section): Use elf_strptr instead of get_string_table.
897 2008-09-08 Doug Kwan <dougkwan@google.com>
899 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
900 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
902 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
904 * Makefile.am (ltosymtab_SOURCES): add common.c.
905 (ltosymtab_CFLAGS): New.
906 (liblto_plugin_la_SOURCES): Add common.c.
907 * Makefile.in: Regenerate.
910 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
911 (plugin_symtab): New.
912 (plugin_file_info): New.
913 (register_all_symbols_read): New.
915 (claimed_files): New.
916 (num_claimed_files): New.
917 (translate): Don't drop the slot number.
920 (all_symbols_read_handler): New.
921 (claim_file_handler): Record every claimed file.
922 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
924 * lto-symtab.c: Include stdlib.h, string.h and common.h.
925 (current_file_handle): Remove.
926 (ld_plugin_all_symbols_read_handler): New.
927 (plugin_handle): New.
929 (all_file_handles): New.
930 (num_file_handles): New.
932 (register_all_symbols_read): New.
933 (add_symbols): Don't print the symbols, just record them.
934 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
936 (load_plugin): Use plugin_handle.
937 (register_file): Add the file handle to all_file_handles.
940 (unload_plugin): New.
942 (main): Call all_symbols_read_handler and free resources.
944 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
946 * Makefile.am (AM_CFLAGS): New.
947 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
948 (lib_LTLIBRARIES): New.
949 (liblto_plugin_la_SOURCES): New.
950 (liblto_plugin_la_LIBADD): New.
951 * Makefile.in: Regenerate.
952 * acinclude.m4: Don't include ../config/acx.m4 and
953 ../config/no-executables.m4.
954 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
956 * aclocal.m4: Regenerate.
957 * configure: Regenerate.
958 * configure.ac: Use AM_PROG_LIBTOOL.
960 * lto-symtab.c: Rewrite to use the plugin.
963 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
965 * configure: Regenerate.
966 * configure.ac: Use AC_CHECK_GELF.
967 * lto-symtab.c: Include gelf.h.
968 (get_string_table): Use size independent API.
969 (printTable): Use lld to print 64 bit integers.
971 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
973 * lto-symtab.c (parse_table_entry): Assert entry->kind and
974 entry->visibility are valid.
976 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
977 * lto-symtab.c (table_entry): Add comdat.
978 (parse_table_entry): Read comdat.
980 2008-08-21 Rafael Espindola <espindola@google.com>