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