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