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