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