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