1 2017-05-02 Release Manager
5 2017-01-17 Jakub Jelinek <jakub@redhat.com>
8 * configure.ac: Add GCC_BASE_VER.
9 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
10 get version from BASE-VER file.
11 * configure: Regenerated.
12 * Makefile.in: Regenerated.
14 2017-01-04 Jakub Jelinek <jakub@redhat.com>
16 Update copyright years.
18 2016-11-15 Matthias Klose <doko@ubuntu.com>
20 * configure: Regenerate.
22 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
25 * lto-plugin.c (struct plugin_offload_file): New.
26 (offload_files): Change type.
27 (offload_files_last, offload_files_last_obj): New.
28 (offload_files_last_lto): New.
29 (free_2): Adjust accordingly.
30 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
31 Don't call free_1 for offload_files. Write names of object files with
32 offloading to the temporary file. Add new option to lto_arg_ptr.
33 (claim_file_handler): Don't claim file if it contains offload sections
34 without LTO sections. If it contains offload sections, add to the list.
36 2016-01-15 Martin Liska <mliska@suse.cz>
38 * lto-plugin.c (all_symbols_read_handler): Assign default
39 value to a string variable.
41 2015-11-25 Jan Hubicka <jh@suse.cz>
44 * lto-plugin.c (linker_output, linker_output_set): New statics.
45 (all_symbols_read_handler): Add -flinker-output option.
46 (onload): Record linker_output info.
48 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
50 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
51 * configure: Regenerate.
54 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
56 * Makefile.am: Drop 'by automake version' from top-level comment.
57 * Makefile.in: Regenerated with automake-1.11.6.
58 * aclocal.m4: Likewise.
59 * configure: Likewise.
61 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
63 * lto-plugin.c (release_input_file): Removed.
64 (claim_file_handler): Don't call release_input_file.
65 (onload): Don't set release_input_file.
67 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
69 * lto-plugin.c (claim_file_handler): Pass handle to
72 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
74 * lto-plugin.c (claim_file_handler): Call release_input_file only
77 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
79 * lto-plugin.c (claim_file_handler): Call release_input_file only
82 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
85 * lto-plugin.c (release_input_file): New.
86 (claim_file_handler): Call release_input_file.
87 (onload): Set release_input_file.
89 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
91 * lto-plugin.c (offload_files, num_offload_files): New static variables.
92 (free_1): Use arguments instead of global variables.
93 (free_2): Free offload_files.
94 (all_symbols_read_handler): Add names from offload_files to lto-wrapper
96 (claim_file_handler): Do not add file to claimed_files if it contains
97 offload sections without LTO sections. Add it to offload_files instead.
99 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
102 * configure: Regenerated.
104 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
105 Bernd Schmidt <bernds@codesourcery.com>
106 Andrey Turetskiy <andrey.turetskiy@intel.com>
107 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
109 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
110 (struct plugin_objfile): Add new field "offload".
111 (process_offload_section): New static function.
112 (claim_file_handler): Claim file if it contains offload sections.
114 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
115 Thomas Schwinge <thomas@codesourcery.com>
116 Ilya Verbin <ilya.verbin@intel.com>
117 Andrey Turetskiy <andrey.turetskiy@intel.com>
119 * Makefile.am (libexecsubdir): Tweak for the possibility of being
120 configured for offload compiler.
121 (accel_dir_suffix, real_target_noncanonical): New variables substituted
123 * Makefile.in: Regenerate.
124 * configure: Regenerate.
125 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
128 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
131 * configure: Regenerate.
133 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
136 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
137 * configure.ac (gcc_build_dir): Set and AC_SUBST according to
139 * Makefile.in: Regenerated.
140 * configure: Likewise.
142 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
144 * configure.ac (--with-libiberty): New configure option.
145 * configure: Regenerate.
146 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
148 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
149 (liblto_plugin_la_DEPENDENCIES): Use them.
150 * Makefile.in: Regenerate.
152 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
155 * configure.ac: Check for -static-libgcc.
156 * configure: Regenerate.
158 2014-04-17 Jakub Jelinek <jakub@redhat.com>
161 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
162 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
163 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
164 over ../libiberty/pic/libiberty.a if the former exists.
165 * Makefile.in: Regenerated.
168 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
169 * Makefile.in: Regenerated.
171 2014-04-02 Richard Biener <rguenther@suse.de>
173 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
174 is set in COLLECT_GCC_OPTIONS.
176 2014-03-28 Richard Biener <rguenther@suse.de>
178 * lto-plugin.c (process_symtab): Handle EINTR and short reads.
180 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
184 * configure: Regenerate.
185 * Makefile.am (AM_LDFLAGS): New variable.
186 (liblto_plugin_la_LDFLAGS): Add it.
187 * Makefile.in: Regenerate.
189 2013-09-20 Alan Modra <amodra@gmail.com>
191 * configure: Regenerate.
193 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
195 * configure: Regenerated.
197 2012-05-29 Joseph Myers <joseph@codesourcery.com>
199 * lto-plugin.c: Fix typo.
201 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
203 * configure: Regenerated.
205 2012-02-22 Kai Tietz <ktietz@redhat.com>
208 * lto-plugin.c (PRI_LL): New macro.
209 (dump_symtab): Use PRI_LL instead of ll in print.
210 (process_symtab): Use PRI_LL instead of ll in scan.
212 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
214 * configure: Regenerate.
216 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
218 * configure: Regenerate.
220 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
222 * configure: Regenerate.
224 2011-10-02 Jan Hubicka <jh@suse.cz>
227 * lto-plugin.c (get_symbols_v2): New variable.
228 (write_resolution): Use V2 API when available.
229 (onload): Handle LDPT_GET_SYMBOLS_V2.
231 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
232 Andi Kleen <ak@linux.intel.com>
235 * lto-plugin.c (sym_aux): Change id to unsigned long long.
236 (plugin_symtab): Likewise.
237 (dump_symtab): Likewise.
238 (resolve_conflicts): Likewise.
239 (process_symtab): Likewise.
241 2011-08-10 Richard Guenther <rguenther@suse.de>
245 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
246 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
247 * configure: Regenerate.
248 * Makefile.in: Likewise.
249 * aclocal.m4: Likewise.
251 2011-04-20 Jim Meyering <meyering@redhat.com>
253 * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
255 2011-04-05 Richard Guenther <rguenther@suse.de>
258 * lto-plugin.c (claim_file_handler): Do not declare vars in code.
260 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
262 * Makefile.in: Regenerate.
263 * aclocal.m4: Regenerate.
264 * configure: Regenerate.
266 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
268 * Makefile.am (all-local): Rename from 'all'.
269 * Makefile.in: Regenerate.
271 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
274 * Makefile.am (gcc_build_dir, in_gcc_libs): New.
275 (liblto_plugin_la_LDFLAGS): Add -module.
276 (copy_lto_plugin): Renamed to...
277 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
279 * Makefile.in: Rebuild.
281 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
284 * Makefile.am (Wc): New helper for encoding -Wc,.
285 (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
286 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
287 * Makefile.in: Regenerated.
289 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
293 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
296 * Makefile.am (Wl): New helper for encoding -Wl,.
297 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
298 * Makefile.in: Regenerated.
300 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
303 * Makefile.am (Wl): New helper for encoding -Wl,.
304 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
305 * Makefile.in: Regenerated.
307 2011-01-25 Ian Lance Taylor <iant@google.com>
309 * lto-plugin.c (gold_version): New static variable.
310 (all_symbols_read_handler): Don't check pass_through_items if
311 using gold 1.11 or later.
312 (onload): Set gold_version if we see LDPT_GOLD_VERSION.
314 2011-01-12 Richard Guenther <rguenther@suse.de>
317 * lto-plugin.c (parse_table_entry): Use memcpy to access
320 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
322 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
323 * Makefile.in: Regenerate.
325 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
331 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
332 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
333 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
334 * Makefile.in: Regenerate.
336 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
340 * configure.ac (SYM_STYLE): Don't AC_DEFINE.
341 * lto-plugin.c (sym_style): Don't use it; default to ss_none.
342 * configure: Regenerate.
343 * config.h.in: Likewise.
345 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
349 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
350 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
351 override -bindir setting.
352 * aclocal.m4: Regenerate.
353 * configure: Regenerate.
354 * Makefile.in: Regenerate.
356 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
358 * config.h.in: Regenerated.
359 * configure: Regenerated.
360 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
361 * lto-plugin.c (WIFEXITED): Define default.
362 (WEXITSTATUS): Likeiwse.
364 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
366 * config.h.in: Regenerated.
367 * configure: Regenerated.
368 * Makefile.in: Regenerated.
369 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
370 * lto-plugin.c: Include sys/wait.h conditionally.
371 * aclocal.m4: Regenerated.
373 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
375 * lto-plugin.c (add_output_files): Fix memory leak.
377 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
381 * configure.ac: Add AC_TYPE_INT64_T test.
382 * config.h.in: Regenerate.
383 * configure: Likewise.
384 * lto-plugin.c (debug): Use char not bool.
386 (check_1): Rename from check, and use int not bool for gate argument.
387 (check): Macro wrapper for the above to coerce gate argument into
388 boolean-valued integer in case it has pointer type.
389 (parse_table_entry): Use 0 not false.
390 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
391 into two 32-bit parts and printing as hex ints.
393 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
396 * lto-plugin.c (claim_file_handler): Don't close file descriptor.
398 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
401 * lto-plugin.h: Delete.
402 * lto-plugin-elf.c: Likewise.
403 * lto-plugin-coff.c: Likewise.
404 * configure.ac: Don't use libelf, don't source config.gcc.
405 (LIBELFLIBS): Delete.
407 (LTO_FORMAT): Delete.
408 (SYM_STYLE): Add AC_DEFINE var, set based on $target.
409 (config.h): Add AC_CONFIG_HEADERS directive.
410 * Makefile.am (LIBELFLIBS): Delete.
412 (LTO_FORMAT): Delete.
414 (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
415 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
416 any object-format-specific source file in the link.
417 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
418 * config.h.in: Generate.
419 * configure: Regenerate.
420 * Makefile.in: Likewise.
421 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
422 (LTO_SEGMENT_NAME): New definition.
423 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
424 (LTO_SECTION_PREFIX_LEN): New definition.
425 (struct sym_aux): Struct definition moved here from lto-plugin.h.
426 (struct plugin_symtab): Likewise.
427 (struct plugin_objfile): Likewise.
428 (struct plugin_objfile): New struct def.
429 (enum symbol_style): New enum type.
430 (add_symbols): Make static.
431 (claimed_files): Likewise.
432 (num_claimed_files): Likewise.
433 (sym_style): New global.
434 (check): Make static.
435 (parse_table_entry): Likewise. Respect sym_style when extracting
436 symbol from symtab entry.
437 (translate): Make static.
438 (resolve_conflicts): Likewise.
439 (process_symtab): New function, per-section callback version of
440 old object-format-specific handling from deleted lto-plugin-elf.c.
441 (claim_file_handler): Convert ELF-specific version from deleted
442 lto-plugin-elf.c to simple_object interface and move here.
443 (process_options): Allow new '-sym-style=' option.
444 (onload): Don't call deleted onload_format_checks hook.
446 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
448 * lto-plugin.c (dump_symtab): Correct printf argument type.
449 (finish_conflict_resolution): Initialize resolution.
451 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
454 * configure.ac: Add AC_CANONICAL_SYSTEM.
455 * configure: Regenerated.
457 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
459 * configure.ac: Source config.gcc to determine lto_binary_reader.
460 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
461 * Makefile.am (LTO_FORMAT): Import.
462 (liblto_plugin_la_SOURCES): Add object format dependent module
463 defined by LTO_FORMAT.
464 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
465 and work around libtool warning.
466 * configure: Regenerate.
467 * Makefile.in: Likewise.
468 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
469 (struct sym_aux): Likewise.
470 (struct plugin_symtab): Likewise.
471 (struct plugin_file_info): Likewise.
472 (LTO_SECTION_PREFIX): Likewise.
473 (add_symbols): Make non-static.
474 (claimed_files): Likewise.
475 (num_claimed_files): Likewise.
477 (parse_table_entry): Likewise.
478 (translate): Likewise.
479 (resolve_conflicts): Likewise.
480 (process_symtab): Move to new lto-plugin-elf.c object format dependent
482 (claim_file_handler): Likewise, and make non-static.
483 (onload): Call new onload_format_checks function.
484 * lto-plugin.h: New file.
485 (LTO_SECTION_PREFIX): Move here.
486 (struct sym_aux): Likewise.
487 (struct plugin_symtab): Likewise.
488 (struct plugin_file_info): Likewise.
489 (claim_file_handler): Add new function prototype.
490 (onload_format_checks): Likewise.
491 (check): Declare extern.
492 (translate): Likewise.
493 (parse_table_entry): Likewise.
494 (resolve_conflicts): Likewise.
495 (add_symbols): Likewise.
496 (claimed_files): Likewise.
497 (num_claimed_files): Likewise.
498 * lto-plugin-elf.c (process_symtab): Move here.
499 (claim_file_handler): Likewise, and make non-static.
500 (onload_format_checks): New function factored out from onload.
501 * lto-plugin-coff.c (claim_file_handler): New function stub.
502 (onload_format_checks): Likewise.
504 2010-08-05 Andi Kleen <ak@linux.intel.com>
506 * lto-plugin.c: Include <hashtab.h>
507 (sym_aux): Add next_conflict field to save conflict chains.
508 (plugin_file_info): Add conflicts symtab.
509 (parse_table_entry): Initialize aux->next_conflict.
510 (process_symtab): Increment found.
512 (finish_conflict_resolution): Add.
514 (write_resolution): Remove symbols loop and move into
515 dump_symtab. Call dump_symtab for main symbol and conflicts table.
516 Call free_symtab to free conflicts table.
520 (symbol_strength): Add.
521 (resolve_conflicts): Add.
522 (claim_file_handler): Add n variable. Check return value of
523 process_symtab. Call resolve_conflicts.
525 2010-07-27 Andi Kleen <ak@linux.intel.com>
527 * lto-plugin.c (translate): Remove debug fprintf.
529 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
532 * lto-plugin.c (translate): Cast to unsigned long.
534 2010-07-23 Andi Kleen <ak@linux.intel.com>
537 * lto-plugin.c (sym_aux): Add.
538 (plugin_symtab): Remove slots. Add aux and id.
539 (parse_table_entry): Change to use aux instead of slots.
540 (LTO_SECTION_PREFIX): Add.
541 (translate): Improve buffer allocation. Change to append
542 symbols to existing out buffer.
543 (get_section): Remove.
544 (process_symtab): Add.
545 (free_2): Free symtab->aux.
546 (write_resolution): Handle aux instead of slots.
547 Print sub id to resolution file.
548 (claim_file_handler): Clear lto_file. Replace get_symtab/translate
549 calls with call to process_symtab.
551 2010-07-22 Richard Guenther <rguenther@suse.de>
553 * Makefile.am: New copy_lto_plugin rule to install the plugin
555 * Makefile.in: Regenerated.
557 2010-05-21 Richard Guenther <rguenther@suse.de>
559 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
561 2010-05-07 Richard Guenther <rguenther@suse.de>
563 * lto-plugin.c (free_2): Do not free resolution_file.
564 (write_resolution): Check that we were passed a resolution file.
565 (all_symbols_read_handler): Adjust.
566 (cleanup_handler): Do not remove the resolution file.
567 (process_option): Handle -fresolution=.
569 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
572 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
573 * Makefile.in: Regenerate.
575 2010-04-23 Richard Guenther <rguenther@suse.de>
578 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
579 (translate): Likewise.
580 (all_symbols_read_handler): Likewise.
581 (claim_file_handler): Likewise.
582 (process_option): Likewise.
583 (add_output_files): Likewise. Remove filename length limit.
585 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
587 * Makefile.in: Regenerate.
588 * aclocal.m4: Regenerate.
590 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
593 * lto-plugin.c (cleanup_handler): Delete temporary output files.
595 2010-01-11 Richard Guenther <rguenther@suse.de>
598 * Makefile.am: Disable dependencies.
599 * Makefile.in: Regenerated.
601 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
604 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
607 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
610 * configure: Regenerated.
611 * Makefile.in: Likewise.
613 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
616 * lto-plugin.c (claim_file_handler): Print offsets in hex.
618 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
620 * lto-plugin.c (write_resolution): Assume resolution_file is set.
621 Print the symbol name.
622 (all_symbols_read_handler): Create a resolution file.
624 (cleanup_handler): Remove the resolution file.
625 (process_option): Drop the -resolution option.
627 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
629 * lto-plugin.c (temp_obj_dir_name): Remove.
630 (arguments_file_name): New.
631 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
632 (exec_lto_wrapper): Create arguments file with make_temp_file.
633 (cleanup_handler): Don't remove the temporary directory. Remove the
635 (onload): Don't create the temporary directory.
637 2009-11-04 Richard Guenther <rguenther@suse.de>
638 Rafael Avila de Espindola <espindola@google.com>
640 * lto-plugin.c (plugin_file_info): Remove temp field.
641 (cleanup_handler): Don't delete temporary objects.
642 (claim_file_handler): Don't create temporary objects.
644 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
646 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
648 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
651 * lto-plugin.c (claim_file_handler): Close files that we created.
653 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
655 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
658 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
661 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
662 * configure: Regenerate.
664 2009-10-26 Richard Guenther <rguenther@suse.de>
666 * configure.ac: Use AM_MAINTAINER_MODE.
667 * acinclude.m4: Remove.
668 * configure: Re-generate.
669 * Makefile.in: Likewise.
670 * aclocal.m4: Likewise.
672 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
675 * configure: Regenerate.
676 * configure.ac: Add AC_TYPE_UINT64_T.
678 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
680 * lto-plugin.c (message): New variable.
681 (check): New function.
682 (parse_table_entry, translate, write_resolution,add_output_files,
683 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
685 (cleanup_handler): Use check instead of assert. Remove the arguments
688 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
690 * lto-plugin.c (resolution_file): New.
691 (free_1): Update comment.
692 (free_2): Free resolution_file.
693 (write_resolution): Write resolution to specified file. Use the
694 syms array from the symbol table.
695 (all_symbols_read_handler): Delay call to free_1 past call to
697 (process_option): Add a -resolution option.
699 2009-10-13 Richard Guenther <rguenther@suse.de>
701 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
703 * Makefile.in: Regenerated.
705 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
707 * lto-plugin.c (add_input_library): New.
708 (all_symbols_read_handler): Use add_input_library for items that
710 (process_option): Fit in 80 columns.
711 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
713 2009-10-02 Diego Novillo <dnovillo@google.com>
715 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
716 and -D_FILE_OFFSET_BITS=64.
717 * configure.ac: Add AC_SYS_LARGEFILE.
718 * configure: Regenerate.
719 * Makefile.in: Regenerate.
720 * lto-plugin.c: Fix copyright boilerplate.
722 2009-10-02 Diego Novillo <dnovillo@google.com>
724 * Makefile.am (ACLOCAL_AMFLAGS): Define.
725 * aclocal.m4: Regenerate with aclocal-2.64
726 * acinclude.m4: Remove.
727 * Makefile.in: Regenerate with automake-1.11
728 * configure.ac (AC_PREREQ): Update to 2.64.
729 * configure: Regenerate.
731 2009-10-02 Diego Novillo <dnovillo@google.com>
733 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
734 and -D_FILE_OFFSET_BITS=64.
735 * configure.ac: Add AC_SYS_LARGEFILE.
736 * configure: Regenerate.
737 * Makefile.in: Regenerate.
738 * lto-plugin.c: Fix copyright boilerplate.
740 2009-10-02 Diego Novillo <dnovillo@google.com>
742 * Makefile.am (ACLOCAL_AMFLAGS): Define.
743 * aclocal.m4: Regenerate with aclocal-2.64
744 * acinclude.m4: Remove.
745 * Makefile.in: Regenerate with automake-1.11
746 * configure.ac (AC_PREREQ): Update to 2.64.
747 * configure: Regenerate.
749 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
751 * Makefile.am (liblto_plugin_la_SOURCES): Remove
752 $(top_srcdir)/../gcc/lto/common.c
753 * Makefile.in: Regenerate.
755 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
757 * lto-plugin.c (pass_through_items): New.
758 (num_pass_through_items): New.
759 (all_symbols_read_handler): Update to use the -pass-through option.
760 (process_option): Replace -libgcc with -pass-through.
762 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
764 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
765 register_cleanup to be set.
767 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
769 * Makefile.am: Remove all reference to ltosymtab.
770 * Makefile.in: Regenerate.
771 * lto-symtab.c: Remove.
773 2009-05-21 Diego Novillo <dnovillo@google.com>
775 * configure.ac: Remove call to AC_CHECK_GELF.
776 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
777 * acinclude.m4: Do not include ../config/libelf.m4
778 * Makefile.am (LIBELFLIBS): Define.
780 (AM_CPPFLAGS): Add $(LIBELFINC).
781 (ltosymtab_LDADD): Add $(LIBELFLIBS).
782 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
783 * lto-plugin.c: Always include <gelf.h>
784 * lto-symtab.c: Likewise.
785 * configure: Regenerate.
786 * Makefile.in: Regenerate.
788 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
790 * lto-plugin.c (libgcc_filename): New.
791 (all_symbols_read_handler): Pass libgcc to the linker.
792 (all_symbols_read_handler): Parse -libgcc
794 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
796 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
797 * Makefile.in: Regenerate.
798 * lto-plugin.c (add_output_files): Argument is now a FILE.
799 (exec_lto_wrapper): Use writeargv and pex.
801 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
804 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
805 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
808 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
810 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
812 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
814 * lto-plugin.c: Include libiberty.h.
815 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
818 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
820 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
823 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
825 * lto-plugin.c (plugin_file_info): Remove fd and elf.
826 (parse_table_entry): strdup entry->name and entry->comdat_key.
827 (free_1): Free name and comdat_key. Don't close the file. Don't call
829 (claim_file_handler): Always call elf_end.
831 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
833 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
834 -D_FILE_OFFSET_BITS=64
835 * Makefile.in: Regenerate
837 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
839 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
840 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
841 * Makefile.in: Regenerate.
842 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
843 * configure: Regenerate.
844 * configure.ac: Add AC_SUBST(target_noncanonical).
846 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
848 * lto-plugin.c: Include stdbool.h.
849 (debug, nop): Declare as bool.
851 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
853 * lto-plugin.c (nop): New.
854 (use_original_files): New.
855 (all_symbols_read_handler): Call use_original_files if nop is true.
856 (process_option): Parse the -nop option.
858 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
860 * lto-plugin.c (debug): New.
861 (exec_lto_wrapper): Print argv if debug is true.
862 (process_option): Process the -debug command line option.
864 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
866 * lto-plugin.c (process_option): The argument is now a single option,
867 not a space separated list.
869 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
871 * lto-plugin.c: Include sys/types.h and sys/wait.h
872 (output_files, num_output_files, lto_wrapper_argv,
873 lto_wrapper_num_args): New.
874 (free_2): Free output_files.
875 (write_resolution): Disable.
876 (add_output_files): New.
877 (exec_lto_wrapper): New.
878 (all_symbols_read_handler): Run lto-wrapper.
879 (claim_file_handler): Free lto_file.name and call elf_end.
880 (process_option): New.
882 2008-11-26 Rafael Espindola <espindola@google.com>
884 * lto-plugin.c (add_input_file): New.
885 (get_section): Return NULL if get_section fails.
886 (write_resolution): New.
887 (all_symbols_read_handler): Call add_input_file.
888 (claim_file_handler): Unlink the correct file.
889 (onload): Record add_input_file.
891 2008-09-23 Rafael Espindola <espindola@google.com>
893 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
894 Update the location of common.c.
895 * Makefile.in: Regenerate.
896 * common.c: Moved to gcc/lto.
897 * common.h: Moved to gcc/lto.
898 * lto-plugin.c: Update the location of common.h.
899 * lto-symtab.c: Update the location of common.h.
901 2008-09-23 Rafael Espindola <espindola@google.com>
903 * common.c: Include common.h.
904 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
906 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
909 2008-09-23 Rafael Espindola <espindola@google.com>
911 * lto-plugin.c (plugin_file_info): Add temp.
912 (cleanup_handler): Only delete temporary files.
913 (claim_file_handler): Initialize lto_file.temp.
915 2008-09-23 Rafael Espindola <espindola@google.com>
917 * plugin-api.h: Moved to include.
919 2008-09-23 Rafael Espindola <espindola@google.com>
921 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
924 2008-09-22 Rafael Espindola <espindola@google.com>
926 * plugin-api.h: Copy from binutils' cvs.
928 2008-09-22 Rafael Espindola <espindola@google.com>
930 * lto-symtab.c (get_symbols, add_symbols): Update signature.
931 * plugin-api.h: Copy from binutils' cvs.
933 2008-09-22 Rafael Espindola <espindola@google.com>
935 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
938 2008-09-10 Rafael Espindola <espindola@google.com>
940 * lto-plugin.c (onload): add missing break statements and asserts.
941 * lto-symtab.c (claim_file_handler): Make it static.
942 (all_symbols_read_handler): Make it static.
943 (all_file_handles): Make it static.
944 (num_file_handles): Make it static.
945 (register_claim_file): Make it static.
946 (register_object): Indent properly.
948 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
950 * Makefile.am (ltosymtab_LDADD): Add -lelf.
951 * Makefiel.in: Regenerate.
952 * lto-plugin.c: Include ar.h.
953 (claim_file_handler): Handle file->offset != 0.
954 * lto-symtab.c: Include gelf.h.
955 (all_file_handles): Change type.
956 (register_object): New.
957 (register_file): Add support for archives.
958 (resolve): Update to new type of all_file_handles.
959 (print): Update to new type of all_file_handles.
960 (free_all): Update to new type of all_file_handles.
961 (main): Update to new type of all_file_handles.
963 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
965 * lto-plugin.c (get_string_table): Remove.
966 (get_section): Use elf_strptr instead of get_string_table.
968 2008-09-08 Doug Kwan <dougkwan@google.com>
970 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
971 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
973 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
975 * Makefile.am (ltosymtab_SOURCES): add common.c.
976 (ltosymtab_CFLAGS): New.
977 (liblto_plugin_la_SOURCES): Add common.c.
978 * Makefile.in: Regenerate.
981 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
982 (plugin_symtab): New.
983 (plugin_file_info): New.
984 (register_all_symbols_read): New.
986 (claimed_files): New.
987 (num_claimed_files): New.
988 (translate): Don't drop the slot number.
991 (all_symbols_read_handler): New.
992 (claim_file_handler): Record every claimed file.
993 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
995 * lto-symtab.c: Include stdlib.h, string.h and common.h.
996 (current_file_handle): Remove.
997 (ld_plugin_all_symbols_read_handler): New.
998 (plugin_handle): New.
1000 (all_file_handles): New.
1001 (num_file_handles): New.
1003 (register_all_symbols_read): New.
1004 (add_symbols): Don't print the symbols, just record them.
1005 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1007 (load_plugin): Use plugin_handle.
1008 (register_file): Add the file handle to all_file_handles.
1011 (unload_plugin): New.
1013 (main): Call all_symbols_read_handler and free resources.
1015 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
1017 * Makefile.am (AM_CFLAGS): New.
1018 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1019 (lib_LTLIBRARIES): New.
1020 (liblto_plugin_la_SOURCES): New.
1021 (liblto_plugin_la_LIBADD): New.
1022 * Makefile.in: Regenerate.
1023 * acinclude.m4: Don't include ../config/acx.m4 and
1024 ../config/no-executables.m4.
1025 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1027 * aclocal.m4: Regenerate.
1028 * configure: Regenerate.
1029 * configure.ac: Use AM_PROG_LIBTOOL.
1030 * lto-plugin.c: New.
1031 * lto-symtab.c: Rewrite to use the plugin.
1032 * plugin-api.h: New.
1034 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
1036 * configure: Regenerate.
1037 * configure.ac: Use AC_CHECK_GELF.
1038 * lto-symtab.c: Include gelf.h.
1039 (get_string_table): Use size independent API.
1040 (printTable): Use lld to print 64 bit integers.
1042 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
1044 * lto-symtab.c (parse_table_entry): Assert entry->kind and
1045 entry->visibility are valid.
1047 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1048 * lto-symtab.c (table_entry): Add comdat.
1049 (parse_table_entry): Read comdat.
1051 2008-08-21 Rafael Espindola <espindola@google.com>
1055 * acinclude.m4: New.
1058 * configure.ac: New.
1059 * lto-symtab.c: New.