gimplify: Small RAW_DATA_CST gimplification fix
[official-gcc.git] / lto-plugin / ChangeLog
blob6280597a93eb681b03303f7299649c4a63cf372d
1 2024-08-23  H.J. Lu  <hjl.tools@gmail.com>
3         PR lto/116361
4         * lto-plugin.c (claim_file_handler_v2): Don't check obj.found
5         for the offload section.
7 2024-08-22  H.J. Lu  <hjl.tools@gmail.com>
9         PR lto/116361
10         * lto-plugin.c (claim_file_handler_v2): Rename claimed to
11         can_be_claimed.  Include the LTO object only if it is known to
12         be included in link output.
14 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
16         * configure: Regenerate.
17         * configure.ac: Handle Darwin rpaths.
19 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
21         * configure: Regenerate.
23 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
25         * configure: Regenerate.
27 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
29         * configure: Regenerate.
31 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
33         * configure: Regenerate.
35 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
37         * configure: Regenerate.
39 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
41         * configure: Regenerate.
43 2023-06-30  Martin Jambor  <mjambor@suse.cz>
45         * Makefile.in: Regenerate.
47 2023-06-22  Marek Polacek  <polacek@redhat.com>
49         * configure.ac (--enable-host-bind-now): New check.  Link with
50         -z,now.
51         * configure: Regenerate.
53 2023-05-11  Joseph Myers  <joseph@codesourcery.com>
55         PR middle-end/109128
56         * lto-plugin.c (register_claim_file_v2): New.
57         (claim_file_handler_v2): New.
58         (claim_file_handler): Wrap claim_file_handler_v2.
59         (onload): Handle LDPT_REGISTER_CLAIM_FILE_HOOK_V2.
61 2022-11-23  Marek Polacek  <polacek@redhat.com>
63         Revert:
64         2022-11-23  Marek Polacek  <polacek@redhat.com>
66         * configure.ac (--enable-host-bind-now): New check.  Link with
67         -z,now.
68         * configure: Regenerate.
70 2022-11-23  Marek Polacek  <polacek@redhat.com>
72         * configure.ac (--enable-host-bind-now): New check.  Link with
73         -z,now.
74         * configure: Regenerate.
76 2022-10-12  Martin Liska  <mliska@suse.cz>
78         * configure: Regenerate.
80 2022-10-11  Olivier Hainque  <hainque@adacore.com>
81             Olivier Hainque  <hainque@adacore.com>
83         * configure: Regenerate.
85 2022-08-01  Martin Liska  <mliska@suse.cz>
87         PR lto/106170
88         * configure.ac: Replace $target with $host.
89         * configure: Regenerate.
91 2022-07-14  Martin Liska  <mliska@suse.cz>
93         PR bootstrap/106156
94         * Makefile.am: Use ac_lto_plugin_extra_ldflags for AM_LDFLAGS.
95         * configure.ac: Use AC_SUBST(ac_lto_plugin_extra_ldflags).
96         * Makefile.in: Regenerate.
97         * configure: Regenerate.
99 2022-07-12  Martin Liska  <mliska@suse.cz>
101         * lto-plugin.c (negotiate_api_version): New.
102         (onload): Negotiate API version.
103         * Makefile.am: Add -DBASE_VERSION.
104         * Makefile.in: Regenerate.
106 2022-07-07  Martin Liska  <mliska@suse.cz>
108         PR lto/106170
109         * configure.ac: Configure HAVE_PTHREAD_LOCKING.
110         * lto-plugin.c (LOCK_SECTION): New.
111         (UNLOCK_SECTION): New.
112         (claim_file_handler): Use the newly added macros.
113         (onload): Likewise.
114         * config.h.in: Regenerate.
115         * configure: Regenerate.
117 2022-07-01  Pekka Seppänen  <pexu@gcc.mail.kapsi.fi>
119         PR lto/106118
120         * configure.ac: Move -pthread from here...
121         * Makefile.am: ...to here.
122         * configure: Regenerate.
123         * Makefile.in: Likewise.
125 2022-06-27  Martin Liska  <mliska@suse.cz>
127         * lto-plugin.c (plugin_lock): New lock.
128         (claim_file_handler): Use mutex for critical section.
129         (onload): Initialize mutex.
130         * configure.ac: Check for pthread.h.
131         * configure: Regenerate.
132         * config.h.in: Regenerate.
134 2022-06-20  Martin Liska  <mliska@suse.cz>
136         * lto-plugin.c (struct plugin_file_info): Add skip_file flag.
137         (write_resolution): Write resolution only if get_symbols != LDPS_NO_SYMS.
138         (all_symbols_read_handler): Ignore file if skip_file is true.
139         (onload): Handle LDPT_GET_SYMBOLS_V3.
141 2022-05-04  Martin Liska  <mliska@suse.cz>
143         * lto-plugin.c (struct plugin_objfile): Use bool for offset
144         field.
145         (exec_lto_wrapper): Assign true/false to bool variables.
146         (process_offload_section): Likewise.
147         (claim_file_handler): Likewise.
148         (onload): Likewise.
150 2022-03-22  Jakub Jelinek  <jakub@redhat.com>
152         PR lto/102426
153         * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
154         LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
155         * Makefile.am (version_arg, version_dep): Set conditionally based
156         on LTO_PLUGIN_USE_SYMVER*.
157         (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
158         -export-symbols-regex onload.
159         (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
160         * lto-plugin.map: New file.
161         * configure: Regenerated.
162         * Makefile.in: Regenerated.
164 2022-03-11  Tobias Burnus  <tobias@codesourcery.com>
166         * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
167         link_output_name for -foffload-objects's file name, if available.
169 2022-03-01  Martin Liska  <mliska@suse.cz>
171         * lto-plugin.c (process_offload_section): Use a linker as many
172         comments are connected to gold linker.
173         (process_option): Likewise.
175 2021-12-02  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
177         * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
178         -linker-output-auto-nolto-rel typo.
179         (process_option): Adjust accordingly, accepting both old and
180         new spelling.
182 2021-09-13  Andrew Pinski  <apinski@marvell.com>
184         PR lto/49664
185         * Makefile.am: Export only onload.
186         * Makefile.in: Regenerate.
188 2021-06-25  Richard Biener  <rguenther@suse.de>
190         * lto-plugin.c (ltrans_objects): New global.
191         (all_symbols_read_handler): If -ltrans-objects was specified,
192         add the output files from the specified file directly.
193         (process_option): Handle -ltrans-objects.
195 2021-05-10  Martin Liska  <mliska@suse.cz>
197         * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
198         (LTO_SYMTAB_PREFIX): Likewise.
199         (LTO_SYMTAB_PREFIX_LEN): Likewise.
200         (LTO_SYMTAB_EXT_PREFIX): Likewise.
201         (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
202         (LTO_LTO_PREFIX): Likewise.
203         (LTO_LTO_PREFIX_LEN): Likewise.
204         (OFFLOAD_SECTION): Likewise.
205         (OFFLOAD_SECTION_LEN): Likewise.
206         (startswith): New function.
207         (all_symbols_read_handler): Use it.
208         (process_symtab): Likewise.
209         (process_symtab_extension): Likewise.
210         (process_offload_section): Likewise.
211         (process_option): Likewise.
213 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
215         PR bootstrap/99703
216         * configure: Regenerated.
218 2021-04-21  Martin Liska  <mliska@suse.cz>
220         * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
222 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
224         * configure: Re-generate.
226 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
228         * configure: Regenerate.
230 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
232         * Makefile.am: Avoid using sanitizer.
233         * Makefile.in: Regenerate.
235 2020-09-10  Jonathan Yong  <10walls@gmail.com>
237         * Makefile.am: drop versioning from libtool completely.
238         * Makefile.in: regenerate.
240 2020-09-09  Nick Clifton  <nickc@redhat.com>
242         * lto-plugin.c (struct plugin_symtab): Add last_sym field.
243         (parse_symtab_extension): Only read as many entries as are
244         available in the buffer.  Store the data read into the symbol
245         table indexed from last_sym.  Increment last_sym.
247 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
249         PR bootstrap/96202
250         * configure: Regenerated.
252 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
254         PR bootstrap/95413
255         * configure: Regenerated.
257 2020-05-26  Alexandre Oliva  <oliva@adacore.com>
259         * lto-plugin.c (skip_in_suffix): New.
260         (exec_lto_wrapper): Use skip_in_suffix and concat to build
261         non-temporary output names.
262         (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
263         override link_output_name with it.
265 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
267         PR bootstrap/94998
268         * configure: Regenerated.
270 2020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
272         * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
273         (linker_output_set): Change type to bool.
274         (linker_output_known): Likewise.
275         (linker_output_auto_nolto_rel): New variable.
276         (all_symbols_read_handler): Take it into account.
277         <LDPO_REL>: Do not issue the warning if it is set.
278         (process_option): Process -linker-output-auto-notlo-rel.
279         (cleanup_handler): Remove unused variable.
280         (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
282 2020-04-28  H.J. Lu  <hongjiu.lu@intel.com>
284         PR bootstrap/94739
285         * configure: Regenerated.
287 2020-04-25  H.J. Lu  <hongjiu.lu@intel.com>
289         PR bootstrap/94739
290         * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
291         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
292         AC_SUBST(CET_HOST_FLAGS).
293         * Makefile.in: Regenerated.
294         * aclocal.m4: Likewise.
295         * configure: Likewise.
297 2020-03-19  Martin Liska  <mliska@suse.cz>
299         * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
300         (LTO_SYMTAB_PREFIX): ... this.
301         (LTO_SECTION_PREFIX_LEN): Rename to ...
302         (LTO_SYMTAB_PREFIX_LEN): ... this.
303         (LTO_SYMTAB_EXT_PREFIX): New.
304         (LTO_SYMTAB_EXT_PREFIX_LEN): New.
305         (LTO_LTO_PREFIX): New.
306         (LTO_LTO_PREFIX_LEN): New.
307         (parse_table_entry): Fill up unused to zero.
308         (parse_table_entry_extension): New.
309         (parse_symtab_extension): New.
310         (finish_conflict_resolution): Change type
311         for resolution.
312         (process_symtab): Use new macro name.
313         (process_symtab_extension): New.
314         (claim_file_handler): Parse also process_symtab_extension.
315         (onload): Call new add_symbols_v2.
317 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
319         Update copyright years.
321 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
323         * configure: Regenerate.
325 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
327         * lto-plugin.c (cleanup_handler): Remove unused var.
329 2019-05-15  Iain Sandoe  <iain@sandoe.co.uk>
331         * lto-plugin.c (exec_lto_wrapper): Make the wrapper
332         arguments filename more user-friendly.
333         (file_exists, maybe_unlink): New.
334         (cleanup_handler): Use maybe unlink to handle the
335         case when temps should be saved.
336         (process_option): Look for -v, â€”-version, -save-temps.
337         (onload): Record the linker output file name.
338         Check for -v, â€”-version, -save-temps in the GCC collect
339         options environment.
341 2019-02-26  Martin Liska  <mliska@suse.cz>
343         * lto-symtab.c: Remove.
345 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
347         Update copyright years.
349 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
351         PR bootstrap/82856
352         * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
353         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
355 2018-05-30  Jan Hubicka  <jh@suse.cz>
357         * lto-plugin.c: (non_claimed_files): New static var.
358         (linker_ouput_known): New static var.
359         (all_symbols_read_handler): When user specifies linker output do not
360         imply it; output warning when nonlto-rel mode is forced.
361         (claim_file_header): Record number of nonclaimed files.
362         (process_option): Remember if linker output is known
364 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
366         PR jit/85384
367         * configure: Regenerate.
369 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
371         Update copyright years.
373 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
375         PR lto/81487
376         * lto-plugin.c (claim_file_handler): Use xasprintf instead of
377         asprintf.
378         [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
380 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
382         PR other/79046
383         * configure.ac: Add GCC_BASE_VER.
384         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
385         get version from BASE-VER file.
386         * configure: Regenerated.
387         * Makefile.in: Regenerated.
389 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
391         Update copyright years.
393 2016-11-15  Matthias Klose  <doko@ubuntu.com>
395         * configure: Regenerate.
397 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
399         PR driver/68463
400         * lto-plugin.c (struct plugin_offload_file): New.
401         (offload_files): Change type.
402         (offload_files_last, offload_files_last_obj): New.
403         (offload_files_last_lto): New.
404         (free_2): Adjust accordingly.
405         (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
406         Don't call free_1 for offload_files.  Write names of object files with
407         offloading to the temporary file.  Add new option to lto_arg_ptr.
408         (claim_file_handler): Don't claim file if it contains offload sections
409         without LTO sections.  If it contains offload sections, add to the list.
411 2016-01-15  Martin Liska  <mliska@suse.cz>
413         * lto-plugin.c (all_symbols_read_handler): Assign default
414         value to a string variable.
416 2015-11-25  Jan Hubicka  <jh@suse.cz>
418         PR lto/67548
419         * lto-plugin.c (linker_output, linker_output_set): New statics.
420         (all_symbols_read_handler): Add -flinker-output option.
421         (onload): Record linker_output info.
423 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
425         * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
426         * configure: Regenerate.
427         * config.h.in: Ditto.
429 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
431         * Makefile.am: Drop 'by automake version' from top-level comment.
432         * Makefile.in: Regenerated with automake-1.11.6.
433         * aclocal.m4: Likewise.
434         * configure: Likewise.
436 2015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
438         * lto-plugin.c (release_input_file): Removed.
439         (claim_file_handler): Don't call release_input_file.
440         (onload): Don't set release_input_file.
442 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
444         * lto-plugin.c (claim_file_handler): Pass handle to
445         release_input_file.
447 2015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
449         * lto-plugin.c (claim_file_handler): Call release_input_file only
450         if file is claimed.
452 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
454         * lto-plugin.c (claim_file_handler): Call release_input_file only
455         if it is not NULL.
457 2015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
459         PR lto/64837
460         * lto-plugin.c (release_input_file): New.
461         (claim_file_handler): Call release_input_file.
462         (onload): Set release_input_file.
464 2014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
466         * lto-plugin.c (offload_files, num_offload_files): New static variables.
467         (free_1): Use arguments instead of global variables.
468         (free_2): Free offload_files.
469         (all_symbols_read_handler): Add names from offload_files to lto-wrapper
470         arguments.
471         (claim_file_handler): Do not add file to claimed_files if it contains
472         offload sections without LTO sections.  Add it to offload_files instead.
474 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
476         PR bootstrap/63784
477         * configure: Regenerated.
479 2014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
480             Bernd Schmidt  <bernds@codesourcery.com>
481             Andrey Turetskiy  <andrey.turetskiy@intel.com>
482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
484         * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
485         (struct plugin_objfile): Add new field "offload".
486         (process_offload_section): New static function.
487         (claim_file_handler): Claim file if it contains offload sections.
489 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
490             Thomas Schwinge  <thomas@codesourcery.com>
491             Ilya Verbin  <ilya.verbin@intel.com>
492             Andrey Turetskiy  <andrey.turetskiy@intel.com>
494         * Makefile.am (libexecsubdir): Tweak for the possibility of being
495         configured for offload compiler.
496         (accel_dir_suffix, real_target_noncanonical): New variables substituted
497         by configure.
498         * Makefile.in: Regenerate.
499         * configure: Regenerate.
500         * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
501         variables.
503 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
505         PR target/63610
506         * configure: Regenerate.
508 2014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
510         PR bootstrap/62260
511         * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
512         * configure.ac (gcc_build_dir): Set and AC_SUBST according to
513         $host_subdir.
514         * Makefile.in: Regenerated.
515         * configure: Likewise.
517 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
519         * configure.ac (--with-libiberty): New configure option.
520         * configure: Regenerate.
521         * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
522         variables.
523         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
524         (liblto_plugin_la_DEPENDENCIES): Use them.
525         * Makefile.in: Regenerate.
527 2014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
529         PR lto/60981
530         * configure.ac: Check for -static-libgcc.
531         * configure: Regenerate.
533 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
535         PR sanitizer/56781
536         * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
537         (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
538         liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
539         over ../libiberty/pic/libiberty.a if the former exists.
540         * Makefile.in: Regenerated.
542         PR sanitizer/56781
543         * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
544         * Makefile.in: Regenerated.
546 2014-04-02  Richard Biener  <rguenther@suse.de>
548         * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
549         is set in COLLECT_GCC_OPTIONS.
551 2014-03-28  Richard Biener  <rguenther@suse.de>
553         * lto-plugin.c (process_symtab): Handle EINTR and short reads.
555 2014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
557         * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
558         for gcc.
559         * configure: Regenerate.
560         * Makefile.am (AM_LDFLAGS): New variable.
561         (liblto_plugin_la_LDFLAGS): Add it.
562         * Makefile.in: Regenerate.
564 2013-09-20  Alan Modra  <amodra@gmail.com>
566         * configure: Regenerate.
568 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
570         * configure: Regenerated.
572 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
574         * lto-plugin.c: Fix typo.
576 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
578         * configure: Regenerated.
580 2012-02-22  Kai Tietz  <ktietz@redhat.com>
582         PR lto/50616
583         * lto-plugin.c (PRI_LL): New macro.
584         (dump_symtab): Use PRI_LL instead of ll in print.
585         (process_symtab): Use PRI_LL instead of ll in scan.
587 2011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
589         * configure: Regenerate.
591 2011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
593         * configure: Regenerate.
595 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
597         * configure: Regenerate.
599 2011-10-02  Jan Hubicka  <jh@suse.cz>
601         PR lto/47247
602         * lto-plugin.c (get_symbols_v2): New variable.
603         (write_resolution): Use V2 API when available.
604         (onload): Handle LDPT_GET_SYMBOLS_V2.
606 2011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
607             Andi Kleen  <ak@linux.intel.com>
609         PR lto/50568
610         * lto-plugin.c (sym_aux): Change id to unsigned long long.
611         (plugin_symtab): Likewise.
612         (dump_symtab): Likewise.
613         (resolve_conflicts): Likewise.
614         (process_symtab): Likewise.
616 2011-08-10  Richard Guenther  <rguenther@suse.de>
618         PR bootstrap/49907
619         lto-plugin/
620         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
621         * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
622         * configure: Regenerate.
623         * Makefile.in: Likewise.
624         * aclocal.m4: Likewise.
626 2011-04-20  Jim Meyering  <meyering@redhat.com>
628         * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
630 2011-04-05  Richard Guenther  <rguenther@suse.de>
632         PR bootstrap/48431
633         * lto-plugin.c (claim_file_handler): Do not declare vars in code.
635 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
637         * Makefile.in: Regenerate.
638         * aclocal.m4: Regenerate.
639         * configure: Regenerate.
641 2011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
643         * Makefile.am (all-local): Rename from 'all'.
644         * Makefile.in: Regenerate.
646 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
648         PR lto/47225
649         * Makefile.am (gcc_build_dir, in_gcc_libs): New.
650         (liblto_plugin_la_LDFLAGS): Add -module.
651         (copy_lto_plugin): Renamed to...
652         ($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
653         of static modules.
654         * Makefile.in: Rebuild.
656 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
658         PR lto/47225
659         * Makefile.am (Wc): New helper for encoding -Wc,.
660         (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
661         (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
662         * Makefile.in: Regenerated.
664 2011-02-07  Paolo Bonzini  <bonzini@gnu.org>
666         Revert:
668         2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
670         PR lto/47225
671         * Makefile.am (Wl): New helper for encoding -Wl,.
672         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
673         * Makefile.in: Regenerated.
675 2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
677         PR lto/47225
678         * Makefile.am (Wl): New helper for encoding -Wl,.
679         (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
680         * Makefile.in: Regenerated.
682 2011-01-25  Ian Lance Taylor  <iant@google.com>
684         * lto-plugin.c (gold_version): New static variable.
685         (all_symbols_read_handler): Don't check pass_through_items if
686         using gold 1.11 or later.
687         (onload): Set gold_version if we see LDPT_GOLD_VERSION.
689 2011-01-12  Richard Guenther  <rguenther@suse.de>
691         PR lto/47264
692         * lto-plugin.c (parse_table_entry): Use memcpy to access
693         unaligned fields.
695 2010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
697         * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
698         * Makefile.in: Regenerate.
700 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
702         Revert last change.
704 2010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
706         * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
707         (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
708         (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
709         * Makefile.in: Regenerate.
711 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
713         PR middle-end/46674
714         PR lto/43157
715         * configure.ac (SYM_STYLE): Don't AC_DEFINE.
716         * lto-plugin.c (sym_style): Don't use it; default to ss_none.
717         * configure: Regenerate.
718         * config.h.in: Likewise.
720 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
722         PR target/40125
723         PR lto/46695
724         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
725         * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
726         override -bindir setting.
727         * aclocal.m4: Regenerate.
728         * configure: Regenerate.
729         * Makefile.in: Regenerate.
731 2010-12-05  Kai Tietz  <kai.tietz@onevision.com>
733         * config.h.in: Regenerated.
734         * configure: Regenerated.
735         * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
736         * lto-plugin.c (WIFEXITED): Define default.
737         (WEXITSTATUS): Likeiwse.
739 2010-12-01  Kai Tietz  <kai.tietz@onevision.com>
741         * config.h.in: Regenerated.
742         * configure: Regenerated.
743         * Makefile.in: Regenerated.
744         * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
745         * lto-plugin.c:  Include sys/wait.h conditionally.
746         * aclocal.m4: Regenerated.
748 2010-11-13  Kai Tietz  <kai.tietz@onevision.com>
750         * lto-plugin.c (add_output_files): Fix memory leak.
752 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
754         PR bootstrap/46397
755         PR bootstrap/46362
756         * configure.ac: Add AC_TYPE_INT64_T test.
757         * config.h.in: Regenerate.
758         * configure: Likewise.
759         * lto-plugin.c (debug): Use char not bool.
760         (nop): Likewise.
761         (check_1): Rename from check, and use int not bool for gate argument.
762         (check): Macro wrapper for the above to coerce gate argument into
763         boolean-valued integer in case it has pointer type.
764         (parse_table_entry): Use 0 not false.
765         (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
766         into two 32-bit parts and printing as hex ints.
768 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
770         PR lto/46291
771         * lto-plugin.c (claim_file_handler): Don't close file descriptor.
773 2010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
775         PR lto/46273
776         * lto-plugin.h: Delete.
777         * lto-plugin-elf.c: Likewise.
778         * lto-plugin-coff.c: Likewise.
779         * configure.ac: Don't use libelf, don't source config.gcc.
780         (LIBELFLIBS): Delete.
781         (LIBELFINC): Delete.
782         (LTO_FORMAT): Delete.
783         (SYM_STYLE): Add AC_DEFINE var, set based on $target.
784         (config.h): Add AC_CONFIG_HEADERS directive.
785         * Makefile.am (LIBELFLIBS): Delete.
786         (LIBELFINC): Delete.
787         (LTO_FORMAT): Delete.
788         (DEFS): Import.
789         (AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
790         (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
791         any object-format-specific source file in the link.
792         (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
793         * config.h.in: Generate.
794         * configure: Regenerate.
795         * Makefile.in: Likewise.
796         * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
797         (LTO_SEGMENT_NAME): New definition.
798         (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
799         (LTO_SECTION_PREFIX_LEN): New definition.
800         (struct sym_aux): Struct definition moved here from lto-plugin.h.
801         (struct plugin_symtab): Likewise.
802         (struct plugin_objfile): Likewise.
803         (struct plugin_objfile): New struct def.
804         (enum symbol_style): New enum type.
805         (add_symbols): Make static.
806         (claimed_files): Likewise.
807         (num_claimed_files): Likewise.
808         (sym_style): New global.
809         (check): Make static.
810         (parse_table_entry): Likewise.  Respect sym_style when extracting
811         symbol from symtab entry.
812         (translate): Make static.
813         (resolve_conflicts): Likewise.
814         (process_symtab): New function, per-section callback version of
815         old object-format-specific handling from deleted lto-plugin-elf.c.
816         (claim_file_handler): Convert ELF-specific version from deleted
817         lto-plugin-elf.c to simple_object interface and move here.
818         (process_options): Allow new '-sym-style=' option.
819         (onload): Don't call deleted onload_format_checks hook.
821 2010-10-11  Kai Tietz  <kai.tietz@onevision.com>
823         * lto-plugin.c (dump_symtab): Correct printf argument type.
824         (finish_conflict_resolution): Initialize resolution.
826 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
828         PR bootstrap/45951
829         * configure.ac: Add AC_CANONICAL_SYSTEM.
830         * configure: Regenerated.
832 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
834         * configure.ac: Source config.gcc to determine lto_binary_reader.
835         (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
836         * Makefile.am (LTO_FORMAT): Import.
837         (liblto_plugin_la_SOURCES): Add object format dependent module
838         defined by LTO_FORMAT.
839         (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
840         and work around libtool warning.
841         * configure: Regenerate.
842         * Makefile.in: Likewise.
843         * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
844         (struct sym_aux): Likewise.
845         (struct plugin_symtab): Likewise.
846         (struct plugin_file_info): Likewise.
847         (LTO_SECTION_PREFIX): Likewise.
848         (add_symbols):  Make non-static.
849         (claimed_files): Likewise.
850         (num_claimed_files): Likewise.
851         (check): Likewise.
852         (parse_table_entry): Likewise.
853         (translate): Likewise.
854         (resolve_conflicts): Likewise.
855         (process_symtab): Move to new lto-plugin-elf.c object format dependent
856         source file.
857         (claim_file_handler): Likewise, and make non-static.
858         (onload): Call new onload_format_checks function.
859         * lto-plugin.h: New file.
860         (LTO_SECTION_PREFIX): Move here.
861         (struct sym_aux): Likewise.
862         (struct plugin_symtab): Likewise.
863         (struct plugin_file_info): Likewise.
864         (claim_file_handler): Add new function prototype.
865         (onload_format_checks): Likewise.
866         (check): Declare extern.
867         (translate): Likewise.
868         (parse_table_entry): Likewise.
869         (resolve_conflicts): Likewise.
870         (add_symbols):  Likewise.
871         (claimed_files): Likewise.
872         (num_claimed_files): Likewise.
873         * lto-plugin-elf.c (process_symtab): Move here.
874         (claim_file_handler): Likewise, and make non-static.
875         (onload_format_checks): New function factored out from onload.
876         * lto-plugin-coff.c (claim_file_handler): New function stub.
877         (onload_format_checks): Likewise.
879 2010-08-05  Andi Kleen  <ak@linux.intel.com>
881         * lto-plugin.c: Include <hashtab.h>
882         (sym_aux): Add next_conflict field to save conflict chains.
883         (plugin_file_info): Add conflicts symtab.
884         (parse_table_entry): Initialize aux->next_conflict.
885         (process_symtab): Increment found.
886         (dump_symtab): Add.
887         (finish_conflict_resolution): Add.
888         (free_symtab): Add.
889         (write_resolution): Remove symbols loop and move into
890         dump_symtab. Call dump_symtab for main symbol and conflicts table.
891         Call free_symtab to free conflicts table.
892         (SWAP): Add.
893         (eq_sym): Add.
894         (hash_sym): Add.
895         (symbol_strength): Add.
896         (resolve_conflicts): Add.
897         (claim_file_handler): Add n variable. Check return value of
898         process_symtab. Call resolve_conflicts.
900 2010-07-27  Andi Kleen  <ak@linux.intel.com>
902         * lto-plugin.c (translate): Remove debug fprintf.
904 2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
906         PR bootstrap/45042
907         * lto-plugin.c (translate): Cast to unsigned long.
909 2010-07-23   Andi Kleen  <ak@linux.intel.com>
911         PR lto/44992
912         * lto-plugin.c (sym_aux): Add.
913         (plugin_symtab): Remove slots. Add aux and id.
914         (parse_table_entry): Change to use aux instead of slots.
915         (LTO_SECTION_PREFIX): Add.
916         (translate): Improve buffer allocation. Change to append
917         symbols to existing out buffer.
918         (get_section): Remove.
919         (process_symtab): Add.
920         (free_2): Free symtab->aux.
921         (write_resolution): Handle aux instead of slots.
922         Print sub id to resolution file.
923         (claim_file_handler): Clear lto_file. Replace get_symtab/translate
924         calls with call to process_symtab.
926 2010-07-22  Richard Guenther  <rguenther@suse.de>
928         * Makefile.am: New copy_lto_plugin rule to install the plugin
929         into ../gcc.
930         * Makefile.in: Regenerated.
932 2010-05-21  Richard Guenther  <rguenther@suse.de>
934         * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
936 2010-05-07  Richard Guenther <rguenther@suse.de>
938         * lto-plugin.c (free_2): Do not free resolution_file.
939         (write_resolution): Check that we were passed a resolution file.
940         (all_symbols_read_handler): Adjust.
941         (cleanup_handler): Do not remove the resolution file.
942         (process_option): Handle -fresolution=.
944 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
946         PR other/43620
947         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
948         * Makefile.in: Regenerate.
950 2010-04-23  Richard Guenther  <rguenther@suse.de>
952         PR lto/41550
953         * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
954         (translate): Likewise.
955         (all_symbols_read_handler): Likewise.
956         (claim_file_handler): Likewise.
957         (process_option): Likewise.
958         (add_output_files): Likewise.  Remove filename length limit.
960 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
962         * Makefile.in: Regenerate.
963         * aclocal.m4: Regenerate.
965 2010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
967         PR lto/43336
968         * lto-plugin.c (cleanup_handler): Delete temporary output files.
970 2010-01-11  Richard Guenther  <rguenther@suse.de>
972         PR lto/41569
973         * Makefile.am: Disable dependencies.
974         * Makefile.in: Regenerated.
976 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
978         PR lto/42520
979         * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
980         if -v is passed.
982 2009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
984         PR bootstrap/42306
985         * configure: Regenerated.
986         * Makefile.in: Likewise.
988 2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
990         PR bootstrap/42096
991         * lto-plugin.c (claim_file_handler): Print offsets in hex.
993 2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
995         * lto-plugin.c (write_resolution): Assume resolution_file is set.
996         Print the symbol name.
997         (all_symbols_read_handler): Create a resolution file.
998         Pass it to gcc.
999         (cleanup_handler): Remove the resolution file.
1000         (process_option): Drop the -resolution option.
1002 2009-11-05  Rafael Avila de Espindola  <espindola@google.com>
1004         * lto-plugin.c (temp_obj_dir_name): Remove.
1005         (arguments_file_name): New.
1006         (free_2): Free arguments_file_name instead of temp_obj_dir_name.
1007         (exec_lto_wrapper):  Create arguments file with make_temp_file.
1008         (cleanup_handler): Don't remove the temporary directory. Remove the
1009         arguments file.
1010         (onload): Don't create the temporary directory.
1012 2009-11-04  Richard Guenther  <rguenther@suse.de>
1013             Rafael Avila de Espindola  <espindola@google.com>
1015         * lto-plugin.c (plugin_file_info): Remove temp field.
1016         (cleanup_handler): Don't delete temporary objects.
1017         (claim_file_handler): Don't create temporary objects.
1019 2009-11-04  Rafael Avila de Espindola  <espindola@google.com>
1021         * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
1023 2009-10-30  Rafael Avila de Espindola  <espindola@google.com>
1025         PR41871
1026         * lto-plugin.c (claim_file_handler): Close files that we created.
1028 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
1030         * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
1031         LDPL_ERROR
1033 2009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1035         PR lto/41652
1036         * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
1037         * configure: Regenerate.
1039 2009-10-26  Richard Guenther  <rguenther@suse.de>
1041         * configure.ac: Use AM_MAINTAINER_MODE.
1042         * acinclude.m4: Remove.
1043         * configure: Re-generate.
1044         * Makefile.in: Likewise.
1045         * aclocal.m4: Likewise.
1047 2009-10-19  Rafael Avila de Espindola  <espindola@google.com>
1048     
1049         PR40790
1050         * configure: Regenerate.
1051         * configure.ac: Add AC_TYPE_UINT64_T.
1053 2009-10-16  Rafael Avila de Espindola  <espindola@google.com>
1055         * lto-plugin.c (message): New variable.
1056         (check): New function.
1057         (parse_table_entry, translate, write_resolution,add_output_files,
1058         exec_lto_wrapper,claim_file_handler, onload): Use check instead of
1059         assert.
1060         (cleanup_handler): Use check instead of assert. Remove the arguments
1061         file if it exists.
1063 2009-10-15  Rafael Avila de Espindola  <espindola@google.com>
1065         * lto-plugin.c (resolution_file): New.
1066         (free_1): Update comment.
1067         (free_2): Free resolution_file.
1068         (write_resolution): Write resolution to specified file. Use the
1069         syms array from the symbol table.
1070         (all_symbols_read_handler): Delay call to free_1 past call to
1071         write_resolution.
1072         (process_option): Add a -resolution option.
1074 2009-10-13  Richard Guenther  <rguenther@suse.de>
1076         * Makefile.am (liblto_plugin_la_LIBADD): Link against the
1077         correct libiberty.
1078         * Makefile.in: Regenerated.
1080 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
1082         * lto-plugin.c (add_input_library): New.
1083         (all_symbols_read_handler): Use add_input_library for items that
1084         start with -l.
1085         (process_option): Fit in 80 columns.
1086         (onload): Handle LDPT_ADD_INPUT_LIBRARY.
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  Diego Novillo  <dnovillo@google.com>
1108         * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
1109         and -D_FILE_OFFSET_BITS=64.
1110         * configure.ac: Add AC_SYS_LARGEFILE.
1111         * configure: Regenerate.
1112         * Makefile.in: Regenerate.
1113         * lto-plugin.c: Fix copyright boilerplate.
1115 2009-10-02  Diego Novillo  <dnovillo@google.com>
1117         * Makefile.am (ACLOCAL_AMFLAGS): Define.
1118         * aclocal.m4: Regenerate with aclocal-2.64
1119         * acinclude.m4: Remove.
1120         * Makefile.in: Regenerate with automake-1.11
1121         * configure.ac (AC_PREREQ): Update to 2.64.
1122         * configure: Regenerate.
1124 2009-10-02  Rafael Avila de Espindola  <espindola@google.com>
1126         * Makefile.am (liblto_plugin_la_SOURCES): Remove
1127         $(top_srcdir)/../gcc/lto/common.c
1128         * Makefile.in: Regenerate.
1130 2009-10-01  Rafael Avila de Espindola  <espindola@google.com>
1132         * lto-plugin.c (pass_through_items): New.
1133         (num_pass_through_items): New.
1134         (all_symbols_read_handler): Update to use the -pass-through option.
1135         (process_option): Replace -libgcc with -pass-through.
1136         
1137 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1139         * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
1140         register_cleanup to be set.
1142 2009-09-30  Rafael Avila de Espindola  <espindola@google.com>
1144         * Makefile.am: Remove all reference to ltosymtab.
1145         * Makefile.in: Regenerate.
1146         * lto-symtab.c: Remove.
1148 2009-05-21  Diego Novillo  <dnovillo@google.com>
1150         * configure.ac: Remove call to AC_CHECK_GELF.
1151         Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
1152         * acinclude.m4: Do not include ../config/libelf.m4
1153         * Makefile.am (LIBELFLIBS): Define.
1154         (LIBELFINC): Define.
1155         (AM_CPPFLAGS): Add $(LIBELFINC).
1156         (ltosymtab_LDADD): Add $(LIBELFLIBS).
1157         (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
1158         * lto-plugin.c: Always include <gelf.h>
1159         * lto-symtab.c: Likewise.
1160         * configure: Regenerate.
1161         * Makefile.in: Regenerate.
1163 2009-03-23  Rafael Avila de Espindola  <espindola@google.com>
1165         * lto-plugin.c (libgcc_filename): New.
1166         (all_symbols_read_handler): Pass libgcc to the linker.
1167         (all_symbols_read_handler): Parse -libgcc
1169 2009-02-05  Rafael Avila de Espindola  <espindola@google.com>
1171         * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
1172         * Makefile.in: Regenerate.
1173         * lto-plugin.c (add_output_files): Argument is now a FILE.
1174         (exec_lto_wrapper): Use writeargv and pex.
1176 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1178         Revert:
1179         2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1180         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1183 2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
1185         * lto-plugin.c (exec_lto_wrapper): Use writeargv.
1187 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1189         * lto-plugin.c: Include libiberty.h.
1190         (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
1191         snprintf.
1193 2009-01-29  Rafael Avila de Espindola  <espindola@google.com>
1195         * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
1196         file to lto-wrapper.
1198 2009-01-28  Rafael Avila de Espindola  <espindola@google.com>
1200         * lto-plugin.c (plugin_file_info): Remove fd and elf.
1201         (parse_table_entry): strdup entry->name and entry->comdat_key.
1202         (free_1): Free name and comdat_key. Don't close the file. Don't call
1203         elf_end.
1204         (claim_file_handler): Always call elf_end.
1206 2008-12-23  Rafael Avila de Espindola  <espindola@google.com>
1208         * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
1209         -D_FILE_OFFSET_BITS=64
1210         * Makefile.in: Regenerate
1212 2008-12-22  Rafael Avila de Espindola  <espindola@google.com>
1214         * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
1215         (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
1216         * Makefile.in: Regenerate.
1217         * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
1218         * configure: Regenerate.
1219         * configure.ac: Add AC_SUBST(target_noncanonical).
1221 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1223         * lto-plugin.c: Include stdbool.h.
1224         (debug, nop): Declare as bool.
1226 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1228         * lto-plugin.c (nop): New.
1229         (use_original_files): New.
1230         (all_symbols_read_handler): Call use_original_files if nop is true.
1231         (process_option): Parse the -nop option.
1233 2008-12-08  Rafael Avila de Espindola  <espindola@google.com>
1235         * lto-plugin.c (debug): New.
1236         (exec_lto_wrapper): Print argv if debug is true.
1237         (process_option): Process the -debug command line option.
1239 2008-12-03  Rafael Avila de Espindola  <espindola@google.com>
1241         * lto-plugin.c (process_option): The argument is now a single option,
1242         not a space separated list.
1244 2008-12-02  Rafael Avila de Espindola  <espindola@google.com>
1246         * lto-plugin.c: Include sys/types.h and sys/wait.h
1247         (output_files, num_output_files, lto_wrapper_argv,
1248         lto_wrapper_num_args): New.
1249         (free_2): Free output_files.
1250         (write_resolution): Disable.
1251         (add_output_files): New.
1252         (exec_lto_wrapper): New.
1253         (all_symbols_read_handler): Run lto-wrapper.
1254         (claim_file_handler): Free lto_file.name and call elf_end.
1255         (process_option): New.
1257 2008-11-26  Rafael Espindola  <espindola@google.com>
1259         * lto-plugin.c (add_input_file): New.
1260         (get_section): Return NULL if get_section fails.
1261         (write_resolution): New.
1262         (all_symbols_read_handler): Call add_input_file.
1263         (claim_file_handler): Unlink the correct file.
1264         (onload): Record add_input_file.
1266 2008-09-23 Rafael Espindola  <espindola@google.com>
1268         * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
1269         Update the location of common.c.
1270         * Makefile.in: Regenerate.
1271         * common.c: Moved to gcc/lto.
1272         * common.h: Moved to gcc/lto.
1273         * lto-plugin.c: Update the location of common.h.
1274         * lto-symtab.c: Update the location of common.h.
1276 2008-09-23 Rafael Espindola  <espindola@google.com>
1278         * common.c: Include common.h.
1279         (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
1280         sizes.
1281         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
1282         explicit sizes.
1284 2008-09-23 Rafael Espindola  <espindola@google.com>
1286         * lto-plugin.c (plugin_file_info): Add temp.
1287         (cleanup_handler): Only delete temporary files.
1288         (claim_file_handler): Initialize lto_file.temp.
1290 2008-09-23  Rafael Espindola  <espindola@google.com>
1292         * plugin-api.h: Moved to include.
1294 2008-09-23 Rafael Espindola  <espindola@google.com>
1296         * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
1297         format.
1299 2008-09-22 Rafael Espindola  <espindola@google.com>
1301         * plugin-api.h: Copy from binutils' cvs.
1303 2008-09-22 Rafael Espindola  <espindola@google.com>
1305         * lto-symtab.c (get_symbols, add_symbols): Update signature.
1306         * plugin-api.h: Copy from binutils' cvs.
1308 2008-09-22 Rafael Espindola  <espindola@google.com>
1310         * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
1311         Make extern
1313 2008-09-10 Rafael Espindola  <espindola@google.com>
1315         * lto-plugin.c (onload): add missing break statements and asserts.
1316         * lto-symtab.c (claim_file_handler): Make it static.
1317         (all_symbols_read_handler): Make it static.
1318         (all_file_handles): Make it static.
1319         (num_file_handles): Make it static.
1320         (register_claim_file): Make it static.
1321         (register_object): Indent properly.
1323 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1325         * Makefile.am (ltosymtab_LDADD): Add -lelf.
1326         * Makefiel.in: Regenerate.
1327         * lto-plugin.c: Include ar.h.
1328         (claim_file_handler): Handle file->offset != 0.
1329         * lto-symtab.c: Include gelf.h.
1330         (all_file_handles): Change type.
1331         (register_object): New.
1332         (register_file): Add support for archives.
1333         (resolve): Update to new type of all_file_handles.
1334         (print): Update to new type of all_file_handles.
1335         (free_all): Update to new type of all_file_handles.
1336         (main): Update to new type of all_file_handles.
1338 2008-09-10  Rafael Avila de Espindola  <espindola@google.com>
1340         * lto-plugin.c (get_string_table): Remove.
1341         (get_section): Use elf_strptr instead of get_string_table.
1343 2008-09-08  Doug Kwan  <dougkwan@google.com>
1345         * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
1346         to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
1348 2008-09-08  Rafael Avila de Espindola  <espindola@google.com>
1350         * Makefile.am (ltosymtab_SOURCES): add common.c.
1351         (ltosymtab_CFLAGS): New.
1352         (liblto_plugin_la_SOURCES): Add common.c.
1353         * Makefile.in: Regenerate.
1354         * common.c: New.
1355         * common.h: New.
1356         * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1357         (plugin_symtab): New.
1358         (plugin_file_info): New.
1359         (register_all_symbols_read): New.
1360         (get_symbols): New.
1361         (claimed_files): New.
1362         (num_claimed_files): New.
1363         (translate): Don't drop the slot number.
1364         (free_1): New.
1365         (free_2): New.
1366         (all_symbols_read_handler): New.
1367         (claim_file_handler): Record every claimed file.
1368         (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1369         LDPT_GET_SYMBOLS.
1370         * lto-symtab.c: Include stdlib.h, string.h and common.h.
1371         (current_file_handle): Remove.
1372         (ld_plugin_all_symbols_read_handler): New.
1373         (plugin_handle): New.
1374         (file_handle): New.
1375         (all_file_handles): New.
1376         (num_file_handles): New.
1377         (get_symbols): New.
1378         (register_all_symbols_read): New.
1379         (add_symbols): Don't print the symbols, just record them.
1380         (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1381         LDPT_GET_SYMBOLS.
1382         (load_plugin): Use plugin_handle.
1383         (register_file): Add the file handle to all_file_handles.
1384         (resolve): New.
1385         (print): New.
1386         (unload_plugin): New.
1387         (free_all): New.
1388         (main): Call all_symbols_read_handler and free resources.
1390 2008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1392         * Makefile.am (AM_CFLAGS): New.
1393         (ltosymtab_LDADD): Remove -lelf. Add -ldl.
1394         (lib_LTLIBRARIES): New.
1395         (liblto_plugin_la_SOURCES): New.
1396         (liblto_plugin_la_LIBADD): New.
1397         * Makefile.in: Regenerate.
1398         * acinclude.m4: Don't include ../config/acx.m4 and
1399         ../config/no-executables.m4.
1400         Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1401         ../libtool.m4.
1402         * aclocal.m4: Regenerate.
1403         * configure: Regenerate.
1404         * configure.ac: Use AM_PROG_LIBTOOL.
1405         * lto-plugin.c: New.
1406         * lto-symtab.c: Rewrite to use the plugin.
1407         * plugin-api.h: New.
1409 2008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1411         * configure: Regenerate.
1412         * configure.ac: Use AC_CHECK_GELF.
1413         * lto-symtab.c: Include gelf.h.
1414         (get_string_table): Use size independent API.
1415         (printTable): Use lld to print 64 bit integers.
1417 2008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1419         * lto-symtab.c (parse_table_entry): Assert entry->kind and
1420         entry->visibility are valid.
1422 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1423         * lto-symtab.c (table_entry): Add comdat.
1424         (parse_table_entry): Read comdat.
1426 2008-08-21  Rafael Espindola  <espindola@google.com>
1428         * Makefile.am: New.
1429         * Makefile.in: New.
1430         * acinclude.m4: New.
1431         * aclocal.m4: New.
1432         * configure: New.
1433         * configure.ac: New.
1434         * lto-symtab.c: New.