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