Fix memory barrier patterns for pre PA8800 processors
[official-gcc.git] / lto-plugin / ChangeLog
blobb9002360058779e6eac0e65d3b2f8999412fdc9d
1 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
3         * configure: Regenerate.
5 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
7         * configure: Regenerate.
9 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
11         * configure: Regenerate.
13 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
15         * configure: Regenerate.
17 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
19         * configure: Regenerate.
21 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
23         * configure: Regenerate.
25 2023-06-30  Martin Jambor  <mjambor@suse.cz>
27         * Makefile.in: Regenerate.
29 2023-06-22  Marek Polacek  <polacek@redhat.com>
31         * configure.ac (--enable-host-bind-now): New check.  Link with
32         -z,now.
33         * configure: Regenerate.
35 2023-05-11  Joseph Myers  <joseph@codesourcery.com>
37         PR middle-end/109128
38         * lto-plugin.c (register_claim_file_v2): New.
39         (claim_file_handler_v2): New.
40         (claim_file_handler): Wrap claim_file_handler_v2.
41         (onload): Handle LDPT_REGISTER_CLAIM_FILE_HOOK_V2.
43 2022-11-23  Marek Polacek  <polacek@redhat.com>
45         Revert:
46         2022-11-23  Marek Polacek  <polacek@redhat.com>
48         * configure.ac (--enable-host-bind-now): New check.  Link with
49         -z,now.
50         * configure: Regenerate.
52 2022-11-23  Marek Polacek  <polacek@redhat.com>
54         * configure.ac (--enable-host-bind-now): New check.  Link with
55         -z,now.
56         * configure: Regenerate.
58 2022-10-12  Martin Liska  <mliska@suse.cz>
60         * configure: Regenerate.
62 2022-10-11  Olivier Hainque  <hainque@adacore.com>
63             Olivier Hainque  <hainque@adacore.com>
65         * configure: Regenerate.
67 2022-08-01  Martin Liska  <mliska@suse.cz>
69         PR lto/106170
70         * configure.ac: Replace $target with $host.
71         * configure: Regenerate.
73 2022-07-14  Martin Liska  <mliska@suse.cz>
75         PR bootstrap/106156
76         * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
77         * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
78         * Makefile.in: Regenerate.
79         * configure: Regenerate.
81 2022-07-12  Martin Liska  <mliska@suse.cz>
83         * lto-plugin.c (negotiate_api_version): New.
84         (onload): Negotiate API version.
85         * Makefile.am: Add -DBASE_VERSION.
86         * Makefile.in: Regenerate.
88 2022-07-07  Martin Liska  <mliska@suse.cz>
90         PR lto/106170
91         * configure.ac: Configure HAVE_PTHREAD_LOCKING.
92         * lto-plugin.c (LOCK_SECTION): New.
93         (UNLOCK_SECTION): New.
94         (claim_file_handler): Use the newly added macros.
95         (onload): Likewise.
96         * config.h.in: Regenerate.
97         * configure: Regenerate.
99 2022-07-01  Pekka Seppänen  <pexu@gcc.mail.kapsi.fi>
101         PR lto/106118
102         * configure.ac: Move -pthread from here...
103         * Makefile.am: ...to here.
104         * configure: Regenerate.
105         * Makefile.in: Likewise.
107 2022-06-27  Martin Liska  <mliska@suse.cz>
109         * lto-plugin.c (plugin_lock): New lock.
110         (claim_file_handler): Use mutex for critical section.
111         (onload): Initialize mutex.
112         * configure.ac: Check for pthread.h.
113         * configure: Regenerate.
114         * config.h.in: Regenerate.
116 2022-06-20  Martin Liska  <mliska@suse.cz>
118         * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
119         (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
120         (all_symbols_read_handler): Ignore file if skip_file is true.
121         (onload): Handle LDPT_GET_SYMBOLS_V3.
123 2022-05-04  Martin Liska  <mliska@suse.cz>
125         * lto-plugin.c (struct plugin_objfile): Use bool for offset
126         field.
127         (exec_lto_wrapper): Assign true/false to bool variables.
128         (process_offload_section): Likewise.
129         (claim_file_handler): Likewise.
130         (onload): Likewise.
132 2022-03-22  Jakub Jelinek  <jakub@redhat.com>
134         PR lto/102426
135         * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
136         LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
137         * Makefile.am (version_arg, version_dep): Set conditionally based
138         on LTO_PLUGIN_USE_SYMVER*.
139         (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
140         -export-symbols-regex onload.
141         (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
142         * lto-plugin.map: New file.
143         * configure: Regenerated.
144         * Makefile.in: Regenerated.
146 2022-03-11  Tobias Burnus  <tobias@codesourcery.com>
148         * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
149         link_output_name for -foffload-objects's file name, if available.
151 2022-03-01  Martin Liska  <mliska@suse.cz>
153         * lto-plugin.c (process_offload_section): Use a linker as many
154         comments are connected to gold linker.
155         (process_option): Likewise.
157 2021-12-02  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
159         * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
160         -linker-output-auto-nolto-rel typo.
161         (process_option): Adjust accordingly, accepting both old and
162         new spelling.
164 2021-09-13  Andrew Pinski  <apinski@marvell.com>
166         PR lto/49664
167         * Makefile.am: Export only onload.
168         * Makefile.in: Regenerate.
170 2021-06-25  Richard Biener  <rguenther@suse.de>
172         * lto-plugin.c (ltrans_objects): New global.
173         (all_symbols_read_handler): If -ltrans-objects was specified,
174         add the output files from the specified file directly.
175         (process_option): Handle -ltrans-objects.
177 2021-05-10  Martin Liska  <mliska@suse.cz>
179         * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
180         (LTO_SYMTAB_PREFIX): Likewise.
181         (LTO_SYMTAB_PREFIX_LEN): Likewise.
182         (LTO_SYMTAB_EXT_PREFIX): Likewise.
183         (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
184         (LTO_LTO_PREFIX): Likewise.
185         (LTO_LTO_PREFIX_LEN): Likewise.
186         (OFFLOAD_SECTION): Likewise.
187         (OFFLOAD_SECTION_LEN): Likewise.
188         (startswith): New function.
189         (all_symbols_read_handler): Use it.
190         (process_symtab): Likewise.
191         (process_symtab_extension): Likewise.
192         (process_offload_section): Likewise.
193         (process_option): Likewise.
195 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
197         PR bootstrap/99703
198         * configure: Regenerated.
200 2021-04-21  Martin Liska  <mliska@suse.cz>
202         * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
204 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
206         * configure: Re-generate.
208 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
210         * configure: Regenerate.
212 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
214         * Makefile.am: Avoid using sanitizer.
215         * Makefile.in: Regenerate.
217 2020-09-10  Jonathan Yong  <10walls@gmail.com>
219         * Makefile.am: drop versioning from libtool completely.
220         * Makefile.in: regenerate.
222 2020-09-09  Nick Clifton  <nickc@redhat.com>
224         * lto-plugin.c (struct plugin_symtab): Add last_sym field.
225         (parse_symtab_extension): Only read as many entries as are
226         available in the buffer.  Store the data read into the symbol
227         table indexed from last_sym.  Increment last_sym.
229 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
231         PR bootstrap/96202
232         * configure: Regenerated.
234 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
236         PR bootstrap/95413
237         * configure: Regenerated.
239 2020-05-26  Alexandre Oliva  <oliva@adacore.com>
241         * lto-plugin.c (skip_in_suffix): New.
242         (exec_lto_wrapper): Use skip_in_suffix and concat to build
243         non-temporary output names.
244         (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
245         override link_output_name with it.
247 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
249         PR bootstrap/94998
250         * configure: Regenerated.
252 2020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
254         * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
255         (linker_output_set): Change type to bool.
256         (linker_output_known): Likewise.
257         (linker_output_auto_nolto_rel): New variable.
258         (all_symbols_read_handler): Take it into account.
259         <LDPO_REL>: Do not issue the warning if it is set.
260         (process_option): Process -linker-output-auto-notlo-rel.
261         (cleanup_handler): Remove unused variable.
262         (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
264 2020-04-28  H.J. Lu  <hongjiu.lu@intel.com>
266         PR bootstrap/94739
267         * configure: Regenerated.
269 2020-04-25  H.J. Lu  <hongjiu.lu@intel.com>
271         PR bootstrap/94739
272         * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
273         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
274         AC_SUBST(CET_HOST_FLAGS).
275         * Makefile.in: Regenerated.
276         * aclocal.m4: Likewise.
277         * configure: Likewise.
279 2020-03-19  Martin Liska  <mliska@suse.cz>
281         * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
282         (LTO_SYMTAB_PREFIX): ... this.
283         (LTO_SECTION_PREFIX_LEN): Rename to ...
284         (LTO_SYMTAB_PREFIX_LEN): ... this.
285         (LTO_SYMTAB_EXT_PREFIX): New.
286         (LTO_SYMTAB_EXT_PREFIX_LEN): New.
287         (LTO_LTO_PREFIX): New.
288         (LTO_LTO_PREFIX_LEN): New.
289         (parse_table_entry): Fill up unused to zero.
290         (parse_table_entry_extension): New.
291         (parse_symtab_extension): New.
292         (finish_conflict_resolution): Change type
293         for resolution.
294         (process_symtab): Use new macro name.
295         (process_symtab_extension): New.
296         (claim_file_handler): Parse also process_symtab_extension.
297         (onload): Call new add_symbols_v2.
299 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
301         Update copyright years.
303 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
305         * configure: Regenerate.
307 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
309         * lto-plugin.c (cleanup_handler): Remove unused var.
311 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
313         * lto-plugin.c (exec_lto_wrapper): Make the wrapper
314         arguments filename more user-friendly.
315         (file_exists, maybe_unlink): New.
316         (cleanup_handler): Use maybe unlink to handle the
317         case when temps should be saved.
318         (process_option): Look for -v, â€”-version, -save-temps.
319         (onload): Record the linker output file name.
320         Check for -v, â€”-version, -save-temps in the GCC collect
321         options environment.
323 2019-02-26  Martin Liska  <mliska@suse.cz>
325         * lto-symtab.c: Remove.
327 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
329         Update copyright years.
331 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
333         PR bootstrap/82856
334         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
335         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
337 2018-05-30  Jan Hubicka  <jh@suse.cz>
339         * lto-plugin.c: (non_claimed_files): New static var.
340         (linker_ouput_known): New static var.
341         (all_symbols_read_handler): When user specifies linker output do not
342         imply it; output warning when nonlto-rel mode is forced.
343         (claim_file_header): Record number of nonclaimed files.
344         (process_option): Remember if linker output is known
346 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
348         PR jit/85384
349         * configure: Regenerate.
351 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
353         Update copyright years.
355 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
357         PR lto/81487
358         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
359         asprintf.
360         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
362 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
364         PR other/79046
365         * configure.ac: Add GCC_BASE_VER.
366         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
367         get version from BASE-VER file.
368         * configure: Regenerated.
369         * Makefile.in: Regenerated.
371 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
373         Update copyright years.
375 2016-11-15  Matthias Klose  <doko@ubuntu.com>
377         * configure: Regenerate.
379 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
381         PR driver/68463
382         * lto-plugin.c (struct plugin_offload_file): New.
383         (offload_files): Change type.
384         (offload_files_last, offload_files_last_obj): New.
385         (offload_files_last_lto): New.
386         (free_2): Adjust accordingly.
387         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
388         Don't call free_1 for offload_files.  Write names of object files with
389         offloading to the temporary file.  Add new option to lto_arg_ptr.
390         (claim_file_handler): Don't claim file if it contains offload sections
391         without LTO sections.  If it contains offload sections, add to the list.
393 2016-01-15  Martin Liska  <mliska@suse.cz>
395         * lto-plugin.c (all_symbols_read_handler): Assign default
396         value to a string variable.
398 2015-11-25  Jan Hubicka  <jh@suse.cz>
400         PR lto/67548
401         * lto-plugin.c (linker_output, linker_output_set): New statics.
402         (all_symbols_read_handler): Add -flinker-output option.
403         (onload): Record linker_output info.
405 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
407         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
408         * configure: Regenerate.
409         * config.h.in: Ditto.
411 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
413         * Makefile.am: Drop 'by automake version' from top-level comment.
414         * Makefile.in: Regenerated with automake-1.11.6.
415         * aclocal.m4: Likewise.
416         * configure: Likewise.
418 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
420         * lto-plugin.c (release_input_file): Removed.
421         (claim_file_handler): Don't call release_input_file.
422         (onload): Don't set release_input_file.
424 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
426         * lto-plugin.c (claim_file_handler): Pass handle to
427         release_input_file.
429 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
431         * lto-plugin.c (claim_file_handler): Call release_input_file only
432         if file is claimed.
434 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
436         * lto-plugin.c (claim_file_handler): Call release_input_file only
437         if it is not NULL.
439 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
441         PR lto/64837
442         * lto-plugin.c (release_input_file): New.
443         (claim_file_handler): Call release_input_file.
444         (onload): Set release_input_file.
446 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
448         * lto-plugin.c (offload_files, num_offload_files): New static variables.
449         (free_1): Use arguments instead of global variables.
450         (free_2): Free offload_files.
451         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
452         arguments.
453         (claim_file_handler): Do not add file to claimed_files if it contains
454         offload sections without LTO sections.  Add it to offload_files instead.
456 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
458         PR bootstrap/63784
459         * configure: Regenerated.
461 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
462             Bernd Schmidt  <bernds@codesourcery.com>
463             Andrey Turetskiy  <andrey.turetskiy@intel.com>
464             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
466         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
467         (struct plugin_objfile): Add new field "offload".
468         (process_offload_section): New static function.
469         (claim_file_handler): Claim file if it contains offload sections.
471 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
472             Thomas Schwinge  <thomas@codesourcery.com>
473             Ilya Verbin  <ilya.verbin@intel.com>
474             Andrey Turetskiy  <andrey.turetskiy@intel.com>
476         * Makefile.am (libexecsubdir): Tweak for the possibility of being
477         configured for offload compiler.
478         (accel_dir_suffix, real_target_noncanonical): New variables substituted
479         by configure.
480         * Makefile.in: Regenerate.
481         * configure: Regenerate.
482         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
483         variables.
485 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
487         PR target/63610
488         * configure: Regenerate.
490 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
492         PR bootstrap/62260
493         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
494         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
495         $host_subdir.
496         * Makefile.in: Regenerated.
497         * configure: Likewise.
499 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
501         * configure.ac (--with-libiberty): New configure option.
502         * configure: Regenerate.
503         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
504         variables.
505         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
506         (liblto_plugin_la_DEPENDENCIES): Use them.
507         * Makefile.in: Regenerate.
509 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
511         PR lto/60981
512         * configure.ac: Check for -static-libgcc.
513         * configure: Regenerate.
515 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
517         PR sanitizer/56781
518         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
519         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
520         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
521         over ../libiberty/pic/libiberty.a if the former exists.
522         * Makefile.in: Regenerated.
524         PR sanitizer/56781
525         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
526         * Makefile.in: Regenerated.
528 2014-04-02  Richard Biener  <rguenther@suse.de>
530         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
531         is set in COLLECT_GCC_OPTIONS.
533 2014-03-28  Richard Biener  <rguenther@suse.de>
535         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
537 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
539         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
540         for gcc.
541         * configure: Regenerate.
542         * Makefile.am (AM_LDFLAGS): New variable.
543         (liblto_plugin_la_LDFLAGS): Add it.
544         * Makefile.in: Regenerate.
546 2013-09-20  Alan Modra  <amodra@gmail.com>
548         * configure: Regenerate.
550 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
552         * configure: Regenerated.
554 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
556         * lto-plugin.c: Fix typo.
558 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
560         * configure: Regenerated.
562 2012-02-22  Kai Tietz  <ktietz@redhat.com>
564         PR lto/50616
565         * lto-plugin.c (PRI_LL): New macro.
566         (dump_symtab): Use PRI_LL instead of ll in print.
567         (process_symtab): Use PRI_LL instead of ll in scan.
569 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
571         * configure: Regenerate.
573 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
575         * configure: Regenerate.
577 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
579         * configure: Regenerate.
581 2011-10-02  Jan Hubicka  <jh@suse.cz>
583         PR lto/47247
584         * lto-plugin.c (get_symbols_v2): New variable.
585         (write_resolution): Use V2 API when available.
586         (onload): Handle LDPT_GET_SYMBOLS_V2.
588 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
589             Andi Kleen  <ak@linux.intel.com>
591         PR lto/50568
592         * lto-plugin.c (sym_aux): Change id to unsigned long long.
593         (plugin_symtab): Likewise.
594         (dump_symtab): Likewise.
595         (resolve_conflicts): Likewise.
596         (process_symtab): Likewise.
598 2011-08-10  Richard Guenther  <rguenther@suse.de>
600         PR bootstrap/49907
601         lto-plugin/
602         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
603         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
604         * configure: Regenerate.
605         * Makefile.in: Likewise.
606         * aclocal.m4: Likewise.
608 2011-04-20  Jim Meyering  <meyering@redhat.com>
610         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
612 2011-04-05  Richard Guenther  <rguenther@suse.de>
614         PR bootstrap/48431
615         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
617 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
619         * Makefile.in: Regenerate.
620         * aclocal.m4: Regenerate.
621         * configure: Regenerate.
623 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
625         * Makefile.am (all-local): Rename from 'all'.
626         * Makefile.in: Regenerate.
628 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
630         PR lto/47225
631         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
632         (liblto_plugin_la_LDFLAGS): Add -module.
633         (copy_lto_plugin): Renamed to...
634         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
635         of static modules.
636         * Makefile.in: Rebuild.
638 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
640         PR lto/47225
641         * Makefile.am (Wc): New helper for encoding -Wc,.
642         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
643         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
644         * Makefile.in: Regenerated.
646 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
648         Revert:
650         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
652         PR lto/47225
653         * Makefile.am (Wl): New helper for encoding -Wl,.
654         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
655         * Makefile.in: Regenerated.
657 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
659         PR lto/47225
660         * Makefile.am (Wl): New helper for encoding -Wl,.
661         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
662         * Makefile.in: Regenerated.
664 2011-01-25  Ian Lance Taylor  <iant@google.com>
666         * lto-plugin.c (gold_version): New static variable.
667         (all_symbols_read_handler): Don't check pass_through_items if
668         using gold 1.11 or later.
669         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
671 2011-01-12  Richard Guenther  <rguenther@suse.de>
673         PR lto/47264
674         * lto-plugin.c (parse_table_entry): Use memcpy to access
675         unaligned fields.
677 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
679         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
680         * Makefile.in: Regenerate.
682 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
684         Revert last change.
686 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
688         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
689         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
690         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
691         * Makefile.in: Regenerate.
693 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
695         PR middle-end/46674
696         PR lto/43157
697         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
698         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
699         * configure: Regenerate.
700         * config.h.in: Likewise.
702 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
704         PR target/40125
705         PR lto/46695
706         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
707         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
708         override -bindir setting.
709         * aclocal.m4: Regenerate.
710         * configure: Regenerate.
711         * Makefile.in: Regenerate.
713 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
715         * config.h.in: Regenerated.
716         * configure: Regenerated.
717         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
718         * lto-plugin.c (WIFEXITED): Define default.
719         (WEXITSTATUS): Likeiwse.
721 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
723         * config.h.in: Regenerated.
724         * configure: Regenerated.
725         * Makefile.in: Regenerated.
726         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
727         * lto-plugin.c:  Include sys/wait.h conditionally.
728         * aclocal.m4: Regenerated.
730 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
732         * lto-plugin.c (add_output_files): Fix memory leak.
734 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
736         PR bootstrap/46397
737         PR bootstrap/46362
738         * configure.ac: Add AC_TYPE_INT64_T test.
739         * config.h.in: Regenerate.
740         * configure: Likewise.
741         * lto-plugin.c (debug): Use char not bool.
742         (nop): Likewise.
743         (check_1): Rename from check, and use int not bool for gate argument.
744         (check): Macro wrapper for the above to coerce gate argument into
745         boolean-valued integer in case it has pointer type.
746         (parse_table_entry): Use 0 not false.
747         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
748         into two 32-bit parts and printing as hex ints.
750 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
752         PR lto/46291
753         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
755 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
757         PR lto/46273
758         * lto-plugin.h: Delete.
759         * lto-plugin-elf.c: Likewise.
760         * lto-plugin-coff.c: Likewise.
761         * configure.ac: Don't use libelf, don't source config.gcc.
762         (LIBELFLIBS): Delete.
763         (LIBELFINC): Delete.
764         (LTO_FORMAT): Delete.
765         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
766         (config.h): Add AC_CONFIG_HEADERS directive.
767         * Makefile.am (LIBELFLIBS): Delete.
768         (LIBELFINC): Delete.
769         (LTO_FORMAT): Delete.
770         (DEFS): Import.
771         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
772         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
773         any object-format-specific source file in the link.
774         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
775         * config.h.in: Generate.
776         * configure: Regenerate.
777         * Makefile.in: Likewise.
778         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
779         (LTO_SEGMENT_NAME): New definition.
780         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
781         (LTO_SECTION_PREFIX_LEN): New definition.
782         (struct sym_aux): Struct definition moved here from lto-plugin.h.
783         (struct plugin_symtab): Likewise.
784         (struct plugin_objfile): Likewise.
785         (struct plugin_objfile): New struct def.
786         (enum symbol_style): New enum type.
787         (add_symbols): Make static.
788         (claimed_files): Likewise.
789         (num_claimed_files): Likewise.
790         (sym_style): New global.
791         (check): Make static.
792         (parse_table_entry): Likewise.  Respect sym_style when extracting
793         symbol from symtab entry.
794         (translate): Make static.
795         (resolve_conflicts): Likewise.
796         (process_symtab): New function, per-section callback version of
797         old object-format-specific handling from deleted lto-plugin-elf.c.
798         (claim_file_handler): Convert ELF-specific version from deleted
799         lto-plugin-elf.c to simple_object interface and move here.
800         (process_options): Allow new '-sym-style=' option.
801         (onload): Don't call deleted onload_format_checks hook.
803 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
805         * lto-plugin.c (dump_symtab): Correct printf argument type.
806         (finish_conflict_resolution): Initialize resolution.
808 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
810         PR bootstrap/45951
811         * configure.ac: Add AC_CANONICAL_SYSTEM.
812         * configure: Regenerated.
814 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
816         * configure.ac: Source config.gcc to determine lto_binary_reader.
817         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
818         * Makefile.am (LTO_FORMAT): Import.
819         (liblto_plugin_la_SOURCES): Add object format dependent module
820         defined by LTO_FORMAT.
821         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
822         and work around libtool warning.
823         * configure: Regenerate.
824         * Makefile.in: Likewise.
825         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
826         (struct sym_aux): Likewise.
827         (struct plugin_symtab): Likewise.
828         (struct plugin_file_info): Likewise.
829         (LTO_SECTION_PREFIX): Likewise.
830         (add_symbols):  Make non-static.
831         (claimed_files): Likewise.
832         (num_claimed_files): Likewise.
833         (check): Likewise.
834         (parse_table_entry): Likewise.
835         (translate): Likewise.
836         (resolve_conflicts): Likewise.
837         (process_symtab): Move to new lto-plugin-elf.c object format dependent
838         source file.
839         (claim_file_handler): Likewise, and make non-static.
840         (onload): Call new onload_format_checks function.
841         * lto-plugin.h: New file.
842         (LTO_SECTION_PREFIX): Move here.
843         (struct sym_aux): Likewise.
844         (struct plugin_symtab): Likewise.
845         (struct plugin_file_info): Likewise.
846         (claim_file_handler): Add new function prototype.
847         (onload_format_checks): Likewise.
848         (check): Declare extern.
849         (translate): Likewise.
850         (parse_table_entry): Likewise.
851         (resolve_conflicts): Likewise.
852         (add_symbols):  Likewise.
853         (claimed_files): Likewise.
854         (num_claimed_files): Likewise.
855         * lto-plugin-elf.c (process_symtab): Move here.
856         (claim_file_handler): Likewise, and make non-static.
857         (onload_format_checks): New function factored out from onload.
858         * lto-plugin-coff.c (claim_file_handler): New function stub.
859         (onload_format_checks): Likewise.
861 2010-08-05  Andi Kleen  <ak@linux.intel.com>
863         * lto-plugin.c: Include <hashtab.h>
864         (sym_aux): Add next_conflict field to save conflict chains.
865         (plugin_file_info): Add conflicts symtab.
866         (parse_table_entry): Initialize aux->next_conflict.
867         (process_symtab): Increment found.
868         (dump_symtab): Add.
869         (finish_conflict_resolution): Add.
870         (free_symtab): Add.
871         (write_resolution): Remove symbols loop and move into
872         dump_symtab. Call dump_symtab for main symbol and conflicts table.
873         Call free_symtab to free conflicts table.
874         (SWAP): Add.
875         (eq_sym): Add.
876         (hash_sym): Add.
877         (symbol_strength): Add.
878         (resolve_conflicts): Add.
879         (claim_file_handler): Add n variable. Check return value of
880         process_symtab. Call resolve_conflicts.
882 2010-07-27  Andi Kleen  <ak@linux.intel.com>
884         * lto-plugin.c (translate): Remove debug fprintf.
886 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
888         PR bootstrap/45042
889         * lto-plugin.c (translate): Cast to unsigned long.
891 2010-07-23   Andi Kleen  <ak@linux.intel.com>
893         PR lto/44992
894         * lto-plugin.c (sym_aux): Add.
895         (plugin_symtab): Remove slots. Add aux and id.
896         (parse_table_entry): Change to use aux instead of slots.
897         (LTO_SECTION_PREFIX): Add.
898         (translate): Improve buffer allocation. Change to append
899         symbols to existing out buffer.
900         (get_section): Remove.
901         (process_symtab): Add.
902         (free_2): Free symtab->aux.
903         (write_resolution): Handle aux instead of slots.
904         Print sub id to resolution file.
905         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
906         calls with call to process_symtab.
908 2010-07-22  Richard Guenther  <rguenther@suse.de>
910         * Makefile.am: New copy_lto_plugin rule to install the plugin
911         into ../gcc.
912         * Makefile.in: Regenerated.
914 2010-05-21  Richard Guenther  <rguenther@suse.de>
916         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
918 2010-05-07  Richard Guenther <rguenther@suse.de>
920         * lto-plugin.c (free_2): Do not free resolution_file.
921         (write_resolution): Check that we were passed a resolution file.
922         (all_symbols_read_handler): Adjust.
923         (cleanup_handler): Do not remove the resolution file.
924         (process_option): Handle -fresolution=.
926 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
928         PR other/43620
929         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
930         * Makefile.in: Regenerate.
932 2010-04-23  Richard Guenther  <rguenther@suse.de>
934         PR lto/41550
935         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
936         (translate): Likewise.
937         (all_symbols_read_handler): Likewise.
938         (claim_file_handler): Likewise.
939         (process_option): Likewise.
940         (add_output_files): Likewise.  Remove filename length limit.
942 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
944         * Makefile.in: Regenerate.
945         * aclocal.m4: Regenerate.
947 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
949         PR lto/43336
950         * lto-plugin.c (cleanup_handler): Delete temporary output files.
952 2010-01-11  Richard Guenther  <rguenther@suse.de>
954         PR lto/41569
955         * Makefile.am: Disable dependencies.
956         * Makefile.in: Regenerated.
958 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
960         PR lto/42520
961         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
962         if -v is passed.
964 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
966         PR bootstrap/42306
967         * configure: Regenerated.
968         * Makefile.in: Likewise.
970 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
972         PR bootstrap/42096
973         * lto-plugin.c (claim_file_handler): Print offsets in hex.
975 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
977         * lto-plugin.c (write_resolution): Assume resolution_file is set.
978         Print the symbol name.
979         (all_symbols_read_handler): Create a resolution file.
980         Pass it to gcc.
981         (cleanup_handler): Remove the resolution file.
982         (process_option): Drop the -resolution option.
984 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
986         * lto-plugin.c (temp_obj_dir_name): Remove.
987         (arguments_file_name): New.
988         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
989         (exec_lto_wrapper):  Create arguments file with make_temp_file.
990         (cleanup_handler): Don't remove the temporary directory. Remove the
991         arguments file.
992         (onload): Don't create the temporary directory.
994 2009-11-04  Richard Guenther  <rguenther@suse.de>
995             Rafael Avila de Espindola  <espindola@google.com>
997         * lto-plugin.c (plugin_file_info): Remove temp field.
998         (cleanup_handler): Don't delete temporary objects.
999         (claim_file_handler): Don't create temporary objects.
1001 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
1003         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
1005 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
1007         PR41871
1008         * lto-plugin.c (claim_file_handler): Close files that we created.
1010 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
1012         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
1013         LDPL_ERROR
1015 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1017         PR lto/41652
1018         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
1019         * configure: Regenerate.
1021 2009-10-26  Richard Guenther  <rguenther@suse.de>
1023         * configure.ac: Use AM_MAINTAINER_MODE.
1024         * acinclude.m4: Remove.
1025         * configure: Re-generate.
1026         * Makefile.in: Likewise.
1027         * aclocal.m4: Likewise.
1029 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
1030     
1031         PR40790
1032         * configure: Regenerate.
1033         * configure.ac: Add AC_TYPE_UINT64_T.
1035 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
1037         * lto-plugin.c (message): New variable.
1038         (check): New function.
1039         (parse_table_entry, translate, write_resolution,add_output_files,
1040         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
1041         assert.
1042         (cleanup_handler): Use check instead of assert. Remove the arguments
1043         file if it exists.
1045 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
1047         * lto-plugin.c (resolution_file): New.
1048         (free_1): Update comment.
1049         (free_2): Free resolution_file.
1050         (write_resolution): Write resolution to specified file. Use the
1051         syms array from the symbol table.
1052         (all_symbols_read_handler): Delay call to free_1 past call to
1053         write_resolution.
1054         (process_option): Add a -resolution option.
1056 2009-10-13  Richard Guenther  <rguenther@suse.de>
1058         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1059         correct libiberty.
1060         * Makefile.in: Regenerated.
1062 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
1064         * lto-plugin.c (add_input_library): New.
1065         (all_symbols_read_handler): Use add_input_library for items that
1066         start with -l.
1067         (process_option): Fit in 80 columns.
1068         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
1070 2009-10-02  Diego Novillo  <dnovillo@google.com>
1072         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1073         and -D_FILE_OFFSET_BITS=64.
1074         * configure.ac: Add AC_SYS_LARGEFILE.
1075         * configure: Regenerate.
1076         * Makefile.in: Regenerate.
1077         * lto-plugin.c: Fix copyright boilerplate.
1079 2009-10-02  Diego Novillo  <dnovillo@google.com>
1081         * Makefile.am (ACLOCAL_AMFLAGS): Define.
1082         * aclocal.m4: Regenerate with aclocal-2.64
1083         * acinclude.m4: Remove.
1084         * Makefile.in: Regenerate with automake-1.11
1085         * configure.ac (AC_PREREQ): Update to 2.64.
1086         * configure: Regenerate.
1088 2009-10-02  Diego Novillo  <dnovillo@google.com>
1090         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1091         and -D_FILE_OFFSET_BITS=64.
1092         * configure.ac: Add AC_SYS_LARGEFILE.
1093         * configure: Regenerate.
1094         * Makefile.in: Regenerate.
1095         * lto-plugin.c: Fix copyright boilerplate.
1097 2009-10-02  Diego Novillo  <dnovillo@google.com>
1099         * Makefile.am (ACLOCAL_AMFLAGS): Define.
1100         * aclocal.m4: Regenerate with aclocal-2.64
1101         * acinclude.m4: Remove.
1102         * Makefile.in: Regenerate with automake-1.11
1103         * configure.ac (AC_PREREQ): Update to 2.64.
1104         * configure: Regenerate.
1106 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
1108         * Makefile.am (liblto_plugin_la_SOURCES): Remove
1109         $(top_srcdir)/../gcc/lto/common.c
1110         * Makefile.in: Regenerate.
1112 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
1114         * lto-plugin.c (pass_through_items): New.
1115         (num_pass_through_items): New.
1116         (all_symbols_read_handler): Update to use the -pass-through option.
1117         (process_option): Replace -libgcc with -pass-through.
1118         
1119 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1121         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1122         register_cleanup to be set.
1124 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1126         * Makefile.am: Remove all reference to ltosymtab.
1127         * Makefile.in: Regenerate.
1128         * lto-symtab.c: Remove.
1130 2009-05-21  Diego Novillo  <dnovillo@google.com>
1132         * configure.ac: Remove call to AC_CHECK_GELF.
1133         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1134         * acinclude.m4: Do not include ../config/libelf.m4
1135         * Makefile.am (LIBELFLIBS): Define.
1136         (LIBELFINC): Define.
1137         (AM_CPPFLAGS): Add $(LIBELFINC).
1138         (ltosymtab_LDADD): Add $(LIBELFLIBS).
1139         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1140         * lto-plugin.c: Always include <gelf.h>
1141         * lto-symtab.c: Likewise.
1142         * configure: Regenerate.
1143         * Makefile.in: Regenerate.
1145 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
1147         * lto-plugin.c (libgcc_filename): New.
1148         (all_symbols_read_handler): Pass libgcc to the linker.
1149         (all_symbols_read_handler): Parse -libgcc
1151 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
1153         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1154         * Makefile.in: Regenerate.
1155         * lto-plugin.c (add_output_files): Argument is now a FILE.
1156         (exec_lto_wrapper): Use writeargv and pex.
1158 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1160         Revert:
1161         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1162         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1165 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1167         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1169 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1171         * lto-plugin.c: Include libiberty.h.
1172         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1173         snprintf.
1175 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1177         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1178         file to lto-wrapper.
1180 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
1182         * lto-plugin.c (plugin_file_info): Remove fd and elf.
1183         (parse_table_entry): strdup entry->name and entry->comdat_key.
1184         (free_1): Free name and comdat_key. Don't close the file. Don't call
1185         elf_end.
1186         (claim_file_handler): Always call elf_end.
1188 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
1190         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1191         -D_FILE_OFFSET_BITS=64
1192         * Makefile.in: Regenerate
1194 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
1196         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1197         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1198         * Makefile.in: Regenerate.
1199         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1200         * configure: Regenerate.
1201         * configure.ac: Add AC_SUBST(target_noncanonical).
1203 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1205         * lto-plugin.c: Include stdbool.h.
1206         (debug, nop): Declare as bool.
1208 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1210         * lto-plugin.c (nop): New.
1211         (use_original_files): New.
1212         (all_symbols_read_handler): Call use_original_files if nop is true.
1213         (process_option): Parse the -nop option.
1215 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1217         * lto-plugin.c (debug): New.
1218         (exec_lto_wrapper): Print argv if debug is true.
1219         (process_option): Process the -debug command line option.
1221 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
1223         * lto-plugin.c (process_option): The argument is now a single option,
1224         not a space separated list.
1226 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
1228         * lto-plugin.c: Include sys/types.h and sys/wait.h
1229         (output_files, num_output_files, lto_wrapper_argv,
1230         lto_wrapper_num_args): New.
1231         (free_2): Free output_files.
1232         (write_resolution): Disable.
1233         (add_output_files): New.
1234         (exec_lto_wrapper): New.
1235         (all_symbols_read_handler): Run lto-wrapper.
1236         (claim_file_handler): Free lto_file.name and call elf_end.
1237         (process_option): New.
1239 2008-11-26  Rafael Espindola  <espindola@google.com>
1241         * lto-plugin.c (add_input_file): New.
1242         (get_section): Return NULL if get_section fails.
1243         (write_resolution): New.
1244         (all_symbols_read_handler): Call add_input_file.
1245         (claim_file_handler): Unlink the correct file.
1246         (onload): Record add_input_file.
1248 2008-09-23 Rafael Espindola  <espindola@google.com>
1250         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1251         Update the location of common.c.
1252         * Makefile.in: Regenerate.
1253         * common.c: Moved to gcc/lto.
1254         * common.h: Moved to gcc/lto.
1255         * lto-plugin.c: Update the location of common.h.
1256         * lto-symtab.c: Update the location of common.h.
1258 2008-09-23 Rafael Espindola  <espindola@google.com>
1260         * common.c: Include common.h.
1261         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1262         sizes.
1263         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1264         explicit sizes.
1266 2008-09-23 Rafael Espindola  <espindola@google.com>
1268         * lto-plugin.c (plugin_file_info): Add temp.
1269         (cleanup_handler): Only delete temporary files.
1270         (claim_file_handler): Initialize lto_file.temp.
1272 2008-09-23  Rafael Espindola  <espindola@google.com>
1274         * plugin-api.h: Moved to include.
1276 2008-09-23 Rafael Espindola  <espindola@google.com>
1278         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1279         format.
1281 2008-09-22 Rafael Espindola  <espindola@google.com>
1283         * plugin-api.h: Copy from binutils' cvs.
1285 2008-09-22 Rafael Espindola  <espindola@google.com>
1287         * lto-symtab.c (get_symbols, add_symbols): Update signature.
1288         * plugin-api.h: Copy from binutils' cvs.
1290 2008-09-22 Rafael Espindola  <espindola@google.com>
1292         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1293         Make extern
1295 2008-09-10 Rafael Espindola  <espindola@google.com>
1297         * lto-plugin.c (onload): add missing break statements and asserts.
1298         * lto-symtab.c (claim_file_handler): Make it static.
1299         (all_symbols_read_handler): Make it static.
1300         (all_file_handles): Make it static.
1301         (num_file_handles): Make it static.
1302         (register_claim_file): Make it static.
1303         (register_object): Indent properly.
1305 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1307         * Makefile.am (ltosymtab_LDADD): Add -lelf.
1308         * Makefiel.in: Regenerate.
1309         * lto-plugin.c: Include ar.h.
1310         (claim_file_handler): Handle file->offset != 0.
1311         * lto-symtab.c: Include gelf.h.
1312         (all_file_handles): Change type.
1313         (register_object): New.
1314         (register_file): Add support for archives.
1315         (resolve): Update to new type of all_file_handles.
1316         (print): Update to new type of all_file_handles.
1317         (free_all): Update to new type of all_file_handles.
1318         (main): Update to new type of all_file_handles.
1320 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1322         * lto-plugin.c (get_string_table): Remove.
1323         (get_section): Use elf_strptr instead of get_string_table.
1325 2008-09-08  Doug Kwan  <dougkwan@google.com>
1327         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1328         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1330 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
1332         * Makefile.am (ltosymtab_SOURCES): add common.c.
1333         (ltosymtab_CFLAGS): New.
1334         (liblto_plugin_la_SOURCES): Add common.c.
1335         * Makefile.in: Regenerate.
1336         * common.c: New.
1337         * common.h: New.
1338         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1339         (plugin_symtab): New.
1340         (plugin_file_info): New.
1341         (register_all_symbols_read): New.
1342         (get_symbols): New.
1343         (claimed_files): New.
1344         (num_claimed_files): New.
1345         (translate): Don't drop the slot number.
1346         (free_1): New.
1347         (free_2): New.
1348         (all_symbols_read_handler): New.
1349         (claim_file_handler): Record every claimed file.
1350         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1351         LDPT_GET_SYMBOLS.
1352         * lto-symtab.c: Include stdlib.h, string.h and common.h.
1353         (current_file_handle): Remove.
1354         (ld_plugin_all_symbols_read_handler): New.
1355         (plugin_handle): New.
1356         (file_handle): New.
1357         (all_file_handles): New.
1358         (num_file_handles): New.
1359         (get_symbols): New.
1360         (register_all_symbols_read): New.
1361         (add_symbols): Don't print the symbols, just record them.
1362         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1363         LDPT_GET_SYMBOLS.
1364         (load_plugin): Use plugin_handle.
1365         (register_file): Add the file handle to all_file_handles.
1366         (resolve): New.
1367         (print): New.
1368         (unload_plugin): New.
1369         (free_all): New.
1370         (main): Call all_symbols_read_handler and free resources.
1372 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1374         * Makefile.am (AM_CFLAGS): New.
1375         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1376         (lib_LTLIBRARIES): New.
1377         (liblto_plugin_la_SOURCES): New.
1378         (liblto_plugin_la_LIBADD): New.
1379         * Makefile.in: Regenerate.
1380         * acinclude.m4: Don't include ../config/acx.m4 and
1381         ../config/no-executables.m4.
1382         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1383         ../libtool.m4.
1384         * aclocal.m4: Regenerate.
1385         * configure: Regenerate.
1386         * configure.ac: Use AM_PROG_LIBTOOL.
1387         * lto-plugin.c: New.
1388         * lto-symtab.c: Rewrite to use the plugin.
1389         * plugin-api.h: New.
1391 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1393         * configure: Regenerate.
1394         * configure.ac: Use AC_CHECK_GELF.
1395         * lto-symtab.c: Include gelf.h.
1396         (get_string_table): Use size independent API.
1397         (printTable): Use lld to print 64 bit integers.
1399 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1401         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1402         entry->visibility are valid.
1404 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1405         * lto-symtab.c (table_entry): Add comdat.
1406         (parse_table_entry): Read comdat.
1408 2008-08-21  Rafael Espindola  <espindola@google.com>
1410         * Makefile.am: New.
1411         * Makefile.in: New.
1412         * acinclude.m4: New.
1413         * aclocal.m4: New.
1414         * configure: New.
1415         * configure.ac: New.
1416         * lto-symtab.c: New.