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