Debian Codegraph @

gcc/lto/ChangeLog

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