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