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