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