xref: /netbsd-src/external/gpl3/gcc/dist/lto-plugin/ChangeLog (revision 5dd36a3bc8bf2a9dec29ceb6349550414570c447)
12019-02-22  Release Manager
2
3	* GCC 8.3.0 released.
4
52018-07-26  Release Manager
6
7	* GCC 8.2.0 released.
8
92018-05-02  Release Manager
10
11	* GCC 8.1.0 released.
12
132018-04-18  David Malcolm  <dmalcolm@redhat.com>
14
15	PR jit/85384
16	* configure: Regenerate.
17
182018-01-03  Jakub Jelinek  <jakub@redhat.com>
19
20	Update copyright years.
21
222017-07-21  Georg-Johann Lay  <avr@gjlay.de>
23
24	PR lto/81487
25	* lto-plugin.c (claim_file_handler): Use xasprintf instead of
26	asprintf.
27	[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
28
292017-01-17  Jakub Jelinek  <jakub@redhat.com>
30
31	PR other/79046
32	* configure.ac: Add GCC_BASE_VER.
33	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
34	get version from BASE-VER file.
35	* configure: Regenerated.
36	* Makefile.in: Regenerated.
37
382017-01-04  Jakub Jelinek  <jakub@redhat.com>
39
40	Update copyright years.
41
422016-11-15  Matthias Klose  <doko@ubuntu.com>
43
44	* configure: Regenerate.
45
462016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
47
48	PR driver/68463
49	* lto-plugin.c (struct plugin_offload_file): New.
50	(offload_files): Change type.
51	(offload_files_last, offload_files_last_obj): New.
52	(offload_files_last_lto): New.
53	(free_2): Adjust accordingly.
54	(all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
55	Don't call free_1 for offload_files.  Write names of object files with
56	offloading to the temporary file.  Add new option to lto_arg_ptr.
57	(claim_file_handler): Don't claim file if it contains offload sections
58	without LTO sections.  If it contains offload sections, add to the list.
59
602016-01-15  Martin Liska  <mliska@suse.cz>
61
62	* lto-plugin.c (all_symbols_read_handler): Assign default
63	value to a string variable.
64
652015-11-25  Jan Hubicka  <jh@suse.cz>
66
67	PR lto/67548
68	* lto-plugin.c (linker_output, linker_output_set): New statics.
69	(all_symbols_read_handler): Add -flinker-output option.
70	(onload): Record linker_output info.
71
722015-07-02  Uros Bizjak  <ubizjak@gmail.com>
73
74	* configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
75	* configure: Regenerate.
76	* config.h.in: Ditto.
77
782015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
79
80	* Makefile.am: Drop 'by automake version' from top-level comment.
81	* Makefile.in: Regenerated with automake-1.11.6.
82	* aclocal.m4: Likewise.
83	* configure: Likewise.
84
852015-02-06  H.J. Lu  <hongjiu.lu@intel.com>
86
87	* lto-plugin.c (release_input_file): Removed.
88	(claim_file_handler): Don't call release_input_file.
89	(onload): Don't set release_input_file.
90
912015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
92
93	* lto-plugin.c (claim_file_handler): Pass handle to
94	release_input_file.
95
962015-02-05  H.J. Lu  <hongjiu.lu@intel.com>
97
98	* lto-plugin.c (claim_file_handler): Call release_input_file only
99	if file is claimed.
100
1012015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
102
103	* lto-plugin.c (claim_file_handler): Call release_input_file only
104	if it is not NULL.
105
1062015-01-28  H.J. Lu  <hongjiu.lu@intel.com>
107
108	PR lto/64837
109	* lto-plugin.c (release_input_file): New.
110	(claim_file_handler): Call release_input_file.
111	(onload): Set release_input_file.
112
1132014-12-09  Ilya Verbin  <ilya.verbin@intel.com>
114
115	* lto-plugin.c (offload_files, num_offload_files): New static variables.
116	(free_1): Use arguments instead of global variables.
117	(free_2): Free offload_files.
118	(all_symbols_read_handler): Add names from offload_files to lto-wrapper
119	arguments.
120	(claim_file_handler): Do not add file to claimed_files if it contains
121	offload sections without LTO sections.  Add it to offload_files instead.
122
1232014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
124
125	PR bootstrap/63784
126	* configure: Regenerated.
127
1282014-11-13  Ilya Verbin  <ilya.verbin@intel.com>
129	    Bernd Schmidt  <bernds@codesourcery.com>
130	    Andrey Turetskiy  <andrey.turetskiy@intel.com>
131	    Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
132
133	* lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
134	(struct plugin_objfile): Add new field "offload".
135	(process_offload_section): New static function.
136	(claim_file_handler): Claim file if it contains offload sections.
137
1382014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
139	    Thomas Schwinge  <thomas@codesourcery.com>
140	    Ilya Verbin  <ilya.verbin@intel.com>
141	    Andrey Turetskiy  <andrey.turetskiy@intel.com>
142
143	* Makefile.am (libexecsubdir): Tweak for the possibility of being
144	configured for offload compiler.
145	(accel_dir_suffix, real_target_noncanonical): New variables substituted
146	by configure.
147	* Makefile.in: Regenerate.
148	* configure: Regenerate.
149	* configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
150	variables.
151
1522014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
153
154	PR target/63610
155	* configure: Regenerate.
156
1572014-08-26  H.J. Lu  <hongjiu.lu@intel.com>
158
159	PR bootstrap/62260
160	* Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
161	* configure.ac (gcc_build_dir): Set and AC_SUBST according to
162	$host_subdir.
163	* Makefile.in: Regenerated.
164	* configure: Likewise.
165
1662014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
167
168	* configure.ac (--with-libiberty): New configure option.
169	* configure: Regenerate.
170	* Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
171	variables.
172	(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
173	(liblto_plugin_la_DEPENDENCIES): Use them.
174	* Makefile.in: Regenerate.
175
1762014-05-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
177
178	PR lto/60981
179	* configure.ac: Check for -static-libgcc.
180	* configure: Regenerate.
181
1822014-04-17  Jakub Jelinek  <jakub@redhat.com>
183
184	PR sanitizer/56781
185	* Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
186	(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
187	liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
188	over ../libiberty/pic/libiberty.a if the former exists.
189	* Makefile.in: Regenerated.
190
191	PR sanitizer/56781
192	* Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
193	* Makefile.in: Regenerated.
194
1952014-04-02  Richard Biener  <rguenther@suse.de>
196
197	* lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
198	is set in COLLECT_GCC_OPTIONS.
199
2002014-03-28  Richard Biener  <rguenther@suse.de>
201
202	* lto-plugin.c (process_symtab): Handle EINTR and short reads.
203
2042014-03-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
205
206	* configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
207	for gcc.
208	* configure: Regenerate.
209	* Makefile.am (AM_LDFLAGS): New variable.
210	(liblto_plugin_la_LDFLAGS): Add it.
211	* Makefile.in: Regenerate.
212
2132013-09-20  Alan Modra  <amodra@gmail.com>
214
215	* configure: Regenerate.
216
2172012-09-14  David Edelsohn  <dje.gcc@gmail.com>
218
219	* configure: Regenerated.
220
2212012-05-29  Joseph Myers  <joseph@codesourcery.com>
222
223	* lto-plugin.c: Fix typo.
224
2252012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
226
227	* configure: Regenerated.
228
2292012-02-22  Kai Tietz  <ktietz@redhat.com>
230
231	PR lto/50616
232	* lto-plugin.c (PRI_LL): New macro.
233	(dump_symtab): Use PRI_LL instead of ll in print.
234	(process_symtab): Use PRI_LL instead of ll in scan.
235
2362011-12-20  Andreas Schwab  <schwab@linux-m68k.org>
237
238	* configure: Regenerate.
239
2402011-12-19  Andreas Schwab  <schwab@linux-m68k.org>
241
242	* configure: Regenerate.
243
2442011-11-21  Andreas Tobler  <andreast@fgznet.ch>
245
246	* configure: Regenerate.
247
2482011-10-02  Jan Hubicka  <jh@suse.cz>
249
250	PR lto/47247
251	* lto-plugin.c (get_symbols_v2): New variable.
252	(write_resolution): Use V2 API when available.
253	(onload): Handle LDPT_GET_SYMBOLS_V2.
254
2552011-09-30  H.J. Lu  <hongjiu.lu@intel.com>
256	    Andi Kleen  <ak@linux.intel.com>
257
258	PR lto/50568
259	* lto-plugin.c (sym_aux): Change id to unsigned long long.
260	(plugin_symtab): Likewise.
261	(dump_symtab): Likewise.
262	(resolve_conflicts): Likewise.
263	(process_symtab): Likewise.
264
2652011-08-10  Richard Guenther  <rguenther@suse.de>
266
267	PR bootstrap/49907
268	lto-plugin/
269	* configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
270	* Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
271	* configure: Regenerate.
272	* Makefile.in: Likewise.
273	* aclocal.m4: Likewise.
274
2752011-04-20  Jim Meyering  <meyering@redhat.com>
276
277	* lto-plugin.c (free_1, free_2): Remove useless if-before-free.
278
2792011-04-05  Richard Guenther  <rguenther@suse.de>
280
281	PR bootstrap/48431
282	* lto-plugin.c (claim_file_handler): Do not declare vars in code.
283
2842011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
285
286	* Makefile.in: Regenerate.
287	* aclocal.m4: Regenerate.
288	* configure: Regenerate.
289
2902011-02-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
291
292	* Makefile.am (all-local): Rename from 'all'.
293	* Makefile.in: Regenerate.
294
2952011-02-12  Alexandre Oliva  <aoliva@redhat.com>
296
297	PR lto/47225
298	* Makefile.am (gcc_build_dir, in_gcc_libs): New.
299	(liblto_plugin_la_LDFLAGS): Add -module.
300	(copy_lto_plugin): Renamed to...
301	($(in_gcc_libs)): ... this.  Add mkinstalldirs.  Skip copying
302	of static modules.
303	* Makefile.in: Rebuild.
304
3052011-02-07  Kai Tietz  <kai.tietz@onevision.com>
306
307	PR lto/47225
308	* Makefile.am (Wc): New helper for encoding -Wc,.
309	(liblto_plugin_la_LIBADD): Use Wc for libiberty library.
310	(liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
311	* Makefile.in: Regenerated.
312
3132011-02-07  Paolo Bonzini  <bonzini@gnu.org>
314
315	Revert:
316
317	2011-02-07  Kai Tietz  <kai.tietz@onevision.com>
318
319	PR lto/47225
320	* Makefile.am (Wl): New helper for encoding -Wl,.
321	(liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
322	* Makefile.in: Regenerated.
323
3242011-02-07  Kai Tietz  <kai.tietz@onevision.com>
325
326	PR lto/47225
327	* Makefile.am (Wl): New helper for encoding -Wl,.
328	(liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
329	* Makefile.in: Regenerated.
330
3312011-01-25  Ian Lance Taylor  <iant@google.com>
332
333	* lto-plugin.c (gold_version): New static variable.
334	(all_symbols_read_handler): Don't check pass_through_items if
335	using gold 1.11 or later.
336	(onload): Set gold_version if we see LDPT_GOLD_VERSION.
337
3382011-01-12  Richard Guenther  <rguenther@suse.de>
339
340	PR lto/47264
341	* lto-plugin.c (parse_table_entry): Use memcpy to access
342	unaligned fields.
343
3442010-12-20  Dave Korn  <dave.korn.cygwin@gmail.com>
345
346	* Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
347	* Makefile.in: Regenerate.
348
3492010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
350
351	Revert last change.
352
3532010-12-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
354
355	* Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
356	(liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
357	(liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
358	* Makefile.in: Regenerate.
359
3602010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
361
362	PR middle-end/46674
363	PR lto/43157
364	* configure.ac (SYM_STYLE): Don't AC_DEFINE.
365	* lto-plugin.c (sym_style): Don't use it; default to ss_none.
366	* configure: Regenerate.
367	* config.h.in: Likewise.
368
3692010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
370
371	PR target/40125
372	PR lto/46695
373	* configure.ac: Invoke ACX_LT_HOST_FLAGS.
374	* Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
375	override -bindir setting.
376	* aclocal.m4: Regenerate.
377	* configure: Regenerate.
378	* Makefile.in: Regenerate.
379
3802010-12-05  Kai Tietz  <kai.tietz@onevision.com>
381
382	* config.h.in: Regenerated.
383	* configure: Regenerated.
384	* configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
385	* lto-plugin.c (WIFEXITED): Define default.
386	(WEXITSTATUS): Likeiwse.
387
3882010-12-01  Kai Tietz  <kai.tietz@onevision.com>
389
390	* config.h.in: Regenerated.
391	* configure: Regenerated.
392	* Makefile.in: Regenerated.
393	* configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
394	* lto-plugin.c:  Include sys/wait.h conditionally.
395	* aclocal.m4: Regenerated.
396
3972010-11-13  Kai Tietz  <kai.tietz@onevision.com>
398
399	* lto-plugin.c (add_output_files): Fix memory leak.
400
4012010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
402
403	PR bootstrap/46397
404	PR bootstrap/46362
405	* configure.ac: Add AC_TYPE_INT64_T test.
406	* config.h.in: Regenerate.
407	* configure: Likewise.
408	* lto-plugin.c (debug): Use char not bool.
409	(nop): Likewise.
410	(check_1): Rename from check, and use int not bool for gate argument.
411	(check): Macro wrapper for the above to coerce gate argument into
412	boolean-valued integer in case it has pointer type.
413	(parse_table_entry): Use 0 not false.
414	(claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
415	into two 32-bit parts and printing as hex ints.
416
4172010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
418
419	PR lto/46291
420	* lto-plugin.c (claim_file_handler): Don't close file descriptor.
421
4222010-11-03  Dave Korn  <dave.korn.cygwin@gmail.com>
423
424	PR lto/46273
425	* lto-plugin.h: Delete.
426	* lto-plugin-elf.c: Likewise.
427	* lto-plugin-coff.c: Likewise.
428	* configure.ac: Don't use libelf, don't source config.gcc.
429	(LIBELFLIBS): Delete.
430	(LIBELFINC): Delete.
431	(LTO_FORMAT): Delete.
432	(SYM_STYLE): Add AC_DEFINE var, set based on $target.
433	(config.h): Add AC_CONFIG_HEADERS directive.
434	* Makefile.am (LIBELFLIBS): Delete.
435	(LIBELFINC): Delete.
436	(LTO_FORMAT): Delete.
437	(DEFS): Import.
438	(AM_CPPFLAGS): Use it.  Don't use LIBELFINC.
439	(liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
440	any object-format-specific source file in the link.
441	(liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
442	* config.h.in: Generate.
443	* configure: Regenerate.
444	* Makefile.in: Likewise.
445	* lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
446	(LTO_SEGMENT_NAME): New definition.
447	(LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
448	(LTO_SECTION_PREFIX_LEN): New definition.
449	(struct sym_aux): Struct definition moved here from lto-plugin.h.
450	(struct plugin_symtab): Likewise.
451	(struct plugin_objfile): Likewise.
452	(struct plugin_objfile): New struct def.
453	(enum symbol_style): New enum type.
454	(add_symbols): Make static.
455	(claimed_files): Likewise.
456	(num_claimed_files): Likewise.
457	(sym_style): New global.
458	(check): Make static.
459	(parse_table_entry): Likewise.  Respect sym_style when extracting
460	symbol from symtab entry.
461	(translate): Make static.
462	(resolve_conflicts): Likewise.
463	(process_symtab): New function, per-section callback version of
464	old object-format-specific handling from deleted lto-plugin-elf.c.
465	(claim_file_handler): Convert ELF-specific version from deleted
466	lto-plugin-elf.c to simple_object interface and move here.
467	(process_options): Allow new '-sym-style=' option.
468	(onload): Don't call deleted onload_format_checks hook.
469
4702010-10-11  Kai Tietz  <kai.tietz@onevision.com>
471
472	* lto-plugin.c (dump_symtab): Correct printf argument type.
473	(finish_conflict_resolution): Initialize resolution.
474
4752010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
476
477	PR bootstrap/45951
478	* configure.ac: Add AC_CANONICAL_SYSTEM.
479	* configure: Regenerated.
480
4812010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
482
483	* configure.ac: Source config.gcc to determine lto_binary_reader.
484	(LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
485	* Makefile.am (LTO_FORMAT): Import.
486	(liblto_plugin_la_SOURCES): Add object format dependent module
487	defined by LTO_FORMAT.
488	(liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
489	and work around libtool warning.
490	* configure: Regenerate.
491	* Makefile.in: Likewise.
492	* lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
493	(struct sym_aux): Likewise.
494	(struct plugin_symtab): Likewise.
495	(struct plugin_file_info): Likewise.
496	(LTO_SECTION_PREFIX): Likewise.
497	(add_symbols):  Make non-static.
498	(claimed_files): Likewise.
499	(num_claimed_files): Likewise.
500	(check): Likewise.
501	(parse_table_entry): Likewise.
502	(translate): Likewise.
503	(resolve_conflicts): Likewise.
504	(process_symtab): Move to new lto-plugin-elf.c object format dependent
505	source file.
506	(claim_file_handler): Likewise, and make non-static.
507	(onload): Call new onload_format_checks function.
508	* lto-plugin.h: New file.
509	(LTO_SECTION_PREFIX): Move here.
510	(struct sym_aux): Likewise.
511	(struct plugin_symtab): Likewise.
512	(struct plugin_file_info): Likewise.
513	(claim_file_handler): Add new function prototype.
514	(onload_format_checks): Likewise.
515	(check): Declare extern.
516	(translate): Likewise.
517	(parse_table_entry): Likewise.
518	(resolve_conflicts): Likewise.
519	(add_symbols):  Likewise.
520	(claimed_files): Likewise.
521	(num_claimed_files): Likewise.
522	* lto-plugin-elf.c (process_symtab): Move here.
523	(claim_file_handler): Likewise, and make non-static.
524	(onload_format_checks): New function factored out from onload.
525	* lto-plugin-coff.c (claim_file_handler): New function stub.
526	(onload_format_checks): Likewise.
527
5282010-08-05  Andi Kleen  <ak@linux.intel.com>
529
530	* lto-plugin.c: Include <hashtab.h>
531	(sym_aux): Add next_conflict field to save conflict chains.
532	(plugin_file_info): Add conflicts symtab.
533	(parse_table_entry): Initialize aux->next_conflict.
534	(process_symtab): Increment found.
535	(dump_symtab): Add.
536	(finish_conflict_resolution): Add.
537	(free_symtab): Add.
538	(write_resolution): Remove symbols loop and move into
539	dump_symtab. Call dump_symtab for main symbol and conflicts table.
540	Call free_symtab to free conflicts table.
541	(SWAP): Add.
542	(eq_sym): Add.
543	(hash_sym): Add.
544	(symbol_strength): Add.
545	(resolve_conflicts): Add.
546	(claim_file_handler): Add n variable. Check return value of
547	process_symtab. Call resolve_conflicts.
548
5492010-07-27  Andi Kleen  <ak@linux.intel.com>
550
551	* lto-plugin.c (translate): Remove debug fprintf.
552
5532010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
554
555	PR bootstrap/45042
556	* lto-plugin.c (translate): Cast to unsigned long.
557
5582010-07-23   Andi Kleen  <ak@linux.intel.com>
559
560	PR lto/44992
561	* lto-plugin.c (sym_aux): Add.
562	(plugin_symtab): Remove slots. Add aux and id.
563	(parse_table_entry): Change to use aux instead of slots.
564	(LTO_SECTION_PREFIX): Add.
565	(translate): Improve buffer allocation. Change to append
566	symbols to existing out buffer.
567	(get_section): Remove.
568	(process_symtab): Add.
569	(free_2): Free symtab->aux.
570	(write_resolution): Handle aux instead of slots.
571	Print sub id to resolution file.
572	(claim_file_handler): Clear lto_file. Replace get_symtab/translate
573	calls with call to process_symtab.
574
5752010-07-22  Richard Guenther  <rguenther@suse.de>
576
577	* Makefile.am: New copy_lto_plugin rule to install the plugin
578	into ../gcc.
579	* Makefile.in: Regenerated.
580
5812010-05-21  Richard Guenther  <rguenther@suse.de>
582
583	* lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
584
5852010-05-07  Richard Guenther <rguenther@suse.de>
586
587	* lto-plugin.c (free_2): Do not free resolution_file.
588	(write_resolution): Check that we were passed a resolution file.
589	(all_symbols_read_handler): Adjust.
590	(cleanup_handler): Do not remove the resolution file.
591	(process_option): Handle -fresolution=.
592
5932010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
594
595	PR other/43620
596	* configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
597	* Makefile.in: Regenerate.
598
5992010-04-23  Richard Guenther  <rguenther@suse.de>
600
601	PR lto/41550
602	* lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
603	(translate): Likewise.
604	(all_symbols_read_handler): Likewise.
605	(claim_file_handler): Likewise.
606	(process_option): Likewise.
607	(add_output_files): Likewise.  Remove filename length limit.
608
6092010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610
611	* Makefile.in: Regenerate.
612	* aclocal.m4: Regenerate.
613
6142010-03-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
615
616	PR lto/43336
617	* lto-plugin.c (cleanup_handler): Delete temporary output files.
618
6192010-01-11  Richard Guenther  <rguenther@suse.de>
620
621	PR lto/41569
622	* Makefile.am: Disable dependencies.
623	* Makefile.in: Regenerated.
624
6252010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
626
627	PR lto/42520
628	* lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
629	if -v is passed.
630
6312009-12-05  H.J. Lu  <hongjiu.lu@intel.com>
632
633	PR bootstrap/42306
634	* configure: Regenerated.
635	* Makefile.in: Likewise.
636
6372009-11-19  Rafael Avila de Espindola  <espindola@google.com>
638
639	PR bootstrap/42096
640	* lto-plugin.c (claim_file_handler): Print offsets in hex.
641
6422009-11-12  Rafael Avila de Espindola  <espindola@google.com>
643
644	* lto-plugin.c (write_resolution): Assume resolution_file is set.
645	Print the symbol name.
646	(all_symbols_read_handler): Create a resolution file.
647	Pass it to gcc.
648	(cleanup_handler): Remove the resolution file.
649	(process_option): Drop the -resolution option.
650
6512009-11-05  Rafael Avila de Espindola  <espindola@google.com>
652
653	* lto-plugin.c (temp_obj_dir_name): Remove.
654	(arguments_file_name): New.
655	(free_2): Free arguments_file_name instead of temp_obj_dir_name.
656	(exec_lto_wrapper):  Create arguments file with make_temp_file.
657	(cleanup_handler): Don't remove the temporary directory. Remove the
658	arguments file.
659	(onload): Don't create the temporary directory.
660
6612009-11-04  Richard Guenther  <rguenther@suse.de>
662            Rafael Avila de Espindola  <espindola@google.com>
663
664	* lto-plugin.c (plugin_file_info): Remove temp field.
665	(cleanup_handler): Don't delete temporary objects.
666	(claim_file_handler): Don't create temporary objects.
667
6682009-11-04  Rafael Avila de Espindola  <espindola@google.com>
669
670	* lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
671
6722009-10-30  Rafael Avila de Espindola  <espindola@google.com>
673
674	PR41871
675	* lto-plugin.c (claim_file_handler): Close files that we created.
676
6772009-10-28  Rafael Avila de Espindola  <espindola@google.com>
678
679	* lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
680	LDPL_ERROR
681
6822009-10-27  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
683
684	PR lto/41652
685	* configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
686	* configure: Regenerate.
687
6882009-10-26  Richard Guenther  <rguenther@suse.de>
689
690	* configure.ac: Use AM_MAINTAINER_MODE.
691	* acinclude.m4: Remove.
692	* configure: Re-generate.
693	* Makefile.in: Likewise.
694	* aclocal.m4: Likewise.
695
6962009-10-19  Rafael Avila de Espindola  <espindola@google.com>
697
698        PR40790
699        * configure: Regenerate.
700        * configure.ac: Add AC_TYPE_UINT64_T.
701
7022009-10-16  Rafael Avila de Espindola  <espindola@google.com>
703
704	* lto-plugin.c (message): New variable.
705	(check): New function.
706	(parse_table_entry, translate, write_resolution,add_output_files,
707	exec_lto_wrapper,claim_file_handler, onload): Use check instead of
708	assert.
709	(cleanup_handler): Use check instead of assert. Remove the arguments
710	file if it exists.
711
7122009-10-15  Rafael Avila de Espindola  <espindola@google.com>
713
714	* lto-plugin.c (resolution_file): New.
715	(free_1): Update comment.
716	(free_2): Free resolution_file.
717	(write_resolution): Write resolution to specified file. Use the
718	syms array from the symbol table.
719	(all_symbols_read_handler): Delay call to free_1 past call to
720	write_resolution.
721	(process_option): Add a -resolution option.
722
7232009-10-13  Richard Guenther  <rguenther@suse.de>
724
725	* Makefile.am (liblto_plugin_la_LIBADD): Link against the
726	correct libiberty.
727	* Makefile.in: Regenerated.
728
7292009-10-08  Rafael Avila de Espindola  <espindola@google.com>
730
731	* lto-plugin.c (add_input_library): New.
732	(all_symbols_read_handler): Use add_input_library for items that
733	start with -l.
734	(process_option): Fit in 80 columns.
735	(onload): Handle LDPT_ADD_INPUT_LIBRARY.
736
7372009-10-02  Diego Novillo  <dnovillo@google.com>
738
739	* Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
740	and -D_FILE_OFFSET_BITS=64.
741	* configure.ac: Add AC_SYS_LARGEFILE.
742	* configure: Regenerate.
743	* Makefile.in: Regenerate.
744	* lto-plugin.c: Fix copyright boilerplate.
745
7462009-10-02  Diego Novillo  <dnovillo@google.com>
747
748	* Makefile.am (ACLOCAL_AMFLAGS): Define.
749	* aclocal.m4: Regenerate with aclocal-2.64
750	* acinclude.m4: Remove.
751	* Makefile.in: Regenerate with automake-1.11
752	* configure.ac (AC_PREREQ): Update to 2.64.
753	* configure: Regenerate.
754
7552009-10-02  Diego Novillo  <dnovillo@google.com>
756
757	* Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
758	and -D_FILE_OFFSET_BITS=64.
759	* configure.ac: Add AC_SYS_LARGEFILE.
760	* configure: Regenerate.
761	* Makefile.in: Regenerate.
762	* lto-plugin.c: Fix copyright boilerplate.
763
7642009-10-02  Diego Novillo  <dnovillo@google.com>
765
766	* Makefile.am (ACLOCAL_AMFLAGS): Define.
767	* aclocal.m4: Regenerate with aclocal-2.64
768	* acinclude.m4: Remove.
769	* Makefile.in: Regenerate with automake-1.11
770	* configure.ac (AC_PREREQ): Update to 2.64.
771	* configure: Regenerate.
772
7732009-10-02  Rafael Avila de Espindola  <espindola@google.com>
774
775	* Makefile.am (liblto_plugin_la_SOURCES): Remove
776	$(top_srcdir)/../gcc/lto/common.c
777	* Makefile.in: Regenerate.
778
7792009-10-01  Rafael Avila de Espindola  <espindola@google.com>
780
781	* lto-plugin.c (pass_through_items): New.
782	(num_pass_through_items): New.
783	(all_symbols_read_handler): Update to use the -pass-through option.
784	(process_option): Replace -libgcc with -pass-through.
785
7862009-09-30  Rafael Avila de Espindola  <espindola@google.com>
787
788	* lto-plugin.c (onload): Return a ld_plugin_status. Don't require
789	register_cleanup to be set.
790
7912009-09-30  Rafael Avila de Espindola  <espindola@google.com>
792
793	* Makefile.am: Remove all reference to ltosymtab.
794	* Makefile.in: Regenerate.
795	* lto-symtab.c: Remove.
796
7972009-05-21  Diego Novillo  <dnovillo@google.com>
798
799	* configure.ac: Remove call to AC_CHECK_GELF.
800	Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
801	* acinclude.m4: Do not include ../config/libelf.m4
802	* Makefile.am (LIBELFLIBS): Define.
803	(LIBELFINC): Define.
804	(AM_CPPFLAGS): Add $(LIBELFINC).
805	(ltosymtab_LDADD): Add $(LIBELFLIBS).
806	(liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
807	* lto-plugin.c: Always include <gelf.h>
808	* lto-symtab.c: Likewise.
809	* configure: Regenerate.
810	* Makefile.in: Regenerate.
811
8122009-03-23  Rafael Avila de Espindola  <espindola@google.com>
813
814	* lto-plugin.c (libgcc_filename): New.
815	(all_symbols_read_handler): Pass libgcc to the linker.
816	(all_symbols_read_handler): Parse -libgcc
817
8182009-02-05  Rafael Avila de Espindola  <espindola@google.com>
819
820	* Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
821	* Makefile.in: Regenerate.
822	* lto-plugin.c (add_output_files): Argument is now a FILE.
823	(exec_lto_wrapper): Use writeargv and pex.
824
8252009-02-04  Rafael Avila de Espindola  <espindola@google.com>
826
827	Revert:
828	2009-02-04  Rafael Avila de Espindola  <espindola@google.com>
829	* lto-plugin.c (exec_lto_wrapper): Use writeargv.
830
831
8322009-02-04  Rafael Avila de Espindola  <espindola@google.com>
833
834	* lto-plugin.c (exec_lto_wrapper): Use writeargv.
835
8362009-01-29  Rafael Avila de Espindola  <espindola@google.com>
837
838	* lto-plugin.c: Include libiberty.h.
839	(exec_lto_wrapper, claim_file_handler): Use asprintf instead of
840	snprintf.
841
8422009-01-29  Rafael Avila de Espindola  <espindola@google.com>
843
844	* lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
845	file to lto-wrapper.
846
8472009-01-28  Rafael Avila de Espindola  <espindola@google.com>
848
849	* lto-plugin.c (plugin_file_info): Remove fd and elf.
850	(parse_table_entry): strdup entry->name and entry->comdat_key.
851	(free_1): Free name and comdat_key. Don't close the file. Don't call
852	elf_end.
853	(claim_file_handler): Always call elf_end.
854
8552008-12-23  Rafael Avila de Espindola  <espindola@google.com>
856
857	* Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
858	-D_FILE_OFFSET_BITS=64
859	* Makefile.in: Regenerate
860
8612008-12-22  Rafael Avila de Espindola  <espindola@google.com>
862
863	* Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
864	(lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
865	* Makefile.in: Regenerate.
866	* acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
867	* configure: Regenerate.
868	* configure.ac: Add AC_SUBST(target_noncanonical).
869
8702008-12-08  Rafael Avila de Espindola  <espindola@google.com>
871
872	* lto-plugin.c: Include stdbool.h.
873	(debug, nop): Declare as bool.
874
8752008-12-08  Rafael Avila de Espindola  <espindola@google.com>
876
877	* lto-plugin.c (nop): New.
878	(use_original_files): New.
879	(all_symbols_read_handler): Call use_original_files if nop is true.
880	(process_option): Parse the -nop option.
881
8822008-12-08  Rafael Avila de Espindola  <espindola@google.com>
883
884	* lto-plugin.c (debug): New.
885	(exec_lto_wrapper): Print argv if debug is true.
886	(process_option): Process the -debug command line option.
887
8882008-12-03  Rafael Avila de Espindola  <espindola@google.com>
889
890	* lto-plugin.c (process_option): The argument is now a single option,
891	not a space separated list.
892
8932008-12-02  Rafael Avila de Espindola  <espindola@google.com>
894
895	* lto-plugin.c: Include sys/types.h and sys/wait.h
896	(output_files, num_output_files, lto_wrapper_argv,
897	lto_wrapper_num_args): New.
898	(free_2): Free output_files.
899	(write_resolution): Disable.
900	(add_output_files): New.
901	(exec_lto_wrapper): New.
902	(all_symbols_read_handler): Run lto-wrapper.
903	(claim_file_handler): Free lto_file.name and call elf_end.
904	(process_option): New.
905
9062008-11-26  Rafael Espindola  <espindola@google.com>
907
908	* lto-plugin.c (add_input_file): New.
909	(get_section): Return NULL if get_section fails.
910	(write_resolution): New.
911	(all_symbols_read_handler): Call add_input_file.
912	(claim_file_handler): Unlink the correct file.
913	(onload): Record add_input_file.
914
9152008-09-23 Rafael Espindola  <espindola@google.com>
916
917	* Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
918	Update the location of common.c.
919	* Makefile.in: Regenerate.
920	* common.c: Moved to gcc/lto.
921	* common.h: Moved to gcc/lto.
922	* lto-plugin.c: Update the location of common.h.
923	* lto-symtab.c: Update the location of common.h.
924
9252008-09-23 Rafael Espindola  <espindola@google.com>
926
927	* common.c: Include common.h.
928	(lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
929	sizes.
930	* common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
931	explicit sizes.
932
9332008-09-23 Rafael Espindola  <espindola@google.com>
934
935	* lto-plugin.c (plugin_file_info): Add temp.
936	(cleanup_handler): Only delete temporary files.
937	(claim_file_handler): Initialize lto_file.temp.
938
9392008-09-23  Rafael Espindola  <espindola@google.com>
940
941        * plugin-api.h: Moved to include.
942
9432008-09-23 Rafael Espindola  <espindola@google.com>
944
945	* lto-plugin.c (all_symbols_read_handler): Print resolution in a new
946	format.
947
9482008-09-22 Rafael Espindola  <espindola@google.com>
949
950	* plugin-api.h: Copy from binutils' cvs.
951
9522008-09-22 Rafael Espindola  <espindola@google.com>
953
954	* lto-symtab.c (get_symbols, add_symbols): Update signature.
955	* plugin-api.h: Copy from binutils' cvs.
956
9572008-09-22 Rafael Espindola  <espindola@google.com>
958
959	* common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
960	Make extern
961
9622008-09-10 Rafael Espindola  <espindola@google.com>
963
964	* lto-plugin.c (onload): add missing break statements and asserts.
965	* lto-symtab.c (claim_file_handler): Make it static.
966	(all_symbols_read_handler): Make it static.
967	(all_file_handles): Make it static.
968	(num_file_handles): Make it static.
969	(register_claim_file): Make it static.
970	(register_object): Indent properly.
971
9722008-09-10  Rafael Avila de Espindola  <espindola@google.com>
973
974	* Makefile.am (ltosymtab_LDADD): Add -lelf.
975	* Makefiel.in: Regenerate.
976	* lto-plugin.c: Include ar.h.
977	(claim_file_handler): Handle file->offset != 0.
978	* lto-symtab.c: Include gelf.h.
979	(all_file_handles): Change type.
980	(register_object): New.
981	(register_file): Add support for archives.
982	(resolve): Update to new type of all_file_handles.
983	(print): Update to new type of all_file_handles.
984	(free_all): Update to new type of all_file_handles.
985	(main): Update to new type of all_file_handles.
986
9872008-09-10  Rafael Avila de Espindola  <espindola@google.com>
988
989	* lto-plugin.c (get_string_table): Remove.
990	(get_section): Use elf_strptr instead of get_string_table.
991
9922008-09-08  Doug Kwan  <dougkwan@google.com>
993
994	* lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
995	to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
996
9972008-09-08  Rafael Avila de Espindola  <espindola@google.com>
998
999	* Makefile.am (ltosymtab_SOURCES): add common.c.
1000	(ltosymtab_CFLAGS): New.
1001	(liblto_plugin_la_SOURCES): Add common.c.
1002	* Makefile.in: Regenerate.
1003	* common.c: New.
1004	* common.h: New.
1005	* lto-plugin.c: Include stdio.h, inttypes.h and common.h.
1006	(plugin_symtab): New.
1007	(plugin_file_info): New.
1008	(register_all_symbols_read): New.
1009	(get_symbols): New.
1010	(claimed_files): New.
1011	(num_claimed_files): New.
1012	(translate): Don't drop the slot number.
1013	(free_1): New.
1014	(free_2): New.
1015	(all_symbols_read_handler): New.
1016	(claim_file_handler): Record every claimed file.
1017	(onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1018	LDPT_GET_SYMBOLS.
1019	* lto-symtab.c: Include stdlib.h, string.h and common.h.
1020	(current_file_handle): Remove.
1021	(ld_plugin_all_symbols_read_handler): New.
1022	(plugin_handle): New.
1023	(file_handle): New.
1024	(all_file_handles): New.
1025	(num_file_handles): New.
1026	(get_symbols): New.
1027	(register_all_symbols_read): New.
1028	(add_symbols): Don't print the symbols, just record them.
1029	(ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
1030	LDPT_GET_SYMBOLS.
1031	(load_plugin): Use plugin_handle.
1032	(register_file): Add the file handle to all_file_handles.
1033	(resolve): New.
1034	(print): New.
1035	(unload_plugin): New.
1036	(free_all): New.
1037	(main): Call all_symbols_read_handler and free resources.
1038
10392008-09-03  Rafael Avila de Espindola  <espindola@google.com>
1040
1041	* Makefile.am (AM_CFLAGS): New.
1042	(ltosymtab_LDADD): Remove -lelf. Add -ldl.
1043	(lib_LTLIBRARIES): New.
1044	(liblto_plugin_la_SOURCES): New.
1045	(liblto_plugin_la_LIBADD): New.
1046	* Makefile.in: Regenerate.
1047	* acinclude.m4: Don't include ../config/acx.m4 and
1048	../config/no-executables.m4.
1049	Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
1050	../libtool.m4.
1051	* aclocal.m4: Regenerate.
1052	* configure: Regenerate.
1053	* configure.ac: Use AM_PROG_LIBTOOL.
1054	* lto-plugin.c: New.
1055	* lto-symtab.c: Rewrite to use the plugin.
1056	* plugin-api.h: New.
1057
10582008-08-25  Rafael Avila de Espindola  <espindola@google.com>
1059
1060	* configure: Regenerate.
1061	* configure.ac: Use AC_CHECK_GELF.
1062	* lto-symtab.c: Include gelf.h.
1063	(get_string_table): Use size independent API.
1064	(printTable): Use lld to print 64 bit integers.
1065
10662008-08-22  Rafael Avila de Espindola  <espindola@google.com>
1067
1068	* lto-symtab.c (parse_table_entry): Assert entry->kind and
1069	entry->visibility are valid.
1070
10712008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1072	* lto-symtab.c (table_entry): Add comdat.
1073	(parse_table_entry): Read comdat.
1074
10752008-08-21  Rafael Espindola  <espindola@google.com>
1076
1077	* Makefile.am: New.
1078	* Makefile.in: New.
1079	* acinclude.m4: New.
1080	* aclocal.m4: New.
1081	* configure: New.
1082	* configure.ac: New.
1083	* lto-symtab.c: New.
1084