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