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