]>
Commit | Line | Data |
---|---|---|
5b64bab9 DK |
1 | 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com> |
2 | ||
3 | * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag. | |
4 | * Makefile.in: Regenerate. | |
5 | ||
be3ea0c8 RO |
6 | 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7 | ||
8 | Revert last change. | |
9 | ||
dd8587d6 RO |
10 | 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
11 | ||
12 | * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. | |
13 | (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. | |
14 | (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. | |
15 | * Makefile.in: Regenerate. | |
16 | ||
77754180 DK |
17 | 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com> |
18 | ||
19 | PR middle-end/46674 | |
20 | PR lto/43157 | |
21 | * configure.ac (SYM_STYLE): Don't AC_DEFINE. | |
22 | * lto-plugin.c (sym_style): Don't use it; default to ss_none. | |
23 | * configure: Regenerate. | |
24 | * config.h.in: Likewise. | |
25 | ||
7de6ba7a DK |
26 | 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> |
27 | ||
28 | PR target/40125 | |
29 | PR lto/46695 | |
30 | * configure.ac: Invoke ACX_LT_HOST_FLAGS. | |
31 | * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but | |
32 | override -bindir setting. | |
33 | * aclocal.m4: Regenerate. | |
34 | * configure: Regenerate. | |
35 | * Makefile.in: Regenerate. | |
36 | ||
ec692d5f KT |
37 | 2010-12-05 Kai Tietz <kai.tietz@onevision.com> |
38 | ||
39 | * config.h.in: Regenerated. | |
40 | * configure: Regenerated. | |
41 | * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. | |
42 | * lto-plugin.c (WIFEXITED): Define default. | |
43 | (WEXITSTATUS): Likeiwse. | |
44 | ||
a2254c5d KT |
45 | 2010-12-01 Kai Tietz <kai.tietz@onevision.com> |
46 | ||
47 | * config.h.in: Regenerated. | |
48 | * configure: Regenerated. | |
49 | * Makefile.in: Regenerated. | |
50 | * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h. | |
51 | * lto-plugin.c: Include sys/wait.h conditionally. | |
52 | * aclocal.m4: Regenerated. | |
53 | ||
44538c62 KT |
54 | 2010-11-13 Kai Tietz <kai.tietz@onevision.com> |
55 | ||
56 | * lto-plugin.c (add_output_files): Fix memory leak. | |
57 | ||
d19e0f01 DK |
58 | 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com> |
59 | ||
60 | PR bootstrap/46397 | |
61 | PR bootstrap/46362 | |
62 | * configure.ac: Add AC_TYPE_INT64_T test. | |
63 | * config.h.in: Regenerate. | |
64 | * configure: Likewise. | |
65 | * lto-plugin.c (debug): Use char not bool. | |
66 | (nop): Likewise. | |
67 | (check_1): Rename from check, and use int not bool for gate argument. | |
68 | (check): Macro wrapper for the above to coerce gate argument into | |
69 | boolean-valued integer in case it has pointer type. | |
70 | (parse_table_entry): Use 0 not false. | |
71 | (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size | |
72 | into two 32-bit parts and printing as hex ints. | |
73 | ||
37da3688 DK |
74 | 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> |
75 | ||
76 | PR lto/46291 | |
77 | * lto-plugin.c (claim_file_handler): Don't close file descriptor. | |
78 | ||
48215350 DK |
79 | 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> |
80 | ||
81 | PR lto/46273 | |
82 | * lto-plugin.h: Delete. | |
83 | * lto-plugin-elf.c: Likewise. | |
84 | * lto-plugin-coff.c: Likewise. | |
85 | * configure.ac: Don't use libelf, don't source config.gcc. | |
86 | (LIBELFLIBS): Delete. | |
87 | (LIBELFINC): Delete. | |
88 | (LTO_FORMAT): Delete. | |
89 | (SYM_STYLE): Add AC_DEFINE var, set based on $target. | |
90 | (config.h): Add AC_CONFIG_HEADERS directive. | |
91 | * Makefile.am (LIBELFLIBS): Delete. | |
92 | (LIBELFINC): Delete. | |
93 | (LTO_FORMAT): Delete. | |
94 | (DEFS): Import. | |
95 | (AM_CPPFLAGS): Use it. Don't use LIBELFINC. | |
96 | (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include | |
97 | any object-format-specific source file in the link. | |
98 | (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS. | |
99 | * config.h.in: Generate. | |
100 | * configure: Regenerate. | |
101 | * Makefile.in: Likewise. | |
102 | * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h. | |
103 | (LTO_SEGMENT_NAME): New definition. | |
104 | (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h. | |
105 | (LTO_SECTION_PREFIX_LEN): New definition. | |
106 | (struct sym_aux): Struct definition moved here from lto-plugin.h. | |
107 | (struct plugin_symtab): Likewise. | |
108 | (struct plugin_objfile): Likewise. | |
109 | (struct plugin_objfile): New struct def. | |
110 | (enum symbol_style): New enum type. | |
111 | (add_symbols): Make static. | |
112 | (claimed_files): Likewise. | |
113 | (num_claimed_files): Likewise. | |
114 | (sym_style): New global. | |
115 | (check): Make static. | |
116 | (parse_table_entry): Likewise. Respect sym_style when extracting | |
117 | symbol from symtab entry. | |
118 | (translate): Make static. | |
119 | (resolve_conflicts): Likewise. | |
120 | (process_symtab): New function, per-section callback version of | |
121 | old object-format-specific handling from deleted lto-plugin-elf.c. | |
122 | (claim_file_handler): Convert ELF-specific version from deleted | |
123 | lto-plugin-elf.c to simple_object interface and move here. | |
124 | (process_options): Allow new '-sym-style=' option. | |
125 | (onload): Don't call deleted onload_format_checks hook. | |
126 | ||
9df2493c KT |
127 | 2010-10-11 Kai Tietz <kai.tietz@onevision.com> |
128 | ||
129 | * lto-plugin.c (dump_symtab): Correct printf argument type. | |
130 | (finish_conflict_resolution): Initialize resolution. | |
131 | ||
73d5e770 L |
132 | 2010-10-08 H.J. Lu <hongjiu.lu@intel.com> |
133 | ||
134 | PR bootstrap/45951 | |
135 | * configure.ac: Add AC_CANONICAL_SYSTEM. | |
136 | * configure: Regenerated. | |
137 | ||
1cd0b716 DK |
138 | 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> |
139 | ||
140 | * configure.ac: Source config.gcc to determine lto_binary_reader. | |
141 | (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. | |
142 | * Makefile.am (LTO_FORMAT): Import. | |
143 | (liblto_plugin_la_SOURCES): Add object format dependent module | |
144 | defined by LTO_FORMAT. | |
145 | (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, | |
146 | and work around libtool warning. | |
147 | * configure: Regenerate. | |
148 | * Makefile.in: Likewise. | |
149 | * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. | |
150 | (struct sym_aux): Likewise. | |
151 | (struct plugin_symtab): Likewise. | |
152 | (struct plugin_file_info): Likewise. | |
153 | (LTO_SECTION_PREFIX): Likewise. | |
154 | (add_symbols): Make non-static. | |
155 | (claimed_files): Likewise. | |
156 | (num_claimed_files): Likewise. | |
157 | (check): Likewise. | |
158 | (parse_table_entry): Likewise. | |
159 | (translate): Likewise. | |
160 | (resolve_conflicts): Likewise. | |
161 | (process_symtab): Move to new lto-plugin-elf.c object format dependent | |
162 | source file. | |
163 | (claim_file_handler): Likewise, and make non-static. | |
164 | (onload): Call new onload_format_checks function. | |
165 | * lto-plugin.h: New file. | |
166 | (LTO_SECTION_PREFIX): Move here. | |
167 | (struct sym_aux): Likewise. | |
168 | (struct plugin_symtab): Likewise. | |
169 | (struct plugin_file_info): Likewise. | |
170 | (claim_file_handler): Add new function prototype. | |
171 | (onload_format_checks): Likewise. | |
172 | (check): Declare extern. | |
173 | (translate): Likewise. | |
174 | (parse_table_entry): Likewise. | |
175 | (resolve_conflicts): Likewise. | |
176 | (add_symbols): Likewise. | |
177 | (claimed_files): Likewise. | |
178 | (num_claimed_files): Likewise. | |
179 | * lto-plugin-elf.c (process_symtab): Move here. | |
180 | (claim_file_handler): Likewise, and make non-static. | |
181 | (onload_format_checks): New function factored out from onload. | |
182 | * lto-plugin-coff.c (claim_file_handler): New function stub. | |
183 | (onload_format_checks): Likewise. | |
184 | ||
d2c57fe9 AK |
185 | 2010-08-05 Andi Kleen <ak@linux.intel.com> |
186 | ||
187 | * lto-plugin.c: Include <hashtab.h> | |
188 | (sym_aux): Add next_conflict field to save conflict chains. | |
189 | (plugin_file_info): Add conflicts symtab. | |
190 | (parse_table_entry): Initialize aux->next_conflict. | |
191 | (process_symtab): Increment found. | |
192 | (dump_symtab): Add. | |
193 | (finish_conflict_resolution): Add. | |
194 | (free_symtab): Add. | |
195 | (write_resolution): Remove symbols loop and move into | |
196 | dump_symtab. Call dump_symtab for main symbol and conflicts table. | |
197 | Call free_symtab to free conflicts table. | |
198 | (SWAP): Add. | |
199 | (eq_sym): Add. | |
200 | (hash_sym): Add. | |
201 | (symbol_strength): Add. | |
202 | (resolve_conflicts): Add. | |
203 | (claim_file_handler): Add n variable. Check return value of | |
204 | process_symtab. Call resolve_conflicts. | |
205 | ||
90e26247 AK |
206 | 2010-07-27 Andi Kleen <ak@linux.intel.com> |
207 | ||
208 | * lto-plugin.c (translate): Remove debug fprintf. | |
209 | ||
9477ccb2 L |
210 | 2010-07-23 H.J. Lu <hongjiu.lu@intel.com> |
211 | ||
212 | PR bootstrap/45042 | |
213 | * lto-plugin.c (translate): Cast to unsigned long. | |
214 | ||
215 | 2010-07-23 Andi Kleen <ak@linux.intel.com> | |
73ce4d1e AK |
216 | |
217 | PR lto/44992 | |
218 | * lto-plugin.c (sym_aux): Add. | |
219 | (plugin_symtab): Remove slots. Add aux and id. | |
220 | (parse_table_entry): Change to use aux instead of slots. | |
221 | (LTO_SECTION_PREFIX): Add. | |
222 | (translate): Improve buffer allocation. Change to append | |
223 | symbols to existing out buffer. | |
224 | (get_section): Remove. | |
225 | (process_symtab): Add. | |
226 | (free_2): Free symtab->aux. | |
227 | (write_resolution): Handle aux instead of slots. | |
228 | Print sub id to resolution file. | |
229 | (claim_file_handler): Clear lto_file. Replace get_symtab/translate | |
230 | calls with call to process_symtab. | |
231 | ||
553fc582 RG |
232 | 2010-07-22 Richard Guenther <rguenther@suse.de> |
233 | ||
234 | * Makefile.am: New copy_lto_plugin rule to install the plugin | |
235 | into ../gcc. | |
236 | * Makefile.in: Regenerated. | |
237 | ||
bdc89f9e RG |
238 | 2010-05-21 Richard Guenther <rguenther@suse.de> |
239 | ||
240 | * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. | |
241 | ||
5cd0e96b RG |
242 | 2010-05-07 Richard Guenther <rguenther@suse.de> |
243 | ||
244 | * lto-plugin.c (free_2): Do not free resolution_file. | |
245 | (write_resolution): Check that we were passed a resolution file. | |
246 | (all_symbols_read_handler): Adjust. | |
247 | (cleanup_handler): Do not remove the resolution file. | |
248 | (process_option): Handle -fresolution=. | |
249 | ||
13917ae3 RW |
250 | 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
251 | ||
252 | PR other/43620 | |
253 | * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. | |
254 | * Makefile.in: Regenerate. | |
255 | ||
ed0f0c0f RG |
256 | 2010-04-23 Richard Guenther <rguenther@suse.de> |
257 | ||
258 | PR lto/41550 | |
259 | * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc. | |
260 | (translate): Likewise. | |
261 | (all_symbols_read_handler): Likewise. | |
262 | (claim_file_handler): Likewise. | |
263 | (process_option): Likewise. | |
264 | (add_output_files): Likewise. Remove filename length limit. | |
265 | ||
4d9e8446 RW |
266 | 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
267 | ||
268 | * Makefile.in: Regenerate. | |
269 | * aclocal.m4: Regenerate. | |
270 | ||
a8a5ac48 DG |
271 | 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> |
272 | ||
273 | PR lto/43336 | |
274 | * lto-plugin.c (cleanup_handler): Delete temporary output files. | |
275 | ||
c164615b RG |
276 | 2010-01-11 Richard Guenther <rguenther@suse.de> |
277 | ||
278 | PR lto/41569 | |
279 | * Makefile.am: Disable dependencies. | |
280 | * Makefile.in: Regenerated. | |
281 | ||
f0d61983 L |
282 | 2010-01-03 H.J. Lu <hongjiu.lu@intel.com> |
283 | ||
284 | PR lto/42520 | |
285 | * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command | |
286 | if -v is passed. | |
287 | ||
52327858 | 288 | 2009-12-05 H.J. Lu <hongjiu.lu@intel.com> |
43e02a8a | 289 | |
52327858 L |
290 | PR bootstrap/42306 |
291 | * configure: Regenerated. | |
292 | * Makefile.in: Likewise. | |
43e02a8a | 293 | |
92fa7608 RAE |
294 | 2009-11-19 Rafael Avila de Espindola <espindola@google.com> |
295 | ||
296 | PR bootstrap/42096 | |
297 | * lto-plugin.c (claim_file_handler): Print offsets in hex. | |
298 | ||
06bd7f56 RAE |
299 | 2009-11-12 Rafael Avila de Espindola <espindola@google.com> |
300 | ||
301 | * lto-plugin.c (write_resolution): Assume resolution_file is set. | |
302 | Print the symbol name. | |
303 | (all_symbols_read_handler): Create a resolution file. | |
304 | Pass it to gcc. | |
305 | (cleanup_handler): Remove the resolution file. | |
306 | (process_option): Drop the -resolution option. | |
307 | ||
94086ef6 RAE |
308 | 2009-11-05 Rafael Avila de Espindola <espindola@google.com> |
309 | ||
310 | * lto-plugin.c (temp_obj_dir_name): Remove. | |
311 | (arguments_file_name): New. | |
312 | (free_2): Free arguments_file_name instead of temp_obj_dir_name. | |
313 | (exec_lto_wrapper): Create arguments file with make_temp_file. | |
314 | (cleanup_handler): Don't remove the temporary directory. Remove the | |
315 | arguments file. | |
316 | (onload): Don't create the temporary directory. | |
317 | ||
7e9dc421 RG |
318 | 2009-11-04 Richard Guenther <rguenther@suse.de> |
319 | Rafael Avila de Espindola <espindola@google.com> | |
320 | ||
321 | * lto-plugin.c (plugin_file_info): Remove temp field. | |
322 | (cleanup_handler): Don't delete temporary objects. | |
323 | (claim_file_handler): Don't create temporary objects. | |
324 | ||
1cddcdca RAE |
325 | 2009-11-04 Rafael Avila de Espindola <espindola@google.com> |
326 | ||
327 | * lto-plugin.c (cleanup_handler): Don't cleanup if debugging. | |
328 | ||
86ed04df RAE |
329 | 2009-10-30 Rafael Avila de Espindola <espindola@google.com> |
330 | ||
331 | PR41871 | |
332 | * lto-plugin.c (claim_file_handler): Close files that we created. | |
333 | ||
aff4273c RAE |
334 | 2009-10-28 Rafael Avila de Espindola <espindola@google.com> |
335 | ||
336 | * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of | |
337 | LDPL_ERROR | |
338 | ||
4c0f4b0b DG |
339 | 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com> |
340 | ||
341 | PR lto/41652 | |
342 | * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT. | |
343 | * configure: Regenerate. | |
344 | ||
03428d41 RG |
345 | 2009-10-26 Richard Guenther <rguenther@suse.de> |
346 | ||
347 | * configure.ac: Use AM_MAINTAINER_MODE. | |
348 | * acinclude.m4: Remove. | |
349 | * configure: Re-generate. | |
350 | * Makefile.in: Likewise. | |
351 | * aclocal.m4: Likewise. | |
352 | ||
941e566a RE |
353 | 2009-10-19 Rafael Avila de Espindola <espindola@google.com> |
354 | ||
355 | PR40790 | |
356 | * configure: Regenerate. | |
357 | * configure.ac: Add AC_TYPE_UINT64_T. | |
358 | ||
33662270 RAE |
359 | 2009-10-16 Rafael Avila de Espindola <espindola@google.com> |
360 | ||
361 | * lto-plugin.c (message): New variable. | |
362 | (check): New function. | |
363 | (parse_table_entry, translate, write_resolution,add_output_files, | |
364 | exec_lto_wrapper,claim_file_handler, onload): Use check instead of | |
365 | assert. | |
366 | (cleanup_handler): Use check instead of assert. Remove the arguments | |
367 | file if it exists. | |
368 | ||
b10071c5 RAE |
369 | 2009-10-15 Rafael Avila de Espindola <espindola@google.com> |
370 | ||
371 | * lto-plugin.c (resolution_file): New. | |
372 | (free_1): Update comment. | |
373 | (free_2): Free resolution_file. | |
374 | (write_resolution): Write resolution to specified file. Use the | |
375 | syms array from the symbol table. | |
376 | (all_symbols_read_handler): Delay call to free_1 past call to | |
377 | write_resolution. | |
378 | (process_option): Add a -resolution option. | |
379 | ||
076c7ebe RG |
380 | 2009-10-13 Richard Guenther <rguenther@suse.de> |
381 | ||
382 | * Makefile.am (liblto_plugin_la_LIBADD): Link against the | |
383 | correct libiberty. | |
384 | * Makefile.in: Regenerated. | |
385 | ||
d520c7fb RAE |
386 | 2009-10-08 Rafael Avila de Espindola <espindola@google.com> |
387 | ||
388 | * lto-plugin.c (add_input_library): New. | |
389 | (all_symbols_read_handler): Use add_input_library for items that | |
390 | start with -l. | |
391 | (process_option): Fit in 80 columns. | |
392 | (onload): Handle LDPT_ADD_INPUT_LIBRARY. | |
393 | ||
d7f09764 DN |
394 | 2009-10-02 Diego Novillo <dnovillo@google.com> |
395 | ||
396 | * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE | |
397 | and -D_FILE_OFFSET_BITS=64. | |
398 | * configure.ac: Add AC_SYS_LARGEFILE. | |
399 | * configure: Regenerate. | |
400 | * Makefile.in: Regenerate. | |
401 | * lto-plugin.c: Fix copyright boilerplate. | |
402 | ||
403 | 2009-10-02 Diego Novillo <dnovillo@google.com> | |
404 | ||
405 | * Makefile.am (ACLOCAL_AMFLAGS): Define. | |
406 | * aclocal.m4: Regenerate with aclocal-2.64 | |
407 | * acinclude.m4: Remove. | |
408 | * Makefile.in: Regenerate with automake-1.11 | |
409 | * configure.ac (AC_PREREQ): Update to 2.64. | |
410 | * configure: Regenerate. | |
411 | ||
412 | 2009-10-02 Diego Novillo <dnovillo@google.com> | |
413 | ||
414 | * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE | |
415 | and -D_FILE_OFFSET_BITS=64. | |
416 | * configure.ac: Add AC_SYS_LARGEFILE. | |
417 | * configure: Regenerate. | |
418 | * Makefile.in: Regenerate. | |
419 | * lto-plugin.c: Fix copyright boilerplate. | |
420 | ||
421 | 2009-10-02 Diego Novillo <dnovillo@google.com> | |
422 | ||
423 | * Makefile.am (ACLOCAL_AMFLAGS): Define. | |
424 | * aclocal.m4: Regenerate with aclocal-2.64 | |
425 | * acinclude.m4: Remove. | |
426 | * Makefile.in: Regenerate with automake-1.11 | |
427 | * configure.ac (AC_PREREQ): Update to 2.64. | |
428 | * configure: Regenerate. | |
429 | ||
430 | 2009-10-02 Rafael Avila de Espindola <espindola@google.com> | |
431 | ||
432 | * Makefile.am (liblto_plugin_la_SOURCES): Remove | |
433 | $(top_srcdir)/../gcc/lto/common.c | |
434 | * Makefile.in: Regenerate. | |
435 | ||
436 | 2009-10-01 Rafael Avila de Espindola <espindola@google.com> | |
437 | ||
438 | * lto-plugin.c (pass_through_items): New. | |
439 | (num_pass_through_items): New. | |
440 | (all_symbols_read_handler): Update to use the -pass-through option. | |
441 | (process_option): Replace -libgcc with -pass-through. | |
442 | ||
443 | 2009-09-30 Rafael Avila de Espindola <espindola@google.com> | |
444 | ||
445 | * lto-plugin.c (onload): Return a ld_plugin_status. Don't require | |
446 | register_cleanup to be set. | |
447 | ||
448 | 2009-09-30 Rafael Avila de Espindola <espindola@google.com> | |
449 | ||
450 | * Makefile.am: Remove all reference to ltosymtab. | |
451 | * Makefile.in: Regenerate. | |
452 | * lto-symtab.c: Remove. | |
453 | ||
454 | 2009-05-21 Diego Novillo <dnovillo@google.com> | |
455 | ||
456 | * configure.ac: Remove call to AC_CHECK_GELF. | |
457 | Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC. | |
458 | * acinclude.m4: Do not include ../config/libelf.m4 | |
459 | * Makefile.am (LIBELFLIBS): Define. | |
460 | (LIBELFINC): Define. | |
461 | (AM_CPPFLAGS): Add $(LIBELFINC). | |
462 | (ltosymtab_LDADD): Add $(LIBELFLIBS). | |
463 | (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS) | |
464 | * lto-plugin.c: Always include <gelf.h> | |
465 | * lto-symtab.c: Likewise. | |
466 | * configure: Regenerate. | |
467 | * Makefile.in: Regenerate. | |
468 | ||
469 | 2009-03-23 Rafael Avila de Espindola <espindola@google.com> | |
470 | ||
471 | * lto-plugin.c (libgcc_filename): New. | |
472 | (all_symbols_read_handler): Pass libgcc to the linker. | |
473 | (all_symbols_read_handler): Parse -libgcc | |
474 | ||
475 | 2009-02-05 Rafael Avila de Espindola <espindola@google.com> | |
476 | ||
477 | * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty. | |
478 | * Makefile.in: Regenerate. | |
479 | * lto-plugin.c (add_output_files): Argument is now a FILE. | |
480 | (exec_lto_wrapper): Use writeargv and pex. | |
481 | ||
482 | 2009-02-04 Rafael Avila de Espindola <espindola@google.com> | |
483 | ||
484 | Revert: | |
485 | 2009-02-04 Rafael Avila de Espindola <espindola@google.com> | |
486 | * lto-plugin.c (exec_lto_wrapper): Use writeargv. | |
487 | ||
488 | ||
489 | 2009-02-04 Rafael Avila de Espindola <espindola@google.com> | |
490 | ||
491 | * lto-plugin.c (exec_lto_wrapper): Use writeargv. | |
492 | ||
493 | 2009-01-29 Rafael Avila de Espindola <espindola@google.com> | |
494 | ||
495 | * lto-plugin.c: Include libiberty.h. | |
496 | (exec_lto_wrapper, claim_file_handler): Use asprintf instead of | |
497 | snprintf. | |
498 | ||
499 | 2009-01-29 Rafael Avila de Espindola <espindola@google.com> | |
500 | ||
501 | * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that | |
502 | file to lto-wrapper. | |
503 | ||
504 | 2009-01-28 Rafael Avila de Espindola <espindola@google.com> | |
505 | ||
506 | * lto-plugin.c (plugin_file_info): Remove fd and elf. | |
507 | (parse_table_entry): strdup entry->name and entry->comdat_key. | |
508 | (free_1): Free name and comdat_key. Don't close the file. Don't call | |
509 | elf_end. | |
510 | (claim_file_handler): Always call elf_end. | |
511 | ||
512 | 2008-12-23 Rafael Avila de Espindola <espindola@google.com> | |
513 | ||
514 | * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE | |
515 | -D_FILE_OFFSET_BITS=64 | |
516 | * Makefile.in: Regenerate | |
517 | ||
518 | 2008-12-22 Rafael Avila de Espindola <espindola@google.com> | |
519 | ||
520 | * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New. | |
521 | (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES. | |
522 | * Makefile.in: Regenerate. | |
523 | * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4 | |
524 | * configure: Regenerate. | |
525 | * configure.ac: Add AC_SUBST(target_noncanonical). | |
526 | ||
527 | 2008-12-08 Rafael Avila de Espindola <espindola@google.com> | |
528 | ||
529 | * lto-plugin.c: Include stdbool.h. | |
530 | (debug, nop): Declare as bool. | |
531 | ||
532 | 2008-12-08 Rafael Avila de Espindola <espindola@google.com> | |
533 | ||
534 | * lto-plugin.c (nop): New. | |
535 | (use_original_files): New. | |
536 | (all_symbols_read_handler): Call use_original_files if nop is true. | |
537 | (process_option): Parse the -nop option. | |
538 | ||
539 | 2008-12-08 Rafael Avila de Espindola <espindola@google.com> | |
540 | ||
541 | * lto-plugin.c (debug): New. | |
542 | (exec_lto_wrapper): Print argv if debug is true. | |
543 | (process_option): Process the -debug command line option. | |
544 | ||
545 | 2008-12-03 Rafael Avila de Espindola <espindola@google.com> | |
546 | ||
547 | * lto-plugin.c (process_option): The argument is now a single option, | |
548 | not a space separated list. | |
549 | ||
550 | 2008-12-02 Rafael Avila de Espindola <espindola@google.com> | |
551 | ||
552 | * lto-plugin.c: Include sys/types.h and sys/wait.h | |
553 | (output_files, num_output_files, lto_wrapper_argv, | |
554 | lto_wrapper_num_args): New. | |
555 | (free_2): Free output_files. | |
556 | (write_resolution): Disable. | |
557 | (add_output_files): New. | |
558 | (exec_lto_wrapper): New. | |
559 | (all_symbols_read_handler): Run lto-wrapper. | |
560 | (claim_file_handler): Free lto_file.name and call elf_end. | |
561 | (process_option): New. | |
562 | ||
563 | 2008-11-26 Rafael Espindola <espindola@google.com> | |
564 | ||
565 | * lto-plugin.c (add_input_file): New. | |
566 | (get_section): Return NULL if get_section fails. | |
567 | (write_resolution): New. | |
568 | (all_symbols_read_handler): Call add_input_file. | |
569 | (claim_file_handler): Unlink the correct file. | |
570 | (onload): Record add_input_file. | |
571 | ||
572 | 2008-09-23 Rafael Espindola <espindola@google.com> | |
573 | ||
574 | * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES): | |
575 | Update the location of common.c. | |
576 | * Makefile.in: Regenerate. | |
577 | * common.c: Moved to gcc/lto. | |
578 | * common.h: Moved to gcc/lto. | |
579 | * lto-plugin.c: Update the location of common.h. | |
580 | * lto-symtab.c: Update the location of common.h. | |
581 | ||
582 | 2008-09-23 Rafael Espindola <espindola@google.com> | |
583 | ||
584 | * common.c: Include common.h. | |
585 | (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit | |
586 | sizes. | |
587 | * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use | |
588 | explicit sizes. | |
589 | ||
590 | 2008-09-23 Rafael Espindola <espindola@google.com> | |
591 | ||
592 | * lto-plugin.c (plugin_file_info): Add temp. | |
593 | (cleanup_handler): Only delete temporary files. | |
594 | (claim_file_handler): Initialize lto_file.temp. | |
595 | ||
596 | 2008-09-23 Rafael Espindola <espindola@google.com> | |
597 | ||
598 | * plugin-api.h: Moved to include. | |
599 | ||
600 | 2008-09-23 Rafael Espindola <espindola@google.com> | |
601 | ||
602 | * lto-plugin.c (all_symbols_read_handler): Print resolution in a new | |
603 | format. | |
604 | ||
605 | 2008-09-22 Rafael Espindola <espindola@google.com> | |
606 | ||
607 | * plugin-api.h: Copy from binutils' cvs. | |
608 | ||
609 | 2008-09-22 Rafael Espindola <espindola@google.com> | |
610 | ||
611 | * lto-symtab.c (get_symbols, add_symbols): Update signature. | |
612 | * plugin-api.h: Copy from binutils' cvs. | |
613 | ||
614 | 2008-09-22 Rafael Espindola <espindola@google.com> | |
615 | ||
616 | * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): | |
617 | Make extern | |
618 | ||
619 | 2008-09-10 Rafael Espindola <espindola@google.com> | |
620 | ||
621 | * lto-plugin.c (onload): add missing break statements and asserts. | |
622 | * lto-symtab.c (claim_file_handler): Make it static. | |
623 | (all_symbols_read_handler): Make it static. | |
624 | (all_file_handles): Make it static. | |
625 | (num_file_handles): Make it static. | |
626 | (register_claim_file): Make it static. | |
627 | (register_object): Indent properly. | |
628 | ||
629 | 2008-09-10 Rafael Avila de Espindola <espindola@google.com> | |
630 | ||
631 | * Makefile.am (ltosymtab_LDADD): Add -lelf. | |
632 | * Makefiel.in: Regenerate. | |
633 | * lto-plugin.c: Include ar.h. | |
634 | (claim_file_handler): Handle file->offset != 0. | |
635 | * lto-symtab.c: Include gelf.h. | |
636 | (all_file_handles): Change type. | |
637 | (register_object): New. | |
638 | (register_file): Add support for archives. | |
639 | (resolve): Update to new type of all_file_handles. | |
640 | (print): Update to new type of all_file_handles. | |
641 | (free_all): Update to new type of all_file_handles. | |
642 | (main): Update to new type of all_file_handles. | |
643 | ||
644 | 2008-09-10 Rafael Avila de Espindola <espindola@google.com> | |
645 | ||
646 | * lto-plugin.c (get_string_table): Remove. | |
647 | (get_section): Use elf_strptr instead of get_string_table. | |
648 | ||
649 | 2008-09-08 Doug Kwan <dougkwan@google.com> | |
650 | ||
651 | * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments | |
652 | to 64-bit to fix a 32-bit bootstrap failure due to format warnings. | |
653 | ||
654 | 2008-09-08 Rafael Avila de Espindola <espindola@google.com> | |
655 | ||
656 | * Makefile.am (ltosymtab_SOURCES): add common.c. | |
657 | (ltosymtab_CFLAGS): New. | |
658 | (liblto_plugin_la_SOURCES): Add common.c. | |
659 | * Makefile.in: Regenerate. | |
660 | * common.c: New. | |
661 | * common.h: New. | |
662 | * lto-plugin.c: Include stdio.h, inttypes.h and common.h. | |
663 | (plugin_symtab): New. | |
664 | (plugin_file_info): New. | |
665 | (register_all_symbols_read): New. | |
666 | (get_symbols): New. | |
667 | (claimed_files): New. | |
668 | (num_claimed_files): New. | |
669 | (translate): Don't drop the slot number. | |
670 | (free_1): New. | |
671 | (free_2): New. | |
672 | (all_symbols_read_handler): New. | |
673 | (claim_file_handler): Record every claimed file. | |
674 | (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and | |
675 | LDPT_GET_SYMBOLS. | |
676 | * lto-symtab.c: Include stdlib.h, string.h and common.h. | |
677 | (current_file_handle): Remove. | |
678 | (ld_plugin_all_symbols_read_handler): New. | |
679 | (plugin_handle): New. | |
680 | (file_handle): New. | |
681 | (all_file_handles): New. | |
682 | (num_file_handles): New. | |
683 | (get_symbols): New. | |
684 | (register_all_symbols_read): New. | |
685 | (add_symbols): Don't print the symbols, just record them. | |
686 | (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and | |
687 | LDPT_GET_SYMBOLS. | |
688 | (load_plugin): Use plugin_handle. | |
689 | (register_file): Add the file handle to all_file_handles. | |
690 | (resolve): New. | |
691 | (print): New. | |
692 | (unload_plugin): New. | |
693 | (free_all): New. | |
694 | (main): Call all_symbols_read_handler and free resources. | |
695 | ||
696 | 2008-09-03 Rafael Avila de Espindola <espindola@google.com> | |
697 | ||
698 | * Makefile.am (AM_CFLAGS): New. | |
699 | (ltosymtab_LDADD): Remove -lelf. Add -ldl. | |
700 | (lib_LTLIBRARIES): New. | |
701 | (liblto_plugin_la_SOURCES): New. | |
702 | (liblto_plugin_la_LIBADD): New. | |
703 | * Makefile.in: Regenerate. | |
704 | * acinclude.m4: Don't include ../config/acx.m4 and | |
705 | ../config/no-executables.m4. | |
706 | Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and | |
707 | ../libtool.m4. | |
708 | * aclocal.m4: Regenerate. | |
709 | * configure: Regenerate. | |
710 | * configure.ac: Use AM_PROG_LIBTOOL. | |
711 | * lto-plugin.c: New. | |
712 | * lto-symtab.c: Rewrite to use the plugin. | |
713 | * plugin-api.h: New. | |
714 | ||
715 | 2008-08-25 Rafael Avila de Espindola <espindola@google.com> | |
716 | ||
717 | * configure: Regenerate. | |
718 | * configure.ac: Use AC_CHECK_GELF. | |
719 | * lto-symtab.c: Include gelf.h. | |
720 | (get_string_table): Use size independent API. | |
721 | (printTable): Use lld to print 64 bit integers. | |
722 | ||
723 | 2008-08-22 Rafael Avila de Espindola <espindola@google.com> | |
724 | ||
725 | * lto-symtab.c (parse_table_entry): Assert entry->kind and | |
726 | entry->visibility are valid. | |
727 | ||
728 | 2008-07-22 Rafael Avila de Espindola <espindola@google.com> | |
729 | * lto-symtab.c (table_entry): Add comdat. | |
730 | (parse_table_entry): Read comdat. | |
731 | ||
732 | 2008-08-21 Rafael Espindola <espindola@google.com> | |
733 | ||
734 | * Makefile.am: New. | |
735 | * Makefile.in: New. | |
736 | * acinclude.m4: New. | |
737 | * aclocal.m4: New. | |
738 | * configure: New. | |
739 | * configure.ac: New. | |
740 | * lto-symtab.c: New. |