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