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