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