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