]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/lto/ChangeLog
Prevent all uses of DFP when unsupported (PR c/91985).
[thirdparty/gcc.git] / gcc / lto / ChangeLog
1 2019-11-25 Joseph Myers <joseph@codesourcery.com>
2
3 PR c/91985
4 * lto-lang.c (lto_type_for_mode): Handle decimal floating-point
5 types being NULL_TREE.
6
7 2019-11-22 Jan Hubicka <jh@suse.cz>
8
9 * lto.c (lto_wpa_write_files): Call memory_block_pool::trim.
10
11 2019-11-14 Martin Liska <mliska@suse.cz>
12
13 * Make-lang.in: Remove wrong dependency
14 of LTO_DUMP_EXE on LTO_EXE.
15
16 2019-11-12 Martin Liska <mliska@suse.cz>
17
18 * lto-common.c: Do not include params.h.
19 * lto-partition.c: Likewise.
20 * lto.c: Likewise.
21
22 2019-11-12 Martin Liska <mliska@suse.cz>
23
24 * lto-partition.c (lto_balanced_map): Replace old parameter syntax
25 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
26 macro.
27 * lto.c (do_whole_program_analysis): Likewise.
28
29 2019-11-11 Martin Liska <mliska@suse.cz>
30
31 * Make-lang.in: Relax dependency of lto-dump.o to
32 LTO_OBJS which will allow faster linking (mainly with LTO).
33
34 2019-11-07 Jan Hubicka <hubicka@ucw.cz>
35
36 * lto.c (do_whole_program_analysis): Call lto_free_file_name_hash.
37
38 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
39
40 * lto-common.c (read_cgraph_and_symbols): Improve -Q reporting.
41 * lto.c (lto_wpa_write_files): Likewise.
42
43 2019-10-31 Jakub Jelinek <jakub@redhat.com>
44
45 PR middle-end/92231
46 * lto-lang.c (handle_const_attribute): Don't call fndecl_built_in_p
47 on *node that is not FUNCTION_DECL.
48
49 2019-10-30 Martin Liska <mliska@suse.cz>
50
51 PR lto/91393
52 PR lto/88220
53 * lto-common.c (lto_file_finalize): Use lto_get_summary_section_data.
54 (get_section_data): Add order argument.
55
56 2019-10-29 Martin Liska <mliska@suse.cz>
57
58 * lto.c (do_whole_program_analysis): Pass
59 title as dump_memory_report argument.
60
61 2019-10-29 Martin Liska <mliska@suse.cz>
62
63 * lto.c (do_whole_program_analysis): Remove argument.
64
65 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
66
67 * lto-partition.c (add_symbol_to_partition_1): Update.
68 (undo_parittion): Update.
69
70 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
71
72 * lto-common.c (lto_file_finalize): Add order attribute.
73 (lto_create_files_from_ids): Pass order.
74 (lto_file_read): UPdate call of lto_create_files_from_ids.
75
76 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
77
78 * lto-common.c (read_cgraph_and_symbols): Grow ggc memory use after
79 summary streaming.
80
81 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
82
83 * lto.c (lto_wpa_write_files): Do not update bodies of clones.
84
85 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
86
87 * lto.c (lto_wpa_write_files): Call ggc_trim.
88
89 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
90
91 * lto.c (lto_wpa_write_files): Prepare all bodies for streaming.
92
93 2019-10-10 Richard Biener <rguenther@suse.de>
94
95 * lto-common.c (unify_scc): Do not merge anonymous NAMESPACE_DECLs.
96
97 2019-10-04 Joseph Myers <joseph@codesourcery.com>
98
99 * lto-lang.c (flag_isoc2x): New variable.
100
101 2019-09-18 Richard Biener <rguenther@suse.de>
102
103 PR lto/91763
104 * lto.c (lto_materialize_function): Initialize EH by looking
105 at the function personality and flag_exceptions setting.
106
107 2019-08-23 Jakub Jelinek <jakub@redhat.com>
108
109 PR middle-end/91283
110 * lto-lang.c (lto_post_options): Set flag_excess_precision instead of
111 flag_excess_precision_cmdline. Remove comment.
112
113 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
114
115 PR middle-end/91421
116 * lto-common.c (compare_tree_sccs_1): Use DECL_UNCHECKED_FUNCTION_CODE
117 instead of DECL_FUNCTION_CODE.
118 * lto-symtab.c (lto_symtab_merge_p): Likewise.
119
120 2019-08-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
121
122 * Make-lang.in (lto.install-common): Remove unnecessary slash
123 between $(DESTDIR) and $(bindir).
124
125 2019-07-25 Martin Liska <mliska@suse.cz>
126
127 * lto-common.c (compare_tree_sccs_1): Use new macros
128 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
129
130 2019-07-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
131
132 * lang.opt (flag_dump_callgraph): New flag.
133 * lto-dump.c (dump_symtab_graphviz): New function.
134 (dump_tool_help): New option.
135 (lto_main): Handle graphviz dumping.
136
137 2019-07-18 Jan Hubicka <hubicka@ucw.cz>
138
139 * lto-common.c (gimple_register_canonical_type_1): Do not look for
140 non-ODR conflicts of types in anonymous namespaces.
141 (unify_scc): Do not merge anonymous namespace types.
142
143 2019-07-09 Martin Sebor <msebor@redhat.com>
144
145 PR c++/61339
146 * lto-common.c (lto_splay_tree_new): : Change class-key of PODs
147 to struct and others to class.
148 (mentions_vars_p): Same.
149 (register_resolution): Same.
150 (lto_register_var_decl_in_symtab): Same.
151 (lto_register_function_decl_in_symtab): Same.
152 (cmp_tree): Same.
153 (lto_read_decls): Same.
154
155 2019-07-09 Martin Sebor <msebor@redhat.com>
156
157 PR c++/61339
158 * lto-dump.c: Change class-key from class to struct and vice versa
159 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
160
161 2019-07-04 Martin Liska <mliska@suse.cz>
162
163 PR lto/91078
164 * lto-common.c (lto_file_finalize): Use memcpy to set
165 file_data->lto_section_header.
166
167 2019-07-03 Martin Liska <mliska@suse.cz>
168
169 * lto-common.c: Read LTO section and verify header.
170
171 2019-06-27 Jan Hubicka <jh@suse.cz>
172
173 * lto-common.c (lto_register_canonical_types_for_odr_types):
174 Copy CXX_ODR_P from the main variant.
175
176 2019-06-27 Jan Hubicka <jh@suse.cz>
177
178 * lto-common.c: tree-pretty-print.h
179 (type_streaming_finished): New static var.
180 (gimple_register_canonical_type_1): Return updated hash; handle ODR
181 types.
182 (iterative_hash_canonical_type): Update use of
183 gimple_register_canonical_type_1.
184
185 2019-06-27 Martin Liska <mliska@suse.cz>
186
187 * lto-dump.c (struct symbol_entry): Add default dtor.
188 (struct variable_entry): Likewise.
189 (struct function_entry): Likewise.
190 (dump_list_functions): Release memory.
191 (dump_list_variables): Likewise.
192
193 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
194
195 * lto-lang.c (lto_build_c_type_nodes): Accept "__intN__"
196 format of "__intN" types for SIZE_TYPE.
197
198 2019-06-24 Jan Hubicka <jh@suse.cz>
199
200 * lto-common.c (compare_tree_sccs_1): Compare CXX_ODR_P;
201 compare STRING_FLAG only for arrays and integers.
202
203 2019-06-05 Martin Sebor <msebor@redhat.com>
204
205 * lto-common.c (lto_file_finalize): Adjust quoting and hyphenation.
206
207 2019-05-16 Martin Sebor <msebor@redhat.com>
208
209 * lto-dump.c (lto_main): Same.
210 * lto.c (stream_out): Same.
211
212 2019-05-10 Martin Liska <mliska@suse.cz>
213
214 * Make-lang.in: Use program_transform_name for lto-dump.
215 * config-lang.in: Do not mark lto-dump compiler as we don't
216 want to have it installed at
217 lib/gcc/x86_64-pc-linux-gnu/10.0.0/lto-dump.
218
219 2019-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220
221 * lto-common.c (lto_file_read): Print section->start as int64_t,
222 section->len as uint64_t.
223 * lto-dump.c (symbol_entry::dump): Print sz as uint64_t.
224
225 2019-05-06 Martin Liska <mliska@suse.cz>
226
227 * lto-common.c: Update coding style.
228 * lto.c (materialize_cgraph): Likewise.
229
230 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
231 Martin Liska <mliska@suse.cz>
232
233 * Make-lang.in: Add lto_dump-related definition.
234 * config-lang.in: Likewise.
235 * lang.opt: Add new language LTODump and options related
236 to LTO dump tool.
237 * lto-common.c (lto_read_decls): Support type statistics dump.
238 (lto_file_read): Likewise for object files.
239 * lto-dump.c: New file.
240 * lto-lang.c (lto_option_lang_mask): Move from ..
241 * lto.c (lto_option_lang_mask): .. here.
242 * lto.h (lto_option_lang_mask): New declaration.
243
244 2019-05-06 Martin Liska <mliska@suse.cz>
245 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
246
247 * Make-lang.in: Add lto-common.o.
248 * config-lang.in: Likewise for gtfiles.
249 * lto-common.c: New file.
250 * lto-common.h: New file.
251 * lto-lang.c: Include lto-common.h.
252 * lto.c: Move most of the functionality
253 into lto-common.c file.
254
255 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
256
257 * lto.c (do_stream_out): rename to ...
258 (stream_out): ... this one; move original code to ...
259 (stream_out_partitions_1, stream_out_partitions): ... these new
260 functions.
261 (lto_wpa_write_files): Honnor lto_parallelism
262
263 2019-03-26 Martin Liska <mliska@suse.cz>
264
265 * lto-symtab.c (lto_symtab_merge_decls_2): Fix option name
266 wrapping.
267
268 2019-03-11 Martin Liska <mliska@suse.cz>
269
270 * lto-lang.c (lto_post_options): Wrap an option name
271 in a string format message and fix GNU coding style.
272 * lto-symtab.c (lto_symtab_merge_decls_2): Likewise.
273
274 2019-03-09 Jakub Jelinek <jakub@redhat.com>
275
276 PR target/79645
277 * lang.opt: Terminate description text with a dot.
278
279 2019-02-28 Jason Merrill <jason@redhat.com>
280
281 PR c++/88049 - ICE with undefined destructor and anon namespace.
282 * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Return early
283 for a type in an anonymous namespace.
284
285 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
286
287 PR other/16615
288
289 * lto-partition.c: Mechanically replace "can not" with "cannot".
290 * lto-symtab.c: Likewise.
291 * lto.c: Likewise.
292
293 2019-01-01 Jakub Jelinek <jakub@redhat.com>
294
295 Update copyright years.
296
297 2018-12-24 Jan Hubicka <hubicka@ucw.cz>
298
299 * lto-symtab.c (lto_symtab_merge_decls_2): Do not report ODR violations
300 for method whose basetype was already reported.
301
302 2018-11-30 Michael Ploujnikov <michael.ploujnikov@oracle.com>
303
304 Minimize clone counter memory usage in LTO.
305 * lto-partition.c (privatize_symbol_name_1): Keep track of
306 non-unique symbol counters in the lto_clone_numbers hash
307 map.
308 (lto_promote_cross_file_statics): Allocate and free the
309 lto_clone_numbers hash map.
310 (lto_promote_statics_nonwpa): Free the lto_clone_numbers hash
311 map.
312
313 2018-11-28 Jan Hubicka <jh@suse.cz>
314
315 * lto.c (lto_read_decls): Fix handling of INTEGER_CST.
316
317 2018-11-22 Jan Hubicka <jh@suse.cz>
318
319 * lto.c (cmp_type_location): Remove.
320 (lto_read_decls): Do not allocate odr_types.
321
322 2018-11-19 Martin Liska <mliska@suse.cz>
323
324 PR lto/88077
325 * lto-symtab.c (lto_symtab_merge): Transform the
326 condition before r256989.
327
328 2018-11-16 Martin Liska <mliska@suse.cz>
329
330 PR lto/88004
331 * lto-symtab.c (lto_symtab_merge_symbols_1): Do not call
332 lto_symtab_symbol_p as it does checking of transparent alias.
333 These needs to be also merged in the function.
334
335 2018-10-30 Michael Ploujnikov <michael.ploujnikov@oracle.com>
336
337 * lto-partition.c (privatize_symbol_name_1): Use
338 clone_function_name_numbered.
339
340 2018-10-26 Jan Hubicka <jh@suse.cz>
341
342 * lto-symtab.c (lto_symtab_merge_decls_2): Fix extra space.
343
344 2018-10-17 David Malcolm <dmalcolm@redhat.com>
345
346 * Make-lang.in (selftest-lto): New.
347
348 2018-08-29 Martin Liska <mliska@suse.cz>
349
350 PR bootstrap/87130
351 * lto.c (read_cgraph_and_symbols): Fix thinko, revert
352 to behavior before r263887.
353
354 2018-08-27 Martin Liska <mliska@suse.cz>
355
356 * lto-lang.c (handle_const_attribute): Use new function
357 fndecl_built_in_p and remove check for FUNCTION_DECL if
358 possible.
359 * lto-symtab.c (lto_symtab_merge_p): Likewise.
360 (lto_symtab_merge_decls_1): Likewise.
361 (lto_symtab_merge_symbols): Likewise.
362 * lto.c (lto_maybe_register_decl): Likewise.
363 (read_cgraph_and_symbols): Likewise.
364
365 2018-08-21 Tom de Vries <tdevries@suse.de>
366
367 * lto.c (lto_main): Call debuginfo_early_start and
368 debuginfo_early_stop.
369
370 2018-07-20 Martin Sebor <msebor@redhat.com>
371
372 PR middle-end/82063
373 * lto-lang.c (lto_handle_option): Change function argument
374 to HOST_WIDE_INT.
375
376 2018-07-20 Richard Biener <rguenther@suse.de>
377
378 PR debug/86585
379 * lto.c (unify_scc): Before we throw away an SCC see if we
380 can amend prevailing single-entry SCC with debug refs.
381
382 2018-07-13 Jan Hubicka <hubicka@ucw.cz>
383
384 * lto.c (do_stream_out): Add PART parameter; open dump file.
385 (stream_out): Add PART parameter; pass it to do_stream_out.
386 (lto_wpa_write_files): Update call of stream_out.
387
388 2018-07-04 Martin Liska <mliska@suse.cz>
389
390 PR middle-end/66240
391 PR target/45996
392 PR c/84100
393 * lto.c (compare_tree_sccs_1): Use cl_optimization_option_eq
394 instead of memcmp.
395
396 2018-06-20 Martin Liska <mliska@suse.cz>
397
398 * lto-symtab.c (lto_symtab_merge_p): Remove not valid
399 FIXME comment.
400
401 2018-06-19 Martin Liska <mliska@suse.cz>
402
403 * lto-partition.c (add_symbol_to_partition_1): Use symbol_summary::get instead
404 of get_create.
405 (undo_partition): Likewise.
406 (lto_balanced_map): Likewise.
407
408 2018-06-19 Martin Liska <mliska@suse.cz>
409
410 * config-lang.in: Remove stagestuff.
411
412 2018-06-08 Jan Hubicka <hubicka@ucw.cz>
413
414 * lto-lang.c (lto_link_dump_id, decl_merge_dump_id, partition_dump_id):
415 New global vars.
416 (lto_register_dumps): New hook.
417 (LANG_HOOKS_REGISTER_DUMPS): New.
418 * lto-partition.c: Dump into dump_file instead of symtab->dump_file.
419 * lto-symtab.c: Include lto.h; dump into dump_file instead of
420 symtab->dump_file.
421 (lto_symtab_merge_decls): Initialize dump file.
422 * lto.c (read_cgraph_and_symbols): Initialize dump file.
423 (do_whole_program_analysis): Likewise.
424
425 2018-06-08 Martin Liska <mliska@suse.cz>
426
427 * lto-partition.c (lto_balanced_map): Use cgraph_node::uid
428 instead of summary_uid.
429
430 2018-06-08 Martin Liska <mliska@suse.cz>
431
432 * lto-partition.c (add_symbol_to_partition_1): Use get_create instead
433 of get.
434 (undo_partition): Likewise.
435 (lto_balanced_map): Likewise.
436
437 2018-06-08 Martin Liska <mliska@suse.cz>
438
439 * lto-partition.c (add_references_to_partition): Remove support
440 for MPX (macros, related functions, fields in cgraph_node, ...).
441 (add_symbol_to_partition_1): Likewise.
442 (privatize_symbol_name): Likewise.
443 * lto-symtab.c (lto_cgraph_replace_node): Likewise.
444
445 2018-06-05 Richard Biener <rguenther@suse.de>
446
447 * lto.c (cmp_type_location): Expand locations only once.
448
449 2018-05-30 Jan Hubicka <hubicka@ucw.cz>
450
451 * lang.opt (lto_linker_output): Add nolto-rel.
452 * lto-lang.c (lto_post_options): Handle LTO_LINKER_OUTPUT_REL
453 and LTO_LINKER_OUTPUT_NOLTOREL.
454 (lto_init): Generate lto when doing incremental link.
455 * lto.c (lto_precess_name): Add lto1-inclink.
456
457 2018-05-18 Jan Hubicka <jh@suse.cz>
458
459 PR lto/85583
460 * lto-partition.c (account_reference_p): Do not account
461 references from aliases; do not account refernces from
462 external initializers.
463
464 2018-04-30 Jan Hubicka <jh@suse.cz>
465
466 * lto.c (cmp_partitions_size): Remove.
467 (lto_wpa_write_files): Also output priorities; do not sort partitions.
468 (cmp_partition_order): Move to ...
469 * lto-partition.c (cmp_partition_order): ...
470 (lto_1_to_1_map): Sort partitions.
471
472 2018-04-20 Jan Hubicka <jh@suse.cz>
473
474 * lto-partition.c (lto_balanced_map): Fix sanity check.
475
476 2018-04-19 Jan Hubicka <jh@suse.cz>
477
478 * lto-partition.c: Include sreal.h
479 (add_symbol_to_partition_1): Use size instead of self_size
480 for size estimate.
481 (account_reference_p): New.
482 (lto_balanced_map): Use 64bit arithmetics for size calculatoins; cleanup;
483 fix accounting errors in boundary size; add debug output; combine cost
484 as cost/size instead of cost/internal; reduce the partitioning error to
485 +- 1/8 of the parttion size.
486
487 2018-04-19 Martin Liska <mliska@suse.cz>
488
489 * lto-symtab.c (lto_symtab_resolve_symbols): Do not bail out
490 for multiple PREVAILING_DEF_IRONLY for common symbols.
491
492 2018-04-18 Martin Liska <mliska@suse.cz>
493
494 * lto.c (lto_read_decls): Fix GNU coding style and typos.
495
496 2018-04-18 Martin Liska <mliska@suse.cz>
497
498 PR ipa/83983
499 PR ipa/85391
500 * lto.c (cmp_type_location): New function.
501 (lto_read_decls): First collect all types, then
502 sort them according by location before register_odr_type
503 is called.
504
505 2018-04-18 Jan Hubicka <jh@suse.cz>
506 Martin Liska <mliska@suse.cz>
507
508 PR lto/85391
509 * lto.c (lto_read_decls): Do not test TYPE_CANONICAL before registering odr
510 types.
511
512 2018-04-11 Martin Liska <mliska@suse.cz>
513
514 * lto-symtab.c (lto_symtab_merge_p): Use attribute_value_equal
515 function.
516
517 2018-04-10 Martin Liska <mliska@suse.cz>
518
519 PR lto/85248
520 * lto-symtab.c (lto_symtab_merge_p): Do not check for
521 TREE_VALUES of error attributes.
522
523 2018-04-10 Richard Biener <rguenther@suse.de>
524 Martin Liska <mliska@suse.cz>
525
526 PR lto/85248
527 * lto-symtab.c (lto_symtab_merge_p): Handle noreturn attribute.
528
529 2018-02-08 Jan Hubicka <hubicka@ucw.cz>
530
531 * lto-partition.c (lto_balanced_map): Watch overflow.
532
533 2018-02-08 Jan Hubicka <hubicka@ucw.cz>
534
535 PR ipa/81360
536 * lto.c (unify_scc): Register prevailing trees, not trees to be freed.
537 (read_cgraph_and_symbols): Use
538 symtab_node::output_to_lto_symbol_table_p.
539
540 2018-01-30 Jan Hubicka <hubicka@ucw.cz>
541
542 * lto.c (register_resolution): Remove forgotten sanity check.
543
544 2018-01-30 Jan Hubicka <hubicka@ucw.cz>
545
546 PR lto/81004
547 * lto.c: Include builtins.h
548 (register_resolution): Merge resolutions in case trees was
549 merged across units.
550 (lto_maybe_register_decl): Break out from ...
551 (lto_read_decls): ... here.
552 (unify_scc): Also register decls here.
553 (read_cgraph_and_symbols): Sanity check that all resolutions was
554 read.
555
556 2018-02-02 Eric Botcazou <ebotcazou@adacore.com>
557
558 PR lto/83954
559 * lto-symtab.c (warn_type_compatibility_p): Do not recurse into the
560 component type of array types with non-aliased component.
561
562 2018-01-30 Jan Hubicka <hubicka@ucw.cz>
563
564 PR lto/83954
565 * lto-symtab.c (warn_type_compatibility_p): Silence false positive
566 for type match warning on arrays of pointers.
567
568 2018-01-23 Martin Liska <mliska@suse.cz>
569
570 PR lto/81440
571 * lto-symtab.c (lto_symtab_merge): Handle and do not warn about
572 trailing arrays at the end of a struct.
573
574 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
575 Alan Hayward <alan.hayward@arm.com>
576 David Sherwood <david.sherwood@arm.com>
577
578 * lto-lang.c (lto_type_for_mode): Handle MODE_VECTOR_BOOL.
579
580 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
581 Alan Hayward <alan.hayward@arm.com>
582 David Sherwood <david.sherwood@arm.com>
583
584 * lto-lang.c (lto_type_for_mode): Check valid_vector_subparts_p.
585 * lto.c (hash_canonical_type): Handle polynomial TYPE_VECTOR_SUBPARTS.
586
587 2018-01-03 Jakub Jelinek <jakub@redhat.com>
588
589 Update copyright years.
590
591 2017-12-15 Jakub Jelinek <jakub@redhat.com>
592
593 * lto-lang.c (lto_attribute_table, lto_format_attribute_table): Swap
594 affects_type_identity and handler fields, adjust comments.
595
596 2017-12-07 Richard Sandiford <richard.sandiford@arm.com>
597
598 * lto.c (compare_tree_sccs_1): Compare the new VECTOR_CST flags.
599
600 2017-12-07 Martin Sebor <msebor@redhat.com>
601
602 PR c/81544
603 * lto-lang.c (lto_attribute_table): Initialize new member of struct
604 attribute_spec.
605
606 2017-11-30 Jakub Jelinek <jakub@redhat.com>
607
608 * lto.c (create_subid_section_table): Use ; instead of ;;.
609
610 2017-11-22 Marek Polacek <polacek@redhat.com>
611
612 PR c++/60336
613 PR middle-end/67239
614 PR target/68355
615 * lto.c (compare_tree_sccs_1): Compare TYPE_EMPTY_P and DECL_PADDING_P.
616
617 2017-11-10 Jan Hubicka <hubicka@ucw.cz>
618
619 * lto-partition.c (lto_balanced_map): Use frequency accessor.
620
621 2017-10-13 Jan Hubicka <hubicka@ucw.cz>
622
623 * lto-lang.c (lto_post_options): Clean shlib flag when not doing PIC.
624
625 2017-10-11 Nathan Sidwell <nathan@acm.org>
626
627 * lto.c (mentions_vars_p_decl_with_vis): Use
628 DECL_ASSEMBLER_NAME_RAW.
629 (lto_fixup_prevailing_decls): Likewise.
630
631 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
632
633 * lto.c (compare_tree_sccs_1): Use wi::to_wide when
634 operating on trees as wide_ints.
635
636 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
637 Alan Hayward <alan.hayward@arm.com>
638 David Sherwood <david.sherwood@arm.com>
639
640 * lto-lang.c (lto_type_for_mode): Use as_a <scalar_int_mode>.
641
642 2017-08-21 Richard Biener <rguenther@suse.de>
643
644 * lto.c (unify_scc): Truncate DIE reference queue for dropped SCCs.
645 (lto_read_decls): Process TRANSLATION_UNIT_DECLs. Remove
646 TYPE_DECL debug processing, register DIE references from
647 prevailing SCCs with the debug machinery.
648 (lto_section_with_id): Handle LTO debug sections.
649
650 2017-08-16 Nathan Sidwell <nathan@acm.org>
651
652 * lto.c (mentions_vars_p_type): Use TYPE_LANG_SLOT_1.
653 (compare_tree_sccs_1): No need to compare TYPE_BINFO directly.
654 (lto_fixup_prevailing_decls): Use TYPE_LANG_SLOT_1.
655
656 2017-08-08 Tom de Vries <tom@codesourcery.com>
657
658 * lto.c: Include attribs.h.
659
660 2017-08-08 Martin Liska <mliska@suse.cz>
661
662 * lto-lang.c: Include header files.
663 * lto-symtab.c: Likewise.
664
665 2017-08-03 Richard Biener <rguenther@suse.de>
666
667 * lto-symtab.h (lto_symtab_prevail_decl): Do not use
668 DECL_ABSTRACT_ORIGIN as flag we can end up using that. Instead
669 use DECL_LANG_FLAG_0.
670 (lto_symtab_prevail_decl): Likewise.
671
672 2017-07-07 Torsten Duwe <duwe@suse.de>
673
674 * lto-lang.c (lto_attribute_table): Add entry for
675 "patchable_function_entry".
676
677 2017-07-19 Nathan Sidwell <nathan@acm.org>
678
679 * lto.c (mentions_vars_p_type): Use TYPE_{MIN,MAX}_VALUE_RAW.
680 (compare_tree_sccs_1, lto_fixup_prevailing_decls): Likewise.
681
682 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
683
684 * lto-partition.c (lto_balanced_map): Do not check
685 flag_toplevel_reorder.
686
687 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
688 * lto-lang.c (lto_init): Use builtin_structptr_types.
689
690 2017-06-15 Jan Hubicka <hubicka@ucw.cz>
691 Thomas Preud'homme <thomas.preudhomme@arm.com>
692
693 PR lto/69866
694 * lto-symtab.c (lto_symtab_merge_symbols): Drop useless definitions
695 that resolved externally.
696
697 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
698
699 * lto.c (do_whole_program_analysis): Replace inline_free_summary
700 by ipa_free_fn_summary.
701
702 2017-05-23 Martin Liska <mliska@suse.cz>
703
704 * lto-symtab.c (lto_cgraph_replace_node): Use
705 symtab_node::dump_{asm_,}name functions.
706 * lto.c (read_cgraph_and_symbols): Likewise.
707 (do_whole_program_analysis): Likewise.
708
709 2017-05-23 Martin Liska <mliska@suse.cz>
710
711 * lto.c (read_cgraph_and_symbols): Use the renamed function.
712 (do_whole_program_analysis): Use the renamed function.
713
714 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
715
716 * lto.c: Replace ipa-inline.h by ipa-fnsummary.h
717 * lto-partition.c: Replace ipa-inline.h by ipa-fnsummary.h
718
719 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
720
721 PR c++/80038
722 * lto-lang.c (lto_init): Set in_lto_p earlier.
723
724 2017-04-12 Richard Biener <rguenther@suse.de>
725 Bernd Edlinger <bernd.edlinger@hotmail.de>
726
727 PR middle-end/79671
728 * lto.c (compare_tree_sccs_1): Compare TYPE_TYPELESS_STORAGE.
729
730 2017-02-14 Martin Liska <mliska@suse.cz>
731
732 * lto.c (do_stream_out): Free LTO file filename string.
733
734 2017-01-19 David Malcolm <dmalcolm@redhat.com>
735
736 * lto-lang.c (builtin_type_for_size): Convert call to
737 lto_type_for_size to one through the langhook.
738 (lto_type_for_size): Move to langhooks.c and rename to
739 lhd_type_for_size.
740 (LANG_HOOKS_TYPE_FOR_SIZE): Don't redefine.
741
742 2017-01-11 Jakub Jelinek <jakub@redhat.com>
743
744 PR middle-end/50199
745 * lto-lang.c (lto_post_options): Force flag_merge_constants = 1
746 if it was 0.
747
748 2017-01-09 Jakub Jelinek <jakub@redhat.com>
749
750 PR translation/79019
751 PR translation/79020
752 * lto-symtab.c (lto_symtab_merge_symbols): Fix comment typo.
753
754 2017-01-06 Nathan Sidwell <nathan@acm.org>
755
756 * lto-partition.c (promote_symbol): Write to dump file sooner,
757 include alias promoting too.
758
759 * lto-partition.c (lto_balanced_map): Reformat/respell comment.
760 (may_need_named_section_p): Likewise.
761 (rename_statics): Likewise.
762 (lto_promote_cross_file_statics): Likewise.
763
764 2017-01-01 Jakub Jelinek <jakub@redhat.com>
765
766 Update copyright years.
767
768 2016-11-30 Georg-Johann Lay <avr@gjlay.de>
769
770 PR lto/78562
771 * lto-symtab.c (lto_symtab_merge_decls_2): Don't diagnose type
772 mismatch if the two types are built-in.
773
774 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
775
776 * lto-lang.c (lto_init): Remove initialization of ptrdiff_type_node.
777
778 2016-11-23 Richard Biener <rguenther@suse.de>
779
780 PR lto/78472
781 * lto.c (hash_canonical_type): Ignore zero-sized fields.
782
783 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
784
785 PR c++/71973
786 * lto-lang.c (lto_init): Assert const_tm_ptr_type_node is sane.
787
788 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
789 Alan Hayward <alan.hayward@arm.com>
790 David Sherwood <david.sherwood@arm.com>
791
792 * lto.c (offload_handle_link_vars): Use SET_DECL_MODE.
793
794 2016-10-31 Richard Biener <rguenther@suse.de>
795
796 PR lto/78129
797 * lto.c (do_whole_program_analysis): Bail out after errors
798 from WPA analysis.
799
800 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
801
802 * lto-partition.c: Include tree-vrp.h.
803 * lto.c: Likewise.
804
805 2016-09-20 Richard Biener <rguenther@suse.de>
806
807 * lto.c (lto_main): Call early_finish with "<artificial>" as
808 filename.
809
810 2016-09-19 Richard Biener <rguenther@suse.de>
811
812 * lto.c (lto_main): Invoke early_finish debug hook.
813
814 2016-07-25 Richard Biener <rguenther@suse.de>
815
816 * lto.c (compare_tree_sccs_1): Remove streamer_handle_as_builtin_p uses.
817 (unify_scc): Likewise.
818 (lto_read_decls): Likewise.
819
820 2016-06-28 Jakub Jelinek <jakub@redhat.com>
821
822 * Make-lang.in: Don't cat ../stage_current if it does not exist.
823
824 2016-06-23 Andi Kleen <ak@linux.intel.com>
825
826 * Make-lang.in: Add support for autofdo (disabled for now)
827
828 2016-06-10 Martin Sebor <msebor@redhat.com>
829
830 PR c/71392
831 * lto-lang.c (handle_nonnull_attribute): Accept the nonnull
832 attribute in type-generic builtins.
833
834 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
835
836 * lto-partition.c (add_symbol_to_partition_1): Likewise.
837
838 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
839
840 * lto-symtab.c (lto_cgraph_replace_node): Initialize inline_failed.
841
842 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
843
844 * lto-partition.h (lto_balanced_map): New parameter.
845 * lto-partition.c (lto_balanced_map): New parameter
846 max_partition_size.
847 Check if partition size is greater than max_partition_size.
848 * lto.c (do_whole_program_analysis): Adjust calls to
849 lto_balanced_map() to pass 2nd argument.
850
851 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
852
853 PR lto/70258
854 * lto-lang.c (lto_post_options): Set flag_pic to flag_pie for
855 PIE.
856
857 2016-03-08 Jakub Jelinek <jakub@redhat.com>
858
859 * lto-symtab.h (lto_symtab_prevail_decl): Fix spelling
860 - becuase -> because.
861
862 2016-02-15 Tom de Vries <tom@codesourcery.com>
863
864 PR lto/69655
865 * lto.c (read_cgraph_and_symbols): Call input_offload_tables with
866 argument.
867
868 2016-01-27 Martin Liska <mliska@suse.cz>
869
870 * lto-partition.c (add_symbol_to_partition_1): Remove usage
871 of hsa_summaries.
872
873 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
874
875 PR lto/69136
876 * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Abstract
877 decls have no assemblernames.
878
879 2016-01-19 Martin Liska <mliska@suse.cz>
880 Martin Jambor <mjambor@suse.cz>
881
882 * lto-partition.c: Include "hsa.h"
883 (add_symbol_to_partition_1): Put hsa implementations into the
884 same partition as host implementations.
885
886 2016-01-12 Jan Hubicka <hubicka@ucw.cz>
887
888 PR lto/69003
889 * lto-partition.c (rename_statics): Fix pasto.
890
891 2016-01-18 Richard Biener <rguenther@suse.de>
892
893 PR lto/69337
894 * lto-symtab.c (lto_symtab_merge): Return early for mismatched
895 function vs. variable.
896
897 2016-01-12 Richard Biener <rguenther@suse.de>
898
899 PR lto/69077
900 * lto-symtab.c (lto_symtab_prevailing_virtual_decl): Properly
901 merge TREE_ADDRESSABLE and DECL_POSSIBLY_INLINED flags.
902
903 2016-01-04 Jakub Jelinek <jakub@redhat.com>
904
905 Update copyright years.
906
907 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
908
909 PR lto/68878
910 * lto-symtab.c (lto_symtab_prevailing_virtual_decl): New function.
911 * lto-symtab.h (lto_symtab_prevailing_virtual_decl): Declare.
912 (lto_symtab_prevailing_decl): Use it.
913
914 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
915
916 * lto.c: Include stringpool.h and fold-const.h.
917 (offload_handle_link_vars): New static function.
918 (lto_main): Call offload_handle_link_vars.
919
920 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
921
922 * lto.c (lto_read_in_decl_state): Unpickle compressed bit.
923
924 2015-12-11 Jan Hubicka <hubicka@ucw.cz>
925
926 PR ipa/61886
927 * lto-symtab.c (lto_symtab_merge_p): Avoid merging across different
928 values of error and warning attributes.
929
930 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
931
932 PR lto/68811
933 * lto.c (lto_fixup_prevailing_decls): Do not check TREE_CHAIN of
934 DECL.
935 (LTO_NO_PREVAIL): Use gcc_checking_assert.
936
937 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
938
939 PR lto/68811
940 * lto-symtab.c (lto_symtab_merge_decls_2): Decl can never be prevailed
941 by itself.
942
943 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
944
945 PR ipa/61886
946 * lto-symtab.c: Include lto-symtab.h.
947 (lto_cgraph_replace_node): Do not merge profiles here.
948 (lto_symtab_merge_p): New function.
949 (lto_symtab_merge_decls_2): Honor lto_symtab_merge_p.
950 (lto_symtab_merge_symbols_1): Turn unmerged decls into transparent
951 aliases.
952 (lto_symtab_merge_symbols): Do not clear node->aux; we no longer use it.
953 (lto_symtab_prevailing_decl): Move to lto-symtab.h; rewrite.
954 * lto.c: Include lto-symtab.h
955 * lto-symtab.h: New.
956
957 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
958
959 PR ipa/61886
960 * lto-partition.c (add_symbol_to_partition_1): Transparent aliases
961 are not part of the definition.
962 (contained_in_symbol): Likewise.
963 (promote_symbol): When promoting a symbol also promote all transparent
964 aliases.
965 (rename_statics): Weakref needs unique name, too.
966
967 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
968
969 PR ipa/61886
970 * lto-partition.c (add_symbol_to_partition_1, contained_in_symbol,
971 rename_statics, rename_statics): Handle transparent aliases.
972
973 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
974
975 * lto-symtab.c (lto_cgraph_replace_node): Update code computing
976 merged_comdat.
977
978 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
979
980 * lto.c (compare_tree_sccs_1): Do not compare TYPE_ALIAS_SET.
981
982 2015-11-25 Jan Hubicka <jh@suse.cz>
983
984 * lto-lang.c (lto_post_options): Process flag_lto_linker_output.
985 * lang.opt (lto_linker_output): New enum.
986 (flinker_output): New flag.
987
988 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
989
990 * lto-symtab.c: Include alias.h
991 (warn_type_compatibility_p): Replace types_compatible_p checks by
992 TBAA and size checks; set bit 2 if locations are TBAA incompatible.
993 (lto_symtab_merge): Compare DECL sizes.
994 (lto_symtab_merge_decls_2): Warn about TBAA in compatibility.
995
996 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
997
998 * lto.c (iterative_hash_canonical_type): Recruse for all types
999 which pass !canonical_type_used_p.
1000 (gimple_register_canonical_type_1): Sanity check we do not compute
1001 canonical type of anything with !canonical_type_used_p.
1002 (gimple_register_canonical_type): Skip all types that are
1003 !canonical_type_used_p
1004
1005 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1006
1007 * lto.c (unify_scc): Use free_node.
1008
1009 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1010
1011 * lto.c (iterative_hash_canonical_type): Always recurse for pointers.
1012 (gimple_register_canonical_type_1): Check that pointers do not get
1013 canonical types.
1014 (gimple_register_canonical_type): Do not register pointers.
1015
1016 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
1017
1018 * lto-symtab.c (warn_type_compatibility_p): Do not set ODR mismatch
1019 flag for types that are not ODR; fix loop walking parameters.
1020
1021 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
1022
1023 * lto-lang.c: Remove unused header files.
1024 * lto-object.c: Likewise.
1025 * lto-partition.c: Likewise.
1026 * lto-symtab.c: Likewise.
1027 * lto.c: Likewise.
1028
1029 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1030
1031 * lto.c (compare_tree_sccs_1): Deal with TYPE_REVERSE_STORAGE_ORDER.
1032
1033 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1034
1035 * lto-lang.c: Don't undef DEF_BUILTIN.
1036
1037 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1038
1039 * lto-lang.c: Reorder #include's and remove duplicates.
1040 * lto-object.c: Likewise.
1041 * lto-partition.c: Likewise.
1042 * lto-symtab.c: Likewise.
1043 * lto.c: Likewise.
1044
1045 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1046
1047 * lto.c (unify_scc): Use flag_checking and remove ENABLE_CHECKING
1048 conditionals.
1049 (lto_fixup_state): Likewise.
1050 (do_whole_program_analysis): Use
1051 symtab_node::checking_verify_symtab_nodes and remove ENABLE_CHECKING
1052 conditionals.
1053
1054 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1055
1056 * lto-lang.c (DEF_FUNCTION_TYPE_9, DEF_FUNCTION_TYPE_10,
1057 DEF_FUNCTION_TYPE_11): Define.
1058
1059 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
1060
1061 * lto.c (hash_canonical_type): Honor
1062 type_with_interoperable_signedness.
1063
1064 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1065
1066 * lto-lang.c (DEF_FUNCTION_TYPE_VAR_6): New.
1067 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1068
1069 2015-08-31 Richard Biener <rguenther@suse.de>
1070
1071 * lto.c (compare_tree_sccs_1): Compare DECL_ABSTRACT_ORIGIN.
1072 * lto-symtab.c (lto_symtab_merge): Merge DECL_POSSIBLY_INLINED flag.
1073 (lto_symtab_prevailing_decl): Do not replace a decl that didn't
1074 participate in merging with something else.
1075
1076 2015-08-31 Richard Biener <rguenther@suse.de>
1077
1078 * lto-symtab.c (lto_symtab_prevailing_decl): Remove redundant
1079 test, do not replace a non-builtin with a builtin.
1080 * lto.c (compare_tree_sccs_1): Do not merge things we stream
1081 as builtins vs. non-builtins.
1082
1083 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1084
1085 * lto.h: Remove useless typedefs.
1086
1087 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1088
1089 * lto.c: Remove redundant includes.
1090
1091 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1092
1093 * lto-lang.c: Fix double word typos.
1094
1095 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1096
1097 * lto.c: Include cfghooks.h rather than predict.h.
1098
1099 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1100
1101 * lto-lang.c: Adjust includes of target.h, alloc-pool.h and
1102 lto-streamer.h.
1103 * lto-object.c: Likewise.
1104 * lto-partition.c: Likewise.
1105 * lto-symtab.c: Likewise.
1106
1107 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1108
1109 * lto-lang.c: Adjust includes for flags.h changes.
1110
1111 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1112
1113 * lto-lang.c: Adjust includes.
1114 * lto-object.c: Likewise.
1115 * lto-partition.c: Likewise.
1116 * lto-symtab.c: Likewise.
1117 * lto.c: Likewise.
1118
1119 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1120
1121 * lto-lang.c: Remove ipa-ref.h and plugin-api.h from include list.
1122 * lto-object.c: Likewise.
1123 * lto-partition.c: Likewise.
1124 * lto-symtab.c: Likewise.
1125 * lto-tree.h: Likewise.
1126 * lto.c: Likewise.
1127
1128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1129
1130 * lto.c (tree_scc_hasher): Inherit from nofree_ptr_hash rather
1131 than typed_noop_remove. Remove redudant typedefs.
1132
1133 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1134
1135 * lto-lang.c: Do not include input.h, line-map.h or is-a.h.
1136 * lto-object.c: Likewise.
1137 * lto-partition.c: Likewise.
1138 * lto-symtab.c: Likewise.
1139 * lto.c: Likewise.
1140
1141 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
1142
1143 PR ipa/66181
1144 * lto.c (compare_tree_sccs_1): Do not compare TYPE_NO_FORCE_BLK.
1145
1146 2015-06-12 DJ Delorie <dj@redhat.com>
1147
1148 * lto-lang.c (lto_type_for_size): Include intN types.
1149 (lto_type_for_mode): Likewise.
1150
1151 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
1152
1153 * lto.c (hash_canonical_type): Drop hashing of TYPE_STRING_FLAG.
1154
1155 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1156
1157 * lto-lang.c : Adjust include files.
1158 * lto-object.c : Likewise.
1159 * lto-partition.c : Likewise.
1160 * lto-partition.h : Likewise.
1161 * lto-symtab.c : Likewise.
1162 * lto.c : Likewise.
1163 * lto.h : Likewise.
1164
1165 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
1166
1167 PR lto/65378
1168 * lto-symtab.c (warn_type_compatibility_p): Fix call of
1169 odr_or_derived_type_p.
1170 (lto_symtab_merge_decls_2): Update call of warn_types_mismatch.
1171
1172 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
1173
1174 * lto.c (hash_canonical_type): Do not hash TREE_CODE of TREE_TYPE of
1175 pointers.
1176
1177 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1178
1179 * lto-lang.c (lto_write_globals): Remove.
1180 (LANG_HOOKS_WRITE_GLOBALS): Same.
1181
1182 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1183
1184 * lto-lang.c: Adjust includes for restructured coretypes.h.
1185 * lto-object.c: Likewise.
1186 * lto-partition.c: Likewise.
1187 * lto-symtab.c: Likewise.
1188 * lto.c: Likewise.
1189
1190 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
1191
1192 * lto.c (hash_canonical_type): Use tree_code_for_canonical_type_merging.
1193
1194 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
1195
1196 * lto.c (iterative_hash_canonical_type,
1197 gimple_register_canonical_type): only hash main variants of types
1198
1199 2015-05-27 Martin Liska <mliska@suse.cz>
1200
1201 * lto-partition.c (new_partition): Reset number of symbols.
1202 (add_symbol_to_partition_1): Increment number of symbols.
1203 (undo_partition): Decrement number of symbols.
1204 (lto_balanced_map): Dump number of symbols and insns that
1205 belong to a partition.
1206 * lto-partition.h (struct ltrans_partition_def): Add symbol counter.
1207
1208 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
1209
1210 * lto.c (hash_canonical_type): Be sure we hash only types that
1211 need alias set.
1212 (gimple_register_canonical_type_1): Do not produce canonical
1213 types for types that do not need alias sets.
1214
1215 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
1216
1217 * lto.c (hash_canonical_type): Drop hashing of METHOD_BASETYPE.
1218
1219 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
1220
1221 * lto.c (gimple_canonical_types_compatible_p): Move to tree.c
1222
1223 2015-05-17 Jan Hubicka <hubicka@ucw.cz>
1224
1225 * lto-symtab.c (warn_type_compatibility_p): Break out from ...;
1226 compare ODR types (if available) and function types.
1227 (lto_symtab_merge): ... here; output ODR violation warnings
1228 and call warn_types_mismatch.
1229
1230 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
1231
1232 * lto.c (lto_fixup_state): Call verify_type.
1233
1234 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
1235
1236 * lto.c: Adjust for hash_table changes.
1237
1238 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
1239
1240 * lto.c (lto_read_decls): Move code registering odr types out
1241 of TYPE_CANONICAL conditional and also register polymorphic types.
1242
1243 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
1244
1245 * lto-symtab.c (lto_symtab_merge_decls_2): Silence warning on
1246 DECL_ARTIFICAL symbols.
1247
1248 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
1249
1250 PR lto/65536
1251 * lto.c (unify_scc): Revert location cache when unification
1252 suceeded.
1253 (lto_read_decls): Accept location cache after sucess;
1254 apply location cache before calling debug hooks.
1255
1256 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
1257
1258 * lto.c (read_cgraph_and_symbols): Do not do merging
1259 at ltrans stage.
1260
1261 2015-02-26 Jakub Jelinek <jakub@redhat.com>
1262
1263 * lto.c (lto_mode_identity_table): New variable.
1264 (lto_read_decls): Add mode_table argument to the lto_input_block
1265 constructor.
1266 (lto_file_finalize): Initialize mode_table.
1267 (lto_init): Initialize lto_mode_identity_table.
1268
1269 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1270
1271 PR libgomp/64625
1272 * lto-lang.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1273 Remove macros.
1274 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1275
1276 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
1277
1278 * lto-symtab.c (lto_cgraph_replace_node): Maintain merged flag.
1279
1280 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1281
1282 * lto-object.c, lto-symtab.c, lto.c: All callers of fatal_error
1283 changed to pass input_location as first argument.
1284
1285 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
1286
1287 * lto-symtab.c (lto_varpool_replace_node): Merge TLS models.
1288
1289 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
1290
1291 * lto.c (compare_tree_sccs_1): Add comparsion of
1292 DECL_FUNCTION_SPECIFIC_TARGET
1293
1294 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1295 James Norris <jnorris@codesourcery.com>
1296
1297 * lto-lang.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1298 New macros.
1299 * lto.c: Include "gomp-constants.h".
1300
1301 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
1302
1303 * lto-partition.c (lto_promote_cross_file_statics): Remove argument
1304 from select_what_to_stream.
1305
1306 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
1307 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR middle-end/64412
1310 * lto.c (read_cgraph_and_symbols): Set lto_stream_offload_p
1311 if ACCEL_COMPILER.
1312
1313 2015-01-09 Michael Collison <michael.collison@linaro.org>
1314
1315 * lto.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
1316 input.h, alias.h, symtab.h, options, fold-const.h,
1317 wide-int.h, and inchash.h due to flattening of tree.h.
1318 * lto-lang.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
1319 input.h, alias.h, symtab.h, fold-const.h,
1320 wide-int.h, and inchash.h due to flattening of tree.h.
1321 * lto-object.c: Include hash-set.h, machmode.h, vec.h, double-int.h,
1322 input.h, alias.h, symtab.h, options, fold-const.h,
1323 wide-int.h, and inchash.h due to flattening of tree.h.
1324 * lto-partition.c: Ditto.
1325 * lto-symtab.c: Ditto.
1326
1327 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1328
1329 Update copyright years.
1330
1331 2014-12-22 Martin Liska <mliska@suse.cz>
1332
1333 * lto-partition.c (add_symbol_to_partition_1): New inline_summaries
1334 is used.
1335 (undo_partition): Likewise.
1336 (lto_balanced_map): Likewise.
1337
1338 2014-12-22 Martin Liska <mliska@suse.cz>
1339
1340 * lto-partition.c: Include of symbol-summary.h is added.
1341 * lto-symtab.c: Likewise.
1342 * lto.c: Likewise.
1343
1344 2014-12-11 Jan Hubicka <hubicka@ucw.cz>
1345
1346 PR ipa/61324
1347 * lto.c (read_cgraph_and_symbols): Update call of
1348 remove_unreachable_nodes.
1349 (do_whole_program_analysis): Remove call of
1350 symtab->remove_unreachable_nodes
1351
1352 2014-12-08 Trevor Saunders <tsaunders@mozilla.com>
1353
1354 * lto.c (read_cgraph_and_symbols): allocate gimple_canonical_types
1355 htab with malloc instead of ggc.
1356
1357 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1358
1359 * lto.c: Replace htab with hash_table.
1360
1361 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1362
1363 * lto.c (lto_read_in_decl_state): Adjust.
1364 (lto_fixup_state): Likewise.
1365
1366 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1367
1368 * lto.c (lto_read_decls): Do not rebuild DECL_FUNCTION_SPECIFIC_TARGET.
1369
1370 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
1371
1372 * lto.c (compare_tree_sccs_1): Compare cl_target_option_eq.
1373
1374 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
1375 Bernd Schmidt <bernds@codesourcery.com>
1376 Andrey Turetskiy <andrey.turetskiy@intel.com>
1377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1378
1379 * lto.c (read_cgraph_and_symbols): Call input_offload_tables.
1380
1381 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
1382 Ilya Tocar <ilya.tocar@intel.com>
1383 Andrey Turetskiy <andrey.turetskiy@intel.com>
1384 Bernd Schmidt <bernds@codesourcery.com>
1385
1386 * lto-object.c (lto_obj_add_section): Use section_name_prefix instead of
1387 LTO_SECTION_NAME_PREFIX.
1388 * lto-partition.c (lto_promote_cross_file_statics): Call
1389 select_what_to_stream.
1390 * lto.c (lto_section_with_id): Use section_name_prefix instead of
1391 LTO_SECTION_NAME_PREFIX.
1392 (read_cgraph_and_symbols): Read OFFLOAD_SECTION_NAME_PREFIX sections, if
1393 being built as an offload compiler.
1394
1395 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1396
1397 * lto-lang.c: Remove redundant enum from machine_mode.
1398
1399 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1400
1401 * lto.c: Adjust include files.
1402 * lto-lang.c: Ditto.
1403 * lto-object.c: Ditto.
1404 * lto-partition.c: Ditto.
1405 * lto-symtab.c: Ditto.
1406
1407 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1408
1409 * lto-lang.c: Adjust include files.
1410 * lto-object.c: Ditto.
1411 * lto-partition.c: Ditto.
1412 * lto-symtab.c: Ditto.
1413 * lto.c: Ditto.
1414
1415 2014-10-16 DJ Delorie <dj@redhat.com>
1416
1417 * lto-object.c (lto_obj_begin_section): In the event that pointer
1418 sizes aren't powers of two, choose a more suitable alignment
1419 than (unsigned)(-1).
1420
1421 2014-10-14 DJ Delorie <dj@redhat.com>
1422
1423 * lto-lang.c (lto_build_c_type_nodes): Check intN types for
1424 size-type as well.
1425 (lto_init): Initialize all intN types, not just int128.
1426
1427 2014-10-06 Martin Liska <mliska@suse.cz>
1428
1429 * lto.c (stream_out): ARG_UNUSED added for last argument.
1430
1431 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
1432
1433 * lto-symtab.c, lto.c: Rename all instances of DECL_ABSTRACT to
1434 DECL_ABSTRACT_P.
1435
1436 2014-09-23 Andi Kleen <ak@linux.intel.com>
1437
1438 * lto-partition.c (node_cmp): Update comment.
1439 (varpool_node_cmp): Use symtab_node for comparison.
1440 (add_sorted_nodes): New function.
1441 (lto_balanced_map): Change to keep ordered queue
1442 of ordered node. Handle no_reorder attribute.
1443
1444 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
1445
1446 * lto.c (lto_read_decls): Register ODR types.
1447
1448 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1449
1450 * lto.c (read_cgraph_and_symbols): Fix symtab_remove_unreachable_nodes
1451 call.
1452 (do_whole_program_analysis): Only sanity check that IPA passes cleans up.
1453
1454 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
1455
1456 * lto-symtab.c (lto_varpool_replace_node): Call compare_virtual_tables.
1457
1458 2014-08-14 Richard Biener <rguenther@suse.de>
1459
1460 PR lto/62067
1461 * lto-lang.c (def_fn_type): Fix error handling wrt va_end.
1462
1463 2014-08-08 Richard Biener <rguenther@suse.de>
1464
1465 * lto.c (lto_read_decls): Adjust for lto_input_block changes.
1466
1467 2014-08-08 Bin Cheng <bin.cheng@arm.com>
1468
1469 PR lto/62032
1470 * lto-lang.c (lto_init): Switch mis-matched arguments.
1471
1472 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1473
1474 * lto-partition.c, lto.c: Use hash_map instead of pointer_map.
1475
1476 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1477
1478 * lto-partition.c, lto-partition.h: Use hash_set instead of
1479 pointer_set.
1480
1481 2014-07-31 Andi Kleen <ak@linux.intel.com>
1482
1483 * lto.c (hash_canonical_type): Use inchash::hash
1484 and use inchash::add_expr.
1485 (iterative_hash_canonical_type): Dito.
1486
1487 2014-07-30 Richard Biener <rguenther@suse.de>
1488
1489 * lto-streamer.h (lto_write_data): New function.
1490 * langhooks.c (lhd_append_data): Do not free block.
1491 * lto-section-out.c (lto_write_data): New function writing
1492 raw data to the current section.
1493 (lto_write_stream): Adjust for langhook semantic change.
1494 (lto_destroy_simple_output_block): Write header directly.
1495 * lto-opts.c (lto_write_options): Write options directly.
1496 * lto-streamer-out.c (produce_asm): Write heaeder directly.
1497 (lto_output_toplevel_asms): Likewise.
1498 (copy_function_or_variable): Copy data directly.
1499 (write_global_references): Output index table directly.
1500 (lto_output_decl_state_refs): Likewise.
1501 (write_symbol): Write data directly.
1502 (produce_symtab): Adjust.
1503 (produce_asm_for_decls): Output header and refs directly.
1504
1505 2014-07-25 Andi Kleen <ak@linux.intel.com>
1506
1507 * lto.c (hash_canonical_type): Call iterative_hstate_expr.
1508
1509 2014-07-25 Andi Kleen <ak@linux.intel.com>
1510
1511 * lto.c (hash_canonical_type): Convert to inchash.
1512 (iterative_hash_canonical_type): Dito.
1513
1514 2014-07-25 Andi Kleen <ak@linux.intel.com>
1515
1516 * lto.c: Include inchash.h
1517
1518 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
1519
1520 * lto.c (mentions_vars_p_decl_non_common): Skip
1521 DECL_ARGUMENT_FLD.
1522 mentions_vars_p_function): Do DECL_ARGUMENTS.
1523 (lto_fixup_prevailing_decls): Update.
1524
1525 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
1526
1527 * lto.c (read_cgraph_and_symbols): Do not push DECL_INIT_IO
1528 timevar
1529 (materialize_cgraph): Do not push GIMPLE_IN timevar.
1530
1531 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
1532
1533 * lto-partition.c (add_references_to_partition): Use
1534 varpool_ctor_useable_for_folding_p.
1535 * lto.c (lto_read_in_decl_state): Update sanity check.
1536
1537 2014-07-01 Martin Liska <mliska@suse.cz>
1538
1539 IPA REF alias refactoring
1540 * lto-partition.c (add_symbol_to_partition_1): Usage of
1541 FOR_EACH_ALIAS added.
1542
1543 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
1544
1545 Revert:
1546 * lto.c (lto_copy_fields_not_streamed): New function.
1547 (compare_tree_sccs_1): Do not compare fields shared in between type
1548 and variant.
1549 (lto_read_decls): Fixup types first before inserting into hash.
1550
1551 2014-06-28 Andrew Pinski <apinski@cavium.com>
1552
1553 * lto.c (lto_read_decls): Fix comment in comment.
1554
1555 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
1556
1557 * lto.c (lto_copy_fields_not_streamed): New function.
1558 (compare_tree_sccs_1): Do not compare fields shared in between type
1559 and variant.
1560 (lto_read_decls): Fixup types first before inserting into hash.
1561
1562 2014-06-25 Martin Liska <mliska@suse.cz>
1563
1564 * lto-partition.c (add_references_to_partition): New IPA REF function
1565 used.
1566 (add_symbol_to_partition_1): Likewise.
1567 (lto_balanced_map): Likewise.
1568 * lto-symtab.c (lto_cgraph_replace_node): Likewise.
1569
1570 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
1571
1572 * lto.c (mentions_vars_p_decl_non_common): Move DECL_VINDEX check to ..
1573 (mentions_vars_p_function): ... here.
1574 (compare_tree_sccs_1): Update VINDEX checks.
1575 (lto_fixup_prevailing_decls): Likewise.
1576
1577 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1578
1579 * lto.c (canonical_type_hash_cache): Use hash_map instead of
1580 pointer_map.
1581
1582 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1583
1584 * lto.c: Adjust.
1585
1586 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
1587
1588 * lto-symtab.c (lto_varpool_replace_node): Report TLS model conflicts.
1589
1590 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
1591
1592 * lto.c (compare_tree_sccs_1): Do not compare priorities.
1593
1594 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1595
1596 * lto.c (compare_tree_sccs_1): Do not compare DECL_TLS_MODEL.
1597
1598 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1599
1600 * lto.c (read_cgraph_and_symbols): Remove unreachable symbols.
1601 (do_whole_program_analysis): Use verify_symtab.
1602
1603 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1604
1605 * lto.c (mentions_vars_p_decl_with_vis, compare_tree_sccs_1,
1606 lto_fixup_prevailing_decls): Skip section names.
1607
1608 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
1609
1610 * lto-symtab.c: Include builtins.h.
1611
1612 2014-05-26 Richard Biener <rguenther@suse.de>
1613
1614 * lto.c (lto_parse_hex): Use int64_t.
1615 (lto_resolution_read): Likewise.
1616
1617 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
1618
1619 * lto.c (read_cgraph_and_symbols): Grow ggc memory after streaming.
1620
1621 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
1622
1623 * lto-symtab.c (lto_symtab_merge_symbols): Update code setting
1624 symtab pointer.
1625 * lto.c (compare_tree_sccs_1): Do not compare comdat groups.
1626
1627 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1628
1629 * lto-lang.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1630 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1631 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1632
1633 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
1634
1635 * lto-object.c: Include "lto-section-names.h".
1636 (LTO_SEGMENT_NAME): Don't define.
1637 * lto.c: Include "lto-section-names.h".
1638
1639 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
1640
1641 PR lto/61012
1642 * lto-symtab.c (lto_symtab_merge_decls_1): Do not ICE on undefined externals
1643 mixed with variables.
1644
1645 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1646
1647 * lto-tree.h: Don't use variable_size gty attribute.
1648 * lto.c (lto_read_in_decl_state): Adjust.
1649 (create_subid_section_table): Likewise.
1650 (lto_flatten_files): Likewise.
1651 (read_cgraph_and_symbols): Likewise.
1652
1653 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1654 Mike Stump <mikestump@comcast.net>
1655 Richard Sandiford <rdsandiford@googlemail.com>
1656
1657 * lto.c (compare_tree_sccs_1): Use wide-int interfaces.
1658 * lto-lang.c (get_nonnull_operand): Likewise.
1659
1660 2014-04-28 Richard Biener <rguenther@suse.de>
1661
1662 PR middle-end/60092
1663 * lto-lang.c: Define flag_isoc11.
1664
1665 2014-04-23 David Malcolm <dmalcolm@redhat.com>
1666
1667 * lto-partition.c (add_references_to_partition): Update for
1668 removal of implicit pointer from the is-a.h API.
1669 (add_symbol_to_partition_1): Likewise.
1670 (contained_in_symbol): Likewise.
1671 (undo_partition): Likewise.
1672 (lto_balanced_map): Likewise.
1673 (promote_symbol): Likewise.
1674 * lto-symtab.c (lto_symtab_merge_symbols_1): Likewise.
1675 (lto_symtab_merge_symbols): Likewise.
1676 * lto.c (lto_wpa_write_files): Likewise.
1677
1678 2014-04-15 Richard Biener <rguenther@suse.de>
1679
1680 * lto.c: Include params.h.
1681 (do_whole_program_analysis): Switch on flag_lto_partition value,
1682 add support for LTO_PARTITION_ONE.
1683 * lto-partition.h (lto_balanced_map): Adjust.
1684 * lto-partition.c (lto_balanced_map): Get number of desired
1685 partitions as argument to support -flto-partition=one.
1686
1687 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
1688
1689 * lto-symtab.c (lto_cgraph_replace_node): Don't re-merge
1690 tp_first_run.
1691
1692 2014-03-19 Jan Hubicka <hubicka@ucw.cz>
1693
1694 * lto.c: Include ipa-inline.h
1695 (do_whole_program_analysis): Free inline summary after partitioning.
1696
1697 2014-03-19 Richard Biener <rguenther@suse.de>
1698
1699 PR middle-end/60553
1700 * lto-tree.h (lang_tree_node): For types use TYPE_NEXT_VARIANT
1701 instead of TREE_CHAIN as chain_next.
1702
1703 2014-03-19 Richard Biener <rguenther@suse.de>
1704
1705 * lto.c (lto_wpa_write_files): Move call to
1706 lto_promote_cross_file_statics ...
1707 (do_whole_program_analysis): ... here, into the partitioning
1708 block. Do not ggc_collect after lto_wpa_write_files but
1709 for a last time before it.
1710
1711 2014-03-19 Jakub Jelinek <jakub@redhat.com>
1712
1713 PR lto/60571
1714 * lto.c (wait_for_child): Define WCONTINUED if not defined to 0.
1715 Fix formatting.
1716
1717 2014-03-18 Jakub Jelinek <jakub@redhat.com>
1718
1719 PR sanitizer/60535
1720 * lto-lang.c (lto_init): Add NAME_TYPE for int128_integer_type_node
1721 and complex_{float,{,long_}double}_type_node.
1722
1723 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1724
1725 * lto-lang.c (lto_init): Pass flag_short_double to
1726 build_common_tree_nodes.
1727
1728 2014-02-14 Jan Hubicka <hubicka@ucw.cz>
1729
1730 PR lto/60295
1731 * lto.c (stream_out): Avoid parallel streaming with
1732 -flto=jobserver until we are able to throttle it down
1733 resonably.
1734
1735 2014-02-14 Jan Hubicka <hubicka@ucw.cz>
1736
1737 * lto-partition.c (add_symbol_to_partition_1,
1738 undo_partition, lto_balanced_map): Aliases have no
1739 defined size.
1740 (lto_balanced_map): Do not follow refering variables
1741 if they can be optimized out.
1742
1743 2014-02-14 Richard Biener <rguenther@suse.de>
1744
1745 PR lto/60179
1746 * lto.c (compare_tree_sccs_1): Do not compare
1747 DECL_FUNCTION_SPECIFIC_TARGET.
1748 (lto_read_decls): Re-build DECL_FUNCTION_SPECIFIC_TARGET.
1749
1750 2014-02-12 Richard Biener <rguenther@suse.de>
1751
1752 PR lto/60060
1753 * lto-lang.c (lto_write_globals): Do not call
1754 wrapup_global_declarations or emit_debug_global_declarations
1755 but emit debug info for non-function scope variables
1756 directly.
1757
1758 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
1759
1760 * lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
1761
1762 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
1763
1764 PR ipa/59469
1765 * lto-partition.c (symbol_class): Move to cgraph.h
1766 (get_symbol_class): Move to symtab.c
1767 (add_references_to_partition, add_symbol_to_partition_1,
1768 lto_max_map, lto_1_to_1_map, lto_balanced_map,
1769 lto_promote_cross_file_statics): Update.
1770
1771 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
1772
1773 * lto.c (lto_parallelism): New static var.
1774 (do_stream_out, wait_for_child, stream_out): New static functions.
1775 (lto_wpa_write_files): Add support for parallel streaming.
1776 (do_whole_program_analysis): Set parallelism.
1777 * lang.opt (fwpa): Add parameter.
1778 * lto-lang.c (lto_handle_option): Handle flag_wpa.
1779 (lto_init): Update use of flag_wpa.
1780 * lto-streamer.h (asm_nodes_output): Declare.
1781
1782 2014-02-05 Richard Biener <rguenther@suse.de>
1783
1784 * lto.h (lto_global_var_decls): Remove.
1785 * lto-lang.c (lto_init): Do not allocate lto_global_var_decls.
1786 (lto_write_globals): Do nothing in WPA stage, gather globals from
1787 the varpool here ...
1788 * lto.c (lto_main): ... not here.
1789 (materialize_cgraph): Do not call rest_of_decl_compilation
1790 on the empty lto_global_var_decls vector.
1791 (lto_global_var_decls): Remove.
1792
1793 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
1794
1795 * lto-partition.c (get_symbol_class): Only unforced DECL_ONE_ONLY
1796 needs duplicating, not generic COMDAT.
1797
1798 2014-02-04 Richard Biener <rguenther@suse.de>
1799
1800 PR lto/59723
1801 * lto.c (mentions_vars_p): Handle NAMELIST_DECL.
1802 (lto_fixup_prevailing_decls): Handle fixing up CONSTRUCTOR values.
1803
1804 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
1805 Markus Trippelsdorf
1806
1807 PR ipa/59469
1808 * lto-symtab.c (lto_cgraph_replace_node, lto_varpool_replace_node):
1809 merge force_output and forced_by_abi flags.
1810
1811 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1812
1813 * lto-lang.c (lto_init): Replaced flag_enable_cilkplus with
1814 flag_cilkplus.
1815
1816 2014-01-09 Richard Biener <rguenther@suse.de>
1817
1818 * lto.c (gimple_canonical_types_compatible_p): Fix comment.
1819
1820 2014-01-09 Richard Biener <rguenther@suse.de>
1821
1822 PR lto/45586
1823 * lto.c (hash_canonical_type): Do not hash TREE_ADDRESSABLE,
1824 TYPE_ALIGN, TYPE_RESTRICT or TYPE_REF_CAN_ALIAS_ALL.
1825 (gimple_canonical_types_compatible_p): Do not compare them either.
1826
1827 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1828
1829 Update copyright years
1830
1831 2013-12-06 Oleg Endo <olegendo@gcc.gnu.org>
1832
1833 * lto.c: Remove struct tags when referring to class varpool_node.
1834 * lto-partition.c: Likewise.
1835 * lto-symtab.c: Likewise.
1836
1837 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1838 Richard Biener <rguenther@suse.de>
1839
1840 PR lto/59326
1841 * lto.c (compare_tree_sccs_1): Handle OMP_CLAUSE.
1842
1843 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR lto/59326
1846 * lto.c (mentions_vars_p_omp_clause): New function.
1847 (mentions_vars_p): Call it for OMP_CLAUSE. Remove break;
1848 after return stmts.
1849
1850 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1851
1852 * lto.c: Add required include files from gimple.h.
1853 * lto-lang.c: Likewise.
1854 * lto-object.c: Likewise.
1855 * lto-partition.c: Likewise.
1856 * lto-symtab.c: Likewise.
1857
1858 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
1859
1860 * lto-partition.c lto-symtab.c lto.c Adjust.
1861
1862 2013-11-14 Diego Novillo <dnovillo@google.com>
1863
1864 * lto-lang.c: Include stringpool.h.
1865 Include stor-layout.h.
1866 * lto-partition.c: Include gcc-symtab.h.
1867 * lto.c: Include stor-layout.h.
1868
1869 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1870
1871 Automated part of renaming of symtab_node_base to symtab_node.
1872
1873 Patch autogenerated by rename_symtab.py from
1874 https://github.com/davidmalcolm/gcc-refactoring-scripts
1875 revision 58bb219cc090b2f4516a9297d868c245495ee622
1876
1877 * lto-partition.c (add_symbol_to_partition): Rename
1878 symtab_node_base to symtab_node.
1879 (get_symbol_class): Likewise.
1880 (symbol_partitioned_p): Likewise.
1881 (add_references_to_partition): Likewise.
1882 (add_symbol_to_partition_1): Likewise.
1883 (contained_in_symbol): Likewise.
1884 (add_symbol_to_partition): Likewise.
1885 (lto_1_to_1_map): Likewise.
1886 (lto_max_map): Likewise.
1887 (lto_balanced_map): Likewise.
1888 (privatize_symbol_name): Likewise.
1889 (promote_symbol): Likewise.
1890 (may_need_named_section_p): Likewise.
1891 (rename_statics): Likewise.
1892 (lto_promote_statics_nonwpa): Likewise.
1893 * lto-symtab.c (lto_symtab_merge): Likewise.
1894 (lto_symtab_resolve_replaceable_p): Likewise.
1895 (lto_symtab_symbol_p): Likewise.
1896 (lto_symtab_resolve_can_prevail_p): Likewise.
1897 (lto_symtab_resolve_symbols): Likewise.
1898 (lto_symtab_merge_decls_2): Likewise.
1899 (lto_symtab_merge_decls_1): Likewise.
1900 (lto_symtab_merge_decls): Likewise.
1901 (lto_symtab_merge_symbols_1): Likewise.
1902 (lto_symtab_merge_symbols): Likewise.
1903 (lto_symtab_prevailing_decl): Likewise.
1904 * lto.c (lto_wpa_write_files): Likewise.
1905 (read_cgraph_and_symbols): Likewise.
1906 (do_whole_program_analysis): Likewise.
1907
1908 2013-10-30 David Malcolm <dmalcolm@redhat.com>
1909
1910 * lto-symtab.c (lto_symtab_merge_decls_2): Split symtab_node
1911 declarations onto multiple lines to make things easier for
1912 rename_symtab.py.
1913 (lto_symtab_merge_decls_1): Likewise.
1914 (lto_symtab_merge_symbols_1): Likewise.
1915
1916 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1917
1918 * Make-lang.in (lto/lto-lang.o): Added cilk.h in dependency list.
1919 * lto-lang.c (lto_init): Added a call to cilk_init_builtins if Cilk
1920 Plus is enabled.
1921
1922 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1923
1924 Patch autogenerated by refactor_symtab.py from
1925 https://github.com/davidmalcolm/gcc-refactoring-scripts
1926 revision 58bb219cc090b2f4516a9297d868c245495ee622
1927
1928 * lto-partition.c (lto_promote_cross_file_statics): Update for
1929 conversion of symtab types to a true class hierarchy.
1930 (rename_statics): Likewise.
1931 (promote_symbol): Likewise.
1932 (privatize_symbol_name): Likewise.
1933 (lto_balanced_map): Likewise.
1934 (varpool_node_cmp): Likewise.
1935 (node_cmp): Likewise.
1936 (lto_1_to_1_map): Likewise.
1937 (undo_partition): Likewise.
1938 (add_symbol_to_partition): Likewise.
1939 (contained_in_symbol): Likewise.
1940 (add_symbol_to_partition_1): Likewise.
1941 (add_references_to_partition): Likewise.
1942 (symbol_partitioned_p): Likewise.
1943 (get_symbol_class): Likewise.
1944 (lto_max_map): Likewise.
1945 * lto-symtab.c (lto_symtab_prevailing_decl): Likewise.
1946 (lto_symtab_merge_symbols): Likewise.
1947 (lto_symtab_merge_symbols_1): Likewise.
1948 (lto_symtab_merge_decls): Likewise.
1949 (lto_symtab_merge_decls_1): Likewise.
1950 (lto_symtab_merge_decls_2): Likewise.
1951 (lto_symtab_resolve_symbols): Likewise.
1952 (lto_symtab_resolve_can_prevail_p): Likewise.
1953 (lto_symtab_symbol_p): Likewise.
1954 (lto_symtab_resolve_replaceable_p): Likewise.
1955 (lto_symtab_merge): Likewise.
1956 (lto_varpool_replace_node): Likewise.
1957 (lto_cgraph_replace_node): Likewise.
1958 * lto.c (lto_main): Likewise.
1959 (do_whole_program_analysis): Likewise.
1960 (materialize_cgraph): Likewise.
1961 (read_cgraph_and_symbols): Likewise.
1962 (cmp_partitions_order): Likewise.
1963 (lto_materialize_function): Likewise.
1964 (has_analyzed_clone_p): Likewise.
1965
1966 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
1967
1968 * lto-object.c: Add gimple.h to include list.
1969 * lto-partition.c: Likewise.
1970
1971 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
1972
1973 * lto.c: Remove tree-flow.h from include list.
1974
1975 2013-10-15 Richard Biener <rguenther@suse.de>
1976
1977 * lto.c (hash_canonical_type): Split out from ...
1978 (iterative_hash_canonical_type): ... here. Register types
1979 we recurse to.
1980 (gimple_canonical_type_hash): Adjust.
1981 (gimple_register_canonical_type_1): Split out from ...
1982 (gimple_register_canonical_type): ... here. Cache computed
1983 hash value.
1984 (lto_register_canonical_types): Split into two modes,
1985 clearing and computing TYPE_CANONICAL.
1986 (lto_read_decls): Adjust.
1987 (read_cgraph_and_symbols): Do two passes over global trees,
1988 first clearing then computing TYPE_CANONICAL.
1989
1990 2013-10-14 Richard Biener <rguenther@suse.de>
1991
1992 * lto.c (gimple_canonical_types): Move out-of GC space.
1993 (canonical_type_hash_cache): Make a pointer-map.
1994 (num_canonical_type_hash_entries, num_canonical_type_hash_queries):
1995 New counters.
1996 (iterative_hash_canonical_type): Adjust.
1997 (read_cgraph_and_symbols): Likewise.
1998 (print_lto_report_1): Likewise.
1999
2000 2013-10-14 Richard Biener <rguenther@suse.de>
2001
2002 * lto.c (gimple_types, type_hash_cache, struct type_pair_d,
2003 type_pair_cache, lookup_type_pair, struct sccs, next_dfs_num,
2004 gtc_next_dfs_num, compare_type_names_p, gtc_visit,
2005 gimple_types_compatible_p_1, gimple_types_compatible_p,
2006 visit, iterative_hash_name, struct type_hash_pair,
2007 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
2008 gimple_type_eq, gimple_register_type, num_not_merged_types,
2009 num_not_merged_types_in_same_scc, num_not_merged_types_trees,
2010 num_not_merged_types_in_same_scc_trees): Remove old merging code
2011 and statistics.
2012 (lto_read_decls): Do not run old merging code in parallel.
2013 (read_cgraph_and_symbols): Do not init/free old merging
2014 data structures.
2015 (print_lto_report_1): Do not report differences of old vs. new
2016 merging code.
2017
2018 2013-10-14 Richard Biener <rguenther@suse.de>
2019
2020 * lto-lang.c (lto_init): Do not re-init canonical types here.
2021 (lto_register_canonical_types): Move to ...
2022 * lto.c (lto_register_canonical_types): ... here.
2023 (gimple_canonical_types, canonical_type_hash_cache,
2024 iterative_hash_canonical_type, gimple_canonical_type_hash,
2025 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
2026 gimple_register_canonical_type): Add canonical type merging machinery
2027 moved from gimple.c.
2028 (read_cgraph_and_symbols): Init and free canonical type tables
2029 here.
2030 (print_lto_report_1): Report canonical type table stats here.
2031
2032 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2033
2034 * lto-lang.c (DEF_FUNCTION_TYPE_8): Define.
2035
2036 2013-09-25 Tom Tromey <tromey@redhat.com>
2037
2038 * Make-lang.in (LTO_H, LINKER_PLUGIN_API_H, LTO_TREE_H)
2039 (lto/lto-lang.o, lto/lto.o, lto/lto-partition.o)
2040 (lto/lto-object.o): Remove.
2041
2042 2013-09-06 Richard Biener <rguenther@suse.de>
2043
2044 * lto-symtab.c: Move from gcc/
2045 * lto.h: Include vec.h.
2046 (lto_global_var_decls): Declare.
2047 * lto.c (lto_global_var_decls): Move definition here.
2048 * Make-lang.in (LTO_OBJS): Add lto-symtab.o.
2049 (lto-symtab.o): Add.
2050 * config-lang.in (gtfiles): Add lto.h.
2051
2052 2013-08-31 Jan Hubicka <jh@suse.cz>
2053
2054 * lto.c (mentions_vars_p_field_decl, lto_fixup_prevailing_decls):
2055 DECL_FIELD_OFFSET can contain an reference to variable.
2056
2057 2013-08-31 Jan Hubicka <jh@suse.cz>
2058
2059 * lto.c (tree_with_vars): Turn into vector.
2060 (MAYBE_REMEMBER_WITH_VARS): Change to...
2061 (CHECK_VAR): ... this one.
2062 (CHECK_NO_VAR): New macro.
2063 (maybe_remember_with_vars_typed): Turn to ...
2064 (mentions_vars_p_typed): ... this one.
2065 (maybe_remember_with_vars_common): Turn to ...
2066 (mentions_vars_p_comon): ... this one.
2067 (maybe_remember_with_vars_decl_minimal): Turn to ...
2068 (mentions_vars_p_decl_minmal): ... this one.
2069 (maybe_remember_with_vars_decl_common): Turn to ...
2070 (mentions_vars_p_decl_common): ... this one.
2071 (maybe_remember_with_vars_decl_with_vis): Turn to ...
2072 (mentions_vars_p_decl_with_vis): ... this one.
2073 (maybe_remember_with_vars_decl_non_common): Turn to ...
2074 (mentions_vars_p_decl_non_common): ... this one.
2075 (maybe_remember_with_vars_function): Turn to ...
2076 (mentions_vars_p_function): ... this one.
2077 (maybe_remember_with_vars_field_decl): Turn to ...
2078 (mentions_vars_p_field_decl): ... this one.
2079 (maybe_remember_with_vars_type): Turn to ...
2080 (mentions_vars_p_type): ... this one.
2081 (maybe_remember_with_vars_binfo): Turn to ...
2082 (mentions_vars_p_binfo): ... this one.
2083 (maybe_remember_with_vars_constructor): Turn to ...
2084 (mentions_vars_p_constructor): ... this one.
2085 (maybe_remember_with_vars_expr): Turn to ...
2086 (mentions_vars_p_expr): ... this one.
2087 (maybe_remember_with_vars): Turn to ...
2088 (mentions_vars_p): ... this one.
2089 (lto_read_decls): Update.
2090 (LTO_SET_PREVAIL): Do not call function for internal decls.
2091 (lto_fixup_prevailing_decls): Update to match mentions_vars_p;
2092 check that something was updated.
2093 (lto_fixup_state): Do not care about internal decls.
2094 (lto_fixup_decls): Update.
2095 (read_cgraph_and_symbols): Update.
2096
2097 2013-08-29 Jan Hubicka <jh@suse.cz>
2098
2099 * lto.c (read_cgraph_and_symbols): Free decl states.
2100
2101 2013-08-29 Jan Hubicka <jh@suse.cz>
2102
2103 * lto.c (compare_tree_sccs_1): Compare DECL_FINAL_P,
2104 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and
2105 TYPE_FINAL_P.
2106
2107 2013-08-28 Jan Hubicka <jh@suse.cz>
2108
2109 * lto.c (compare_tree_sccs_1): Drop DECL_ERROR_ISSUED,
2110 DECL_DEFER_OUTPUT and DECL_IN_TEXT_SECTION.
2111 (unify_scc): Do checking assert.
2112
2113 2013-08-06 Jan Hubicka <jh@suse.cz>
2114 Martin Liska <marxin.liska@gmail.com>
2115
2116 * lto-partition.c (lto_balanced_map): Always base order on
2117 source file order.
2118
2119 2013-08-06 Jan Hubicka <jh@suse.cz>
2120
2121 * lto.c (lto_materialize_function): Do not read body anymore.
2122
2123 2013-08-02 Jan Hubicka <jh@suse.cz>
2124
2125 * lto.c (lto_materialize_function): Do not push struct function.
2126 * lto-partition.c (get_symbol_class): Handle abstracts correctly.
2127 (may_need_named_section_p): Even abstract origins may need
2128 named section.
2129
2130 2013-07-30 David Malcolm <dmalcolm@redhat.com>
2131
2132 * Make-lang.in (lto/lto.o:): Depend on CONTEXT_H and
2133 PASS_MANAGER_H.
2134
2135 * lto.c (do_whole_program_analysis): Update for move of
2136 all_regular_ipa_passes from a global to a field of class
2137 pass_manager.
2138
2139 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
2140
2141 * lto-partition.c: Fix typos.
2142
2143 2013-06-20 Jan Hubicka <jh@suse.cz>
2144
2145 * lto-partition.c (lto_balanced_map): Fix -fno-toplevel-reorder
2146 partitioning of variables.
2147
2148 2013-06-20 Jan Hubicka <jh@suse.cz>
2149
2150 * lto.c (read_cgraph_and_symbols): Set cgraph state.
2151
2152 2013-06-19 Jan Hubicka <jh@suse.cz>
2153
2154 * lto-partition.c (add_references_to_partition): Use
2155 ctor_for_folding.
2156
2157 2013-06-18 Richard Biener <rguenther@suse.de>
2158
2159 * lto.c (lto_register_var_decl_in_symtab): Pass in cache index
2160 and use it.
2161 (lto_register_function_decl_in_symtab): Likewise.
2162 (cmp_tree): New function.
2163 (unify_scc): Instead of using the streamer cache map from entry
2164 to cache index match up the two maps we have by sorting them.
2165 Adjust calls to lto_register_var_decl_in_symtab and
2166 lto_register_function_decl_in_symtab.
2167
2168 2013-06-17 Richard Biener <rguenther@suse.de>
2169
2170 * Make-lang.in (lto.o): Add $(DATA_STREAMER_H) dependency.
2171 * lto.c: Include data-streamer.h.
2172 (lto_read_in_decl_state): Use streamer_tree_cache_get_tree.
2173 (gimple_type_leader_entry_s, gimple_type_leader,
2174 gimple_lookup_type_leader): Remove.
2175 (gtc_visit): Simplify.
2176 (gimple_types_compatible_p): Likewise.
2177 (gimple_register_type_1): Likewise. Merge into ...
2178 (gimple_register_type): ... this. Keep it as legacy for
2179 statistics purposes for now.
2180 (fixup_integer_cst): Remove.
2181 (LTO_FIXUP_TREE, lto_fixup_types, lto_ft_*): Simplify and
2182 rename to ...
2183 (MAYBE_REMEMBER_WITH_VARS, maybe_remember_with_vars,
2184 maybe_remember_with_vars_*): ... these.
2185 (uniquify_nodes): Remove.
2186 (lto_fixup_prevailing_type): New function.
2187 (struct tree_scc, struct tree_scc_hasher): New type and hasher.
2188 (tree_scc_hash, tree_scc_hash_obstack): New globals.
2189 (num_merged_types, num_prevailing_types, num_not_merged_types,
2190 num_not_merged_types_in_same_scc, total_scc_size, num_sccs_read,
2191 total_scc_size_merged, num_sccs_merged, num_scc_compares,
2192 num_scc_compare_collisions): New global counters.
2193 (compare_tree_sccs_1): New function.
2194 (compare_tree_sccs): Likewise.
2195 (unify_scc): Likewise.
2196 (lto_read_decls): Stream in tree SCCs and unify them on the
2197 way in. Finalize prevailing SCC tree members.
2198 (read_cgraph_and_symbols): Do not initialize or free gimple_type_leader.
2199 Allocate and free tree_scc_hash_obstack and tree_scc_hash, do not bother
2200 to ggc-collect during merging.
2201 (print_lto_report_1): Adjust for new merging code.
2202
2203 2013-06-12 Jan Hubicka <jh@suse.cz>
2204
2205 * lto.c (read_cgraph_and_symbols): Set cgraph into streaming state.
2206
2207 2013-06-12 Jan Hubicka <jh@suse.cz>
2208
2209 * lto.c (register_resolution): Take lto_file_data argument.
2210 (lto_register_var_decl_in_symtab,
2211 lto_register_function_decl_in_symtab): Update.
2212 (read_cgraph_and_symbols): Update resolution_map handling.
2213
2214 2013-06-11 Jan Hubicka <jh@suse.cz>
2215
2216 * lto-partition.c (get_symbol_class): Simplify weakref handling.
2217 (add_symbol_to_partition_1): Likewise.
2218 (contained_in_symbol): Likewise.
2219 (lto_balanced_map): Likewise.
2220 (rename_statics): Drop weakref.
2221
2222 2013-06-05 Richard Biener <rguenther@suse.de>
2223
2224 * lto.c (num_merged_types): New global variable.
2225 (uniquify_nodes): Increase num_merged_types when merging a type.
2226 (print_lto_report_1): Output the number of merged types.
2227
2228 2013-06-01 Jan Hubicka <jh@suse.cz>
2229
2230 * lto.c (read_cgraph_and_symbols): Simplify dumping; Replace
2231 lto_symtab_merge_cgraph_nodes by lto_symtab_merge_symbols.
2232 (do_whole_program_analysis): Update dumping.
2233
2234 2013-05-29 Jan Hubicka <jh@suse.cz>
2235
2236 * lto.c (has_analyzed_clone_p, lto_materialize_function): Update for new symtab
2237 flags.
2238 * lto-partition.c (get_symbol_class, lto_balanced_map): Likewise.
2239
2240 2013-05-15 Jan Hubicka <jh@suse.cz>
2241
2242 * lto-partition.c (privatize_symbol_name): Return true when
2243 privatizing happened.
2244 (rename_statics): Do not go into infinite loop when privatizing
2245 is not needed.
2246
2247 2013-05-16 Jason Merrill <jason@redhat.com>
2248
2249 * Make-lang.in ($(LTO_EXE)): Use link mutex.
2250
2251 2013-05-15 Martin Jambor <mjambor@suse.cz>
2252
2253 * lto-partition.c (lto_balanced_map): Print symbol order instead
2254 of node uids.
2255
2256 2013-05-15 Jan Hubicka <jh@suse.cz>
2257
2258 PR lto/57038
2259 PR lto/47375
2260 * lto-partition.c (get_symbol_class): Fix weakrefs.
2261 (lto_balanced_map): Fix weakrefs.
2262 (privatize_symbol_name): Remove unnecesary label.
2263 (rename_statics): Handle weakrefs as statics.
2264
2265 2013-05-09 Jan Hubicka <jh@suse.cz>
2266 Richard Biener <rguenther@suse.de>
2267
2268 * lto.c (lto_register_var_decl_in_symtab): Don't do renaming.
2269 (lto_register_var_decl_in_symtab): Likewise.
2270 (lto_main): Promote statics.
2271 * lto-partition.c (privatize_symbol_name): New function.
2272 (promote_symbol): Use it.
2273 (may_need_named_section_p): New predicate.
2274 (rename_statics): New functions.
2275 (lto_promote_cross_file_statics): Simplify; do renaming.
2276 (lto_promote_statics_nonwpa): New function.
2277 * lto-partition.h (lto_promote_statics_nonwpa): New function.
2278
2279 2013-02-08 Richard Biener <rguenther@suse.de>
2280
2281 PR lto/56231
2282 * lto-lang.c (lto_init): Do not enter a dummy file.
2283
2284 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
2285
2286 PR bootstrap/56227
2287 * lto.c (lto_resolution_ready): Use %wx instead of
2288 HOST_WIDE_INT_PRINT_HEX_PURE in the argument to internal_error.
2289
2290 2013-02-04 Richard Guenther <rguenther@suse.de>
2291
2292 PR lto/56168
2293 * lto.c (read_cgraph_and_symbols): Do not call lto_symtab_merge_decls
2294 or lto_fixup_decls at LTRANS time.
2295
2296 2013-01-09 Jan Hubicka <jh@suse.cz>
2297
2298 PR lto/45375
2299 * lto.c (do_whole_program_analysis): Remove unreachable nodes after IPA.
2300
2301 2012-12-10 H.J. Lu <hongjiu.lu@intel.com>
2302
2303 PR lto/55466
2304 * lto.c (lto_register_var_decl_in_symtab): Don't record static
2305 variables.
2306 (lto_main): Record the global variables if WPA isn't enabled.
2307
2308 2012-11-20 Diego Novillo <dnovillo@google.com>
2309 Jakub Jelinek <jakub@redhat.com>
2310
2311 * lto.c: Replace all vec<T, A>() initializers with vNULL.
2312
2313 2012-11-16 Diego Novillo <dnovillo@google.com>
2314
2315 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2316
2317 * lto-lang.c: Use new vec API in vec.h.
2318 * lto-partition.c: Likewise.
2319 * lto-partition.h: Likewise.
2320 * lto.c: Likewise.
2321
2322 2012-10-31 Lawrence Crowl <crowl@google.com>
2323
2324 * lto.c (lto_wpa_write_files): Change symtab checking to a checked
2325 down-cast via dyn_cast.
2326 * lto-partition.c (add_symbol_to_partition_1): Likewise.
2327 (undo_partition): Likewise.
2328 (lto_balanced_map): Likewise.
2329 (get_symbol_class): Likewise and via is_a.
2330 (lto_balanced_map): Change symtab checking to is_a.
2331
2332 2012-10-12 Richard Biener <rguenther@suse.de>
2333
2334 PR lto/54898
2335 * lto.c (gimple_types_compatible_p_1): Also compare
2336 TYPE_MAIN_VARIANT.
2337 (iterative_hash_gimple_type): Also hash TYPE_MAIN_VARIANT.
2338
2339 2012-10-09 Tobias Burnus <burnus@net-b.de>
2340
2341 * lto-lang.c (lto_register_builtin_type): Avoid useless
2342 decl creation.
2343 * lto-object.c (lto_obj_file_open, lto_obj_file_open): Free memory.
2344
2345 2012-10-08 Tobias Burnus <burnus@net-b.de>
2346
2347 * lto.c (lto_wpa_write_files, read_cgraph_and_symbols):
2348 Free lto_file struct after closing the file.
2349
2350 2012-10-08 Jan Hubicka <jh@suse.cz>
2351
2352 * lto.c (remember_with_vars): Also fixup INTEGER_CST.
2353 (fixup_integer_cst): New functoin.
2354 (lto_ft_type): Fixup BASETYPE of methods and offsets.
2355
2356 2012-10-07 Jan Hubicka <jh@suse.cz>
2357
2358 * lto.c (read_cgraph_and_symbols): Release type merging hash early;
2359 release input encoders.
2360 * lto-partition.c (new_partition): Update for new lto_symtab_encoder_new.
2361
2362 2012-10-06 Jan Hubicka <jh@suse.cz>
2363
2364 PR lto/54790
2365 * lto.c (resolution_map): New static var.
2366 (register_resolution): New function.
2367 (lto_register_var_decl_in_symtab): Use it.
2368 (read_cgraph_and_symbols): Copy resolutions into the symtab.
2369
2370 2012-09-20 Martin Jambor <mjambor@suse.cz>
2371
2372 * lto.c (lto_materialize_function): Call push_struct_function and
2373 pop_cfun.
2374
2375 2012-09-19 Dehao Chen <dehao@google.com>
2376
2377 * lto.c (lto_fixup_prevailing_decls): Remove tree.exp.block field.
2378
2379 2012-09-19 Jan Hubicka <jh@suse.cz>
2380
2381 * lto.c (lto_materialize_function): Update confused comment.
2382 (read_cgraph_and_symbols): Do not free symtab.
2383
2384 2012-09-12 Jan Hubicka <jh@suse.cz>
2385
2386 * lto.c (do_whole_program_analysis): Care timevars, statistics and
2387 AUX pointer cleaning. Add max partitioning.
2388 * lto-partition.c (enum symbol_class): New.
2389 (get_symbol_class): New function.
2390 (symbol_partitioned_p): New function.
2391 (add_references_to_partition): Remove.
2392 (add_aliases_to_partition): Remove.
2393 (add_cgraph_node_to_partition_1): Remove.
2394 (add_cgraph_node_to_partition): Remove.
2395 (add_symbol_to_partition): New function.
2396 (add_symbol_to_partition_1): New function.
2397 (contained_in_symbol): New function.
2398 (partition_cgraph_node_p): Remove.
2399 (partition_varpool_node_p): Remove.
2400 (partition_symbol_p): Remove.
2401 (lto_1_to_1_map): Cleanup.
2402 (lto_max_map): New.
2403 (lto_balanced_map): Update.
2404 (lto_promote_cross_file_statics): Update.
2405 * lto-partition.h (lto_max_map): Declare.
2406 * timevar.def (TV_WHOPR_PARTITIONING): New timevar.
2407
2408 2012-09-11 Jan Hubicka <jh@suse.cz>
2409
2410 PR lto/54312
2411 * lto.c (uniquify_nodes): Remove quadratic loop checking if the
2412 type is variant leader.
2413
2414 2012-09-11 Richard Guenther <rguenther@suse.de>
2415
2416 * lto.c (enum gtc_mode): Remove.
2417 (struct type_pair_d): Adjust.
2418 (lookup_type_pair): Likewise.
2419 (gimple_type_leader): Do not mark as deletable.
2420 (gimple_lookup_type_leader): Adjust.
2421 (gtc_visit): Likewise.
2422 (gimple_types_compatible_p_1): Likewise.
2423 (gimple_types_compatible_p): Likewise.
2424 (gimple_type_hash): Likewise.
2425 (gimple_register_type): Likewise.
2426 (read_cgraph_and_symbols): Manage lifetime of tables
2427 here.
2428
2429 2012-09-11 Richard Guenther <rguenther@suse.de>
2430
2431 * lto.c (gimple_types, type_hash_cache, enum gtc_mode,
2432 struct type_pair_d, lookup_type_pair, struct sccs,
2433 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
2434 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
2435 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
2436 visit, iterative_hash_name, struct type_hash_pair,
2437 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
2438 gimple_type_eq, gimple_register_type_1, gimple_register_type):
2439 Move here from gimple.c
2440 (read_cgraph_and_symbols): Free hash tables here.
2441 (print_lto_report_1): New function wrapping print_lto_report.
2442 (do_whole_program_analysis): Call it.
2443 (lto_main): Likewise.
2444
2445 2012-09-10 Jan Hubicka <jh@suse.cz>
2446
2447 * lto-partition.c (partition_symbol_p): Forward declare.
2448 (add_references_to_partition): Reimplement using partition_symbol_p.
2449 (add_aliases_to_partition): Break out from add_references_to_partition;
2450 reimplement using partition_symbol_p.
2451 (add_cgraph_node_to_partition_1): Handle callees using partition_symbol_p;
2452 add sanity checks.
2453 (add_varpool_node_to_partition): Use add_aliases_to_partition.
2454 (partition_varpool_node_p): Do not special case aliases.
2455
2456 2012-08-12 Jan Hubicka <jh@suse.cz>
2457
2458 * lto.c (lto_wpa_write_files): Do not delete partition encoder;
2459 it is deleted after streaming.
2460 * lto-partition.c (partition_symbol_p): New function.
2461 (promote_var, promote_fn): Remove.
2462 (promote_symbol): New function.
2463 (lto_promote_cross_file_statics): First compute boundaries; rewrite
2464 to lookup the actual boundaries instead of computing them ad-hoc.
2465
2466 2012-08-12 Jan Hubicka <jh@suse.cz>
2467
2468 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
2469 in partitioning.
2470 * lto-partition.h (ltrans_partition_def): Replace cgraph_set and varpool_set
2471 by encoder.
2472 * lto-partition.c (new_partition): Update.
2473 * lto.c (cmp_partitions_order): Update.
2474 (lto_wpa_write_files): Update.
2475 (free_ltrans_partitions): Update.
2476 (add_references_to_partition): Update.
2477 (add_cgraph_node_to_partition_1): Update.
2478 (add_cgraph_node_to_partition): Update.
2479 (add_varpool_node_to_partition): Update.
2480 (undo_partition): Update.
2481 (lto_balanced_map): Update.
2482 (set_referenced_from_other_partition_p, set_reachable_from_other_partition_p,
2483 set_referenced_from_this_partition_p): Update.
2484 (lto_promote_cross_file_statics): Update.
2485
2486 2012-08-12 Jan Hubicka <jh@suse.cz>
2487
2488 * lto-partition.c (set_referenced_from_other_partition_p,
2489 set_reachable_from_other_partition_p, set_referenced_from_this_partition_p):
2490 New functions.
2491 (lto_promote_cross_file_statics): Use them.
2492
2493 2012-07-24 Jan Hubicka <jh@suse.cz>
2494
2495 * lto.c (read_cgraph_and_symbols): Use input_symtab.
2496
2497 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2498
2499 * lto-tree.h (lang_decl): Add variable_size GTY option.
2500
2501 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2502
2503 * lto.c: Do not include timevar.h.
2504 * Make-lang.in: Fix dependencies.
2505
2506 2012-06-18 Lawrence Crowl <crowl@google.com>
2507
2508 * lto.c (do_whole_program_analysis): Rename use of TV_PHASE_CGRAPH to
2509 TV_PHASE_OPT_GEN. Use new timevar TV_PHASE_STREAM_OUT around the call
2510 to lto_wpa_write_files.
2511 (lto_main): Rename use of TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Move
2512 start of TV_PHASE_OPT_GEN to include call to materialize_cgraph. Use
2513 TV_PHASE_SETUP for the call to lto_init. Use new timevar
2514 TV_PHASE_STREAM_IN around the call to read_cgraph_and_symbols.
2515 Turn TV_PHASE_PARSING off then back on again, because LTO is pretending
2516 to be a front end, but is not one.
2517
2518 2012-05-18 Jan Hubicka <jh@suse.cz>
2519
2520 * lto.c (lto_materialize_constructors_and_inits): Remove.
2521 (read_cgraph_and_symbols): Remove handling of alias pairs.
2522
2523 2012-05-17 Jan Hubicka <jh@suse.cz>
2524
2525 * lto-partition.c (add_references_to_partition): Handle external vars.
2526 (partition_varpool_node_p): Likewise.
2527 (lto_promote_cross_file_statics): Do not promote externals.
2528
2529 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2530
2531 * lto-lang.c (handle_fnspec_attribute): New static function.
2532 (lto_attribute_table): Add "fn spec".
2533 (DEF_ATTR_STRING): Define and undefine along with the other macros.
2534
2535 2012-05-04 Jan Hubicka <jh@suse.cz>
2536
2537 * lto.c (do_whole_program_analysis): Set timevars correctly.
2538 (lto_main): Likewise.
2539
2540 2012-05-04 Richard Guenther <rguenther@suse.de>
2541
2542 * lang.opt (fwpa): Do not mark as Optimization.
2543 (fltrans): Likewise.
2544
2545 2012-04-30 Jan Hubicka <jh@suse.cz>
2546
2547 * lto.c (lto_main): Use compile ().
2548 * lto-partition.c (partition_cgraph_node_p): Use
2549 symtab_used_from_object_file_p.
2550 (partition_varpool_node_p): Likewise.
2551
2552 2012-04-20 Jan Hubicka <jh@suse.cz>
2553
2554 * lto-partition.c (partition_cgraph_node_p): Use force_output.
2555
2556 2012-04-18 Jan Hubicka <jh@suse.cz>
2557
2558 * lto-partition.c (add_references_to_partition, lto_balanced_map):
2559 Update for new ipa-ref API.
2560
2561 2012-04-16 Jan Hubicka <jh@suse.cz>
2562
2563 * lto.c (read_cgraph_and_symbols): Use FOR_EACH
2564 walkers to walk cgraph and varpool.
2565 (materialize_cgraph): Likewise.
2566 * lto-partition.c (lto_1_to_1_map): Likewise.
2567 (lto_balanced_map): Likewise.
2568 (lto_promote_cross_file_statics): Likewise.
2569
2570 2012-04-14 Jan Hubicka <jh@suse.cz>
2571
2572 * lto.c: Update field referenced for new cgraph/varpool layout.
2573 * lto-partition.c: Likewise.
2574
2575 2012-04-11 Jan Hubicka <jh@suse.cz>
2576
2577 * lto.c: Update copyright; remove params.h, ipa-inline.h
2578 and ipa-utils.h inlines; inline lto-partition.h
2579 (ltrans_partition_def, ltrans_partition, add_cgraph_node_to_partition,
2580 add_varpool_node_to_partition, new_partition, free_ltrans_partitions,
2581 add_references_to_partition, add_cgraph_node_to_partition_1,
2582 add_cgraph_node_to_partition, add_varpool_node_to_partition,
2583 undo_partition, partition_cgraph_node_p, partition_varpool_node_p,
2584 lto_1_to_1_map, node_cmp, varpool_node_cmp, lto_balanced_map,
2585 promote_var, promote_fn, lto_promote_cross_file_statics): move to...
2586 * lto-partition.c: ... here; new file.
2587 * lto-partition.h: New file.
2588 * Make-lang.in (lto.o): Update dependencies.
2589 (lto-partition.o): New.
2590
2591 2012-04-05 Richard Guenther <rguenther@suse.de>
2592
2593 * lto-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Remove
2594 definition.
2595
2596 2012-03-12 Richard Guenther <rguenther@suse.de>
2597
2598 * lto-lang.c (builtin_type_for_size): Use lto_type_for_size.
2599
2600 2012-03-06 Richard Guenther <rguenther@suse.de>
2601
2602 PR lto/52097
2603 * lto.c (uniquify_nodes): Merge TYPE_FIELDS of variant types.
2604
2605 2012-02-28 Richard Guenther <rguenther@suse.de>
2606
2607 PR lto/52400
2608 * lto.c (lto_register_function_decl_in_symtab): Do not register
2609 a reverse renamed decl mapping.
2610
2611 2012-01-06 Jakub Jelinek <jakub@redhat.com>
2612
2613 PR lto/51774
2614 * lto-lang.c (handle_returns_twice_attribute): New function.
2615 (lto_attribute_table): Add returns_twice attribute.
2616
2617 2011-12-21 Richard Guenther <rguenther@suse.de>
2618
2619 * lto.c (GIMPLE_REGISTER_TYPE): New define.
2620 (LTO_FIXUP_TREE): Use it.
2621 (uniquify_nodes): Mark new non-prevailing types and avoid
2622 calling gimple_register_type on others.
2623 (lto_read_decls): Add comment.
2624
2625 2011-12-13 Eric Botcazou <ebotcazou@adacore.com>
2626
2627 * lto.h (lto_parse_hex): Delete.
2628 * lto.c (lto_read_decls): Use 'int' for offsets.
2629 (lto_parse_hex): Make static and return proper 64-bit host type.
2630 (lto_resolution_read): Use proper 64-bit host type.
2631
2632 2011-12-13 Richard Guenther <rguenther@suse.de>
2633
2634 PR lto/48354
2635 * lto.c (lto_ft_decl_non_common): When we merged DECL_ORIGINAL_TYPE
2636 with the type of the TYPE_DECL clear DECL_ORIGINAL_TYPE.
2637
2638 2011-12-01 Uros Bizjak <ubizjak@gmail.com>
2639
2640 * lto-lang.c (lto_attribute_table): Handle *tm regparm.
2641 (ignore_attribute): New.
2642
2643 2011-11-21 Aldy Hernandez <aldyh@redhat.com>
2644
2645 * lto-lang.c (lto_attribute_table): Handle transaction_pure.
2646 (handle_transaction_pure_attribute): New.
2647
2648 2011-11-03 Richard Guenther <rguenther@suse.de>
2649
2650 PR lto/44965
2651 * lto-lang.c (lto_post_options): Do not read file options.
2652 * lto.c (lto_read_all_file_options): Remove.
2653 (lto_init): Call lto_set_in_hooks here.
2654
2655 2011-10-09 Jan Hubicka <jh@suse.cz>
2656
2657 * lto.c (node_cmp, varpool_node_cmp): New functions.
2658 (lto_balanced_map): Honnor -fno-toplevel-reorder of vars&functions.
2659 (cmp_partitions): Rename to ...
2660 (cmp_partitions_size): ... this one.
2661 (cmp_partitions_order): New function.
2662 (lto_wpa_write_files): Sort partitions by order when
2663 -fno-toplevel-reorder is used.
2664
2665 2011-10-09 Andi Kleen <ak@linux.intel.com>
2666
2667 * lto.c (lto_section_read): Call fatal_error on IO or mmap errors.
2668
2669 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2670
2671 * lto-lang.c (def_builtin_1): Delete old interface with two
2672 parallel arrays to hold standard builtin declarations, and replace
2673 it with a function based interface that can support creating
2674 builtins on the fly in the future. Change all uses, and poison
2675 the old names. Make sure 0 is not a legitimate builtin index.
2676
2677 2011-10-02 Andi Kleen <ak@linux.intel.com>
2678
2679 * lto-object.c (lto_obj_add_section_data): Add list.
2680 (lto_obj_add_section): Fill in list.
2681 (ltoobj_build_section_table): Pass through list.
2682 * lto.c (file_data_list): Declare.
2683 (create_subid_section_table): Pass arguments directly.
2684 Fill in list of file_datas.
2685 (lwstate): Delete.
2686 (lto_create_files_from_ids): Pass in direct arguments.
2687 Don't maintain list.
2688 (lto_file_read): Use explicit section and file data lists.
2689 (lto_read_all_file_options): Pass in section_list.
2690 * lto.h (lto_obj_build_section_table): Add list.
2691 (lto_section_slot): Add next.
2692 (lto_section_list): Declare.
2693
2694 2011-10-02 Jan Hubicka <jh@suse.cz>
2695
2696 PR lto/47247
2697 * common.c (lto_resolution_str): Add new resolution.
2698 * common.h (lto_resolution_str): Likewise.
2699
2700 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
2701 Andi Kleen <ak@linux.intel.com>
2702
2703 PR lto/50568
2704 * lto.c (lto_splay_tree_delete_id): New.
2705 (lto_splay_tree_compare_ids): Likewise.
2706 (lto_splay_tree_lookup): Likewise.
2707 (lto_splay_tree_id_equal_p): Likewise.
2708 (lto_splay_tree_insert): Likewise.
2709 (lto_splay_tree_new): Likewise.
2710 (lto_resolution_read): Change id to unsigned HOST_WIDE_INT.
2711 Use lto_splay_tree_id_equal_p and lto_splay_tree_lookup.
2712 (create_subid_section_table): Use lto_splay_tree_lookup and
2713 lto_splay_tree_insert.
2714 (lto_file_read): Use lto_splay_tree_new.
2715
2716 2011-09-26 Andi Kleen <ak@linux.intel.com>
2717
2718 * lto.c (lto_resolution_read): Remove id dumping.
2719 (lto_section_with_id): Turn id HOST_WIDE_ID.
2720 (create_subid_section_table): Dito.
2721
2722 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2723
2724 * lto-lang.c (lto_init): Likewise. Also, avoid calling
2725 linemap_add twice.
2726
2727 2011-08-11 Martin Jambor <mjambor@suse.cz>
2728
2729 * lto.c (uniquify_nodes): Use main variant's BINFO too.
2730
2731 2011-08-08 Diego Novillo <dnovillo@google.com>
2732
2733 * Make-lang.in (lto/lto.o): Add TREE_STREAMER_H.
2734 * lto.c: Include tree-streamer.h.
2735
2736 2011-07-06 Richard Guenther <rguenther@suse.de>
2737
2738 * lto-lang.c (lto_init):
2739 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2740
2741 2011-06-11 Jan Hubicka <jh@suse.cz>
2742
2743 PR lto/48246
2744 * lto.c (lto_1_to_1_map): Don't create empty partitions.
2745 (lto_balanced_map): Likewise.
2746
2747 2011-06-11 Jan Hubicka <jh@suse.cz>
2748
2749 * lto.c (add_cgraph_node_to_partition_1): Break out from ...
2750 (add_cgraph_node_to_partition) ... here; walk aliases.
2751 (lto_1_to_1_map): Remove same body alias code.
2752 (promote_fn): Likewise.
2753 (lto_promote_cross_file_statics): Update comment.
2754
2755 2011-06-07 Diego Novillo <dnovillo@google.com>
2756
2757 * lto.c (uniquify_nodes): Move code to register decls to
2758 the loop that computes canonical types.
2759
2760 2011-06-07 Richard Guenther <rguenther@suse.de>
2761
2762 * lto-lang.c (lto_init): Do not set
2763 size_type_node or call set_sizetype.
2764
2765 2011-06-04 Diego Novillo <dnovillo@google.com>
2766
2767 * lto.c (lto_init): New.
2768 (lto_main): Call it.
2769
2770 2011-06-03 Diego Novillo <dnovillo@google.com>
2771
2772 * lto.c (get_resolution): Move from lto-streamer-in.c.
2773 (lto_register_var_decl_in_symtab): Likewise.
2774 (lto_register_function_decl_in_symtab): Likewise.
2775 (uniquify_nodes): Call lto_register_var_decl and
2776 lto_register_function_decl_in_symtab after reading a new
2777 VAR_DECL or FUNCTION_DECL.
2778
2779 2011-06-01 Richard Guenther <rguenther@suse.de>
2780
2781 * lto-lang.c (lto_register_canonical_types): New function.
2782 (lto_init): Register common nodes with the canonical type machinery.
2783 Do not play tricks with char_type_node.
2784
2785 2011-05-26 Richard Guenther <rguenther@suse.de>
2786
2787 * lto.c (uniquify_nodes): Fix bug in one of the previous changes.
2788
2789 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2790
2791 * lto.c (lto_ft_typed): New function.
2792 (lto_ft_common): Call it.
2793 (lto_ft_constructor): Likewise.
2794 (lto_ft_expr): Likewise.
2795 (lto_fixup_prevailing_decls): Check for TS_COMMON before accessing
2796 TREE_CHAIN.
2797
2798 2011-05-20 Richard Guenther <rguenther@suse.de>
2799
2800 * lto.c (lto_ft_common): Remove pointer-to chain teardown.
2801 (lto_ft_type): Move main-variant and pointer-to chain building ...
2802 (uniquify_nodes): ... here. Compute TYPE_CANONICAL also here,
2803 in a separate final loop.
2804
2805 2011-05-19 Richard Guenther <rguenther@suse.de>
2806
2807 * lto.c (uniquify_nodes): First register all types before
2808 fixing up the tree SCC.
2809
2810 2011-05-11 Jan Hubicka <jh@suse.cz>
2811
2812 PR lto/48952
2813 * lto.c (do_whole_program_analysis): Do not register cgraph hooks.
2814
2815 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2816
2817 * lto.c (lto_ft_type): Use TYPE_MINVAL and TYPE_MAXVAL. Adjust
2818 location of binfo field.
2819 (lto_fixup_prevailing_decls): Likewise.
2820
2821 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2822
2823 * lto-lang.c (def_fn_type): Don't call build_function_type, call
2824 build_function_type_array or build_varargs_function_type_array
2825 instead.
2826
2827 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2828
2829 * lto-lang.c (global_bindings_p): Return bool.
2830
2831 2011-05-07 Jan Hubicka <jh@suse.cz>
2832
2833 * lto.c (lto_materialize_function): Use
2834 cgraph_function_with_gimple_body_p.
2835 (add_cgraph_node_to_partition): Do not re-add items to partition;
2836 handle thunks.
2837 (add_varpool_node_to_partition): Do not re-add items to partition.
2838
2839 2011-05-03 Jan Hubicka <jh@suse.cz>
2840
2841 * lto.c (free_ltrans_partitions): Fix accidental commit.
2842
2843 2011-05-03 Jan Hubicka <jh@suse.cz>
2844
2845 * lto.c (ltrans_partition_def): Remove GTY annotations.
2846 (ltrans_partitions): Move to heap.
2847 (new_partition): Update.
2848 (free_ltrans_partitions): New function.
2849 (lto_wpa_write_files): Use it.
2850
2851 2011-04-29 Martin Jambor <mjambor@suse.cz>
2852
2853 * lto.c: Include ipa-utils.h.
2854 (lto_balanced_map): Update call to ipa_reverse_postorder.
2855 * Make-lang.in (lto/lto.o): Add IPA_UTILS_H to dependencies.
2856
2857 2011-04-29 Michael Matz <matz@suse.de>
2858
2859 * lto.c (toplevel): Include tree-flow.h.
2860 (lto_read_in_decl_state): Don't merge types here.
2861 (tree_with_vars): New static hash table.
2862 (remember_with_vars): New static functions.
2863 (LTO_FIXUP_TYPE): New macro.
2864 (lto_ft_common, lto_ft_decl_minimal, lto_ft_decl_common,
2865 lto_ft_decl_with_vis, lto_ft_decl_non_common, lto_ft_function,
2866 lto_ft_field_decl, lto_ft_type, lto_ft_binfo, lto_ft_constructor,
2867 lto_ft_expr, lto_fixup_types, uniquify_nodes): New static functions.
2868 (lto_read_decls): Uniquify while reading in trees.
2869 (lto_fixup_data_t, LTO_FIXUP_SUBTREE,
2870 LTO_REGISTER_TYPE_AND_FIXUP_SUBTREE, no_fixup_p, lto_fixup_common,
2871 lto_fixup_decl_minimal, lto_fixup_decl_common, lto_fixup_decl_with_vis,
2872 lto_fixup_decl_non_common, lto_fixup_function, lto_fixup_field_decl,
2873 lto_fixup_type, lto_fixup_binfo, lto_fixup_constructor,
2874 lto_fixup_tree): Remove.
2875 (lto_fixup_state): Remove data argument. Use
2876 lto_symtab_prevailing_decl.
2877 (LTO_SET_PREVAIL, LTO_NO_PREVAIL): New macros.
2878 (lto_fixup_prevailing_decls): New function.
2879 (lto_fixup_state_aux): Argument aux is unused.
2880 (lto_fixup_decls): Don't allocate pointer sets, don't use
2881 lto_fixup_tree, use lto_fixup_prevailing_decls.
2882 (read_cgraph_and_symbols): Allocate and remove tree_with_vars.
2883 * Make-lang.in (lto/lto.o): Depend on $(TREE_FLOW_H).
2884
2885 2011-04-16 Eric Botcazou <ebotcazou@adacore.com>
2886
2887 * lto.c (lto_balanced_map): Fix typos in head comment.
2888 (lto_promote_cross_file_statics): Fix long lines and remove redundant
2889 test.
2890
2891 2011-04-16 Jan Hubicka <jh@suse.cz>
2892
2893 * lto.c (lto_balanced_map): Update.
2894
2895 2011-04-14 Jan Hubicka <jh@suse.cz>
2896
2897 * lto.c: Include ipa-inline.h
2898 (add_cgraph_node_to_partition, undo_partition): Use inline_summary
2899 accessor.
2900 (ipa_node_duplication_hook): Fix declaration.
2901 * Make-lang.in (lto.o): Update dependencies.
2902
2903 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2904
2905 * lto-tree.h (union lang_tree_node): Check for TS_COMMON before
2906 calling TREE_CHAIN.
2907 * lto.c (lto_fixup_common): Likewise.
2908
2909 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2910
2911 * lto-lang.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2912 (handle_type_generic_attribute): Likewise.
2913
2914 2011-04-03 Michael Matz <matz@suse.de>
2915
2916 * lto.c (lto_materialize_function): Don't read and then discard
2917 sections in WPA mode.
2918 (lto_read_in_decl_state): Adjust call to lto_streamer_cache_get.
2919
2920 * lto-lang.c (registered_builtin_fndecls): Remove.
2921 (lto_getdecls): Return NULL_TREE.
2922 (lto_builtin_function): Don't remember in registered_builtin_fndecls.
2923
2924 2011-03-31 Richard Guenther <rguenther@suse.de>
2925
2926 PR lto/48246
2927 * lto.c (lto_wpa_write_files): Disable assert for non-empty
2928 partitions when checking is not enabled.
2929
2930 2011-03-25 Kai Tietz <ktietz@redhat.com>
2931
2932 * lto.c (lto_resolution_read): Use filename_cmp instead
2933 of strcmp.
2934 (lto_read_section_data): Likewise.
2935
2936 2011-03-25 Jeff Law <law@redhat.com>
2937
2938 * lto-lang.c (def_fn_type): Add missing va_end.
2939
2940 2011-03-21 Kai Tietz <ktietz@redhat.com>
2941
2942 PR target/12171
2943 * lto-lang.c (lto_attribute_table): Adjust table.
2944
2945 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2946
2947 PR bootstrap/47807
2948 * Make-lang.in (lto/lto-lang.o): Depend on $(LTO_STREAMER_H) instead
2949 of lto-streamer.h.
2950
2951 2011-02-18 Richard Guenther <rguenther@suse.de>
2952
2953 PR lto/47798
2954 * lto-tree.h (lto_global_var_decls): Do not declare here.
2955 * lto-lang.c: Include lto-streamer.h.
2956 * Make-lang.in (lto-lang.o): Adjust dependencies.
2957
2958 2011-02-10 Kai Tietz <kai.tietz@onevision.com>
2959
2960 PR lto/47241
2961 * lto.c (lto_read_section_data): Free
2962 fd_name in failure case.
2963 For mingw targets don't hash file-descriptor.
2964 (read_cgraph_and_symbols): Close current_lto_file
2965 in failure case.
2966
2967 2011-01-11 Jan Hubicka <jh@suse.cz>
2968
2969 PR lto/45721
2970 PR lto/45375
2971 * lto.c (partition_cgraph_node_p, partition_varpool_node_p): Weakrefs
2972 are not partitioned.
2973
2974 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2975
2976 * lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
2977 Use prototype_p.
2978
2979 2010-12-06 Richard Guenther <rguenther@suse.de>
2980
2981 PR lto/46796
2982 * lto-lang.c (lto_init): Give names to basic types.
2983
2984 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2985
2986 * lto-object.c: Don't include toplev.h.
2987 * Make-lang.in (lto/lto-object.o): Don't depend on toplev.h.
2988
2989 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2990
2991 * Make-lang.in (lto/lto-object.o): Depend on toplev.h instead of
2992 $(TOPLEV_H).
2993
2994 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2995
2996 * lto-endian.h: Delete.
2997 * lto-object.c: Don't include "libiberty.h".
2998 (O_BINARY): Don't define.
2999 * lto.c: Don't include "libiberty.h" or <sys/mman.h>.
3000 (O_BINARY): Don't define.
3001
3002 2010-11-23 Richard Guenther <rguenther@suse.de>
3003
3004 * lto.c (read_cgraph_and_symbols): Remove newline from diagnostic.
3005
3006 2010-11-23 Richard Guenther <rguenther@suse.de>
3007
3008 PR lto/46605
3009 * lto.c (read_cgraph_and_symbols): Bail out after errors.
3010
3011 2010-11-17 Joseph Myers <joseph@codesourcery.com>
3012
3013 * lto.c (lto_main): Take no arguments.
3014 * lto.h (lto_main): Update prototype.
3015
3016 2010-11-16 Ian Lance Taylor <iant@google.com>
3017
3018 * lto-object.c (lto_obj_file_open): Call
3019 simple_object_attributes_merge rather than
3020 simple_object_attributes_compare.
3021
3022 2010-11-12 Joseph Myers <joseph@codesourcery.com>
3023
3024 * Make-lang.in (lto/lto.o): Use $(OPTS_H).
3025 * lto-lang.c (lto_handle_option): Take location_t parameter.
3026
3027 2010-11-10 Joseph Myers <joseph@codesourcery.com>
3028
3029 * lto.c (lto_resolution_read): Start diagnostics with lowercase
3030 letters and remove trailing '.'.
3031 (lto_file_finalize): Start diagnostic with a lowercase letter.
3032
3033 2010-11-02 Ian Lance Taylor <iant@google.com>
3034
3035 * lto-object.c: New file.
3036 * lto-elf.c: Remove file.
3037 * lto-macho.c: Remove file.
3038 * lto-macho.h: Remove file.
3039 * lto-coff.c: Remove file.
3040 * lto-coff.h: Remove file.
3041 * Make-lang.in (LTO_OBJS): Change lto/$(LTO_BINARY_READER).o to
3042 lto/lto-object.o.
3043 ($(LTO_EXE)): Remove $(LTO_USE_LIBELF)
3044 (lto/lto-objfile.o): New target.
3045 (lto/lto-elf.o, lto/lto-coff.o, lto/lto-macho.o): Remove targets.
3046 (lto/lto.o): Remove $(LIBIBERTY_H).
3047
3048 2010-10-22 Jan Hubicka <jh@suse.cz>
3049
3050 * lto.c (add_cgraph_node_to_partition,
3051 add_varpool_node_to_partition): Add debug info.
3052 (lto_1_to_1_map, lto_balanced_map): Do not re-add already
3053 partitioned nodes.
3054 (do_whole_program_analysis): Set function flags before dumping.
3055
3056 2010-10-22 Richard Guenther <rguenther@suse.de>
3057
3058 * lto.c (lto_fixup_type): Fixup TYPE_CANONICAL again, via
3059 the new gimple_register_canonical_type.
3060
3061 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
3062
3063 PR bootstrap/45954
3064 * config-lang.in (boot_language): Set to $enable_lto.
3065
3066 2010-10-18 Jakub Jelinek <jakub@redhat.com>
3067
3068 PR lto/45638
3069 * Make-lang.in (check-lto): New dummy target.
3070
3071 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
3072
3073 * lto-elf.c (SHN_XINDEX): Define if not already defined.
3074
3075 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3076
3077 * lto-lang.c (lto_init_options): Change to
3078 lto_init_options_struct. Update parameters.
3079 (LANG_HOOKS_INIT_OPTIONS): Don't define.
3080 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3081
3082 2010-10-06 Jan Hubicka <jh@suse.cz>
3083
3084 * lto.c (lto_balanced_map): Fix accounting of program size.
3085
3086 2010-10-06 Jan Hubicka <jh@suse.cz>
3087
3088 * lto.c (lto_balanced_map): Do not produce empty partitions.
3089
3090 2010-10-06 Andi Kleen <ak@linux.intel.com>
3091
3092 * lto.c (lto_process_name): Add.
3093 (lto_main): Call lto_process_name.
3094
3095 2010-10-06 Jan Hubicka <jh@suse.cz>
3096
3097 * lto.c (partition_cgraph_node_p, partition_varpool_node_p): Handle
3098 COMDATs required by the linker.
3099
3100 2010-10-05 Ian Lance Taylor <iant@google.com>
3101
3102 * lto.c (lto_section_with_id): Make s a const pointer.
3103
3104 2010-10-05 Jan Hubicka <jh@suse.cz>
3105
3106 * lto.c: Include params.h.
3107 (add_cgraph_node_to_partition, add_varpool_node_to_partition): Do
3108 refcounting in aux field.
3109 (undo_partition, partition_cgraph_node_p, partition_varpool_node_p):
3110 New functions.
3111 (lto_1_to_1_map): Simplify.
3112 (lto_balanced_map): New function.
3113 (do_whole_program_analysis): Chose proper partitioning alg.
3114 * Make-lang.in (lto.o): Add dependency on params.h
3115
3116 2010-10-04 Andi Kleen <ak@linux.intel.com>
3117
3118 * Make-lang.in (lto1): Add + to build rule.
3119
3120 2010-10-03 Andi Kleen <ak@linux.intel.com>
3121
3122 * lto.c (lto_file_finalize): Replace gcc_assert for missing section
3123 with fatal_error.
3124
3125 2010-09-28 Jan Hubicka <jh@suse.cz>
3126
3127 * lto-lang.c (handle_leaf_attribute): New function.
3128 (lto_attribute_tables): Add leaf.
3129
3130 2010-09-25 Jie Zhang <jie@codesourcery.com>
3131
3132 * lto.c (lto_read_all_file_options): Start a new line after
3133 printing out file names.
3134
3135 2010-09-24 Jan Hubicka <jh@suse.cz>
3136
3137 * lto.c (lto_promote_cross_file_statics): Use const_value_known_p.
3138
3139 2010-09-20 Jan Hubicka <jh@suse.cz>
3140
3141 PR tree-optimize/45605
3142 * lto.c (lto_promote_cross_file_statics): Use const_value_known_p.
3143
3144 2010-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3145
3146 * lto-elf.c (lto_obj_file_open): Also provide filename when
3147 elf_begin fails.
3148
3149 2010-09-17 Jan Hubicka <jh@suse.cz>
3150
3151 * lto.c (lto_promote_cross_file_statics): Use const_value_known.
3152
3153 2010-09-17 Richard Guenther <rguenther@suse.de>
3154
3155 * lang.opt (flag_wpa): Also enable for the driver.
3156
3157 2010-09-16 Jan Hubicka <jh@suse.cz>
3158
3159 * lto.c (lto_materialize_function): Do not tamper with STATIC and
3160 EXTERNAL flags.
3161
3162 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3163
3164 * lto-tree.h (struct lang_type): Add variable_size GTY option.
3165
3166 2010-09-08 Jan Hubicka <jh@suse.cz>
3167
3168 * lto.c (real_file_count, real_file_decl_data): New static vars.
3169 (read_cgraph_and_symbols): Use it.
3170
3171 2010-09-08 Richard Guenther <rguenther@suse.de>
3172
3173 * lto.c (read_cgraph_and_symbols): Collect again after each
3174 file.
3175
3176 2010-09-07 Jan Hubicka <jh@suse.cz>
3177
3178 * lto.c (promote_var, promote_fn): Set DECL_VISIBILITY_SPECIFIED.
3179
3180 2010-09-03 Richard Guenther <rguenther@suse.de>
3181
3182 * lto-elf.c (validate_file): Always error if validation fails.
3183
3184 2010-08-20 Jan Hubicka <jh@suse.cz>
3185
3186 * lto.c (lto_1_to_1_map): Be prepared for node to have no file data.
3187 (lto_wpa_write_files): Update comments.
3188
3189 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
3190
3191 PR bootstrap/45357
3192 * lto.c (lto_materialize_function): Replace has_analyzed_clone
3193 with has_analyzed_clone_p.
3194
3195 2010-08-20 Jan Hubicka <jh@suse.cz>
3196
3197 * lto.c (has_analyzed_clone_p): New function
3198 (lto_materialize_function): Use callgraph to determine if
3199 body is needed.
3200 (materialize_cgraph): Remove DECL_IS_BUILTIN check.
3201
3202 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3203
3204 * lto.c: Use FOR_EACH_VEC_ELT.
3205
3206 2010-07-27 Andi Kleen <ak@linux.intel.com>
3207
3208 * Make-lang.in (lto.o): Add dependency to splay-tree.h
3209
3210 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3211
3212 * lto-lang.c (lto_handle_option): Update prototype and return
3213 value type. Remove duplicate assignment to result.
3214
3215 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3216
3217 * lto-lang.c (lto_option_lang_mask, lto_complain_wrong_lang_p):
3218 New.
3219 (lto_init_options): Update prototype.
3220 (LANG_HOOKS_OPTION_LANG_MASK, LANG_HOOKS_COMPLAIN_WRONG_LANG_P):
3221 Define.
3222
3223 2010-07-10 Andi Kleen <ak@linux.intel.com>
3224
3225 PR lto/44992
3226 * lto.c: Include splay-tree.h
3227 (lto_resolution_read): Change to walk file_ids tree and parse
3228 extra file_id in resolution file.
3229 (lto_section_with_id): Add.
3230 (create_subid_section_table): Add.
3231 (lwstate): Add.
3232 (lto_create_files_from_ids): Add.
3233 (lto_file_read): Change to handle sub file ids and create list
3234 of file_datas. Add output argument for count.
3235 (get_section_data): Pass file_data to lto_get_section_name.
3236 (lto_flatten_file): Add.
3237 (read_cgraph_and_symbols): Handle linked lists of file_datas.
3238
3239 2010-07-10 Andi Kleen <ak@linux.intel.com>
3240
3241 * lto-coff.c (hash_name, eq_name): Move.
3242 (lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
3243 * lto-elf.c: (hash_name, eq_name): Move.
3244 (lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
3245 * lto-macho.c: (hash_name, eq_name): Move.
3246 (lto_obj_build_section_table): Call lto_obj_create_section_hash_table.
3247 * lto.c: (hash_name, eq_name): Move from lto-*.c
3248 (lto_obj_create_section_hash_table): Add.
3249 (free_with_string): Add.
3250
3251 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3252
3253 * lto-coff.c: Include diagnostic-core.h in every file that
3254 includes toplev.h.
3255 * lto-elf.c: Likewise.
3256 * lto-lang.c: Likewise.
3257 * lto-macho.c: Likewise.
3258
3259 2010-07-07 Jakub Jelinek <jakub@redhat.com>
3260
3261 * lto-elf.c (ELFOSABI_NONE, ELFOSABI_LINUX): Define if not defined.
3262 (validate_file): Allow merging of ELFOSABI_NONE with ELFOSABI_LINUX
3263 objects.
3264
3265 2010-07-05 Jan Hubicka <jh@suse.cz>
3266
3267 * lto.c (add_cgraph_node_to_partition): Forward declare; walk also
3268 nodes from same comdat group as well as all comdat functions referenced
3269 here.
3270 (add_varpool_node_to_partition, add_references_to_partition): New
3271 function.
3272 (lto_1_1_map): Skip COMDAT fnctions/variables; use
3273 add_varpool_node_to_partition; clear aux flags when done.
3274 (lto_promote_cross_file_statics): Do not promote stuff that gets
3275 duplicated to each ltrans.
3276
3277 2010-07-04 Jan Hubicka <jh@suse.cz>
3278
3279 * lto.c (read_cgraph_and_symbols): Dump cgraph before merging.
3280
3281 2010-06-13 Richard Guenther <rguenther@suse.de>
3282
3283 * lto.c (lto_fixup_type): Do not register or fixup TYPE_CANONICAL.
3284
3285 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
3286
3287 * lto.c (lto_resolution_read): Pre-initialize local variable r.
3288 * lto-coff.c (coff_write_object_file): Add braces to if.
3289
3290 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3291
3292 * lto.c (lto_read_in_decl_state): Use typed GC allocation.
3293 (lto_file_read): Likewise.
3294 (new_partition): Likewise.
3295 (read_cgraph_and_symbols): Likewise.
3296
3297 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3298
3299 * lto-lang.c (flag_no_builtin, flag_no_nonansi_builtin): Remove.
3300 (lto_handle_option): Don't set flag_signed_char here.
3301
3302 2010-06-04 Richard Guenther <rguenther@suse.de>
3303
3304 PR lto/41584
3305 * lto.c (lto_1_to_1_map): Use the proper file_data for
3306 varpool nodes.
3307
3308 2010-05-30 Jan Hubicka <jh@suse.cz>
3309
3310 * lto.c (promote_var, promote_fn, lto_wpa_write_files): Dump
3311 partitioning decisions.
3312
3313 2010-05-29 Jan Hubicka <jh@suse.cz>
3314
3315 * lto.c (bitmap vector): Remove.
3316 (lto_cgraph_node_sets, lto_varpool_node_sets): Remove.
3317 (ltrans_partition_def): New structure.
3318 (ltrans_partition): New type and VECtor.
3319 (new_partition): New function.
3320 (add_cgraph_node_to_partition): New function.
3321 (lto_1_to_1_map): Reorganize for partitions.
3322 (lto_add_inline_clones): Remove.
3323 (lto_add_all_inlinees): Remove.
3324 (lto_promote_cross_file_statics): Use partitions.
3325 (cmp_partitions): New function.
3326 (lto_wpa_write_files): Do not call lto_add_all_inlinees;
3327 use partitions; output files sorted by size.
3328
3329 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
3330
3331 * Make-lang.in: Replace vec.h dependency with VEC_H.
3332
3333 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3334
3335 * lto-coff.c (coff_errmsg): Remove.
3336 (lto_coff_begin_section_with_type, lto_obj_append_data): Use %m in
3337 errors instead of coff_errmsg (-1).
3338 * lto-macho.c (mach_o_errmsg): Remove.
3339 (lto_obj_begin_section, lto_obj_append_data): Use %m in errors
3340 instead of mach_o_errmsg (-1).
3341 * lto.c (read_cgraph_and_symbols): Use %m in errors instead of
3342 xstrerror (errno).
3343
3344 2010-05-28 Richard Guenther <rguenther@suse.de>
3345
3346 * lto.c (prefix_name_with_star): Removed.
3347 (strip_extension): Likewise.
3348 (get_filename_for_set): Likewise.
3349 (lto_write_ltrans_list): Fold into ...
3350 (lto_wpa_write_files): ... this. Name LTRANS units
3351 by suffixing the ltrans output list filename.
3352 (do_whole_program_analysis): Adjust.
3353
3354 2010-05-27 Joseph Myers <joseph@codesourcery.com>
3355
3356 * lto.c: Include diagnostic-core.h instead of diagnostic.h.
3357 (read_cgraph_and_symbols, lto_main): Use seen_error.
3358 * Make-lang.in (lto/lto.o): Update dependencies.
3359
3360 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
3361
3362 PR lto/44230
3363 * lto.h (lto_eh_personality): New prototype.
3364 * lto.c: Include debug.h.
3365 (first_personality_decl): New static variable.
3366 (lto_materialize_function): Set it to DECL_FUNCTION_PERSONALITY of the
3367 first function for which it is non-null.
3368 (lto_eh_personality_decl): New static variable.
3369 (lto_eh_personality): New function.
3370 * lto-lang.c (LANG_HOOKS_EH_PERSONALITY): Redefine to above function.
3371 * Make-lang.in (lto/lto.o): Add dependency on debug.h.
3372
3373 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3374
3375 * lto-lang.c: Do not include expr.h.
3376
3377 2010-05-24 Richard Guenther <rguenther@suse.de>
3378
3379 * lto-elf.c (lto_obj_build_section_table): Work around
3380 FreeBSD libelf issue.
3381
3382 2010-05-22 Richard Guenther <rguenther@suse.de>
3383
3384 * lto.c (read_cgraph_and_symbols): Do not collect.
3385
3386 2010-05-20 Jan Hubicka <jh@suse.cz>
3387
3388 * lto.c (promote_var, promote_fn): New functions.
3389 (lto_promote_cross_file_statics): Compute correctly boundary including
3390 static initializers of readonly vars.
3391
3392 2010-05-18 Jan Hubicka <jh@suse.cz>
3393
3394 * lto.c (lto_1_to_1_map): Partition non-inline clones.
3395 (lto_promote_cross_file_statics): Deal with non-inline clones.
3396
3397 2010-05-18 Jan Hubicka <jh@suse.cz>
3398
3399 * lto.c (lto_materialize_function): Announce function when
3400 reading body; allocate_struct_function only when reading body;
3401 do not finalize local statics; ggc_collect after reading;
3402 do not mark reachable node.
3403 (materialize_cgraph): Do not announce function.
3404
3405 2010-05-11 Jan Hubicka <jh@suse.cz>
3406
3407 * lto.c (materialize_cgraph): Revert my previous patch.
3408
3409 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3410
3411 * lto-coff.c (IMAGE_FILE_MACHINE_ADM64): Rename to
3412 IMAGE_FILE_MACHINE_AMD64.
3413 * lto-coff.c (IMAGE_FILE_MACHINE_ADM64): Likewise.
3414
3415 2010-05-11 Jan Hubicka <jh@suse.cz>
3416
3417 * lto.c (lto_fixup_decls): Remove global var decls freeing here.
3418 (materialize_cgraph): Add it here.
3419
3420 2010-05-11 Jan Hubicka <jh@suse.cz>
3421
3422 * lto.c (lto_fixup_decls): Free no longer needed lto_global_var_decls
3423 vector.
3424
3425 2010-05-11 Jan Hubicka <jh@suse.cz>
3426
3427 * lto.c (lto_1_to_1_map): Remove some no longer needed checks.
3428 (lto_promote_cross_file_statics): Never promote DECL_EXTERNAL;
3429 use reachable_from_other_partition_p and
3430 referenced_from_other_partition_p test.
3431
3432 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3433
3434 * lto-coff.c (validate_file): Add x64-coff support.
3435 * lto-coff.h (IMAGE_FILE_MACHINE_ADM64): New.
3436 (COFF_KNOWN_MACHINES): Add IMAGE_FILE_MACHINE_ADM64.
3437 * lto-lang.c (lto_build_c_type_nodes): Add check for
3438 'long long unsigned int' for x64-windows.
3439 (lto_init): Likewise.
3440
3441 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3442
3443 * lto.h (struct lto_file_struct): Document offset member.
3444 * lto-endian.h: New file.
3445 * lto-macho.h: New file.
3446 * lto-macho.c: New file.
3447 * Make-lang.in: Add rule for lto-macho.o.
3448
3449 2010-05-07 Richard Guenther <rguenther@suse.de>
3450
3451 PR lto/43857
3452 PR lto/43371
3453 * lang.opt (fresolution): Change to ...
3454 (fresolution=): ... this.
3455 * lto-lang.c (lto_handle_option): Adjust.
3456
3457 2010-05-07 Richard Guenther <rguenther@suse.de>
3458
3459 * lto.c (DUMPBASE_SUFFIX): Remove.
3460 (lto_execute_ltrans): Move functionality to lto-wrapper.c.
3461 Rename to ...
3462 (lto_write_ltrans_list): ... only output the list of ltrans files.
3463 (lto_maybe_unlink): Remove.
3464 (do_whole_program_analysis): Do not execute LTRANS phase
3465 from here.
3466
3467 2010-05-06 H.J. Lu <hongjiu.lu@intel.com>
3468
3469 * lto-lang.c (lto_handle_option): Add argument kind.
3470
3471 2010-05-05 Jan Hubicka <jh@suse.cz>
3472
3473 * lto.c (lto_promote_cross_file_statics): Compute boundary based on
3474 refs.
3475
3476 2010-05-05 Jan Hubicka <jh@suse.cz>
3477
3478 * lto.c (lto_1_to_1_map): Partition only needed nodes.
3479
3480 2010-04-30 Jan Hubicka <jh@suse.cz>
3481
3482 * lto.c (get_filename_for_set): Look for cgraph node and if none found,
3483 use default name.
3484 (lto_wpa_write_files): Write any non-empty partition.
3485
3486 2010-04-30 Jan Hubicka <jh@suse.cz>
3487
3488 * lto.c: Do not attempt to make constant pool references global.
3489
3490 2010-04-28 Jan Hubicka <jh@suse.cz>
3491
3492 * lto.c (lto_read_in_decl_state): Use GGC.
3493 (lto_wpa_write_files): Announce what we are writting.
3494 (all_file_decl_data): New.
3495 (read_cgraph_and_symbols): Use GGC; correct timevars.
3496 (do_whole_program_analysis): Collect.
3497 * Make-lang.in (lto.o): Fix dependency.
3498 * Makefile.in (GTFILES): Add lto-streamer.h.
3499 * varpool.c (varpool_analyze_pending_decls): Use TV_VARPOOL.
3500 (varpool_assemble_pending_decls): Use VAROUT.
3501 * lto-streamer.h (lto_tree_ref_table): Annotate.
3502 (lto_in_decl_state): Annotate.
3503 (lto_file_decl_data): Annotate.
3504
3505 2010-04-28 Jan Hubicka <jh@suse.cz>
3506
3507 * lto.c (lto_varpool_node_sets): New.
3508 (lto_1_to_1_map): Partition varpool too.
3509 (globalize_context_t, globalize_cross_file_statics,
3510 lto_scan_statics_in_ref_table, lto_scan_statics_in_cgraph_node,
3511 lto_scan_statics_in_remaining_global_vars): Remove.
3512 (lto_promote_cross_file_statics): Rewrite.
3513 (get_filename_for_set): Take vset argument.
3514 (lto_wpa_write_files): Pass around vsets.
3515
3516 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
3517
3518 PR lto/42776
3519 * Make-lang.in (LTO_OBJS): Use LTO_BINARY_READER instead of
3520 hardcoding 'lto-elf.o'.
3521 ($(LTO_EXE)): Use LTO_USE_LIBELF instead of hardcoding '-lelf'.
3522
3523 * lto-coff.h: New file.
3524 * lto-coff.c: Likewise.
3525
3526 2010-04-26 Richard Guenther <rguenther@suse.de>
3527
3528 * lto.c (lto_fixup_type): Deal with non-type TYPE_CONTEXT.
3529
3530 2010-04-26 Dave Korn <dave.korn.cygwin@gmail.com>
3531
3532 * lto.h (lto_elf_file_open): Rename prototype from this ...
3533 (lto_obj_file_open): ... to this.
3534 (lto_elf_file_close): Likewise ...
3535 (lto_obj_file_close): ... and likewise.
3536 (lto_elf_build_section_table): Likewise ...
3537 (lto_obj_build_section_table): ... and likewise.
3538 (lto_elf_begin_section): Likewise ...
3539 (lto_obj_begin_section): ... and likewise.
3540 (lto_elf_append_data): Likewise ...
3541 (lto_obj_append_data): ... and likewise.
3542 (lto_elf_end_section): Likewise ...
3543 (lto_obj_end_section): ... and likewise.
3544 * lto.c (lto_file_read): Update references to the above.
3545 (lto_wpa_write_files): Likewise.
3546 (lto_read_all_file_options): Likewise.
3547 (read_cgraph_and_symbols): Likewise.
3548 * lto-lang.c (LANG_HOOKS_BEGIN_SECTION): Likewise.
3549 (LANG_HOOKS_APPEND_DATA): Likewise.
3550 (LANG_HOOKS_END_SECTION): Likewise.
3551 * lto-elf.c (lto_elf_file_open): Rename from this ...
3552 (lto_obj_file_open): ... to this, updating any references.
3553 (lto_elf_file_close): Likewise ...
3554 (lto_obj_file_close): ... and likewise.
3555 (lto_elf_build_section_table): Likewise ...
3556 (lto_obj_build_section_table): ... and likewise.
3557 (lto_elf_begin_section): Likewise ...
3558 (lto_obj_begin_section): ... and likewise.
3559 (lto_elf_append_data): Likewise ...
3560 (lto_obj_append_data): ... and likewise.
3561 (lto_elf_end_section): Likewise ...
3562 (lto_obj_end_section): ... and likewise.
3563
3564 2010-04-21 Jan Hubicka <jh@suse.cz>
3565
3566 * lto.c (lto_fixup_tree): Do not call wpa fixup.
3567 (materialize_cgraph): Likewise.
3568
3569 2010-04-21 Jan Hubicka <jh@suse.cz>
3570
3571 * lto.c (lto_wpa_write_files): Update.
3572 (read_cgraph_and_symbols): Be more verbose.
3573 (materialize_cgraph): Likewise.
3574 (do_whole_program_analysis): Likewise.
3575
3576 2010-04-21 Jan Hubicka <jh@suse.cz>
3577
3578 * lto.c (globalize_cross_file_statics): When function has address taken,
3579 it needs to be public.
3580
3581 2010-04-20 Jan Hubicka <jh@suse.cz>
3582
3583 * lto.c (lto_add_inline_clones): Do not track inlined_decls.
3584 (lto_add_all_inlinees): Likewise.
3585 (lto_wpa_write_files): Likewise.
3586
3587 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
3588
3589 * lto-lang.c (lto_init): Remove second argument in call to
3590 build_common_tree_nodes.
3591
3592 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3593
3594 * lto-elf.c [!HAVE_ELF_GETSHDRSTRNDX] (elf_getshdrstrndx): New
3595 function.
3596
3597 2010-03-09 Eric Botcazou <ebotcazou@adacore.com>
3598
3599 PR bootstrap/43276
3600 * lto-elf.c: Define EM_* constants if not already defined.
3601
3602 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
3603
3604 * lto-elf.c (is_compatible_architecture): New static function.
3605 (DEFINE_VALIDATE_EHDR): Use it to validate the architecture.
3606
3607 2010-02-11 Richard Guenther <rguenther@suse.de>
3608
3609 PR driver/43021
3610 * lto-elf.c (lto_elf_file_open): Handle file@offset case more
3611 appropriately.
3612
3613 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3614
3615 * lto.c (O_BINARY): Define.
3616 (lto_read_section_data): Open file in binary mode.
3617 * lto-elf.c (O_BINARY): Define.
3618 (lto_elf_file_open): Open file in binary mode.
3619
3620 2010-01-08 Richard Guenther <rguenther@suse.de>
3621
3622 PR lto/42528
3623 * lto-lang.c (lto_handle_option): Handle -f[un]signed-char.
3624 (lto_init): Do not init char_type_node in a standard way
3625 but according to flag_signed_char.
3626
3627 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
3628
3629 PR lto/41564
3630 * lto.c (DUMPBASE_SUFFIX): New.
3631 (lto_execute_ltrans): Append a sequence number to -dumpbase
3632 for LTRANS.
3633
3634 2010-01-02 H.J. Lu <hongjiu.lu@intel.com>
3635
3636 PR lto/42580
3637 * lto-elf.c (lto_elf_file_open): Stop if the command line
3638 option file is missing.
3639
3640 2009-12-15 Richard Guenther <rguenther@suse.de>
3641
3642 * lto.c (lto_fixup_field_decl): Fixup DECL_FIELD_OFFSET.
3643 (lto_post_options): Do not disable debuginfo.
3644
3645 2009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
3646
3647 * Make-lang.in ($(LTO_EXE)): Use $(LINKER).
3648
3649 2009-12-11 Richard Guenther <rguenther@suse.de>
3650
3651 PR lto/42037
3652 * lto.c (lto_resolution_read): Properly grow the vector.
3653
3654 2009-12-11 Richard Guenther <rguenther@suse.de>
3655
3656 PR lto/41915
3657 * lto-lang.c (lto_init_options): Initialize flag_complex_method
3658 to the C99 default. Do not set flag_unit_at_a_time.
3659
3660 2009-11-28 Jakub Jelinek <jakub@redhat.com>
3661
3662 * lto-lang.c (handle_nonnull_attribute): Remove unused attr_arg_num
3663 variable.
3664
3665 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
3666
3667 PR bootstrap/42096
3668 * lto-elf.c (lto_elf_file_open): Use lto_parse_hex.
3669 * lto.c (lto_parse_hex): New.
3670 (lto_resolution_read): Use lto_parse_hex.
3671 * lto.h (lto_parse_hex): New.
3672
3673 2009-11-17 Rafael Avila de Espindola <espindola@google.com>
3674
3675 * lto-elf.c (lto_file_init): Add offset argument.
3676 (lto_elf_file_open): Record the offset.
3677 * lto.c (lto_resolution_read): Change file_name into a lto_file
3678 argument. Check offsets.
3679 (lto_file_read): Update call to lto_resolution_read.
3680 * lto.h (lto_file_struct): Add the offset field.
3681
3682 2009-11-16 Rafael Avila de Espindola <espindola@google.com>
3683
3684 * lto-elf.c (lto_elf_file_open): Use strtoll to parse the offset.
3685
3686 2009-11-14 Jan Hubicka <jh@suse.cz>
3687
3688 * lto.c (read_cgraph_and_symbols): Set also ipa_transforms_to_apply.
3689
3690 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
3691
3692 * lang.opt (fresolution): Renamed from resolution.
3693 * lto-lang.c (lto_handle_option): Handle new option name.
3694 * lto.c (lto_resolution_read): Add more checks. Discard rest of line.
3695
3696 2009-11-04 Richard Guenther <rguenther@suse.de>
3697 Rafael Avila de Espindola <espindola@google.com>
3698
3699 * lto-elf.c (lto_elf_build_section_table): Add the base offset.
3700 (lto_elf_file_open): Handle offsets in arguments name@offest.
3701
3702 2009-10-30 Richard Guenther <rguenther@suse.de>
3703
3704 PR lto/41858
3705 * lto.c (lto_file_read): Do not set file_data->fd.
3706 (lto_read_section_data): Use a single-entry file-descriptor cache.
3707 Do not check the result of xmalloc.
3708 (free_section_data): Do not use file_data->fd.
3709 (lto_read_all_file_options): Likewise.
3710
3711 2009-10-22 Richard Guenther <rguenther@suse.de>
3712
3713 * lto.c (lto_fixup_jump_functions): Remove.
3714 (lto_fixup_decls): Do not fixup jump functions.
3715 (read_cgraph_and_symbols): Schedule cgraph merging after
3716 summary reading. Schedule type and decl fixup before
3717 summary reading.
3718
3719 2009-10-22 Richard Guenther <rguenther@suse.de>
3720
3721 * lto.c (lto_fixup_data_t): Remove free_list member.
3722 (lto_fixup_tree): Do not insert into free_list.
3723 (free_decl): Remove.
3724 (lto_fixup_decls): Remove free-list handling.
3725
3726 2009-10-22 Jan Hubicka <jh@suse.cz>
3727
3728 * lto.c (lto_fixup_jump_functions): New function.
3729 (lto_fixup_decls): Use it.
3730
3731 2009-10-16 Richard Guenther <rguenther@suse.de>
3732
3733 PR lto/41715
3734 * lto.c (lto_fixup_tree): Revert last change.
3735
3736 2009-10-14 Richard Guenther <rguenther@suse.de>
3737
3738 * lto.c (lto_fixup_tree): In case the prevailing decl is not
3739 compatible with the one we replace wrap it around a
3740 VIEW_CONVERT_EXPR.
3741
3742 2009-10-09 Richard Guenther <rguenther@suse.de>
3743
3744 PR lto/41635
3745 PR lto/41636
3746 * lto.c (read_cgraph_and_symbols): Do not assert we can open
3747 a file.
3748 * lto-elf.c (init_shdr##BITS): Fix i18n problems.
3749 (init_ehdr##BITS): Likewise.
3750
3751 2009-10-08 Joseph Myers <joseph@codesourcery.com>
3752
3753 * lto-elf.c (init_shdr##BITS, lto_elf_begin_section_with_type,
3754 init_ehdr##BITS, lto_elf_file_close): Remove trailing "." from
3755 diagnostics.
3756 * lto-lang.c (lto_post_options): Remove trailing "." from
3757 diagnostics.
3758
3759 2009-10-08 Richard Guenther <rguenther@suse.de>
3760
3761 * lto.c (read_cgraph_and_symbols): Free the gimple type merging
3762 hash tables.
3763
3764 2009-10-07 Joseph Myers <joseph@codesourcery.com>
3765
3766 * lto.c: Only include <sys/mman.h> if HAVE_MMAP_FILE.
3767
3768 2009-10-07 Jan Hubicka <jh@suse.cz>
3769
3770 * lto.c (read_cgraph_and_symbols): Mark functions neccesary only at
3771 ltrans stage; explain why this is needed and should not.
3772
3773 2009-10-05 Richard Guenther <rguenther@suse.de>
3774
3775 PR lto/41552
3776 PR lto/41487
3777 * lto.c (lto_read_decls): Do not register deferred decls.
3778 (read_cgraph_and_symbols): Delay symbol and cgraph merging
3779 until after reading the IPA summaries.
3780
3781 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
3782
3783 * Make-lang.in (lto/lto-lang.o): Don't depend on lto/common.h.
3784 (lto-lang.c): Don't include lto/common.h.
3785
3786 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
3787
3788 * Make-lang.in (LTO_OBJS): Remove lto/common.o.
3789 (lto/common.o): Remove.
3790 * common.c: Remove.
3791 * common.h (lto_kind_str): Remove.
3792 (lto_visibility_str): Remove.
3793 (lto_resolution_str): Make it static.
3794
3795 2009-10-01 Diego Novillo <dnovillo@google.com>
3796
3797 * lto.c (lto_read_decls): Add comment.
3798 Call internal_error instead of gcc_assert.
3799 (lto_resolution_read): Likewise.
3800 (lto_add_all_inlinees): Tidy.
3801 * Make-lang.in: Fix copyright boilerplate.
3802 (lto.pdf): New.
3803 (lto.install-pdf): New.
3804 * lto-tree.h: Fix copyright boilerplate.
3805 * lang-specs.h: Likewise.
3806 Remove ".lto" entry from compilers fragment.
3807 * lto-elf.c: Move inclusion of gelf.h after config.h.
3808 Tidy formatting everywhere.
3809 * lto.h: Fix copyright boilerplate.
3810 Tidy formatting everywhere.
3811 * common.c: Likewise.
3812 * config-lang.in: Likewise.
3813 * common.h: Likewise.
3814 * lto-lang.c: Likewise.
3815
3816 2009-10-01 Richard Guenther <rguenther@suse.de>
3817
3818 * lto.c (lto_read_section_data): Use plain lseek/read.
3819
3820 2009-10-01 Richard Guenther <rguenther@suse.de>
3821
3822 * lto.c (LTO_MMAP_IO): Define if we can mmap files and
3823 use sysconf to query the system page size.
3824 (lto_file_read): Implement fallback using stdio.
3825 (free_section_data): Likewise.
3826
3827 2009-09-29 Diego Novillo <dnovillo@google.com>
3828
3829 * lto-lang.c (lto_init): Really fix call to
3830 build_common_builtin_nodes.
3831
3832 2009-09-29 Diego Novillo <dnovillo@google.com>
3833
3834 * lto-lang.c (lto_init): Fix call to
3835 build_common_builtin_nodes.
3836
3837 2009-09-29 Richard Guenther <rguenther@suse.de>
3838
3839 PR lto/40754
3840 * lto-elf.c (init_shdr##BITS): Properly specify alignment
3841 in bytes.
3842 (first_data_block): New static variable.
3843 (lto_elf_append_data): Align the first data block in each
3844 section.
3845
3846 2009-09-28 Diego Novillo <dnovillo@google.com>
3847
3848 * lto-lang.c: Tidy. Remove stale FIXME lto markers.
3849 * lto.c (strip_extension): New.
3850 (get_filename_for_set): Call it. Do not call make_cwd_temp_file.
3851 (lto_execute_ltrans): Tidy.
3852 Do not pass -fwpa nor -fltrans-* to LTRANS.
3853 * opts.c: Tidy formatting and remove stale FIXME lto markers.
3854 * tree.c (need_assembler_name_p): Call
3855 lang_hooks.decls.may_need_assembler_name_p if set.
3856 * varasm.c (default_binds_local_p_1): Remove check for
3857 flag_ltrans.
3858 * varpool.c (decide_is_variable_needed): Do not test for
3859 in_lto_p.
3860
3861 2009-09-22 Richard Guenther <rguenther@suse.de>
3862
3863 PR lto/39276
3864 * lto.c (lto_execute_ltrans): Perform ltrans phase manually.
3865 * Make-lang.in: Remove ltrans-driver stuff.
3866 * config-lang.in: Likewise.
3867 * lang.opt (fltrans-driver): Remove.
3868 * lto-lang.c (lto_init_options): Remove code initializing
3869 ltrans_driver.
3870 * ltrans-driver: Remove.
3871
3872 2009-09-21 Diego Novillo <dnovillo@google.com>
3873
3874 * lto-lang.c (lto_define_builtins): Remove superfluous
3875 calls to targetm.init_builtins and build_common_builtin_nodes.
3876 (lto_init): Add targetm.arm_eabi_unwinder as parameter to
3877 build_common_builtin_nodes.
3878 * lto.c (lto_materialize_function): Do nothing if NODE is a
3879 clone.
3880
3881 2009-09-03 Diego Novillo <dnovillo@google.com>
3882
3883 * lto-elf.c (validate_file): Replace call to
3884 elf_getshstrndx with call to elf_getshdrstrndx.
3885
3886 2009-08-19 Richard Guenther <rguenther@suse.de>
3887
3888 * lto-lang.c (lto_init): Merge char_type_node with the
3889 appropriately signed variant.
3890
3891 2009-08-19 Richard Guenther <rguenther@suse.de>
3892
3893 PR lto/41071
3894 * lto.c (lto_fixup_common): Re-build the pointer-to chain part one.
3895 (lto_fixup_type): Re-build the pointer-to chain part two.
3896
3897 2009-08-19 Richard Guenther <rguenther@suse.de>
3898
3899 PR lto/41071
3900 * lto.c (lto_fixup_type): Re-build the type variant chain.
3901
3902 2009-08-19 Richard Guenther <rguenther@suse.de>
3903
3904 PR lto/41071
3905 * lto.c (lto_fixup_constructor): New function.
3906 (lto_fixup_tree): Replace all types. Properly fixup
3907 constructors and constants.
3908
3909 2009-08-14 Richard Guenther <rguenther@suse.de>
3910
3911 * lto.c (read_cgraph_and_symbols): Exchange TREE_CHAIN use
3912 for DECL_LANG_SPECIFIC.
3913
3914 2009-08-13 Richard Guenther <rguenther@suse.de>
3915
3916 PR lto/41032
3917 * lto-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define to NULL.
3918
3919 2009-07-30 Richard Guenther <rguenther@suse.de>
3920
3921 PR lto/40903
3922 * lto.c (read_cgraph_and_symbols): After fixing up decls choose
3923 the largest decl for output and free TREE_CHAIN for further
3924 use.
3925
3926 2009-07-24 Diego Novillo <dnovillo@google.com>
3927
3928 * Make-lang.in: Add empty lto.install-plugin target.
3929
3930 2009-07-13 Diego Novillo <dnovillo@google.com>
3931
3932 * lto.c (lto_fixup_tree): Handle IMPORTED_DECL.
3933
3934 2009-07-11 Richard Guenther <rguenther@suse.de>
3935
3936 * lto-lang.c (lto_write_globals): Wrapup global decls.
3937
3938 2009-07-10 Richard Guenther <rguenther@suse.de>
3939
3940 * lto-lang.c (lto_init): Allocate one more location to make
3941 BUILTINS_LOCATION correct.
3942
3943 2009-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3944
3945 * lto.c (free_section_data): Cast computed_offset to caddr_t.
3946
3947 2009-07-06 Diego Novillo <dnovillo@google.com>
3948
3949 * lto.c (lto_fixup_type): Fixup TYPE_SIZE and
3950 TYPE_SIZE_UNIT.
3951
3952 2009-07-06 Diego Novillo <dnovillo@google.com>
3953
3954 * lto.c (preload_common_nodes): Remove.
3955 (lto_read_in_decl_state): Call lto_streamer_cache_get.
3956 (lto_read_decls): Call lto_data_in_create and
3957 lto_data_in_delete.
3958 (free_decl): Do not call ggc_free.
3959 (lto_main): Call lto_init_reader.
3960 * lto-lang.c (lto_type_for_size): Handle intTI_type_node.
3961 (lto_init): Initialize main_identifier_node if needed.
3962 Make ptrdiff_type_node be integer_type_node.
3963
3964 2009-06-19 Diego Novillo <dnovillo@google.com>
3965
3966 * lto.c: Remove code guarded by #ifdef LTO_STREAM_DEBUGGING.
3967 Remove code guarded by #ifdef GLOBAL_STREAMER_TRACE.
3968 Remove code guarded by #ifdef LOCAL_TRACE.
3969
3970 2009-06-18 Diego Novillo <dnovillo@google.com>
3971
3972 * lto.c: Update license to GPLv3.
3973 * lto-elf.c: Likewise.
3974 * common.c: Likewise.
3975 * lto-lang.c: Likewise.
3976 * lto.h: Remove superfluous include files. Update all
3977 users.
3978
3979 2009-06-17 Diego Novillo <dnovillo@google.com>
3980
3981 * lto.c (read_cgraph_and_symbols): Call input_cgraph.
3982
3983 2009-06-02 Diego Novillo <dnovillo@google.com>
3984
3985 * lto.c (lto_1_to_1_map): Ignore nodes that have not been
3986 read in.
3987 (materialize_cgraph): Only materialize nodes that have a
3988 representation on file.
3989
3990 2009-06-01 Diego Novillo <dnovillo@google.com>
3991
3992 * lto-lang.c (lto_handle_option): Hanlde OPT_Wabi.
3993
3994 2009-05-31 Diego Novillo <dnovillo@google.com>
3995
3996 * lto-lang.c (lto_type_for_mode): Handle all the modes
3997 handled in c_common_type_for_mode.
3998
3999 2009-05-21 Diego Novillo <dnovillo@google.com>
4000
4001 * lto-elf.c: Always include <gelf.h>.
4002 * config-lang.in (target_libs): Remove.
4003 (build_by_default): Set to no.
4004
4005 2009-05-15 Diego Novillo <dnovillo@google.com>
4006
4007 * lto.c (lto_materialize_function): Assert that DECL is
4008 not a builtin.
4009 (materialize_cgraph): Don't try to materialize builtin
4010 functions.
4011 * lto-section-out.c (write_symbol_vec): Do not write
4012 builtin functions.
4013
4014 2009-05-13 Diego Novillo <dnovillo@google.com>
4015
4016 * lto-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define.
4017
4018 2009-05-07 Diego Novillo <dnovillo@google.com>
4019
4020 * lto.c (lto_resolution_read): Add type casts for C++ warnings.
4021 (LTO_REGISTER_TYPE_AND_FIXUP_SUBTREE): Define.
4022 (lto_fixup_type): Call it for TYPE_POINTER_TO,
4023 TYPE_REFERENCE_TO, TYPE_CONTEXT and TYPE_CANONICAL.
4024 (lto_fixup_tree): Call gimple_register_type when *TP is a
4025 type.
4026 (lto_main): Call bitmap_obstack_initialize.
4027
4028 2009-04-22 Diego Novillo <dnovillo@google.com>
4029
4030 * lto.c (free_section_data): Tidy.
4031 (lto_1_to_1_map): Tidy.
4032 (lto_add_all_inlinees): Tidy.
4033 (prefix_name_with_star): New.
4034 (get_filename_for_set): New.
4035 (lto_wpa_write_files): Call cgraph_node_set_needs_ltrans_p
4036 to determine what cgraph node sets to write.
4037 Call get_filename_for_set to compute temporary file
4038 names.
4039 (lto_execute_ltrans): Do not execute LTRANS on files with
4040 names that start with '*'.
4041 Move logic to execute LTRANS together so that LTRANS is
4042 invoked only if there are any files to compile.
4043 (do_whole_program_analysis): Only remove output files
4044 that do not start with '*'.
4045
4046 2009-04-06 Diego Novillo <dnovillo@google.com>
4047
4048 * lto-lang.c (lto_post_options): Set flag_excess_precision_cmdline.
4049 * lto.c (read_cgraph_and_symbols): Set cgraph_function_flags_ready.
4050 (lto_add_all_inlinees): Tidy.
4051
4052 2009-03-26 Diego Novillo <dnovillo@google.com>
4053
4054 * lto.c: Include gimple.h.
4055 (lto_read_in_decl_state): Call gimple_register_type for
4056 every type in every stream.
4057 (lto_fixup_common): Call gimple_register_type if T has a
4058 type.
4059 (do_whole_program_analysis): Call print_lto_report.
4060 (lto_main): Call print_lto_report after cgraph_optimize.
4061 * Make-lang.in (lto.o): Add dependency on GIMPLE_H.
4062
4063 2009-03-24 Diego Novillo <dnovillo@google.com>
4064
4065 * Make-lang.in (lto-lang.o): Add dependency on TARGET_H and EXPR_H.
4066 (lto.o): Add dependency on GIMPLE_H.
4067
4068 2009-03-10 Simon Baldwin <simonb@google.com>
4069
4070 * lto.c (lto_read_all_file_options): Close any open file descriptor
4071 contained in file_data before freeing.
4072
4073 2009-02-24 Rafael Avila de Espindola <espindola@google.com>
4074
4075 * lto.c (lto_add_inline_clones): Don't add the master clone. Check
4076 for a decl in the original bitmap, not a node.
4077 (lto_add_all_inlinees): Remove original nodes that are not needed.
4078 (lto_scan_statics_in_cgraph_node): Don't care if the node is the master.
4079
4080 2009-02-24 Diego Novillo <dnovillo@google.com>
4081
4082 * lto.c (lto_materialize_function): Update
4083 lto_stats.num_function_bodies.
4084 (get_section_data): Initialize *LEN to 0.
4085 (lto_1_to_1_map): Update lto_stats.num_cgraph_partitions.
4086 (lto_wpa_write_files): Update lto_stats.num_cgraph_nodes.
4087 Update lto_stats.num_output_files.
4088 (read_cgraph_and_symbols): Update lto_stats.num_input_files.
4089 (materialize_cgraph): Update lto_stats.num_input_cgraph_nodes.
4090 (lto_main): Initialize lto_stats.
4091 If flag_lto_report is set, call print_lto_report.
4092
4093 2009-02-19 Diego Novillo <dnovillo@google.com>
4094
4095 Revert
4096
4097 2009-02-19 Rafael Avila de Espindola <espindola@google.com>
4098
4099 * lto.c (lto_add_inline_clones): Don't add the
4100 master clone. Check for a decl in the original
4101 bitmap, not a node.
4102 (lto_add_all_inlinees): Remove original nodes
4103 that are not needed.
4104 (lto_scan_statics_in_cgraph_node): Don't care if
4105 the node is the master.
4106 (lto_promote_cross_file_statics): Use a new
4107 context.seen_node_decls for each set
4108
4109 2009-02-19 Rafael Avila de Espindola <espindola@google.com>
4110
4111 * lto.c (lto_add_inline_clones): Don't add the master clone. Check
4112 for a decl in the original bitmap, not a node.
4113 (lto_add_all_inlinees): Remove original nodes that are not needed.
4114 (lto_scan_statics_in_cgraph_node): Don't care if the node is the master.
4115 (lto_promote_cross_file_statics): Use a new context.seen_node_decls
4116 for each set
4117
4118 2009-02-18 Diego Novillo <dnovillo@google.com>
4119
4120 * lto.c (lto_wpa_write_files): Use timers TV_WHOPR_WPA
4121 and TV_WHOPR_WPA_IO.
4122 (lto_execute_ltrans): Use timer TV_WHOPR_WPA_LTRANS_EXEC.
4123 (read_cgraph_and_symbols): Use timer TV_IPA_LTO_DECL_IO.
4124 (materialize_cgraph): Use timer TV_IPA_LTO_GIMPLE_IO.
4125 Use timer TV_WHOPR_WPA or TV_WHOPR_LTRANS or TV_LTO
4126 depending on command line flags.
4127 (do_whole_program_analysis): Use timer TV_WHOPR_WPA.
4128 (lto_main): Remove timer uses.
4129
4130 2009-02-18 Rafael Avila de Espindola <espindola@google.com>
4131
4132 * lto.c (lto_materialize_function): Don't set DECL_EXTERN to 0.
4133 (lto_wpa_write_files): Update calls to renamed functions.
4134
4135 2009-02-17 Diego Novillo <dnovillo@google.com>
4136
4137 PR 39203
4138 * lto-lang.c (lto_post_options): Disable -fwhole-program
4139 when running LTRANS.
4140
4141 2009-02-10 Diego Novillo <dnovillo@google.com>
4142
4143 * lto.c (read_cgraph_and_symbols): Fix comment.
4144
4145 2009-02-10 Diego Novillo <dnovillo@google.com>
4146
4147 * lto.c (read_cgraph_and_symbols): Read options from all
4148 IL files.
4149
4150 2009-02-10 Diego Novillo <dnovillo@google.com>
4151
4152 * lto.c (read_cgraph_and_symbols): Factor out of lto_main.
4153 (materialize_cgraph): Likewise.
4154 (do_whole_program_analysis): Likewise.
4155 (lto_main): Call read_cgraph_and_symbols,
4156 materialize_cgraph and do_whole_program_analysis.
4157
4158 2009-02-10 Simon Baldwin <simonb@google.com>
4159
4160 * lto.c: Include lto-opts.h.
4161 * (lto_main): Clear file options at loop start, read any saved
4162 options from the first file handled, and re-issue options.
4163 * Makefile.in (lto.o): Add dependency on lto-opts.h.
4164
4165 2009-02-02 Diego Novillo <dnovillo@google.com>
4166
4167 * lto.c (lto_main): Stop LTO_TIMER and use
4168 TV_WHOPR_WPA_LTRANS_EXEC when launching LTRANS.
4169
4170 2009-01-30 H.J. Lu <hongjiu.lu@intel.com>
4171
4172 PR lto/38995
4173 * lto-elf.c (init_shdr##BITS): Set the sh_addralign field
4174 to POINTER_SIZE.
4175
4176 2009-01-29 Ramana Radhakrishnan <ramana.r@gmail.com>
4177
4178 * Make-lang.in (LTO_EXE): Link with all
4179 BACKENDLIBS and not only GMPLIBS
4180
4181 2009-01-28 H.J. Lu <hongjiu.lu@intel.com>
4182
4183 PR bootstrap/38992
4184 * lto-elf.c: Include gelf.h instead of libelf.h.
4185 (lto_elf_file_close): Replace elfx_update_shstrndx with
4186 gelf_getehdr, elf_getscn, gelf_getshdr, gelf_update_shdr and
4187 gelf_update_ehdr.
4188
4189 2009-01-28 H.J. Lu <hongjiu.lu@intel.com>
4190
4191 PR middle-end/38996
4192 * lto-elf.c (DEFINE_INIT_EHDR): Initialize e_version.
4193
4194 2009-01-26 Diego Novillo <dnovillo@google.com>
4195
4196 * lto-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Update.
4197
4198 2009-01-26 Diego Novillo <dnovillo@google.com>
4199
4200 * lto-lang.c (lto_types_compatible_p): Move to gimple.c
4201 and rename into gimple_types_compatible_p.
4202
4203 2009-01-12 Rafael Avila de Espindola <espindola@google.com>
4204
4205 * lto-lang.c (lang_hooks): Remove the const qualifier.
4206
4207 2009-01-06 Diego Novillo <dnovillo@google.com>
4208
4209 * ltrans-driver: Mark 'all' target as phony.
4210
4211 2008-12-31 Diego Novillo <dnovillo@google.com>
4212
4213 * ltrans-driver: Execute a NOP action for target 'all'.
4214
4215 2008-12-19 Diego Novillo <dnovillo@google.com>
4216
4217 * lto.c (lto_1_to_1_map): Tidy.
4218
4219 2008-12-19 Diego Novillo <dnovillo@google.com>
4220
4221 * lto-elf.c (lto_elf_file_open): When FILENAME cannot
4222 be opened, show its name.
4223 * ltrans-driver: If $verbose is set, do not use parallelism.
4224
4225 2008-12-17 Rafael Avila de Espindola <espindola@google.com>
4226
4227 * lto.c (lto_fixup_function): New.
4228 (lto_fixup_tree): Call lto_fixup_function.
4229
4230 2008-12-14 Doug Kwan <dougkwan@google.com>
4231
4232 * lto.c (lto_1_to_1_map): Create a cgraph node set for any global
4233 variables if there is no function.
4234
4235 2008-12-10 Simon Baldwin <simonb@google.com>
4236
4237 * ltrans-driver: Always run make in silent mode, to avoid make's
4238 trace on stdout interfering with lto-wrapper output.
4239
4240 2008-12-10 Doug Kwan <dougkwan@google.com>
4241
4242 * lto.c (lto_add_inline_clones): Do not force master clones of
4243 inlined functions already in SET to be static inline.
4244
4245 2008-12-04 Doug Kwan <dougkwan@google.com>
4246
4247 * lto.c (globalize_context_t): New type to store states in
4248 globalization of cross-file statics.
4249 (globalize_cross_file_statics): New.
4250 (lto_scan_statics_in_ref_table): Walk tree to look for reachable
4251 static decls that need to be fixed up.
4252 (lto_scan_statics_in_cgraph_node): Change call interface to use
4253 a globalize_context_t CONTEXT for all states used.
4254 (lto_scan_statics_in_remaining_global_vars): New.
4255 (lto_promote_cross_file_statics): Use new call interface of
4256 LTO_SCAN_STATICS_IN_CGRAPH_NODE. Handle remaining externally
4257 visible vars in the last set.
4258
4259 2008-12-03 Diego Novillo <dnovillo@google.com>
4260
4261 * lto.c (lto_fixup_tree): Do not emit an error when
4262 PREVAILING throw but T doesn't.
4263
4264 2008-12-02 Doug Kwan <dougkwan@google.com>
4265
4266 * lto.c (lto_scan_statics_in_ref_table): New function factored out
4267 from code in ...
4268 (lto_scan_statics_in_cgraph_node): Handle both file-scope static
4269 variables and functions.
4270 (lto_promote_cross_file_statics): Rename bitmaps to SEEN_DECLS
4271 and GLOBAL_DECLS from SEEN_VARS and GLOBAL_VARS.
4272
4273 2008-11-29 Diego Novillo <dnovillo@google.com>
4274
4275 * lto.c: Include timevar.h.
4276 (lto_materialize_function): Tidy. Add comments.
4277 (lto_wpa_write_files): Tidy.
4278 (lto_execute_ltrans): Tidy.
4279 (lto_main): Add local variable LTO_TIMER. Initialize it
4280 to one of TV_WHOPR_WPA, TV_WHOPR_LTRANS or TV_LTO.
4281 Start and stop the timer.
4282 Tidy comments.
4283 * Make-lang.in (lto.o): Add dependency on timevar.h.
4284 * ltrans-driver: React to -v and -save-temps.
4285 Use simple heuristic to determine how much parallelism to
4286 use when executing make.
4287
4288 2008-11-12 Doug Kwan <dougkwan@google.com>
4289
4290 * lto.c (lto_bitmap_obstack): Remove var.
4291 (lto_materialize_function): Do nothing instead of marking function
4292 body in file if flag_wpa is true.
4293 (lto_add_all_inlinees): Use bitmap functions in lto-utils.c.
4294 (lto_scan_statics_in_cgraph_node): New function.
4295 (lto_promote_cross_file_statics): Same.
4296 (lto_wpa_write_files): Call lto_promote_cross_file_statics.
4297 Use bitmap functions in lto-utils.c. Remove unsued label OUT.
4298 * Make-lang.in (lto/lto.o): Add lto-utils.h to dependency list.
4299
4300 2008-11-09 Diego Novillo <dnovillo@google.com>
4301
4302 * lto.c (lto_fixup_tree): Change error message locus
4303 information to include location of mismatching
4304 declaration.
4305 Use TREE_NO_WARNING to avoid repeated messages.
4306 (lto_main): If lto_fixup_decls emitted any errors, exit.
4307 * lto-lang.c: Don't include libfuncs.h and except.h
4308 (lto_init_options): Don't enable exceptions by default.
4309 (lto_eh_runtime_type): Move to lto-function-in.c
4310 (lto_init_eh): Likewise.
4311 (lto_init): Don't call lto_init_eh.
4312 * Make-lang.in (lto-lang.o): Remove dependency on
4313 libfuncs.h and except.h.
4314
4315 2008-10-30 Diego Novillo <dnovillo@google.com>
4316
4317 * lto.c (lto_read_decls): Declare debug_main only if
4318 LTO_STREAM_DEBUGGING is enabled.
4319
4320 2008-10-30 Simon Baldwin <simonb@google.com>
4321
4322 * lto.c (lto_wpa_write_files): Create intermediate files with
4323 make_cwd_temp_file().
4324 (lto_maybe_unlink): New. Delete intermediate WPA files unless
4325 WPA_SAVE_LTRANS is set.
4326 (lto_main): Call lto_maybe_unlink() for intermediate WPA files.
4327 * ltrans-driver: Do not strip directory from output files.
4328
4329 2008-10-29 Doug Kwan <dougkwan@google.com>
4330
4331 * lto.c (free_decl): Call lto_symtab_clear_resolution when freeing
4332 DECL.
4333 * Make-lang.in (LTO_OBJS): Remove lto/lto-symtab.o
4334 (lto/lto-symtab.o): Remove rule.
4335 * lto-tree.h (struct lang_identifier): Remove LTO specific fields.
4336 (struct lang_decl): Remove RESOLUTION and add DUMMY in struct.
4337 (LANG_IDENTIFIER_CAST, LTO_IDENTIFIER_DECL, LTO_DECL_RESOLUTION):
4338 Remove macros.
4339 lto-symtab.c (File): Move up one level.
4340 lto-lang.c (cgraph.h): Remove include.
4341 (input_overwrite_node, input_node, input_edge, input_cgraph_1,
4342 input_cgraph): Move to lto-cgraph.c in gcc directory above.
4343 (LANG_HOOKS_INPUT_CGRAPH): Remove use of macro.
4344
4345 2008-10-24 Rafael Espindola <espindola@google.com>
4346
4347 * lto-function-in.c (get_resolution): Return LDPR_PREEMPTED_IR for
4348 non prevailing weak symbols.
4349
4350 2008-10-24 Rafael Espindola <espindola@google.com>
4351
4352 * lto-lang.c (input_cgraph_1): Iterate over nodes, not cgraph_nodes.
4353
4354 2008-10-24 Rafael Espindola <espindola@google.com>
4355
4356 * lto-lang.c (input_node): Avoid casts from pointers to ints of
4357 different types.
4358
4359 2008-10-23 Simon Baldwin <simonb@google.com>
4360
4361 * lto-lang.c (input_node): Save the node reference, rather than the
4362 node pointer, in node->inlined_to.
4363 (input_cgraph_1): Convert node references into node pointers.
4364
4365 2008-10-22 Diego Novillo <dnovillo@google.com>
4366 Rafael Espindola <espindola@google.com>
4367
4368 * lto.c (lto_resolution_read): Tidy.
4369 * lto-symtab.c (lto_symtab_prevailing_decl): Do not
4370 abort if RET is NULL.
4371
4372 2008-10-22 Doug Kwan <dougkwan@google.com>
4373
4374 * lto.c (lto_fixup_tree): Check for NOTHROW conflict only if
4375 exceptions flag is given.
4376 * lto-lang.c: (lto_init_options) Set default exceptions flag.
4377 (lto_init_eh): Remove exceptions flag initialization.
4378 (lto_init): Only call lto_init_eh if exceptions flag is set.
4379
4380 2008-10-21 Diego Novillo <dnovillo@google.com>
4381
4382 * lto.c: Tidy some formatting.
4383 * lto.h: Likewise.
4384
4385 2008-10-21 Simon Baldwin <simonb@google.com>
4386
4387 * lto-symtab.c: (lto_same_type_p): Types cannot be equal if one of
4388 them is NULL (but not the other).
4389
4390 2008-10-17 Diego Novillo <dnovillo@google.com>
4391
4392 * ltrans-driver: Divert output from make to a temporary file.
4393 Show it if the call to make failed.
4394
4395 2008-10-15 Diego Novillo <dnovillo@google.com>
4396
4397 * lto.c (lto_wpa_write_files): Reformat do-while loop.
4398 Do not print TEMP_FILENAME
4399 * ltrans-driver: Call make with -s.
4400
4401 2008-10-15 Diego Novillo <dnovillo@google.com>
4402
4403 * lto-symtab.c (lto_symtab_merge_decl): Do not force
4404 TREE_STATIC on global symbols.
4405
4406 2008-10-14 Ollie Wild <aaw@google.com>
4407
4408 * Make-lang.in (LTRANS_DRIVER_INSTALL_NAME): Remove.
4409 (LTRANS_DRIVER_EXE): Add.
4410 (lto.all.cross): Add LTRANS_DRIVER_EXE.
4411 (lto.all.encap): Add LTRANS_DRIVER_EXE.
4412 (lto.install.common): Remove ltrans-driver.
4413 (lto.mostlyclean): Add LTRANS_DRIVER_EXE.
4414 (LTRANS_DRIVER_EXE): New build rule.
4415 * config-lang.in (compilers): Add ltrans-driver.
4416
4417 2008-10-14 Diego Novillo <dnovillo@google.com>
4418
4419 * Make-lang.in (LTRANS_DRIVER_INSTALL_NAME): Disable transformation
4420 of program name.
4421
4422 2008-10-13 Ollie Wild <aaw@google.com>
4423
4424 * lang-spec.h (@lto): Replace lto1_options with cc1_options.
4425 * lto.c (lto_execute_ltrans): Add "-fno-wpa -fltrans -xlto" to CFLAGS.
4426 * ltrans-driver (LTRANS_FLAGS): Remove.
4427
4428 2008-10-08 Doug Kwan <dougkwan@google.com>
4429
4430 * lto.c (lto_fixup_tree): Remove ATTRIBUTE_UNUSED from DATA.
4431 Handle new tree codes RECORD_TYPE, UNION_TYPE, QUAL_UNION_TYPE
4432 and TREE_BINFO. Also move code handling FUNCTION_DECL and VAR_DECL
4433 from lto_fixup_state to here.
4434 (lto_fixup_state): Take an lto_fixup_data_t object DATA instead of
4435 just a free-list. Fix up types also. Move decl merging code to
4436 lto_fixup_tree.
4437 (lto_fixup_state_aux): Change AUX to point to an lto_fixup_data_t
4438 object.
4439 (lto_fixup_decls): Use another pointer set to avoid multiple
4440 walking of nodes except for DECLs to be replaced. Pass an
4441 lto_fixup_data_t object to tree-walker.
4442
4443 2008-10-08 Rafael Espindola <espindola@google.com>
4444
4445 * lto-symtab.c (lto_symtab_set_resolution): New.
4446 (lto_symtab_merge_decl): Use lto_symtab_set_resolution and
4447 lto_symtab_get_resolution.
4448 (lto_symtab_prevailing_decl): Return decl for non public decls.
4449 (lto_symtab_get_resolution): New.
4450 * lto.c (lto_fixup_tree, lto_fixup_state): Remove unecessary checks.
4451
4452 2008-10-06 Rafael Espindola <espindola@google.com>
4453
4454 * lto-lang.c: Include cgraph.h.
4455 (input_overwrite_node, input_node, input_edge, input_cgraph_1,
4456 input_cgraph): Moved from lto-cgraph.c.
4457 (LANG_HOOKS_INPUT_CGRAPH): New.
4458
4459 2008-10-03 Rafael Espindola <espindola@google.com>
4460
4461 * lto.c (lto_fixup_tree, lto_fixup_state): Fix the FIXME.
4462
4463 2008-10-03 Rafael Espindola <espindola@google.com>
4464
4465 * lto-symtab.c (lto_symtab_overwrite_decl): Remove. Remove all calls.
4466 (lto_symtab_merge_decl): Update LTO_IDENTIFIER_DECL the reflect the
4467 prevailing definition. Don't mark TREE_NOTHROW differences.
4468 * lto.c (lto_fixup_tree): New.
4469 (lto_fixup_state): New.
4470 (lto_fixup_state_aux): New.
4471 (free_decl): New.
4472 (lto_fixup_decls): New.
4473 (lto_main): Call lto_fixup_decls.
4474
4475 2008-10-02 Ollie Wild <aaw@google.com>
4476
4477 * lang.opt (fltrans): Moved from common.opt. Remove RejectNegative
4478 and Init.
4479 (fwpa): Moved from common.opt. Remove RejectNegative and Init.
4480 * lto-lang.c (lto_post_options): Add validation and fixups for
4481 -fltrans and -fwpa.
4482
4483 2008-10-02 Rafael Espindola <espindola@google.com>
4484
4485 * lto-symtab.c (lto_symtab_merge_var, lto_symtab_merge_fn,
4486 lto_symtab_merge_decl): Return void.
4487 (lto_symtab_prevailing_decl): New.
4488
4489 2008-09-30 Rafael Espindola <espindola@google.com>
4490
4491 * lto-symtab.c (lto_symtab_compatible): Remove the check for already
4492 defined symbols.
4493 (lto_symtab_overwrite_decl): Copy LTO_DECL_RESOLUTION.
4494 (lto_symtab_merge_decl): Store symbol resolution in LTO_DECL_RESOLUTION.
4495 Check for already defined symbols.
4496 * lto-tree.h (lang_decl): Remove dummy and add resolution fields.
4497 (LTO_IDENTIFIER_RESOLUTION): Remove.
4498 (LTO_DECL_RESOLUTION): New.
4499
4500 2008-09-30 Rafael Espindola <espindola@google.com>
4501
4502 * lto.c (lto_read_decls): Use new input_tree signature.
4503
4504 2008-09-26 Doug Kwan <dougkwan@google.com>
4505
4506 * lto.c (lto_main): Call lto_fixup_nothrow_decls to fix up function
4507 bodies affected by exception attribute merging of DECLs.
4508 * lto-symtab.c (lto_symtab_merge_decl): Handle exception attribute
4509 merging.
4510
4511 2008-09-25 Rafael Espindola <espindola@google.com>
4512
4513 * Make-lang.in (PLUGIN_API_H, LTO_TREE_H): New.
4514 (lto/lto-lang.o, lto/lto.o, lto/lto-symtab.o) Use LTO_TREE_H.
4515 * lto-symtab.c (lto_symtab_compatible): New.
4516 (lto_symtab_overwrite_decl): New.
4517 (lto_symtab_merge_decl): Refactor to use the above functions
4518 and the resolution from lang_identifier.
4519 * lto-tree.h: Include plugin-api.h.
4520 (lang_identifier): Add resolution.
4521 (LTO_IDENTIFIER_RESOLUTION): New.
4522
4523 2008-09-25 Ollie Wild <aaw@google.com>
4524
4525 * lang.opt (fltrans-output-list=): New option.
4526 * lto.c (lto_execute_ltrans): Output file names to ltrans_output_list.
4527
4528 2008-09-25 Rafael Espindola <espindola@google.com>
4529
4530 * lto.c (lto_resolution_read): Initialize ret;
4531
4532 2008-09-24 Ollie Wild <aaw@google.com>
4533
4534 * lto.c (sys/mman.h): Move include.
4535 (lto_wpa_write_files): Return a list of written files.
4536 (lto_execute_ltrans): New function.
4537 (lto_main): Call lto_execute_ltrans.
4538 (ltrans-driver): New file.
4539 * lto-lang.c (DEFAULT_LTRANS_DRIVER): New macro.
4540 (DEAULT_LTRANS_DRIVER_LEN): New macro.
4541 (lto_init_options): Initialize ltrans_driver.
4542 (lto_handle_option): Fix incorrect default output value.
4543 * lang.opt (fltrans-driver=): New option.
4544 * Make-lang.in (LTRANS_DRIVER_INSTALL_NAME): New variable.
4545 (lto.install-common): Add lto/ltrans-driver.
4546
4547 2008-09-24 Rafael Espindola <espindola@google.com>
4548
4549 * Make-lang.in (LTO_OBJS): Add lto/common.o.
4550 (lto/lto.o): Depend on lto/common.h.
4551 (lto/common.o): New.
4552 * lang.opt (resolution): New.
4553 * lto-lang.c (resolution_file_name): New.
4554 (lto_handle_option): Handle OPT_resolution.
4555 * lto-symtab.c (lto_symtab_merge_decl): Add a resolution argument.
4556 (lto_symtab_merge_var,lto_symtab_merge_fn): Add a resolution argument.
4557 pass it to lto_symtab_merge_decl.
4558 * lto.c: Include common.h.
4559 (lto_read_decls): Add resolutions and resolutions_size arguments.
4560 Initialize data_in.globals_resolution and
4561 data_in.globals_resolution_size.
4562 (index_and_symbol_resolution): New.
4563 (lto_resolution_read): New.
4564 (lto_file_read): Add argument resolution_file.
4565 Read resolution.
4566 * lto.h (resolution_file_name): New.
4567
4568 2008-09-23 Rafael Espindola <espindola@google.com>
4569
4570 * common.c: Update description.
4571 * common.h: Update description.
4572
4573 2008-09-23 Rafael Espindola <espindola@google.com>
4574
4575 * common.c: Moved from lto-plugin.
4576 * common.h: Moved from lto-plugin.
4577
4578 2008-09-22 Doug Kwan <dougkwan@google.com>
4579
4580 * lto.c (VEC(bitmap,heap)): Declare.
4581 (lto_materialize_function): Handle WAP mode specially.
4582 (lto_add_inline_clones): New.
4583 (lto_add_all_inlinees): Changle algorithm and to use bitmaps. Also
4584 return a bitmap of inlined decls.
4585 (lto_wpa_write_files): Handle all DECLs brought in by inlining.
4586 (lto_main): Call reset_inline_failed to reset inlining states.
4587 Check call-graph after WPA inlining.
4588 * lto-lang.c (lto_init): Do not clear flag_generate_lto
4589 unconditionally.
4590
4591 2008-09-19 Doug Kwan <dougkwan@google.com>
4592
4593 lto.c (lto_main): Remove unsued wrapper code.
4594 lang-specs.h (@lto): Use lto1_options instead of cc1_options.
4595
4596 2008-09-19 Rafael Espindola <espindola@google.com>
4597
4598 * lto-symtab.c: Include lto-tree-in.h.
4599 * lto-tree.h (lto_symtab_merge_var, lto_symtab_merge_fn): Remove.
4600 * lto.h (lto_symtab_merge_var, lto_symtab_merge_fn): Remove
4601 * Make-lang.in (lto/lto-symtab.o): Add lto-tree-in.h.
4602
4603 2008-09-17 Paolo Bonzini <bonzini@gnu.org>
4604 Rafael Avila de Espindola <espindola@google.com>
4605
4606 * lto-lang.c (COMPOUND_LITERAL_EXPR_DECL_STMT,
4607 COMPOUND_LITERAL_EXPR_DECL): Remove.
4608 (emit_local_var): Remove.
4609 (lto_expand_expr): Remove.
4610 (lto_staticp): Remove.
4611 (LANG_HOOKS_EXPAND_EXPR): Remove.
4612 (LANG_HOOKS_STATICP): Remove.
4613
4614 2008-09-11 Diego Novillo <dnovillo@google.com>
4615
4616 * lto-lang.c: Include except.h and libfuncs.h.
4617 (lto_init_eh): New.
4618 (lto_init): Call it.
4619 Set flag_generate_lto to 0.
4620 * Make-lang.in (lto-lang.o): Add dependency on except.h
4621 and libfuncs.h.
4622
4623 2008-09-09 Bill Maddox <maddox@google.com>
4624
4625 * lto-lang.c: Include header file expr.h.
4626 (COMPOUND_LITERAL_EXPR_DECL_STMT,
4627 COMPOUND_LITERAL_EXPR_DECL): Copied from c-common.h.
4628 (emit_local_var): Copied from c-semantics.c.
4629 (lto_expand_expr, lto_staticp): Copied from c_expand_expr
4630 and c_staticp in c-common.c.
4631 (LANG_HOOKS_EXPAND_EXPR,LANG_HOOKS_STATICP): Redefined.
4632
4633 2008-09-08 Diego Novillo <dnovillo@google.com>
4634
4635 * lto-lang.c (lto_global_bindings_p): Return 1 during
4636 IPA passes.
4637
4638 2008-09-07 Diego Novillo <dnovillo@google.com>
4639
4640 * lto.c: Tidy formatting.
4641
4642 2008-08-04 Bill Maddox <maddox@google.com>
4643
4644 * lto-symtab.c (lto_symtab_merge_decl): Add comment.
4645
4646 2008-09-03 Doug Kwan <dougkwan@google.com>
4647
4648 lto.c (lto_add_all_inlinees): Reset FAILED_REASON of edges to
4649 CIF_OK instead of NULL.
4650
4651 2008-09-02 Diego Novillo <dnovillo@google.com>
4652 Simon Baldwin <simonb@google.com>
4653
4654 * lto-lang.c (lto_type_for_size): Rewrite. Adapt from
4655 c_common_type_for_size.
4656 (lto_type_for_mode): Remove ATTRIBUTE_UNUSED markers.
4657 (lto_init): Call linemap_add.
4658 (signed_and_unsigned_types): Remove.
4659
4660 2008-08-29 Diego Novillo <dnovillo@google.com>
4661
4662 * lto-lang.c (handle_noreturn_attribute): New local function.
4663 (handle_const_attribute): New local function.
4664 (handle_malloc_attribute): New local function.
4665 (handle_pure_attribute): New local function.
4666 (handle_novops_attribute): New local function.
4667 (handle_nonnull_attribute): New local function.
4668 (handle_nothrow_attribute): New local function.
4669 (handle_sentinel_attribute): New local function.
4670 (handle_type_generic_attribute): New local function.
4671 (handle_format_attribute): New local function.
4672 (handle_format_arg_attribute): New local function.
4673 (lto_attribute_table): Declare.
4674 (lto_format_attribute_table): Declare.
4675 (lto_init_attributes): New local function.
4676 (lto_define_builtins): Call it.
4677 Call targetm.init_builtins and build_common_builtin_nodes.
4678 (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE): Define.
4679 (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Define.
4680
4681 2008-08-28 Diego Novillo <dnovillo@google.com>
4682
4683 * Make-lang.in (lto-lang.o): Replace tree-gimple.h with
4684 $(GIMPLE_H).
4685 (lto-symtab.o): Add dependency on $(GIMPLE_H).
4686 * lto-lang.c: Include gimple.h instead of tree-gimple.h.
4687 * lto-symtab.c: Include gimple.h.
4688 * lto-tree.h (chain_next): Replace GENERIC_NEXT with
4689 TREE_CHAIN.
4690
4691 2008-08-27 Doug Kwan <dougkwan@google.com>
4692
4693 * lto.c (vec.h, bitmap.h, pointer-set.h, ipa-prop.h, ggc.h,
4694 gt-lto-lto.h): New includes.
4695 (lto_materialize_function): Do not read in function body in WPA mode.
4696 Format a line to fit in 80 columns.
4697 (lto_cgraph_node_sets): New garbage collected variable.
4698 (lto_1_to_1_map, lto_add_all_inlinees, lto_wpa_write_files):
4699 New functions.
4700 (lto_main): Initialize bitmap obstack. Add code to handle WPA mode.
4701 * Make-lang.in (LTO_H): Replace filename lto-section-in.h with
4702 variable LTO_SECTION_IN_H.
4703 (lto/lto.o): Include gt-lto-lto-c.h ggc.h ,VEC_H, BITMAP_H,
4704 pointer-set.h and IPA_PROP_H. Also replace filename lto-section-in.h
4705 with variable LTO_SECTION_IN_H.
4706 * config-lang.in (gtfiles): Add lto/lto.c.
4707 * lto-symtab.c (lto_symtab_merge_decl): Set DECL_CONTEXT of
4708 merged DECL_RESULT correctly.
4709
4710 2008-08-26 Bill Maddox <maddox@google.com>
4711
4712 * lto-lang.c Include tree-gimple.h.
4713 (lto_mark_addressable): Call mark_addressable rather than
4714 asserting.
4715 (lto_post_options): Suppress debug info generation.
4716 * Make-lang.in: Add dependency of lto-lang.o on tree-gimple.h.
4717
4718 2008-08-25 Bill Maddox <maddox@google.com>
4719
4720 * lto-symtab.c (lto_symtab_merge_decl): Remove a suspect
4721 assertion and leave an explanatory comment in its place.
4722
4723 2008-08-21 Doug Kwan <dougkwan@google.com>
4724
4725 * lto.c (preload_common_nodes): Call lto_get_common_nodes to get a list
4726 of common nodes instead of computing locallly.
4727 (lto_read_in_decl_state): New.
4728 (lto_read_decls): Change code for udpate in struct lto_decl_header.
4729 Read global and per-function in-decl states.
4730 * Make-lang.in (LTO_H): Update dependency.
4731 (lto/lto.o): Same.
4732 (lto-symtab.c): Merge (revision 139039)
4733 * lto-symtab.c (lto_symtab_merge_decl): Merge DECL_RESULT.
4734
4735 2008-08-21 Rafael Espindola <espindola@google.com>
4736
4737 * config-lang.in (target_libs): New.
4738
4739 2008-08-20 Bill Maddox <maddox@google.com>
4740
4741 * lto.c (current_lto_file): Remove GTY marker from static
4742 variable. Remove include of file gt-lto-lto.h.
4743 * Make-lang.in: Remove dependency of lto/lto.o on
4744 gt-lto-lto.h.
4745 * lto-elf.c (lto_file_close): Removed.
4746 (lto_elf_file_open): Use XCNEW instead of GGC_CNEW to
4747 allocate lto_elf_file object.
4748 (lto_elf_file_close): Free lto_elf_file object after close.
4749 * lto.h (struct lto_file_struct): Remove GTY marker.
4750 * config-lang.in: Remove lto/lto.h and lto/lto.c from
4751 gtfiles.
4752
4753 2008-08-20 Bill Maddox <maddox@google.com>
4754
4755 * lto.c (lto_read_decls): Provide dummy argument to input_tree
4756 to conform to its new signature.
4757 * lto-symtab.c (lto_symtab_merge_decl): Do not invoke ggc_free
4758 on discarded node here, now called in global_vector_fixup.
4759
4760 2008-08-09 Bill Maddox <maddox@google.com>
4761
4762 * lto.c (preload_common_nodes): Verify that fileptr_type_node
4763 has not been set to a front-end-specific value.
4764
4765 2008-08-05 Doug Kwan <dougkwan@google.com>
4766
4767 * Make-lang.in (lto-symtab.o): Add missing dependencies to fix
4768 build breakage.
4769
4770 2008-07-30 Bill Maddox <maddox@google.com>
4771
4772 * lto.c (lto_materialize_function): Call lto_original_decl_name.
4773 Remove obsolete comments.
4774 (lto_read_decls): Remove initialization of deleted field data_in.global.
4775 Tidy up comments.
4776 (lto_main): Remove redundant initialization of section_hash_table.
4777 * lto-elf.c: Removed obsolete comments.
4778 * lto.h: Tidy up comments.
4779 * lto-symtab.c (lto_least_common_multiple): New function.
4780 (lto_symtab_merge_decl): Merge variable alignments in some cases.
4781 Tidy up comments.
4782
4783 2008-07-25 Diego Novillo <dnovillo@google.com>
4784 Bill Maddox <maddox@google.com>
4785
4786 * lto.c: Re-order include files.
4787 Include lto-section-out.h.
4788 (preload_common_nodes): Add debugging output.
4789 Add new local INDEX_TABLE.
4790 Call preload_common_node.
4791 * Make-lang.in (lto.o): Add dependency on lto-section-out.h
4792
4793 2008-07-13 Bill Maddox <maddox@google.com>
4794
4795 * lto.c (lto_read_decls): Cast pointer to const char * to avoid
4796 unwanted scaling during pointer addition.
4797
4798 2008-07-11 Bill Maddox <maddox@google.com>
4799 Diego Novillo <dnovillo@google.com>
4800
4801 * lto.c (lto_read_decls): Fix C++ compatibility warnings.
4802 Make code const-correct.
4803 (lto_file_read): Fix C++ compatibility warnings.
4804 (lto_read_section_data): Fix C++ compatibility warnings.
4805 (lto_get_section_data): Use CONST_CAST to avoid warning when
4806 const pointer passed to free.
4807 * lto-elf.c (lto_elf_build_section_table): Fix C++
4808 compatibility warnings.
4809 (lto_elf_append_data): Fix C++ compatibility warnings. Use CONST_CAST
4810 to avoid warning assigning const pointer to d_buf field of Elf_Data.
4811 (lto_get_current_out_file): Fix C++ compatibility warnings.
4812
4813 2008-07-11 Diego Novillo <dnovillo@google.com>
4814
4815 * Make-lang.in (lto-warn): Define.
4816
4817 2008-07-03 Simon Baldwin <simonb@google.com>
4818
4819 * lto.c (lto_read_decls): Wrapped debug-only data items within #ifdef
4820 LTO_STREAM_DEBUGGING.
4821
4822 2008-06-27 Ollie Wild <aaw@google.com>
4823
4824 * lto-elf.c (lto-section-out.h): New include.
4825 (struct lto_elf_file): Remove bits member. Add scn, shstrtab_stream,
4826 and data members.
4827 (cached_file_attrs): New static variable.
4828 (lto_elf_get_shdr, lto_elf_free_shdr): Remove elf_file parameter.
4829 Use cached_file_attrs for checking bits.
4830 (lto_elf_build_section_table): Remove elf_file argument from
4831 lto_elf_get_shdr and lto_elf_free_shdr calls.
4832 (DEFINE_INIT_SHDR): New macro.
4833 (init_shdr32, init_shdr64): New functions defined via the
4834 DEFINE_INIT_SHDR macro.
4835 (lto_elf_begin_section_with_type): New function.
4836 (lto_elf_begin_section): New function.
4837 (lto_elf_append_data): New function.
4838 (lto_elf_end_section): New function.
4839 (DEFINE_VALIDATE_EHDR): New macro.
4840 (validate_ehdr32, validate_ehdr64): New functions defined via the
4841 DEFINE_VALIDATE_EHDR macro.
4842 (validate_file): New function.
4843 (DEFINE_INIT_EHDR): New macro.
4844 (init_ehdr32, init_ehdr64): New functions defined via the
4845 DEFINE_INIT_EHDR macro.
4846 (init_ehdr): New function.
4847 (lto_elf_file_open): Add support for writable files. Move some
4848 validation logic to validate_file.
4849 (lto_elf_file_close): Add support for writable files. Write file data
4850 and free data blocks.
4851 (current_out_file): New static variable.
4852 (lto_set_current_out_file): New function.
4853 (lto_get_current_out_file): New function.
4854 * lto.c (lto_main): Add writable argument to lto_elf_file_open calls.
4855 Add temporary initialization for testing ELF serialization.
4856 * lto.h (lto-section-out.h): New include.
4857 (struct lto_file_struct): Slight modification to comment.
4858 (lto_elf_file_open): Add writable parameter.
4859 (lto_elf_begin_section): New function declaration.
4860 (lto_elf_append_data): New function declaration.
4861 (lto_elf_end_section): New function declaration.
4862 (lto_set_current_out_file, lto_get_current_out_file): New function
4863 declarations.
4864 * lto-lang.c (LANG_HOOKS_BEGIN_SECTION): Set as lto_elf_begin_section.
4865 (LANG_HOOKS_APPEND_DATA): Set as lto_elf_append_data.
4866 (LANG_HOOKS_END_SECTION): Set as lto_elf_end_section.
4867 * Make-lang.in (LTO_H): Add lto-section-out.h.
4868
4869 2008-06-12 Ollie Wild <aaw@google.com>
4870
4871 * lto.h (struct lto_file_vtable_struct): Remove.
4872 (struct lto_file_struct): Remove vtable member.
4873 * lto-elf.c (lto_file_init): Remove vtable argument.
4874 (lto_elf_map_optional_lto_section): Remove.
4875 (lto_elf_unmap_section): Remove.
4876 (lto_elf_file_vtable): Remove.
4877 (lto_elf_file_open): Remove lto_elf_file_vtable argument from
4878 lto_file_init call.
4879 (lto_elf_find_section_data): Remove.
4880
4881 2008-06-11 Ollie Wild <aaw@google.com>
4882
4883 * lto.c (lto_file_read): Add const qualifier to data variable.
4884
4885 2008-06-11 Diego Novillo <dnovillo@google.com>
4886
4887 Merge from lto-streamber sub-branch.
4888
4889 2008-06-04 Ollie Wild <aaw@google.com>
4890
4891 * lto.c: Remove inclusion of dwarf2.h and dwarf2out.h.
4892 * Make-lang.in (lto.o): Remove dependency on dwarf2.h.
4893
4894 2008-05-28 Bill Maddox <maddox@google.com>
4895
4896 Replace the DWARF reader in the LTO front-end.
4897
4898 * lto.c: Include lto-tree-in.h, lto-tags.h.
4899 (enum DWARF2_class, DW_cl_constant, struct
4900 DWARF2_form_data, struct lto_context,
4901 lto_fd_init, lto_info_fd_init,
4902 lto_abbrev_fd_init, lto_info_fd_close,
4903 lto_file_init, lto_file_close,
4904 lto_file_corrupt_error, lto_abi_mismatch_error,
4905 LTO_CHECK_INT_VAL, LTO_READ_TYPE,
4906 lto_read_uleb128, lto_read_sleb128,
4907 lto_read_initial_length, lto_abbrev_read_attrs,
4908 lto_abbrev_read, lto_abbrev_read_lookup,
4909 lto_read_section_offset,
4910 lto_read_comp_unit_header, find_cu_for_offset,
4911 lto_get_file_name,
4912 lto_resolve_reference,lto_read_form,
4913 attribute_value_as_int,
4914 make_signed_host_wide_int,
4915 attribute_value_as_constant, lto_cache_hash,
4916 lto_cache_eq, lto_cache_store_DIE,
4917 lto_cache_lookup_DIE, lto_find_integral_type,
4918 lto_find_integral_type_1,
4919 LTO_BEGIN_READ_ATTRS_UNCHECKED,
4920 LTO_BEGIN_READ_ATTRS, LTO_END_READ_ATTRS,
4921 lto_unsupported_attr_error, lto_get_identifier,
4922 lto_read_referenced_type_DIE,
4923 lto_read_compile_unit_DIE,
4924 lto_read_array_type_DIE,
4925 lto_read_structure_union_class_type_DIE,
4926 lto_read_enumerator_DIE,
4927 lto_read_enumeration_type_DIE,
4928 lto_read_only_for_child_DIEs,
4929 lto_read_only_for_child_DIEs,
4930 lto_read_member_DIE, lto_read_abbrev,
4931 lto_read_variable_formal_parameter_constant_DIE,
4932 lto_get_body): Removed.
4933 (preload_common_nodes): New function.
4934 (lto_read_decls): Convert for new global streamer.
4935 (lto_materialze_file_data,
4936 lto_read_subroutine_type_subprogram_die,
4937 lto_read_unspecified_parameters_DIE,
4938 lto_read_typedef_DIE,
4939 lto_read_pointer_reference_type_DIE,
4940 lto_read_subrange_type_DIE,
4941 lto_read_base_type_DIE,
4942 lto_read_const_volatile_restrict_type_DIE,
4943 lto_read_namespace_DIE,
4944 lto_read_unspecified_type_DIE, lto_read_DIE,
4945 lto_read_child_DIEs, lto_collect_child_DIEs):
4946 Removed.
4947 (lto_info_read, lto_set_cu_context): Removed.
4948 (lto_file_read): Convert for new global streamer.
4949 (lto_resolve_type_ref, lto_read_DIE_at_ptr,
4950 lto_resolve_var_ref, lto_resolve_fn_ref,
4951 lto_resolve_field_ref, lto_resolve_typedecl_ref,
4952 lto_resolve_namespacedecl_ref): Removed.
4953 (lto_file_init, lto_file_close): Moved to lto-elf.c.
4954 * lto-tree.h (lto_symtab_merge_var,
4955 lto_symtab_mergee_fun): Declare here.
4956 * lto-elf.c (lto_file_init, lto_file_close): Moved from lto.c.
4957 (lto_elf_file_open): Removed code to read DWARF debug sections.
4958 * lto.h (lto_context, DWARF2_attr, DWARF2_abbrev,
4959 DWARF2_CompUnit, lto_die_ptr,
4960 lto_die_cache_entry, lto_fd, lto_info_fd,
4961 lto_abbrev_fd): Removed.
4962 (lto_file): Removed debug_info and debug_abbrev fields.
4963 (lto_ref): Removed.
4964 (lto_file_init, lto_file_close,
4965 lto_resolve_type_ref, lto_resolve_var_ref,
4966 lto_resolve_fn_ref, lto_resolve_field_ref,
4967 lto_resolve_typedecl_ref,
4968 lto_resolve_namespacedecl_ref,
4969 lto_get_file_name): Removed declarations.
4970 (lto_symtab_merge_var, lto_symtab_merge_fn):
4971 Declarations moved to lto-tree.h.
4972 * lto-symtab.c (lto_compatible_attributes_p):
4973 Lobotomize this, as it barfs on "Hello, world!".
4974 * lto-section-out.c: Include lto-tree-out.h.
4975 (lto_hash_global_slot_node,
4976 lto_eq_global_slot_node, preload_common_nodes,
4977 write_global_stream, write_global_references):
4978 New functions.
4979 (produce_asm_for_decls): Convert for new global streamer.
4980 * lto-section-out.h (lto_hash_global_slot_node,
4981 lto_eq_global_slot_node): Declare.
4982
4983 2008-06-07 Kenneth Zadeck <zadeck@naturalbridge.com>
4984 Jan Hubicka <jh@suse.cz>
4985
4986 * lto.c (sys/mman.h, tree-pass.h): New includes.
4987 (lto_materialize_constructors_and_inits,
4988 lto_materialize_function): Keeps length of section.
4989 (lto_materialize_cgraph): Removed.
4990 (lto_read_decls): Initialize fd field.
4991 (lto_file_read): Different return type and removed much code to
4992 lto_main.
4993 (page_mask): New variable.
4994 (lto_read_section_data, get_section_data, free_section_data): New
4995 functions.
4996 (lto_main): Now calls pass manager, sets the hooks so that the ipa
4997 passes can get the section data.
4998
4999 2008-05-27 Kenneth Zadeck <zadeck@naturalbridge.com>
5000
5001 * lto.h (lto_read_decls): Made local.
5002 (lto_input_function_body, lto_input_constructors_and_inits,
5003 lto_input_cgraph): Declarations moved to lto-section-in.h.
5004 * lto-section-in.c: Moved to .. .
5005 * lto-cgraph-in.c: Ditto.
5006 * lto-section-in.h: Ditto.
5007 * lto-function-in.c: Ditto.
5008 * lto-lang.c (lto_handle_option): Added ATTRIBUTE_UNUSED to parms.
5009 (lto_insert_block): Removed.
5010 (LANG_HOOKS_INSERT_BLOCK): Removed.
5011 * Make-lang.in (lto-cgraph-in.o, lto-function-in.o,
5012 lto-section-in.o): Rules moved to lto/Makefile.in.
5013
5014
5015 2008-05-16 Ollie Wild <aaw@google.com>
5016
5017 * lto-lang.c (tree-inline.h): Include.
5018 (lto_post_options): New function.
5019 (LANG_HOOKS_POST_OPTIONS): Define.
5020 * lto-cgraph-in.c (overwrite_node): Set node->global.insns.
5021 * lto-function-in.c (input_bb): Set TREE_BLOCK (stmt).
5022
5023 2008-05-13 Diego Novillo <dnovillo@google.com>
5024
5025 * lto-function-in.c (input_ssa_names): Call
5026 make_ssa_name_fn instead of make_ssa_name.
5027
5028 2008-05-12 Diego Novillo <dnovillo@google.com>
5029
5030 * lto-cgraph-in.c (overwrite_node): Update references to
5031 inline summary fields.
5032 * lto-function-in.c (input_expr_operand): Do not handle
5033 STRUCT_FIELD_TAG.
5034
5035 2008-05-09 Ollie Wild <aaw@google.com>
5036
5037 * lang.opt: New file.
5038 * lto-lang.c (lto_init_options): New function.
5039 (lto_handle_option): New function.
5040 (lto_init): Move initialization of flag_unit_at_a_time to
5041 lto_init_options.
5042 (LANG_HOOKS_INIT_OPTIONS): Define.
5043 (LANG_HOOKS_HANDLE_OPTION): Define.
5044
5045 2008-04-29 Ollie Wild <aaw@google.com>
5046
5047 * lto.c (lto_read_namespace_DIE): New function.
5048 (lto_read_DIE): Add lto_read_namespace_DIE callback. Cache
5049 NAMESPACE_DECL DIE's.
5050 (lto_resolve_namespacedecl_ref): New function.
5051 * lto.h (lto_resolve_namespacedecl_ref): New function.
5052 * lto-section-in.c (lto_read_decls): Read namespace declarations.
5053 * lto-section-in.h (struct lto_file_decl_data): Add namespace_decls
5054 and num_namespace_decls.
5055 * lto-function-in.c (input_expr_operand): Add NAMESPACE_DECL case.
5056 * lto-lang.c (lto_init_ts): New function.
5057 (LANG_HOOKS_INIT_TS): Set as lto_init_ts.
5058
5059 2008-04-16 Ollie Wild <aaw@google.com>
5060
5061 * lto-function-in.c (input_type_ref): Updated function description.
5062
5063 2008-04-16 Ollie Wild <aaw@google.com>
5064
5065 * lto-function-in.c (input_type_ref_1): New function.
5066 (input_type_ref): Split into two functions.
5067 (input_function): Add support for type contexts.
5068
5069 2008-04-16 Ollie Wild <aaw@google.com>
5070
5071 * lto.c (lto_materialize_function): Use DECL_ASSEMBLER_NAME to compute
5072 section name
5073
5074 2008-04-16 Ollie Wild <aaw@google.com>
5075
5076 * lto.c (lto_read_compile_unit_DIE): Add DW_LANG_C_plus_plus to the
5077 list of supported languages.
5078
5079 2008-03-25 Kenneth Zadeck <zadeck@naturalbridge.com>
5080
5081 Merge with mainline @133491.
5082
5083 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5084 Jan Hubicka <jh@suse.cz>
5085
5086 * lto.c (lto_info_fd_init, lto_info_fd_close): Get rid of
5087 fd->unmaterialized_fndecls.
5088 (lto_get_file_name, lto_materialize_cgraph): New function.
5089 (lto_materialize_constructors_and_inits,
5090 lto_materialize_function): Read info directly from elf file.
5091 (lto_file_read): Made local and initialize dictionary so that
5092 other lto sections can be read without reprocessing the elf file.
5093 (lto_main): Read all functions after all files have been processed
5094 for their types, globals and cgraph.
5095 * Make-lang.in (lto.o, lto-cgraph-in.c, lto-section-in): Changed
5096 dependencies.
5097 * lto-elf.c (lto_elf_file): Removed strtab, symtab fields.
5098 (hash_name, eq_name, lto_elf_build_section_table): New functions.
5099 (lto_elf_read_symtab): Removed function.
5100 (lto_elf_file_open): Removed call to lto_elf_read_symtab.
5101 * lto.h (lto_info_fd_struct): Removed unmaterialized_fndecls.
5102 (lto_file_read): Made local.
5103 (lto_get_file_name, lto_elf_build_section_table,
5104 lto_input_cgraph):
5105 New function.
5106 * lto-section-in.c (lto_read_section_data, lto_get_section_data):
5107 New functions.
5108 (lto_read_decls): Get the file name.
5109 * lto-cgraph-in.c: New file.
5110 * lto-function-in.c (tag_to_expr): Stops at LTO_tree_last_tag.
5111 (input_expr_operand, lto_read_body): Set lto_debug_context.tag_names.
5112 (input_labels): Fixed latent sizeof issue.
5113 (input_function): Build stmt array to set call sites into cgraph
5114 edges.
5115 (lto_read_body): Reset cfun->curr_properties.
5116 * lto_section_in.h (lto_section_slot): New structure.
5117 (section_hash_table.lto_file_decl_data): New field.
5118
5119 2008-02-09 Kenneth Zadeck <zadeck@naturalbridge.com>
5120
5121 * lto.c (lto_read_variable_formal_parameter_const): Remove code to
5122 reconstruct static initializers.
5123 (lto_get_body, lto_materialize_function): Add lto_section_type as
5124 a parameter.
5125 (lto_materialize_constructors_and_inits,
5126 lto_materialize_file_data): New function.
5127 (lto_materialize_function,
5128 lto_read_subroutine_type_subprogram_DIE): Renamed unmap_fn_body to
5129 unmap_section and map_fn_body to map_section.
5130 (lto_set_cu_context): Process functions and static inits
5131 differently.
5132 * Make-lang.in (LTO_H, lto/lto-function-in.o,
5133 lto/lto-section-in.o): Update dependencies.
5134 * lto-elf.c (lto_elf_map_optional_lto_section): Add
5135 lto_section_type parameter.
5136 (lto_elf_unmap_fn_body): Renamed to lto_elf_unmap_section.
5137 * lto.h (lto_file_vtable_struct): Removed two of the fields and
5138 renamed the other two so that there is only one map function and
5139 one unmap function and each takes a section type parameter.
5140 (lto_read_function_body): Renamed to lto_input_function_body and
5141 added file_data parameter.
5142 (lto_read_var_init): Removed.
5143 (lto_input_constructors_and_inits): New function.
5144 * lto-section-in.c (lto_read_decls): New function.
5145 * lto-function-in.c (data_in): Moved fields field_decls, fn_decls,
5146 var_decls, type_decls, types to lto_file_decl_data.
5147 (input_type_ref, input_expr_operand, lto_read_body): Get
5148 field_decls, fn_decls, var_decls, type_decls, types from different
5149 structure.
5150 (input_globals, input_constructor, lto_read_var_init): Removed.
5151 (input_constructors_or_inits): New function.
5152 (lto_read_function_body, lto_input_constructors_and_inits):
5153 Renamed to lto_input_function_body and takes file_data parameter.
5154 * lto-section-in.h (lto_file_decl_data): New structure.
5155
5156 2008-01-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5157
5158 * lto-function-in.c (input_globals.c): Changed input type to
5159 lto_function_header.
5160 (input_bb): Removed code to deserialize the stmt number.
5161 (input_function): Renumber all stmts after they are input.
5162 (lto_read_body, lto_read_function_body, lto_read_var_init):
5163 Changed to used new header format and enum section_type.
5164 *lto-lang.c (success): Removed.
5165
5166 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
5167
5168 * lto-elf.c (lto_elf_lookup_sym): Remove unused function.
5169 (lto_elf_free_sym): Likewise.
5170
5171 * lto-elf.c (lto_elf_read_var_init): Remove unused function.
5172 (lto_elf_build_init): Likewise.
5173
5174 2008-01-14 Kenneth Zadeck <zadeck@naturalbridge.com>
5175
5176 * lto-read.c: Renamed to lto-function-in.c.
5177 (input_1_unsigned): Moved to lto-section-in.c and renamed
5178 lto_input_1_unsigned.
5179 (input_uleb128): Moved to lto-section-in.c and renamed
5180 lto_input_uleb128.
5181 (input_widest_uint_uleb128): Moved to lto-section-in.c and renamed
5182 lto_input_widest_uint_uleb128.
5183 (input_sleb128): Moved to lto-section-in.c and renamed
5184 lto_input_sleb128.
5185 (input_integer): Moved to lto-section-in.c and renamed
5186 lto_input_integer.
5187 (debug_in_fun): Moved to lto-section-in.c and renamed
5188 lto_debug_in_fun.
5189 (input_block): Moved to lto-section-in.h and renamed
5190 lto_input_block.
5191 (input_expr_operand): Fixed to allow lists with more than one
5192 element.
5193 * lto-section-in.h: New file.
5194 * lto-section-in.c: New file with changes from above.
5195 * Make-lang.in (lto-read.o): Renamed lto-function-in.c.
5196 (lto-section-in.o): New rule.
5197
5198 2007-12-29 Nathan Froyd <froydnj@codesourcery.com>
5199
5200 * lto-read.c (input_expr_operand): Mark static and external
5201 VAR_DECLs as needed.
5202
5203 2007-12-29 Nathan Froyd <froydnj@codesourcery.com>
5204
5205 * lto-read.c (input_integer): Use the correct shift amount.
5206
5207 2007-12-29 Nathan Froyd <froydnj@codesourcery.com>
5208
5209 * lto-lang.c (lto_pushdecl): Do nothing instead of aborting.
5210 (LANG_HOOKS_NAME): Define.
5211
5212 2007-12-27 Nathan Froyd <froydnj@codesourcery.com>
5213
5214 * lto.c (lto_find_integral_type): Define as a macro. Rename the
5215 original function to...
5216 (lto_find_integral_type_1): ...this. Consult UNSIGNEDP if we
5217 don't have a base type.
5218 (lto_read_enumeration_type_DIE): Examine the values of the
5219 enumeration to determine whether we can use an unsigned type for
5220 the base type of the enumeration.
5221
5222 2007-12-24 Nathan Froyd <froydnj@codesourcery.com>
5223
5224 * lto.c (lto_read_structure_union_class_type_DIE): Set TYPE_MODE
5225 and TYPE_ALIGN on UNION_TYPEs as soon as possible.
5226
5227 2007-12-22 Nathan Froyd <froydnj@codesourcery.com>
5228
5229 * lto-lang.c (lto_types_compatible_p): New function.
5230 (LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
5231
5232 2007-12-22 Nathan Froyd <froydnj@codesourcery.com>
5233 Kenneth Zadeck <zadeck@naturalbridge.com>
5234
5235 * lto-read.c (input_expr_operand): Fixed uninitialize var warning.
5236 (input_local_vars): Read in DECL_INITIAL and context for local
5237 statics that need to be put in unexpanded_vars_list.
5238
5239 2007-12-21 Nathan Froyd <froydnj@codesourcery.com>
5240
5241 * lto-read.c (input_real): Use a separate null-terminated buffer
5242 for calling real_from_string.
5243 (input_expr_operand): If we take the address of a FUNCTION_DECL,
5244 tell cgraph that it's needed.
5245
5246 2007-12-19 Doug Kwan <dougkwan@google.com>
5247
5248 * lto.c (lto_read_base_type_DIE): Handle complex integer types.
5249
5250 2007-12-18 Nathan Froyd <froydnj@codesourcery.com>
5251
5252 * lto.c (lto_read_DIE): Call lto_read_only_for_child_DIEs instead.
5253 (lto_file_read): Reset the members of 'context' every time we read
5254 a toplevel DIE, with special attention to last_param_type.
5255
5256 2007-12-18 Nathan Froyd <froydnj@codesourcery.com>
5257
5258 * lto.c (lto_read_subroutine_type_subprogram_DIE): Initialize
5259 'declaration'. Set the assembler name for non-public functions.
5260
5261 2007-12-17 Kenneth Zadeck <zadeck@naturalbridge.com>
5262
5263 * lto_read.c (data_in.unexpanded_indexes): New array.
5264 (input_local_var): Added code to read in unexpanded_var_list
5265 indexes for variables. Only read in DECL_CHAIN field for
5266 parameters.
5267 (input_local_vars): Added code to rebuild unexpanded_var_list in
5268 order using unexpanded_indexes.
5269 (input_function): Added code to set DECL_CONTEXT for functions.
5270
5271 2007-12-13 Doug Kwan <dougkwan@google.com>
5272
5273 * lto.c (lto_read_pointer_reference_type_DIE): Handle optional name
5274 in pointer and reference types.
5275
5276 2007-12-13 Nathan Froyd <froydnj@codesourcery.com>
5277
5278 * lto-read.c (input_expr_operand): Use DECL_RESULT when reading a
5279 RESULT_DECL.
5280
5281 2007-12-13 Nathan Froyd <froydnj@codesourcery.com>
5282
5283 * lto.c (lto_read_array_type_DIE): Return the cached DIE if we've
5284 already read the DIE.
5285 (lto_get_body): New function, split out from...
5286 (lto_materialize_function): ...here. Call it.
5287 (lto_read_subroutine_type_subprogram_DIE): Call lto_get_body to
5288 determine DECL_EXTERNAL.
5289 * lto-symtab.c (lto_symtab_merge_decl): Merge the DECL_RESULTs of
5290 FUNCTION_DECLs when necessary. Use the type of the actual
5291 function definition if we are unable to easily merge types. Ignore
5292 spurious DECL_MODE mismatches on VAR_DECLs. Merge DECL_MODEs when
5293 necessary.
5294
5295 2007-12-13 Nathan Froyd <froydnj@codesourcery.com>
5296
5297 * lto-lang.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
5298
5299 2007-12-12 Bill Maddox <maddox@google.com>
5300
5301 Revert
5302 2007-12-07 Bill Maddox <maddox@google.com>
5303
5304 * lto.c (lto_str_fd_init): New function.
5305 (lto_str_fd_close): New function.
5306 (lto_file_init): Call lto_str_fd_init.
5307 (lto_file_close): Call lto_str_fd_close.
5308 (lto_str_read): New function. Read debug string table.
5309 (lto_str_lookup): New function. Get string for debug
5310 string table offset.
5311 (lto_read_form): Recognize DW_FORM_strp.
5312 (lto_file_read): Invoke lto_str_read.
5313
5314 * lto-elf.c (lto_elf_file_open): Read raw section data
5315 for the .debug_str section, if present.
5316
5317 * lto.h (struct lto_str_fd_struct): New struct.
5318 (struct lto_file_struct): Added new field DEBUG_STR
5319 to hold the file descriptor for the debug string table.
5320
5321 2007-12-07 Bill Maddox <maddox@google.com>
5322
5323 * lto.c (lto_str_fd_init): New function.
5324 (lto_str_fd_close): New function.
5325 (lto_file_init): Call lto_str_fd_init.
5326 (lto_file_close): Call lto_str_fd_close.
5327 (lto_str_read): New function. Read debug string table.
5328 (lto_str_lookup): New function. Get string for debug
5329 string table offset.
5330 (lto_read_form): Recognize DW_FORM_strp.
5331 (lto_file_read): Invoke lto_str_read.
5332
5333 * lto-elf.c (lto_elf_file_open): Read raw section data
5334 for the .debug_str section, if present.
5335
5336 * lto.h (struct lto_str_fd_struct): New struct.
5337 (struct lto_file_struct): Added new field DEBUG_STR
5338 to hold the file descriptor for the debug string table.
5339
5340 2007-12-07 Nathan Froyd <froydnj@codesourcery.com>
5341
5342 * lto-read.c (input_cfg): Call init_empty_tree_cfg_for_function.
5343 Grow the basic_block_info and label_to_block_map vectors if
5344 necessary. Read in the block chain.
5345
5346 2007-12-06 Nathan Froyd <froydnj@codesourcery.com>
5347
5348 * lto.c (lto_read_DIE): Set TYPE_ALIAS_SET where necessary.
5349
5350 2007-12-06 Nathan Froyd <froydnj@codesourcery.com>
5351
5352 * lto.c (lto_read_form): Add DW_cl_address for DW_AT_const_value.
5353
5354 2007-12-06 Nathan Froyd <froydnj@codesourcery.com>
5355
5356 * lto-read.c (input_expr_operand): Don't check for MTAGs.
5357 (lto_read_body): Don't declare PROP_alias.
5358
5359 2007-12-06 Nathan Froyd <froydnj@codesourcery.com>
5360
5361 * lto-symtab.c (lto_symtab_merge_decl): Handle FUNCTION_DECLs without
5362 argument type information.
5363
5364 2007-12-03 Nathan Froyd <froydnj@codesourcery.com>
5365
5366 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Set
5367 TREE_THIS_VOLATILE if the associated type is a volatile type.
5368 (lto_materialize_function): Remove call to init_ssa_operands.
5369 * lto-read.c (input_expr_operand): Add SSA_NAME_VAR as a referenced
5370 variable when reading an SSA_NAME. Do the same when reading a
5371 RESULT_DECL, a RETURN_EXPR, or an MTAG.
5372 (input_cfg): Call init_ssa_operands.
5373 (input_ssa_names): Set the default def of an SSA_NAME if necessary.
5374 Move call to init_tree_ssa...
5375 (lto_read_body): ...here. Use push_cfun and pop_cfun. Call
5376 add_referenced_var on any variables referenced from the body of the
5377 function. Inform the rest of the compiler we are in SSA form and
5378 inform later passes about the current properties.
5379
5380 2007-11-30 Nathan Froyd <froydnj@codesourcery.com>
5381
5382 * lto.c (lto_materialize_function): Add FIXME.
5383
5384 2007-11-29 Nathan Froyd <froydnj@codesourcery.com>
5385
5386 * lto-lang.c (enum built_in_attribute): New enum.
5387 (flag_no_builtin, flag_no_nonansi_builtin, flag_isoc94, flag_isoc99,
5388 built_in_attributes): New variables.
5389 (def_builtin_1): New function.
5390 (lto_define_builtins): #define DEF_BUILTIN and include builtins.def.
5391
5392 2007-11-28 Nathan Froyd <froydnj@codesourcery.com>
5393
5394 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Set
5395 DECL_SOURCE_LOCATION for debugging purposes.
5396 (lto_read_member_DIE): Set DECL_SOURCE_LOCATION. If we have read a
5397 bitfield, use the type specified by the DIE for TREE_TYPE and defer
5398 laying out the decl until later.
5399 (lto_read_subroutine_type_subprogram_DIE): Compare the function's
5400 name with DECL_ASSEMBLER_NAME. Set DECL_SOURCE_LOCATION and
5401 TREE_ADDRESSABLE.
5402 * lto-read.c (input_expr_operand): Set TREE_ADDRESSABLE on the
5403 operand of an ADDR_EXPR.
5404 * lto-lang.c (enum lto_builtin_type): New enum.
5405 (builtin_type): New typedef.
5406 (builtin_types, string_type_node, const_string_type_node,
5407 wint_type_node, intmax_type_node, uintmax_type_node,
5408 signed_size_type_node): New variables.
5409 (def_fn_type, builtin_type_for_size, lto_define_builtins,
5410 lto_build_c_type_nodes): New functions.
5411 (lto_init): Initialize builtin types.
5412 (lto_set_decl_assembler_name): Let the target machine mangle the
5413 name if the decl is TREE_PUBLIC, otherwise uniquify it.
5414
5415 2007-11-21 Nathan Froyd <froydnj@codesourcery.com>
5416
5417 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Don't
5418 set TREE_ADDRESSABLE. Do set DECL_COMDAT. Set TREE_READONLY if
5419 the type is a constant type. Set the assembler name and inform
5420 the rest of the compiler about the new decl if the decl is not
5421 public.
5422 (lto_read_subroutine_type_subprogram_DIE): Don't check for equivalency
5423 of DECL_ASSEMBLER_NAME when determining if we have a builtin. Don't
5424 try to read in function bodies for functions that already have bodies.
5425 * lto-symtab.c (lto_same_type_p): Check for unbounded array
5426 equivalency.
5427 (lto_symtab_merge_decl): Don't merge decls that aren't TREE_PUBLIC.
5428 Check for whether we matched a builtin function type before calling
5429 lto_same_type_p on the generated type. Permit cases where the
5430 declaration of an array is unbounded, but the definition is bounded.
5431 Don't combine TREE_PUBLIC flags. Copy over DECL_SIZE and
5432 DECL_SIZE_UNIT if necessary.
5433
5434 2007-11-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5435
5436 * lto-read.c (input_expr_operand): Get types right
5437 for COMPLEX_CST.
5438
5439 2007-11-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5440
5441 * lto-read.c (make_new_block, input_cfg): Properly set
5442 n_basic_blocks.
5443
5444 2007-11-16 Nathan Froyd <froydnj@codesourcery.com>
5445
5446 * lto.c (lto_read_array_type_DIE): Handle DIEs with DW_AT_GNU_vector
5447 set properly by building a VECTOR_TYPE instead of an ARRAY_TYPE.
5448
5449 2007-11-16 Nathan Froyd <froydnj@codesourcery.com>
5450
5451 * lto.c (lto_read_base_type_DIE): Use make_bitfield_integer_type to
5452 construct the integer type for bitfields.
5453
5454 2007-11-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5455
5456 * lto-read.c (data_in.current_node_has_loc): Removed.
5457 (input_line_info): Returns true if node needs line set.
5458 (set_line_info): Always sets line if called.
5459 (clear_line_info): Removed reference to current_node_needs_loc.
5460 (input_expr_operand): Keeps track locally if current node needs a loc.
5461 (input_local_var): Added code to handle DECL_INITIAL for
5462 static local vars. Only set loc if necessary.
5463
5464 2007-11-15 Nathan Froyd <froydnj@codesourcery.com>
5465
5466 * lto.c (lto_read_subroutine_type_subprogram_DIE): Fix thinko'd
5467 DECL_CONTEXT.
5468
5469 2007-11-15 Nathan Froyd <froydnj@codesourcery.com>
5470
5471 * lto.c: Include langhooks.h.
5472 (lto_find_integral_type): Rework logic to handle the case where
5473 got_byte_size is true, but the bitsize requested and that of the
5474 base_type doesn't match.
5475 (lto_read_variable_formal_parameter_constant_DIE): Only check for
5476 asm_name if we are creating a VAR_DECL.
5477 (lto_materialize_function): Set DECL_EXTERNAL if we can't find a
5478 definition.
5479 (lto_read_subroutine_type_subprogram_DIE): Check for a builtin
5480 function reference and use the builtin's decl if so. Set the
5481 DECL_CONTEXT of the RESULT_DECL for the function.
5482 * lto-lang.c (registered_builtin_fndecls): New variable.
5483 (lto_getdecls): Return it.
5484 (lto_builtin_function): Chain the new decl onto
5485 registered_builtin_fndecls.
5486
5487 2007-11-15 Kenneth Zadeck <zadeck@naturalbridge.com>
5488
5489 * lto-read.c (process_tree_flags, lto_static_init_local):
5490 Renamed to ADD_CLASS_EXPR_FLAG. ADD_CLASS_DECL_FLAG New Macro.
5491 (input_line_info, clear_line_info): Fixed new line number code.
5492 (input_expr_operand): Added type to SWITCH_EXPR.
5493 (lto_read_body): Properly initialized data_in.
5494 Clear line info when leaving.
5495
5496 2007-11-13 Diego Novillo <dnovillo@google.com>
5497
5498 * lto.c (lto_read_variable_formal_parameter_constant_DIE):
5499 Initialize ARTIFICIAL.
5500 (lto_read_subroutine_type_subprogram_DIE): Initialize
5501 SAVED_SCOPE.
5502 * lto-read.c (set_line_info): Remove ; from calls to
5503 LINEMAP_POSITION_FOR_COLUMN.
5504
5505 2007-11-13 Kenneth Zadeck <zadeck@naturalbridge.com>
5506
5507 * lto-read.c (input_type_ref): Renamed from get_type_ref.
5508 (input_expr_operand, input_local_var): Renamed get_type_ref to
5509 input_type_ref.
5510 (input_expr_operand): Get the types correct for
5511 vector-cst. Get SSA_NAME_DEF_STMT correct for return_exprs.
5512
5513 2007-11-13 Doug Kwan <dougkwan@google.com>
5514
5515 * lto-read.c (input_widest_uint_uleb128): New function.
5516 (input_tree_flags, process_tree_flags, input_line_info,
5517 input_expr_operand, input_local_var, input_phi, input_ssa_names):
5518 Change to use lto_flags_type and BITS_PER_LTO_FLAGS_TYPES instead of
5519 unsigned HOST_WIDE_INT and HOST_BITS_PER_WIDE_INT.
5520 (lto_static_init_local): Add code to assert that lto_flags_type is
5521 wide enough.
5522
5523 2007-11-13 Nathan Froyd <froydnj@codesourcery.com>
5524
5525 * lto.c (lto_read_array_type_DIE): Handle DW_AT_GNU_vector.
5526 (lto_read_subroutine_type_subprogram_DIE): Handle
5527 DW_AT_static_link and DW_AT_specification. Return the
5528 specification if present.
5529 (lto_read_base_type_DIE): Handle DW_ATE_complex_float.
5530
5531 2007-11-13 Nathan Froyd <froydnj@codesourcery.com>
5532
5533 * lto-lang.c: Include target.h.
5534 (registered_builtin_types): New variable.
5535 (lto_type_for_mode): Increase number of modes handled.
5536 (lto_builtin_function): Fix argument list and return the decl.
5537 (lto_register_builtin_type): New function.
5538 (lto_init): Initialize target builtins and language-independent
5539 nodes.
5540 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define.
5541
5542 2007-11-13 Kenneth Zadeck <zadeck@naturalbridge.com>
5543
5544 * lto-read.c (input_expr_operand): Added code to properly handle
5545 index filed. Added new RANGE_EXPR case.
5546
5547 2007-11-11 Kenneth Zadeck <zadeck@naturalbridge.com>
5548
5549 * lto-read.c (ADD_FUNC_FLAG): Deleted macro.
5550 (data_in): Added current_node_has_loc field.
5551 (input_line_info, set_line_info, clear_line_info): Added a support
5552 for USE_MAPPED_LOCATION and not adding line numbers to nodes that
5553 did not have on on the source side.
5554 (input_expr_operand): Make sure that GIMPLE_MODIFY_STMTS get line
5555 numbers too.
5556
5557 2007-11-09 Doug Kwan <dougkwan@google.com>
5558
5559 * lto-read.c (input_expr_operand): Change type of operand 2 of
5560 BIT_FIELD_REF expression to be bitsizetype instead of sizetype.
5561
5562 2007-11-09 Nathan Froyd <froydnj@codesourcery.com>
5563
5564 * lto.c: Include lto-tree.h. Effect small spaces->tabs cleanup.
5565 (lto_read_variable_formal_parameter_constant_DIE): Transfer bits
5566 from a DW_AT_specification or DW_AT_abstract_origin attribute to
5567 the new decl we are creating. Move informing the middle end about
5568 the new decl to...
5569 (lto_main): ...here. Inform the middle end about global variables
5570 after we have read in all the input files.
5571 * lto-symtab.c (lto_symtab_merge_decl): We really do need to merge
5572 variables with internal linkage, so delete the check for internal
5573 linkage. Combine TREE_PUBLIC flags.
5574
5575 2007-11-08 Nathan Froyd <froydnj@codesourcery.com>
5576
5577 * lto.c (lto_read_subroutine_type_subprogram_DIE): Handle
5578 DW_AT_decl_line.
5579 * lto-symtab.c (lto_symtab_merge_decl): Handle redefinition of a
5580 builtin specially. Move check for attribute compatibility
5581 earlier.
5582
5583 2007-11-07 Nathan Froyd <froydnj@codesourcery.com>
5584
5585 * Make-lang.in (lto/lto.o): Depend on gt-lto-lto.h.
5586 * config-lang.in (gtfiles): Add lto.h and lto.c.
5587 * lto-elf.c: Include ggc.h.
5588 (lto_elf_file_open): Allocate elf_file from GC memory.
5589 * lto.c: Include tree-ssa-operands.h and gt-lto-lto.h
5590 (lto_info_fd_init): Allocate the die_cache and unmaterialized_fndecls
5591 in GC memory.
5592 (lto_info_fd_close): Free unmaterialized_fndecls from GC memory.
5593 (lto_file_close): Free file from GC memory.
5594 (lto_cache_store_DIE): Allocate the new entry in GC memory.
5595 (lto_read_member_DIE): Fix declaration.
5596 (lto_read_subroutine_type_subprogram_DIE): unmaterialized_fndecls lives
5597 in GC memory.
5598 (current_lto_file): New variable.
5599 (lto_main): Use it.
5600 (DWARF2_attr, DWARF2_abbrev, lto_die_ptr, DWARF2_CompUnit,
5601 lto_die_cache_entry): Move to...
5602 * lto.h: ...here and add GTY markers as appropriate. Delete forward
5603 declarations accordingly.
5604 (struct lto_file_struct): Declare.
5605 (lto_file_vtable): Use it instead of lto_file.
5606
5607 2007-11-06 Alon Dayan <alond@il.ibm.com>
5608 Kenneth Zadeck <zadeck@naturalbridge.com>
5609
5610 * lto-read.c (process_flags, lto_static_init_local):
5611 read flags of VAR_DECL and FUNCTION_DECL of size>1.
5612 change global array num_flags_for_code to flags_length_for_code.
5613 (set_line_info): Make decls work in USE_MAPPED_LOCATION mode.
5614
5615 2007-11-05 Nathan Froyd <froydnj@codesourcery.com>
5616
5617 * lto.c (lto_read_structure_union_class_type_DIE): Use proper record
5618 layout functions to compute information about the newly constructed
5619 type.
5620
5621 2007-11-02 Nathan Froyd <froydnj@codesourcery.com>
5622
5623 * lto-read.c (input_expr_operand): Change the LTO_return_expr1
5624 case to use DECL_RESULT if necessary.
5625
5626 2007-11-01 Kenneth Zadeck <zadeck@naturalbridge.com>
5627
5628 * lto-read.c (input_tree_list): Removed.
5629 (input_tree_flags): Added parameter to force flags no matter what
5630 tree code.
5631 (input_expr_operand): Added parameter to input_tree_flags.
5632 Added case for IDENTIFIER_NODE and TREE_LIST. Changed ASM to call
5633 input_expr_operand rather than input_tree_lists.
5634 (input_local_var): Use input_expr_operand to read attributes
5635 rather then input_tree_list.
5636 (input_phi, input_ssa_names): Added parameter to input_tree_flags.
5637
5638 2007-10-31 Nathan Froyd <froydnj@codesourcery.com>
5639
5640 * lto.c (lto_read_typedef_DIE): Fix comment typo.
5641 (lto_resolve_typedecl_ref): Fetch the referred-to type and build a fake
5642 TYPE_DECL for it.
5643 * lto-read.c (lto_read_body): Use correct sizes for calculating
5644 type_decls_offset and types_offset.
5645
5646 2007-10-30 Nathan Froyd <froydnj@codesourcery.com>
5647
5648 * lto-tree.h (union lang_tree_node): Change GTY description to chain
5649 with GENERIC_NEXT.
5650 * config-lang.in (gtfiles): Add lto-lang.c.
5651 * lto-lang.c: Include gt-lto-lto-lang.h.
5652 * Make-lang.in (lto/lto-lang.o): Add dependency on gt-lto-lto-lang.h
5653 (lto/lto-symtab.o): Depend on LTO_H instead of TREE_H.
5654 (lto/lto-read.o): Likewise.
5655
5656 2007-10-29 Kenneth Zadeck <zadeck@naturalbridge.com>
5657
5658 * lto-read.c (data_in): Added type_decls and current_col fields.
5659 (string_slot): New type to hold canonized file name.
5660 (hash_string_slot_node, eq_string_slot_node, canon_file_name,
5661 input_line_info, set_line_info, clear_line_info): New functions.
5662 (file_name_hash_table): New hash table.
5663 (input_local_var, input_labels, input_local_vars_index,
5664 input_local_var, input_local_vars, input_ssa_names): Reorganized parameters.
5665 (input_uleb128): Changed type of byte var.
5666 (input_expr_operand): Large number of changes to get line numbers
5667 correct. Added TYPE_DECL case.
5668 (input_globals): Added code to get TYPE_DECLs processed.
5669 (input_local_var): Added code to process line numbers and
5670 TREE_CHAIN and DECL_CONTEXT.
5671 (input_function, input_constructor): Added call to
5672 clear_line_number.
5673 (lto_static_init_local): Added code to get line numbers correct.
5674 (lto_read_body): Added code to get TYPE_DECLS read and to change
5675 parameters to the calls above that had their parms reorganized.
5676
5677 2007-10-29 Nathan Froyd <froydnj@codesourcery.com>
5678
5679 * lto.h (lto_resolve_typedecl_ref): Declare.
5680 * lto.c (lto_resolve_typedecl_ref): New function.
5681
5682 2007-10-29 Mark Mitchell <mark@codesourcery.com>
5683 Nathan Froyd <froydnj@codesourcery.com>
5684
5685 * lto.c (lto_read_subroutine_type_subprogram_DIE): Read the child
5686 DIEs even if we find an abstract origin for this DIE.
5687
5688 2007-10-29 Nathan Froyd <froydnj@codesourcery.com>
5689
5690 * lto.c (lto_read_subroutine_type_subprogram_DIE): Build the
5691 RESULT_DECL slightly earlier. Only remember the decl for later
5692 if we successfully merge declarations.
5693
5694 2007-10-24 Kenneth Zadeck <zadeck@naturalbridge.com>
5695
5696 * lto-read.c (input_expr_operand): Give label_values the proper
5697 context and provide switch statements with a default type.
5698
5699 2007-10-23 Nathan Froyd <froydnj@codesourcery.com>
5700
5701 * lto-read.c (lto_read_body): Move call to init_ssa_operands...
5702 * lto.c (lto_materialize_function): ...to here.
5703
5704 2007-10-22 Nathan Froyd <froydnj@codesourcery.com>
5705
5706 * lto.h (struct lto_info_fd): Add field unmaterialized_fndecls.
5707 * lto.c (lto_info_fd_init): Initialize it.
5708 (lto_info_fd_close): Free it.
5709 (lto_materialize_function): New function.
5710 (lto_read_subroutine_type_subprogram_DIE): Save the result decl on
5711 unmaterialized_fndecls.
5712 (lto_file_read): Read in all the function bodies after we have read
5713 all of the DWARF info.
5714 * lto-read.c (lto_read_body): Call init_ssa_operands if we are
5715 reading a function body.
5716
5717 2007-10-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5718
5719 * lto-read.c (input_tree_flags): Renamed from input_flags to be
5720 semetric with output_tree_flags. Added call to log flags.
5721 (process_tree_flags): Renamed from process_flags. Fixed a lot of
5722 type issues to make everything consistent with flags being
5723 unsigned HOST_WIDE_INTS.
5724 (input_expr_operand): Added call to
5725 recompute_tree_invariant_for_addr_expr.
5726 (input_local_var): Added debugging for tree_chains. Now calls
5727 input_tree_flags.
5728 (input_phi): Made flags unsigned HOST_WIDE_INT.
5729 (input_ssa_names): Now calls input_tree_flags.
5730 (lto_read_body): Now sets cfun.
5731 (lto_read_function_body): Now sets current_function_pointer.
5732
5733 2007-10-19 Nathan Froyd <froydnj@codesourcery.com>
5734
5735 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Check
5736 definitively whether SPECIFICATION or ABSTRACT_ORIGIN exist before
5737 inspecting fields within.
5738 (lto_read_DIE_at_ptr): Delete check for null result; let callers
5739 handle this appropriately.
5740
5741 2007-10-19 Nathan Froyd <froydnj@codesourcery.com>
5742
5743 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Handle
5744 DW_AT_abstract_origin properly. Ensure that we're not dealing with
5745 both DW_AT_abstract_origin and DW_AT_specification.
5746 (lto_read_subroutine_type_subprogram_DIE): Handle
5747 DW_AT_abstract_origin.
5748 (lto_read_DIE): Use lto_read_only_for_child_DIEs for labels.
5749 (lto_read_DIE_at_ptr): Define as static to match declaration.
5750 Lookup the PTR in the cache before reading it from the file.
5751 (lto_resolve_var_ref): Adjust accordingly.
5752 (lto_resolve_fn_ref): Adjust accordingly. Tweak comment.
5753 (lto_resolve_field_ref): Adjust accordingly. Tweak comment.
5754
5755 2007-10-19 Nathan Froyd <froydnj@codesourcery.com>
5756
5757 * lto.c (lto_read_DIE_at_ptr): New function.
5758 (lto_resolve_var_ref): Use it.
5759 (lto_resolve_fn_ref): Use it.
5760 (lto_resolve_field_ref): Use it.
5761 (lto_read_variable_formal_parameter_constant_DIE): Follow
5762 DW_AT_specification and return the associated decl when appropriate.
5763
5764 2007-10-18 Nathan Froyd <froydnj@codesourcery.com>
5765
5766 * lto-lang.c (lto_type_for_mode): Move after lto_type_for_size.
5767 Implement for scalar integer modes.
5768 (lto_init): Initialize size_type_node.
5769
5770 2007-10-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5771
5772 * lto-read.c (input_expr_operand): Remove ssa name asserts.
5773 (input_local_var): Add chaining for params.
5774 (input_ssa_names): Add cfun parameter.
5775 (input_function): Remove unnecessary else.
5776
5777 2007-10-17 Nathan Froyd <froydnj@codesourcery.com>
5778
5779 * lto.c (lto_read_only_for_child_DIEs): Mark die parameter as unused.
5780 (lto_resolve_var_ref): Use proper types.
5781 (lto_resolve_fn_ref): Likewise.
5782 (lto_resolve_field_ref): Likewise.
5783
5784 2007-10-17 Nathan Froyd <froydnj@codesourcery.com>
5785
5786 * lto-read.c (input_expr_operand): Remove case.
5787
5788 2007-10-17 Nathan Froyd <froydnj@codesourcery.com>
5789
5790 * lto.c (lto_read_only_for_child_DIEs): New function.
5791 (lto_read_DIE): Use it for lexical_block and inlined_subroutine DIEs.
5792 * lto-elf.c (lto_elf_map_lto_section): Remove.
5793 (lto_elf_file_vtable): Use lto_elf_map_optional_lto_section instead.
5794 * lto-read.c (input_expr_operand): Assert that we never read a NULL
5795 SSA_NAME. Add missing case for mechanical codes.
5796 (input_cfg): Use basic_block_info_for_function instead of
5797 basic_block_info.
5798
5799 2007-10-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5800
5801 * lto-read.c (input_sleb128, input_integer): Use proper casts.
5802 (input_list): Renamed input_tree_list and modified to follow same
5803 protocol as lto-function-out.c:output_tree_list.
5804 (input_expr_operand): Make asm operands use input_tree_list.
5805 (input_local_var): Now uses input_tree_list.
5806 (lto_read_body): Change placement for setting context of debug_labels.
5807
5808 2007-10-16 Kenneth Zadeck <zadeck@naturalbridge.com>
5809
5810 * lto-read.c (input_real): Output debugging in proper order.
5811 (input_integer): Compute bit lengths properly.
5812 (input_list): Clean up declaration.
5813 (input_expr_operand): Change calls to input_real to match fix.
5814 Make reading of LTO_bit_field_ref1 match output.
5815 (input_local_var): Make reading of attributes match what is being
5816 written.
5817 (dump_debug_stream): Also print char in hex.
5818 (debug_out_fun): Fix signed unsigned mismatch.
5819
5820 2007-10-10 Nathan Froyd <froydnj@codesourcery.com>
5821
5822 * lto.c (lto_read_form): Handle DW_AT_MIPS_linkage_name and
5823 DW_AT_GNU_vector specially, as they are not contiguous with the
5824 specified set of attribute names. Use class_mask to check for
5825 errors at the end of the function
5826 (lto_resolve_var_ref): Read the DIE if it is not cached.
5827 (lto_resolve_fn_ref): Likewise.
5828 (lto_resolve_field_ref): Likewise.
5829
5830 2007-10-05 Nathan Froyd <froydnj@codesourcery.com>
5831
5832 * lto.c: Include dwarf2out.h.
5833 (lto_cache_store_DIE): Assert that we never change the value.
5834 (LTO_BEGIN_READ_ATTRS): Print an informative error message.
5835 (lto_read_compile_unit_DIE): Handle DW_AT_entry_pc.
5836 (lto_read_array_type_DIE): Don't error on ndims == 0; build a
5837 sensible type instead.
5838 (lto_read_structure_union_class_type_DIE): Store the newly
5839 created type prior to reading the members of the structure to
5840 avoid infinite recursion. Avoid computing types and alignments
5841 for structures whose sizes are unknown.
5842 (lto_read_variable_formal_parameter_const): Handle DW_AT_artificial
5843 and set DECL_ARTIFICIAL accordingly. Ignore DW_AT_abstract_origin,
5844 DW_AT_const_value, and DW_AT_specification.
5845 (lto_read_subroutine_type_subprogram_DIE): Handle DW_AT_declaration.
5846 Return early if we have already constructed the function type.
5847 (lto_read_typedef_DIE): Check to see if the type has been cached
5848 already. Cache the type before reading any children.
5849 (lto_read_const_volatile_restrict_type_DIE): Handle DW_AT_name.
5850 (lto_read_DIE): Unset context->skip_non_parameters around reading
5851 the DIE.
5852 (lto_resolve_fn_ref): Delete trailing whitespace.
5853
5854 2007-09-11 Kenneth Zadeck <zadeck@naturalbridge.com>
5855
5856 * lto-read.c (input_expr_operand): Added type for STRING_CST.
5857
5858 2007-09-10 Nathan Froyd <froydnj@codesourcery.com>
5859
5860 * lto-read.c (lto_read): Set the type of the newly created CALL_EXPR.
5861
5862 2007-09-07 Nathan Froyd <froydnj@codesourcery.com>
5863
5864 * lto-lang.c (signed_and_unsigned_types): New variable.
5865 (lto_type_for_size): Consult signed_and_unsigned_types to find
5866 an approprite type, creating it if necessary.
5867 (lto_set_decl_assembler_name): Add actual method body.
5868
5869 2007-09-06 Jim Blandy <jimb@codesourcery.com>
5870
5871 * lto.c (lto_read_variable_formal_parameter_constant_DIE): If we
5872 can't find a var init for this variable, leave its DECL_INITIAL.
5873 * lto-elf.c (lto_elf_map_optional_lto_section): Renamed from
5874 lto_elf_map_fn_body.
5875 (lto_map_lto_section): New function.
5876 (lto_elf_file_vtable): Use lto_elf_map_lto_section for function
5877 bodies, and lto_elf_map_optional_lto_section for variable
5878 initializers.
5879 (lto_elf_find_section_data): Quietly return NULL if the section is
5880 missing.
5881 (lto_elf_file_open): Check for a NULL from lto_elf_find_section_data.
5882
5883 * lto-elf.c (lto_elf_find_section_data): Remove dead code.
5884
5885 * lto-read.c (lto_read_body): Doc fix.
5886
5887 2007-08-29 Kenneth Zadeck <zadeck@naturalbridge.com>
5888
5889 * lto-read.c (fun_in): Renamed to data_in.
5890 (input_expr_operand, input_local_var, input_string_internal,
5891 input_string, input_real, input_list, get_label_decl,
5892 get_type_ref, input_expr_operand, input_globals, input_labels,
5893 input_local_vars_index, input_local_var, input_local_vars,
5894 input_cfg, input_phi, input_ssa_names, input_bb, ): Renamed fun_in to data_in.
5895 (input_constructor): New function.
5896 (lto_read_function_body): Renamed to lto_read_body and generalized
5897 to handle both functions and constructors.
5898 (lto_read_function_body, lto_read_var_init): New function.
5899
5900 2007-08-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5901
5902 * lto-read.c (input_expr_operand): Assert that there really is a
5903 FUNCTION_DECL.
5904 (input_globals): Removed checks on 0 section.
5905
5906 2007-08-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5907
5908 * lto-read.c (fun_in): Added local_decls_index and
5909 local_decls_index_d.
5910 (input_expr_operand): Changed inputting of PARM_DECLs and VAR_DECLs.
5911 (input_globals): Enabled code to handle FIELD_DECLs.
5912 (input_local_vars_index, input_local_vars): New function.
5913 (input_local_var): Changed to allow locals to be input randomly.
5914 (lto_read_function_body): Added code to input the
5915 local_decls_index and to free various structures.
5916
5917 2007-08-17 Jim Blandy <jimb@codesourcery.com>
5918
5919 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Remove
5920 ATTRIBUTE_UNUSED from 'die' formal.
5921
5922 Use enum LTO_tags where appropriate, instead of 'unsigned int'.
5923 * lto-read.c (input_record_start): Fix return type, type of 'tag'.
5924 (input_list): Fix type of 'tag'.
5925 (input_expr_operand): Fix type of 'tag' argument. Update
5926 declaration. Fix type of 'ctag'. Add default case to switch,
5927 since the type of the switched value is now an enum.
5928 (input_local_vars): Fix type of 'tag'.
5929 (input_bb): Fix type of 'tag' argument.
5930 (input_function): Fix type of 'tag' argument.
5931
5932 2007-08-16 Jim Blandy <jimb@codesourcery.com>
5933
5934 * lto.c (lto_read_member_DIE): Record the tree we create in
5935 fd->die_cache. (Our 'die' argument is no longer unused.)
5936 (lto_resolve_field_ref): New function.
5937 * lto.h (lto_resolve_field_ref): New declaration.
5938
5939 2007-08-15 Jim Blandy <jimb@codesourcery.com>
5940
5941 * lto-read.c (lto_read_var_init): Mark arguments as unused.
5942
5943 2007-08-07 Jim Blandy <jimb@codesourcery.com>
5944
5945 * lto.c (lto_read_form): Complete attr_classes table.
5946 (DWARF2_form_data): Doc fix.
5947
5948 2007-08-05 Mark Mitchell <mark@codesourcery.com>
5949
5950 * lto.h (lto_file_vtable): Remove read_var_init. Add map_var_init
5951 and unmap_var_init.
5952 (lto_read_var_init): Declare.
5953 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Use new
5954 interface for reading variable initializers.
5955 * lto-elf.c (lto_elf_read_var_init): Remove.
5956 (lto_elf_file_vtable): Update initializer.
5957 (lto_elf_read_var_init): Add comment about unused-ness.
5958 * lto-read.c (lto_read_var_init): New.
5959
5960 * lto.c (lto_read_form): Add entry for DW_AT_inline.
5961
5962 2007-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
5963
5964 * lto-read.c (lto_read_function_body): Moved declaration of fn
5965 outside of ifdef.
5966
5967 2007-08-01 Kenneth Zadeck <zadeck@naturalbridge.com>
5968
5969 * lto-read.c (input_uleb128, input_string_internal, input_real,
5970 input_integer, input_record_start, input_list, get_type_ref,
5971 input_flags, input_expr_operand, input_expr_operand,
5972 input_expr_operand, input_local_vars, input_cfg, input_phi,
5973 input_ssa_names, input_bb, input_function): Added semicolons.
5974
5975
5976 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
5977
5978 * lto-read.c (input_globals): Remove debugging.
5979 (input_function): Set DECL_ARGUMENTS.
5980
5981 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
5982
5983 * lto-read.c (input_expr_operand): Fixed code for COND_EXEC,
5984 RETURN_EXPR, MODIFY_EXPR and processing of flags.
5985 (input_phi): Made work with operands other than SSA_NAMES and
5986 fixed processing of flags.
5987 (input_ssa_names): Initialize SSA_NAME_DEF_STMT to empty stmt.
5988 (input_flags): New function.
5989 * lto-lang.c (lto_init): Changed state of in_lto_p.
5990
5991
5992 2007-07-24 Mark Mitchell <mark@codesourcery.com>
5993
5994 * lto-tree.h (lto_varargs_cookie): Remove.
5995 * lto.c (lto_context): Add last_parm_type, varargs_p, skip_all,
5996 skip_non_parameters, skip_parameters.
5997 (lto_varargs_cookie): Remove.
5998 (lto_read_variable_formal_parameter_constant_DIE): Keep track of
5999 parameter types.
6000 (lto_read_abbrev): New function.
6001 (lto_read_subroutine_type_subprogram_DIE): Make two passes over
6002 child DIEs.
6003 (lto_read_unspecified_parameters_DIE): Set context->varargs_p.
6004 (lto_read_DIE): Use lto_read_abbrev. Honor skip_* flags.
6005 (lto_file_read): Initialize new context fields.
6006 * lto-lang.c (lto_type_for_mode): Return NULL_TREE.
6007 (lto_unsigned_type): Remove.
6008 (lto_signed_type): Likewise.
6009 (lto_signed_or_unsigned_type): Likewise.
6010 (lto_init): Do not create lto_varargs_cookie.
6011 (LANG_HOOKS_UNSIGNED_TYPE): Do not define.
6012 (LANG_HOOKS_SIGNED_TYPE): Likewise.
6013 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Likewise.
6014
6015 2007-07-19 Jan Hubicka <jh@suse.cz>
6016
6017 * lto-read.c (lto_read_function_body): Produce empty scope block
6018 to avoid crash.
6019
6020 2007-07-18 Mark Mitchell <mark@codesourcery.com>
6021
6022 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Do not
6023 process local variables.
6024 (lto_read_subroutine_type_subprogram_DIE): Read child DIEs.
6025
6026 2007-07-13 Kenneth Zadeck <zadeck@naturalbridge.com>
6027
6028 * lto-read.c (input_list, input_expr_operand): Added struct
6029 function parameter.
6030 (init_cfg, finalize_cfg): Removed function.
6031 (input_expr_operand): Added SSA_NAME and GIMPLE_MODIFY_STMT cases.
6032 (input_labels, input_local_vars): Now takes input_block parameter rather than
6033 synthsyzing it.
6034 (input_cfg, input_phi, input_ssa_names): New functions.
6035 (input_bb): Now passes in input_blocks. Does not construct cfg
6036 and processes the list of phi functions.
6037 (input_function): Now builds both the cfg and ssa_names table.
6038 (lto_read_function_body): Processes new header fields to construct
6039 streams for the ssa_names and cfg and their debugging.
6040 * lto-lang.c (lto_init): Set in_lto_p.
6041
6042
6043 2007-06-28 Mark Mitchell <mark@codesourcery.com>
6044
6045 * lto.h (lto_file_vtable): Add read_var_init.
6046 * lto.c (lto_read_variable_formal_parameter_constant_DIE): Read
6047 initializers.
6048 (lto_main): Remove bogus asserts.
6049 * lto-elf.c (tm.h): Include it.
6050 (libiberty.y): Likewise.
6051 (lto_elf_file): Add strtab and symtab. Rename
6052 string_table_section_index to sec_strtab.
6053 (lto_elf_file_vtable): Add lto_elf_read_var_init.
6054 (lto_elf_get_shdr): New function.
6055 (lto_elf_free_shdr): Likewise.
6056 (lto_elf_find_section_data): Use them.
6057 (lto_elf_read_symtab): New function.
6058 (lto_elf_lookup_sym): Likewise.
6059 (lto_elf_free_sym): Likewise.
6060 (lto_elf_file_open): Tidy. Call lto_elf_read_symtab.
6061 (lto_elf_built_init): New function.
6062 (lto_elf_read_var_init): Likewise.
6063 * Make-lang.in (lto/lto-elf.o): Depend on $(TM_H).
6064
6065 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
6066
6067 * lto-read (make_new_block): Initialize the stmt_list.
6068 (lto_static_init_local): Add debugging for missing codes.
6069
6070 2007-06-26 Mark Mitchell <mark@codesourcery.com>
6071
6072 * lto.c (lto_read_subroutine_type_subprogram_DIE): Handle
6073 unprototyped functions.
6074
6075 2007-06-23 Mark Mitchell <mark@codesourcery.com>
6076
6077 * lto.c (lto_read_variable_formal_parameter_constant_DIE):
6078 Handle DW_AT_MIPS_linkage_name.
6079 (lto_read_subroutine_type_subprogram): Likewise. Correct
6080 compilation errors.
6081 (lto_main): Remove incorrect assertions.
6082 * lto-symbtab.c: Build function types out of TREE_LISTs.
6083
6084 * lto-elf.c (<libelf>): Check for HAVE_LIBELF_H.
6085
6086 * Make-lang.in (LTO_OBJS): Depend on attribs.o.
6087
6088 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
6089
6090 * lto-tree.h (lang_decl, lang_type, language_function): Added
6091 dummy since ggc does not like empty structs.
6092 * lto-elf.c (libelf.h): Changed to libelf/libelf.h.
6093 * lto-read.c (ADD_CLASS_FLAG, ADD_EXPR_FLAG): Changed
6094 expr->common to expr->base.
6095 (make_new_block): Moved stmt_list to proper place.
6096
6097 2007-03-14 Robert Kennedy <jimbob@google.com>
6098
6099 Eliminate use of lang_hooks.set_decl_assembler_name from LTO
6100 * lto.c (lto_read_subroutine_type_subprogram_DIE) Get DECL
6101 assembler name from DWARF.
6102 * lto-lang.c (lto_set_decl_assembler_name) New function.
6103
6104 2006-09-10 Mark Mitchell <mark@codesourcery.com>
6105
6106 * lto.h (lto_file_vtable): New structure.
6107 (lto_file): Add vtable pointer.
6108 (lto_file_init): Add vtable paramter.
6109 (lto_read_function_body): New function.
6110 (lto_symtab_merge_fn): New function.
6111 * lto.c (lto_file_init): Add vtable parameter.
6112 (lto_read_form): Fill in entries for DW_AT_prototyped,
6113 DW_AT_frame_base.
6114 (lto_read_subroutine_type_subprogram_DIE): New function.
6115 (lto_read_DIE): Fill in entries for DW_TAG_subroutine_type and
6116 DW_TAG_subprogram.
6117 * lto-elf.c (lto_elf_vile_vtable): New variable.
6118 (lto_elf_file_open): Pass it to lto_file_init.
6119 (lto_elf_map_fn_body): New function.
6120 (lto_elf_unmap_fn_body): Likewise.
6121 * lto-read.c: New file.
6122 * lto-symtab.c (lto_symtab_merge_fn): New function.
6123 * lto-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define to
6124 tree_rest_of_compilation.
6125 * Make-lang.in (LTO_OBJS): Add lto-read.o
6126 (lto-read.o): New target.
6127
6128 2006-09-03 Mark Mitchell <mark@codesourcery.com>
6129
6130 * lto.c (<inttypes.h>): Don't include it.
6131 (lto_context): Don't typedef it.
6132 (lto_resolve_reference): New function.
6133 (lto_read_form): Use it.
6134 (lto_resolve_type_ref): New function.
6135 (lto_resolve_var_ref): Likewise.
6136 (lto_resolve_fn_ref): Likewise.
6137 * lto.h (<inttypes.h>): Include it.
6138 (lto_context): New type.
6139 (lto_ref): New structure.
6140 (lto_resolve_type_ref): Declare.
6141 (lto_resolve_var_ref): Likewise.
6142 (lto_resolve_fn_ref): Likewise.
6143
6144 2006-08-18 Mark Mitchell <mark@codesourcery.com>
6145
6146 * lang-specs.h: New file.
6147
6148 2006-08-14 Mark Mitchell <mark@codesourcery.com>
6149
6150 * lto.c (lto_info_fd_init): Allocate the DIE cache.
6151 (lto_info_fd_close): Deallocate it.
6152 (lto_die_cache_entry): New structure.
6153 (lto_cache_hash): New function.
6154 (lto_cache_eq): Likewise.
6155 (lto_cache_store_DIE): Likewise.
6156 (lto_cache_lookup_DIE): Likewise.
6157 (lto_read_referenced_type_DIE): Use the cache.
6158 (lto_read_pointer_type_DIE): Robustify.
6159 (lto_read_DIE): Use the cache.
6160 * lto.h (hashtab.h): Include.
6161 (lto_info_fd): Add DIE cache.
6162 * Make-lang.in (LTO_H): New variable.
6163 (lto/lto-lang.o): Use LTO_H.
6164 (lto/lto-elf.o): Likewise.
6165 (lto/lto-symtab.o): Likewise.
6166
6167 2006-07-09 Mark Mitchell <mark@codesourcery.com>
6168
6169 * lto.c (lto_abi_mismatch_error): New function.
6170 (lto_abbrev_read): Initialize num_abbrevs.
6171 (lto_read_form): Specify allowed form classes for
6172 DW_AT_declaration. Adjust for change to lto_set_cu_context.
6173 (lto_read_variable_formal_parameter_constant_DIE): Handle
6174 DW_AT_declaration. Call lto_symtab_merge_var.
6175 (lto_read_pointer_type_DIE): New function.
6176 (lto_read_base_type_DIE): Use build_nonstandard_integer_type. Do
6177 not creat TYPE_DECLs for types that already have them.
6178 (lto_read_DIE): Add lto_read_pointer_type_DIE.
6179 (lto_set_cu_context): Make cu_start point to the header, not the
6180 first DIE.
6181 (lto_file_read): Adjust for change to lto_set_cu_context.
6182 * Make-lang.in (LTO_OBJS): Add lto-symtab.o.
6183 (lto/lto-symtab.o): New rule.
6184 * lto-tree.h (lang_identifier): Add decl field.
6185 (LANG_IDENTIFIER_CAST): New macro.
6186 (LTO_IDENTIFIER_DECL): Likewise.
6187 (lto_symtab_merge_var): Declare.
6188 * lto-symtab.c: New file.
6189
6190 2006-07-02 Daniel Berlin <dberlin@dberlin.org>
6191
6192 * lto.c (lto_context): Add current_cu and info_fd members.
6193 (DWARF2_CompUnit): New structure.
6194 (lto_read_DIE): Take lto_info_fd *.
6195 (lto_read_child_DIEs): Ditto.
6196 (lto_file_corrupt_error): Constify argument.
6197 (lto_set_cu_context): New function
6198 (lto_info_fd_init): Ditto.
6199 (lto_info_fd_close): Ditto.
6200 (lto_file_init): Use lto_info_fd_init.
6201 (lto_file_close): Use lto_info_fd_close.
6202 (lto_read_initial_length): Pass in pointer to header size.
6203 (lto_read_comp_unit_header): Correct cu_length to
6204 real length from beginning of header. Take lto_info_fd * as
6205 argument.
6206 (find_cu_for_offset): New function.
6207 (lto_read_form): Change first argument to lto_info_fd *.
6208 Add FORM_CONTEXT argument.
6209 Handle DW_FORM_ref_addr.
6210 (lto_read_tag_DIE): Change first argument to lto_info_fd *.
6211 (LTO_BEGIN_READ_ATTRS_UNCHECKED): Save old context.
6212 Swap contexts if necessary for form.
6213 (LTO_BEGIN_READ_ATTRS): Cast fd to right type for
6214 lto_file_corrupt_error.
6215 (LTO_END_READ_ATTRS): Swap contexts back if it had changed.
6216 (lto_read_referenced_type_DIE): Change first argument to
6217 lto_info_fd *. Access lto_fd fields through base pointer.
6218 (lto_read_compile_unit_DIE): Change first argument to an
6219 lto_info_fd *.
6220 (lto_read_variable_formal_parameter_constant_DIE): Ditto.
6221 (lto_read_base_type_DIE): Ditto.
6222 (lto_read_child_DIEs): Ditto.
6223 (lto_read_DIE): Ditto. Change type of function pointer.
6224 (lto_info_read): New function.
6225 (lto_set_cu_context): Ditto.
6226 (lto_file_read): Use lto_info_read, walk resulting CU's
6227 (lto_main): Update for lto_info_fd change.
6228 * lto-elf.c (lto_elf_file_open): Cast lto_info_fd to lto_fd where
6229 necessary.
6230 * lto.h (DWARF2_CompUnit): New structure.
6231 (lto_info_fd): Ditto.
6232 (lto_file): Change debug_info to be an lto_info_fd.
6233
6234 2006-06-25 Mark Mitchell <mark@codesourcery.com>
6235
6236 * lto.c (toplev.h): Include it.
6237 (dwarf2.h): Likewise.
6238 (tree.h): Likewise.
6239 (tm.h): Likewise.
6240 (cgraph.h): Likewise.
6241 (ggc.h): Likewise.
6242 (inttypes.h): Likewise.
6243 (DWARF2_attr): New type.
6244 (DWARF2_abbrev): Likewise.
6245 (DWARF2_class): Likewise.
6246 (DWARF2_form_data): Likewise.
6247 (lto_context): Likewise.
6248 (lto_fd_init): New function.
6249 (lto_abbrev_fd_init): Likewise.
6250 (lto_abbrev_fd_close): Likewise.
6251 (lto_file_init): Use them.
6252 (lto_file_close): New function.
6253 (lto_file_corrupt_error): Likewise.
6254 (LTO_CHECK_INT_VAL): New macro.
6255 (lto_check_size_t_val): New function.
6256 (lto_check_int_val): Likewise.
6257 (LTO_READ_TYPE): New macro.
6258 (lto_read_ubyte): New function.
6259 (lto_read_uhalf): Likewise.
6260 (lto_read_uword): Likewise.
6261 (lto_read_uleb128): Likewise.
6262 (lto_read_initial_length): Likewise.
6263 (lto_abbrev_read_attrs): Likewise.
6264 (lto_abbrev_read): Likewise.
6265 (lto_abbrev_lookup): Likewise.
6266 (lto_read_section_offset): Likewise.
6267 (lto_read_comp_unit_header): Likewise.
6268 (lto_read_form): Likewise.
6269 (LTO_BEGIN_READ_ATTRS_UNCHECKED): New macro.
6270 (LTO_BEGIN_READ_ATTRS): Likewise.
6271 (LTO_END_READ_ATTRS): Likewise.
6272 (lto_unsupported_attr_error): New function.
6273 (lto_get_identifier): Likewise.
6274 (lto_read_referenced_type_DIE): Likewise.
6275 (lto_read_compile_unit_DIE): Likewise.
6276 (lto_read_variable_formal_parameter_constant_DIE): Likewise.
6277 (lto_read_base_type_DIE): Likewise.
6278 (lto_read_DIE): Likewise.
6279 (lto_read_child_DIEs): Likewise.
6280 (lto_file_read): Read DIEs.
6281 (lto_main): Ask middle end to emit entities.
6282 * lto-tree.h (lang_identifier): Inherit from tree_identifier.
6283 * lto-elf.c (lto_elf_file_open): Adjust for interface changes.
6284 (lto_elf_file_close): Likewise.
6285 * lto.h (lto_file): Declare.
6286 (DWARF2_abbrev): Likewise.
6287 (lto_fd): New type.
6288 (lto_abbrev_fd): Likewise.
6289 (lto_file): Use new types.
6290 (lto_file_close): Declare.
6291 * lto-lang.c (lto_init): Always use unit-at-a-time mode.
6292
6293 2006-06-18 Mark Mitchell <mark@codesourcery.com>
6294
6295 * lto.h: New file.
6296 * lto.c: New file.
6297 * lto-elf.c: New file.
6298 * lto-lang.c (flags.h): Include it.
6299 (lto.h): Likewise.
6300 (lto_init): New function.
6301 (lto_write_globals): Remove.
6302 (LANG_HOOKS_WRITE_GLOBALS): Define to lhd_do_nothing.
6303 (LANG_HOOKS_INIT): Define.
6304 (LANG_HOOKS_PARSE_FILE): Likewise.
6305 * Make-lang.in (LTO_OBJS): Add lto.o and lto-elf.o.
6306 (LTO_EXE): Link with libelf.
6307 (lto/lto-lang.o): Update dependencies.
6308 (lto/lto.o): New target.
6309 (lto/lto-elf.o): Likewise.
6310
6311 2006-06-12 Mark Mitchell <mark@codesourcery.com>
6312
6313 * config-lang.in: New file.
6314 * Make-lang.in: Likewise.
6315 * lto-tree.h: Likewise.
6316 * lto-lang.c: Likewise.
6317 \f
6318 Copyright (C) 2006-2019 Free Software Foundation, Inc.
6319
6320 Copying and distribution of this file, with or without modification,
6321 are permitted in any medium without royalty provided the copyright
6322 notice and this notice are preserved.