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