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