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