1 2013-10-16 Release Manager
5 2013-05-31 Release Manager
9 2013-03-22 Release Manager
13 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
15 * configure: Regenerated.
17 2012-05-29 Joseph Myers <joseph@codesourcery.com>
19 * lto-plugin.c: Fix typo.
21 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
23 * configure: Regenerated.
25 2012-02-22 Kai Tietz <ktietz@redhat.com>
28 * lto-plugin.c (PRI_LL): New macro.
29 (dump_symtab): Use PRI_LL instead of ll in print.
30 (process_symtab): Use PRI_LL instead of ll in scan.
32 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
34 * configure: Regenerate.
36 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
38 * configure: Regenerate.
40 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
42 * configure: Regenerate.
44 2011-10-02 Jan Hubicka <jh@suse.cz>
47 * lto-plugin.c (get_symbols_v2): New variable.
48 (write_resolution): Use V2 API when available.
49 (onload): Handle LDPT_GET_SYMBOLS_V2.
51 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
52 Andi Kleen <ak@linux.intel.com>
55 * lto-plugin.c (sym_aux): Change id to unsigned long long.
56 (plugin_symtab): Likewise.
57 (dump_symtab): Likewise.
58 (resolve_conflicts): Likewise.
59 (process_symtab): Likewise.
61 2011-08-10 Richard Guenther <rguenther@suse.de>
65 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
66 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
67 * configure: Regenerate.
68 * Makefile.in: Likewise.
69 * aclocal.m4: Likewise.
71 2011-04-20 Jim Meyering <meyering@redhat.com>
73 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
75 2011-04-05 Richard Guenther <rguenther@suse.de>
78 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
80 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
82 * Makefile.in: Regenerate.
83 * aclocal.m4: Regenerate.
84 * configure: Regenerate.
86 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
88 * Makefile.am (all-local): Rename from 'all'.
89 * Makefile.in: Regenerate.
91 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
94 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
95 (liblto_plugin_la_LDFLAGS): Add -module.
96 (copy_lto_plugin): Renamed to...
97 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
99 * Makefile.in: Rebuild.
101 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
104 * Makefile.am (Wc): New helper for encoding -Wc,.
105 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
106 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
107 * Makefile.in: Regenerated.
109 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
113 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
116 * Makefile.am (Wl): New helper for encoding -Wl,.
117 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
118 * Makefile.in: Regenerated.
120 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
123 * Makefile.am (Wl): New helper for encoding -Wl,.
124 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
125 * Makefile.in: Regenerated.
127 2011-01-25 Ian Lance Taylor <iant@google.com>
129 * lto-plugin.c (gold_version): New static variable.
130 (all_symbols_read_handler): Don't check pass_through_items if
131 using gold 1.11 or later.
132 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
134 2011-01-12 Richard Guenther <rguenther@suse.de>
137 * lto-plugin.c (parse_table_entry): Use memcpy to access
140 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
142 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
143 * Makefile.in: Regenerate.
145 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
149 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
151 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
152 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
153 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
154 * Makefile.in: Regenerate.
156 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
160 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
161 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
162 * configure: Regenerate.
163 * config.h.in: Likewise.
165 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
169 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
170 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
171 override -bindir setting.
172 * aclocal.m4: Regenerate.
173 * configure: Regenerate.
174 * Makefile.in: Regenerate.
176 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
178 * config.h.in: Regenerated.
179 * configure: Regenerated.
180 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
181 * lto-plugin.c (WIFEXITED): Define default.
182 (WEXITSTATUS): Likeiwse.
184 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
186 * config.h.in: Regenerated.
187 * configure: Regenerated.
188 * Makefile.in: Regenerated.
189 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
190 * lto-plugin.c: Include sys/wait.h conditionally.
191 * aclocal.m4: Regenerated.
193 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
195 * lto-plugin.c (add_output_files): Fix memory leak.
197 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
201 * configure.ac: Add AC_TYPE_INT64_T test.
202 * config.h.in: Regenerate.
203 * configure: Likewise.
204 * lto-plugin.c (debug): Use char not bool.
206 (check_1): Rename from check, and use int not bool for gate argument.
207 (check): Macro wrapper for the above to coerce gate argument into
208 boolean-valued integer in case it has pointer type.
209 (parse_table_entry): Use 0 not false.
210 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
211 into two 32-bit parts and printing as hex ints.
213 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
216 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
218 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
221 * lto-plugin.h: Delete.
222 * lto-plugin-elf.c: Likewise.
223 * lto-plugin-coff.c: Likewise.
224 * configure.ac: Don't use libelf, don't source config.gcc.
225 (LIBELFLIBS): Delete.
227 (LTO_FORMAT): Delete.
228 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
229 (config.h): Add AC_CONFIG_HEADERS directive.
230 * Makefile.am (LIBELFLIBS): Delete.
232 (LTO_FORMAT): Delete.
234 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
235 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
236 any object-format-specific source file in the link.
237 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
238 * config.h.in: Generate.
239 * configure: Regenerate.
240 * Makefile.in: Likewise.
241 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
242 (LTO_SEGMENT_NAME): New definition.
243 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
244 (LTO_SECTION_PREFIX_LEN): New definition.
245 (struct sym_aux): Struct definition moved here from lto-plugin.h.
246 (struct plugin_symtab): Likewise.
247 (struct plugin_objfile): Likewise.
248 (struct plugin_objfile): New struct def.
249 (enum symbol_style): New enum type.
250 (add_symbols): Make static.
251 (claimed_files): Likewise.
252 (num_claimed_files): Likewise.
253 (sym_style): New global.
254 (check): Make static.
255 (parse_table_entry): Likewise. Respect sym_style when extracting
256 symbol from symtab entry.
257 (translate): Make static.
258 (resolve_conflicts): Likewise.
259 (process_symtab): New function, per-section callback version of
260 old object-format-specific handling from deleted lto-plugin-elf.c.
261 (claim_file_handler): Convert ELF-specific version from deleted
262 lto-plugin-elf.c to simple_object interface and move here.
263 (process_options): Allow new '-sym-style=' option.
264 (onload): Don't call deleted onload_format_checks hook.
266 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
268 * lto-plugin.c (dump_symtab): Correct printf argument type.
269 (finish_conflict_resolution): Initialize resolution.
271 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
274 * configure.ac: Add AC_CANONICAL_SYSTEM.
275 * configure: Regenerated.
277 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
279 * configure.ac: Source config.gcc to determine lto_binary_reader.
280 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
281 * Makefile.am (LTO_FORMAT): Import.
282 (liblto_plugin_la_SOURCES): Add object format dependent module
283 defined by LTO_FORMAT.
284 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
285 and work around libtool warning.
286 * configure: Regenerate.
287 * Makefile.in: Likewise.
288 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
289 (struct sym_aux): Likewise.
290 (struct plugin_symtab): Likewise.
291 (struct plugin_file_info): Likewise.
292 (LTO_SECTION_PREFIX): Likewise.
293 (add_symbols): Make non-static.
294 (claimed_files): Likewise.
295 (num_claimed_files): Likewise.
297 (parse_table_entry): Likewise.
298 (translate): Likewise.
299 (resolve_conflicts): Likewise.
300 (process_symtab): Move to new lto-plugin-elf.c object format dependent
302 (claim_file_handler): Likewise, and make non-static.
303 (onload): Call new onload_format_checks function.
304 * lto-plugin.h: New file.
305 (LTO_SECTION_PREFIX): Move here.
306 (struct sym_aux): Likewise.
307 (struct plugin_symtab): Likewise.
308 (struct plugin_file_info): Likewise.
309 (claim_file_handler): Add new function prototype.
310 (onload_format_checks): Likewise.
311 (check): Declare extern.
312 (translate): Likewise.
313 (parse_table_entry): Likewise.
314 (resolve_conflicts): Likewise.
315 (add_symbols): Likewise.
316 (claimed_files): Likewise.
317 (num_claimed_files): Likewise.
318 * lto-plugin-elf.c (process_symtab): Move here.
319 (claim_file_handler): Likewise, and make non-static.
320 (onload_format_checks): New function factored out from onload.
321 * lto-plugin-coff.c (claim_file_handler): New function stub.
322 (onload_format_checks): Likewise.
324 2010-08-05 Andi Kleen <ak@linux.intel.com>
326 * lto-plugin.c: Include <hashtab.h>
327 (sym_aux): Add next_conflict field to save conflict chains.
328 (plugin_file_info): Add conflicts symtab.
329 (parse_table_entry): Initialize aux->next_conflict.
330 (process_symtab): Increment found.
332 (finish_conflict_resolution): Add.
334 (write_resolution): Remove symbols loop and move into
335 dump_symtab. Call dump_symtab for main symbol and conflicts table.
336 Call free_symtab to free conflicts table.
340 (symbol_strength): Add.
341 (resolve_conflicts): Add.
342 (claim_file_handler): Add n variable. Check return value of
343 process_symtab. Call resolve_conflicts.
345 2010-07-27 Andi Kleen <ak@linux.intel.com>
347 * lto-plugin.c (translate): Remove debug fprintf.
349 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
352 * lto-plugin.c (translate): Cast to unsigned long.
354 2010-07-23 Andi Kleen <ak@linux.intel.com>
357 * lto-plugin.c (sym_aux): Add.
358 (plugin_symtab): Remove slots. Add aux and id.
359 (parse_table_entry): Change to use aux instead of slots.
360 (LTO_SECTION_PREFIX): Add.
361 (translate): Improve buffer allocation. Change to append
362 symbols to existing out buffer.
363 (get_section): Remove.
364 (process_symtab): Add.
365 (free_2): Free symtab->aux.
366 (write_resolution): Handle aux instead of slots.
367 Print sub id to resolution file.
368 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
369 calls with call to process_symtab.
371 2010-07-22 Richard Guenther <rguenther@suse.de>
373 * Makefile.am: New copy_lto_plugin rule to install the plugin
375 * Makefile.in: Regenerated.
377 2010-05-21 Richard Guenther <rguenther@suse.de>
379 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
381 2010-05-07 Richard Guenther <rguenther@suse.de>
383 * lto-plugin.c (free_2): Do not free resolution_file.
384 (write_resolution): Check that we were passed a resolution file.
385 (all_symbols_read_handler): Adjust.
386 (cleanup_handler): Do not remove the resolution file.
387 (process_option): Handle -fresolution=.
389 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
392 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
393 * Makefile.in: Regenerate.
395 2010-04-23 Richard Guenther <rguenther@suse.de>
398 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
399 (translate): Likewise.
400 (all_symbols_read_handler): Likewise.
401 (claim_file_handler): Likewise.
402 (process_option): Likewise.
403 (add_output_files): Likewise. Remove filename length limit.
405 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
407 * Makefile.in: Regenerate.
408 * aclocal.m4: Regenerate.
410 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
413 * lto-plugin.c (cleanup_handler): Delete temporary output files.
415 2010-01-11 Richard Guenther <rguenther@suse.de>
418 * Makefile.am: Disable dependencies.
419 * Makefile.in: Regenerated.
421 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
424 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
427 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
430 * configure: Regenerated.
431 * Makefile.in: Likewise.
433 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
436 * lto-plugin.c (claim_file_handler): Print offsets in hex.
438 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
440 * lto-plugin.c (write_resolution): Assume resolution_file is set.
441 Print the symbol name.
442 (all_symbols_read_handler): Create a resolution file.
444 (cleanup_handler): Remove the resolution file.
445 (process_option): Drop the -resolution option.
447 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
449 * lto-plugin.c (temp_obj_dir_name): Remove.
450 (arguments_file_name): New.
451 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
452 (exec_lto_wrapper): Create arguments file with make_temp_file.
453 (cleanup_handler): Don't remove the temporary directory. Remove the
455 (onload): Don't create the temporary directory.
457 2009-11-04 Richard Guenther <rguenther@suse.de>
458 Rafael Avila de Espindola <espindola@google.com>
460 * lto-plugin.c (plugin_file_info): Remove temp field.
461 (cleanup_handler): Don't delete temporary objects.
462 (claim_file_handler): Don't create temporary objects.
464 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
466 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
468 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
471 * lto-plugin.c (claim_file_handler): Close files that we created.
473 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
475 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
478 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
481 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
482 * configure: Regenerate.
484 2009-10-26 Richard Guenther <rguenther@suse.de>
486 * configure.ac: Use AM_MAINTAINER_MODE.
487 * acinclude.m4: Remove.
488 * configure: Re-generate.
489 * Makefile.in: Likewise.
490 * aclocal.m4: Likewise.
492 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
495 * configure: Regenerate.
496 * configure.ac: Add AC_TYPE_UINT64_T.
498 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
500 * lto-plugin.c (message): New variable.
501 (check): New function.
502 (parse_table_entry, translate, write_resolution,add_output_files,
503 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
505 (cleanup_handler): Use check instead of assert. Remove the arguments
508 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
510 * lto-plugin.c (resolution_file): New.
511 (free_1): Update comment.
512 (free_2): Free resolution_file.
513 (write_resolution): Write resolution to specified file. Use the
514 syms array from the symbol table.
515 (all_symbols_read_handler): Delay call to free_1 past call to
517 (process_option): Add a -resolution option.
519 2009-10-13 Richard Guenther <rguenther@suse.de>
521 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
523 * Makefile.in: Regenerated.
525 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
527 * lto-plugin.c (add_input_library): New.
528 (all_symbols_read_handler): Use add_input_library for items that
530 (process_option): Fit in 80 columns.
531 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
533 2009-10-02 Diego Novillo <dnovillo@google.com>
535 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
536 and -D_FILE_OFFSET_BITS=64.
537 * configure.ac: Add AC_SYS_LARGEFILE.
538 * configure: Regenerate.
539 * Makefile.in: Regenerate.
540 * lto-plugin.c: Fix copyright boilerplate.
542 2009-10-02 Diego Novillo <dnovillo@google.com>
544 * Makefile.am (ACLOCAL_AMFLAGS): Define.
545 * aclocal.m4: Regenerate with aclocal-2.64
546 * acinclude.m4: Remove.
547 * Makefile.in: Regenerate with automake-1.11
548 * configure.ac (AC_PREREQ): Update to 2.64.
549 * configure: Regenerate.
551 2009-10-02 Diego Novillo <dnovillo@google.com>
553 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
554 and -D_FILE_OFFSET_BITS=64.
555 * configure.ac: Add AC_SYS_LARGEFILE.
556 * configure: Regenerate.
557 * Makefile.in: Regenerate.
558 * lto-plugin.c: Fix copyright boilerplate.
560 2009-10-02 Diego Novillo <dnovillo@google.com>
562 * Makefile.am (ACLOCAL_AMFLAGS): Define.
563 * aclocal.m4: Regenerate with aclocal-2.64
564 * acinclude.m4: Remove.
565 * Makefile.in: Regenerate with automake-1.11
566 * configure.ac (AC_PREREQ): Update to 2.64.
567 * configure: Regenerate.
569 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
571 * Makefile.am (liblto_plugin_la_SOURCES): Remove
572 $(top_srcdir)/../gcc/lto/common.c
573 * Makefile.in: Regenerate.
575 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
577 * lto-plugin.c (pass_through_items): New.
578 (num_pass_through_items): New.
579 (all_symbols_read_handler): Update to use the -pass-through option.
580 (process_option): Replace -libgcc with -pass-through.
582 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
584 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
585 register_cleanup to be set.
587 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
589 * Makefile.am: Remove all reference to ltosymtab.
590 * Makefile.in: Regenerate.
591 * lto-symtab.c: Remove.
593 2009-05-21 Diego Novillo <dnovillo@google.com>
595 * configure.ac: Remove call to AC_CHECK_GELF.
596 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
597 * acinclude.m4: Do not include ../config/libelf.m4
598 * Makefile.am (LIBELFLIBS): Define.
600 (AM_CPPFLAGS): Add $(LIBELFINC).
601 (ltosymtab_LDADD): Add $(LIBELFLIBS).
602 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
603 * lto-plugin.c: Always include <gelf.h>
604 * lto-symtab.c: Likewise.
605 * configure: Regenerate.
606 * Makefile.in: Regenerate.
608 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
610 * lto-plugin.c (libgcc_filename): New.
611 (all_symbols_read_handler): Pass libgcc to the linker.
612 (all_symbols_read_handler): Parse -libgcc
614 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
616 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
617 * Makefile.in: Regenerate.
618 * lto-plugin.c (add_output_files): Argument is now a FILE.
619 (exec_lto_wrapper): Use writeargv and pex.
621 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
624 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
625 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
628 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
630 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
632 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
634 * lto-plugin.c: Include libiberty.h.
635 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
638 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
643 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
645 * lto-plugin.c (plugin_file_info): Remove fd and elf.
646 (parse_table_entry): strdup entry->name and entry->comdat_key.
647 (free_1): Free name and comdat_key. Don't close the file. Don't call
649 (claim_file_handler): Always call elf_end.
651 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
653 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
654 -D_FILE_OFFSET_BITS=64
655 * Makefile.in: Regenerate
657 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
659 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
660 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
661 * Makefile.in: Regenerate.
662 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
663 * configure: Regenerate.
664 * configure.ac: Add AC_SUBST(target_noncanonical).
666 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
668 * lto-plugin.c: Include stdbool.h.
669 (debug, nop): Declare as bool.
671 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
673 * lto-plugin.c (nop): New.
674 (use_original_files): New.
675 (all_symbols_read_handler): Call use_original_files if nop is true.
676 (process_option): Parse the -nop option.
678 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
680 * lto-plugin.c (debug): New.
681 (exec_lto_wrapper): Print argv if debug is true.
682 (process_option): Process the -debug command line option.
684 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
686 * lto-plugin.c (process_option): The argument is now a single option,
687 not a space separated list.
689 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
691 * lto-plugin.c: Include sys/types.h and sys/wait.h
692 (output_files, num_output_files, lto_wrapper_argv,
693 lto_wrapper_num_args): New.
694 (free_2): Free output_files.
695 (write_resolution): Disable.
696 (add_output_files): New.
697 (exec_lto_wrapper): New.
698 (all_symbols_read_handler): Run lto-wrapper.
699 (claim_file_handler): Free lto_file.name and call elf_end.
700 (process_option): New.
702 2008-11-26 Rafael Espindola <espindola@google.com>
704 * lto-plugin.c (add_input_file): New.
705 (get_section): Return NULL if get_section fails.
706 (write_resolution): New.
707 (all_symbols_read_handler): Call add_input_file.
708 (claim_file_handler): Unlink the correct file.
709 (onload): Record add_input_file.
711 2008-09-23 Rafael Espindola <espindola@google.com>
713 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
714 Update the location of common.c.
715 * Makefile.in: Regenerate.
716 * common.c: Moved to gcc/lto.
717 * common.h: Moved to gcc/lto.
718 * lto-plugin.c: Update the location of common.h.
719 * lto-symtab.c: Update the location of common.h.
721 2008-09-23 Rafael Espindola <espindola@google.com>
723 * common.c: Include common.h.
724 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
726 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
729 2008-09-23 Rafael Espindola <espindola@google.com>
731 * lto-plugin.c (plugin_file_info): Add temp.
732 (cleanup_handler): Only delete temporary files.
733 (claim_file_handler): Initialize lto_file.temp.
735 2008-09-23 Rafael Espindola <espindola@google.com>
737 * plugin-api.h: Moved to include.
739 2008-09-23 Rafael Espindola <espindola@google.com>
741 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
744 2008-09-22 Rafael Espindola <espindola@google.com>
746 * plugin-api.h: Copy from binutils' cvs.
748 2008-09-22 Rafael Espindola <espindola@google.com>
750 * lto-symtab.c (get_symbols, add_symbols): Update signature.
751 * plugin-api.h: Copy from binutils' cvs.
753 2008-09-22 Rafael Espindola <espindola@google.com>
755 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
758 2008-09-10 Rafael Espindola <espindola@google.com>
760 * lto-plugin.c (onload): add missing break statements and asserts.
761 * lto-symtab.c (claim_file_handler): Make it static.
762 (all_symbols_read_handler): Make it static.
763 (all_file_handles): Make it static.
764 (num_file_handles): Make it static.
765 (register_claim_file): Make it static.
766 (register_object): Indent properly.
768 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
770 * Makefile.am (ltosymtab_LDADD): Add -lelf.
771 * Makefiel.in: Regenerate.
772 * lto-plugin.c: Include ar.h.
773 (claim_file_handler): Handle file->offset != 0.
774 * lto-symtab.c: Include gelf.h.
775 (all_file_handles): Change type.
776 (register_object): New.
777 (register_file): Add support for archives.
778 (resolve): Update to new type of all_file_handles.
779 (print): Update to new type of all_file_handles.
780 (free_all): Update to new type of all_file_handles.
781 (main): Update to new type of all_file_handles.
783 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
785 * lto-plugin.c (get_string_table): Remove.
786 (get_section): Use elf_strptr instead of get_string_table.
788 2008-09-08 Doug Kwan <dougkwan@google.com>
790 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
791 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
793 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
795 * Makefile.am (ltosymtab_SOURCES): add common.c.
796 (ltosymtab_CFLAGS): New.
797 (liblto_plugin_la_SOURCES): Add common.c.
798 * Makefile.in: Regenerate.
801 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
802 (plugin_symtab): New.
803 (plugin_file_info): New.
804 (register_all_symbols_read): New.
806 (claimed_files): New.
807 (num_claimed_files): New.
808 (translate): Don't drop the slot number.
811 (all_symbols_read_handler): New.
812 (claim_file_handler): Record every claimed file.
813 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
815 * lto-symtab.c: Include stdlib.h, string.h and common.h.
816 (current_file_handle): Remove.
817 (ld_plugin_all_symbols_read_handler): New.
818 (plugin_handle): New.
820 (all_file_handles): New.
821 (num_file_handles): New.
823 (register_all_symbols_read): New.
824 (add_symbols): Don't print the symbols, just record them.
825 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
827 (load_plugin): Use plugin_handle.
828 (register_file): Add the file handle to all_file_handles.
831 (unload_plugin): New.
833 (main): Call all_symbols_read_handler and free resources.
835 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
837 * Makefile.am (AM_CFLAGS): New.
838 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
839 (lib_LTLIBRARIES): New.
840 (liblto_plugin_la_SOURCES): New.
841 (liblto_plugin_la_LIBADD): New.
842 * Makefile.in: Regenerate.
843 * acinclude.m4: Don't include ../config/acx.m4 and
844 ../config/no-executables.m4.
845 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
847 * aclocal.m4: Regenerate.
848 * configure: Regenerate.
849 * configure.ac: Use AM_PROG_LIBTOOL.
851 * lto-symtab.c: Rewrite to use the plugin.
854 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
856 * configure: Regenerate.
857 * configure.ac: Use AC_CHECK_GELF.
858 * lto-symtab.c: Include gelf.h.
859 (get_string_table): Use size independent API.
860 (printTable): Use lld to print 64 bit integers.
862 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
864 * lto-symtab.c (parse_table_entry): Assert entry->kind and
865 entry->visibility are valid.
867 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
868 * lto-symtab.c (table_entry): Add comdat.
869 (parse_table_entry): Read comdat.
871 2008-08-21 Rafael Espindola <espindola@google.com>