comparison lto-plugin/ChangeLog @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents
children b7f97abdc517
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR bootstrap/42306
4 * configure: Regenerated.
5 * Makefile.in: Likewise.
6
7 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
8
9 PR bootstrap/42096
10 * lto-plugin.c (claim_file_handler): Print offsets in hex.
11
12 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
13
14 * lto-plugin.c (write_resolution): Assume resolution_file is set.
15 Print the symbol name.
16 (all_symbols_read_handler): Create a resolution file.
17 Pass it to gcc.
18 (cleanup_handler): Remove the resolution file.
19 (process_option): Drop the -resolution option.
20
21 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
22
23 * lto-plugin.c (temp_obj_dir_name): Remove.
24 (arguments_file_name): New.
25 (free_2): Free arguments_file_name instead of temp_obj_dir_name.
26 (exec_lto_wrapper): Create arguments file with make_temp_file.
27 (cleanup_handler): Don't remove the temporary directory. Remove the
28 arguments file.
29 (onload): Don't create the temporary directory.
30
31 2009-11-04 Richard Guenther <rguenther@suse.de>
32 Rafael Avila de Espindola <espindola@google.com>
33
34 * lto-plugin.c (plugin_file_info): Remove temp field.
35 (cleanup_handler): Don't delete temporary objects.
36 (claim_file_handler): Don't create temporary objects.
37
38 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
39
40 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
41
42 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
43
44 PR41871
45 * lto-plugin.c (claim_file_handler): Close files that we created.
46
47 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
48
49 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
50 LDPL_ERROR
51
52 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
53
54 PR lto/41652
55 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
56 * configure: Regenerate.
57
58 2009-10-26 Richard Guenther <rguenther@suse.de>
59
60 * configure.ac: Use AM_MAINTAINER_MODE.
61 * acinclude.m4: Remove.
62 * configure: Re-generate.
63 * Makefile.in: Likewise.
64 * aclocal.m4: Likewise.
65
66 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
67
68 PR40790
69 * configure: Regenerate.
70 * configure.ac: Add AC_TYPE_UINT64_T.
71
72 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
73
74 * lto-plugin.c (message): New variable.
75 (check): New function.
76 (parse_table_entry, translate, write_resolution,add_output_files,
77 exec_lto_wrapper,claim_file_handler, onload): Use check instead of
78 assert.
79 (cleanup_handler): Use check instead of assert. Remove the arguments
80 file if it exists.
81
82 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
83
84 * lto-plugin.c (resolution_file): New.
85 (free_1): Update comment.
86 (free_2): Free resolution_file.
87 (write_resolution): Write resolution to specified file. Use the
88 syms array from the symbol table.
89 (all_symbols_read_handler): Delay call to free_1 past call to
90 write_resolution.
91 (process_option): Add a -resolution option.
92
93 2009-10-13 Richard Guenther <rguenther@suse.de>
94
95 * Makefile.am (liblto_plugin_la_LIBADD): Link against the
96 correct libiberty.
97 * Makefile.in: Regenerated.
98
99 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
100
101 * lto-plugin.c (add_input_library): New.
102 (all_symbols_read_handler): Use add_input_library for items that
103 start with -l.
104 (process_option): Fit in 80 columns.
105 (onload): Handle LDPT_ADD_INPUT_LIBRARY.
106
107 2009-10-02 Diego Novillo <dnovillo@google.com>
108
109 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
110 and -D_FILE_OFFSET_BITS=64.
111 * configure.ac: Add AC_SYS_LARGEFILE.
112 * configure: Regenerate.
113 * Makefile.in: Regenerate.
114 * lto-plugin.c: Fix copyright boilerplate.
115
116 2009-10-02 Diego Novillo <dnovillo@google.com>
117
118 * Makefile.am (ACLOCAL_AMFLAGS): Define.
119 * aclocal.m4: Regenerate with aclocal-2.64
120 * acinclude.m4: Remove.
121 * Makefile.in: Regenerate with automake-1.11
122 * configure.ac (AC_PREREQ): Update to 2.64.
123 * configure: Regenerate.
124
125 2009-10-02 Diego Novillo <dnovillo@google.com>
126
127 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
128 and -D_FILE_OFFSET_BITS=64.
129 * configure.ac: Add AC_SYS_LARGEFILE.
130 * configure: Regenerate.
131 * Makefile.in: Regenerate.
132 * lto-plugin.c: Fix copyright boilerplate.
133
134 2009-10-02 Diego Novillo <dnovillo@google.com>
135
136 * Makefile.am (ACLOCAL_AMFLAGS): Define.
137 * aclocal.m4: Regenerate with aclocal-2.64
138 * acinclude.m4: Remove.
139 * Makefile.in: Regenerate with automake-1.11
140 * configure.ac (AC_PREREQ): Update to 2.64.
141 * configure: Regenerate.
142
143 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
144
145 * Makefile.am (liblto_plugin_la_SOURCES): Remove
146 $(top_srcdir)/../gcc/lto/common.c
147 * Makefile.in: Regenerate.
148
149 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
150
151 * lto-plugin.c (pass_through_items): New.
152 (num_pass_through_items): New.
153 (all_symbols_read_handler): Update to use the -pass-through option.
154 (process_option): Replace -libgcc with -pass-through.
155
156 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
157
158 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
159 register_cleanup to be set.
160
161 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
162
163 * Makefile.am: Remove all reference to ltosymtab.
164 * Makefile.in: Regenerate.
165 * lto-symtab.c: Remove.
166
167 2009-05-21 Diego Novillo <dnovillo@google.com>
168
169 * configure.ac: Remove call to AC_CHECK_GELF.
170 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
171 * acinclude.m4: Do not include ../config/libelf.m4
172 * Makefile.am (LIBELFLIBS): Define.
173 (LIBELFINC): Define.
174 (AM_CPPFLAGS): Add $(LIBELFINC).
175 (ltosymtab_LDADD): Add $(LIBELFLIBS).
176 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
177 * lto-plugin.c: Always include <gelf.h>
178 * lto-symtab.c: Likewise.
179 * configure: Regenerate.
180 * Makefile.in: Regenerate.
181
182 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
183
184 * lto-plugin.c (libgcc_filename): New.
185 (all_symbols_read_handler): Pass libgcc to the linker.
186 (all_symbols_read_handler): Parse -libgcc
187
188 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
189
190 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
191 * Makefile.in: Regenerate.
192 * lto-plugin.c (add_output_files): Argument is now a FILE.
193 (exec_lto_wrapper): Use writeargv and pex.
194
195 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
196
197 Revert:
198 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
199 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
200
201
202 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
203
204 * lto-plugin.c (exec_lto_wrapper): Use writeargv.
205
206 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
207
208 * lto-plugin.c: Include libiberty.h.
209 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
210 snprintf.
211
212 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
213
214 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
215 file to lto-wrapper.
216
217 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
218
219 * lto-plugin.c (plugin_file_info): Remove fd and elf.
220 (parse_table_entry): strdup entry->name and entry->comdat_key.
221 (free_1): Free name and comdat_key. Don't close the file. Don't call
222 elf_end.
223 (claim_file_handler): Always call elf_end.
224
225 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
226
227 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
228 -D_FILE_OFFSET_BITS=64
229 * Makefile.in: Regenerate
230
231 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
232
233 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
234 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
235 * Makefile.in: Regenerate.
236 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
237 * configure: Regenerate.
238 * configure.ac: Add AC_SUBST(target_noncanonical).
239
240 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
241
242 * lto-plugin.c: Include stdbool.h.
243 (debug, nop): Declare as bool.
244
245 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
246
247 * lto-plugin.c (nop): New.
248 (use_original_files): New.
249 (all_symbols_read_handler): Call use_original_files if nop is true.
250 (process_option): Parse the -nop option.
251
252 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
253
254 * lto-plugin.c (debug): New.
255 (exec_lto_wrapper): Print argv if debug is true.
256 (process_option): Process the -debug command line option.
257
258 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
259
260 * lto-plugin.c (process_option): The argument is now a single option,
261 not a space separated list.
262
263 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
264
265 * lto-plugin.c: Include sys/types.h and sys/wait.h
266 (output_files, num_output_files, lto_wrapper_argv,
267 lto_wrapper_num_args): New.
268 (free_2): Free output_files.
269 (write_resolution): Disable.
270 (add_output_files): New.
271 (exec_lto_wrapper): New.
272 (all_symbols_read_handler): Run lto-wrapper.
273 (claim_file_handler): Free lto_file.name and call elf_end.
274 (process_option): New.
275
276 2008-11-26 Rafael Espindola <espindola@google.com>
277
278 * lto-plugin.c (add_input_file): New.
279 (get_section): Return NULL if get_section fails.
280 (write_resolution): New.
281 (all_symbols_read_handler): Call add_input_file.
282 (claim_file_handler): Unlink the correct file.
283 (onload): Record add_input_file.
284
285 2008-09-23 Rafael Espindola <espindola@google.com>
286
287 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
288 Update the location of common.c.
289 * Makefile.in: Regenerate.
290 * common.c: Moved to gcc/lto.
291 * common.h: Moved to gcc/lto.
292 * lto-plugin.c: Update the location of common.h.
293 * lto-symtab.c: Update the location of common.h.
294
295 2008-09-23 Rafael Espindola <espindola@google.com>
296
297 * common.c: Include common.h.
298 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
299 sizes.
300 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
301 explicit sizes.
302
303 2008-09-23 Rafael Espindola <espindola@google.com>
304
305 * lto-plugin.c (plugin_file_info): Add temp.
306 (cleanup_handler): Only delete temporary files.
307 (claim_file_handler): Initialize lto_file.temp.
308
309 2008-09-23 Rafael Espindola <espindola@google.com>
310
311 * plugin-api.h: Moved to include.
312
313 2008-09-23 Rafael Espindola <espindola@google.com>
314
315 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
316 format.
317
318 2008-09-22 Rafael Espindola <espindola@google.com>
319
320 * plugin-api.h: Copy from binutils' cvs.
321
322 2008-09-22 Rafael Espindola <espindola@google.com>
323
324 * lto-symtab.c (get_symbols, add_symbols): Update signature.
325 * plugin-api.h: Copy from binutils' cvs.
326
327 2008-09-22 Rafael Espindola <espindola@google.com>
328
329 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
330 Make extern
331
332 2008-09-10 Rafael Espindola <espindola@google.com>
333
334 * lto-plugin.c (onload): add missing break statements and asserts.
335 * lto-symtab.c (claim_file_handler): Make it static.
336 (all_symbols_read_handler): Make it static.
337 (all_file_handles): Make it static.
338 (num_file_handles): Make it static.
339 (register_claim_file): Make it static.
340 (register_object): Indent properly.
341
342 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
343
344 * Makefile.am (ltosymtab_LDADD): Add -lelf.
345 * Makefiel.in: Regenerate.
346 * lto-plugin.c: Include ar.h.
347 (claim_file_handler): Handle file->offset != 0.
348 * lto-symtab.c: Include gelf.h.
349 (all_file_handles): Change type.
350 (register_object): New.
351 (register_file): Add support for archives.
352 (resolve): Update to new type of all_file_handles.
353 (print): Update to new type of all_file_handles.
354 (free_all): Update to new type of all_file_handles.
355 (main): Update to new type of all_file_handles.
356
357 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
358
359 * lto-plugin.c (get_string_table): Remove.
360 (get_section): Use elf_strptr instead of get_string_table.
361
362 2008-09-08 Doug Kwan <dougkwan@google.com>
363
364 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
365 to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
366
367 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
368
369 * Makefile.am (ltosymtab_SOURCES): add common.c.
370 (ltosymtab_CFLAGS): New.
371 (liblto_plugin_la_SOURCES): Add common.c.
372 * Makefile.in: Regenerate.
373 * common.c: New.
374 * common.h: New.
375 * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
376 (plugin_symtab): New.
377 (plugin_file_info): New.
378 (register_all_symbols_read): New.
379 (get_symbols): New.
380 (claimed_files): New.
381 (num_claimed_files): New.
382 (translate): Don't drop the slot number.
383 (free_1): New.
384 (free_2): New.
385 (all_symbols_read_handler): New.
386 (claim_file_handler): Record every claimed file.
387 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
388 LDPT_GET_SYMBOLS.
389 * lto-symtab.c: Include stdlib.h, string.h and common.h.
390 (current_file_handle): Remove.
391 (ld_plugin_all_symbols_read_handler): New.
392 (plugin_handle): New.
393 (file_handle): New.
394 (all_file_handles): New.
395 (num_file_handles): New.
396 (get_symbols): New.
397 (register_all_symbols_read): New.
398 (add_symbols): Don't print the symbols, just record them.
399 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
400 LDPT_GET_SYMBOLS.
401 (load_plugin): Use plugin_handle.
402 (register_file): Add the file handle to all_file_handles.
403 (resolve): New.
404 (print): New.
405 (unload_plugin): New.
406 (free_all): New.
407 (main): Call all_symbols_read_handler and free resources.
408
409 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
410
411 * Makefile.am (AM_CFLAGS): New.
412 (ltosymtab_LDADD): Remove -lelf. Add -ldl.
413 (lib_LTLIBRARIES): New.
414 (liblto_plugin_la_SOURCES): New.
415 (liblto_plugin_la_LIBADD): New.
416 * Makefile.in: Regenerate.
417 * acinclude.m4: Don't include ../config/acx.m4 and
418 ../config/no-executables.m4.
419 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
420 ../libtool.m4.
421 * aclocal.m4: Regenerate.
422 * configure: Regenerate.
423 * configure.ac: Use AM_PROG_LIBTOOL.
424 * lto-plugin.c: New.
425 * lto-symtab.c: Rewrite to use the plugin.
426 * plugin-api.h: New.
427
428 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
429
430 * configure: Regenerate.
431 * configure.ac: Use AC_CHECK_GELF.
432 * lto-symtab.c: Include gelf.h.
433 (get_string_table): Use size independent API.
434 (printTable): Use lld to print 64 bit integers.
435
436 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
437
438 * lto-symtab.c (parse_table_entry): Assert entry->kind and
439 entry->visibility are valid.
440
441 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
442 * lto-symtab.c (table_entry): Add comdat.
443 (parse_table_entry): Read comdat.
444
445 2008-08-21 Rafael Espindola <espindola@google.com>
446
447 * Makefile.am: New.
448 * Makefile.in: New.
449 * acinclude.m4: New.
450 * aclocal.m4: New.
451 * configure: New.
452 * configure.ac: New.
453 * lto-symtab.c: New.