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