1 2009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * pa.md (casesi): Use sign extended index in call to
6 (casesi64p): Update pattern to reflect above.
8 2009-10-15 Steve Ellcey <sje@cup.hp.com>
10 PR rtl-optimization/41697
11 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
13 2009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16 * config/rs6000/predicates.md: Update copyright year.
17 * config/rs6000/altivec.md: Ditto.
19 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
20 (MD_INCLUDES): Add a2.md.
22 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
23 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
24 (builtin_classify): New static vector to classify various builtins
25 to get the tree attributes correct.
26 (def_builtin): Set the attributes of builtins based on what the
27 builtin does (i.e. memory operation, floating point, saturation
28 need special attributes, others are pure functions).
30 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
32 (enum rs6000_builtins): Include rs6000-builtin.def to define the
33 builtins. Change the end marker to MAX_RS6000_BUILTINS from
35 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
38 * config/rs6000/rs6000-builtin.def: New file that combines the
39 builtin enumeration name and attributes.
41 2009-10-15 H.J. Lu <hongjiu.lu@intel.com>
43 * config/i386/linux.h (ASM_SPEC): Add --32.
45 2009-10-15 Jakub Jelinek <jakub@redhat.com>
47 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
48 and DW_TAG_template_alias.
49 (dwarf_attr_name): Handle DW_AT_main_subprogram,
50 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
51 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
52 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
53 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
54 and DW_AT_GNU_odr_signature.
55 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
56 DW_FORM_flag_present and DW_FORM_ref_sig8.
57 (output_signature): Only print name on the first byte.
58 (output_die): Likewise for dw_val_class_data8.
60 2009-10-15 Alexander Monakov <amonakov@ispras.ru>
62 * doc/invoke.texi: Clarify that most optimizations are not enabled
65 2009-10-15 Richard Guenther <rguenther@suse.de>
68 * gimple.c (compare_type_names_p): Handle anonymous names
69 differently based on new mode argument.
70 (gimple_types_compatible_p): For structs also compare the tags.
71 (iterative_hash_type_name): Rename to ...
72 (iterative_hash_name): ... this. Hash all names.
73 (iterative_hash_gimple_type): Fix hashing the struct tag of
74 pointer targets. Hash field decl names.
76 2009-10-15 Richard Guenther <rguenther@suse.de>
79 * gimple.c (gimple_get_alias_set): Avoid recursing on
80 invalid type topology.
82 2009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
84 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
86 2009-10-15 Richard Guenther <rguenther@suse.de>
88 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
90 2009-10-15 Jakub Jelinek <jakub@redhat.com>
92 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
93 add --with-tune{,-32,-64} configured default for -mtune if explicit
96 2009-10-14 Daniel Gutson <dgutson@codesourcery.com>
98 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds
102 * gcc.target/arm/neon/vfp-shift-a2t2.c: New test case.
104 2009-10-14 DJ Delorie <dj@redhat.com>
106 * config/h8300/h8300.c (F): New.
108 (h8300_emit_stack_adjustment): Call them.
110 (h8300_push_pop): Likewise.
111 (h8300_expand_prologue): Likewise.
112 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
113 (MUST_USE_SJLJ_EXCEPTIONS): Define.
114 (INCOMING_RETURN_ADDR_RTX): Define.
115 (INCOMING_FRAME_SP_OFFSET): Define.
116 (DWARF_CIE_DATA_ALIGNMENT): Define.
118 2009-10-14 Jakub Jelinek <jakub@redhat.com>
120 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
121 fields in builtin structs.
122 (finalize_record_size): Likewise.
124 2009-10-14 Richard Guenther <rguenther@suse.de>
126 * gimple.c (gtc_ob): New global.
127 (struct type_pair_d): Replace pointers with type UIDs.
128 (type_pair_hash): Adjust.
129 (type_pair_eq): Likewise.
130 (lookup_type_pair): Likewise. Allocate from an obstack.
131 (gimple_force_type_merge): Adjust.
132 (gimple_types_compatible_p): Likewise.
133 (free_gimple_type_tables): Free the obstack.
135 2009-10-14 Jakub Jelinek <jakub@redhat.com>
137 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
138 stmts setting DEBUG_EXPR_DECLs.
140 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
141 Don't crash if mode1 is VOIDmode.
143 2009-09-26 Vladimir Makarov <vmakarov@redhat.com>
145 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
146 * params.h (IRA_LOOP_RESERVED_REGS): New
147 * tree-pass.h (pass_subregs_of_mode_init,
148 pass_subregs_of_mode_finish): Remove.
149 * passes.c (pass_subregs_of_mode_init,
150 pass_subregs_of_mode_finish): Remove.
151 (pass_reginfo_init): Move before loop optimizations.
152 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
153 * common.opt (fira-loop-pressure): New.
154 * toplev.h (flag_ira_loop_pressure): New.
155 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New
157 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
158 Make external and void type functions.
159 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
160 pass_subregs_of_mode_finish): Remove.
161 * ira-costs.c (init_costs): Call init_subregs_of_mode.
162 * regmove.c: Include ira.h.
163 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
164 register pressure calculation in loops.
165 * loop-invariant.c: Include REGS_H and ira.h.
166 (struct loop_data): New members max_reg_pressure, regs_ref, and
168 (struct invariant): New member orig_regno.
169 (curr_loop): New variable.
170 (find_exits): Initialize regs_ref and regs_live.
171 (create_new_invariant): Initialize orig_regno.
172 (get_cover_class_and_nregs): New.
173 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
174 array. Add code for flag_ira_loop_pressure.
175 (gain_for_invariant): Make new_regs an array. Add code for
176 flag_ira_loop_pressure.
177 (best_gain_for_invariant): Ditto.
178 (set_move_mark): New parameter gain. Use it for debugging output.
179 (find_invariants_to_move): Make regs_needed and new_regs an array.
180 Add code for flag_ira_loop_pressure.
181 (move_invariant_reg): Set up orig_regno.
182 (move_invariants): Set up reg classes for pseudos for
183 flag_ira_loop_pressure.
184 (free_loop_data): Clear regs_ref and regs_live.
185 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
186 get_regno_cover_class, change_pressure, mark_regno_live,
187 mark_regno_death, mark_reg_store, mark_reg_clobber,
188 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
189 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
190 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
191 register pressure calculation in loops if new regs were added.
192 Call finish_subregs_of_mode.
193 * opts.c (decode_options): Set up flag_ira_loop_pressure.
194 * Makefile.in (loop-invariant.o): Add ira.h.
196 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
198 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
200 2009-10-14 Richard Guenther <rguenther@suse.de>
202 * lto-symtab.c (lto_symtab_compatible): Fold in ...
203 (lto_symtab_merge): ... here. Rewrite both to take the
204 prevailing and a to-be-merged entry and to queue diagnostics
206 (lto_symtab_resolve_replaceable_p): New predicate for
208 (lto_symtab_resolve_can_prevail_p): Likewise.
209 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
210 handles merging commons by choosing the largest decl. Fold
211 in code that gives ODR errors.
212 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
214 (lto_symtab_merge_decls_1): Re-structure. Deal with the
215 case of no prevailing decl here. Diagnose mismatches
216 in object types here. Drop all but the prevailing decls.
217 (lto_symtab_prevailing_decl): Return the single prevailing decl.
218 * lto-streamer-in.c (lto_input_tree_ref): Deal with
219 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
221 2009-10-14 Richard Guenther <rguenther@suse.de>
224 * lto-streamer-in.c (input_bb): Replace debug stmts with
225 nops instead of dropping them.
227 2009-10-14 Nick Clifton <nickc@redhat.com>
229 * gcc/doc/extended.texi: Replace the dash character with
230 @minus{} in situations where it is being used as a minus
232 * gcc/doc/tm.texi: Likewise.
233 * gcc/doc/md.texi: Likewise.
235 2009-10-14 Jakub Jelinek <jakub@redhat.com>
237 PR preprocessor/41543
238 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
239 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
240 * tree.c: Include intl.h.
241 (expand_location): Handle BUILTINS_LOCATION.
242 * Makefile.in (tree.o): Depend on intl.h.
245 * dwarf2out.c (dwarf2out_var_location): Always clear
246 last_postcall_label when changing last_label.
248 2009-10-14 Pascal Obry <obry@adacore.com>
250 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
251 (process_command): Handle -E as done with -c and -S. Do not add
252 the target executable suffix to the output file when -E is used.
253 (main): Adjust error message accordingly.
255 2009-10-14 Alexandre Oliva <aoliva@redhat.com>
261 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
263 (tree_code_size): Likewise.
265 2009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
267 * builtins.c (fold_builtin_1): Support complex "arc" functions.
268 * real.h (HAVE_mpc_arc): Define.
270 2009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
272 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
273 (struct builtin_description): Add fndecl field.
274 (bdesc): Remove const qualifier. Update initializer.
275 (sh_media_init_builtins): Remove const qualifier for d. Record
276 the result of add_builtin_function to the fndecl field.
277 (sh_builtin_decl): New.
278 (sh_media_builtin_decl): New.
280 2009-10-14 Hans-Peter Nilsson <hp@axis.com>
283 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
284 requests between special registers.
286 2009-10-13 Eric Botcazou <ebotcazou@adacore.com>
288 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
290 2009-10-13 Richard Henderson <rth@redhat.com>
292 PR tree-optimization/41377
293 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
294 (cleanup_empty_eh_merge_phis): New change_region parameter;
295 pass it on to redirect_eh_edge_1. Update callers.
296 (cleanup_empty_eh_unsplit): Don't require an existing EH label
297 at the destination block.
299 2009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
301 * passes.c (register_pass): Replaced gcc_unreachable by
302 fatal_error on failure. Mentions plugins in comments & messages.
304 2009-10-13 Jakub Jelinek <jakub@redhat.com>
307 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
308 * sched-vis.c (print_value): Use it.
309 * cselib.c (cselib_hash_rtx): Likewise.
310 * print-rtl.c (print_rtx): Likewise.
311 * cfgexpand.c (expand_debug_rtx): Likewise.
312 * var-tracking.c (vt_expand_loc_callback): Likewise.
314 2009-10-13 Richard Guenther <rguenther@suse.de>
317 * opts.c (handle_option): Split out code to handle setting
318 the options flag var ...
319 (set_option): ... here.
320 * opts.h (set_option): Declare.
321 * lto-opts.c (register_user_option_p): Include -fexceptions
322 and all position independent code variants.
323 (handle_common_option): Remove.
324 (lto_reissue_options): Use set_option.
326 2009-10-13 Martin Jambor <mjambor@suse.cz>
328 PR tree-optimization/41661
329 * ipa-prop.c (compute_complex_pass_through): Allow only operations
330 that are tcc_comparisons or do not change the type in any
332 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
333 folding tcc_comparison operations.
335 2009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
337 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
340 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
346 * tree.def (DEBUG_EXPR_DECL): New.
347 * rtl.def (DEBUG_EXPR): New.
348 * gengtype.c (adjust_field_rtx_def): Handle it.
349 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
350 (insert_debug_temp_for_var_def): ... this. Drop support for
351 moving. Take iterator for def stmt; insert debug stmt before it.
352 Scan early for use count and kind in debug stmts.
353 (propagate_defs_into_debug_stmts): Rename to...
354 (insert_debug_temps_for_defs): ... this. Likewise.
355 * tree.h (DEBUG_TEMP_UID): New.
356 * tree.c (next_debug_decl_uid): New.
357 (make_node_stat): Count debug decls separately.
358 (copy_node_stat): Likewise.
359 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
360 * var-tracking.c (dv_is_decl_p): Recognize it.
361 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
362 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
363 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
364 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
365 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
366 (cselib_hash_rtx): Likewise.
367 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
368 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
370 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
371 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
372 * rtl.c (copy_rtx): Likewise.
373 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
374 * print-rtl.c (print_rtx): Likewise.
375 * sched-vis.c (print_value): Likewise.
376 (print_insn): Handle DEBUG_EXPR_DECL.
377 * tree-dump.c (dequeue_and_dump): Likewise.
378 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
379 * gimple-iterator (gsi_replace): Check for same lhs.
380 (gsi_remove): Insert debug temps.
381 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
382 (move_computations_stmt): Drop explicit propagation into debug stmts.
383 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
384 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
385 * tree-ssa-sink.c (statement_sink_location): Likewise.
386 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
387 * tree-ssanames.c (release_ssa_name): Adjust for rename.
388 * tree-flow.h: Likewise.
389 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
390 debug temps without values.
391 (eliminate_unnecessary_stmts): Don't discard just-inserted
394 2009-10-12 Hans-Peter Nilsson <hp@axis.com>
397 * config/cris/cris.md (andu): Check that operand 1 is one of the
398 general registers. Fix typo in head comment.
400 2009-10-12 Stefan Dösinger <stefan@codeweavers.com>
402 * config/i386/i386.md (vswapmov): New.
403 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
404 (ix86_function_ms_hook_prologue): New.
405 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
406 * configure.ac: Test for swap suffix support in as.
407 * configure: Rebuild.
409 2009-10-12 Jakub Jelinek <jakub@redhat.com>
412 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
413 paradoxical subregs to prevent partial register stalls if the inner
414 mode is integer mode.
416 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
418 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
420 2009-10-12 Dodji Seketeli <dodji@redhat.com>
423 * gcc/dwarf2out.c (template_parameter_pack_die,
424 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
426 2009-10-12 Alexandre Oliva <aoliva@redhat.com>
429 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
431 (maybe_register_def): Likewise. Take stmt iterator.
432 (rewrite_update_stmt): Take stmt iterator and pass it on.
433 (rewrite_update_enter_block): Pass stmt iterator.
435 2009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
437 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
438 (spu_builtin_decl): New function.
440 2009-10-12 Uros Bizjak <ubizjak@gmail.com>
442 * config/i386/i386.md (SWIM): New mode iterator.
443 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
444 using SWIM mode iterator.
445 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
446 patterns using SWI48 mode iterator.
447 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
448 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
449 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
450 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
451 patterns using SWI248 mode iterator.
452 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
453 gen_x86_movdicc_0_m1_rex64 for renamed function
455 2009-10-11 Jose Ruiz <ruiz@adacore.com>
456 Eric Botcazou <ebotcazou@adacore.com>
459 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
460 * config/sparc/sol2-unwind.h: New file.
462 2009-10-11 Olivier Hainque <hainque@adacore.com>
463 Eric Botcazou <ebotcazou@adacore.com>
466 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
467 * config/i386/sol2-unwind.h: New file.
469 2009-10-11 H.J. Lu <hongjiu.lu@intel.com>
472 * config/i386/i386.md (addsi_1_zext): Get the proper second
475 2009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
477 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
478 all OLD_RTXes, not just REGs. Use copy_rtx to create the
481 2009-10-11 Richard Guenther <rguenther@suse.de>
483 * gimple.c (iterative_hash_type_name): Do not handle special
486 2009-10-11 Uros Bizjak <ubizjak@gmail.com>
488 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
489 (*setcc_si_1_and): Ditto.
490 (*setcc_si_1_movzbl): Ditto.
491 (*setcc_<mode>_2): Ditto.
492 (*setcc_qi): Rename from *setcc_1.
493 (*setcc_qi_slp): Rename from *setcc_2.
495 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
496 (*zero_extendqisi2_movzbw_and splitter): Ditto.
498 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
499 "if" condition, there is already assert with reload_completed present.
501 2009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
503 * plugin.c (try_init_one_plugin): Improve constness of variable err.
505 2009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
507 * doc/install.texi (Final install): Refer to
508 http://gcc.gnu.org/bugs/ for bug reporting.
510 2009-10-10 Peter Bergner <bergner@vnet.ibm.com>
512 * configure.ac: Add test for dci instruction.
513 * configure: Regenerate.
514 * config.in: Likewise.
515 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
516 * doc/invoke.texi: Add cpu_type 476 and 476fp.
517 (-mmulhw): Add 476 to description.
519 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
520 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
521 (processor_target_table): Add 476 and 476fp entries.
522 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
523 (rs6000_issue_rate): Add CPU_PPC476.
524 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
525 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
526 (processor_type): Add PROCESSOR_PPC476.
527 (EXTRA_SPECS): Add asm_cpu_476 string.
528 * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
529 (define_attr "cpu"): Add ppc476.
531 Update comments for 476.
532 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
533 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
534 Update copyright year.
535 * config/rs6000/476.md: New file.
536 * config/rs6000/40x.md: Add description for "isel" attribute.
537 Update copyright year.
538 * config/rs6000/440.md: Likewise.
539 * config/rs6000/603.md: Likewise.
540 * config/rs6000/6xx.md: Likewise.
541 * config/rs6000/7450.md: Likewise.
542 * config/rs6000/7xx.md: Likewise.
543 * config/rs6000/8540.md: Likewise.
544 * config/rs6000/cell.md: Likewise.
545 * config/rs6000/e300c2c3.md: Likewise.
546 * config/rs6000/e500mc.md: Likewise.
547 * config/rs6000/mpc.md: Likewise.
548 * config/rs6000/power4.md: Likewise.
549 * config/rs6000/power5.md: Likewise.
550 * config/rs6000/power6.md: Likewise.
551 * config/rs6000/power7.md: Likewise.
552 * config/rs6000/rios1.md: Likewise.
553 * config/rs6000/rios2.md: Likewise.
554 * config/rs6000/rs64.md: Likewise.
556 2009-10-10 Richard Guenther <rguenther@suse.de>
558 PR tree-optimization/41654
559 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
560 a cond expr before calling gimple_cond_set_condition_from_tree.
561 (ifcombine_iforif): Likewise.
563 2009-10-09 Ian Lance Taylor <iant@google.com>
565 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
566 * configure: Rebuild.
568 2009-10-09 Neil Vachharajani <nvachhar@google.com>
570 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
573 2009-10-09 Richard Guenther <rguenther@suse.de>
576 * target-def.h (TARGET_BUILTIN_DECL): Define.
577 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
578 * target.h (struct gcc_target): Add builtin_decl target hook.
579 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
580 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
582 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
584 (lto_output_builtin_tree): Sorry if the target does not support
585 streaming target builtins.
586 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
587 (rs6000_builtin_decl): New function.
588 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
589 (ix86_builtin_decl): New function.
591 2009-10-09 Jakub Jelinek <jakub@redhat.com>
593 PR preprocessor/41445
594 * c-ppoutput.c (do_line_change): New function.
595 (cb_line_change): Use it.
596 (scan_translation_unit): Call do_line_change if
597 avoid_paste or PREV_WHITE and token location is on a different line
601 * dwarf2out.c (dwarf2out_init): Test whether
602 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
605 PR rtl-optimization/41646
606 * calls.c (expand_call): For BLKmode types returned in registers
607 avoid likely spilled hard regs in copy_blkmode_from_reg generated
610 2009-10-09 Richard Guenther <rguenther@suse.de>
612 PR tree-optimization/41634
613 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
614 we remove the correct elements.
615 (optimize_stmt): Make sure to update stmt operands before
616 optimizing redundancies.
618 2009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
620 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
622 2009-10-09 Richard Guenther <rguenther@suse.de>
625 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
627 (lto_wrapper_exit): New function.
629 (fatal_perror): Likewise.
630 (fork_execute): Use global args_name, do not free it.
631 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
632 * lto-streamer.h: Remove duplicate prototypes.
634 2009-10-09 Richard Guenther <rguenther@suse.de>
636 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
637 before calling stmt_can_throw_external.
639 2009-10-09 Eric Botcazou <ebotcazou@adacore.com>
641 PR tree-optimization/40071
642 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
643 pointer if the original data reference doesn't conflict with the
644 created vector data reference. Fix long line.
646 2009-10-09 Uros Bizjak <ubizjak@gmail.com>
648 * config/i386/i386.md (any_div): New code iterator.
649 (u): Handle div and udiv.
651 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
653 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
654 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
655 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
656 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
658 2009-10-08 Joseph Myers <joseph@codesourcery.com>
660 * gcc.c (main): Remove trailing "." from diagnostics.
662 2009-10-08 Cary Coutant <ccoutant@google.com>
664 Add support for debugging with ICF (Identical Code Folding).
665 * calls.c (debug.h): New #include.
666 (emit_call_1): Call virtual_call_token debug hook.
667 * common.opt (-fenable-icf-debug): New option.
668 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
669 locations in the source).
670 (poc_label_num): New variable.
671 (dcall_entry, vcall_entry): New typedefs.
672 (dcall_table, vcall_table): New variables.
673 (struct vcall_insn): New type.
674 (vcall_insn_table): New variable.
675 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
676 (size_of_dcall_table): New function.
677 (output_dcall_table): New function.
678 (size_of_vcall_table): New function.
679 (output_vcall_table): New function.
680 (dwarf2out_direct_call): New function.
681 (vcall_insn_table_hash): New function.
682 (vcall_insn_table_eq): New function.
683 (dwarf2out_virtual_call_token): New function.
684 (dwarf2out_virtual_call): New function.
685 (dwarf2out_init): Allocate new tables and sections.
686 (prune_unused_types): Mark DIEs referenced from direct call table.
687 (dwarf2out_finish): Output direct and virtual call tables.
688 * final.c (final_scan_insn): Call direct_call and virtual_call
690 * debug.h (struct gcc_debug_hooks): Add direct_call,
691 virtual_call_token, virtual_call hooks.
692 (debug_nothing_uid): New function.
693 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
694 (debug_nothing_uid): New function.
695 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
696 (xcoff_debug_hooks): Likewise.
697 * sdbout.c (sdb_debug_hooks): Likewise.
698 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
699 * doc/invoke.texi (-fenable-icf-debug): New option.
701 2009-10-08 Alexandre Oliva <aoliva@redhat.com>
704 * regmove.c (regmove_backward_pass): Replace src with dst in the
705 debug insn, and check for dst before rather than after.
707 2009-10-08 Janis Johnson <janis187@us.ibm.com>
709 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
710 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
712 2009-10-08 Jan Hubicka <jh@suse.cz>
715 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
716 do not mark cgraph nodes as needed.
717 (record_references_in_initializer): Add new only_vars parameter.
718 * cgraph.h (record_references_in_initializer): New parameter.
719 * varasm.c (assemble_variable): Update call.
720 * varpool.c (varpool_analyze_pending_decls): Always look for
723 2009-10-08 Anatoly Sokolov <aesok@post.ru>
725 * config/avr/avr.c (last_insn_address) Remove variable.
726 (expand_prologue): Don't initialise last_insn_address variable.
727 (final_prescan_insn): Don't output insn size.
728 * config/avr/avr.opt (msize): Remove switch.
729 * doc/invoke.texi (AVR Options): Remove documentation of -msize
732 2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
734 * combine.c (label_tick_ebb_start): Fix comment.
735 (combine_instructions): Set label_tick and label_tick_ebb_start before
736 calling setup_incoming_promotions. Start them from 1. Increment
737 label_tick instead of deriving it from the BB index. Rather than
738 comparing ticks use the block from the previous iteration to decide
739 whether to start a new EBB. Remove empty lines before function.
741 2009-10-08 Michael Matz <matz@suse.de>
744 * builtins.c (fold_builtin_isascii): Use fold_build2.
745 (fold_builtin_isdigit): Ditto.
746 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
747 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
748 remove_useless_stmts_cond, remove_useless_stmts_tf,
749 remove_useless_stmts_tc, remove_useless_stmts_bind,
750 remove_useless_stmts_goto, remove_useless_stmts_label,
751 remove_useless_stmts_1, remove_useless_stmts,
752 pass_remove_useless_stmts): Remove.
753 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
754 * passes.c (init_optimization_passes): Don't add
755 pass_remove_useless_stmts.
756 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
757 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
759 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
760 for static constants.
761 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
762 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
764 2009-10-08 Richard Guenther <rguenther@suse.de>
766 * gimple.c (free_gimple_type_tables): New function.
767 * gimple.h (free_gimple_type_tables): Declare.
769 2009-10-07 Mark Heffernan <meheff@google.com>
771 * ipa-prop.c (ipa_print_node_params) Only print
772 names of named arguments.
774 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
776 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
777 being statically linked.
779 2009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
781 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
783 2009-10-08 Jan Hubicka <jh@suse.cz>
786 * ipa.c (cgraph_externally_visible_p,
787 function_and_variable_visibility,
788 whole_program_function_and_variable_visibility): Skip non-finalized
791 2009-10-08 Nick Clifton <nickc@redhat.com>
793 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
796 2009-10-08 Andreas Tobler <a.tobler@schweiz.org>
799 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
801 2009-10-07 Joseph Myers <joseph@codesourcery.com>
804 * c-common.c (c_fully_fold_internal): Strip nops from the result
805 of recursive calls to c_fully_fold_internal.
806 (c_wrap_maybe_const): New.
807 (c_save_expr): Use c_wrap_maybe_const.
808 * c-common.h (c_wrap_maybe_const): Declare.
809 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
810 build_binary_op): Use c_wrap_maybe_const.
812 2009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
814 * real.c: Fix comment to reflect actual exponent size.
816 2009-10-08 Ben Elliston <bje@au.ibm.com>
818 * config/rs6000/a2.md: Add FSF comment header.
820 2009-10-07 Uros Bizjak <ubizjak@gmail.com>
822 * config/i386/i386.md (any_extend): New code iterator.
823 (u, s): New code attributes.
825 (DWIH): Rewrite as code iterator for SI and DI modes.
826 (DWI): Rewrite as mode attribute.
827 (dwi): New mode attribute.
828 (di): Depend on SI mode and DI mode.
829 (doubleint_general_operand): Remove mode attribute.
831 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
834 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
835 (*sub<mode>3_doubleword): Ditto.
837 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
838 using SWIM248 mode iterator.
839 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
840 using SWI48 mode iterator.
841 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
842 patterns using DWIH mode iterator and any_extend code iterator.
843 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
844 using any_extend code iterator.
845 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
846 patterns using DWIH mode iterator and any_extend code iterator.
847 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
848 using any_extend code iterator.
849 (<s>mul<mode>3_highpart): Macroize expander from
850 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
851 and any_extend code iterator.
852 (*<s>muldi3_highpart_1): Macroize insn from
853 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
854 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
855 patterns using any_extend code iterator.
856 (*<s>mulsi3_highpart_zext): Macroize insn from
857 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
859 2009-10-07 Jakub Jelinek <jakub@redhat.com>
861 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
862 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
863 refering to a DIE with DW_AT_const_value.
865 2009-10-07 Vladimir Makarov <vmakarov@redhat.com>
868 * ira-lives.c (check_and_make_def_conflict): Process all operands.
870 2009-10-06 Jan Hubicka <jh@suse.cz>
872 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
875 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
877 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
878 *lea_2_rex64): Move before *add<mode>_1 pattern.
880 2009-10-07 Jan Hubicka <jh@suse.cz>
882 * collect2.c (main): Add -fno-whole-program.
883 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
885 2009-10-07 Jan Hubicka <jh@suse.cz>
887 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
888 has no address taken.
889 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
891 (cgraph_clone_node): Clear externally_visible flag for clones.
892 * cgraph.h (cgraph_only_called_directly_p,
893 cgraph_can_remove_if_no_direct_calls_p): New predicates.
894 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
895 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
896 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
897 ipcp_insert_stage): Likwise.
898 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
899 externally_visible flag.
900 (verify_cgraph_node): Verify that inline clones look right.
901 (process_function_and_variable_attributes): Do not set
902 externally_visible flags.
903 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
905 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
907 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
908 clear externally_visible when turning into inline clones
909 (cgraph_mark_inline_edge): Use new predicates.
910 (cgraph_estimate_growth): Likewise.
911 (cgraph_decide_inlining): Likewise.
912 * ipa.c (cgraph_postorder): Likewise.
913 (cgraph_remove_unreachable_nodes): Likewise; sanity check
914 that inline clones are not needed.
915 (cgraph_externally_visible_p): New predicate.
916 (function_and_variable_visibility): Add whole_program parameter;
917 always set externally_visible flag; handle COMDAT function
919 (local_function_and_variable_visibility): New function.
920 (gate_whole_program_function_and_variable_visibility): New function.
921 (whole_program_function_and_variable_visibility): New function.
922 (pass_ipa_whole_program_visibility): New function.
923 * passes.c (init_optimization_passes): Add whole program visibility
925 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
926 not care about needed/reachable flags.
927 * varpool.c: Include flags.h
928 (decide_is_variable_needed): When doing LTO assume whole-program mode.
929 (varpool_finalize_decl): When we are in LTO read-back, all variables
931 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
933 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
935 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
938 2009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
940 * config.gcc: Don't include the makefile fragments intended for
942 * config/s390/fixdfdi.h: File removed.
943 * config/s390/libgcc-glibc.ver: File removed.
944 * config/s390/s390.h: Remove the fixdfdi.h hack.
945 * config/s390/t-crtstuff: File moved to libgcc dir.
946 * config/s390/t-linux: Likewise.
947 * config/s390/t-tpf: libgcc specific parts removed.
948 * config/s390/t-linux64: Likewise.
950 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
952 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
953 (lto-compress.o): Likewise.
955 2009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
958 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
959 dllexport to class members here.
960 (i386_pe_determine_dllimport_p): Only check static class data for
962 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
963 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
964 functions for vague linkage.
965 (i386_pe_type_dllexport_p): Fix formatting.
966 (maybe_add_dllexport) New function.
967 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
970 2009-10-07 Ben Elliston <bje@au.ibm.com>
972 * config/rs6000/a2.md: Remove duplicated lines.
974 2009-10-07 Ben Elliston <bje@au.ibm.com>
976 * config.gcc (powerpc*-*-*): Handle a2.
977 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
978 * config/rs6000/a2.md: New file.
979 * config/rs6000/rs6000.opt (mno-update): New.
980 (mupdate): Return to using a mask, not a var.
981 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
982 (enum processor_type): Add PROCESSOR_PPCA2.
983 * config/rs6000/rs6000.c (ppca2_cost): New costs.
984 (rs6000_override_options): Add "a2" to processor_target_table.
985 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
986 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
988 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
990 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
991 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
992 reference to nonexistent gen_truncxfxf2 function.
994 2009-10-06 Uros Bizjak <ubizjak@gmail.com>
996 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
997 (DWIH, g, di, doubleint_general_operand): New mode attributes.
998 (general_operand): Handle TI mode.
999 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
1000 using SDWIM mode iterator.
1001 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
1002 pattern from *add{di,ti}3_1 patterns and corresponding splitters
1003 using DWI mode iterator.
1004 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
1005 patterns using SWI mode iterator.
1006 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
1007 using SWI48 mode iterator.
1008 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
1009 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
1010 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
1011 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
1012 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
1013 using SDWIM mode iterator.
1014 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
1015 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
1016 using DWI mode iterator.
1017 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
1018 patterns using SWI mode iterator.
1019 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
1020 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
1021 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
1022 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
1023 patterns using plusminus code iterator.
1024 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
1025 sub<mode>3 patterns using plusminus code iterator.
1026 * config/i386/i386.c (override_options): Update the call to
1027 gen_subdi_carry_rex64 for renamed function.
1028 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
1029 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
1030 calls to instruction expanders.
1032 2009-10-06 Martin Jambor <mjambor@suse.cz>
1035 * opts.c (decode_options): Run IPA-SRA at -O2.
1037 2009-10-06 Richard Guenther <rguenther@suse.de>
1039 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
1041 2009-10-06 Tobias Burnus <burnus@net-b.de>
1044 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
1045 -flto and -fwhole-program flags can be combined.
1047 2009-10-06 Ryan Mansfield <rmansfield@qnx.com>
1050 * gcc.c (process_command): Check that -o argument was specified.
1052 2009-10-06 Jerry Quinn <jlquinn@optonline.net>
1054 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
1056 2009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1058 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
1059 * doc/invoke.texi (Warning Options): Annotate allowed languages
1060 for -Wunsuffixed-float-constants.
1062 2009-10-05 Jakub Jelinek <jakub@redhat.com>
1064 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
1065 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
1066 same name and isn't the main variant.
1069 * dwarf2out.c (loc_by_reference): Removed.
1070 (dw_loc_list_1): New function.
1071 (dw_loc_list): Remove toplev argument, add want_address argument.
1072 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
1073 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
1074 want_address == 2 to dw_loc_list. For successful dw_loc_list
1075 set have_address to 1 only if want_address is not 0.
1077 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1079 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
1080 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
1081 a code block followed by two pointers.
1082 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
1083 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
1084 (MIPS_MOVE): Likewise.
1085 (MIPS_LUI): Likewise.
1086 (MIPS_JR): Likewise.
1087 (MIPS_BAL): Likewise.
1088 (MIPS_NOP): Likewise.
1089 (mips_asm_trampoline_template): Delete.
1090 (mips_trampoline_code_size): New function.
1091 (mips_trampoline_init): Add shorter sequences for all cases
1092 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
1093 Calculate the opcodes directly, rather than copying from a template.
1094 Only flush the code part of the trampoline.
1095 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
1097 2009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
1099 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
1100 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
1101 (INCOMING_RETURN_ADDR_RTX): Likewise.
1102 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
1104 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
1105 with RETURN_ADDR_REGNUM.
1106 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
1107 * config/mips/mips.c (mips16_build_call_stub): Replace
1108 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
1109 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
1110 (mips_print_operand_punctuation): Likewise.
1111 (mips_frame_set): Likewise.
1112 (mips16e_output_save_restore): Likewise.
1113 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1114 (mips_save_reg_p): Likewise.
1115 (mips_return_addr): Likewise.
1116 (mips_set_return_address): Likewise.
1117 (mips_direct_save_slot_move_p): Likewise.
1118 (mips_output_function_prologue): Likewise.
1119 (mips_restore_reg): Likewise.
1120 (mips_expand_epilogue): Likewise.
1121 (mips_epilogue_uses): Likewise.
1122 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
1123 (*mov<mode>_ra): Use it instead of a hard-coded 31.
1124 (clear_hazard_<mode>): Likewise.
1125 (call_internal): Likewise.
1126 (call_internal_direct): Likewise.
1127 (call_direct_split): Likewise.
1128 (call_value_internal): Likewise.
1129 (call_value_split): Likewise.
1130 (call_value_internal_direct): Likewise.
1131 (call_value_direct_split): Likewise.
1132 (call_value_multiple_internal): Likewise.
1133 (call_value_multiple_split): Likewise.
1135 2009-10-05 Eric Botcazou <ebotcazou@adacore.com>
1136 Jakub Jelinek <jakub@redhat.com>
1138 PR rtl-optimization/41511
1139 * combine.c (record_value_for_reg): Pass explicit values as argument
1140 to get_last_value_validate.
1141 (get_last_value_validate): Document INSN parameter.
1142 For non-readonly MEMs, assume they might have been modified if INSN
1143 was in another basic block.
1144 (get_last_value): Minor reformatting.
1146 2009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
1149 * final.c (asm_str_count): Split out from asm_insn_count.
1150 * rtl.h (asm_str_count): New prototype.
1151 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
1154 2009-10-05 Sriraman Tallam <tmsriram@google.com>
1156 * doc/plugins.texi: Change plugin_pass to register_pass_info.
1158 2009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
1159 Rafael Espindola <espindola@google.com>
1161 * gengtype.c (write_types): Moved call to write_func_for_structure
1162 into seperate loops.
1164 2009-10-05 Richard Guenther <rguenther@suse.de>
1167 * lto-cgraph.c (output_cgraph): Output toplevel asms.
1168 (input_cgraph_1): Input toplevel asms.
1170 2009-10-05 Richard Guenther <rguenther@suse.de>
1173 * lto-symtab.c (lto_compatible_attributes_p): Remove.
1174 (external_aggregate_decl_p): Likewise.
1175 (lto_symtab_compatible): Re-structure. Remove dead code.
1176 For variables ignore toplevel qualifiers when comparing types.
1177 Issue warnings, not errors for mismatched user-alignment.
1179 2009-10-05 Richard Guenther <rguenther@suse.de>
1183 * lto-symtab.c (struct lto_symtab_base_def): Remove.
1184 (struct lto_symtab_identifier_def): Likewise.
1185 (struct lto_symtab_decl_def): Likewise.
1186 (struct lto_symtab_entry_def): New.
1187 (lto_symtab_identifier_t): Rename to ...
1188 (lto_symtab_entry_t): ... this.
1189 (lto_symtab_decls): Remove.
1190 (lto_symtab_base_hash): Rename to ...
1191 (lto_symtab_entry_hash): ... this.
1192 (lto_symtab_base_eq): Rename to ...
1193 (lto_symtab_entry_eq): ... this.
1194 (lto_symtab_base_marked_p): Rename to ...
1195 (lto_symtab_entry_marked_p): ... this.
1196 (lto_symtab_identifier_marked_p): Remove.
1197 (lto_symtab_decl_marked_p): Likewise.
1198 (lto_symtab_maybe_init_hash_tables): Rename to ...
1199 (lto_symtab_maybe_init_hash_table): ... this.
1200 (lto_symtab_set_resolution_and_file_data): Remove.
1201 (lto_symtab_register_decl): New function.
1202 (lto_symtab_get_identifier): Remove.
1203 (lto_symtab_get): New function.
1204 (lto_symtab_get_resolution): Adjust.
1205 (lto_symtab_get_identifier_decl): Remove.
1206 (lto_symtab_set_identifier_decl): Likewise.
1207 (lto_symtab_merge_decl): Rename to ...
1208 (lto_symtab_merge): ... this. Rewrite.
1209 (lto_symtab_merge_var): Remove.
1210 (lto_symtab_merge_fn): Likewise.
1211 (lto_symtab_prevailing_decl): Adjust.
1212 (lto_cgraph_replace_node): New function.
1213 (lto_symtab_merge_decls_2): Likewise.
1214 (lto_symtab_merge_decls_1): Likewise.
1215 (lto_symtab_fixup_var_decls): Likewise.
1216 (lto_symtab_resolve_symbols): Likewise.
1217 (lto_symtab_merge_decls): Likewise.
1218 (lto_symtab_prevailing_decl): Adjust.
1219 (lto_symtab_get_symtab_def): Remove.
1220 (lto_symtab_get_file_data): Likewise.
1221 (lto_symtab_clear_resolution): Adjust.
1222 (lto_symtab_clear_resolution): Likewise.
1223 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
1224 (input_cgraph_1): Likewise.
1225 * lto-streamer-in.c (get_resolution): Do not provide fake
1226 symbol resolutions here.
1227 (deferred_global_decls): Remove.
1228 (lto_register_deferred_decls_in_symtab): Likewise.
1229 (lto_register_var_decl_in_symtab): Change signature, register
1230 variable via lto_symtab_register_decl.
1231 (lto_register_function_decl_in_symtab): Likewise.
1232 (lto_read_tree): Adjust.
1233 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
1234 (lto_symtab_merge_var): Likewise.
1235 (lto_symtab_merge_fn): Likewise.
1236 (lto_symtab_register_decl): Declare.
1237 (lto_symtab_merge_decls): Likewise.
1239 2009-10-05 Richard Guenther <rguenther@suse.de>
1241 PR tree-optimization/23821
1242 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
1243 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
1244 simple IV increments.
1246 2009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1248 * config/arm/arm.c (arm_override_options): Really initialize
1249 flag_dwarf2_cfi_asm to 0.
1251 2009-10-05 Doug Kwan <dougkwan@google.com>
1253 PR rtl-optimization/41574
1254 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
1255 floating point and we are not doing unsafe math optimizations.
1257 2009-10-03 Simon Baldwin <simonb@google.com>
1258 Cary Coutant <ccoutant@google.com>
1259 Rafael Espindola <espindola@google.com>
1260 Richard Guenther <rguenther@suse.de>
1261 Jan Hubicka <jh@suse.cz>
1262 Doug Kwan <dougkwan@google.com>
1263 H.J. Lu <hongjiu.lu@intel.com>
1264 Bill Maddox <maddox@google.com>
1265 Ryan Mansfield <rmansfield@qnx.com>
1266 Diego Novillo <dnovillo@google.com>
1267 Ollie Wild <aaw@google.com>
1268 Kenneth Zadeck <zadeck@naturalbridge.com>
1270 * lto-cgraph.c: New file.
1271 * lto-compress.c: New file.
1272 * lto-compress.h: New file.
1273 * lto-opts.c: New file.
1274 * lto-section-in.c: New file.
1275 * lto-section-out.c: New file.
1276 * lto-streamer-in.c: New file.
1277 * lto-streamer-out.c: New file.
1278 * lto-streamer.c: New file.
1279 * lto-streamer.h: New file.
1280 * lto-symtab.c: New file.
1281 * lto-wpa-fixup.c: New file.
1282 * lto-wrapper.c: New file.
1284 2009-10-03 Simon Baldwin <baldwin@google.com>
1285 Ben Elliston <bje@au.ibm.com>
1286 Rafael Espindola <espindola@google.com>
1287 Nathan Froyd <froydnj@codesourcery.com>
1288 Jan Hubicka <jh@suse.cz>
1289 Doug Kwan <dougkwan@google.com>
1290 Diego Novillo <dnovillo@google.com>
1291 Kenneth Zadeck <zadeck@naturalbridge.com>
1293 * Makefile.in (enable_lto): New.
1294 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
1295 (LINKER_PLUGIN_API_H): Define.
1296 (LTO_SYMTAB_H): Define.
1297 (LTO_STREAMER_H): Define.
1298 (TREE_VECTORIZER_H): Define.
1299 (INCLUDES): Add LIBELFINC.
1300 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
1301 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
1302 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
1303 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
1304 (native): Add lto-wrapper$(exeext)
1305 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
1306 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
1307 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
1308 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
1309 (varasm.o): Add dependency on tree-iterator.h.
1310 (cgraph.o): Add dependency on cif-code.def.
1311 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
1312 (ipa-pure-const.o): Likewise.
1313 (GTFILES): Add lto-symtab.c.
1314 (install-lto-wrapper): New.
1315 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
1316 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
1317 * config.in: Regenerate.
1319 2009-10-03 Rafael Espindola <espindola@google.com>
1320 Diego Novillo <dnovillo@google.com>
1322 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
1323 ipa_write_summaries.
1324 Call execute_ipa_summary_passes for all_regular_ipa_passes and
1326 (cgraph_optimize): Make extern.
1328 2009-10-03 Nathan Froyd <froydnj@codesourcery.com>
1329 Kenneth Zadeck <zadeck@naturalbridge.com>
1331 * toplev.c (in_lto_p): Declare.
1332 * collect2.c (scan_prog_file): Read all the output when reading
1333 information for LTO.
1334 (enum lto_mode_d): Declare.
1336 2009-10-03 Richard Guenther <rguenther@suse.de>
1337 Diego Novillo <dnovillo@google.com>
1339 * gimple.c: Include target.h and alias.h.
1340 (gimple_types): Declare.
1341 (type_hash_cache): Declare.
1342 (gimple_alloc_stat): Make extern.
1343 (gimple_build_eh_must_not_throw): Call
1344 gimple_eh_must_not_throw_set_fndecl.
1345 (struct type_pair_d): Declare.
1346 (type_pair_t): Declare.
1347 (type_pair_hash): New.
1348 (type_pair_eq): New.
1349 (lookup_type_pair): New.
1350 (gimple_force_type_merge): New.
1351 (compare_type_names_p): New.
1352 (compare_field_offset): New.
1353 (gimple_types_compatible_p): New.
1354 (struct sccs): Declare.
1355 (next_dfs_num): Declare.
1356 (iterative_hash_gimple_type): New.
1358 (iterative_hash_type_name): New.
1359 (iterative_hash_gimple_type): New.
1360 (gimple_type_hash): New.
1361 (gimple_type_eq): New.
1362 (gimple_register_type): New.
1363 (print_gimple_types_stats): New.
1364 (gimple_signed_or_unsigned_type): New.
1365 (gimple_unsigned_type): New.
1366 (gimple_signed_type): New.
1367 (gimple_get_alias_set): New.
1368 (gimple_decl_printable_name): Do not use DMGL_TYPES.
1369 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
1370 (gimple_force_type_merge): Declare.
1371 (gimple_types_compatible_p): Declare.
1372 (gimple_register_type): Declare.
1373 (print_gimple_types_stats): Declare.
1374 (gimple_unsigned_type): Declare.
1375 (gimple_signed_type): Declare.
1376 (gimple_get_alias_set): Declare.
1377 (gimple_eh_must_not_throw_set_fndecl): New.
1379 2009-10-03 Jan Hubicka <jh@suse.cz>
1380 Kenneth Zadeck <zadeck@naturalbridge.com>
1382 * ipa-pure-const.c: Include lto-streamer.h.
1383 (register_hooks): Factor out of ...
1384 (generate_summary): ... here.
1385 (pure_const_write_summary): New.
1386 (pure_const_read_summary): New.
1387 (pass_ipa_pure_const): Add pure_const_write_summary and
1388 pure_const_read_summary.
1389 * ipa-reference.c: Include lto-streamer.h.
1390 (add_new_function): New.
1391 (remove_node_data): New.
1392 (duplicate_node_data): New.
1393 (ipa_init): Guard against multiple calls.
1394 Move hook setup from analyze_function.
1395 (write_node_summary_p): New.
1396 (ipa_reference_write_summary): New.
1397 (ipa_reference_read_summary): New.
1398 (pass_ipa_reference): Add ipa_reference_write_summary and
1399 ipa_reference_read_summary.
1400 * cgraph.h (cgraph_local_info): Add field lto_file_data.
1401 (struct cgraph_edge): Add fields lto_stmt_uid and
1402 call_stmt_cannot_inline_p.
1403 (cgraph_optimize): Declare.
1404 (cgraph_decide_is_function_needed): Declare.
1405 (reset_inline_failed): Declare.
1406 (enum LTO_cgraph_tags): Declare.
1407 (LTO_cgraph_tag_names): Declare.
1408 (LCC_NOT_FOUND): Define.
1410 2009-10-03 Doug Kwan <dougkwan@google.com>
1411 Rafael Espindola <espindola@google.com>
1412 Jan Hubicka <jh@suse.cz>
1413 Diego Novillo <dnovillo@google.com>
1414 Kenneth Zadeck <zadeck@naturalbridge.com>
1416 * passes.c (all_regular_ipa_passes): New.
1417 (all_ipa_passes): Rename to all_small_ipa_passes.
1418 (init_optimization_passes): Init all_regular_ipa_passes.
1419 * tree-pass.h (all_regular_ipa_passes): New.
1420 (all_ipa_passes): Rename to all_small_ipa_passes.
1421 * passes.c (all_lto_gen_passes): New.
1422 (init_optimization_passes): Initialize all_lto_gen_passes.
1423 (execute_ipa_summary_passes): Make non-static.
1424 (ipa_write_summaries_1): New.
1425 (ipa_write_summaries_2): New.
1426 (ipa_write_summaries): New.
1427 (ipa_write_summaries_of_cgraph_node_set): New.
1428 (ipa_read_summaries_1): New.
1429 (ipa_read_summaries): New.
1430 (execute_ipa_pass_list): Call cgraph_process_new_functions.
1431 (execute_regular_ipa_pass_list): Remove.
1432 (init_optimization_passes): Schedule
1433 pass_rebuild_cgraph_edges and pass_early_inline outside
1434 of pass_all_early_optimizations. Document reason.
1435 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
1436 pass_ipa_lto_finish_out): New pass.
1437 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
1438 (execute_all_ipa_transforms): New.
1439 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
1440 (dump_properties, debug_properties): New.
1441 * tree-optimize.c (gate_all_early_local_passes): Return
1442 false if we are in lto1.
1443 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
1444 * tree-pass.h (execute_all_ipa_transforms): Declare.
1445 (pass_ipa_function_and_variable_visibility): Declare.
1446 (pass_ipa_early_inline): Declare.
1447 (pass_ipa_lto_gimple_out): Declare.
1448 (pass_ipa_lto_wpa_fixup): Declare.
1449 (pass_ipa_lto_finish_out): Declare.
1450 (all_small_ipa_passes, all_regular_ipa_passes,
1451 all_lto_gen_passes): Declare.
1452 (execute_ipa_summary_passes): Declare.
1453 (execute_all_ipa_transforms): Declare.
1454 (ipa_write_summaries): Declare
1455 (ipa_write_summaries_of_cgraph_node_set): Declare.
1456 (ipa_read_summaries): Declare.
1458 2009-10-03 Doug Kwan <dougkwan@google.com>
1459 Ollie Wild <aaw@google.com>
1461 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1463 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1464 (lto_mode): New variable.
1465 (maybe_run_lto_and_relink): Handle the -fwpa option.
1466 (main): Handle the -fwpa option.
1467 (maybe_unlink_list): New function.
1468 * gcc.c (link_lto_options): Replace -flto with -fwpa.
1469 * common.opt (flto): New flag.
1470 * toplev.c (flag_generate_lto): Declare.
1472 2009-10-03 Simon Baldwin <simonb@google.com>
1474 * common.opt (flto-compression-level): New flag.
1476 * opts.c: Include lto-opts.h.
1477 (handle_option): Call lto_register_user_option for each
1478 valid option handled.
1479 (decode_options): Clear registered options before the options
1482 2009-10-03 Cary Coutant <ccoutant@google.com>
1484 * collect2.c (is_elf): New function.
1485 (scan_prog_file): Require LTO object to be in ELF format.
1487 2009-10-03 Rafael Espindola <espindola@google.com>
1489 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1490 libgcc to the linker.
1492 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1494 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1495 (collect_execute): Add flags argument. Pass flags to pex_run. Update
1497 * collect2.h (collect_execute): Add flags argument.
1498 * tlink.c (tlink_execute): Update call to collect_execute.
1499 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1500 (use_linker_plugin): New.
1501 (use_linker_plugin_spec_function): New.
1502 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1503 (linker_plugin_file_spec): New.
1504 (lto_wrapper_spec): New.
1505 (lto_gcc_spec): New.
1506 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1507 (static_spec_functions): Add use-linker-plugin.
1508 (process_command): Handle -use-linker-plugin.
1509 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1510 linker_plugin_file_spec and lto_gcc_spec.
1511 (use_linker_plugin_spec_function): New.
1513 2009-10-03 Richard Guenther <rguenther@suse.de>
1517 * tree.h (is_lang_specific): Include LANG_TYPE.
1518 * tree.c (find_decls_types_r): Manually add interesting parts
1519 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
1521 * gimple.c (type_pair_hash): Make symmetric.
1522 (type_pair_eq): Likewise.
1523 (lookup_type_pair): Increase initial hashtable size.
1524 (gimple_force_type_merge): Rely on type-pair symmetry.
1525 (visit): Remove excessive checking code.
1526 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1527 (gimple_register_type): Remove getenv calls, shrink initial
1531 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1532 inline functions if not generating lto output.
1535 * toplev.c (finalize): In WPA mode remove the asm file.
1537 2009-10-03 Doug Kwan <dougkwan@google.com>
1539 * ipa-inline.c (cgraph_mark_inline): Check
1540 edge->call_stmt_cannot_inline_p instead of calling
1541 gimple_call_cannot_inline_p.
1542 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1543 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1544 (inline_generate_summary): Do nothing in LTRANS.
1545 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1546 exists before calling gimple_call_cannot_inline_p.
1547 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1548 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
1549 Update new_edge->lto_stmt_uid.
1550 * cgraphbuild.c (reset_inline_failed): New.
1552 * common.opt (fwpa): New flag.
1553 (fltrans): New option.
1554 * gcc.c (gcc_lto_option_t): New type.
1555 (current_lto_option): New variable.
1556 (lto_single_spec_function): Remove and is replaced by ..
1557 (lto_option_spec_function): New function.
1558 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1559 passing the -flto flag.
1560 (cc1_options): Separate non-LTO related parts into ..
1561 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1562 (lto1_options): New spec for lto FE.
1563 (link_lto_options): New spec for handling LTO flags in linker.
1564 (invoke_lto_single): Re-format to fit in 80 column. Replace
1565 lto-single with lto-option.
1566 (static_specs): Add cc1_non_lto_options, lto1_options and
1568 (static_spec_function): Replace lto-single with lto-option.
1569 (process_command): Handle -flto, -fwpa and -fltran by setting
1570 current_lto_option and not passing it to subprocess unconditionally.
1572 2009-10-03 Bill Maddox <maddox@google.com>
1574 Add `gcc' driver support for link-time code generation (LTO).
1576 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1577 (lto_flag, lto_objects, lto_o_file): New variables.
1578 (struct lto_object, struct lto_object_list): New structures.
1579 (collect_exit, handler): Remove LTO temporary output file on exit.
1580 (add_lto_object): New function.
1581 (maybe_run_lto_and_relink): New function. Perform link time code
1582 generation and relinking for object files containing LTO information.
1583 (main): Invoke maybe_run_lto_and_relink().
1584 (dump_argv): New function. For debugging, currently disabled.
1585 (scan_prog_file): Add LTO information pass.
1586 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1588 * toplev.c (compile_file): Emit assembler directive to create
1589 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1591 2009-10-03 Diego Novillo <dnovillo@google.com>
1593 * c.opt: Add LTO to warn_abi and warn_psabi.
1595 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
1596 inline function. Ignore language-specific nodes. Update all users.
1597 (find_decls_types_r): Do not traverse the subtrees of
1598 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
1599 * tree.h (is_lang_specific): New.
1600 * langhooks.h (struct lang_hooks_for_decls): Remove
1601 may_need_assembler_name_p. Update all users.
1603 * c-common.c (set_builtin_user_assembler_name): Move ...
1604 * builtins.c (set_builtin_user_assembler_name): ... here.
1605 (is_builtin_name): Add comment
1606 (is_builtin_fn): New.
1607 * except.c (output_ttype): Only call
1608 lookup_type_for_runtime if TYPE is not a runtime type.
1610 * passes.c (register_pass): Call position_pass on
1611 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1612 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1613 (TV_IPA_LTO_DECL_IO): Define.
1614 (TV_IPA_LTO_CGRAPH_IO): Define.
1616 (TV_WHOPR_WPA): Define.
1617 (TV_WHOPR_WPA_IO): Define.
1618 (TV_WHOPR_LTRANS): Define.
1619 (TV_WHOPR_WPA_FIXUP): Define.
1620 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1621 * tree-cfg.c (tree_node_can_be_shared): Make extern.
1622 * tree-flow.h (tree_node_can_be_shared): Declare.
1623 * tree-inline.c (tree_can_inline_p): Check that E has a
1624 statement associated with it.
1625 * tree.c (free_lang_data_in_binf): Factor out of ...
1626 (free_lang_data_in_type): ... here.
1627 Call RECORD_OR_UNION_TYPE_P.
1628 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1629 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
1630 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1631 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
1632 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
1633 (gate_free_lang_data): Return true if flag_generate_lto is set.
1634 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1635 * c-common.h (set_builtin_user_assembler_name): Move ...
1636 * tree.h (set_builtin_user_assembler_name): ... here.
1638 * common.opt (flto-report): New flag.
1639 * opts.c (complain_wrong_lang): Do not complain if running lto1.
1640 * collect2.c (scan_prog_file): Send the error output of
1641 'nm' to HOST_BIT_BUCKET.
1643 2009-10-03 Ollie Wild <aaw@google.com>
1645 * langhooks-def.h (lhd_begin_section): New function declaration.
1646 (lhd_write_section): New function declaration.
1647 (lhd_end_section): New function declaration.
1648 (LANG_HOOKS_BEGIN_SECTION): New macro.
1649 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1650 (LANG_HOOKS_END_SECTION): New macro.
1651 (LANG_HOOKS_LTO): New macro.
1652 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1653 * langhooks.c (output.h): Add include.
1654 (saved_section): New static variable.
1655 (lhd_begin_section): New function.
1656 (lhd_write_section_data): New function.
1657 (lhd_end_section): New function.
1658 * langhooks.h (struct lang_hooks_for_lto): New structure.
1659 (struct lang_hooks): Add member lto.
1660 * Makefile.in (langhooks.o): Add dependency on output.h.
1662 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1664 2009-10-03 Richard Guenther <rguenther@suse.de>
1666 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1669 2009-10-03 Simon Baldwin <simonb@google.com>
1670 Richard Guenther <rguenther@suse.de>
1671 Janis Johnson <janis187@us.ibm.com>
1672 Doug Kwan <dougkwan@google.com>
1673 Diego Novillo <dnovillo@google.com>
1674 Ramana Radhakrishnan <ramana.r@gmail.com>
1675 Ollie Wild <aaw@google.com>
1677 * doc/install.texi: Add documentation for libelf and --enable-lto.
1678 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1679 -flto-report, -flto-compression-level and -use-linker-plugin.
1680 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
1681 Add section for LTO Testing.
1683 2009-10-02 Cary Coutant <ccoutant@google.com>
1685 Add support for comdat type sections for DWARF v4.
1686 Merge from dwarf4 branch.
1688 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1689 (dw_die_ref): Define vector type.
1690 (enum dw_val_class): Add dw_val_class_data8.
1691 (struct dw_val_struct): Add v.val_data8.
1692 (comdat_type_node_ref): New type.
1693 (struct die_struct): Move die_symbol into a union; add new field
1694 die_type_node. Change all uses.
1695 (comdat_type_node): New type.
1696 (skeleton_chain_node): New type.
1697 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1698 (comdat_type_list): New variable.
1699 (dwarf_tag_name): Add DW_TAG_type_unit.
1700 (dwarf_attr_name): Add DW_AT_signature.
1701 (add_AT_data8): New function.
1702 (replace_child): New function.
1703 (move_all_children): New function.
1704 (print_signature): New function.
1705 (print_die): Print signature information; add dw_val_class_data8.
1706 (attr_checksum): Support dw_val_class_data8.
1707 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1708 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1709 (checksum_sleb128, checksum_uleb128): New functions.
1710 (checksum_die_context): New function.
1711 (loc_checksum_ordered): New function.
1712 (attr_checksum_ordered): New function.
1713 (struct checksum_attributes): New structure.
1714 (collect_checksum_attributes): New function.
1715 (die_checksum_ordered): New function.
1716 (generate_type_signature): New function.
1717 (same_dw_val_p): Add dw_val_class_data8.
1718 (is_symbol_die): Use new is_declaration_die function.
1719 (is_declaration_die): New function.
1720 (should_move_die_to_comdat): New function.
1721 (clone_die): New function.
1722 (clone_tree): New function.
1723 (clone_as_declaration): New function.
1724 (copy_declaration_context): New function.
1725 (generate_skeleton_ancestor_tree): New function.
1726 (generate_skeleton_bottom_up): New function.
1727 (generate_skeleton): New function.
1728 (remove_child_or_replace_with_skeleton): New function.
1729 (break_out_comdat_types): New function.
1730 (struct decl_table_entry): New type.
1731 (htab_decl_hash): New function.
1732 (htab_decl_eq): New function.
1733 (htab_decl_del): New function.
1734 (copy_ancestor_tree): New function.
1735 (copy_decls_walk): New function.
1736 (copy_decls_for_unworthy_types): New function.
1737 (build_abbrev_table): Don't assert on missing die_symbol when doing
1738 comdat type sections.
1739 (size_of_die): Use DW_FORM_sig8 for external references. Add
1741 (unmark_dies): Don't assert for unmarked dies when doing comdat
1743 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1744 (output_signature): New function.
1745 (output_die): Likewise.
1746 (output_compilation_unit_header): Mark output as DWARF version 3
1747 even if generating DWARF 4.
1748 (output_comdat_type_unit): New function.
1749 (output_line_info): Mark output as DWARF version 3 even if generating
1751 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1753 (dwarf2out_end_source_file): Likewise.
1754 (prune_unused_types_walk_attribs): Don't follow references into
1755 comdat type sections.
1756 (prune_unused_types_mark): When generating type units, do not mark
1757 children of non-defining declarations of types; do mark children of
1759 (prune_unused_types): Process comdat type sections.
1760 (htab_ct_hash): New function.
1761 (htab_ct_eq): New function.
1762 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1763 Add a pointer to the line table from type unit entries so
1764 DW_AT_decl_file has meaning.
1765 * varasm.c (default_elf_asm_named_section): Use identifier name as
1766 comdat key instead of lang hook.
1768 2009-10-02 Neil Vachharajani <nvachhar@google.com>
1770 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1772 2009-10-02 Uros Bizjak <ubizjak@gmail.com>
1774 * config/i386/i386.md (SWIM248): New mode iterator.
1775 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1776 divmodhi4 patterns using SWIM248 macro.
1777 (*divmod<mode>4): Macroize insn_and_split pattern from
1778 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1779 and their corresponding splitters usign SWIM248 macro. Split SImode
1780 insn to generate cltd and DImode insn to generate cqto instead of
1781 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1782 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1783 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1784 *divmodsi_noext patterns using SWIM248 macro.
1785 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1786 udivmodhi4 patterns using SWIM248 macro.
1787 (*udivmod<mode>4): Macroize insn_and_split pattern from
1788 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1789 corresponding splitters using SWIM248 macro.
1790 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1791 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1793 2009-10-02 Eric Botcazou <ebotcazou@adacore.com>
1795 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1796 of zero-sized element is zero-sized regardless of its extent.
1798 2009-10-02 Jakub Jelinek <jakub@redhat.com>
1801 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1802 * configure: Regenerated.
1803 * config.in: Regenerated.
1804 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1805 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1806 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1807 not emitting .eh_frame, emit .cfi_sections .debug_frame
1812 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1813 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1815 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1816 vars use DECL_RTL with resetting it back to NULL afterwards.
1817 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1818 rtx_equal_p instead of asserting it is a SYMBOL_REF.
1819 (value_format): For dw_val_class_addr only use DW_FORM_addr if
1820 the attribute type allows it, otherwise use DW_FORM_dataN.
1821 (mem_loc_descriptor): Handle CONST_STRING.
1822 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1823 Handle MEM with CONST_STRING address using add_AT_string.
1824 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1825 CONST_STRING for const arrays initialized with a string literal.
1826 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1827 (dwarf2out_finish): Call resolve_addr.
1829 2009-10-02 Andreas Schwab <schwab@linux-m68k.org>
1830 Maxim Kuvyrkov <maxim@codesourcery.com>
1832 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1834 2009-10-02 Nick Clifton <nickc@redhat.com>
1836 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1837 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1839 2009-10-01 Jan Hubicka <jh@suse.cz>
1841 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1842 (cgraph_create_virtual_clone): Just pass redirect_callers
1844 * cgraph.h (cgraph_clone_node): Update prototype.
1845 * ipa-pure-const.c (self_recursive_p): New function.
1846 (propagate): Use it.
1847 * ipa-inline.c (cgraph_clone_inlined_nodes,
1848 cgraph_decide_recursive_inlining): Update.
1850 2009-10-01 David Daney <ddaney@caviumnetworks.com>
1852 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1853 instructions for TARGET_OCTEON.
1855 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1857 * config/arm/arm.c (arm_override_options): Turn off
1858 flag_dwarf2_cfi_asm for AAPCS variants.
1860 2009-10-01 Martin Jambor <mjambor@suse.cz>
1863 * tree-sra.c (convert_callers): Do not call
1864 compute_inline_parameters on one caller more than once.
1866 2009-10-01 Nick Clifton <nickc@redhat.com>
1868 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1869 an empty string if not already defined.
1871 2009-10-01 Martin Jambor <mjambor@suse.cz>
1874 * tree-sra.c (is_va_list_type): New function.
1875 (find_var_candidates): Call is_va_list_type.
1876 (find_param_candidates): Check that the type or the type pointed
1877 to are not va_list types.
1879 2009-10-01 Martin Jambor <mjambor@suse.cz>
1882 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1883 DECL_ARTIFICIAL (param_decl) is true.
1885 2009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
1887 * tree.h (tree_decl_common::lang_flag_8): New.
1888 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1890 * c-common.h (RID_CONSTEXPR): New.
1892 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1894 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1895 Use ref-all pointers.
1896 (alpha_gimplify_va_arg): Ditto.
1898 2009-09-30 Jakub Jelinek <jakub@redhat.com>
1901 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1902 before insn counting loop now that BB_END (bb) is counted. Ensure
1903 the return value isn't zero.
1905 2009-09-30 Nick Clifton <nickc@redhat.com>
1907 * config.gcc (sh-symbianelf): Replace definition of extra_objs
1908 with separate definitions of c_target_objs and cxx_target_objs.
1909 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1911 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1912 sh_symbian_import_export_class.
1913 * config/sh/sh-protos.h: Fix names of exported symbian functions.
1914 * config/sh/symbian.c: Delete, moving code into...
1915 * config/sh/symbian-base.c: ... here
1916 * config/sh/symbian-c.c: ... and here
1917 * config/sh/symbian-cxx.c: ... and here.
1919 2009-09-30 Uros Bizjak <ubizjak@gmail.com>
1922 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1923 of plus RTX into register.
1925 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1927 * doc/install.texi: Linguistic and markup fixes.
1928 (Configuration) <--disable-cpp>: Remove description.
1929 <--enable-maintainer-mode>: Autotools files are affected, too.
1930 <--with-sysroot>: Improve description.
1931 (Building): Bump required GNU make version.
1933 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
1935 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1936 (x86_64-*-*): Ditto.
1938 * config/i386/fma4intrin.h: New file, provide common x86 compiler
1939 intrinisics for FMA4.
1940 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1941 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1942 Add FMA4 check and fma4intrin.h.
1943 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1945 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1946 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1947 constant for FMA4 support.
1948 (UNSPEC_FMA4_FMADDSUB): Ditto.
1949 (UNSPEC_FMA4_FMSUBADD): Ditto.
1950 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1951 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1952 (ix86_expand_fma4_multiple_memory): Ditto.
1953 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1954 (OPTION_MASK_ISA_FMA4_UNSET): New.
1955 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1956 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1957 (ix86_handle_option): Handle -mfma4.
1958 (isa_opts): Handle -mfma4.
1959 (enum pta_flags): Add PTA_FMA4.
1960 (override_options): Add FMA4 support.
1961 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1962 (IX86_BUILTIN_VFMADDSD): Ditto.
1963 (IX86_BUILTIN_VFMADDPS): Ditto.
1964 (IX86_BUILTIN_VFMADDPD): Ditto.
1965 (IX86_BUILTIN_VFMSUBSS): Ditto.
1966 (IX86_BUILTIN_VFMSUBSD): Ditto.
1967 (IX86_BUILTIN_VFMSUBPS): Ditto.
1968 (IX86_BUILTIN_VFMSUBPD): Ditto.
1969 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1970 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1971 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1972 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1973 (IX86_BUILTIN_VFNMADDSS): Ditto.
1974 (IX86_BUILTIN_VFNMADDSD): Ditto.
1975 (IX86_BUILTIN_VFNMADDPS): Ditto.
1976 (IX86_BUILTIN_VFNMADDPD): Ditto.
1977 (IX86_BUILTIN_VFNMSUBSS): Ditto.
1978 (IX86_BUILTIN_VFNMSUBSD): Ditto.
1979 (IX86_BUILTIN_VFNMSUBPS): Ditto.
1980 (IX86_BUILTIN_VFNMSUBPD): Ditto.
1981 (IX86_BUILTIN_VFMADDPS256): Ditto.
1982 (IX86_BUILTIN_VFMADDPD256): Ditto.
1983 (IX86_BUILTIN_VFMSUBPS256): Ditto.
1984 (IX86_BUILTIN_VFMSUBPD256): Ditto.
1985 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1986 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1987 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1988 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1989 (IX86_BUILTIN_VFNMADDPS256): Ditto.
1990 (IX86_BUILTIN_VFNMADDPD256): Ditto.
1991 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1992 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1993 (enum multi_arg_type): New enum for describing the various FMA4
1994 intrinsic argument types.
1995 (bdesc_multi_arg): New table for FMA4 intrinsics.
1996 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1997 (ix86_expand_multi_arg_builtin): New function for creating FMA4
1999 (ix86_expand_builtin): Add FMA4 intrinsic support.
2000 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
2001 operand instructions.
2002 (ix86_expand_fma4_multiple_memory): New function to split the
2003 second memory reference from FMA4 instructions.
2004 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
2005 (ssemodesuffixf2s): Ditto.
2006 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
2008 (fma4_fmsub<mode>4): Ditto.
2009 (fma4_fnmadd<mode>4): Ditto.
2010 (fma4_fnmsub<mode>4): Ditto.
2011 (fma4_vmfmadd<mode>4): Ditto.
2012 (fma4_vmfmsub<mode>4): Ditto.
2013 (fma4_vmfnmadd<mode>4): Ditto.
2014 (fma4_vmfnmsub<mode>4): Ditto.
2015 (fma4_fmadd<mode>4256): Ditto.
2016 (fma4_fmsub<mode>4256): Ditto.
2017 (fma4_fnmadd<mode>4256): Ditto.
2018 (fma4_fnmsub<mode>4256): Ditto.
2019 (fma4_fmaddsubv8sf4): Ditto.
2020 (fma4_fmaddsubv4sf4): Ditto.
2021 (fma4_fmaddsubv4df4): Ditto.
2022 (fma4_fmaddsubv2df4): Ditto.
2023 (fma4_fmsubaddv8sf4): Ditto.
2024 (fma4_fmsubaddv4sf4): Ditto.
2025 (fma4_fmsubaddv4df4): Ditto.
2026 (fma4_fmsubaddv2df4): Ditto.
2027 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
2028 instructions for intrinsics.
2029 (fma4i_fmsub<mode>4): Ditto.
2030 (fma4i_fnmadd<mode>4): Ditto.
2031 (fma4i_fnmsub<mode>4): Ditto.
2032 (fma4i_vmfmadd<mode>4): Ditto.
2033 (fma4i_vmfmsub<mode>4): Ditto.
2034 (fma4i_vmfnmadd<mode>4): Ditto.
2035 (fma4i_vmfnmsub<mode>4): Ditto.
2036 (fma4i_fmadd<mode>4256): Ditto.
2037 (fma4i_fmsub<mode>4256): Ditto.
2038 (fma4i_fnmadd<mode>4256): Ditto.
2039 (fma4i_fnmsub<mode>4256): Ditto.
2040 (fma4i_fmaddsubv8sf4): Ditto.
2041 (fma4i_fmaddsubv4sf4): Ditto.
2042 (fma4i_fmaddsubv4df4): Ditto.
2043 (fma4i_fmaddsubv2df4): Ditto.
2044 (fma4i_fmsubaddv8sf4): Ditto.
2045 (fma4i_fmsubaddv4sf4): Ditto.
2046 (fma4i_fmsubaddv4df4): Ditto.
2047 (fma4i_fmsubaddv2df4): Ditto.
2049 * doc/invoke.texi (-mfma4): Add documentation.
2050 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
2052 2009-09-29 Richard Henderson <rth@redhat.com>
2054 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
2055 an edge to the new destination block.
2057 2009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2060 * pa.c (hppa_profile_hook): Use
2061 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
2063 2009-09-29 Steve Ellcey <sje@cup.hp.com>
2064 Alexander Monakov <amonakov@ispras.ru>
2067 * config/ia64/predicates.md (not_postinc_destination_operand): New.
2068 (not_postinc_memory_operand): New.
2069 (not_postinc_move_operand): New.
2070 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
2071 (*cmovsi_internal): Ditto.
2073 2009-09-29 Pat Haugen <pthaugen@us.ibm.com>
2075 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
2076 restrict issue_rate in first pass when scheduling for register
2079 2009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
2080 Rafael Avila de Espindola <espindola@google.com>
2082 * gengtype.c (plugin_output): New.
2083 (get_output_file_with_visibility): Return plugin_output for plugins.
2084 (main): Parse and use the -P option.
2085 * gty.texi: Update the command line format.
2087 2009-09-29 Jakub Jelinek <jakub@redhat.com>
2090 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
2092 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
2093 out if !const_ok_for_output.
2096 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
2097 case VAR_LOCATION>: Remove gcc_unreachable ().
2099 2009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
2101 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
2102 (x86_64-*-*): Ditto.
2103 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
2104 back to smmintrin.h.
2105 * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
2106 * config/i386/x86intrin.h: Remove SSE5.
2107 * config/i386/mmintrin-common.h: Delete file.
2108 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
2110 2009-09-29 Richard Guenther <rguenther@suse.de>
2112 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
2113 resulting from stack temporaries on STRICT_ALIGNMENT targets.
2115 2009-09-29 Nick Clifton <nickc@redhat.com>
2117 * function.c (current_function_name): If there is no current
2118 function just return "<none>".
2120 2009-09-28 Sriraman Tallam <tmsriram@google.com>
2122 * tree-pass.h (register_pass_info): New structure.
2123 (pass_positioning_ops): Move enum from gcc-plugin.h.
2124 (register_pass): New function.
2125 * gcc-plugin.h (plugin_pass): Delete structure.
2126 (pass_positioning_ops): Delete enum.
2127 * plugin.c (regsiter_pass): Delete function.
2128 (position_pass): Delete function.
2129 (added_pass_nodes): Delete variable.
2130 (prev_added_pass_nodes): Delete variable.
2131 (pass_list_node): Delete structure.
2132 * passes.c (make_pass_instance): New function.
2133 (next_pass_1): Change to call make_pass_instance.
2134 (pass_list_node): Move structure from gcc-plugin.h.
2135 (added_pass_nodes): Move variable from plugin.c.
2136 (prev_added_pass_nodes): Move variable from plugin.c.
2137 (position_pass): New function.
2138 (register_pass): New function.
2140 2009-09-28 Easwaran Raman <eraman@google.com>
2142 * ifcvt.c (noce_try_abs): Recognize pattern and call
2143 expand_one_cmpl_abs_nojump.
2144 * optabs.c (expand_one_cmpl_abs_nojump): New function.
2145 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
2147 2009-09-28 Ian Lance Taylor <iant@google.com>
2150 * c-opts.c (c_common_handle_option): Don't set
2151 warn_jump_misses_init for -Wall.
2152 * doc/invoke.texi (Warning Options): Update documentation.
2154 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2156 * Makefile.in ($(out_object_file)): Depend on
2157 gt-$(basename $(notdir $(out_file))).h.
2159 2009-09-28 Richard Henderson <rth@redhat.com>
2161 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
2162 * except.c (gen_eh_region): Set it.
2163 (duplicate_eh_regions_1): Copy it.
2164 * tree-eh.c (lower_resx): Use it to determine which function
2167 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
2168 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
2169 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
2170 * tree.c (build_common_builtin_nodes): Remove parameter. Build
2171 BUILT_IN_CXA_END_CLEANUP if necessary.
2173 * c-common.c (c_define_builtins): Update call to
2174 build_common_builtin_nodes.
2176 2009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2178 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
2180 2009-09-28 Michael Matz <matz@suse.de>
2182 * builtins.c (interclass_mathfn_icode): New helper.
2183 (expand_builtin_interclass_mathfn): Use it here, and split folding
2185 (fold_builtin_interclass_mathfn): ... this new folder.
2186 (build_call_nofold_loc): New static helper.
2187 (build_call_nofold): New wrapper macro for above.
2188 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
2189 (expand_builtin_pow): Ditto.
2190 (expand_builtin_memset_args): Ditto.
2191 (expand_builtin_printf): Ditto.
2192 (expand_builtin_fprintf): Ditto.
2193 (expand_builtin_sprintf): Ditto.
2194 (expand_builtin_memory_chk): Ditto.
2195 (expand_builtin_mempcpy_args): Ditto and don't call folders.
2196 (expand_builtin_stpcpy): Ditto.
2197 (expand_builtin_strcmp): Ditto.
2198 (expand_builtin_strncmp): Ditto.
2199 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
2200 (expand_builtin_strcpy_args): Don't call folders.
2201 (expand_builtin_memcmp): Ditto.
2202 (expand_builtin_strncpy): Ditto, and use target.
2203 (expand_builtin_memcpy): Ditto.
2204 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
2205 expand_builtin_strpbrk, expand_builtin_memmove,
2206 expand_builtin_memmove_args, expand_builtin_bcopy,
2207 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
2208 expand_builtin_strspn, expand_builtin_strcspn,
2209 expand_builtin_fputs): Remove these.
2210 (expand_builtin): Don't call the above, change calls to other
2211 expanders that changed prototype.
2212 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
2213 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
2214 fold_builtin_interclass_mathfn.
2215 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
2216 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
2218 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
2219 * passes.c (init_optimization_passes): Move pass_fold_builtins
2220 after last phiopt pass.
2221 * tree-inline.c (fold_marked_statements): When folding builtins
2222 iterate over all instruction potentially generated.
2223 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
2225 (fold_gimple_call): Use it to always fold calls (into potentially
2226 multiple instructions).
2227 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
2228 calls into zero at this time.
2229 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
2230 statements generated by builtin folding.
2232 2009-09-28 Nick Clifton <nickc@redhat.com>
2234 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
2236 2009-09-28 Duncan Sands <baldrick@free.fr>
2238 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
2239 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
2240 (register_callback): Dispatch it.
2241 (invoke_plugin_callbacks): Incorporate in sanity check.
2242 * ggc.h (ggc_register_cache_tab): Add declaration.
2243 * ggc-common.c (ggc_register_root_tab): Simplify.
2244 (const_ggc_cache_tab_t): New typedef.
2245 (extra_cache_vec): New vector of dynamically added cache tables.
2246 (ggc_register_cache_tab): New function.
2247 (ggc_scan_cache_tab): New function.
2248 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
2249 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
2251 2009-09-27 Richard Henderson <rth@redhat.com>
2253 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
2254 which we remove __builtin_stack_restore.
2256 2009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
2258 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
2259 to test for GRD_INVARIANT.
2260 (simple_rhs_p): Anything that's function_invariant_p is fine.
2262 2009-09-27 Rafael Avila de Espindola <espindola@google.com>
2264 * gengtype.c (main): Use plunge_files instead of plugin_output.
2266 2009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
2267 Rafael Avila de Espindola <espindola@google.com>
2269 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
2270 Don't print pch related info if it is false.
2271 (main): Don't print pch info in plugin mode.
2273 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2275 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
2276 with dw_val_class_const_double.
2277 (struct dw_val_struct): Replace val_long_long with val_double and
2278 adjust for above change.
2279 (output_loc_operands): Likewise.
2280 (add_AT_long_long): Rename into...
2281 (add_AT_double): ...this.
2282 (print_die): Replace dw_val_class_long_long with
2283 dw_val_class_const_double and adjust.
2284 (attr_checksum): Likewise.
2285 (same_dw_val_p): Likewise.
2286 (size_of_die): Likewise.
2287 (value_format): Likewise.
2288 (output_die): Likewise.
2289 (loc_descriptor) <CONST_DOUBLE>: Likewise.
2290 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
2291 instead of add_AT_long_long.
2292 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
2293 value with the precision of its type.
2295 2009-09-27 Andreas Schwab <schwab@linux-m68k.org>
2298 * c-typeck.c (build_conditional_expr): Use the readonly and
2299 volatile flags of the operand types, not of the operands itself.
2301 2009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
2303 * collect2.c (main): Look for -brtl before adding libraries.
2305 2009-09-27 Jonathan Gray <jsg@openbsd.org>
2307 * config.gcc: Update OpenBSD targets.
2308 * config/openbsd-stdint.h: New file.
2309 * config/openbsd-libpthread.h: New file.
2310 * config/openbsd.h: Update and break out LIB_SPEC definition.
2311 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
2312 * config/i386/openbsdelf.h: Correct types.
2313 * config/m68k/openbsd.h: Likewise.
2314 * config/mips/openbsd.h: Likewise.
2315 * config/vax/openbsd.h: Likewise.
2317 2009-09-27 Eric Botcazou <ebotcazou@adacore.com>
2319 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
2320 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
2321 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
2322 of the length and zero.
2324 2009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2326 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
2327 (FLAGS_H): Add options.h $(REAL_H).
2328 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
2329 (TREE_VECTORIZER_H): New.
2330 (EBITMAP_H): Renamed from EBIMAP_H.
2331 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
2332 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
2333 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
2334 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
2335 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
2336 (graphite-clast-to-gimple.o, graphite-dependences.o)
2337 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
2338 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
2339 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
2340 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
2341 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
2342 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
2343 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
2344 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
2345 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
2346 updated and fixed as per above changes and per
2347 check_makefile_deps.sh output.
2350 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
2351 * configure: Regenerate.
2353 2009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2355 * doc/install.texi: Update minimum MPC version to 0.7.
2357 2009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
2359 * doc/install.texi (Binaries): Remove reference to the binary
2360 distribution CD-ROM from the FSF.
2362 2009-09-26 Michael Matz <matz@suse.de>
2366 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
2367 that are mentioned in the body.
2369 2009-09-26 Michael Matz <matz@suse.de>
2371 PR tree-optimization/41454
2372 * tree-ssa-dom (stmts_to_rescan): Remove variable.
2373 (tree_ssa_dominator_optimize): Don't allocate and free it.
2374 (dom_opt_leave_block): Don't iterate over it.
2375 (eliminate_redundant_computations): Don't return a value.
2376 (cprop_operand, cprop_into_stmt): Ditto.
2377 (optimize_stmt): Don't defer updating stmts.
2379 2009-09-25 Dodji Seketeli <dodji@redhat.com>
2381 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
2382 generic_parameter_die, template_parameter_pack_die,
2383 gen_formal_parameter_die, gen_subprogram_die): Adjust after
2384 renaming DW_TAG_formal_parameter_pack and
2385 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
2386 and DW_TAG_GNU_template_parameter_pack.
2388 2009-09-25 Anatoly Sokolov <aesok@post.ru>
2390 * config/v850/v850.h (FUNCTION_VALUE): Remove.
2391 * config/v850/v850.c (v850_function_value): New function.
2392 (TARGET_FUNCTION_VALUE): Define.
2394 2009-09-25 Jakub Jelinek <jakub@redhat.com>
2396 * tree-vect-stmts.c (vectorizable_call): Call
2397 mark_symbols_for_renaming after vect_finish_stmt_generation.
2399 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
2400 to loc_descriptor_from_tree.
2401 (add_location_or_const_value_attribute): Pass 0 instead of 2
2402 for decl_by_reference_p decls.
2404 2009-09-25 Richard Guenther <rguenther@suse.de>
2407 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
2410 2009-09-25 Ben Elliston <bje@au.ibm.com>
2412 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
2415 2009-09-25 Alan Modra <amodra@bigpond.net.au>
2417 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
2418 form of instruction.
2420 2009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423 * fold-const.c (const_binop): Handle complex int division.
2424 * tree-complex.c (expand_complex_div_straight,
2425 expand_complex_div_wide): Update comments.
2427 2009-09-24 DJ Delorie <dj@redhat.com>
2430 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
2431 (reg_class): Likewise.
2432 (REG_CLASS_NAMES): Likewise.
2433 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
2434 (m32c_override_options): Disable -fivopts for M32C.
2436 2009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2438 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2439 Delete VSX load/store with update support.
2440 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
2441 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
2445 (VStype_load_update): Ditto.
2446 (VStype_store_update): Ditto.
2447 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2448 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
2450 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
2451 load/store with update builtins.
2453 2009-09-24 Kai Tietz <kai.tietz@onevision.com>
2455 * libgcc2.c (L_trampoline): Prototype for getpagesize
2456 and mprotect in WINNT case.
2458 2009-09-24 Anatoly Sokolov <aesok@post.ru>
2460 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2461 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2462 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2463 'outgoing' argument.
2464 (TARGET_FUNCTION_VALUE): Define.
2466 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2468 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2470 2009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2473 * common.opt: Initialize dwarf_strict to -1.
2474 * toplev.c (process_options): Catch unset dwarf_strict
2475 and set to 0 for all targets not overriding.
2476 * config/darwin.c (darwin_override_options): Catch unset
2477 dwarf_strict and override to 1.
2479 2009-09-24 Jeff Law <law@redhat.com>
2481 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2483 2009-09-24 Richard Guenther <rguenther@suse.de>
2485 PR tree-optimization/36143
2486 PR tree-optimization/38747
2487 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2488 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2490 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2493 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2494 return false instead of gcc_unreachable (). For CONST return the
2495 value returned by recursive call instead of always returning true.
2496 (tree_add_const_value_attribute): Return the value returned by
2497 add_const_value_attribute instead of always returning true if rtl
2500 2009-09-23 Justin Seyster <jrseys@gmail.com>
2502 * Makefile.in (PLUGIN_HEADERS): Include real.h.
2504 2009-09-24 Jakub Jelinek <jakub@redhat.com>
2506 * cgraphunit.c (cgraph_lower_function): Revert last change.
2507 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2508 instead of DECL_NO_STATIC_CHAIN.
2509 * tree-cfg.c (verify_gimple_call): Likewise.
2510 * tree-nested.c (get_chain_decl, get_chain_field,
2511 convert_tramp_reference_op, convert_gimple_call): Likewise.
2512 (convert_all_function_calls): Likewise. Always set or clear
2513 DECL_STATIC_CHAIN initially, for !n->outer clear it.
2514 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2515 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2517 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2518 DECL_NO_STATIC_CHAIN.
2519 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2520 instead of DECL_NO_STATIC_CHAIN.
2521 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
2522 decl_function_context.
2523 * varasm.c (initializer_constant_valid_p): Likewise.
2524 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2525 (DECL_STATIC_CHAIN): ... this.
2526 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2527 instead of DECL_NO_STATIC_CHAIN.
2529 2009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
2530 Rafael Avila de Espindola <espindola@google.com>
2532 * gengtype.c (nb_plugin_files): Make it unsigned to match
2533 num_gt_files. Adjust other variables to avoid warnings.
2534 (main): Allocate an all zero lang_bitmap before each plugin file name
2535 to match regular file names.
2537 2009-09-23 Richard Henderson <rth@redhat.com>
2539 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2540 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2541 static chain passed in memory.
2542 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2543 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2544 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
2545 STATIC_CHAIN_REGNUM defined.
2547 * config/picochip/picochip-protos.h: s/class/klass/.
2548 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2549 (picochip_static_chain): New.
2550 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2551 (STATIC_CHAIN_INCOMING): Remove.
2553 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2554 (xtensa_static_chain): New.
2555 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2556 (STATIC_CHAIN_INCOMING): Remove.
2558 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2560 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2561 * config/pa/pa-protos.h (function_value): Remove.
2562 * config/pa/pa.c (pa_function_value): Rename from function_value.
2563 Make static, add 'outgoing' argument.
2564 (TARGET_FUNCTION_VALUE): Define.
2566 2009-09-23 Anatoly Sokolov <aesok@post.ru>
2568 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2569 instead of cfun->machine->is_leaf.
2570 * config/avr/avr.h (machine_function): Remove is_leaf field.
2572 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2575 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2576 DW_OP_piece after DW_OP_stack_value, adjust size calculations
2577 for it, when DW_OP_stack_value and DW_OP_implicit_value has
2578 the same size, prefer DW_OP_stack_value.
2579 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2580 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2582 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2585 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2587 2009-09-23 Alexandre Oliva <aoliva@redhat.com>
2590 * cfgexpand.c (convert_debug_memory_address): New.
2591 (expand_debug_expr): Convert base address and offset to the same
2592 mode. Use it to convert addresses to other modes. Accept
2595 2009-09-23 Richard Guenther <rguenther@suse.de>
2597 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2598 produced for bigendian targets with promoted subregs.
2600 2009-09-23 Richard Guenther <rguenther@suse.de>
2602 * value-prof.c (gimple_ic): Purge old EH edges only after building
2605 2009-09-23 Nick Clifton <nickc@redhat.com>
2607 * config/arc/arc.c (arc_trampoline_init): Fix typo.
2609 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2612 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2615 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2616 on non-nested functions.
2618 2009-09-23 Jakub Jelinek <jakub@redhat.com>
2619 Jan Hubicka <jh@suse.cz>
2621 * dwarf2out.c (loc_list_plus_const): Only define if
2622 DWARF2_DEBUGGING_INFO.
2623 (address_of_int_loc_descriptor): Likewise.
2626 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2628 2009-09-23 Uros Bizjak <ubizjak@gmail.com>
2631 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2632 constant is more than zero.
2634 2009-09-23 Alan Modra <amodra@bigpond.net.au>
2637 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2638 call final to emit non-scheduled prologue, instead insert at entry.
2640 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2641 Joseph S. Myers <joseph@codesourcery.com>
2643 * doc/install.texi (*-*-freebsd*): Add proper format codes.
2645 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2646 Rafael Avila de Espindola <espindola@google.com>
2648 * gengtype.c (is_file_equal): New function.
2649 (close_output_files): Use is_file_equal. Free of->buf.
2651 2009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
2652 Rafael Avila de Espindola <espindola@google.com>
2654 * gengtype.c (write_types, write_local): Add the output_header
2655 argument. Update all callers.
2657 2009-09-22 Dodji Seketeli <dodji@redhat.com>
2659 * dwarf2out.c (template_parameter_pack_die,
2660 gen_formal_parameter_pack_die ): New functions.
2661 (make_ith_pack_parameter_name): Remove this function.
2662 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2663 DW_TAG_formal_parameter_pack.
2664 (gen_generic_params_dies): Represent each template parameter pack
2665 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2666 represented by usual DW_TAG_template_*_parameter DIEs that are
2667 children of the DW_TAG_template_parameter_pack element DIE.
2668 (generic_parameter_die): This doesn't deal with parameter pack
2669 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2670 of parameter pack DIEs.
2671 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2672 in certain cases, e.g. for pack elements.
2673 (gen_formal_types_die, gen_decl_die): Adjust usage of
2674 gen_formal_parameter_die.
2675 (gen_subprogram_die): Represent each function parameter pack by a
2676 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2677 represented by usual DW_TAG_formal_parameter DIEs that are children
2678 of the DW_TAG_formal_parameter_pack DIE. Remove references to
2679 ____builtin_va_alist decls as no part of the compiler uses those
2681 * langhooks.h (struct lang_hooks_for_decls): Add
2682 function_parm_expanded_from_pack_p, get_generic_function_decl
2683 and function_parameter_pack_p hooks. Fix comment for
2684 get_innermost_generic_parms hook.
2685 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2686 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2687 macros and use them to initialize lang_hook.
2689 2009-09-22 Richard Henderson <rth@redhat.com>
2691 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2692 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2693 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2694 on TRAMPOLINE_TEMPLATE.
2695 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2696 TRAMPOLINE_ADJUST_ADDRESS.
2697 * targhooks.c (default_asm_trampoline_template): Remove.
2698 (default_trampoline_adjust_address): Remove.
2699 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2700 * targhooks.h: Update decls.
2702 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
2704 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2705 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2706 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2708 2009-09-22 Alexandre Oliva <aoliva@redhat.com>
2711 * reload1.c (reload): Reset debug insns with pseudos without
2714 2009-09-22 Janis Johnson <janis187@us.ibm.com>
2716 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2717 unconditional true for decimal float modes.
2718 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2719 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2721 2009-09-22 Loren J. Rittle <ljrittle@acm.org>
2723 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2724 Enable a new case for __FreeBSD__ >= 7.
2725 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2726 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2727 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2728 and USE_LD_AS_NEEDED.
2730 * doc/install.texi (*-*-freebsd*): Update target information.
2732 2009-09-22 Richard Guenther <rguenther@suse.de>
2735 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2736 arrays really properly.
2738 2009-09-22 Richard Henderson <rth@redhat.com>
2741 * target.h (struct gcc_target): Add asm_out.trampoline_template,
2742 calls.static_chain, calls.trampoline_init,
2743 calls.trampoline_adjust_address.
2744 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2745 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2746 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2747 * builtins.c (expand_builtin_setjmp_receiver): Use
2748 targetm.calls.static_chain; only clobber registers.
2749 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2750 set up memory attributes properly for the trampoline block.
2751 (expand_builtin_adjust_trampoline): Use
2752 targetm.calls.trampoline_adjust_address.
2753 * calls.c (prepare_call_address): Add fndecl argument. Use
2754 targetm.calls.static_chain.
2755 * df-scan.c (df_need_static_chain_reg): Remove.
2756 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2757 consolodate static chain handling.
2758 * doc/tm.texi: Document new hooks.
2759 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2760 (init_emit_regs): Don't initialize them.
2761 * expr.h (prepare_call_address): Update decl.
2762 * final.c (profile_function): Use targetm.calls.static_chain.
2763 * function.c (expand_function_start): Likewise.
2764 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2765 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2766 only clobber registers.
2767 * targhooks.c (default_static_chain): New.
2768 (default_asm_trampoline_template, default_trampoline_init): New.
2769 (default_trampoline_adjust_address): New.
2770 * targhooks.h: Declare them.
2771 * varasm.c (assemble_trampoline_template): Use
2772 targetm.asm_out.trampoline_template. Make the memory block const
2775 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2776 alpha_initialize_trampoline. Make static. Merge VMS parameter
2777 differences into the TARGET_ABI_OPEN_VMS code block.
2778 (TARGET_TRAMPOLINE_INIT): New.
2779 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2780 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2781 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2782 (INITIALIZE_TRAMPOLINE): Remove.
2784 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2785 (TRAMPOLINE_TEMPLATE): Merge with ...
2786 (INITIALIZE_TRAMPOLINE): ... this and move ...
2787 * config/arc/arc.c (arc_trampoline_init): ... here.
2788 (TARGET_TRAMPOLINE_INIT): New.
2790 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2791 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2792 (arm_asm_trampoline_template): New.
2793 (arm_trampoline_init, arm_trampoline_adjust_address): New.
2794 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2795 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2796 code to arm_asm_trampoline_template.
2797 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2798 arm_trampoline_adjust_address.
2799 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2800 adjust for target hook parameters.
2802 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2805 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2806 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2807 (bfin_trampoline_init): Rename from initialize_trampoline;
2808 make static; update for target hook parameters.
2809 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2810 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2811 bfin_asm_trampoline_template.
2812 (INITIALIZE_TRAMPOLINE): Remove.
2814 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2815 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2816 cris_trampoline_init): New.
2817 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2818 cris_asm_trampoline_template.
2819 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2820 adjust for target hook parameters.
2822 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2824 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2825 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2826 fr30_trampoline_init): New.
2827 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2828 fr30_asm_trampoline_template.
2829 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2830 adjust for target hook parameters.
2832 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2833 (frv_trampoline_init): Rename from frv_initialize_trampoline;
2834 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2835 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2836 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2838 * config/h8300/h8300.c (h8300_trampoline_init): New.
2839 (TARGET_TRAMPOLINE_INIT): New.
2840 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2841 to h8300_trampoline_init and adjust for hook parameters.
2843 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2844 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2845 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2846 make static; adjust for hook parameters.
2847 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2849 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2850 (TARGET_TRAMPOLINE_INIT): New.
2851 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2852 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2853 iq2000_asm_trampoline_template.
2854 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2855 (TRAMPOLINE_CODE_SIZE): New.
2856 (TRAMPOLINE_SIZE): Use it.
2857 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2859 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2860 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2861 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2862 adjust for hook parameters.
2863 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2865 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2866 (m32r_trampoline_init): New.
2867 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2868 m32r_trampoline_init.
2870 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2871 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2872 make static; update for hook parameters.
2873 * config/m68hc11/m68hc11-protos.h: Update.
2874 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2876 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2877 (TARGET_TRAMPOLINE_INIT): New.
2878 (mcore_function_value): Fix typo.
2879 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2880 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2881 to mcore_asm_trampoline_template.
2882 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2884 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2885 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2886 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2887 update for hook parameters.
2888 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2890 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2891 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2892 mips_trampoline_init): New.
2893 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2894 mips_asm_trampoline_template.
2895 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2896 update for hook parameters.
2898 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2899 (TARGET_TRAMPOLINE_INIT): New.
2900 (mmix_trampoline_size): Remove.
2901 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2902 make static. Remove out-of-date tetra vs octa comment.
2903 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2904 make static; update for hook parameters.
2905 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2906 (INITIALIZE_TRAMPOLINE): Remove.
2907 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2908 (TRAMPOLINE_ALIGNMENT): New.
2909 * gcc/config/mmix/mmix-protos.h: Update.
2911 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2912 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2913 mn10300_trampoline_init): New.
2914 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2915 mn10300_asm_trampoline_template.
2916 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2918 * config/moxie/moxie.c (moxie_static_chain,
2919 moxie_asm_trampoline_template, moxie_trampoline_init,
2920 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2921 TARGET_TRAMPOLINE_INIT): New.
2922 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2923 moxie_trampoline_init.
2924 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2925 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2927 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2928 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2929 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2930 pa_trampoline_adjust_address): New.
2931 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2932 pa_asm_trampoline_template.
2933 (TRAMPOLINE_ALIGNMENT): New.
2934 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2935 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2936 adjust for hook parameters.
2937 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2939 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2940 (TARGET_TRAMPOLINE_INIT): New.
2941 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2942 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2944 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2946 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2947 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2948 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2949 make static; adjust parameters for the hook.
2950 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2952 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2953 s390_trampoline_template; make static.
2954 (s390_trampoline_init): Rename from s390_initialize_trampoline;
2955 make static; adjust for target hook.
2956 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2957 * config/s390/s390-protos.h: Remove trampoline decls.
2958 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2959 (TRAMPOLINE_TEMPLATE): Remove.
2960 (TRAMPOLINE_ALIGNMENT): New.
2962 * config/score/score-protos.h (score_initialize_trampoline): Remove.
2963 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2964 (TARGET_TRAMPOLINE_INIT): New.
2965 (score_asm_trampoline_template): New.
2966 (score_trampoline_init): Rename from score_initialize_trampoline;
2967 make static; adjust for hook parameters.
2968 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2969 score[37]_asm_trampoline_template.
2970 (INITIALIZE_TRAMPOLINE): Remove.
2971 * config/score/score3.c (score3_asm_trampoline_template): New.
2972 (score3_trampoline_init): Rename from score3_initialize_trampoline;
2973 adjust for target hook.
2974 * config/score/score7.c (score7_asm_trampoline_template): New.
2975 (score7_trampoline_init): Rename from score7_initialize_trampoline;
2976 adjust for target hook.
2977 * config/score/score3.h, config/score/score7.h: Update.
2979 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2980 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2981 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2982 (sh_trampoline_init): Rename from sh_initialize_trampoline;
2983 make static; adjust for target hook parameters.
2984 (sh_trampoline_adjust_address): New.
2985 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2986 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2988 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2989 (sparc32_initialize_trampoline): Rename from
2990 sparc_initialize_trampoline; make static; replace tramp parameter
2991 with m_tramp and update memory accesses.
2992 (sparc64_initialize_trampoline): Similarly.
2993 (sparc_trampoline_init): New.
2994 * config/sparc/sparc-protos.h: Remove trampoline decls.
2995 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2996 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2998 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2999 (array_to_constant): Make ARR parameter const.
3000 (spu_trampoline_init): Rename from spu_initialize_trampoline;
3001 make static; update for hook parameters.
3002 * config/spu/spu-protos.h: Update decls.
3003 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
3005 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
3006 from xstormy16_initialize_trampoline; make static; update for
3008 (TARGET_TRAMPOLINE_INIT): New.
3009 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
3011 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3012 (TARGET_TRAMPOLINE_INIT): New.
3013 (v850_can_eliminate): Make static.
3014 (v850_asm_trampoline_template, v850_trampoline_init): New.
3015 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
3016 v850_asm_trampoline_template.
3017 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
3018 and adjust for target hook parameters.
3020 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3021 (TARGET_TRAMPOLINE_INIT): New.
3022 (vax_asm_trampoline_template, vax_trampoline_init): New.
3023 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
3024 vax_asm_trampoline_template.
3025 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
3027 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
3028 (TARGET_TRAMPOLINE_INIT): New.
3029 (xtensa_asm_trampoline_template): Rename from
3030 xtensa_trampoline_template; make static.
3031 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
3032 make static; update for hook parameters.
3033 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
3034 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
3035 (INITIALIZE_TRAMPOLINE): Remove.
3037 * config/i386/i386.c (ix86_function_regparm): Do not issue an
3038 error for nested functions with regparm=3.
3039 (ix86_compute_frame_layout): Adjust frame pointer offset for
3040 ix86_static_chain_on_stack.
3041 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
3042 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
3043 don't reset to UNITS_PER_WORD.
3044 (ix86_emit_leave): Adjust ix86_cfa_state.
3045 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
3046 (ix86_static_chain): New.
3047 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
3048 make static; update for target hook parameters; use ix86_static_chain.
3049 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
3050 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
3051 (INITIALIZE_TRAMPOLINE): Remove.
3052 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
3053 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
3054 to the end. Add static_chain_on_stack.
3055 (ix86_static_chain_on_stack): New.
3057 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
3058 (m68k_output_mi_thunk): Don't use static_chain_rtx.
3059 (m68k_trampoline_init): New.
3060 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
3061 m68k_trampoline_init and adjust for hook parameters.
3062 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
3063 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
3065 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3067 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
3068 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
3070 * reload1.c (reload): Call wrap_constant when substituting
3071 reg for equiv inside of DEBUG_INSNs.
3074 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
3075 add_call_src_coords_attributes, add_high_low_attributes,
3076 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
3077 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
3078 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
3079 when -gdwarf-2 -gstrict-dwarf.
3080 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
3081 -gdwarf-[23] -gstrict-dwarf.
3082 (address_of_int_loc_descriptor, loc_descriptor,
3083 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
3084 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
3085 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
3087 2009-09-22 Richard Guenther <rguenther@suse.de>
3089 PR tree-optimization/41428
3090 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
3091 (ccp_finalize): Pass it to substitute_and_fold.
3093 2009-09-22 Richard Guenther <rguenther@suse.de>
3095 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
3096 (substitute_and_fold): Adjust prototype.
3097 * tree-vrp.c (vrp_evaluate_conditional): Make static.
3098 (simplify_stmt_using_ranges): Likewise.
3099 (fold_predicate_in): Move here from tree-ssa-propagate.c.
3100 (vrp_fold_stmt): New function.
3101 (vrp_finalize): Pass it to substitute_and_fold.
3102 * tree-flow.h (vrp_evaluate_conditional): Remove.
3103 (simplify_stmt_using_ranges): Likewise.
3104 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
3105 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3106 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
3108 (fold_predicate_in): Move to tree-vrp.c.
3109 (substitute_and_fold): Use the callback instead of calling into
3110 tree-vrp.c functions directly.
3112 2009-09-22 Jakub Jelinek <jakub@redhat.com>
3114 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
3115 comparison warning on rs6000.
3118 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
3119 GIMPLE_EH_MUST_NOT_THROW cleanup.
3120 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3122 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
3125 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
3126 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
3127 LIB_SPEC for darwin10 and later since it always uses the unwinder in
3128 libSystem which is derived from the gcc 4.2.1 unwinder.
3130 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3133 * varasm.c (default_encode_section_info): Copy TLS model into
3134 sym_ref flags regardless of backend support for TLS, for all
3135 model types except TLS_MODEL_EMULATED.
3137 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
3140 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
3141 we can handle it correctly.
3143 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3145 * doc/install.texi (os2): Remove section.
3147 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
3149 * doc/standards.texi (Objective-C): Adjust two URLs.
3151 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
3153 * tree-tailcall.c (process_assignment): Don't check if a
3154 multiplication or an addition are already present.
3155 (find_tail_calls): Combine multiple additions and multiplications.
3156 (adjust_accumulator_values): Emit accumulators.
3158 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
3160 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
3161 xmm register restore.
3163 2009-09-21 Jan Hubicka <jh@suse.cz>
3165 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
3166 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
3169 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
3171 * stor-layout.c (layout_type): Remove obsolete code.
3173 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
3176 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
3178 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3181 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
3182 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
3183 (fold_builtin_2, do_mpc_arg1): Update accordingly.
3184 * fold-const.c (const_binop): Likewise.
3185 * real.h (do_mpc_arg2): Update prototype.
3187 2009-09-20 Jan Hubicka <jh@suse.cz>
3189 * dwarf2out.c (add_const_value_attribute): Return true if successful.
3190 (add_location_or_const_value_attribute): Rewrite using
3192 (tree_add_const_value_attribute): Return true if successful.
3193 (tree_add_const_value_attribute_for_decl): Likewise.
3195 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
3196 (loc_descriptor): ... here;
3197 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3198 (cst_pool_loc_descr): Break out from ...; do not reffer constant
3199 pool items that was not marked for output.
3200 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
3201 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3202 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
3203 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
3204 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
3205 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
3206 DW_OP_stack_value to get address of items that are not available
3208 (dw_loc_list): Handle single element lists correctly.
3210 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
3211 Pascal Obry <obry@adacore.com>
3213 * unwind-dw2-fde.c (classify_object_over_fdes):
3214 Cast the constant 1 to _Unwind_Ptr.
3215 (add_fdes): Likewise.
3216 (linear_search_fdes): Likewise.
3218 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
3220 * stor-layout.c (set_sizetype): Avoid useless type copy.
3222 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
3224 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
3226 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
3227 * configure, config.in: Regenerate.
3228 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
3230 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
3231 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
3232 for global data if the output could be used in a shared library.
3233 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3234 to 0 if TARGET_WRITABLE_EH_FRAME.
3236 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
3238 PR rtl-optimization/39886
3239 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
3240 just when insn is equal to BB_END (bb).
3242 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
3244 * config/mips/mips.opt (mrelax-pic-calls): New option.
3245 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
3247 (mips_unspec_call): Change "unspec_call" expander into this.
3248 (mips_strip_unspec_call): New function.
3249 (mips_got_load): Call mips_unspec_call instead of
3250 gen_unspec_call<mode>.
3251 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
3253 (mips_cfg_in_reorg): New function.
3254 (mips16_lay_out_constants): Use it to decide whether to call
3255 CFG-aware insn splitting.
3256 (r10k_insert_cache_barriers): Move CFG set-up code from here to
3257 mips_reorg. Move DF set-up code from here ...
3258 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
3260 (mips_reorg): Call mips_df_reorg instead of
3261 r10k_insert_cache_barriers. Move CFG set-up code here from
3262 r10k_insert_cache_barriers.
3263 (mips_call_expr_from_insn): New function.
3264 (mips_pic_call_symbol_from_set): Likewise.
3265 (mips_find_pic_call_symbol): Likewise.
3266 (mips_annotate_pic_call_expr): Likewise.
3267 (mips_get_pic_call_symbol): Likewise.
3268 (mips_annotate_pic_calls): Likewise.
3269 (mips_override_options): Disable -mrelax-pic-calls unless PIC
3271 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
3272 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
3273 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
3275 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
3276 (unspec_call<mode>): Remove it.
3277 (sibcall_internal, sibcall_value_internal,
3278 sibcall_value_multiple_internal, call_internal, call_split,
3279 call_value_internal, call_value_split,
3280 call_value_multiple_internal, call_value_multiple_split): Pass
3281 SIZE_OPNO to MIPS_CALL.
3282 (call_internal_direct, call_direct_split,
3283 call_value_internal_direct, call_value_direct_split): Pass -1 as
3284 SIZE_OPNO to MIPS_CALL.
3285 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
3286 * configure: Regenerate.
3287 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
3288 and -mno-relax-pic-calls.
3289 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
3291 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3294 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
3295 in the directory this rule is called from, rather than the
3296 toplevel 'gcc' directory, to fix in-tree build.
3298 2009-09-19 Chris Demetriou <cgd@google.com>
3300 PR preprocessor/28435:
3301 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
3302 to cpplib that the preprocessor output is needed.
3304 2009-09-19 Jakub Jelinek <jakub@redhat.com>
3306 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
3307 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
3308 *return_and_restore_fpregs_<mode>,
3309 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
3312 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
3313 instead of assuming it has always a REG inside of it.
3315 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
3317 * config/freebsd.h: Update comment on types.
3318 (WINT_TYPE): Define.
3320 2009-09-18 Jason Merrill <jason@redhat.com>
3322 * c.opt: Add -fno-deduce-init-list.
3324 2009-09-18 Neil Vachharajani <nvachhar@google.com>
3326 * value-prof.c (interesting_stringop_to_profile_p): Added output
3327 argument to indicate which parameter is the size parameter.
3328 * value-prof.c (gimple_stringop_fixed_value): Use
3329 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
3330 * value-prof.c (gimple_stringops_transform): Update call sites to
3331 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
3333 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
3336 From David Binderman <dcb314@hotmail.com>:
3337 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
3338 local variable f. Remove stale comments.
3339 (ix86_compute_frame_layout): Remove useless local variable total_size.
3340 Remove #if 0'd code.
3341 (legitimate_address_p): Remove useless local variables
3342 reason_rtx and reason.
3343 (ix86_split_copysign_const): Remove useless local variable op1.
3344 (scale_counter): Remove useless local variable piece_size_mask.
3346 2009-09-18 Jakub Jelinek <jakub@redhat.com>
3348 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
3351 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3354 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
3356 2009-09-17 Jakub Jelinek <jakub@redhat.com>
3358 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
3361 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
3363 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
3364 DW_OP_implicit_value even without dwarf_version 4.
3366 2009-09-17 Jan Hubicka <jh@suse.cz>
3368 * dwarf2out.c: Include tree-pass.h and gimple.h.
3369 (loc_list_plus_const): New function.
3370 (loc_descriptor_from_tree_1): Rename to ...
3371 (loc_descriptor_from_tree): ... remove original.
3372 (loc_list_from_tree): New function.
3373 (add_AT_location_description): Accept location list.
3374 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
3375 (concatn_mem_loc_descriptor): Remove.
3376 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
3378 (secname_for_decl): Move up.
3379 (hidden_reference_p): New function; break out from ...
3380 (loc_by_refernece): ... here; move up.
3381 (dw_loc_list): New function.
3382 (single_element_loc_list): New function.
3383 (single_element_loc_list_p): New function.
3384 (add_loc_descr_to_each): New function.
3385 (add_loc_list): New function.
3386 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
3387 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
3388 add diagnostics why expansion failed.
3389 (add_location_or_const_value_attribute): Support location lists.
3390 (add_bound_info): Likewise.
3391 (descr_info_loc): Update call of loc_descriptor_from_tree.
3392 (gen_variable_die): Work on location lists.
3393 * final.c (pass_final): Add dump file.
3394 * Makefile.in (dwarf2out.o): Add new dependencies.
3396 2009-09-17 Janis Johnson <janis187@us.ibm.com>
3399 * real.c decimal_from_integer, decimal_integer_string): New.
3400 (real_from_integer): Use them as special case for decimal float.
3401 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
3402 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
3403 Do not append zero after the decimal point in string to convert.
3405 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
3407 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3408 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3410 2009-09-17 Martin Jambor <mjambor@suse.cz>