1 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3 * c-tree.h (build_arg_info): Declare.
4 * c-decl.c (build_arg_info): Define.
5 (get_parm_info): Call it. Delete initialization code.
6 * c-parser.c (c_parser_parms_declarator): Likewise.
7 (c_parser_parms_list_declaractor): Likewise.
9 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
12 (struct c_arg_info): Change type of tags field.
13 * c-decl.c (grokdeclarator): Update for changed type of tags field.
14 (get_parm_info): Likewise.
15 (store_parm_decls_newstyle): Likewise.
17 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
19 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
20 (branch_island_list): Delete.
21 (branch_islands): Declare.
22 (add_compiler_branch_island): Adjust for branch_islands instead of
24 (macho_branch_islands): Likewise.
25 (no_previous_def): Likewise.
26 (get_prev_label): Likewise.
28 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31 * gthr-posix.h (__gthread_start): Delete.
32 (__gthread_active_init): Use pthread_default_stacksize_np instead of
33 pthread_create to determine if hpux pthreads are active.
34 * gthr-posix95.h (__gthread_start): Delete.
35 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
37 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
39 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
42 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
43 H.J. Lu <hongjiu.lu@intel.com>
46 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
47 to output 32bit SFmode immediate as 8 byte sign extended value.
49 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
51 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
52 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
53 (SUBWORD_BOOL_CAS): Likewise.
54 (SUBWORD_SYNC_OP): Likewise.
55 (SUBWORD_TEST_AND_SET): Likewise.
56 (FETCH_AND_OP_WORD): Parenthesise INF_OP
57 (SUBWORD_SYNC_OP): Likewise.
58 (OP_AND_FETCH_WORD): Likewise.
60 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
62 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
63 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
64 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
65 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
67 (cortex_a9_sched_adjust_cost): New function.
68 (xscale_sched_adjust_cost): New function.
69 * config/arm/arm-protos.h (struct tune_params): New field
71 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
73 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
76 * config/sparc/sparc.c (function_arg_advance): Always take into account
79 2010-08-06 Richard Guenther <rguenther@suse.de>
81 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
82 (dump_lattice_value): Dump it.
83 (get_default_value): Adjust.
84 (get_constant_value): Likewise.
85 (set_value_varying): Likewise.
86 (set_lattice_value): Make sure to not go up the lattice
87 with bitwise constant values.
88 (get_value_for_expr): Handle ADDR_EXPRs.
89 (value_to_double_int): New function.
90 (get_value_from_alignment): Likewise.
92 (ccp_lattice_meet): Handle partially constant values.
93 (bit_value_unop_1): New function.
94 (bit_value_binop_1): Likewise.
95 (bit_value_unop): Likewise.
96 (bit_value_binop): Likewise.
97 (evaluate_stmt): Track partially constant values if
98 flag_tree_bit_ccp is set.
99 (ccp_fold_stmt): Dump if we folded a predicate.
100 (ccp_visit_stmt): Adjust.
101 * common.opt (ftree-bit-ccp): New flag.
102 * doc/invoke.texi (ftree-bit-ccp): Document.
103 * opts.c (decode_options): Enable bit-CCP at -O1.
105 2010-08-06 Alan Modra <amodra@gmail.com>
107 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
108 and -mrelocatable-lib description.
110 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
112 From Martin Thuresson <martint@google.com>
113 * postreload.c (reload_cse_simplify_operands): Use
114 SET_REGNO_RAW instead of SET_REGNO.
115 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
117 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
118 instead of SET_REGNO.
119 * rtl.h (SET_REGNO_RAW): New macro.
121 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
123 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
124 computations. Fix formatting issues.
125 (num_sign_bit_copies1): Likewise.
126 (canonicalize_condition): Likewise.
128 2010-08-05 Richard Henderson <rth@redhat.com>
130 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
131 (floor_log2): Use clz_hwi.
132 (exact_log2): Use ctz_hwi.
133 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
134 * builtins.c (fold_builtin_bitop): Use them.
135 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
136 * combine.c (get_pos_from_mask): Use ctz_hwi.
137 * double-int.c (double_int_ctz): Likewise.
138 * explow.c (force_reg): Likewise.
139 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
141 2010-08-05 Richard Henderson <rth@redhat.com>
144 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
145 the alignment constant is properly sign-extended.
147 2010-08-05 Richard Guenther <rguenther@suse.de>
149 * expr.c (store_expr): Use emit_block_move only if both
150 source and target are MEMs. Use store_bit_field if only
153 2010-08-05 Richard Henderson <rth@redhat.com>
156 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
157 (INCOMING_RETURN_ADDR_RTX): Likewise.
158 (dwarf2out_do_frame): Remove conditional compilation.
159 (dwarf2out_frame_init): Likewise.
161 2010-08-05 Nicolas Setton <setton@adacore.com>
163 * gcov.c (flag_display_progress): New static variable.
164 (main): Display progress info on standard output if requested.
165 (options): Add -d/--display-progress.
166 (print_usage): Print them.
167 (process_args): Handle them.
168 * doc/gcov.texi: Document them.
170 2010-08-05 Martin Jambor <mjambor@suse.cz>
172 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
173 (ipcp_insert_stage): Redirect only edges not flagged with
174 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
175 discovered constants.
177 2010-08-05 Martin Jambor <mjambor@suse.cz>
179 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
180 (struct ipa_param_descriptor): New fields types and
182 (ipa_param_cannot_devirtualize_p): New function.
183 (ipa_param_types_vec_empty): Likewise.
184 (ipa_make_edge_direct_to_target): Declare.
185 * ipa-cp.c: Fixed first stage driver name in initial comment,
186 described devirtualization there too.
187 (ipcp_analyze_node): Call ipa_analyze_params_uses.
188 (ipcp_print_all_lattices): Print devirtualization info.
189 (ipa_set_param_cannot_devirtualize): New function.
190 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
192 (ipcp_init_stage): Merged into...
193 (ipcp_generate_summary): ...its caller.
194 (ipcp_change_tops_to_bottom): Also process type lists.
195 (ipcp_add_param_type): New function.
196 (ipcp_copy_types): Likewise.
197 (ipcp_propagate_types): Likewise.
198 (ipcp_propagate_stage): Also propagate types.
199 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
200 Also return true if propagated types require it.
201 (ipcp_update_callgraph): Dump redirection info.
202 (ipcp_process_devirtualization_opportunities): New function.
203 (ipcp_const_param_count): Include known type information.
204 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
205 on new node. Fixed formatting.
206 * ipa-prop.c (make_edge_direct_to_target): Renamed to
207 ipa_make_edge_direct_to_target and changed all callers. Made
209 (ipa_node_duplication_hook): Duplicate types vector.
210 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
211 redirect outgoing calls for which we can't get a decl from the
212 statement. Check that we can get a decl from the call statement.
213 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
214 ipa_analyze_params_uses only when ipa-cp is disabled.
215 * tree-inline.c (get_indirect_callee_fndecl): Removed.
216 (expand_call_inline): Do not call get_indirect_callee_fndecl.
217 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
218 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
220 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
222 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
223 temporary. Emit move from temporary to accum, so REG_EQUAL note will
224 be attached to this insn in correct mode.
226 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
228 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
229 using REGNO of base_reg directly.
231 2010-08-05 Jie Zhang <jie@codesourcery.com>
233 PR tree-optimization/45144
234 * tree-sra.c (type_consists_of_records_p): Return false
235 if the record contains bit-field.
237 2010-08-04 Richard Henderson <rth@redhat.com>
239 * config/i386/i386.c (struct ix86_frame): Remove padding and
241 (ix86_compute_frame_layout): Don't store them.
242 (ix86_can_use_return_insn_p): Use a more direct and more obviously
243 correct condition for the position of the stack pointer.
244 (ix86_expand_prologue): Compute remaining stack allocation based
245 on the ultimate stack pointer offset.
246 (ix86_expand_epilogue): Use more obvious expressions testing for
247 the stack pointer already pointing to the saved registers.
249 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
250 duplication deconstructing the frame pointer. Simplify
251 deallocation of the local stack frame.
253 * reg-notes.def (CFA_EXPRESSION): New.
254 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
255 (dwarf2out_frame_debug_cfa_expression): New.
256 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
258 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
259 * config/i386/i386.c (ix86_expand_prologue): Set it.
260 (ix86_expand_epilogue): Clear it.
261 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
262 context, add REG_CFA_EXPRESSION notes.
264 * config/i386/i386.h (struct machine_frame_state): Rename from
265 machine_cfa_state. Add members tracking SP and FP regardless
266 of the current CFA register.
267 (ix86_cfa_state): Remove.
268 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
269 and sse_reg_save_offset members.
270 (ix86_compute_frame_layout): Set them.
271 (gen_push): Increment sp_offset too.
272 (choose_baseaddr_len, choose_baseaddr): New.
273 (ix86_emit_save_reg_using_mov): New.
274 (ix86_emit_save_regs_using_mov): Use it.
275 (ix86_emit_save_sse_regs_using_mov): Likewise.
276 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
277 compare vs the saved red_zone_offset.
278 (pro_epilogue_adjust_stack): Adjust sp_offset.
279 (ix86_adjust_stack_and_probe): Likewise.
280 (ix86_expand_prologue): Set up, use, and validate the new
281 frame_state_info members. Use gen_frame_mem.
282 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
283 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
284 new frame_state_info members.
285 (ix86_emit_leave): Likewise.
286 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
287 out-of-range stack pointer offsets here.
288 (ix86_emit_restore_sse_regs_using_mov): Likewise.
289 (ix86_expand_epilogue): Use and validate the new frame_state_info
290 members. Break up and simplify the logic selecting the
291 restore_regs_via_mov code path. Ensure that there will be no
292 out-of-range stack pointer offsets.
294 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
296 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
297 argument name to reflect the expected tree; fix indentation.
298 (ix86_asm_output_function_label): Output the entire 32-bit
299 ms_hook here as bytes ...
300 (ix86_expand_prologue): ... not here as insns. Attach the
301 unwind info for the ms_hook to a blockage insn.
302 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
303 (ix86_ms_bitfield_layout_p): Fix indentation.
304 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
306 * config/i386/i386.c (ix86_using_red_zone): New.
307 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
308 ix86_expand_prologue, ix86_force_to_memory): Use it.
310 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
311 saving the int registers.
313 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
314 and DWARF2_UNWIND_INFO conditional compilation.
316 2010-08-04 Richard Henderson <rth@redhat.com>
319 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
320 an is_naming_typedef_decl.
322 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
324 PR rtl-optimization/45162
325 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
326 * dce.c (word_dce_process_block): Likewise.
328 2010-08-04 Steve Ellcey <sje@cup.hp.com>
331 * config/ia64/constraints.md (Z): New.
332 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
333 (xfreg_or_signed_fp01_operand): New.
334 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
335 with fr_reg_or_signed_fp01_operand and constraint G with Z.
340 (adddf3_trunc): Ditto.
342 (*subdf3_trunc): Ditto.
344 (*madddf4_trunc): Ditto.
346 (*msubdf4_trunc): Ditto.
347 (addxf3): Replace xfreg_or_fp01_operand with
348 xfreg_or_signed_fp01_operand and constraint G with Z.
349 (*addxf3_truncsf): Ditto.
350 (*addxf3_truncdf): Ditto.
352 (*subxf3_truncsf): Ditto.
353 (*subxf3_truncdf): Ditto.
355 (*maddxf4_truncsf): Ditto.
356 (*maddxf4_truncdf): Ditto.
358 (*msubxf4_truncsf): Ditto.
359 (*msubxf4_truncdf): Ditto.
361 2010-08-04 Richard Guenther <rguenther@suse.de>
363 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
364 if either alias-set is zero.
366 2010-08-04 Richard Guenther <rguenther@suse.de>
368 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
369 * tree-ssa-ccp.c: ... here.
370 * tree-ssa-copy.c: ... and here.
371 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
372 value_range_t): Move ...
373 * tree-vrp.c: ... here.
374 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
375 (substitute_and_fold): Adjust prototype.
376 * tree-ssa-propagate.c (replace_uses_in): Adjust.
377 (replace_phi_args_in): Likewise.
378 (substitute_and_fold): Take callback to query lattice instead
379 of pointer to lattice. Replace SSA name defs with lattice
381 * tree-ssa-ccp.c (ccp_finalize): Adjust.
382 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
383 (get_value): New function.
384 (fini_copy_prop): Adjust.
385 * tree-vrp.c (vrp_finalize): Adjust.
387 2010-08-04 Richard Guenther <rguenther@suse.de>
390 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
391 points-to set for original MEM_REF.
393 2010-08-04 Richard Guenther <rguenther@suse.de>
395 * tree-ssa-ccp.c (get_constant_value): New function.
396 (get_rhs_assign_op_for_ccp): Remove.
397 (valueize_op): New function.
398 (ccp_fold): Use get_constant_value and valueize_op.
399 (fold_const_aggregate_ref): Likewise.
400 (ccp_fold_stmt): Likewise.
401 (visit_assignment): Simplify.
403 2010-08-04 Richard Guenther <rguenther@suse.de>
405 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
406 * double-int.h (double_int_ctz): Declare.
407 * double-int.c (double_int_ctz): New function.
409 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
411 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
413 picochip_expand_movmemhi : Expand movmem pattern.
414 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
416 * config/picochip/picochip.md (movmemhi) : New pattern.
418 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
420 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
422 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
424 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
425 NEG as operand of a MULT by merging it with the other operand.
426 * combine.c (make_compound_operation): Use trunc_int_for_mode when
427 generating a MULT with constant. Canonicalize PLUS and MINUS involving
429 * config/arm/constraints.md (M): Examine only 32 bits of a
431 * config/arm/predicates.md (power_of_two_operand): Likewise.
433 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
435 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
438 2010-08-03 Jan Hubicka <jh@suse.cz>
440 * ipa-split.c (struct split_point): Add split_part_set_retval.
441 (find_retval): Forward declare.
442 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
443 (consider_split): Compute current->split_part_set_retval.
444 (visit_bb): Do not look into return value.
445 (split_function): Handle !split_part_set_retval
447 2010-08-03 Martin Jambor <mjambor@suse.cz>
449 * tree-sra.c (completely_scalarize_record): New parameter REF, create
450 its own access->expr intead of using build_ref_for_offset.
452 2010-08-03 Joseph Myers <joseph@codesourcery.com>
454 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
455 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
456 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
457 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
458 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
459 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
460 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
461 DEFAULT_SWITCH_TAKES_ARG.
462 * config/rx/rx.opt (-patch=): Remove option.
463 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
464 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
465 * doc/invoke.texi (RX Options): Remove -patch=.
466 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
467 (option_map): Remove --profile-blocks, --quiet and --silent.
469 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
471 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
472 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
473 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
474 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
475 Update calls to ix86_expand_compare and ix86_expand_branch.
476 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
478 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
479 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
481 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
482 and ix86_compare_op1. Update calls to ix86_expand_compare.
483 (ix86_expand_int_movcc): Ditto.
484 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
485 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
486 (ix86_expand_setcc): Ditto.
487 (ix86_expand_compare): Remove prototype.
488 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
489 ix86_compare_op0 and ix86_compare_op1. Update calls
490 to ix86_expand_branch to directly pass operands[1] and operands[2].
492 (cbranch<MODEF:mode>4): Ditto.
494 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
495 Update calls to ix86_expand_setcc to directly pass operands[2] and
498 (cstore<MODEF:mode>4): Ditto.
501 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
504 * caller-save.c (save_call_clobbered_regs): Remove regs from
505 hard_regs_saved when they are set.
507 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
510 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
513 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
515 * common.opt (ftree-loop-distribute-patterns): New.
516 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
517 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
519 * tree-data-ref.c (stores_zero_from_loop): New.
520 * tree-data-ref.h (stores_zero_from_loop): Declared.
521 * tree-loop-distribution.c (tree_loop_distribution): Call
522 stores_zero_from_loop.
523 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
525 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
527 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
530 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
531 * config/arm/arm.c (thumb1_code): New variable.
532 (arm_override_options): Set it.
533 (thumb1_final_prescan_insn): Keep track of condition code status.
534 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
535 jumps that depend on them.
536 * config/arm/arm.h (thumb1_code): Declare variable.
537 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
538 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
540 (CC_STATUS_INIT): New macro.
541 * config/arm/constraints.md (Pd): New constraint.
542 * config/arm/predicates.md (noov_comparison_operator): New predicate.
543 * config/arm/arm.md (is_thumb1): New define_attr.
544 (conds): Set default to "clob" when generating Thumb1 code.
545 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
546 code are set. Use two-operand assembly syntax.
547 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
549 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
550 codes are set. Use two-operand assembly syntax.
551 (zero_extendhisi splitter): Remove constraints.
552 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
553 thumb1_movsf_insn): Set conds attribute as appropriate.
554 (cbranchsi4_insn): Use condition code status from struct
555 machine_function to determine whether the comparison can be eliminated.
556 Discourage the alternative using high registers.
557 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
558 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
559 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
560 subsi3_cbranch): Delete.
561 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
562 one subtract and one cbranch insn.
564 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
565 thumb2_movdf_soft_insn): Delete patterns.
566 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
567 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
568 (pool_range, neg_pool_range): Use them to define defaults.
569 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
570 and allow for TARGET_32BIT.
573 * config/arm/arm.h (arm_regs_in_sequence): Declare.
574 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
575 load_multiple_sequence, store_multiple_sequence): Delete
577 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
579 * config/arm/ldmstm.md: New file.
580 * config/arm/arm.c (arm_regs_in_sequence): New array.
581 (load_multiple_sequence): Now static. New args SAVED_ORDER,
582 CHECK_REGS. All callers changed.
583 If SAVED_ORDER is nonnull, copy the computed order into it.
584 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
585 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
586 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
587 If SAVED_ORDER is nonnull, copy the computed order into it.
588 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
589 like REGS. Handle Thumb mode.
590 (arm_gen_load_multiple_1): New function, broken out of
591 arm_gen_load_multiple.
592 (arm_gen_store_multiple_1): New function, broken out of
593 arm_gen_store_multiple.
594 (arm_gen_multiple_op): New function, with code from
595 arm_gen_load_multiple and arm_gen_store_multiple moved here.
596 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
597 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
599 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
600 * config/arm/predicates.md (commutative_binary_operator): New.
601 (load_multiple_operation, store_multiple_operation): Handle more
602 variants of these patterns with different starting offsets. Handle
604 * config/arm/arm.md: Include "ldmstm.md".
605 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
606 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
607 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
609 * config/arm/ldmstm.md: New file.
610 * config/arm/arm-ldmstm.ml: New file.
612 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
613 if statement which adds extra costs to frame-related expressions.
615 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
617 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
619 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
622 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
624 (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
627 2010-08-01 Anatoly Sokolov <aesok@post.ru>
629 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
630 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
631 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
632 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
634 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
636 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
639 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
641 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
642 used in the call to optab_for_tree_code. Fix the second
643 is_widening_mult_p call. Check that both unwidened operands
646 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
648 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
650 2010-07-31 Anatoly Sokolov <aesok@post.ru>
652 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
654 2010-07-30 DJ Delorie <dj@redhat.com>
656 * config/rx/predicates.md (rx_constshift_operand): New.
657 * config/rx/rx.md (zs_cond): New.
658 (cbranchsi4): Remove mode.
659 (*cbranchsi4_<code>): Likewise.
660 (*tstbranchsi4_<code>): New.
661 (*tstbranchsi4r_<code>): New.
662 (*tstbranchsi4m_eq): New.
663 (*tstbranchsi4m_ne): New.
664 (cbranchsf4): Remove mode.
665 (*cbranchsf4_<code>): Likewise.
667 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
669 * rtlanal.c (simplify_subreg_regno): Don't treat
670 HARD_FRAME_POINTER_REGNUM specially.
672 2010-07-30 Joseph Myers <joseph@codesourcery.com>
674 * common.opt (-G): Don't define option here.
676 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
677 rs6000/powerpc and score targets.
678 * opts.c (common_handle_option): Don't handle -G here.
679 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
680 * config/frv/frv.c (frv_handle_option): Handle -G.
681 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
682 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
683 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
684 * config/mips/mips.c (mips_handle_option): Handle -G.
685 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
686 * config/score/score.c (score_handle_option): Handle -G.
688 2010-07-30 Anatoly Sokolov <aesok@post.ru>
690 * config/mmix/mmix.c: Include basic-block.h.
692 2010-07-30 Jakub Jelinek <jakub@redhat.com>
695 PR rtl-optimization/45137
696 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
698 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
700 * combine.c (next_nonnote_nondebug_insn): Removed.
701 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
702 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
703 * sched-deps.c (sched_analyze_insn): Likewise.
704 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
705 * rtlanal.c (canonicalize_condition): Likewise.
706 * postreload.c (reload_combine_recognize_pattern): Likewise.
707 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
709 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
711 * config/i386/i386.md (int_cond): Remove code iterator.
713 (cbranch<mode>4): Use ordered_comparison_operator predicate
715 (cstore<mode>4): Ditto for operator1.
716 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
717 (add<mode>cc): ditto.
719 2010-07-30 Richard Guenther <rguenther@suse.de>
722 * expr.c (expand_expr_real_1): Check for not handled base address.
724 2010-07-30 Richard Guenther <rguenther@suse.de>
726 * ipa-prop.c (ipa_modify_formal_parameters): Use
727 build_distinct_type_copy.
729 2010-07-30 Anthony Green <green@moxielogic.com>
731 * config/moxie/rtems.h: New file.
732 * config.gcc: Add moxie-rtems support.
734 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
736 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
737 df flags as in run_fast_df_dce.
739 2010-07-29 Jakub Jelinek <jakub@redhat.com>
742 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
744 * rtl.def (NOTE): Swap operands 4 and 5.
745 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
746 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
748 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
750 2010-07-29 Jakub Jelinek <jakub@redhat.com>
753 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
754 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
755 (gen_subprogram_die): Likewise. Remove it when removing declaration's
757 (gen_decl_die): Change return type to dw_die_ref, return what
758 gen_formal_parameter_die returned.
760 2010-07-29 Martin Jambor <mjambor@suse.cz>
762 * dbgcnt.def (eipa_sra): New counter.
763 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
765 2010-07-29 Xinliang David Li <davidxl@google.com>
768 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
771 2010-07-29 Richard Guenther <rguenther@suse.de>
773 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
774 (TV_TREE_STORE_CCP): Likewise.
775 (TV_TREE_REDPHI): Likewise.
777 2010-07-29 Richard Guenther <rguenther@suse.de>
779 * double-int.h (double_int_and_not): New function.
780 * combine.c (try_combine): Use it.
781 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
783 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
785 PR rtl-optimization/42575
786 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
787 Argument AU removed. All callers changed. Ignore artificial refs.
788 Use return value of df_word_lr_simulate_defs to decide whether an insn
790 (fast_dce): Rename arg to WORD_LEVEL.
791 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
793 (pass_fast_rtl_byte_dce): Delete.
794 * dce.h (run_word_dce): Declare.
795 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
796 All callers changed. Simplify code to only deal with two-word regs.
797 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
798 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
799 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
800 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
801 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
802 (df_word_lr_mark_ref): Declare.
803 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
804 df_word_lr_simulate_uses): Declare or rename from byte variants.
805 (df_byte_lr_simulate_artificial_refs_at_top,
806 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
807 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
809 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
810 (enum df_mm): Delete.
811 * df-byte-scan.c: Delete file.
812 * df-problems.c (df_word_lr_problem_data): Renamed from
813 df_byte_lr_problem_data, all members deleted except for
814 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
815 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
816 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
817 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
818 df_byte_lr_confluence_0): Delete functions.
819 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
821 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
822 Don't initialize members that were deleted, don't try to discover data
823 about registers. Ignore hard regs.
824 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
825 (df_word_lr_mark_ref): New function.
826 (df_word_lr_bb_local_compute): Renamed from
827 df_byte_bb_lr_local_compute; all callers changed. Use
828 df_word_lr_mark_ref. Assert that artificial refs don't include
829 pseudos. Ignore hard registers.
830 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
831 Assert that exit block uses don't contain pseudos.
832 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
833 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
834 callers changed. Ignore hard regs.
835 (df_word_lr_transfer_function): Renamed from
836 df_byte_lr_transfer_function; all callers changed.
837 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
838 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
840 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
842 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
843 confluence operator 0 set to NULL.
844 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
846 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
847 Return bool, true if bitmap changed or insn otherwise necessary.
848 All callers changed. Simplify using df_word_lr_mark_ref.
849 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
850 all callers changed. Simplify using df_word_lr_mark_ref.
851 * lower-subreg.c: Include "dce.h"
852 (decompose_multiword_subregs): Call run_word_dce if df available.
853 * Makefile.in (lower-subreg.o): Adjust dependencies.
854 (df-byte-scan.o): Delete.
855 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
857 2010-07-29 Richard Guenther <rguenther@suse.de>
859 * tree.c (build_vector): Assert that the vector constant
861 (build_vector_from_ctor): Pad with trailing zeros.
863 2010-07-29 Richard Guenther <rguenther@suse.de>
865 PR tree-optimization/45120
866 * tree-ssa-structalias.c (get_constraint_for_component_ref):
867 Handle offset in DEREFs properly.
868 (get_constraint_for_1): Handle MEM_REF offset properly.
870 2010-07-29 Richard Guenther <rguenther@suse.de>
873 * convert.c (convert_to_integer): Always use an unsigned
874 type for narrowed negate and bitwise not.
876 2010-07-29 Ira Rosen <irar@il.ibm.com>
878 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
879 to outer loop when creating reduction epilogue for double reduction,
880 and switch back to the inner loop when updating the phi nodes.
881 Update uses of outer loop exit phi nodes in double reduction (instead
882 of uses of reduction).
884 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
886 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
887 popcount on power7 and parity on power6 systems.
888 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
889 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
892 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
893 (UNSPEC_PARITY): Ditto.
894 (SFDF): New iterator for SF/DF.
895 (rreg2): New mode attribute for floating register constraint.
896 (TARGET_FLOAT): New mode attribute for whether single/double float
898 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
900 (parity<mode>2_cmpb): New insn for parity on power6 and newer
902 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
903 pattern. Add support for fcpsgn instruction added in power6.
904 (copysignsf3): Delete.
905 (copysigndf3): Delete.
906 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
907 instead of if_then_else in RTL to avoid problems with -0.
909 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
910 of if_then_else to mirror scalar code.
911 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
914 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
915 instead of if_then_else.
917 2010-07-28 Xinliang David Li <davidxl@google.com>
919 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
920 (dump_cand): Dump var_before/after.
921 (htab_inv_expr_eq): New function.
922 (htab_inv_expr_hash): New function.
923 (tree_ssa_iv_optimize_init): Support pseudo invariants.
924 (add_candidate_1): consider base type precision.
925 (set_use_iv_cost): New parameter.
926 (adjust_setup_cost): Use profile information.
927 (get_address_cost): Do not hard code width in computing address
929 (compare_aff_trees): New function.
930 (get_loop_invariant_expr_id): New function.
931 (get_computation_cost_at): New parameter and use profile information.
932 (get_computation_cost): New parameter.
933 (determine_use_iv_cost_generic): Pass new parameter.
934 (determine_use_iv_cost_address): Ditto.
935 (determine_use_iv_cost_condition): Ditto.
936 (autoinc_possible_for_pair): Ditto.
937 (determine_use_iv_costs): More dumps.
938 (iv_ca_get_num_inv_exprs): New function.
939 (iv_ca_recount_cost): Consider loop invariants in register pressure
941 (iv_ca_add_use): New parameter.
942 (iv_ca_dump): Better dumping.
943 (iv_ca_extend): New parameter.
944 (try_add_cand_for): Attempt to get better partial solution.
945 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
946 (create_new-ivs): More dumps.
947 (rewrite_use_compare): Ditto.
948 (free_loop_data): More cleanup.
949 (treee_ssa_iv_optimize_finalize): Ditto.
951 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
953 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
954 * config/i386/i386.c (ix86_profile_before_prologue): New.
955 (override_options): Add special handling for -mfentry.
956 (ix86_function_regparm): Likewise.
957 (ix86_function_sseregparm): Likewise.
958 (ix86_frame_pointer_required): Likewise.
959 (ix86_expand_prologue): Check for ms_hook_prologue.
960 (x86_function_profiler): Adjust mcount output.
961 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
962 * config/i386/i386.opt (mfentry): New.
963 * doc/invoke.texi (mfentry): Add documentation.
964 * doc/tm.texi: Regenerated..
965 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
966 * final.c (final_start_function): Replace macro
967 PROFILE_BEFORE_PROLOGUE by target hook.
968 * function.c (thread_prologue_and_epilogue_insns): Likewise.
969 * target.def (profile_before_prologue): New hook.
970 * targhooks.c (default_profile_before_prologue): New.
971 * targhooks.h (default_profile_before_prologue): New.
973 2010-07-28 Jakub Jelinek <jakub@redhat.com>
976 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
979 * dwarf2out.c (dwarf2out_var_location): Always consider
980 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
982 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
984 PR rtl-optimization/45107
985 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
987 2010-07-28 Richard Guenther <rguenther@suse.de>
989 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
990 (set_lattice_value): Do not query an old default value.
991 (get_value_for_expr): New function. Properly canonicalize
993 (ccp_visit_phi_node): Use it.
995 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
997 * config/arm/arm.c (arm_pcs_default): Remove static.
998 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
999 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
1000 (arm_pcs_default): Declare.
1002 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
1004 * config/rs6000/rs6000.c (rs6000_override_options):
1005 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
1006 ... to darwin_rs6000_override_options.
1007 (rs6000_return_in_memory): Update preceding comment for darwin
1008 64 bit ABI. Use TARGET_MACHO inline.
1009 (rs6000_darwin64_struct_check_p): New.
1010 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
1011 (function_arg): Likewise.
1012 (rs6000_arg_partial_bytes): Likewise.
1013 (rs6000_function_value): Likewise.
1015 2010-07-28 Andi Kleen <ak@linux.intel.com>
1017 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
1019 2010-07-28 Richard Guenther <rguenther@suse.de>
1022 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
1023 targets try harder to not generate unaligned accesses.
1025 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
1027 PR rtl-optimization/45101
1028 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
1031 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
1033 PR tree-optimization/44885
1034 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
1035 with non-aliased component.
1037 2010-07-28 Joseph Myers <joseph@codesourcery.com>
1039 * config/darwin-driver.c (SWITCH_TAKES_ARG,
1040 WORD_SWITCH_TAKES_ARG): Remove.
1041 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1042 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
1043 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
1044 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
1045 definitions from gcc.c.
1046 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
1048 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
1050 * opts-common.c: Include tm.h.
1051 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
1052 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
1053 Handle more than one argument. Set canonical_option_num_elements.
1054 (decode_cmdline_options_to_array): Set
1055 canonical_option_num_elements and trailing elements of
1057 * opts.h (struct cl_decoded_option): Allow four elements in
1058 canonical_option. Add field canonical_option_num_elements.
1059 * Makefile.in (opts-common.o): Update dependencies.
1061 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
1065 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
1066 sure the base has address_mode before adding the offset.
1068 2010-07-27 Xinliang David Li <davidxl@google.com>
1070 * tree-flow.h (create_mem_ref): Add one new parameter.
1071 * tree-ssa-address.c (create_mem_ref): New parameter.
1072 (addr_to_parts): Ditto.
1073 (move_variant_to_index): New function.
1074 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
1076 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1078 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
1080 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
1081 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
1082 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
1083 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
1084 CODE_LABELs and NOTEs.
1085 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
1086 * combine.c (try_combine): Likewise.
1087 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1088 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
1090 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1092 * coretypes.h (struct cl_option_handlers): Declare.
1093 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
1094 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
1095 * langhooks-def.h (lhd_handle_option): Declare.
1096 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
1097 * langhooks.c (lhd_handle_option): New.
1098 * langhooks.h (struct lang_hooks): Update prototype and return
1099 value type of handle_option hook.
1100 * optc-gen.awk: Generate target_flags_explicit definition for the
1102 * opts-common.c: Include diagnostic.h.
1103 (handle_option): Move from opts.c. Update prototype and return
1104 value type. Use handlers structure.
1105 (read_cmdline_option): Move from opts.c. Update prototype. Use
1107 (set_option): Move from opts.c.
1108 * opts.c (common_handle_option): Update prototype and return value
1109 type. Update calls to handle_option and enable_warning_as_error.
1110 (unknown_option_callback, post_handling_callback,
1111 lang_handle_option, target_handle_option): New.
1112 (handle_option, read_cmdline_option): Move to opts-common.c.
1113 (read_cmdline_options): Update prototype. Update call to
1114 read_cmdline_option.
1115 (decode_options): Initialize and use handlers structure.
1116 (set_option): Move to opts-common.c.
1117 (enable_warning_as_error): Update prototype. Update call to
1119 * opts.h (struct cl_option_handler_func, struct
1120 cl_option_handlers): New.
1121 (handle_option, enable_warning_as_error): Update prototypes.
1122 (read_cmdline_option): Declare.
1123 * Makefile.in (opts-common.o): Update dependencies.
1125 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1127 * config/arm/arm.c (params.h): Include.
1128 (arm_override_options): Tune gcse-unrestricted-cost.
1129 * config/arm/t-arm (arm.o): Define dependencies.
1131 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1135 * basic-block.h (get_dominated_to_depth): Declare.
1136 * dominance.c (get_dominated_to_depth): New function, use
1137 get_all_dominated_blocks as a base.
1138 (get_all_dominated_blocks): Use get_dominated_to_depth.
1140 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
1141 (hoist_exprs): Remove.
1142 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
1143 (compute_code_hoist_vbeinout): Add debug print outs.
1144 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
1146 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
1148 * params.h (MAX_HOIST_DEPTH): New macro.
1149 * doc/invoke.texi (max-hoist-depth): Document.
1151 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1153 PR rtl-optimization/40956
1154 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
1157 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1161 * config/arm/arm.c (legitimize_pic_address): Use
1162 gen_calculate_pic_address pattern to emit calculation of PIC address.
1163 (will_be_in_index_register): New function.
1164 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
1165 (thumb1_legitimate_address_p): Use it provided !strict_p.
1166 * config/arm/arm.md (calculate_pic_address): New expand and split.
1168 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1172 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
1173 * config/arm/arm.md (define_split "J", define_split "K"): Make
1174 IRA/reload friendly.
1176 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1178 * gcse.c (insert_insn_end_basic_block): Update signature, remove
1180 (pre_edge_insert, hoist_code): Update.
1182 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1186 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
1188 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1190 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
1192 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1194 PR rtl-optimization/40956
1197 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
1199 (hoist_code): Count occurences in current block too.
1201 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1203 * gcse.c (struct expr:max_distance): New field.
1204 (doing_code_hoisting_p): New static variable.
1205 (want_to_gcse_p): Change signature. Allow constrained hoisting of
1206 simple expressions, don't change behavior for PRE. Set max_distance.
1207 (insert_expr_in_table): Set new max_distance field.
1208 (hash_scan_set): Update.
1209 (hoist_expr_reaches_here_p): Stop search after max_distance
1211 (find_occr_in_bb): New static function. Use it in ...
1212 (hoist_code): Calculate sizes of basic block before any changes are
1213 done. Pass max_distance to hoist_expr_reaches_here_p.
1214 (one_code_hoisting_pass): Set doing_code_hoisting_p.
1216 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
1217 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
1218 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
1220 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
1223 2010-07-27 Jeff Law <law@redhat.com>
1224 Maxim Kuvyrkov <maxim@codesourcery.com>
1226 * gcse.c (compute_transpout, transpout): Remove, move logic
1227 to prune_expressions.
1228 (compute_pre_data): Move pruning of trapping expressions ...
1229 (prune_expressions): ... here. New static function.
1230 (compute_code_hoist_data): Use it.
1231 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
1233 2010-07-27 Xinliang David Li <davidxl@google.com>
1235 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
1236 (rewrite_use_address): Adjust iv update position when needed.
1238 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1240 * dbgcnt.def (hoist_insn): New debug counter.
1241 * gcse.c (hoist_code): Use it.
1243 2010-07-27 Xinliang David Li <davidxl@google.com>
1245 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
1246 (niter_for_single_dom_exit): Passes additional parameter.
1247 (iv_period): Fix comments.
1248 (may_eliminate_iv): Handles multiple exit loops properly.
1249 (free_tree_niter_desc): New function.
1250 (free_loop_data): Frees up loop iteration descriptors.
1252 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1255 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
1256 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
1257 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
1258 (expand_one_var): Don't consider DECL_ALIGN for variables for
1259 which expand_one_stack_var_at has been already called.
1262 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
1263 constraints on IA-64.
1265 2010-07-27 Jie Zhang <jie@codesourcery.com>
1269 2010-07-23 Jie Zhang <jie@codesourcery.com>
1271 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1272 false if ! tree_versionable_function_p.
1274 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1276 * dwarf2out.c (add_data_member_location_attribute): Use
1277 add_AT_unsigned instead of add_AT_int if offset is non-negative.
1279 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1281 * postreload.c (try_replace_in_use): New static function.
1282 (reload_combine_recognize_const_pattern): Use it here. Allow
1283 substituting into a final add insn, and substituting into a memory
1284 reference in an insn that sets the reg.
1286 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1288 * common.opt (o): Add MissingArgError.
1289 * doc/options.texi (MissingArgError): Document.
1290 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
1291 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
1292 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1293 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
1294 * langhooks.h (struct lang_hooks): Remove missing_argument.
1295 * optc-gen.awk: Handle MissingArgError and output new structure
1297 * opts.c (read_cmdline_option): Use missing_argument_error field
1298 instead of missing_argument langhook.
1299 * opts.h (struct cl_option): Add missing_argument_error field.
1300 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
1302 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
1305 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
1306 Darwin64 ABI, for zero-sized objects.
1308 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
1313 Merge from Apple local 4.2.1.
1314 2005-05-11 Stan Shebs <shebs@apple.com>
1315 Fix 64-bit varargs for Darwin (Radar 4028089).
1316 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
1317 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1318 Add argument, add case for 8-byte register half-filled with a float.
1319 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
1320 single-precision floats specially.
1322 2010-07-27 Ira Rosen <irar@il.ibm.com>
1324 PR tree-optimization/44152
1325 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
1326 complex numbers for further check.
1327 (vect_supported_load_permutation_p): Check nodes with
1330 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1332 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
1333 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
1334 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
1335 (LANG_HOOKS_INITIALIZER): Add new hooks.
1336 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
1337 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
1338 and complain_wrong_lang_p. Update init_options prototype.
1339 * c-objc-common.c (c_initialize_diagnostics): First call
1340 c_common_initialize_diagnostics.
1341 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
1342 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
1343 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
1344 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
1345 (hook_uint_void_0): New.
1346 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
1347 (hook_uint_void_0): New.
1348 * opts-common.c (decode_cmdline_option,
1349 decode_cmdline_options_to_array): Also fill in canonical_option field.
1350 * opts.c (complain_wrong_lang): Use langhook to determine whether
1351 to complain instead of special-casing LTO.
1352 (decode_options): Separate lang_mask determination with
1353 option_lang_mask hook from call of init_options hook.
1354 * opts.h (struct cl_decoded_option): Add canonical_option.
1356 2010-07-27 Jakub Jelinek <jakub@redhat.com>
1358 PR tree-optimization/45083
1359 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
1361 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
1363 * postreload.c (reload_combine_recognize_const_pattern): Move test
1364 for limiting the insn movement to the right scope.
1366 PR rtl-optimization/45051
1367 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
1368 than reg_mentioned_p.
1370 2010-07-26 Richard Henderson <rth@redhat.com>
1373 * tree-emutls.c: New file.
1374 * Makefile.in (OBJS-common): Add it.
1375 * tree-pass.h (pass_ipa_lower_emutls): Declare.
1376 * passes.c (init_optimization_passes): Add it.
1378 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
1379 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
1380 * expr.c (emutls_var_address): Delete.
1381 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
1382 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
1383 (emutls_finish): Delete.
1384 * toplev.c (compile_file): Don't call it.
1385 * tree.h (emutls_decl): Delete.
1386 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
1387 (emutls_finish, emutls_finalize_control_var): Delete.
1388 (emutls_object_type): Move to tree-emutls.c.
1389 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
1390 default_emutls_var_fields, get_emutls_object_type,
1391 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
1392 default_emutls_var_init): Likewise.
1393 (get_variable_section): Don't special case emutls.
1394 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
1395 default_elf_select_section, default_unique_section,
1396 default_encode_section_info): Likewise.
1397 * varpool.c (decide_is_variable_needed): Likewise.
1398 * gimple-iterator.c (update_call_edge_frequencies): New
1399 (gsi_insert_on_edge_immediate): Use it.
1400 (gsi_insert_seq_on_edge_immediate): Likewise.
1401 (gsi_commit_one_edge_insert): Likewise.
1403 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
1404 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
1405 (x86_64_elf_unique_section): Likewise.
1407 2010-07-26 Jan Hubicka <jh@suse.cz>
1409 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
1412 2010-07-26 Anatoly Sokolov <aesok@post.ru>
1414 * target.def (output_source_filename): New hook.
1415 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
1416 * doc/tm.texi: Regenerate.
1417 * toplev.c (output_file_directive) Remove function.
1418 * toplev.h (output_file_directive) Remove.
1419 * output.h (default_asm_output_source_filename,
1420 output_file_directive): Declare.
1421 * varasm.h (default_asm_output_source_filename,
1422 output_file_directive): New functions.
1424 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1425 * config/mips/mips-protos.h (mips_output_filename): Remove.
1426 * config/mips/mips.c (mips_output_filename): Make Static.
1427 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1429 2010-07-26 Richard Guenther <rguenther@suse.de>
1431 PR tree-optimization/43784
1432 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
1433 if the destination is used by the call.
1435 2010-07-26 Richard Guenther <rguenther@suse.de>
1438 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
1439 SSA updating on being in SSA form.
1441 2010-07-26 Richard Guenther <rguenther@suse.de>
1444 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
1446 2010-07-26 Richard Guenther <rguenther@suse.de>
1448 PR tree-optimization/45071
1449 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
1452 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
1454 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
1455 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
1456 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
1457 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
1458 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
1459 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
1460 save_r31, return_r31, save_interrupt, return_interrupt,
1461 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
1462 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
1463 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
1464 new ABI requirements.
1465 (save_r6_r9, L_callt_save_r6_r9): Remove.
1466 * config/v850/predicates.md (even_reg_operand, disp23_operand,
1467 const_float_1_operand const_float_0_operand): New Predicates.
1468 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
1469 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
1470 * config/v850/t-v850: Update multilibs for new target variants.
1471 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
1472 * config/v850/t-v850e: Likewise.
1473 * config/v850/v850.c (v850_issue_rate): New.
1474 (v850_strict_argument_naming): New.
1475 (function_arg): Modify to generate a different ABI.
1476 (print_operand): Update case 'z' to support float modes.
1477 (output_move_single): Modify to generate appropriate and better
1479 (v850_float_z_comparison_operator, v850_select_cc_mode,
1480 v850_float_nz_comparison_operator, v850_gen_float_compare,
1481 v850_gen_compare): New functions to support comparison of float values.
1482 (ep_memory_offset): Add support for V850E2 targets.
1483 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
1484 (INTERRUPT_REGPARM_NUM): Remove.
1485 (compute_register_save_size): Add extra case to save/restore long call.
1486 (use_prolog_function): New function to support prologue.
1487 (expand_prologue): Add support for V850E2 targets and modified
1488 as per the current ABI requirements.
1489 (expand_epilogue): Likewise.
1490 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
1491 (construct_save_jarl): Likewise.
1492 (construct_dispose_instruction): Update as per the current ABI
1494 (construct_prepare_instruction): Likewise.
1495 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
1496 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
1497 (CPP_SPEC): Updated to support v850e2 targets.
1498 (STRICT_ALIGNMENT): Modified.
1499 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
1500 (FIXED_REGISTERS): Likewise.
1501 (CALL_USED_REGISTERS): Likewise.
1502 (CONDITIONAL_REGISTER_USAGE): Updated.
1503 (HARD_REGNO_MODE_OK): Updated.
1504 (reg_class): Updated to add even registers.
1505 (REG_CLASS_NAMES): Likewise.
1506 (REG_CLASS_CONTENTS): Likewise.
1507 (REGNO_REG_CLASS): Updated for CC registers.
1508 (REG_CLASS_FROM_LETTER): Added support for even registers.
1509 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
1510 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
1511 ARG_POINTER_REGNUM): Updated.
1512 (FUNCTION_ARG_ADVANCE): Define.
1513 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
1514 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
1515 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
1516 (GO_IF_LEGITIMATE_ADDRESS): Updated.
1517 (SELECT_CC_MODE): Define.
1518 (REGISTER_NAMES): Updated to add psw and fcc registers.
1519 (ADDITIONAL_REGISTER_NAMES): Updated.
1520 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
1521 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
1522 * config/v850/v850.md (define_constants): Define new constants.
1523 (type): Update store,bit1,macc,div,fpu and single attributes.
1524 (cpu): New attribute.
1525 (cc): Add set_z attribute.
1526 (unsign23byte_load, sign23byte_load, unsign23hword_load,
1527 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
1528 23word_store): New instructions for 23-bit displacement load and store.
1529 (movqi_internal, movhi_internal): Update the attributes.
1530 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
1531 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
1533 (v850_tst1): Modified using CC_REGNUM.
1535 (cmpsi): Modified as define_expand from define_insn.
1536 (cmpsi_insn, cmpsf, cmpdf): New instructions.
1537 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
1538 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
1539 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
1540 one_cmplsi2): Clobber the CC_REGNUM register.
1541 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
1542 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
1543 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
1544 (setf_insn, set_z_insn, set_nz_insn): New instructions for
1546 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
1547 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
1549 (sasf_1, sasf_2): Remove.
1550 (sasf): New instruction.
1551 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
1552 targets. CC_REGNUM register is clobbered and attributes are
1554 (branch_z_normal, branch_z_invert, branch_nz_normal,
1555 branch_nz_invert): New branch related instructions.
1556 (jump): Updated the attributes.
1557 (switch): Update to support new targets. CC_REGNUM register is
1558 clobbered and attributes are updated.
1559 (call_internal_short, call_internal_long, call_value_internal_short,
1560 call_value_internal_long): Updated the attributes.
1561 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
1562 clobbered and attributes are updated.
1563 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
1564 Update to support new targets. CC_REGNUM register is clobbered.
1565 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
1567 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
1569 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
1570 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
1571 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
1572 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
1573 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
1574 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
1575 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
1576 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
1577 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
1578 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
1579 point instructions defined for V850e2v3 target.
1580 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
1581 Add support for V850E2 targets and CC_REGNUM register is clobbered.
1582 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
1583 support for new targets.
1584 * config/v850/v850-modes.def: New file.
1585 * config/v850/v850.opt(mstrict-align): Remove.
1586 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
1587 mv850e2v3): New command line options for V850.
1588 * config.gcc: Update the newly added files.
1589 * doc/invoke.texi: Update the newly added command line options for
1592 2010-07-26 Richard Guenther <rguenther@suse.de>
1594 PR tree-optimization/45052
1595 * ipa-pure-const.c (check_stmt): Check volatileness.
1597 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
1600 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
1601 * config/sparc/sparc.c: Include reload.h.
1602 (legitimize_tls_address): Rename into...
1603 (sparc_legitimize_tls_address): ...this.
1604 (legitimize_pic_address): Rename into...
1605 (sparc_legitimize_pic_address): ...this.
1606 (sparc_expand_move): Adjust to above renaming.
1607 (sparc_tls_referenced_p): Likewise.
1608 (sparc_legitimize_tls_address): Likewise.
1609 (sparc_legitimize_pic_address): Likewise.
1610 (sparc_legitimize_address): Likewise.
1611 (sparc_output_mi_thunk): Likewise.
1612 (sparc_legitimize_reload_address): New global function. Recognize
1613 (lo_sum (high ...) ...) patterns generated by earlier passes.
1614 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1616 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
1619 * config/sparc/predicates.md (memory_reg_operand): Delete.
1620 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1621 (*sync_compare_and_swap): Encode the address form in the pattern.
1622 (*sync_compare_and_swapdi_v8plus): Likewise.
1624 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
1626 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1627 Streamline paragraph on compatibility with the system compiler.
1629 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
1632 * alias.c (true_dependence_1): Fix thinko in merge of old
1633 true_dependence and canon_true_dependence.
1635 2010-07-23 Jan Hubicka <jh@suse.cz>
1637 * lto-streamer-out.c (write_symbol): Fix visibilities of external
1640 2010-07-23 Le-Chun Wu <lcwu@google.com>
1642 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1643 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1644 and an unnecessary assignment.
1645 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1646 self-assign warning.
1647 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1648 unnecessary self-init.
1650 2010-07-23 Richard Guenther <rguenther@suse.de>
1653 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1654 for -flto and -fwhopr.
1656 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
1659 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1660 (stmp-int-hdrs): Prefix/postfix headers by include_next.
1661 * config.gcc (user_headers_inc_next_pre): New.
1662 (user_headers_inc_next_post): Likewise.
1663 (*-w64-mingw*): Use for float.h post-fixing, and for
1664 stddef.h/stdarg.h pre-fixing by include_next.
1665 * configure.ac (user_headers_inc_next_post): New.
1666 (user_headers_inc_next_pre): New.
1667 * configure: Regenerated.
1669 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1671 * configure.ac: Don't disable TLS on Solaris 8/9 by default
1672 Set tga_func for Solaris 2/x86 resp. SPARC.
1673 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1674 (LIB_THREAD_LDFLAGS_SPEC): Define.
1675 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
1676 * configure: Regenerate.
1677 * config.in: Regenerate.
1678 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1679 -pthread, -threads, LIB_TLS_SPEC with -pthread.
1680 * doc/install.texi (Specific, *-*-solaris2*): Document use of
1681 alternate thread libraries on Solaris 8.
1682 Document TLS patch requirements.
1683 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1687 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1690 2010-07-23 Jakub Jelinek <jakub@redhat.com>
1692 * tree.h (struct tree_base): Add nameless_flag bitfield.
1693 (TYPE_NAMELESS, DECL_NAMELESS): Define.
1694 * omp-low.c (create_omp_child_function, scan_omp_parallel,
1695 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1696 DECL_ARTIFICIAL where needed.
1697 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1698 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1699 has DECL_NAMELESS set.
1701 2010-07-23 Martin Jambor <mjambor@suse.cz>
1703 PR tree-optimization/44915
1704 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1705 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1706 (analyze_function): Likewise.
1708 2010-07-23 Martin Jambor <mjambor@suse.cz>
1710 PR tree-optimization/44914
1711 * tree-sra.c (sra_modify_function_body): Return true if CFG was
1712 changed, add purging dead eh edges.
1713 (ipa_sra_modify_function_body): Return true if CFG was changed,
1714 simplify purging dead eh edges.
1715 (modify_function): Return true if CFG was changed.
1716 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1718 (ipa_early_sra): Likewise.
1720 2010-07-23 Jie Zhang <jie@codesourcery.com>
1723 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1725 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1726 false if ! tree_versionable_function_p.
1728 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
1730 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1731 * ipa-pure-const.c (special_builtlin_state): Remove
1732 BUILT_IN_ARGS_INFO case.
1733 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1734 * builtins.c (expand_builtin): Likewise.
1735 (expand_builtin_args_info): Remove.
1736 * doc/tm.texi (__builtin_args_info): Remove.
1737 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1738 * doc/tm.text.in: Likewise.
1740 2010-07-23 Richard Guenther <rguenther@suse.de>
1742 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
1743 (lto_symtab_merge_decls_2): Likewise.
1744 * tree-ssa.c (useless_type_conversion_p): Likewise.
1745 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1746 * gimple.c (gtc_visited2, gtc_ob2): Remove.
1747 (struct type_pair_d): Make same_p an array indexed by mode.
1749 (lookup_type_pair): Update initialization.
1750 (struct sccs): Adjust same_p type.
1751 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
1753 (print_gimple_types_stats): Likewise.
1754 * gimple.h (enum gtc_mode): New.
1755 (gimple_types_compatible_p): Adjust prototype.
1757 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
1759 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
1760 again after processing insn.
1762 2010-07-23 Jie Zhang <jie@codesourcery.com>
1764 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
1765 proper words when !tree_versionable_function_p.
1767 2010-07-23 Richard Guenther <rguenther@suse.de>
1769 PR tree-optimization/45037
1770 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
1772 2010-07-23 Jie Zhang <jie@codesourcery.com>
1774 * doc/extend.texi: Remove IP2K from the description of naked attribute.
1777 2010-07-10 Andi Kleen <ak@linux.intel.com>
1780 * lto-opts.c (lto_write_options): Add NULL file_data argument to
1781 lto_get_section_name.
1782 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
1783 * lto-streamer-out.c (produce_asm): Likewise.
1784 (copy_function): Likewise.
1785 (produce_symtab): Likewise.
1786 (produce_asm_for_decls): Likewise.
1787 * lto-streamer.c (lto_get_section_name): Add file_data argument.
1788 Rewrite to add random postfix to LTO sections.
1789 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
1790 (lto_get_section_name): Add file_data argument to prototype.
1792 2010-07-10 Andi Kleen <ak@linux.intel.com>
1794 * lto-section-in.c (lto_section_name): Synchronize names
1795 with lto_get_section_name.
1797 2010-07-10 Andi Kleen <ak@linux.intel.com>
1799 * lto-opts.c (lto_read_file_options): Check for missing section.
1801 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
1803 * ira.c (check_allocation): Correctly handle the case where an allocno
1804 with two objects was allocated to a single reg.
1806 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
1808 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
1809 (is_widening_mult_p): Likewise.
1810 (convert_to_widen): Use them.
1811 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
1812 well as integer ones.
1814 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
1816 * alias.c (true_dependence_1): New function, merged version of
1817 true_dependence and canon_true_dependence.
1818 (true_dependence): Simplify.
1819 (canon_true_dependence): Simplify.
1821 2010-07-22 Richard Henderson <rth@redhat.com>
1824 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
1825 of V4SFmode for the SSE saves; increase stack alignment if needed.
1826 (ix86_gimplify_va_arg): Don't increase stack alignment here.
1828 2010-07-22 Jakub Jelinek <jakub@redhat.com>
1831 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
1832 call cprop_find_used_regs again via note_uses.
1834 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1836 * alias.c (get_alias_set): Fix formatting issues.
1838 2010-07-22 Steve Ellcey <sje@cup.hp.com>
1841 * stmt.c (expand_value_return): Call promote_function_mode with
1842 a for_return argument of 2 when returning by reference.
1844 2010-07-22 Dodji Seketeli <dodji@redhat.com>
1847 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
1848 unit DIE if we can find the scope DIE.
1850 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
1852 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
1853 changed. Initialize OBJECT_SUBWORD.
1854 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
1855 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
1856 all callers changed.
1857 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
1858 (finish_allocno): Likewise.
1859 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
1860 (remove_low_level_allocnos): Likewise.
1861 (update_bad_spill_attribute): Likewise.
1862 (setup_min_max_allocno_live_range_point): Likewise.
1863 (sort_conflict_id_map): Likewise.
1864 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
1865 (ior_hard_reg_conflicts): New function.
1866 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
1867 (compress_conflict_vecs): Iterate over objects, not allocnos.
1868 (ira_add_live_range_to_object): New function.
1869 (object_range_compare_func): Renamed from allocno_range_compare_func.
1870 All callers changed.
1871 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
1872 subobjects, widen the min/max range of the lowest-order object to
1873 potentially include all other such low-order objects.
1874 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
1875 (check_allocation): Likewise. Use more fine-grained tests for register
1877 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
1879 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
1880 choices about which bits to set in each set. Don't use
1881 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
1882 using the multiple sets we computed.
1883 (push_allocno_to_stack): Iterate over allocno subobjects.
1884 (all_conflicting_hard_regs_coalesced): New static function.
1885 (setup_allocno_available_regs_num): Use it.
1886 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
1888 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
1889 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
1890 by ALLOCNO_NUM_OBJECTS.
1891 (calculate_spill_cost): Likewise.
1892 (color_pass): Express if statement in a more normal way.
1893 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
1894 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
1895 (setup_slot_coalesced_allocno_live_ranges): Likewise.
1896 (allocno_reload_assign): Likewise.
1897 (ira_reassign_pseudos): Likewise.
1898 (fast_allocation): Likewise.
1899 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1900 (print_allocno_conflicts): Likewise.
1901 (ira_build_conflicts): Likewise.
1902 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
1903 callers changed. Test subword 0 of each allocno for conflicts.
1904 (build_object_conflicts): Renamed from build_allocno_conflicts. All
1905 callers changed. Iterate over allocno subobjects.
1906 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
1907 * ira-int.h (struct ira_allocno): New member: num_objects.
1908 Rename object to objects and change it into an array.
1909 (ALLOCNO_OBJECT): Add new argument N.
1910 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
1911 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
1912 (ior_hard_reg_conflicts): Declare.
1913 (ira_add_live_range_to_object): Declare.
1914 (ira_allocno_object_iterator): New.
1915 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
1916 (FOR_EACH_ALLOCNO_OBJECT): New macro.
1917 * ira-lives.c (objects_live): Renamed from allocnos_live; all
1919 (allocnos_processed): New sparseset.
1920 (make_object_born): Renamed from make_allocno_born; take an
1921 ira_object_t argument. All callers changed.
1922 (make_object_dead): Renamed from make_allocno_dead; take an
1923 ira_object_t argument. All callers changed.
1924 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
1925 All callers changed.
1926 (mark_pseudo_regno_live): Iterate over allocno subobjects.
1927 (mark_pseudo_regno_dead): Likewise.
1928 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
1930 (mark_ref_live): Detect subword accesses and call
1931 mark_pseudo_regno_subword_live as appropriate.
1932 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
1933 (process_bb_nodes_live): Deal with object-related updates first; set
1934 and test bits in allocnos_processed to avoid computing allocno
1935 statistics more than once.
1936 (create_start_finish_chains): Iterate over objects, not allocnos.
1937 (print_object_live_ranges): New function.
1938 (print_allocno_live_ranges): Use it.
1939 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
1942 2010-07-22 Richard Guenther <rguenther@suse.de>
1945 * gimple.c (gtc_next_dfs_num): New global.
1946 (struct sccs): Make value a union, add integer same_p member.
1947 (gtc_visit): New function.
1948 (gimple_types_compatible_p_1): New function, split out from ...
1949 (gimple_types_compatible_p): ... here. Start a DFS walk here.
1950 (iterative_hash_gimple_type): Adjust for sccs change.
1952 2010-07-22 Martin Jambor <mjambor@suse.cz>
1954 PR tree-optimization/44891
1955 * tree-sra.c: Include gimple-pretty-print.h.
1956 (replace_uses_with_default_def_ssa_name): Renamed to
1957 get_repl_default_def_ssa_name, return the new SSA name instead of
1958 replacing the old one.
1959 (sra_modify_assign): Dump a message when removing a load, if the LHS
1960 is an SSA_NAME, do not do any propagation, just set the RHS to a
1961 default definition SSA NAME, type convert if necessary.
1962 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
1964 2010-07-22 Richard Guenther <rguenther@suse.de>
1966 PR tree-optimization/45017
1967 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
1968 TYPE_PRECISION of integral types in addition to size.
1970 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
1972 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
1973 when no C library is specified.
1975 2010-07-22 Martin Jambor <mjambor@suse.cz>
1977 * ipa-prop.h (struct ipa_node_params): Updated comment.
1978 (struct ipa_edge_args): Likewise.
1979 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
1981 2010-07-22 Martin Jambor <mjambor@suse.cz>
1983 * cgraphunit.c (verify_edge_count_and_frequency): New function.
1984 (verify_cgraph_node): Verify frequencies of indirect edges.
1985 * tree-inline.c (tree_function_versioning): Update frequencies of
1988 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1991 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
1992 Set *arm_rev to be predicable.
1994 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
1996 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
1997 (LINK_COMMAND_SPEC_A): New.
1999 (DSYMUTIL_SPEC): New.
2000 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
2001 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
2003 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
2005 * calls.c (load_register_parameters): Move check for zero
2006 sized items so that only the call to
2007 mem_overlaps_already_clobbered_arg_p () is protected.
2009 2010-07-22 Jan Hubicka <jh@suse.cz>
2011 * ipa-pure-const.c (varying_state): Break out from ...
2012 (get_function_state): ... here; always return varying_state
2013 when state would be NULL otherwise.
2014 (remove_node_data): Do not free varying state.
2016 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
2020 * postreload.c: Include "target.h".
2021 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
2023 (fixup_debug_insns): Don't copy the rtx.
2024 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
2025 Don't copy when replacing. Call fixup_debug_insns in the case where
2026 we merged one add with another.
2027 (reload_combine_recognize_pattern): Fail if there aren't any uses.
2028 Try harder to determine whether we're picking a valid index register.
2029 Don't set store_ruid for an insn we're going to scan in the
2031 (reload_combine): Remove unused code.
2032 (reload_combine_note_use): When updating use information for
2033 an old insn, ignore a use that occurs after store_ruid.
2034 * Makefile.in (postreload.o): Update dependencies.
2036 * function.c (record_hard_reg_sets): Restrict the previous change
2037 to cases where the incoming nominal mode is the same as the
2038 incoming promoted mode and everything happens in MODE_INT.
2040 2010-07-21 Jakub Jelinek <jakub@redhat.com>
2043 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
2044 ASM_OPERANDS_OUTPUT_IDX.
2045 (adjust_insn): For inline asm with multiple sets ensure first
2046 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
2049 2010-07-21 Richard Henderson <rth@redhat.com>
2051 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
2052 comparison for avoiding xmm register saves. Emit the xmm register
2054 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
2055 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
2056 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
2057 Remove patterns and the associated splitters.
2059 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
2061 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
2062 and imagine parts of a complex, so that they can have the same
2063 base and fall into the same group.
2065 2010-07-21 Richard Guenther <rguenther@suse.de>
2068 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
2069 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
2070 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
2072 2010-07-21 Martin Jambor <mjambor@suse.cz>
2074 PR tree-optimization/44900
2075 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
2076 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
2078 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
2081 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
2083 2010-07-21 Richard Guenther <rguenther@suse.de>
2086 * tree-ssa.c (useless_type_conversion_p): Dispatch to
2087 gimple_types_compatible_p only when in lto.
2088 * gimple.c (gimple_types_compatible_p): Use canonical types
2089 to speed up comparison.
2091 2010-07-21 Richard Guenther <rguenther@suse.de>
2093 * tree-flow.h (referenced_var): Move define ...
2094 * tree-flow-inline.h (referenced_var): ... here as an inline
2095 function. Assert here ...
2096 * tree-dfa.c (referenced_var_lookup): ... instead of here.
2097 * tree-ssa.c (maybe_optimize_var): Check if the variable
2098 is in referenced vars.
2099 (execute_update_addresses_taken): Remove old broken check.
2100 * gimple-pretty-print.c (pp_points_to_solution): Use
2101 referenced_var_lookup.
2102 * tree-into-ssa.c (dump_decl_set): Likewise.
2104 2010-07-21 Jakub Jelinek <jakub@redhat.com>
2107 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
2108 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
2111 2010-07-20 Richard Henderson <rth@redhat.com>
2113 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
2115 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
2117 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
2118 computing the sum of the stack pointer and a large constant.
2119 * config/arm/constraints.md (M): Remove superfluous parentheses.
2120 (Pc): New constraint.
2122 2010-07-20 Jakub Jelinek <jakub@redhat.com>
2125 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
2126 operand's type if exp is tcc_unary class tree.
2128 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
2130 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
2131 Reverse sense of if_then_else condition.
2133 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
2135 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
2136 * config/rs6000/rs6000.c (rs6000_override_options): Set
2137 rs6000_block_move_inline_limit appropriately.
2138 (expand_block_move): Use rs6000_block_move_inline_limit.
2139 * doc/invoke.texi (mblock-move-inline-limit): Document.
2141 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
2143 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
2144 FROM and TO. All callers changed. Don't look for tracked uses,
2145 just scan the RTL for DEBUG_INSNs and substitute.
2146 (reload_combine_recognize_pattern): Call fixup_debug_insns.
2147 (reload_combine): Ignore DEBUG_INSNs.
2149 2010-07-20 Jakub Jelinek <jakub@redhat.com>
2151 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
2155 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
2156 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
2157 instead of the result's type.
2159 2010-07-20 Richard Guenther <rguenther@suse.de>
2161 PR tree-optimization/44977
2162 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
2165 2010-07-20 Richard Guenther <rguenther@suse.de>
2167 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
2168 (lto_symtab_merge_decls_2): Likewise.
2169 * gimple.h (gimple_types_compatible_p): Declare.
2170 * gimple.c (gimple_queue_type_fixup): Remove.
2171 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
2172 (gimple_compatible_complete_and_incomplete_type_p): New function.
2173 (gimple_types_compatible_p): Adjust.
2174 (gimple_register_type): Remove type fixup code.
2175 (print_gimple_types_stats): Adjust.
2176 (free_gimple_type_tables): Likewise.
2177 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
2178 * tree-ssa.c (useless_type_conversion_p): Likewise.
2180 2010-07-20 Richard Guenther <rguenther@suse.de>
2184 * tree-ssa.c (maybe_optimize_var): New function split out from ...
2185 (execute_update_addresses_taken): ... here.
2186 (non_rewritable_mem_ref_base): Likewise.
2187 (execute_update_addresses_taken): Do not iterate over all referenced
2188 vars but just all local decls and parms.
2189 Properly check call and asm arguments and rewrite call arguments.
2191 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
2193 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
2195 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
2197 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
2199 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
2201 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
2203 * gengtype.c (start_root_entry): New function, split out from
2204 write_root. Check whether V is null and raise an error if so.
2205 (write_field_root): Check for V being null. Don't raise an error here;
2206 set V to null instead.
2207 (write_root): Update comment above function. Use start_root_entry.
2209 2010-07-19 Xinliang David Li <davidxl@google.com>
2212 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
2214 (find_uninit_use): Add dump.
2215 (is_use_properly_guarded): Ditto.
2216 (warn_uninitialized_phi): Ditto.
2217 (execute_late_warn_uninitialized): Ditto.
2219 2010-07-19 Richard Guenther <rguenther@suse.de>
2222 * expr.c (emit_block_move_hints): Move zero size check first.
2223 Move asserts to more useful places.
2224 * calls.c (load_register_parameters): Check for zero size.
2226 2010-07-19 Richard Henderson <rth@redhat.com>
2228 * tree-optimize.c (execute_all_early_local_passes): New. Change
2229 cgraph_state here ...
2230 (execute_early_local_optimizations): ... not here. Remove.
2231 (pass_early_local_passes, pass_all_early_optimizations): Update.
2233 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
2235 * postreload.c (reload_combine_closest_single_use): Ignore the
2236 number of uses for DEBUG_INSNs.
2237 (fixup_debug_insns): New static function.
2238 (reload_combine_recognize_const_pattern): Use it. Don't let the
2239 main loop be affected by DEBUG_INSNs.
2240 Really disallow moving adds past a jump insn.
2241 (reload_combine_recognize_pattern): Don't update use_ruid here.
2242 (reload_combine_note_use): Do it here.
2243 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
2245 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
2247 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
2249 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
2251 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
2253 * config/i386/darwin.h: Define darwin_emit_branch_islands.
2254 (TARGET_MACHO_BRANCH_ISLANDS): New.
2255 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
2256 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
2258 * config/i386/i386.c (output_pic_addr_const): Do not emit
2259 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
2260 (x86_output_mi_thunk): Adjust symbol creation.
2261 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
2262 Remove out of date comment.
2263 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
2264 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2265 (DARWIN_GENERATE_ISLANDS): Ditto.
2266 (output_call): Do not emit branch islands unless
2267 darwin_emit_branch_islands is set.
2268 * config/darwin.c: Declare darwin_emit_branch_islands.
2269 (machopic_indirect_data_reference): Do not emit unless
2270 darwin_emit_branch_islands is set.
2271 (darwin_override_options): Set darwin_emit_branch_islands
2273 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2275 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2277 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2278 sse_runtime, sse2_runtime.
2280 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
2282 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
2283 low half of a single-register SCmode return value before ORing
2284 it with the high half.
2285 * config/mips/mips16.S (MERGE_GPRf): Likewise.
2287 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2290 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
2293 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
2296 * postreload.c (reload_cse_move2add): Return bool, true if anything.
2297 changed. All callers changed.
2298 (move2add_use_add2_insn): Likewise.
2299 (move2add_use_add3_insn): Likewise.
2300 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
2302 (RELOAD_COMBINE_MAX_USES): Bump to 16.
2303 (last_jump_ruid): New static variable.
2304 (struct reg_use): New members CONTAINING_MEM and RUID.
2305 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
2306 (reload_combine_split_one_ruid, reload_combine_split_ruids,
2307 reload_combine_purge_insn_uses, reload_combine_closest_single_use
2308 reload_combine_purge_reg_uses_after_ruid,
2309 reload_combine_recognize_const_pattern): New static functions.
2310 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
2311 is true for our reg and that we have available index regs.
2312 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
2313 callers changed. Use them to initialize fields in struct reg_use.
2314 (reload_combine): Initialize last_jump_ruid. Be careful when to
2315 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
2316 Call reload_combine_recognize_const_pattern.
2317 (reload_combine_note_store): Update REAL_STORE_RUID field.
2319 2010-07-16 Jason Merrill <jason@redhat.com>
2321 * Makefile.in (opts-common.o): Depend on options.h.
2323 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
2325 * tree.c (build_common_builtin_nodes): Use build_function_type_list
2326 instead of build_function_type.
2327 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2328 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2330 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
2332 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
2334 (rs6000_emit_int_cmove): Use function pointers for insn generation.
2335 Don't force values into registers unnecessarily.
2336 (output_isel): Assert that we're not given conditions we can't handle.
2337 Delete corresponding code.
2338 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
2339 scc_comparison_operator constraint. Permit 0 for the consequent
2340 operand. Permit any GPR for the alternative operand.
2341 (isel_unsigned_<mode>): Likewise.
2343 2010-07-16 Jakub Jelinek <jakub@redhat.com>
2346 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
2347 argument to const_tree.
2348 * config/i386/i386.c (function_arg_advance): If padding needs to be
2349 inserted before argument, increment cum->words by number of padding
2351 (contains_aligned_value_p): Change argument to const_tree.
2352 (ix86_function_arg_boundary): Change second argument to const_tree.
2354 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
2357 * function.c (record_hard_reg_sets): New static function.
2358 (assign_parm_setup_reg): If an optab for extending exists and the
2359 generated code clobbbers no hard regs, emit the insn directly and
2360 create a REG_EQUIV note.
2362 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2364 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
2366 * c-typeck.c (push_init_level): Likewise.
2367 (process_init_element): Likewise.
2369 2010-07-15 Anatoly Sokolov <aesok@post.ru>
2371 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
2372 (integer_three_node): Add.
2373 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
2374 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
2375 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
2376 of call build_int_cst.
2377 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
2378 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
2379 (find_interesting_uses_address): Ditto.
2380 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
2381 * tree-eh.c (lower_eh_constructs_2): Ditto.
2382 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
2383 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
2384 * expmed.c (expand_divmod): Ditto.
2385 * tree-mudflap.c (mx_register_decls): Ditto.
2386 * varasm.c (array_size_for_constructor): Ditto.
2387 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2388 * c-parser.c (c_parser_postfix_expression): Ditto.
2390 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
2392 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
2393 New static variables.
2394 (reload_combine_recognize_pattern): New static function, broken out
2396 (reload_combine): Use it. Only initialize first_index_reg and
2397 last_index_reg once.
2399 2010-07-15 Richard Henderson <rth@redhat.com>
2401 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
2404 2010-07-15 Jan Hubicka <jh@suse.cz>
2406 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
2407 comdats for broken gold.
2408 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
2410 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2412 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
2414 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2416 * tree.h (DECL_CHAIN): Define.
2417 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2418 * c-decl.c: Likewise.
2419 * c-parser.c: Likewise.
2420 * c-typeck.c: Likewise.
2421 * cfgexpand.c: Likewise.
2422 * cgraph.c: Likewise.
2423 * cgraphunit.c: Likewise.
2424 * combine.c: Likewise.
2425 * config/alpha/alpha.c: Likewise.
2426 * config/arm/arm.c: Likewise.
2427 * config/frv/frv.c: Likewise.
2428 * config/i386/i386.c: Likewise.
2429 * config/i386/winnt-cxx.c: Likewise.
2430 * config/ia64/ia64.c: Likewise.
2431 * config/iq2000/iq2000.c: Likewise.
2432 * config/mep/mep.c: Likewise.
2433 * config/mips/mips.c: Likewise.
2434 * config/pa/som.h: Likewise.
2435 * config/rs6000/rs6000.c: Likewise.
2436 * config/s390/s390.c: Likewise.
2437 * config/sh/sh.c: Likewise.
2438 * config/sh/symbian-cxx.c: Likewise.
2439 * config/sparc/sparc.c: Likewise.
2440 * config/spu/spu.c: Likewise.
2441 * config/stormy16/stormy16.c: Likewise.
2442 * config/vxworks.c: Likewise.
2443 * config/xtensa/xtensa.c: Likewise.
2444 * coverage.c: Likewise.
2445 * dbxout.c: Likewise.
2446 * dwarf2out.c: Likewise.
2447 * emit-rtl.c: Likewise.
2449 * function.c: Likewise.
2450 * gimple-low.c: Likewise.
2451 * gimple-pretty-print.c: Likewise.
2452 * gimplify.c: Likewise.
2453 * integrate.c: Likewise.
2454 * ipa-inline.c: Likewise.
2455 * ipa-prop.c: Likewise.
2456 * ipa-split.c: Likewise.
2457 * ipa-struct-reorg.c: Likewise.
2458 * ipa-type-escape.c: Likewise.
2459 * langhooks.c: Likewise.
2460 * lto-cgraph.c: Likewise.
2461 * omp-low.c: Likewise.
2462 * stor-layout.c: Likewise.
2463 * tree-cfg.c: Likewise.
2464 * tree-complex.c: Likewise.
2465 * tree-dfa.c: Likewise.
2466 * tree-dump.c: Likewise.
2467 * tree-inline.c: Likewise.
2468 * tree-mudflap.c: Likewise.
2469 * tree-nested.c: Likewise.
2470 * tree-object-size.c: Likewise.
2471 * tree-pretty-print.c: Likewise.
2472 * tree-sra.c: Likewise.
2473 * tree-ssa-live.c: Likewise.
2474 * tree-ssa-loop-niter.c: Likewise.
2475 * tree-ssa-math-opts.c: Likewise.
2476 * tree-ssa-reassoc.c: Likewise.
2477 * tree-ssa-sccvn.c: Likewise.
2478 * tree-ssa-structalias.c: Likewise.
2479 * tree-tailcall.c: Likewise.
2480 * tree-vrp.c: Likewise.
2482 * var-tracking.c: Likewise.
2483 * varasm.c: Likewise.
2485 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2488 * config/spu/spu.c (spu_expand_builtin_1): Allow references
2489 (as well as pointers) as argument to mask_for_load builtins.
2491 2010-07-15 Richard Guenther <rguenther@suse.de>
2493 PR tree-optimization/44946
2494 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
2495 with accessing only padding properly.
2497 2010-07-15 Jan Hubicka <jh@suse.cz>
2499 * ipa.c (function_and_variable_visibility): Variables marked as used
2500 should not be localized.
2502 2010-07-15 Jan Hubicka <jh@suse.cz>
2504 * cgraph.c: Include lto-streamer.h
2505 (change_decl_assembler_name): Work when assembler name hash is at place.
2506 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
2507 be sure to rename it to avoid name clash.
2508 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
2509 Localize hidden symbols only when locally defined.
2511 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
2513 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
2515 2010-07-15 Magnus Granberg <zorry@gentoo.org>
2516 Kevin F. Quinn <kevquinn@gentoo.org>
2518 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
2519 * common.opt: Add -Wtrampolines.
2520 * doc/invoke.texi: Add -Wtrampolines.
2522 2010-07-15 Jie Zhang <jie@codesourcery.com>
2524 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
2527 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
2529 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
2530 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2532 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2534 * config/spu/spu.c (reg_names): Remove prototype.
2535 (call_used_regs): Likewise.
2537 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
2539 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
2540 "unused" with attribute "used".
2541 (__JCR_END__): Likewise.
2542 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
2544 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
2546 2010-07-14 Richard Guenther <rguenther@suse.de>
2548 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
2549 (maybe_fixup_decls): Likewise.
2550 (input_gimple_stmt): Do not fixup anything.
2551 * lto-streamer-out.c (output_gimple_stmt): Make sure all
2552 non-automatic variable uses are wrapped inside a MEM_REF.
2554 2010-07-14 Richard Henderson <rth@redhat.com>
2556 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
2558 * varasm.c (assemble_variable): Remove early exit for functions;
2559 assert that we're given a variable.
2561 2010-07-14 Jie Zhang <jie@codesourcery.com>
2563 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
2564 cortex_a8_default when neon_type is not none.
2566 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2568 * lower-subreg.c (subreg_context): New static bitmap.
2569 (decompose_multiword_subregs): Allocate and free it.
2570 (find_decomposable_subregs): Set a bit in it for a register that
2571 occurs in a subreg that changes mode but not size.
2572 (can_decompose_p): Test it instead of non_decomposable_context.
2574 2010-07-14 Richard Guenther <rguenther@suse.de>
2576 PR tree-optimization/44824
2577 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
2578 is_gimple_mem_ref_addr.
2579 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
2580 non-decl_address_invariant_p addresses.
2582 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2584 * reload.c (find_reloads): Revert code to penalize small register
2585 classes that was brought in with the IRA merge.
2587 2010-07-14 Richard Guenther <rguenther@suse.de>
2589 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
2590 as base of ARRAY_REFs.
2592 2010-07-14 Richard Guenther <rguenther@suse.de>
2595 * tree-pretty-print.c (do_niy): Do not print a newline.
2597 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
2599 * ira-int.h (struct ira_object): New.
2600 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
2601 (struct ira_allocno): Remove members min, max,
2602 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
2603 conflict_allocnos_num and conflict_vec_p. Add new member object.
2604 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
2605 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
2606 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
2607 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
2608 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2609 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2610 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2611 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2612 an ira_object_t rather than ira_allocno_t. All uses changed.
2613 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2614 contains a vector of ira_object_t; all uses changed.
2615 (ira_objects_num): Declare variable.
2616 (ira_create_allocno_object): Declare function.
2617 (ira_conflict_vector_profitable_p): Adjust prototype.
2618 (ira_allocate_conflict_vec): Renamed from
2619 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2620 (ira_allocate_object_conflicts): Renamed from
2621 ira_allocate_allocno_conflicts; first arg now ira_object_t.
2622 (struct ira_object_iterator): New.
2623 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2624 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2625 to conflict_vec_p. All uses changed.
2626 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2627 Changed to take into account that conflicts are now tracked for
2629 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2630 Args changed to accept ira_object_t. All uses changed.
2631 (allocnos_conflict_p): New static function.
2632 (collected_conflict_objects): Renamed from collected_allocno_objects;
2633 now a vector of ira_object_t. All uses changed.
2634 (build_conflict_bit_table): Changed to take into account that
2635 conflicts are now tracked for objects.
2636 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2637 (print_allocno_conflicts, ira_build_conflicts): Likewise.
2638 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2639 setup_allocno_left_conflicts_size, allocno_reload_assign,
2640 fast_allocation): Likewise.
2641 * ira-lives.c (make_hard_regno_born, make_allocno_born)
2642 process_single_reg_class_operands, process_bb_node_lives): Likewise.
2643 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2645 * ira-build.c (ira_objects_num): New variable.
2646 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2647 contains a vector of ira_object_t; all uses changed.
2648 (ira_object_id_map_vec): Corresponding change.
2649 (object_pool): New static variable.
2650 (initiate_allocnos): Initialize it.
2651 (finish_allocnos): Free it.
2652 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2654 (ira_create_allocno): Don't set members that were removed.
2655 (ira_set_allocno_cover_class): Don't change conflict hard regs.
2656 (merge_hard_reg_conflicts): Changed to take into account that
2657 conflicts are now tracked for objects.
2658 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2659 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2660 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2661 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2662 setup_min_max_conflict_allocno_ids, ): Likewise.
2663 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2664 to ira_object_t; all callers changed.
2665 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2666 to ira_object_t, all callers changed.
2667 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2668 to ira_object_t, all callers changed.
2669 (conflict_check, curr_conflict_check_tick): Renamed from
2670 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2672 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2673 arg changed to ira_object_t, all callers changed.
2674 (create_cap_allocno): Call ira_create_allocno_object.
2675 (finish_allocno): Free the corresponding object.
2676 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2677 callers changed. Adjusted for dealing with objects.
2678 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
2679 dealing with objects.
2680 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2682 * ira-int.h (struct live_range): Rename allocno member to object
2683 and change type to ira_object_t.
2684 (struct ira_object): New member live_ranges.
2685 (struct ira_allocno): Remove member live_ranges.
2686 (ALLOCNO_LIVE_RANGES): Remove.
2687 (OBJECT_LIVE_RANGES): New macro.
2688 (ira_create_live_range, ira_copy_live_range_list,
2689 ira_merge_live_range_list, ira_live_ranges_intersect_p,
2690 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2691 * ira-build.c (ira_create_object): Initialize live ranges here.
2692 (ira_create_allocno): Not here.
2693 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2694 changed to ira_object_t, all callers changed.
2695 (copy_live_range): Rename from copy_allocno_live_range, all callers
2697 (ira_copy_live_range_list): Rename from
2698 ira_copy_allocno_live_range_list, all callers changed.
2699 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2700 all callers changed.
2701 (ira_live_ranges_intersect_p): Rename from
2702 ira_allocno_live_ranges_intersect_p, all callers changed.
2703 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2705 (ira_finish_live_range_list): Rename from
2706 ira_finish_allocno_live_range_list, all callers changed.
2707 (change_object_in_range_list): Rename from change_allocno_in_range_list,
2708 last arg changed to ira_object_t, all callers changed.
2709 (finish_allocno): Changed to expect live ranges in the allocno's object.
2710 (move_allocno_live_ranges, copy_allocno_live_ranges,
2711 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2712 ira_flattening, ira_build): Likewise.
2713 * ira-color.c (allocnos_have_intersected_live_ranges_p,
2714 slot_coalesced_allocno_live_ranges_intersect,
2715 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2716 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2717 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2718 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2719 make_allocno_dead, create_start_finish_chains,
2720 remove_some_program_points_and_update_live_ranges,
2721 ira_debug_live_range_list): Likewise.
2723 * ira-int.h (ira_object_conflict_iterator): Rename from
2724 ira_allocno_conflict_iterator.
2725 (ira_object_conflict_iter_init): Rename from
2726 ira_allocno_conflict_iter_init, second arg changed to
2727 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2728 FOR_EACH_ALLOCNO_CONFLICT.
2729 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2730 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2731 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2732 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2734 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
2737 * tree-dump.c (dump_options): Add enumerate_locals entry.
2738 Add TDF_NOID exclusion to all entry.
2739 * tree-dump.h (dump_enumerated_decls): Declare.
2740 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
2741 Don't display type uid.
2742 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
2743 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
2744 * tree-ssa-live.c: Include gimple.h.
2745 (numbered_tree_d): New struct.
2746 (numbered_tree): New typedef.
2747 (DEF_VEC_O (numbered_tree): New.
2748 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
2749 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
2750 (dump_enumerated_decls): Likewise.
2751 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
2752 debug info and flag_dump_final_insns, call dump_enumerated_decls.
2753 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
2754 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
2756 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
2758 * expmed.h (MAX_BITS_PER_WORD): Move to...
2759 * defaults.h (MAX_BITS_PER_WORD): ...here.
2761 2010-07-13 DJ Delorie <dj@redhat.com>
2763 * config/h8300/h8300.c (h8300_init_once): Default to
2764 -fstrict_volatile_bitfields.
2766 * config/sh/sh.c (sh_override_options): Default to
2767 -fstrict_volatile_bitfields.
2769 * config/rx/rx.c (rx_option_override): New.
2771 * config/m32c/m32c.c (m32c_override_options): Default to
2772 -fstrict_volatile_bitfields.
2774 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
2776 * tree.h (build_function_call_expr): Delete.
2777 (build_call_expr_loc_array): New function.
2778 (build_call_expr_loc_vec): New function.
2779 * tree-flow.h (struct omp_region): Change type of ws_args field
2781 * builtins.c (build_function_call_expr): Delete.
2782 (build_call_expr_loc_array): New function.
2783 (build_call_expr_loc): Call it. Use XALLOCAVEC.
2784 (build_call_expr): Likewise.
2785 (build_call_expr_loc_vec): New function.
2786 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
2787 build_function_call_expr.
2788 * expr.c (emutls_var_address): Likewise.
2789 * varasm.c (emutls_common_1): Likewise.
2790 * omp-low.c (expand_omp_atomic_mutex): Likewise.
2791 (expand_omp_taskreg): Adjust for new type of region->ws_args.
2792 (get_ws_args_for): Return a VEC instead of a tree.
2793 (expand_parallel_call): Call build_call_expr_loc_vec instead of
2794 build_function_call_expr.
2795 * stor-layout.c (self_referential_size): Likewise.
2797 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2800 * recog.c (constrain_operands): Allow side-effects in memory
2801 operands if either < or > constraint is used, rather than if
2802 both < and > is used.
2804 2010-07-13 Richard Guenther <rguenther@suse.de>
2807 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
2808 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
2811 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
2814 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
2816 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
2817 * config/sh/sh.md (symGOT_load): Likewise.
2818 (symDTPOFF2reg): Likewise.
2819 (symTPOFF2reg): Likewise.
2821 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2823 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
2824 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
2826 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2828 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
2830 Find ucontext_t * on Solaris 11.
2831 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
2832 Handle new Solaris 11 __sighndlr patterns.
2834 2010-07-13 Jakub Jelinek <jakub@redhat.com>
2837 * vec.h (VEC_block_remove): Fix comment.
2838 * tree-ssa-live.c (remove_unused_locals): Don't use
2839 VEC_unordered_remove on local_decls, instead replace a single
2840 vector element in each iteration if at least one element had
2841 to be removed and VEC_truncate at the end.
2842 * omp-low.c (expand_omp_taskreg): Likewise.
2844 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2846 * c-decl.c (finish_function): Fix typo in comment.
2848 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
2851 * postreload.c (move2add_use_add3_insn): Silence gcc warning
2854 2010-07-12 Jakub Jelinek <jakub@redhat.com>
2856 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
2857 (simplify_stmt_using_ranges): Use it.
2859 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2861 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
2862 member. Do not mark as GTY(()).
2863 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
2864 (spu_builtin_decls): New static variable.
2865 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
2866 (spu_init_builtins): Likewise.
2867 (spu_builtin_mul_widen_even): Likewise.
2868 (spu_builtin_mul_widen_odd): Likewise.
2869 (spu_builtin_mask_for_load): Likewise.
2870 (spu_builtin_vec_perm): Likewise.
2871 * config/spu/spu-c.c: Include "target.h".
2872 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
2873 of using spu_builtins[].fndecl.
2875 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2877 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
2878 imply -minterlink-mips16.
2880 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2882 * config/mips/mips.h (mips16_globals): Declare.
2883 (SWITCHABLE_TARGET): Define.
2884 * config/mips/mips.c: Include target-globals.h.
2885 (mips16_globals): New variable.
2886 (mips_set_mips16_mode): Use save_target_globals and
2887 restore_target_globals instead of target_reinit.
2889 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2891 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
2892 to say that the function can be called more than once.
2893 * target-globals.c (save_target_globals): Call init_reg_sets.
2895 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2897 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
2898 * bb-reorder.h: New file.
2899 * bb-reorder.c (default_target_bb_reorder): New variable.
2900 (this_target_bb_reorder): New conditional variable.
2901 (uncond_jump_length): Redefine as a macro.
2902 * target-globals.h (this_target_bb_reorder): Declare.
2903 (target_globals): Add a bb_reorder field.
2904 (restore_target_globals): Copy the bb_reorder field to
2905 this_target_bb-reorder.
2906 * target-globals.c: Include bb-reorder.h.
2907 (default_target_globals): Initialize the bb_reorder field.
2908 (save_target_globals): Likewise.
2910 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2912 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
2914 * gcse.c: Include gcse.h.
2915 (default_target_gcse): New variable.
2916 (this_target_gcse): New conditional variable.
2917 (can_copy): Redefine as a macro.
2918 (can_copy_init_p): New macro.
2919 (can_copy_p): Remove can_copy_init_p.
2920 * target-globals.h (this_target_gcse): Declare.
2921 (target_globals): Add a gcse field.
2922 (restore_target_globals): Copy the gcse field to this_target_gcse.
2923 * target-globals.c: Include gcse.h.
2924 (default_target_globals): Initialize the gcse field.
2925 (save_target_globals): Likewise.
2927 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2929 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
2930 and x_ira_prohibited_mode_move_regs_initialized_p.
2931 (ira_prohibited_mode_move_regs): Redefine as a macro.
2932 * ira.c (ira_prohibited_mode_move_regs): Delete.
2933 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
2935 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2937 * reload.h (target_reload): Add x_cached_reg_save_code and
2938 x_cached_reg_restore_code.
2939 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
2942 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2944 * Makefile.in (target-globals.o): Depend on builtins.h.
2945 * builtins.h: New file.
2946 * builtins.c: Include builtins.h.
2947 (default_target_builtins): New variable.
2948 (this_target_builtins): New conditional variable.
2949 (apply_args_mode, apply_result_mode): Redefine as macros.
2950 * target-globals.h (this_target_builtins): Declare.
2951 (target_globals): Add a builtins field.
2952 (restore_target_globals): Copy the builtins field to
2953 this_target_builtins.
2954 * target-globals.c: Include builtins.h.
2955 (default_target_globals): Initialize the builtins field.
2956 (save_target_globals): Likewise.
2958 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2960 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
2961 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
2963 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
2964 (alg_hash, alg_hash_used_p): New macros.
2965 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
2966 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
2967 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
2969 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2971 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
2972 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
2973 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
2974 (this_op_costs, costs_classes): Redefine as macros.
2975 (record_reg_classes): Don't take op_costs as a parameter.
2976 (record_operand_costs): Likewise. Update calls to record_reg_classes.
2977 (scan_one_insn): Update call to record_operand_costs.
2979 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2981 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
2982 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
2983 (target_ira_int): New structure.
2984 (default_target_ira_int): Declare.
2985 (this_target_ira_int): Declare as a variable or define as a macro.
2986 (ira_reg_mode_hard_regset, ira_register_move_cost)
2987 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
2988 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
2989 (prohibited_class_mode_regs, ira_important_classes_num)
2990 (ira_important_classes, ira_reg_class_intersect)
2991 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
2992 (ira_reg_class_union): Redefine as macros.
2993 * ira.h (target_ira): New structure.
2994 (default_target_ira): Declare.
2995 (this_target_ira): Declare as a variable or define as a macro.
2996 (ira_available_class_regs, ira_hard_regno_cover_class)
2997 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
2998 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
2999 (ira_class_hard_regs_num): Redefine as macros.
3000 * ira.c (default_target_ira, default_target_ira_int): New variables.
3001 (this_target_ira, this_target_ira_int): New conditional variables.
3002 (ira_reg_mode_hard_regset, ira_memory_move_cost)
3003 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
3004 (ira_class_subset_p): Delete.
3005 (no_unit_alloc_regs): Redefine as a macro.
3006 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
3007 (ira_class_hard_regs_num, ira_class_hard_reg_index)
3008 (ira_available_class_regs): Delete.
3009 (alloc_reg_class_subclasses): Redefine as a macro.
3010 (ira_reg_class_cover_size, ira_reg_class_cover)
3011 (ira_important_classes_num, ira_important_classes)
3012 (ira_important_class_nums, ira_class_translate): Delete.
3013 (cover_class_order): Document the variable's lifetime.
3014 (reorder_important_classes): Don't set ira_important_class_nums.
3015 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
3016 (ira_reg_class_super_classes, ira_reg_class_union)
3017 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
3019 (setup_reg_class_nregs): Don't set ira_max_regs.
3020 (prohibited_class_mode_regs): Delete.
3021 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
3022 (target_globals): Add ira and ira_int fields.
3023 (restore_target_globals): Copy the ira field to this_target_ira
3024 and the ira_int field to this_target_ira_int.
3025 * target-globals.c: Include ira-int.h.
3026 (default_target_globals): Initialize the ira and ira_int fields.
3027 (save_target_globals): Likewise.
3029 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3031 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
3032 * cfgloop.h (target_cfgloop): New structure.
3033 (default_target_cfgloop): Declare.
3034 (this_target_cfgloop): Declare as a variable or define as a macro.
3035 (target_avail_regs, target_clobbered_regs, target_res_regs)
3036 (target_reg_cost, target_spill_cost): Redefine as macros.
3037 * cfgloopanal.c (default_target_cfgloop): New variable.
3038 (this_target_cfgloop): New conditional variable.
3039 (target_avail_regs, target_clobbered_regs, target_res_regs)
3040 (target_reg_cost, target_spill_cost): Delete.
3041 * target-globals.h (this_target_cfgloop): Declare.
3042 (target_globals): Add a cfgloop field.
3043 (restore_target_globals): Copy the cfgloop field to
3044 this_target_cfgloop.
3045 * target-globals.c: Include cfgloop.h.
3046 (default_target_globals): Initialize the cfgloop field.
3047 (save_target_globals): Likewise.
3049 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3051 * regs.h (target_regs): Add x_direct_load, x_direct_store and
3052 x_float_extend_from_mem.
3053 (direct_load, direct_store, float_extend_from_mem): New macros.
3054 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
3056 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3058 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
3059 (target-globals.o): Depend on $(LIBFUNCS_H).
3060 * libfuncs.h: Include hashtab.h.
3061 (libfunc_entry): Moved from optabs.c.
3062 (target_libfuncs): New structure.
3063 (default_target_libfuncs): Declare.
3064 (this_target_libfuncs): Declare as a variable or define as a macro.
3065 (libfunc_table): Redefine as a macro.
3066 * optabs.c (default_target_libfuncs): New variable.
3067 (this_target_libfuncs): New conditional variable.
3068 (libfunc_table): Delete.
3069 (libfunc_entry): Moved to optabs.h.
3070 (libfunc_hash): Redefine as a macro.
3071 (hash_libfunc, eq_libfunc): Fix comments.
3072 (init_optabs): Use libfunc_hash to detect cases where the function
3073 has already been called. Clear the hash table instead of
3075 * target-globals.h (this_target_libfuncs): Declare.
3076 (target_globals): Add a libfuncs field.
3077 (restore_target_globals): Copy the libfuncs field to
3078 this_target_libfuncs.
3079 * target-globals.c: Include libfuncs.h.
3080 (default_target_globals): Initialize the libfuncs field.
3081 (save_target_globals): Likewise.
3083 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3085 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
3086 in all dependency lists.
3088 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3090 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
3091 * optabs.h (target_optabs): New structure.
3092 (default_target_optabs): Declare.
3093 (this_target_optabs): Declare as a variable or define as a macro.
3094 (optab_table, convert_optab_table, direct_optab_table): Redefine
3096 * optabs.c (default_target_optabs): New variable.
3097 (this_target_optabs): New conditional variable.
3098 (optab_table, convert_optab_table, direct_optab_table): Delete.
3099 * target-globals.h (this_target_optabs): Declare.
3100 (target_globals): Add a optabs field.
3101 (restore_target_globals): Copy the optabs field to
3103 * target-globals.c: Include expr.h and optabs.h.
3104 (default_target_globals): Initialize the optabs field.
3105 (save_target_globals): Likewise.
3107 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3109 * flags.h (target_flagstate): Add x_flag_excess_precision.
3110 (flag_excess_precision): Redefine as a macro.
3111 * toplev.c (flag_excess_precision): Delete.
3113 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3115 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
3116 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
3117 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
3118 (no_caller_save_reg_set): Redefine as a macro.
3119 * reload.h (target_reload): Add x_caller_save_initialized_p and
3121 (caller_save_initialized_p): Redefine as a macro.
3122 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
3123 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
3124 (regno_save_mode): Redefine as a macro.
3126 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3128 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
3129 * expmed.h: New file.
3130 * expmed.c (default_target_costs): New variable.
3131 (this_target_costs): New conditional variable.
3132 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
3133 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
3134 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
3135 * target-globals.h (this_target_expmed): Declare.
3136 (target_globals): Add a expmed field.
3137 (restore_target_globals): Copy the expmed field to
3139 * target-globals.c: Include expmed.h.
3140 (default_target_globals): Initialize the expmed field.
3141 (save_target_globals): Likewise.
3143 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3145 * Makefile.in (target-globals.o): Depend on reload.h.
3146 * reload.h (target_reload): New structure.
3147 (default_target_reload): Declare.
3148 (this_target_reload): Declare as a variable or define as a macro.
3149 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
3150 * reload1.c (default_target_reload): New variable
3151 (this_target_reload): New conditional variable.
3152 (indirect_symref_ok, double_reg_address_ok): Delete.
3153 (spill_indirect_levels): Redefine as a macro.
3154 * target-globals.h (this_target_reload): Declare.
3155 (target_globals): Add a reload field.
3156 (restore_target_globals): Copy the reload field to
3158 * target-globals.c: Include hard-reg-set.h.
3159 (default_target_globals): Initialize the reload field.
3160 (save_target_globals): Likewise.
3162 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3164 * rtl.h (target_rtl): Add x_static_reg_base_value.
3165 * alias.c (static_reg_base_value): Redefine as a macro.
3167 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3169 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
3170 (GTFILES): Remove reginfo.c.
3171 * rtl.h (target_rtl): Add x_top_of_stack.
3172 (top_of_stack): New macro.
3173 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
3174 (top_of_stack): Delete.
3176 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3178 * regs.h (target_regs): Add x_hard_regs_of_mode,
3179 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
3180 x_may_move_out_cost and x_last_mode_for_init_move_cost.
3181 (have_regs_of_mode, contains_reg_of_mode, move_cost)
3182 (may_move_in_cost, may_move_out_cost): Redefine as macros.
3183 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
3184 (may_move_in_cost, may_move_out_cost): Delete.
3185 (last_mode_for_init_move_cost): Redefine as a macro.
3187 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3189 * hard-reg-set.h (target_hard_regs): New structure.
3190 (default_target_hard_regs): Declare.
3191 (this_target_hard_regs): Declare as a variable or define as a macro.
3192 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
3193 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
3194 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
3195 (reg_class_size, reg_class_subclasses, reg_class_subunion)
3196 (reg_class_superunion, reg_names): Redefine as macros.
3197 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
3198 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
3199 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
3200 (reg_class_contents, reg_class_size, reg_class_subclasses)
3201 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
3202 (default_target_hard_regs): New variable
3203 (this_target_hard_regs, initial_call_really_used_regs)
3204 (initial_reg_alloc_order): New conditional variables.
3205 (initial_reg_names): New variable.
3206 (init_reg_sets): Assert that initial_call_really_used_regs,
3207 initial_reg_alloc_order and initial_reg_names
3208 are all the same size as their variable counterparts. Use them to
3209 initialize those counterparts.
3210 * target-globals.h (this_target_hard_regs): Declare.
3211 (target_globals): Add a hard_regs field.
3212 (restore_target_globals): Copy the hard_regs field to
3213 this_target_hard_regs.
3214 * target-globals.c: Include hard-reg-set.h.
3215 (default_target_globals): Initialize the hard_regs field.
3216 (save_target_globals): Likewise.
3218 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3220 * Makefile.in (target-globals.o): Depend on $(RTL_H).
3221 * rtl.h (target_rtl): New structure.
3222 (default_target_rtl): Declare.
3223 (this_target_rtl): Declare as a variable or define as a macro.
3224 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
3226 * emit-rtl.c (default_target_rtl): New variable.
3227 (this_target_rtl): New conditional variable.
3228 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
3229 (return_address_pointer_rtx): Delete.
3230 (initial_regno_reg_rtx): New macro.
3231 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
3232 (init_emit_regs): Likewise.
3233 * target-globals.h (this_target_rtl): Declare.
3234 (target_globals): Add a rtl field.
3235 (restore_target_globals): Copy the rtl field to this_target_rtl.
3236 * target-globals.c: Include rtl.h.
3237 (default_target_globals): Initialize the rtl field.
3238 (save_target_globals): Likewise.
3240 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3242 * Makefile.in (target-globals.o): Depend on $(REGS_H).
3243 * regs.h (target_reg_modes): New structure.
3244 (default_target_reg_modes): Declare.
3245 (this_target_reg_modes): Declare as a variable or define as a macro.
3246 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
3247 * reginfo.c (default_target_reg_modes): New variable.
3248 (this_target_reg_modes): New conditional variable.
3249 (hard_regno_nregs, reg_raw_mode): Delete.
3250 * target-globals.h (this_target_regs): Declare.
3251 (target_globals): Add a regs field.
3252 (restore_target_globals): Copy the regs field to this_target_regs.
3253 * target-globals.c: Include regs.h.
3254 (default_target_globals): Initialize the regs field.
3255 (save_target_globals): Likewise.
3257 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
3259 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
3260 * doc/tm.texi: Regenerate.
3261 * Makefile.in (OBJS-common): Add target-globals.o.
3262 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
3263 and target-globals.h.
3264 (target-globals.o): New rule.
3265 (GTFILES): Include $(srcdir)/target-globals.h.
3266 * defaults.h (SWITCHABLE_TARGET): Define.
3267 * gengtype.c (open_base_files): Add target-globals.h to the
3269 * target-globals.h: New file.
3270 * target-globals.c: Likewise.
3272 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
3273 * flags.h (target_flag_state): New structure.
3274 (default_target_flag_state): Declare.
3275 (this_target_flag_state): Declare as a variable or define as a macro.
3276 (align_loops_log): Redefine as a macro.
3277 (align_loops_max_skip, align_jumps_log): Likewise.
3278 (align_jumps_max_skip, align_labels_log): Likewise.
3279 (align_labels_max_skip, align_functions_log): Likewise.
3280 * toplev.c (default_target_flag_state): New variable.
3281 (this_target_flag_state): New conditional variable.
3282 (align_loops_log): Delete.
3283 (align_loops_max_skip, align_jumps_log): Likewise.
3284 (align_jumps_max_skip, align_labels_log): Likewise.
3285 (align_labels_max_skip, align_functions_log): Likewise.
3286 * target-globals.h (this_target_flag_state): Declare.
3287 (target_globals): Add a flag_state field.
3288 (restore_target_globals): Copy the flag_state field to
3289 this_target_flag_state.
3290 * target-globals.c: Include flags.h.
3291 (default_target_globals): Initialize the flag_state field.
3292 (save_target_globals): Likewise.
3294 2010-07-12 Jie Zhang <jie@codesourcery.com>
3296 * postreload.c (reg_symbol_ref[]): New.
3297 (move2add_use_add2_insn): New.
3298 (move2add_use_add3_insn): New.
3299 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
3300 (move2add_note_store): Likewise.
3302 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
3304 PR rtl-optimization/44752
3305 * genautomata.c (main): Don't emit an empty file even if there
3308 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3310 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
3311 ix86_solaris_return_in_memory.
3312 * config/i386-protos.h: Reflect this.
3313 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3314 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3316 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
3318 2010-07-12 Jie Zhang <jie@codesourcery.com>
3320 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
3321 align the stack when it's going to be saved.
3323 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3326 * config/host-solaris.c (mmap_fixed): New function.
3327 (sol_gt_pch_get_address): Use it.
3328 (sol_gt_pch_use_address): Likewise.
3330 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3332 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3333 pentiumpro on Solaris 8 and 9/x86.
3334 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
3335 Document SSE/SSE2 support.
3336 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
3338 2010-07-12 Andi Kleen <ak@linux.intel.com>
3340 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
3341 instead of gcc_assert to print better error message for multiple
3344 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
3346 * config/i386/i386.c (ix86_asm_output_function_label): Change format
3347 string placeholder from 0x%x to %#x.
3348 (ix86_code_end): Use putc to output '\n'.
3349 (ix86_print_operand) <case ';'>: Use putc to output ';'.
3351 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
3353 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
3354 in directive -export.
3356 2010-07-10 Anatoly Sokolov <aesok@post.ru>
3358 * reginfo.h (reg_classes_intersect_p): Change arguments type to
3360 * rtl.h (reg_classes_intersect_p): Adjust prototype.
3362 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3364 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
3365 rs6000_memory_move_cost): Remove
3366 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
3367 TARGET_MEMORY_MOVE_COST): Define.
3368 (rs6000_register_move_cost): Make static. Change arguments type from
3369 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
3370 (rs6000_memory_move_cost): Make static. Change arguments type from
3371 'enum reg_class' to reg_class_t.
3373 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
3376 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
3377 lookup code into....
3378 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
3380 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
3381 * cfgloopanal.c (target_clobbered_regs): Define.
3382 (init_set_costs): Initialize target_clobbered_regs.
3383 (estimate_reg_pressure_cost): Add call_p argument. When true,
3384 adjust the number of available registers to exclude the
3385 call-clobbered registers.
3386 * cfgloop.h (target_clobbered_regs): Declare.
3387 (estimate_reg_pressure_cost): Adjust declaration.
3388 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
3389 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
3390 (determine_set_costs): Dump target_clobbered_regs.
3391 (loop_body_includes_call): New function.
3392 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
3393 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
3394 call_p flag through.
3395 (best_gain_for_invariant): Likewise.
3396 (find_invariants_to_move): Likewise.
3397 (move_single_loop_invariants): Likewise, using already-computed
3400 2010-07-10 Richard Guenther <rguenther@suse.de>
3401 Joern Rennecke <joern.rennecke@embecosm.com>
3404 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
3405 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
3406 unless they have DECL_IGNORED_P set.
3408 2010-07-10 Richard Guenther <rguenther@suse.de>
3411 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
3413 (gimple_types_compatible_p): Similar to pointed-to
3414 types allow and merge a mix of complete and incomplete aggregate.
3415 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
3416 (iterative_hash_gimple_type): Adjust for that.
3418 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
3420 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
3422 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
3425 * config/darwin.c (output_objc_section_asm_op): Save and restore
3426 section when outputting ObjC section list.
3428 2010-07-09 Jan Hubicka <jh@suse.cz>
3430 * lto-streamer-out.c (produce_symtab): Do not write alias
3431 cgraph/varpool nodes.
3433 2010-07-09 Jan Hubicka <jh@suse.cz>
3435 * tree-inline.c (declare_return_variable): Fix ICE while
3436 inlining DECL_BY_VALUE function not in SSA form
3438 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
3440 PR tree-optimization/44576
3441 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
3442 New. Pull out from is_loop_prefetching_profitable to implement
3443 the trip count to ahead ratio heuristic.
3444 (mem_ref_count_reasonable_p): New. Pull out from
3445 is_loop_prefetching_profitable to implement the instruction to
3446 memory reference ratio heuristic. Also consider not reasonable if
3447 the memory reference count is above a threshold (to avoid
3448 explosive compilation time.
3449 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
3450 is_loop_prefetching_profitable to implement the instruction to
3451 prefetch ratio heuristic.
3452 (is_loop_prefetching_profitable): Removed.
3453 (loop_prefetch_arrays): Distribute the cost analysis across the
3454 function to allow early exit of the prefetch analysis.
3455 is_loop_prefetching_profitable is splitted into three functions,
3456 with each one called as early as possible.
3457 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
3458 number of memory references in a loop is considered too many.
3460 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
3462 * reload.c (find_reloads): Don't clear badop if we have a winreg
3463 alternative, but not win, and the class only has fixed regs.
3464 * hard-reg-set.h (class_only_fixed_regs): Declare.
3465 * reginfo.c (class_only_fixed_regs): New array.
3466 (init_reg_sets_1): Initialize it.
3467 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
3468 discourage alternatives using the stack pointer.
3470 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
3472 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
3474 * config/arm/arm.md (cbranchqi4): Fix array size.
3475 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
3478 2010-07-09 Richard Guenther <rguenther@suse.de>
3480 * gimple.c (struct type_fixup_s): New struct and VEC type.
3481 (gimple_register_type_fixups): New static global.
3482 (gimple_queue_type_fixup): New function.
3483 (gimple_types_compatible_p): Queue type fixups instead of
3485 (gimple_register_type): Apply queued fixups for the
3486 canonical type. Empty the type fixup queue.
3488 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3490 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
3491 * configure: Regenerate.
3494 2010-07-09 Jakub Jelinek <jakub@redhat.com>
3495 Denys Vlasenko <dvlasenk@redhat.com>
3496 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3498 PR tree-optimization/28632
3499 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
3500 (extract_range_from_binary_expr): Further optimize
3501 BIT_AND_EXPR and BIT_IOR_EXPR.
3503 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
3505 * tree-if-conv.c (fold_or_predicates): New.
3506 (add_to_predicate_list): Call it.
3508 2010-07-09 Richard Guenther <rguenther@suse.de>
3511 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
3512 if base is a pointer.
3513 * tree-cfg.c (verify_expr): Update MEM_REF checking.
3515 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3518 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
3519 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
3520 builtin mask for load/store builtins.
3522 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3524 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
3526 * configure: Regenerate.
3527 * config/i386/i386.c (ix86_print_operand) <case ';'>:
3528 Remove TARGET_MACHO.
3530 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
3532 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
3534 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
3536 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
3538 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
3540 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
3542 * config/picochip/picochip.md (commsTestPort): Emit more
3543 efficient sequence for tstport instruction.
3545 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
3547 * config/i386/i386.c (ix86_veclib_handler): Make static.
3549 2010-07-09 Richard Guenther <rguenther@suse.de>
3551 PR tree-optimization/44852
3552 * tree-ssa-alias.c: Include toplev.h for exact_log2.
3553 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
3555 (indirect_refs_may_alias_p): Likewise.
3556 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
3558 2010-07-09 Richard Guenther <rguenther@suse.de>
3560 PR tree-optimization/44882
3561 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
3563 (vectorizable_load): Likewise.
3565 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
3568 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
3569 All callers changed.
3570 Handle the case when we're called for the epilogue.
3571 (thumb_unexpanded_epilogue): Use it.
3572 (thumb1_expand_epilogue): Likewise.
3574 2010-07-09 Jakub Jelinek <jakub@redhat.com>
3576 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
3577 both ranges are range_int_cst_p with non-negative minimum,
3578 try harder to derive smaller range.
3580 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3582 * genrecog.c: Include diagnostic-core.h before toplev.h.
3583 * genoutput.c: Likewise.
3584 * genextract.c: Likewise.
3585 * genautomata.c: Likewise.
3586 * genemit.c: Likewise.
3587 * genpeep.c: Likewise.
3588 * genattrtab.c: Likewise.
3589 * genconditions.c: Likewise.
3590 * genpreds.c: Likewise.
3592 2010-07-08 Andi Kleen <ak@linux.intel.com>
3594 * lto-section-in.c (lto_section_name): Add missing comma.
3596 2010-07-08 Anatoly Sokolov <aesok@post.ru>
3598 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
3599 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
3600 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
3601 (ia64_override_options): Rename to...
3602 (ia64_option_override): ... this one. Make static.
3604 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3607 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
3608 pointed-to type of the offset in a MEM_REF to compute the alignment.
3610 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
3612 * final.c (final_scan_insn): Replace
3613 TARGET_UNWIND_INFO macro check by unwind_emit
3615 * targhooks.c (default_unwind_emit): Removed.
3616 * targhooks.h (default_unwind_emit): Likewise.
3617 * target.def (unwind_emit): Set default value to NULL.
3619 * config/i386/i386-protos.h (ix86_asm_output_function_label):
3621 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3622 for NULL fntype argument and allow 64-bit targets.
3623 (ix86_asm_output_function_label): New function.
3624 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3625 (ix86_handle_fndecl_attribute): Likewise.
3626 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3627 * doc/doc/tm.texi: Regenerated.
3628 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3629 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3630 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3631 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3632 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3633 * config/elfos.h: Likewise.
3634 * config/i386/cygming.h: Likewise.
3635 * config/netbsd-aout.h: Likewise.
3636 * config/openbsd.h: Likewise.
3637 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3638 by ix86_asm_output_function_label function call.
3639 * varasm.c (assemble_start_function): Use
3640 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3642 2010-07-08 Jan Hubicka <jh@suse.cz>
3644 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3646 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3648 * ipa-cp.c (ipcp_estimate_growth): Use it.
3649 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3652 2010-07-08 Jan Hubicka <jh@suse.cz>
3654 * tree-inline.c (declare_return_variable): Allocate annotation for new
3657 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
3659 PR tree-optimization/44710
3660 * tree-if-conv.c (parse_predicate): New.
3661 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3662 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3664 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
3666 * common.opt (ftree-loop-if-convert): New flag.
3667 * doc/invoke.texi (ftree-loop-if-convert): Documented.
3668 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3669 when flag_tree_loop_if_convert is set.
3671 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
3673 * config/i386/i386.c: Use short syntax for function calls
3674 through function pointers.
3675 * config/i386/i386.md: Ditto.
3677 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3679 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3681 2010-07-08 Richard Guenther <rguenther@suse.de>
3683 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3684 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3686 2010-07-08 Jakub Jelinek <jakub@redhat.com>
3688 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3689 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3690 (loc_list_from_tree): Likewise.
3691 (output_loc_operands): Handle outputting DW_OP_const[48]u
3692 with loc->dtprel set.
3693 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3695 2010-07-08 Jan Hubicka <jh@suse.cz>
3697 * ipa.c: Include pointer-set.h
3698 (cgraph_externally_visible_p): New attribute ALIASED;
3699 when in LTO, hidden symbols are local unless they are aliased.
3700 (function_and_variable_visibility): Compute aliased nodes;
3701 handle LTO and hidden symbol on functions and vars.
3702 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3703 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3705 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3707 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3708 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3709 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3710 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3711 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3712 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3713 (ix86_gen_probe_stack_range): Likewise.
3714 (override_options): Set them.
3715 (ix86_target_stack_probe): New function.
3716 (ix86_compute_frame_layout): Force use of push instructions to
3717 save registers if stack checking with probes is enabled.
3718 (get_scratch_register_on_entry): New function.
3719 (release_scratch_register_on_entry): Likewise.
3720 (ix86_adjust_stack_and_probe): Likewise.
3721 (output_adjust_stack_and_probe): Likewise.
3722 (ix86_emit_probe_stack_range): Likewise.
3723 (output_probe_stack_range): Likewise.
3724 (ix86_expand_prologue): Emit stack checking code if static built-in
3725 stack checking is enabled.
3726 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3727 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3728 (output_adjust_stack_and_probe): Likewise.
3729 (output_probe_stack_range): Likewise.
3730 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3731 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3733 (allocate_stack_worker_64): Likewise.
3734 (allocate_stack): Likewise.
3735 (adjust_stack_and_probe): New insn.
3736 (probe_stack_range): Likewise.
3738 2010-07-08 Richard Guenther <rguenther@suse.de>
3740 PR tree-optimization/44831
3741 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
3742 a MEM_REF preserving TBAA info of the original dereference.
3743 Dereference the original pointer if the address is not invariant.
3744 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
3745 at least one invariant address that we are going to dereference.
3747 2010-07-08 Richard Guenther <rguenther@suse.de>
3749 PR tree-optimization/44861
3750 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
3751 information when building MEM_REFs.
3752 (vectorizable_load): Likewise.
3753 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3755 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3757 * config/sol2-c.c: Do not include diagnostic-core.h.
3759 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3762 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
3763 with respect to current_function_decl. Pass decl of the function.
3764 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
3765 * ipa-inline.c (compute_inline_parameters): Pass decl to
3766 estimated_stack_frame_size.
3768 2010-07-08 Richard Guenther <rguenther@suse.de>
3770 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3772 (valueize_refs): Call it.
3774 2010-07-08 Richard Guenther <rguenther@suse.de>
3776 PR rtl-optimization/44838
3777 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
3778 SSA form do not use pointer equivalence.
3780 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
3782 * dwarf2out.c (AT_linkage_name): Delete.
3783 (add_linkage_attr): New function.
3784 (add_linkage_name): Call it to emit the linkage attribute.
3785 (dwarf2out_finish): Likewise.
3786 (move_linkage_attr): Explicitly accept both attribute variants.
3788 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3790 * toplev.h: Do not include diagnostic-core.h.
3791 Include diagnostic-core.h in every file that includes toplev.h.
3792 * c-tree.h: Do not include toplev.h.
3793 * pretty-print.h: Update comment.
3794 * Makefile.in: Update dependencies.
3795 * alias.c: Include diagnostic-core.h in every file that includes
3797 * attribs.c: Likewise.
3798 * auto-inc-dec.c: Likewise.
3799 * bb-reorder.c: Likewise.
3800 * bt-load.c: Likewise.
3801 * caller-save.c: Likewise.
3802 * calls.c: Likewise.
3804 * cfganal.c: Likewise.
3805 * cfgbuild.c: Likewise.
3806 * cfgcleanup.c: Likewise.
3807 * cfghooks.c: Likewise.
3808 * cfgloop.c: Likewise.
3809 * combine.c: Likewise.
3810 * config/alpha/alpha.c: Likewise.
3811 * config/arc/arc.c: Likewise.
3812 * config/arm/arm.c: Likewise.
3813 * config/arm/pe.c: Likewise.
3814 * config/avr/avr.c: Likewise.
3815 * config/bfin/bfin.c: Likewise.
3816 * config/cris/cris.c: Likewise.
3817 * config/crx/crx.c: Likewise.
3818 * config/darwin-c.c: Likewise.
3819 * config/darwin.c: Likewise.
3820 * config/fr30/fr30.c: Likewise.
3821 * config/frv/frv.c: Likewise.
3822 * config/h8300/h8300.c: Likewise.
3823 * config/host-darwin.c: Likewise.
3824 * config/i386/i386.c: Likewise.
3825 * config/i386/netware.c: Likewise.
3826 * config/i386/nwld.c: Likewise.
3827 * config/i386/winnt-cxx.c: Likewise.
3828 * config/i386/winnt-stubs.c: Likewise.
3829 * config/i386/winnt.c: Likewise.
3830 * config/ia64/ia64-c.c: Likewise.
3831 * config/ia64/ia64.c: Likewise.
3832 * config/iq2000/iq2000.c: Likewise.
3833 * config/lm32/lm32.c: Likewise.
3834 * config/m32c/m32c-pragma.c: Likewise.
3835 * config/m32c/m32c.c: Likewise.
3836 * config/m32r/m32r.c: Likewise.
3837 * config/m68hc11/m68hc11.c: Likewise.
3838 * config/m68k/m68k.c: Likewise.
3839 * config/mcore/mcore.c: Likewise.
3840 * config/mep/mep-pragma.c: Likewise.
3841 * config/mep/mep.c: Likewise.
3842 * config/mmix/mmix.c: Likewise.
3843 * config/mn10300/mn10300.c: Likewise.
3844 * config/moxie/moxie.c: Likewise.
3845 * config/pa/pa.c: Likewise.
3846 * config/pdp11/pdp11.c: Likewise.
3847 * config/picochip/picochip.c: Likewise.
3848 * config/rs6000/rs6000-c.c: Likewise.
3849 * config/rs6000/rs6000.c: Likewise.
3850 * config/rx/rx.c: Likewise.
3851 * config/s390/s390.c: Likewise.
3852 * config/score/score.c: Likewise.
3853 * config/score/score3.c: Likewise.
3854 * config/score/score7.c: Likewise.
3855 * config/sh/sh.c: Likewise.
3856 * config/sh/symbian-base.c: Likewise.
3857 * config/sh/symbian-c.c: Likewise.
3858 * config/sh/symbian-cxx.c: Likewise.
3859 * config/sol2-c.c: Likewise.
3860 * config/sol2.c: Likewise.
3861 * config/sparc/sparc.c: Likewise.
3862 * config/spu/spu.c: Likewise.
3863 * config/stormy16/stormy16.c: Likewise.
3864 * config/v850/v850-c.c: Likewise.
3865 * config/v850/v850.c: Likewise.
3866 * config/vax/vax.c: Likewise.
3867 * config/vxworks.c: Likewise.
3868 * config/xtensa/xtensa.c: Likewise.
3869 * convert.c: Likewise.
3871 * cselib.c: Likewise.
3872 * dbgcnt.c: Likewise.
3873 * dbxout.c: Likewise.
3875 * dominance.c: Likewise.
3876 * emit-rtl.c: Likewise.
3877 * explow.c: Likewise.
3878 * expmed.c: Likewise.
3879 * fixed-value.c: Likewise.
3880 * fold-const.c: Likewise.
3881 * fwprop.c: Likewise.
3883 * ggc-common.c: Likewise.
3884 * ggc-page.c: Likewise.
3885 * ggc-zone.c: Likewise.
3886 * gimple-low.c: Likewise.
3887 * gimplify.c: Likewise.
3888 * graph.c: Likewise.
3889 * haifa-sched.c: Likewise.
3890 * ifcvt.c: Likewise.
3891 * implicit-zee.c: Likewise.
3892 * integrate.c: Likewise.
3893 * ira-build.c: Likewise.
3894 * ira-color.c: Likewise.
3895 * ira-conflicts.c: Likewise.
3896 * ira-costs.c: Likewise.
3897 * ira-lives.c: Likewise.
3899 * lists.c: Likewise.
3900 * loop-doloop.c: Likewise.
3901 * loop-iv.c: Likewise.
3902 * lto-opts.c: Likewise.
3903 * lto-symtab.c: Likewise.
3905 * modulo-sched.c: Likewise.
3906 * optabs.c: Likewise.
3907 * params.c: Likewise.
3908 * plugin.c: Likewise.
3909 * postreload-gcse.c: Likewise.
3910 * postreload.c: Likewise.
3911 * predict.c: Likewise.
3912 * profile.c: Likewise.
3914 * regcprop.c: Likewise.
3915 * reginfo.c: Likewise.
3916 * regmove.c: Likewise.
3917 * reorg.c: Likewise.
3918 * resource.c: Likewise.
3920 * rtlanal.c: Likewise.
3921 * sched-deps.c: Likewise.
3922 * sched-ebb.c: Likewise.
3923 * sched-rgn.c: Likewise.
3924 * sdbout.c: Likewise.
3925 * sel-sched-dump.c: Likewise.
3926 * sel-sched-ir.c: Likewise.
3927 * simplify-rtx.c: Likewise.
3929 * stor-layout.c: Likewise.
3930 * store-motion.c: Likewise.
3931 * targhooks.c: Likewise.
3932 * tree-cfg.c: Likewise.
3933 * tree-cfgcleanup.c: Likewise.
3934 * tree-dump.c: Likewise.
3935 * tree-eh.c: Likewise.
3936 * tree-inline.c: Likewise.
3937 * tree-nomudflap.c: Likewise.
3938 * tree-object-size.c: Likewise.
3939 * tree-optimize.c: Likewise.
3940 * tree-outof-ssa.c: Likewise.
3941 * tree-phinodes.c: Likewise.
3942 * tree-profile.c: Likewise.
3943 * tree-ssa-ccp.c: Likewise.
3944 * tree-ssa-coalesce.c: Likewise.
3945 * tree-ssa-live.c: Likewise.
3946 * tree-ssa-loop-niter.c: Likewise.
3947 * tree-ssa-loop-prefetch.c: Likewise.
3948 * tree-ssa-loop.c: Likewise.
3949 * tree-ssa-structalias.c: Likewise.
3950 * tree-ssa-uninit.c: Likewise.
3951 * tree-ssa.c: Likewise.
3952 * tree-vect-data-refs.c: Likewise.
3953 * tree-vect-loop-manip.c: Likewise.
3954 * tree-vect-loop.c: Likewise.
3955 * tree-vect-patterns.c: Likewise.
3956 * tree-vect-stmts.c: Likewise.
3957 * tree-vrp.c: Likewise.
3958 * varasm.c: Likewise.
3961 * xcoffout.c: Likewise.
3963 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
3965 * gengtype.c (write_field_root): New function.
3966 (write_root): Use it.
3968 2010-07-07 Wei Guozhi <carrot@google.com>
3970 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3971 of lowest bits to lshift/compare): Add a missing line.
3973 2010-07-07 Wei Guozhi <carrot@google.com>
3975 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
3976 of lowest bits to lshift/compare): New.
3978 2010-07-07 Tom Tromey <tromey@redhat.com>
3980 * doc/tm.texi: Update.
3981 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
3983 * target.def (want_debug_pub_sections): New hook.
3984 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
3985 * dwarf2out.c (add_pubname_string): Check
3986 targetm.want_debug_pub_sections.
3987 (add_pubname): Likewise.
3988 (add_pubtype): Likewise.
3990 2010-07-07 Jie Zhang <jie@codesourcery.com>
3992 * genautomata.c (output_automata_list_min_issue_delay_code):
3993 Correctly decompress min_issue_delay.
3995 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
3997 PR rtl-optimization/44404
3998 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
3999 possible, use reg_overlap_mentioned_p instead.
4001 2010-07-07 Duncan Sands <baldrick@free.fr>
4004 * tree.c (build_function_type_skip_args): Copy the original type using
4005 build_distinct_type_copy rather than copy_node.
4007 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
4010 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
4012 (ix86_expand_prologue): Likewise.
4013 (ix86_handle_fndecl_attribute): Likewise.
4014 (ix86_asm_declare_function_name): Likewise.
4015 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4016 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4017 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
4018 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
4019 * doc/extend.texi: Likewise.
4021 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
4024 * config/i386/i386.md (rdrand<mode>): Changed to expand to
4025 retry if the carry flag isn't valid.
4026 (rdrand<mode>_1): New.
4028 2010-07-07 Richard Guenther <rguenther@suse.de>
4031 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
4032 for expanding the constant offset for MEM_REFs.
4034 2010-07-07 Richard Guenther <rguenther@suse.de>
4036 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
4037 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
4038 * gimple.h (is_gimple_operand): Remove.
4039 * gimple.c (is_gimple_operand): Likewise.
4040 (walk_gimple_op): Fix wi->val_only setting for calls.
4041 * tree-cfg.c (verify_gimple_call): Fix argument validation.
4042 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
4043 invalid gimple calls.
4045 2010-07-06 Jan Hubicka <jh@suse.cz>
4047 * lto-cgraph.c (output_cgraph): Add missing declaration.
4049 2010-07-06 Jan Hubicka <jh@suse.cz>
4051 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
4054 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
4056 * doc/gimple.texi (GIMPLE_DEBUG): Document.
4057 * doc/rtl.texi (Debug Information): New node.
4058 (NOTE_INSN_VAR_LOCATION): Document.
4059 (debug_insn): Likewise.
4060 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
4062 2010-07-07 Jan Hubicka <jh@suse.cz>
4064 With parts by Richard Guenther.
4067 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
4068 for functions passed by reference.
4069 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
4070 in memory when passed by reference.
4071 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
4073 * ipa-split.c (split_function): Cleanup way return value is passed;
4074 handle SSA DECL_BY_REFERENCE retvals.
4075 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
4076 DECL_BY_REFERENCE is set.
4077 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
4078 find_what_p_points_to): Handle RESULT_DECL.
4079 * tree-inline.c (declare_return_variable): Get new entry_block argument;
4080 when passing by reference ensure that RESULT_DECL is gimple_val.
4081 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
4082 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
4084 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
4086 PR rtl-optimization/44787
4087 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
4088 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
4090 2010-07-06 Jan Hubicka <jh@suse.cz>
4092 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
4093 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
4094 with body can prevail.
4095 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
4096 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
4097 * cgraph.c (cgraph_get_node_or_alias): New function.
4098 * cgraph.h (cgraph_get_node_or_alias): Declare.
4100 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
4102 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
4104 (ix86_expand_prologue): Likewise.
4105 (ix86_handle_fndecl_attribute): Likewise.
4106 (ix86_asm_declare_function_name): New function for
4107 ASM_DECLARE_FUNCTION_NAME.
4108 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
4109 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
4110 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
4111 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
4112 * doc/extend.texi: Adjust documentation about ms_hook_prologue
4115 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4117 * config/i386/i386.md (immediate_operand): New mode attribute.
4119 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
4120 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
4121 using P mode iterator.
4122 (pro_epilogue_adjust_stack_di_2): Rename from
4123 pro_epilogue_adjust_stack_rex64_2.
4125 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
4127 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4129 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
4130 through gen_mov_insv_1 function pointer.
4131 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
4132 gen_truncxf<mode>2 through gen_truncxf function pointer.
4133 (remainder<mode>3): Ditto.
4134 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
4135 (allocate_stack): Call gen_allocate_stack_worker_64 or
4136 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
4138 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
4141 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
4143 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
4144 operand constraint instead of <r><i>m.
4146 2010-07-06 Richard Guenther <rguenther@suse.de>
4149 * convert.c (convert_to_integer): Watch out for overflowing
4152 2010-07-05 Jan Hubicka <jh@suse.cz>
4154 * lto-streamer.c (write_symbol_vec): Rename to ...
4155 (write_symbol) ... this one; write only symbol given and when
4156 present in cache. Sanity check that what is defined is present
4157 in cgraph/varpool with body/finalized decl.
4158 (write_symbols_of_kind): Remove.
4159 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
4160 pairs to produce symtab.
4161 (produce_asm_for_decls): Update call of produce_symtab; don't do so
4162 when doing WPA streaming.
4164 2010-07-05 Jan Hubicka <jh@suse.cz>
4166 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
4167 function is still available to fold into.
4169 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4171 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
4172 * function.h (struct_function): Change type of local_decls field
4174 (add_local_decl): New function.
4175 (FOR_EACH_LOCAL_DECL): New macro.
4176 * cfgexpand.c (init_vars_expansion): Adjust for new type of
4178 (estimated_stack_frame_size): Likewise.
4179 (expand_used_vars): Likewise.
4180 * cgraphbuild.c (build_cgraph_edges): Likewise.
4181 * function.c (instantiate_decls_1): Likewise.
4182 * ipa-struct-reorg.c (build_data_structure): Likewise.
4183 * ipa-type-escape.c (analyze_function): Likewise.
4184 * lto-streamer-in.c (input_function): Likewise.
4185 * lto-streamer-out.c (output_function): Likewise.
4186 * tree-ssa-live.c (remove_unused_locals): Likewise.
4187 * tree.c (free_lang_data_in_decl): Likewise.
4188 (find_decls_types_in_node): Likewise.
4189 * omp-low.c (remove_exit_barrier): Likewise.
4190 (expand_omp_taskreg): Likewise.
4191 (list2chain): Rename to...
4192 (vec2chain): ...this. Adjust.
4193 * cgraphunit.c (assemble_thunk): Call add_local_decl.
4194 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
4195 * gimple-low.c (record_vars_into): Likewise.
4196 * tree-inline.c (remap_decls): Likewise.
4197 (declare_return_variable): Likewise.
4198 (declare_inline_vars): Likewise.
4199 (copy_forbidden): Adjust for new type of cfun->local_decls.
4200 (add_local_variables): New function.
4201 (expand_call_inline): Call it.
4202 (tree_function_versioning): Likewise.
4204 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
4206 AVX Programming Reference (June, 2010)
4207 * config/i386/cpuid.h (bit_F16C): New.
4208 (bit_RDRND): Likewise.
4209 (bit_FSGSBASE): Likewise.
4211 * config/i386/i386-builtin-types.def: Add
4212 "DEF_FUNCTION_TYPE (UINT16)", function types for
4213 float16 <-> float conversions and
4214 "DEF_FUNCTION_TYPE (VOID, UINT64)".
4216 * config/i386/i386-c.c (ix86_target_macros_internal): Support
4217 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
4218 OPTION_MASK_ISA_F16C.
4220 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
4221 (OPTION_MASK_ISA_RDRND_SET): Likewise.
4222 (OPTION_MASK_ISA_F16C_SET): Likewise.
4223 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
4224 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
4225 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
4226 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
4227 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
4228 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
4229 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
4230 (override_options): Handle them.
4231 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
4232 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
4233 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
4234 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
4235 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
4236 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
4237 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
4238 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
4239 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
4240 (bdesc_args): Likewise.
4241 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
4242 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
4243 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
4244 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
4245 Handle non-memory store.
4247 * config/i386/i386.h (TARGET_FSGSBASE): New.
4248 (TARGET_RDRND): Likewise.
4249 (TARGET_F12C): Likewise.
4251 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
4252 (UNSPEC_VCVTPS2PH): Likewise.
4253 (UNSPECV_RDFSBASE): Likewise.
4254 (UNSPECV_RDGSBASE): Likewise.
4255 (UNSPECV_WRFSBASE): Likewise.
4256 (UNSPECV_WRGSBASE): Likewise.
4257 (UNSPECV_RDRAND): Likewise.
4258 (rdfsbase<mode>): Likewise.
4259 (rdgsbase<mode>): Likewise.
4260 (wrfsbase<mode>): Likewise.
4261 (wrgsbase<mode>): Likewise.
4262 (rdrand<mode>): Likewise.
4264 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
4266 * config/i386/immintrin.h (_rdrand_u16): New.
4267 (_rdrand_u32): Likewise.
4268 (_readfsbase_u32): Likewise.
4269 (_readfsbase_u64): Likewise.
4270 (_readgsbase_u32): Likewise.
4271 (_readgsbase_u64): Likewise.
4272 (_writefsbase_u32): Likewise.
4273 (_writefsbase_u64): Likewise.
4274 (_writegsbase_u32): Likewise.
4275 (_writegsbase_u64): Likewise.
4276 (_rdrand_u64): Likewise.
4277 (_cvtsh_ss): Likewise.
4278 (_mm_cvtph_ps): Likewise.
4279 (_mm256_cvtph_ps): Likewise.
4280 (_cvtss_sh): Likewise.
4281 (_mm_cvtps_ph): Likewise.
4282 (_mm256_cvtps_ph): Likewise.
4284 * config/i386/sse.md (vcvtph2ps): New.
4285 (*vcvtph2ps_load): Likewise.
4286 (vcvtph2ps256): Likewise.
4287 (vcvtps2ph): Likewise.
4288 (*vcvtps2ph): Likewise.
4289 (*vcvtps2ph_store): Likewise.
4290 (vcvtps2ph256): Likewise.
4292 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
4294 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
4296 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
4299 * genenums.c (main): Output include of insn-constants.h
4300 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
4302 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
4304 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
4305 (override_options): Initialize it.
4306 (ix86_expand_prologue): Use it.
4308 2010-07-05 Jakub Jelinek <jakub@redhat.com>
4310 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
4312 2010-07-05 Anatoly Sokolov <aesok@post.ru>
4314 * double-int.h (fit_double_type): Remove declaration.
4315 * double-int.c (fit_double_type): Remove function.
4316 * tree.h (int_fits_type_p): Adjust prototype.
4317 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
4318 instead of fit_double_type.
4319 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
4320 instead of fit_double_type and build_int_cst_wide.
4321 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
4322 instead of fit_double_type and build_int_cst_wide.
4323 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
4326 2010-07-05 Jan Hubicka <jh@suse.cz>
4328 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
4330 * lto-cgraph.c (referenced_from_other_partition_p,
4331 reachable_from_other_partition_p): Use in_other_partition flags.
4332 (output_node, output_varpool_node): COMDAT nodes always have private
4333 copies and thus are never used from other partition.
4335 2010-07-05 Anatoly Sokolov <aesok@post.ru>
4337 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4338 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
4339 * config/ia64/ia64.c Include reload.h.
4340 (ia64_memory_move_cost): New function.
4341 (TARGET_MEMORY_MOVE_COST): Define.
4342 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
4345 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
4348 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
4349 comments about cost model.
4350 (try_add_cand_for): Add second strategy for choosing initial set
4351 based on original IVs, controlled by ORIGINALP argument.
4352 (get_initial_solution): Add ORIGINALP argument.
4353 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
4354 (find_optimal_iv_set): Try two different strategies for choosing
4355 the IV set, and return the one with lower cost.
4357 2010-07-05 Richard Guenther <rguenther@suse.de>
4359 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
4361 2010-07-05 Richard Guenther <rguenther@suse.de>
4363 * tree.c (reference_alias_ptr_type): New function.
4364 * tree.h (reference_alias_ptr_type): Declare.
4365 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
4366 allow non-TARGET_MEM_REF new refs.
4367 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
4368 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
4369 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
4370 (create_mem_ref): Get alias pointer type. Adjust calls to
4372 (maybe_fold_tmr): Likewise.
4373 * tree-flow.h (create_mem_ref): Adjust prototype.
4375 2010-07-05 Jakub Jelinek <jakub@redhat.com>
4378 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
4379 *from_p is VAR_DECL.
4381 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4383 * tree.h (build_call_list): Remove.
4384 * tree.c (build_call_list): Remove.
4386 2010-07-05 Richard Guenther <rguenther@suse.de>
4388 * double-int.h (double_int_sub): Declare.
4389 * double-int.c (double_int_sub): New function.
4390 * dwarf2out.c (field_byte_offset): Use it.
4391 * fixed-value.c (do_fixed_add): Likewise.
4392 (do_fixed_multiply): Likewise.
4393 (do_fixed_divide): Likewise.
4394 * tree-predcom.c (add_ref_to_chain): Likewise.
4395 (determine_roots_comp): Likewise.
4396 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
4398 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
4400 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
4403 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
4405 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
4406 * arm-modes.def (CC_NOTB): Don't define.
4407 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
4408 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
4409 (LTUGEU): New code_iterator.
4410 (cnb, optab): New corresponding code_attrs.
4411 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
4412 to canonical form. Operands 1 and 2 are commutative. Parametrize
4414 (addsi3_carryin_shift_<optab>): Likewise.
4415 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
4416 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
4417 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
4418 (subsi3_compare): Renamed from subsi3_compare0_c.
4419 Change CC_NOTB to CC.
4420 (arm_subsi3_insn): Allow constants for operand 0.
4421 (compare_scc peephole for eq case): New.
4422 (compare_scc splitters): Change CC_NOTB to CC.
4424 2010-07-05 Richard Guenther <rguenther@suse.de>
4426 * tree-ssa-loop-im.c (for_each_index): Do not handle
4428 (gen_lsm_tmp_name): Likewise.
4429 * tree-dump.c (dequeue_and_dump): Likewise.
4430 * tree-pretty-print.c (dump_generic_node): Likewise.
4431 (op_code_prio): Likewise.
4432 (op_symbol_code): Likewise.
4433 * tree.c (staticp): Likewise.
4434 (build1_stat): Likewise.
4435 * tree.h (INDIRECT_REF_P): Likewise.
4436 * fold-const.c (maybe_lvalue_p): Likewise.
4437 (operand_equal_p): Likewise.
4438 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4439 (ao_ref_init_from_vn_reference): Likewise.
4440 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4441 (find_interesting_uses_address): Likewise.
4442 * dwarf2out.c (loc_list_from_tree): Likewise.
4443 * gimplify.c (gimplify_expr): Likewise.
4444 * tree-eh.c (tree_could_trap_p): Likewise.
4445 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4446 * cfgexpand.c (expand_debug_expr): Likewise.
4447 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4448 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4449 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4450 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
4451 * tree-ssa-operands.c (get_expr_operands): Likewise.
4452 * expr.c (safe_from_p): Likewise.
4453 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
4454 * tree-vect-data-refs.c (vect_setup_realignment): Build
4455 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
4456 * tree-vect-stmts.c (vectorizable_load): Likewise.
4457 * tree.def (ALIGN_INDIRECT_REF): Remove.
4459 2010-07-05 Richard Guenther <rguenther@suse.de>
4461 PR tree-optimization/44784
4462 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
4464 (find_or_generate_expression): Fix SCCVN insertion check.
4466 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
4468 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4469 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4470 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
4473 2010-07-05 Ira Rosen <irar@il.ibm.com>
4475 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
4476 statements that are not vectorized.
4477 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
4480 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
4483 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
4485 2010-07-05 Richard Guenther <rguenther@suse.de>
4487 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
4488 RESULT_DECLs properly.
4490 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
4492 PR rtl-optimization/44695
4493 * config/i386/i386.md (extract_code): Removed.
4494 (<u>divmodqi4): Likewise.
4496 (udivmodqi4): Likewise.
4497 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
4498 (udivmodhiqi3): Likewise.
4500 2010-07-04 Jan Hubicka <jh@suse.cz>
4502 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
4504 2010-07-04 Jan Hubicka <jh@suse.cz>
4506 * cgraphunit.c (init_cgraph): Only initialize dump file if it
4507 is not already initialized.
4509 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4511 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4512 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
4513 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
4514 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
4515 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
4516 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
4517 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
4518 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
4519 (sync_new_nand_optab): Redefine as macros.
4520 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
4522 (direct_optab_index): New enum.
4523 (direct_optab_d): New structure.
4524 (direct_optab): New typedef.
4525 (direct_optab_table): Declare.
4526 (direct_optab_handler, set_direct_optab_handler): New functions.
4527 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
4528 (sync_lock_release_optab): New macros.
4529 * optabs.c (direct_optab_table): New variable.
4530 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
4531 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
4532 cmpstr_optab and cmpstrn_optab.
4533 (emit_conditional_move): Likewise for movcc_optab.
4534 (can_conditionally_move_p): Likewise for movcc_gen_code.
4535 (init_insn_codes): Clear direct_optab_table.
4536 (init_optabs): Don't initialize the new "direct optabs" here.
4537 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
4539 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
4540 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
4541 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
4542 (expand_sync_operation): Likewise other sync_*_optabs.
4543 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
4544 to sync_compare_and_swap_optab.
4545 (expand_sync_lock_test_and_set): Use direct_optab_handler for
4546 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
4547 to the names of both.
4548 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
4549 cmpstr_optab and cmpstrn_optab.
4550 (expand_builtin_lock_release): Likewise sync_lock_release.
4551 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
4552 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
4553 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
4554 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
4555 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
4556 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
4557 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
4558 (sync_lock_test_and_set, sync_lock_release): Delete.
4559 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
4560 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
4561 * genopinit.c (optabs): Use set_direct_optab_handler for the new
4563 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
4564 the "optab" local variable. Use direct_optab_handler for optab and
4565 sync_compare_and_swap_optab.
4566 * reload1.c (reload_in_optab, reload_out_optab): Delete.
4567 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
4568 reload_in_optab and reload_out_optab.
4569 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4570 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
4571 * config/pa/pa.c (pa_secondary_reload): Likewise.
4572 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
4573 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
4574 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
4575 (VMSupportsCS8_builtin): Likewise.
4577 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4579 * optabs.h (optab_handlers): Change type of insn_code to int.
4580 (optab_handler, set_optab_handler, convert_optab_handler)
4581 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
4583 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
4584 (init_insn_codes): Zero both the above arrays.
4585 (init_optabs): Never call init_insn_codes first time around.
4587 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
4589 * optabs.h (optab_handler, convert_optab_handler): Turn into
4590 inline functions that return an insn code.
4591 (set_optab_handler, set_convert_optab_handler): New functions.
4592 * builtins.c: Replace optab_handler(X)->insn_code with
4593 optab_handler or set_optab_handler thoughout. Likewise
4594 convert_optab_handler(X)->insn_code with convert_optab_handler
4595 and set_convert_optab_handler.
4596 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
4597 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
4598 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
4599 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
4600 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
4601 config/spu/spu.c: Likewise.
4603 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
4606 * config.gcc (sh*-*-*): Use regular expressions instead of
4607 the 'i' modifier for sed substitutions.
4609 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
4611 * gimple.c (gimple_body): Comments added.
4613 2010-07-04 Richard Guenther <rguenther@suse.de>
4616 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4619 2010-07-04 Richard Guenther <rguenther@suse.de>
4621 PR tree-optimization/44479
4622 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4623 extra SSA name copy statements which preserves points-to
4625 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4626 Copy points-to information for all pointers. Properly handle
4628 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
4630 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4633 2010-07-04 Richard Guenther <rguenther@suse.de>
4636 * tree-inline.c (initialize_inlined_parameters): Do not
4637 re-use pointer-map slot over remap_type call.
4639 2010-07-04 Richard Guenther <rguenther@suse.de>
4641 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4643 2010-07-04 Richard Guenther <rguenther@suse.de>
4645 PR tree-optimization/44656
4646 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4647 again after value-replacing in the defintions lhs.
4649 2010-07-04 Ira Rosen <irar@il.ibm.com>
4650 Revital Eres <eres@il.ibm.com>
4652 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4653 Document new arguments.
4654 * doc/tm.texi: Regenerate.
4655 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4656 Handle unaligned store.
4657 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4658 * target.def (builtin_vectorization_cost): Add new arguments.
4659 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4660 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4661 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4662 (vect_vfa_segment_size): Fix indentation.
4663 * tree-vectorizer.h (struct _vect_peel_info): New.
4664 (struct _vect_peel_extended_info): New.
4665 (struct _loop_vec_info): Add new field for peeling hash table and a
4666 macro for its access.
4667 (VECT_MAX_COST): Define.
4668 (vect_get_load_cost): Declare.
4669 (vect_get_store_cost, vect_get_known_peeling_cost,
4670 vect_get_single_scalar_iteraion_cost): Likewise.
4671 (vect_supportable_dr_alignment): Add new argument.
4672 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4674 (destroy_loop_vec_info): Free peeling hash table.
4675 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4676 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4677 vect_analyze_slp. Fix indentation.
4678 (vect_get_single_scalar_iteraion_cost): New function.
4679 (vect_get_known_peeling_cost): Likewise.
4680 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4681 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4682 statement. Move outside cost calculation inside unknown peeling case.
4683 Call vect_get_known_peeling_cost for known amount of peeling.
4684 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4685 reference to the print message of forced alignment.
4686 (vect_verify_datarefs_alignment): Update call to
4687 vect_supportable_dr_alignment.
4688 (vect_get_data_access_cost): New function.
4689 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4690 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4691 vect_peeling_hash_choose_best_peeling): Likewise.
4692 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4693 to store all the accesses in the loop and find best possible access to
4694 align using peeling for known alignment case. For unknown alignment
4695 check if stores are preferred or if peeling is worthy.
4696 (vect_find_same_alignment_drs): Analyze pairs of loads too.
4697 (vect_supportable_dr_alignment): Add new argument and check aligned
4698 accesses according to it.
4699 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4700 (cost_for_stmt): Call vect_get_stmt_cost.
4701 (vect_model_simple_cost): Likewise.
4702 (vect_model_store_cost): Call vect_get_stmt_cost. Call
4703 vect_get_store_cost to calculate the cost of the statement.
4704 (vect_get_store_cost): New function.
4705 (vect_model_load_cost): Call vect_get_stmt_cost. Call
4706 vect_get_load_cost to calculate the cost of the statement.
4707 (vect_get_load_cost): New function.
4708 (vectorizable_store): Update call to vect_supportable_dr_alignment.
4709 (vectorizable_load): Likewise.
4710 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4711 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4712 arguments. Handle unaligned store.
4713 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4714 (rs6000_builtin_support_vector_misalignment): Return true for word and
4715 double word alignments for VSX.
4716 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4717 vect_supportable_dr_alignment and builtin_vectorization_cost.
4719 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4722 * config/pa/predicates.md (prefetch_cc_operand): Remove.
4723 (prefetch_nocc_operand): Likewise.
4724 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4725 (prefetch_20): New insn.
4726 (prefetch_cc): Remove.
4727 (prefetch_nocc): Likewise.
4729 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4731 * expr.c (vector_mode_valid_p): Move to c-common.c.
4732 * expr.h (vector_mode_valid_p): Do not declare here.
4733 * system.h: Poison GCC_EXPR_H in front-ends.
4734 * Makefile.in: Update dependencies.
4736 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4739 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4741 2010-07-03 Jan Hubicka <jh@suse.cz>
4743 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
4744 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
4745 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
4746 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
4749 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
4751 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
4752 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
4753 TV_IPA_LTO_DECL_OUT): New.
4754 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
4756 2010-07-03 Jan Hubicka <jh@suse.cz>
4758 * ipa-inline.c (update_edge_key): Break out from ...
4759 update_callers_keys): ... here;
4760 (update_callee_keys): Update only the edges from caller to callee.
4761 (update_all_calle_keys): Do what update_calle_keys did.
4762 (decide_inlining_of_small_functions): Avoid recomputing of all
4763 callees when badness increase.
4765 2010-07-03 Jie Zhang <jie@codesourcery.com>
4767 * config/arm/arm.c (arm_attr_length_move_neon): New.
4768 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
4769 * config/arm/neon.md (define_mode_attr V_slen): Remove.
4770 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
4771 to compute length attribute.
4773 2010-07-03 Jie Zhang <jie@codesourcery.com>
4775 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
4776 as predicate for operand 1 and remove its constraint.
4777 * config/arm/predicates.md (vfp_register_operand): New.
4778 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
4779 (*push_fp_multi): Likewise.
4781 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
4783 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
4785 2010-07-03 Jan Hubicka <jh@suse.cz>
4787 * config/i386/i386.c (override_options): Revert accidental commit.
4789 2010-07-02 Le-Chun Wu <lcwu@google.com>
4792 * doc/invoke.texi: Update documentation of -Wshadow.
4794 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4795 Julian Brown <julian@codesourcery.com>
4796 Sandra Loosemore <sandra@codesourcery.com>
4798 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
4799 comparisons. Adjust to take both operands.
4800 (arm_select_cc_mode): Handle DImode comparisons.
4801 (arm_gen_compare_reg): Generate a scratch register for DImode
4802 comparisons which require one. Use xor for Thumb equality checks.
4803 (arm_const_double_by_immediates): New.
4804 (arm_print_operand): Allow 'Q' and 'R' for constants.
4805 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
4806 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
4807 arm_canonicalize_comparison.
4808 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
4809 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4811 (arm_const_double_by_immediates): Declare.
4812 * config/arm/constraints.md (Di): New constraint.
4813 * config/arm/predicates.md (arm_immediate_di_operand)
4814 (arm_di_operand, cmpdi_operand): New.
4815 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
4816 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
4817 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
4818 (cstoredi4): Handle non-Cirrus also.
4820 2010-07-02 Julian Brown <julian@codesourcery.com>
4821 Sandra Loosemore <sandra@codesourcery.com>
4824 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
4825 (smax<mode>3): Disable for NEON float modes when
4826 flag_unsafe_math_optimizations is false.
4827 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
4829 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
4830 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
4831 for NEON float modes when flag_unsafe_math_optimizations is false.
4832 (quad_halves_<code>v4sf): Only enable if
4833 flag_unsafe_math_optimizations is true.
4834 * doc/invoke.texi (ARM Options): Add note about floating point
4835 vectorization requiring -funsafe-math-optimizations.
4837 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
4838 Julian Brown <julian@codesourcery.com>
4840 * config/arm/neon.md (UNSPEC_VABA): Delete.
4841 (UNSPEC_VABAL): Delete.
4842 (UNSPEC_VABS): Delete.
4843 (UNSPEC_VMUL_N): Delete.
4846 (mul<mode>3add<mode>_neon): Make the pattern named.
4847 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
4848 (neon_vadd<mode>): Replace with define_expand, and move the remaining
4850 (neon_vadd<mode>_unspec): ...to this.
4851 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
4852 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
4853 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
4854 (neon_vaba<mode>): Rewrite in terms of vabd.
4855 (neon_vabal<mode>): Rewrite in terms of vabdl.
4856 (neon_vabs<mode>): Rewrite without unspec.
4857 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
4858 (*arm_subdi3): Likewise.
4859 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
4860 No_op attribute to disable assembly output checks.
4861 * config/arm/arm_neon.h: Regenerated.
4862 * doc/arm-neon-intrinsics.texi: Regenerated.
4864 2010-07-02 Jan Hubicka <jh@suse.cz>
4866 * ipa-split.c (split_function): For aggregate values, set the return
4867 slot optimization bit. When passing DECL_BY_REFERENCE, produce
4868 *<retval> = fncall.part ().
4869 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
4871 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
4873 * config/arm/neon.md (UNSPEC_VAND): Delete.
4874 (UNSPEC_VBIC): Delete.
4875 (UNSPEC_VCLZ): Delete.
4876 (UNSPEC_VCNT): Delete.
4877 (UNSPEC_VEOR): Delete.
4878 (UNSPEC_VORN): Delete.
4879 (UNSPEC_VORR): Delete.
4880 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
4882 (anddi3_neon): Likewise.
4883 (orndi3_neon): Likewise.
4884 (bicdi3_neon): Likewise.
4885 (xordi3_neon): Likewise.
4886 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
4887 rid of unspec and handle unused operand.
4888 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
4889 * config/arm/predicates.md (imm_for_neon_logic_operand):
4890 Require TARGET_NEON.
4891 (imm_for_neon_inv_logic_operand): Likewise.
4892 * config/arm/arm.md (define_split for logical_binary_operator):
4893 Disable for NEON registers.
4894 (anddi3): Add new define_expand, and rename the insn. Disable
4895 this insn for NEON, where anddi3_neon now applies.
4896 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
4897 (iordi3): As for anddi3.
4899 * config/arm/neon.ml (Vand): Split DImode variants and mark them
4900 as No_op to disable testing for exact instruction match.
4905 * config/arm/arm_neon.h: Regenerated.
4906 * doc/arm-neon-intrinsics.texi: Regenerated.
4908 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
4910 * expr.h (emit_stack_probe): Declare.
4911 * explow.c (emit_stack_probe): Make global.
4912 (anti_adjust_stack_and_probe): Fix comments.
4913 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
4914 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4915 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4916 * config/sparc/sparc.c: Include except.h.
4917 (sparc_emit_probe_stack_range): New function.
4918 (output_probe_stack_range): Likewise.
4919 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
4920 built-in stack checking is enabled.
4921 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
4922 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
4923 (probe_stack_range): New insn.
4925 2010-07-02 Richard Guenther <rguenther@suse.de>
4928 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
4929 for argument alignment.
4931 2010-07-02 Jan Hubicka <jh@suse.cz>
4933 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
4934 walk backwards from entry_bb to check only those basic block of header
4935 that might lead to execution of split part.
4936 (consider_split) ... here.
4937 (find_return_bb): Allow assignment in return BB.
4939 (split_function): Fix name of cloned function; take care of updating
4940 return value in return_bb containing move.
4942 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
4945 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
4948 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
4950 * implicit-zee.c (combine_reaching_defs): Fix long lines.
4951 (is_set_with_extension_DI): Delete.
4952 (struct zero_extend_info): New structure.
4953 (add_removable_zero_extend): New function.
4954 (find_removable_zero_extends): Use note_stores to find SETs.
4955 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
4957 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
4959 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
4960 is_miss_rate_acceptable. Pull total_positions computation
4961 out of the loops. Early return if miss_positions exceeds
4962 the acceptable threshold.
4963 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
4964 is_miss_rate_acceptable after renaming of compute_miss_rate.
4966 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
4969 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
4970 of 1000) for miss rate if the address diference is greater than or
4971 equal to the cache line size (the two reference will never hit the
4974 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
4977 * config/arm/arm-modes.def (CC_NOTB): New mode.
4978 * config/arm/arm.c (get_arm_condition_code): Handle it.
4979 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
4980 * config/arm/arm.md (subsi3_compare0_c): New pattern.
4981 (compare_scc): Now a define_and_split. Add a number of extra
4982 splitters before it.
4985 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
4987 (arm_rtx_costs_1): Likewise.
4988 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
4989 * config/arm/arm.md (is_arch6): New attribute.
4990 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
4991 extendqisi2): Tighten the code somewhat, avoiding invalid
4992 RTL to occur in the expander patterns.
4993 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
4994 (thumb1_zero_extendhisi2_v6): Delete.
4995 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
4996 (thumb1_extendhisi2_v6): Delete.
4997 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
4998 (thumb1_extendqisi2_v6): Delete.
4999 (zero_extendhisi2 for register input splitter): New.
5000 (zero_extendqisi2 for register input splitter): New.
5001 (thumb1_extendhisi2 for register input splitter): New.
5002 (extendhisi2 for register input splitter): New.
5003 (extendqisi2 for register input splitter): New.
5004 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
5005 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
5006 and add support for a register alternative requiring a split.
5007 (thumb1_zero_extendqisi2): Likewise.
5008 (arm_zero_extendqisi2): Likewise.
5009 (arm_extendhisi2): Likewise.
5010 (arm_extendqisi2): Likewise.
5012 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5014 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
5015 instead of an unspec.
5016 (neon_expand_vector_init): Likewise.
5017 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
5018 (UNSPEC_VDUP_LANE): Delete.
5019 (UNSPEC VDUP_N): Delete.
5020 (UNSPEC_VGET_HIGH): Delete.
5021 (UNSPEC_VGET_LANE): Delete.
5022 (UNSPEC_VGET_LOW): Delete.
5023 (UNSPEC_VMVN): Delete.
5024 (UNSPEC_VSET_LANE): Delete.
5025 (V_double_vector_mode): New.
5026 (vec_set<mode>_internal): Make code emitted match that for the
5027 corresponding intrinsics.
5028 (vec_setv2di_internal): Likewise.
5029 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
5030 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
5031 (neon_vset_lane<mode>): Combine double and quad patterns and
5032 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
5033 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
5034 (neon_vdup_n<mode>): Rewrite RTL without unspec.
5035 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
5036 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
5037 with neon_vdup_lanev2di, adjusting the pattern from the latter
5038 to be predicable for consistency.
5039 (neon_vdup_lane<mode>_internal): New.
5040 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
5041 to avoid using an unspec.
5042 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
5043 (neon_vdup_lanev2di): Turn into a define_expand.
5044 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
5045 (neon_vget_high<mode>): Replace with....
5046 (neon_vget_highv16qi): New pattern using canonical RTL.
5047 (neon_vget_highv8hi): Likewise.
5048 (neon_vget_highv4si): Likewise.
5049 (neon_vget_highv4sf): Likewise.
5050 (neon_vget_highv2di): Likewise.
5051 (neon_vget_low<mode>): Replace with....
5052 (neon_vget_lowv16qi): New pattern using canonical RTL.
5053 (neon_vget_lowv8hi): Likewise.
5054 (neon_vget_lowv4si): Likewise.
5055 (neon_vget_lowv4sf): Likewise.
5056 (neon_vget_lowv2di): Likewise.
5058 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
5059 test for this emitting vmov.
5060 (Vset_lane): Likewise.
5064 * doc/arm-neon-intrinsics.texi: Regenerated.
5066 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
5068 * config/arm/neon.md (vec_extractv2di): Correct error in register
5069 numbering to reconcile with neon_vget_lanev2di.
5071 2010-07-02 Richard Guenther <rguenther@suse.de>
5073 * tree-ssa-structalias.c (pt_solution_set_var): New function.
5074 * tree-ssa-alias.h (pt_solution_set_var): Declare.
5075 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
5076 points-to information.
5078 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
5080 * config/s390/s390.c (override_options): Adopt prefetching
5081 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
5083 2010-07-02 Jan Hubicka <jh@suse.cz>
5085 * df-problems.c (df_kill_notes): Do not collect dead notes.
5086 (df_set_note): Just call add_reg_note.
5087 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
5088 df_create_unused_note): Do not deal with lists of old notes.
5089 (df_note_bb_compute): Likewise.
5091 2010-07-02 Richard Guenther <rguenther@suse.de>
5093 * tree-ssa-structalias.c (find_func_aliases): Handle
5094 pointer alignment via BIT_AND_EXPR.
5095 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
5097 2010-07-02 Richard Guenther <rguenther@suse.de>
5099 * tree-data-ref.c (initialize_data_dependence_relation): Handle
5100 mismatching number of dimensions properly.
5102 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5105 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
5106 (lo_sum (high ...) ...) patterns generated by earlier passes.
5108 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5110 * doc/install.texi (Prerequisites): Document Perl requirement on
5112 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
5114 2010-07-02 Richard Guenther <rguenther@suse.de>
5117 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
5119 2010-07-02 Jan Hubicka <jh@suse.cz>
5122 * predict.c (predict_paths_for_bb): Handle case when control dependence
5123 BB has only abnormal edges.
5125 2010-07-02 Richard Guenther <rguenther@suse.de>
5127 PR tree-optimization/44748
5128 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
5129 the embedded conversion in MEM_REFs.
5131 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
5133 * reload.c: Include toplev.h.
5134 * recog.c: Likewise.
5135 * Makefile.in: Adjust dependencies.
5137 2010-07-01 Jakub Jelinek <jakub@redhat.com>
5140 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
5141 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
5143 2010-07-01 Richard Guenther <rguenther@suse.de>
5145 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
5148 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
5151 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
5154 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
5157 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5158 Make sure operand 0 dies.
5160 2010-07-01 Richard Guenther <rguenther@suse.de>
5164 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
5165 * doc/generic.texi (References to storage): Document MEM_REF.
5166 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
5167 (print_call_name): Likewise.
5168 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
5169 (build_simple_mem_ref_loc): New function.
5170 (mem_ref_offset): Likewise.
5171 * tree.h (build_simple_mem_ref_loc): Declare.
5172 (build_simple_mem_ref): Define.
5173 (mem_ref_offset): Declare.
5174 * fold-const.c: Include tree-flow.h.
5175 (operand_equal_p): Handle MEM_REF.
5176 (build_fold_addr_expr_with_type_loc): Likewise.
5177 (fold_comparison): Likewise.
5178 (fold_unary_loc): Fold
5179 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
5180 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
5181 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
5182 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
5183 (ptr_deref_may_alias_ref_p_1): Likewise.
5184 (ao_ref_base_alias_set): Properly differentiate base object for
5186 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
5187 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
5188 (indirect_refs_may_alias_p): Likewise.
5189 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
5191 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
5192 (call_may_clobber_ref_p_1): Likewise.
5193 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
5194 * expr.c (expand_assignment): Handle MEM_REF.
5195 (store_expr): Handle MEM_REFs from STRING_CSTs.
5196 (store_field): If expanding a MEM_REF of a non-addressable
5197 decl use bitfield operations.
5198 (get_inner_reference): Handle MEM_REF.
5199 (expand_expr_addr_expr_1): Likewise.
5200 (expand_expr_real_1): Likewise.
5201 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
5202 * alias.c (ao_ref_from_mem): Handle MEM_REF.
5203 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
5204 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
5205 (dr_analyze_indices): Likewise.
5206 (dr_analyze_alias): Likewise.
5207 (object_address_invariant_in_loop_p): Likewise.
5208 * gimplify.c (mark_addressable): Handle MEM_REF.
5209 (gimplify_cond_expr): Build MEM_REFs.
5210 (gimplify_modify_expr_to_memcpy): Likewise.
5211 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
5212 (gimple_fold_indirect_ref): Adjust.
5213 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
5214 * tree.def (MEM_REF): New tree code.
5215 * tree-dfa.c: Include toplev.h.
5216 (get_ref_base_and_extent): Handle MEM_REF.
5217 (get_addr_base_and_unit_offset): New function.
5218 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
5219 * gimple-fold.c (may_propagate_address_into_dereference): Handle
5221 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
5222 accesses if the array has just one dimension. Remove always true
5223 parameter. Do not require type compatibility here.
5224 (maybe_fold_offset_to_component_ref): Remove.
5225 (maybe_fold_stmt_indirect): Remove.
5226 (maybe_fold_reference): Remove INDIRECT_REF handling.
5227 Fold back to non-MEM_REF.
5228 (maybe_fold_offset_to_address): Simplify. Deal with type
5230 (maybe_fold_reference): Likewise.
5231 (maybe_fold_stmt_addition): Likewise. Also handle
5232 &ARRAY + I in addition to &ARRAY[0] + I.
5233 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
5234 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
5235 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
5236 * tree-ssa.c (useless_type_conversion_p): Make most pointer
5237 conversions useless.
5238 (warn_uninitialized_var): Handle MEM_REF.
5239 (maybe_rewrite_mem_ref_base): New function.
5240 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
5242 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
5243 INDIRECT_REF handling.
5244 (copy_tree_body_r): Handle MEM_REF.
5245 * gimple.c (is_gimple_addressable): Adjust.
5246 (is_gimple_address): Likewise.
5247 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
5248 invariant base are invariant.
5249 (is_gimple_min_lval): Adjust.
5250 (is_gimple_mem_ref_addr): New function.
5251 (get_base_address): Handle MEM_REF.
5252 (count_ptr_derefs): Likewise.
5253 (get_base_loadstore): Likewise.
5254 * gimple.h (is_gimple_mem_ref_addr): Declare.
5255 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
5256 * tree-cfg.c (verify_address): New function, split out from ...
5257 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
5258 the address operand of MEM_REFs. Verify MEM_REFs. Reject
5260 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
5261 INDIRECT_REF. Allow conversions.
5262 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
5263 a register does not change its size.
5264 (verify_types_in_gimple_reference): Verify MEM_REF.
5265 (verify_gimple_assign_single): Disallow INDIRECT_REF.
5267 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
5269 (mark_address_taken): Handle MEM_REF.
5270 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
5271 (get_asm_expr_operands): Pass opf_not_non_addressable.
5272 (get_expr_operands): Handle opf_[not_]non_addressable.
5273 Handle MEM_REF. Remove INDIRECT_REF handling.
5274 * tree-vrp.c (check_array_ref): Handle MEM_REF.
5275 (search_for_addr_array): Likewise.
5276 (check_array_bounds): Likewise.
5277 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
5278 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
5279 (ref_always_accessed_p): Likewise.
5280 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
5281 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
5283 * cgraphbuild.c (mark_load): Properly check for NULL result
5284 from get_base_address.
5285 (mark_store): Likewise.
5286 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
5287 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
5288 handling for MEM_REF.
5289 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
5290 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
5291 * builtins.c (stabilize_va_list_loc): Use the function ABI
5292 valist type if we couldn't canonicalize the argument type.
5293 Always dereference with the canonical va-list type.
5294 (maybe_emit_free_warning): Handle MEM_REF.
5295 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
5297 * builtins.c (fold_builtin_memory_op): Use ref-all types
5298 for all memcpy foldings.
5299 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
5300 (build_outer_var_ref): Likewise.
5301 (scan_omp_1_op): Likewise.
5302 (lower_rec_input_clauses): Likewise.
5303 (lower_lastprivate_clauses): Likewise.
5304 (lower_reduction_clauses): Likewise.
5305 (lower_copyprivate_clauses): Likewise.
5306 (expand_omp_atomic_pipeline): Likewise.
5307 (expand_omp_atomic_mutex): Likewise.
5308 (create_task_copyfn): Likewise.
5309 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
5310 Remove old union trick. Initialize constant offsets.
5311 (ao_ref_init_from_vn_reference): Likewise. Do not handle
5312 INDIRECT_REF. Init base_alias_set properly.
5313 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
5314 (vn_reference_fold_indirect): Adjust for MEM_REFs.
5315 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
5317 (may_insert): Remove.
5318 (visit_reference_op_load): Do not test may_insert.
5319 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
5320 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
5321 a field to store the constant offset this op applies.
5322 (run_scc_vn): Adjust prototype.
5323 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
5324 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
5325 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
5326 bother about volatile qualifiers on pointers.
5327 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
5328 * tree-ssa-loop-ivopts.c
5329 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
5330 (strip_offset_1): Likewise.
5331 (find_interesting_uses_address): Replace INDIRECT_REF handling with
5333 (get_computation_cost_at): Likewise.
5334 * ipa-pure-const.c (check_op): Handle MEM_REF.
5335 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
5336 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
5338 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
5339 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
5340 (eliminate_local_variables_1): Likewise.
5341 (create_call_for_reduction_1): Likewise.
5342 (create_loads_for_reductions): Likewise.
5343 (create_loads_and_stores_for_name): Likewise.
5344 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
5345 (ssa_accessed_in_tree): Handle MEM_REF.
5346 (ssa_accessed_in_assign_rhs): Likewise.
5347 (update_type_size): Likewise.
5348 (analyze_accesses_for_call_stmt): Likewise.
5349 (analyze_accesses_for_assign_stmt): Likewise.
5350 (transform_access_sites): Likewise.
5351 (transform_allocation_sites): Likewise.
5352 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
5353 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5354 not handle INDIRECT_REF.
5355 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
5356 (cond_store_replacement): Likewise.
5357 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5358 MEM_REF, no not handle INDIRECT_REFs.
5359 (insert_into_preds_of_block): Properly initialize avail.
5360 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
5361 for ARRAY_REFs. Properly handle reference lookups that
5362 require a bit re-interpretation.
5363 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
5364 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
5365 (build_ref_for_offset_1): Remove.
5366 (build_ref_for_offset): Build MEM_REFs.
5367 (gate_intra_sra): Disable for now.
5368 (sra_ipa_modify_expr): Handle MEM_REF.
5369 (ipa_early_sra_gate): Disable for now.
5370 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
5372 (disqualify_base_of_expr): Likewise.
5373 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
5375 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
5376 Use mem_ref_offset. Remove bogus folding.
5377 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
5378 (make_fancy_name_1): Add support for MEM_REF.
5379 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
5380 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
5381 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
5382 (compute_complex_ancestor_jump_func): Likewise.
5383 (ipa_analyze_virtual_call_uses): Likewise.
5384 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
5385 INDIRECT_REF folding with more generalized MEM_REF folding.
5386 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
5387 (forward_propagate_addr_into_variable_array_index): Also handle
5388 &ARRAY + I in addition to &ARRAY[0] + I.
5389 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
5390 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
5391 creates assignments with overlap.
5392 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
5393 (get_frame_field): Likewise.
5394 (get_nonlocal_debug_decl): Likewise.
5395 (convert_nonlocal_reference_op): Likewise.
5396 (struct nesting_info): Add mem_refs pointer-set.
5397 (create_nesting_tree): Allocate it.
5398 (convert_local_reference_op): Insert to be folded mem-refs.
5399 (fold_mem_refs): New function.
5400 (finalize_nesting_tree_1): Perform defered folding of mem-refs
5401 (free_nesting_tree): Free the pointer-set.
5402 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
5403 (vectorizable_load): Likewise.
5404 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
5405 (propagate_with_phi): Likewise.
5406 * tree-object-size.c (addr_object_size): Handle MEM_REFs
5407 instead of INDIRECT_REFs.
5408 (compute_object_offset): Handle MEM_REF.
5409 (plus_stmt_object_size): Handle MEM_REF.
5410 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
5412 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
5413 (symbol_marked_for_renaming): Likewise.
5414 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
5415 (fold-const.o): Add $(TREE_FLOW_H).
5416 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
5417 (find_func_clobbers): Likewise.
5418 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
5419 (decompose_access): Likewise.
5420 (replace_field_acc): Likewise.
5421 (replace_field_access_stmt): Likewise.
5422 (insert_new_var_in_stmt): Likewise.
5423 (get_stmt_accesses): Likewise.
5424 (reorg_structs_drive): Disable.
5425 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
5426 (ix86_canonical_va_list_type): Likewise.
5428 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
5431 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5432 * target.def (struct gcc_target): Replace enum reg_class with
5433 reg_class_t in hook argument / return types.
5434 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
5435 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
5436 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5437 * targhooks.h (default_branch_target_register_class): Likewise.
5438 (default_ira_cover_classes, default_secondary_reload): Likewise.
5439 (default_memory_move_cost, default_register_move_cost): Likewise.
5440 * targhooks.c (default_branch_target_register_class): Likewise.
5441 (default_ira_cover_classes, default_secondary_reload): Likewise.
5442 (default_memory_move_cost, default_register_move_cost): Likewise.
5443 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
5444 * bt-load.c (branch_target_load_optimize): Likewise.
5445 * ira.c (setup_cover_and_important_classes): Likewise.
5446 * ira-costs.c (copy_cost): Likewise.
5447 * reload1.c (emit_input_reload_insns): Likewise.
5448 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5449 * config/frv/frv.c (frv_secondary_reload): Likewise.
5450 * config/s390/s390.c (s390_secondary_reload): Likewise.
5451 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
5452 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
5453 (ix86_register_move_cost): Likewise.
5454 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
5455 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
5456 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
5457 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
5458 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
5459 (rs6000_ira_cover_classes): Likewise.
5460 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
5461 * config/picochip/picochip-protos.h (picochip_secondary_reload):
5463 * config/pa/pa.c (pa_secondary_reload): Likewise.
5464 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
5465 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
5466 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
5467 * doc/tm.texi: Regenerate.
5469 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
5472 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
5474 (build_alias_set_optimal_p): Likewise.
5475 (build_base_obj_set_for_drs): Likewise.
5477 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
5479 * target.def: Remove comment about licensing problems of function
5482 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
5483 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
5484 * doc/tm.texi: Regenerate.
5486 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
5487 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
5489 * target.def (enum_va_list_p): Use DEFHOOK.
5490 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
5491 Rename ptype to ptree.
5492 * doc/tm.texi: Regenerate.
5494 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
5495 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
5496 * doc/tm.texi: Regenerate.
5498 * target.def (memory_move_cost): Use DEFHOOK.
5499 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
5500 Rename regclass AKA class to rclass.
5501 * doc/tm.texi: Regenerate.
5503 * target.def (pragma_parse): Use DEFHOOK.
5504 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
5505 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
5506 * doc/tm.texi: Regenerate.
5508 * target.def (pass_by_reference): Use DEFHOOK.
5509 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
5510 * doc/tm.texi: Regenerate.
5512 * target.def (resolve_overloaded_builtin): Rename params to arglist.
5514 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
5515 * doc/tm.texi: Regenerate.
5517 * target.def (return_pops_args): Use DEFHOOK.
5518 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
5519 Rename stack-size to size.
5520 * doc/tm.texi: Regenerate.
5522 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
5523 last-sched_cycle to last_clock, cur_cycle to clock.
5524 * doc/tm.texi.in: Use @hook.
5525 * doc/tm.texi: Regenerate.
5527 * target.def (print_operand, print_operand_address): Update comment.
5528 (print_operand_punct_valid_p): Likewise.
5530 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5532 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
5534 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
5535 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
5537 * regrename.c: Do not include toplev.h. Include rtl-error.h.
5538 * rtl-error.c: Likewise.
5539 * reload.c: Likewise.
5540 * recog.c: Likewise.
5541 * sel-sched.c: Likewise.
5542 * function.c: Likewise.
5543 * reg-stack.c: Likewise.
5544 * cfgrtl.c: Likewise.
5545 * reload1.c: Likewise.
5546 * final.c: Include rtl-error.
5547 * Makefile.in: Adjust dependencies.
5549 2010-06-30 Jan Hubicka <jh@suse.cz>
5551 PR middle-end/PR44706
5552 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
5553 to return the value.
5555 2010-06-30 Michael Matz <matz@suse.de>
5558 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
5559 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
5560 a gimple reg, attach the original VDEF to the last store in the
5563 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
5566 * config/darwin.c (darwin_override_options): Use renamed
5567 targetm.asm_out.emit_unwind_label.
5569 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
5571 PR tree-optimization/39799
5572 * tree-inline.c (remap_ssa_name): Initialize variable only if
5573 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5575 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
5577 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
5579 2010-06-30 Richard Guenther <rguenther@suse.de>
5582 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
5583 against oscillation with reverse peephole2.
5585 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
5588 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5591 2010-06-30 Nick Clifton <nickc@redhat.com>
5593 * config/rx/rx-modes.def: New file.
5594 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
5595 (CC_REGNUM): Define.
5596 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
5598 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
5599 (SELECT_CC_MODE): Define.
5600 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
5601 (reg:CC CC_REG) instead of (cc0).
5602 (attr "cc"): Delete.
5603 (cbranchsi4): Do not split compare and branch here. Instead move
5605 (cbranchsi4_<code>): ... here. New patterns.
5606 (cmpsi): Call rx-compare_redundant to find out if it is necessary
5607 to emit the compare instruction.
5608 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5610 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5611 FIRST_PSEUDO_REGNUM.
5612 (rx_expand_prologue, rx_expand_epilogue): Likewise.
5613 (rx_notice_update_cc): Delete.
5614 (rx_cc_modes_compatible): New function.
5615 (flags_needed_for_conditional): New function.
5616 (flags_from_mode): New function.
5617 (rx_compare_redundant): New function - scans backwards through
5618 insn list to find out if condition flags are already set correctly.
5619 (TARGET_CC_MODES_COMPATIBLE): Define.
5620 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5622 * config/rx/rx.h (BRANCH_COST): Define.
5623 (REGISTER_MOVE_COST): Define.
5624 * config/rx/predicates (rx_source_operand): Allow all constant types.
5625 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5626 (tstsi4): New pattern.
5627 * config/rx/rx.c (rx_memory_move_cost): Define.
5628 (TARGET_MEMORY_MOVE_COST): Define.
5630 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5632 * tree.h (block_may_fallthru): Declare here.
5633 * tree-flow.h (block_may_fallthru): Do not declare here.
5634 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5636 * Makefile.in (c-typeck.o): Update dependencies.
5638 2010-06-30 Jakub Jelinek <jakub@redhat.com>
5641 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5642 * cselib.c (cfa_base_preserved_regno): New static variable.
5643 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5644 of REGNO (cfa_base_preserved_val->locs->loc).
5645 (cselib_preserve_cfa_base_value): Add regno argument, set
5646 cfa_base_preserved_regno to it.
5647 (cselib_invalidate_regno): Allow removal of registers other than
5648 cfa_base_preserved_regno from cfa_base_preserved_val.
5649 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5650 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5651 of MEM addresses, if not on LHS.
5652 (reverse_op): Don't add reverse ops for cfa_base_rtx.
5653 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5655 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
5657 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5659 (peep2_buf_position): New static function.
5660 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5661 peephole2_optimize): Use it.
5662 (peep2_attempt, peep2_update_life): New static functions, broken out
5663 of peephole2_optimize.
5664 (peep2_fill_buffer): New static function.
5665 (peephole2_optimize): Change the main loop to try to fill the buffer
5666 with the maximum number of insns before matching them against
5667 peepholes. Use a forward scan. Remove special case for targets with
5668 conditional execution.
5669 * genrecog.c (change_state): Delete dead code.
5670 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5671 Rewrite so as not to expect the second insn to have had a peephole
5674 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5676 * genhooks.c (emit_findices): Cast field precision to int.
5677 (emit_documentation): Likewise.
5679 2010-06-29 Jakub Jelinek <jakub@redhat.com>
5681 PR tree-optimization/43801
5682 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5683 if old_decl was DECL_ONE_ONLY.
5686 * dwarf2out.c (add_accessibility_attribute): New function.
5687 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5688 instead of adding DW_AT_accessibility manually.
5689 (gen_enumeration_type_die, gen_struct_or_union_type_die,
5690 gen_typedef_die): Use it.
5692 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5694 * vmsdbgout.c (full_name): Just output the file name if not native.
5696 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5698 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5699 (funcnam_table): New static table.
5700 (funcnum_table): New static table.
5701 (write_rtnbeg): Write value saved in funcnum_table.
5702 (write_rtnend): Write value saved in funcnum_table.
5703 (vmsdbgout_begin_function): Save current function info in
5704 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5705 (vmsdbgout_finish): Iterate over funcnum_table.
5707 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5709 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5710 (vmsdbgout_type_decl): Declare
5711 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5712 (FUNC_EPILOGUE_LABEL): New macro
5713 (vmsdbgout_begin_epilogue): New function.
5714 (vmsdbgout_type_decl): New function.
5716 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5718 * vmsdbg.h: Update copyright.
5720 2010-06-29 Douglas B Rupp <rupp@gnat.com>
5722 * vmsdbg.h (DST_K_TBG): New DST constant.
5723 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5724 (write_modbeg): Cast module_language to avoid warning.
5725 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5727 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5730 * target.def, doc/tm.texi.in, genhooks.c: New files.
5731 * target.h: Instead of defining individual hook members,
5732 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5734 * target-def.h: Instead of defining individual hook initializers,
5735 include target-hooks-def.h.
5736 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5737 targetm.live_on_entry -> targetm.extra_live_on_entry
5738 targetm.sched.md_finish ->targetm.sched.finish
5739 targetm.sched.md_init -> targetm.sched.init
5740 targetm.sched.md_init_global -> targetm.sched.init_global
5741 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
5742 targetm.asm_out.except_table_label ->
5743 targetm.asm_out.emit_except_table_label
5744 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
5745 targetm.target_help -> targetm.help
5746 targetm.vectorize.builtin_support_vector_misalignment ->
5747 targetm.vectorize.support_vector_misalignment
5748 targetm.file_start_app_off -> targetm.asm_file_start_app_off
5749 targetm.file_start_file_directive ->
5750 targetm.asm_file_start_file_directive
5751 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
5752 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
5753 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
5754 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
5755 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
5756 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
5757 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
5758 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
5759 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
5760 * Makefile.in (TARGET_H): Depend on target.def.
5761 (TARGET_DEF_H): Depend on target-hooks-def.h.
5762 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
5763 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
5764 * doc/tm.texi: Regenerate.
5766 * Makefile.in (s-tm-texi): Remove stray tab / rule.
5768 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
5769 (targetm.sched.init): Likewise.
5771 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5774 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
5775 (function_arg_advance_32): Const-ify TYPE parameter.
5776 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
5777 (ix86_function_arg_advance): Change type of NAMED to bool.
5778 (function_arg_32): Const-ify CUM and TYPE parameters.
5779 (function_arg_64): Likewise. Change type of NAMED to bool.
5780 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
5782 (ix86_function_arg): Change type of NAMED to bool.
5783 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
5784 last argument as a bool.
5786 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5788 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
5789 (OVERRIDE_OPTIONS): Add note of obsolescence.
5790 Replace references with references to TARGET_OPTION_OVERRIDE.
5791 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
5793 * targhooks.c (default_target_option_override): New function.
5794 * targhooks.h (default_target_option_override): Declare.
5795 * target.h (struct gcc_target): Add override member to
5796 target_option member.
5797 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
5798 targetm.target_option.override call.
5799 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
5800 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
5802 2010-06-29 Jan Hubicka <jh@suse.cz>
5804 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
5806 2010-06-29 Jan Hubicka <jh@suse.cz>
5808 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
5810 (rebuild_frequencies): New function.
5811 * predict.h (rebuild_frequencies): Declare.
5812 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
5813 entry block and edge reaching new_entry.
5814 (tree_function_versioning): When doing partial cloning, rebuild
5815 frequencies when done.
5816 * passes.c (execute_function_todo): Use rebild_frequencies.
5818 2010-06-29 Richard Guenther <rguenther@suse.de>
5820 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
5821 * tree-flow.h (enum noalias_state): Remove.
5822 (struct var_ann_d): Remove noalias_state member.
5824 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
5827 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
5828 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
5829 (maddhidi4): Likewise.
5831 Revert parts of the change for PR25130.
5832 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5835 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5837 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
5838 targetm.calls.function_incoming_arg, and
5839 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
5840 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
5841 * target.h (struct gcc_target): Add function_arg_advance,
5842 function_arg, and function_incoming_arg fields.
5843 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
5844 (TARGET_FUNCTION_INCOMING_ARG): Define.
5845 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
5846 and TARGET_FUNCTION_INCOMING_ARG.
5847 * targhooks.h (default_function_arg_advance): Declare.
5848 (default_function_arg, default_function_incoming_arg): Declare.
5849 * targhooks.c (default_function_arg_advance): New function.
5850 (default_function_arg, default_function_incoming_arg): New function.
5851 * config/i386/i386.c (function_arg_advance): Rename to...
5852 (ix86_function_arg_advance): ...this. Make static.
5853 (function_arg): Rename to...
5854 (ix86_function_arg): ...this. Make static.
5855 (TARGET_FUNCTION_ARG_ADVANCE): Define.
5856 (TARGET_FUNCTION_ARG): Define.
5857 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
5858 (FUNCTION_ARG): Delete.
5859 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
5860 (function_arg): Delete prototype.
5862 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5864 * reginfo.c (init_reg_sets_1): Adjust comments.
5865 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
5866 * calls.c (prepare_call_address): Likewise.
5867 (emit_call_1): Use targetm.calls.return_pops_args.
5868 (expand_call): Likewise.
5869 * function.c (assign_parms): Likewise.
5870 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
5871 * target.h (struct gcc_target) [struct calls]: Add
5872 return_pops_args field.
5873 * targhooks.h (default_return_pops_args): Declare.
5874 * targhooks.c (default_return_pops_args): Define.
5875 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
5876 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
5877 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
5878 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
5880 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
5881 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
5882 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
5883 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
5884 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
5885 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
5886 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
5887 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
5888 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
5889 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
5890 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
5891 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
5892 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
5893 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
5894 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
5895 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
5896 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
5897 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
5898 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
5899 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
5900 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
5901 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
5902 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
5903 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
5904 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
5905 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
5906 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
5907 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
5908 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
5909 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
5910 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
5911 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
5912 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
5913 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
5914 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
5915 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
5916 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
5917 * config/i386/i386.c (ix86_return_pops_args): Make static.
5919 (TARGET_RETURN_POPS_ARGS): Define.
5920 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
5921 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
5922 (TARGET_RETURN_POPS_ARGS): Define.
5923 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
5924 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
5925 (TARGET_RETURN_POPS_ARGS): Define.
5927 2010-06-29 Richard Guenther <rguenther@suse.de>
5930 * tree-inline.c (initialize_inlined_parameters): Make sure
5931 to remap the inlined parameter variable substitutions types.
5933 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
5935 PR rtl-optimization/44659
5936 * combine.c (make_compound_operation) <SUBREG>: Do not return the
5937 result of force_to_mode if it partially re-expanded the compound.
5939 2010-06-28 Jan Hubicka <jh@suse.cz>
5942 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
5945 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5947 * double-int.h (force_fit_type_double): Remove declaration.
5948 * double-int.c (force_fit_type_double): Move to tree.c.
5949 * tree.h (force_fit_type_double): Declare.
5950 * tree.h (force_fit_type_double): Moved from double-int.c. Use
5951 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
5952 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
5953 * convert.c (convert_to_pointer): Adjust call to
5954 force_fit_type_double.
5955 * tree-vrp.c (extract_range_from_assert,
5956 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
5957 * fold-const.c: Update comment.
5958 (int_const_binop, fold_convert_const_int_from_int,
5959 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
5960 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
5961 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
5962 round_up_loc): Adjust call to force_fit_type_double.
5964 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5966 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
5968 2010-06-28 Martin Jambor <mjambor@suse.cz>
5970 * tree-sra.c (convert_callers): New parameter, change fndecls of
5972 (modify_function): Pass the old decl to convert_callers.
5974 2010-06-28 Martin Jambor <mjambor@suse.cz>
5976 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
5977 ipa_check_create_node_params and ipa_initialize_node_params with
5978 checking asserts they are not necessary.
5980 2010-06-28 Jan Hubicka <jh@suse.cz>
5982 PR tree-optimization/44687
5983 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
5985 2010-06-28 Martin Jambor <mjambor@suse.cz>
5988 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
5989 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
5990 instead of BINFO_BASE_BINFO.
5992 2010-06-28 Michael Matz <matz@suse.de>
5995 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
5996 proper VDEF chain for intermediate stores in the sequence.
5998 2010-06-28 Jan Hubicka <jh@suse.cz>
6000 PR tree-optimization/44357
6001 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
6002 uninlinable functions.
6004 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6006 * config.gcc (powerpc*-*-*): Handle titan.
6007 * config/rs6000/rs6000.c (titan_cost): New costs.
6008 (rs6000_override_options): Add "titan" to processor_target_table.
6009 Add Titan to branch alignment logic.
6010 Correctly set rs6000_cost for titan.
6011 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
6012 * config/rs6000/titan.md: New file.
6013 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
6015 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
6017 * tree-browser.c (TB_history_stack): Convert to a VEC.
6018 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
6019 (TB_history_prev): Likewise.
6021 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
6023 * vec.h (vec_heap_free): Add parentheses around free.
6025 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6027 * system.h: Poison GCC_EXCEPT_H for front-end files.
6029 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
6031 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
6032 Define to NULL by default.
6033 * except.h: Define GCC_EXCEPT_H.
6034 (doing_eh): Remove prototype.
6035 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
6036 (lang_protect_cleanup_actions): Remove.
6037 * except.c (lang_protect_cleanup_actions): Remove.
6039 (gen_eh_region): Don't check doing_eh here.
6040 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
6041 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
6042 instead of lang_protect_cleanup_actions.
6043 * omp-low.c (maybe_catch_exception): Likewise.
6044 * Makefile.in: Update dependencies.
6046 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
6048 * cgraph.h (struct varpool_node): new used_from_object_file flag.
6049 (struct cgraph_local_info): new used_from_object_file flag.
6050 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
6051 (cgraph_clone_node): initialize used_from_object_file.
6052 (cgraph_create_virtual_clone): initialize used_from_object_file.
6053 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
6054 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
6055 when compiling with -fwhole-program.
6056 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
6058 * ipa.c (function_and_variable_visibility): Set externally_visible
6059 flag of varpool_node if used_from_object_file flag is set.
6060 (cgraph_externally_visible_p): check used_from_object_file flag.
6061 * doc/invoke.texi (-fwhole-program option): Change description of
6062 externally_visible attribute accordingly.
6063 * doc/extend.texi (externally_visible): Ditto.
6065 2010-06-27 Jan Hubicka <jh@suse.cz>
6067 * params.def (max-inline-insns-auto): Default to 40.
6068 * doc/invoke.texi (max-inline-insns-auto): Document the change.
6070 2010-06-27 Jan Hubicka <jh@suse.cz>
6074 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
6076 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
6077 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
6079 2010-06-27 Anatoly Sokolov <aesok@post.ru>
6081 * target.h (struct gcc_target): Add register_move_cost field.
6082 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
6083 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
6084 * targhooks.c (default_register_move_cost): New function.
6085 * targhooks.h (default_register_move_cost): Declare function.
6086 * defaults.h (REGISTER_MOVE_COST): Delete.
6087 * ira-int.h (ira_register_move_cost): Update comment.
6088 * ira.c (ira_register_move_cost): Update comment.
6089 * reload.h (register_move_cost): Declare.
6090 * reginfo.c (register_move_cost): New function.
6091 (move_cost): Update comment.
6092 (init_move_cost, memory_move_secondary_cost): Replace
6093 REGISTER_MOVE_COST with register_move_cost.
6094 * postreload.c (reload_cse_simplify_set): (Ditto.).
6095 * reload.c (find_valid_class, find_reloads): (Ditto.).
6096 * reload1.c (choose_reload_regs): (Ditto.).
6097 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
6098 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
6099 * doc/md.texi (can_create_pseudo_p): Update documentation.
6101 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6102 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6103 * config/i386/i386.h (ix86_memory_move_cost): Make static.
6104 (TARGET_MEMORY_MOVE_COST): Define.
6106 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6107 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
6108 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
6109 (TARGET_MEMORY_MOVE_COST): Define.
6111 2010-06-27 Richard Guenther <rguenther@suse.de>
6113 PR tree-optimization/44683
6114 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
6115 false edge from the inverted condition.
6117 2010-06-27 Richard Guenther <rguenther@suse.de>
6120 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
6121 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
6122 for register LHS. Or non-store assignments.
6124 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
6126 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
6127 (sparc_emit_set_const64): Likewise. Remove disabled code.
6128 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
6129 (sparc_emit_set_const64): Likewise.
6131 2010-06-26 Catherine Moore <clm@codesourcery.com>
6133 * config/mips/mips.md (alu_type): New attribute.
6134 (type): Infer type from alu_type.
6135 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
6136 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
6137 *subsi3_extended, negsi2, negdi2, *low<mode>,
6138 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
6139 xor<mode>3, *nor<mode>3,
6140 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
6141 *zero_extendhi_truncqi): Set alu_type instead of type.
6143 2010-06-26 Douglas B Rupp <rupp@gnat.com>
6145 * config/alpha/alpha.c (alpha_need_linkage): Adjust
6146 splay_tree_new_ggc call.
6147 (alpha_use_linkage): Likewise.
6149 2010-06-26 Joseph Myers <joseph@codesourcery.com>
6151 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
6152 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
6153 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
6154 (static_specs): Remove switches_need_spaces.
6155 (process_command, do_self_spec): Hardcode handling "-o" instead of
6156 checking switches_need_spaces.
6157 * system.h (SWITCHES_NEED_SPACES): Poison.
6159 2010-06-26 Richard Guenther <rguenther@suse.de>
6161 PR tree-optimization/44393
6162 * tree-loop-distribution.c (generate_loops_for_partition): Fix
6163 stmt removal and VOP renaming.
6164 (generate_memset_zero): Remove redundant stmt updating.
6165 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
6166 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
6168 2010-06-26 Jan Hubicka <jh@suse.cz>
6170 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
6171 edges comming from header are equivalent.
6172 (visit_bb): Handle PHIs correctly.
6173 * tree-inline.c (copy_phis_for_bb): Be able to copy
6174 PHI from entry edge.
6175 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
6177 2010-06-26 Richard Guenther <rguenther@suse.de>
6180 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
6181 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
6183 2010-06-26 Joseph Myers <joseph@codesourcery.com>
6185 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
6186 add_infile, alloc_switch): New.
6187 (process_command): Remove variable lang_n_infiles. Process
6188 options in a single pass. Use new functions for allocating
6189 infiles and switches arrays. Properly skip operands of
6190 -Xpreprocessor and -Xassembler.
6192 2010-06-26 Jan Hubicka <jh@suse.cz>
6195 * cgraphunit.c (cgraph_function_versioning): Remove wrong
6196 cgraph_make_decl_local call; fix typo copying RTL data.
6198 2010-06-25 DJ Delorie <dj@redhat.com>
6200 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
6201 (m32c_output_aligned_common): Likewise.
6202 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
6203 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6204 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
6205 (m32c_register_pragmas): Register it.
6206 * config/m32c/m32c.c (m32c_get_pragma_address): New.
6207 (m32c_insert_attributes): Set #pragma address decls volatile.
6208 (pragma_entry_eq): New.
6209 (pragma_entry_hash): New.
6210 (m32c_note_pragma_address): New.
6211 (m32c_get_pragma_address): New.
6212 (m32c_output_aligned_common): New.
6213 * doc/extend.texi: Document the new pragma.
6215 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
6217 * config/m32c/predicates.md (m32c_any_operand): Check the code
6218 instead of memory_operand so as to allow matching volatile MEMs.
6219 (m32c_nonimmediate_operand): Likewise.
6220 (mra_operand): Allow volatiles.
6222 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
6225 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
6226 address if the offset is unknown.
6228 2010-06-25 Douglas B Rupp <rupp@gnat.com>
6230 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
6231 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
6232 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
6233 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
6234 to ia64_start_function. Invoke it.
6235 * config/ia64/ia64.c (ia64_start_function): Call new function
6236 dwarf2out_vms_debug_main_pointer.
6238 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6240 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
6241 statements computing the true predicate.
6243 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6245 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
6246 to boolean_true_node.
6247 (reset_bb_predicate): New.
6248 (predicate_bbs): Call reset_bb_predicate.
6250 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6252 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
6253 (tree_if_conversion): Returns true when something has been changed.
6254 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
6257 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
6259 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
6260 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
6261 * tree-if-conv.c: Include dbgcnt.h.
6262 (tree_if_conversion): Use if_conversion_tree to count the number of
6263 if-convertible loops.
6265 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
6267 * common.opt (fprefetch-loop-arrays): Re-define
6268 -fprefetch-loop-arrays as a tri-state option with the initial
6270 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
6271 pass only when flag_prefetch_loop_arrays > 0.
6272 * toplev.c (process_options): Note that, with tri-states,
6273 flag_prefetch_loop_arrays>0 means prefetching is enabled.
6274 * config/i386/i386.c (override_options): Enable prefetching at -O3
6275 for a set of CPUs that sw prefetching is helpful.
6276 (software_prefetching_beneficial_p): New. Return TRUE if software
6277 prefetching is beneficial for the given CPU.
6279 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
6281 PR rtl-optimization/44326
6282 * implicit-zee.c (find_removable_zero_extends): Replace
6283 INSN_P with NONDEBUG_INSN_P.
6285 2010-06-25 Martin Jambor <mjambor@suse.cz>
6287 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
6288 (struct ipa_node_params): Removed the modification_analysis_done flag.
6289 (ipa_is_param_modified): Removed.
6290 (ipa_analyze_node): Declare.
6291 (ipa_compute_jump_functions): Remove declaration.
6292 (ipa_count_arguments): Likewise.
6293 (ipa_detect_param_modifications): Likewise.
6294 (ipa_analyze_params_uses): Likewise.
6295 * ipa-prop.c (struct param_analysis_info): New type.
6296 (visit_store_addr_for_mod_analysis): Removed.
6297 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
6298 moved down in the file.
6299 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
6300 (ipa_count_arguments): Made static.
6301 (mark_modified): New function.
6302 (is_parm_modified_before_call): New function.
6303 (compute_pass_through_member_ptrs): New parameter parms_info, call
6304 is_parm_modified_before_call instead of ipa_is_param_modified.
6305 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
6306 it to compute_pass_through_member_ptrs.
6307 (ipa_compute_jump_functions): New parameter parms_info, pass it to
6308 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
6309 on the callee if it is analyzed. Made static.
6310 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
6311 is_parm_modified_before_call instead of ipa_is_param_modified.
6312 (ipa_analyze_call_uses): New parameter parms_info, pass it to
6313 ipa_analyze_indirect_call_uses.
6314 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
6315 ipa_analyze_call_uses.
6316 (ipa_analyze_params_uses): New parameter parms_info, pass it to
6317 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
6318 (ipa_analyze_node): New function.
6319 (ipa_print_node_params): Do not dump the modified flag.
6320 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
6321 it. Do not stream the modified parameter flag.
6322 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
6323 it. Do not stream the modified parameter flag.
6324 * ipa-cp.c (ipcp_analyze_node): Removed.
6325 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
6326 with only a call to ipa_analyze_node.
6327 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
6328 node with only a call to ipa_analyze_node.
6330 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6332 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
6334 2010-06-25 Jan Hubicka <jh@suse.cz>
6336 * tree-pass.h (pass_split_functions): Declare.
6337 * opts.c (decode_options): Enable function splitting at -O2
6338 * timevar.def (TV_IPA_FNSPLIT): New macro.
6339 * ipa-split.c: New file.
6340 * common.opt (-fpartial-inlining): New flag.
6341 * Makefile.in (ipa-split.o): New object file.
6342 * passes.c (init_optimization_passes): Add ipa-split.
6343 * params.def (partial-inlining-entry-probability): New parameters.
6344 * doc/invoke.texi (-fpartial-inlining): New.
6346 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6349 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
6350 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
6351 (gimplify_expr): Likewise.
6353 2010-06-25 Martin Jambor <mjambor@suse.cz>
6355 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
6356 statements instead of bailing out on them.
6357 (ipa_analyze_indirect_call_uses): Do not require that loads from the
6358 parameter are in the same BB as the condition. Update comments.
6360 2010-06-25 Jakub Jelinek <jakub@redhat.com>
6363 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
6364 true or always false, return NULL_TREE.
6365 (tree_unswitch_single_loop): Optimize conditions even when reaching
6366 max-unswitch-level parameter. If num > 0, optimize first all conditions
6367 using entry checks, then do still reachable block discovery and consider
6368 only conditions in still reachable basic blocks in the loop.
6370 PR tree-optimization/44539
6371 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
6372 the call doesn't have LHS, but has VDEF.
6374 2010-06-25 Joseph Myers <joseph@codesourcery.com>
6376 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
6377 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
6378 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
6379 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
6380 * system.h (MODIFY_TARGET_NAME): Poison.
6382 2010-06-25 Alan Modra <amodra@gmail.com>
6384 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
6385 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
6386 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6387 CMODEL_LARGE as default.
6388 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
6389 (offsettable_ok_by_alignment): Delete.
6390 (rs6000_emit_move): Remove mcmodel=medium optimization.
6392 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
6394 With large parts from Jim Wilson:
6396 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
6397 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6398 * optabs.c (optab_for_tree_code): Likewise.
6399 (expand_widen_pattern_expr): Likewise.
6400 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
6401 out of execute_optimize_widening_mul.
6402 (convert_plusminus_to_widen): New function.
6403 (execute_optimize_widening_mul): Use the two new functions.
6404 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
6405 Remove code to generate widening multiply-accumulate. Add support
6406 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6407 * gimple-pretty-print.c (dump_ternary_rhs): New function.
6408 (dump_gimple_assign): Call it when appropriate.
6409 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
6410 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6411 (expand_gimple_stmt_1): Likewise.
6412 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
6413 WIDEN_MULT_MINUS_EXPR.
6414 * tree-ssa-operands.c (get_expr_operands): Likewise.
6415 * tree-inline.c (estimate_operator_cost): Likewise.
6416 * gimple.c (extract_ops_from_tree_1): Renamed from
6417 extract_ops_from_tree. Add new arg for a third operand; fill it.
6418 (gimple_build_assign_stat): Support operations with three operands.
6419 (gimple_build_assign_with_ops_stat): Likewise.
6420 (gimple_assign_set_rhs_from_tree): Likewise.
6421 (gimple_assign_set_rhs_with_ops_1): Renamed from
6422 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
6423 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
6424 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
6425 WIDEN_MULT_MINUS_EXPR.
6426 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
6427 (extract_ops_from_tree_1): Adjust declaration.
6428 (gimple_assign_set_rhs_with_ops_1): Likewise.
6429 (gimple_build_assign_with_ops): Pass NULL for last operand.
6430 (gimple_build_assign_with_ops3): New macro.
6431 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
6432 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
6434 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
6435 (verify_gimple_assign): Call it.
6436 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
6437 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
6438 functions for dealing with three-operand statements.
6439 * tree.c (commutative_ternary_tree_code): New function.
6440 * tree.h (commutative_ternary_tree_code): Declare it.
6441 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
6443 (gimple_assign_nonzero_warnv_p): Likewise.
6444 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
6445 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
6446 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
6447 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
6448 (struct hashtable_expr): New member ternary in the union.
6449 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
6450 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
6451 (iterative_hash_hashable_expr): Likewise.
6452 (print_expr_hash_elt): Handle EXPR_TERNARY.
6453 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
6454 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
6455 statements. Handle GIMPLE_TERNARY_RHS.
6457 2010-06-25 Jan Hubicka <jh@suse.cz>
6459 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
6461 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
6464 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
6465 parameters are not good.
6466 (c_parser_parameter_declaration): Error unknown type name if the type
6467 name can't start declaration specifiers.
6469 2010-06-25 Joseph Myers <joseph@codesourcery.com>
6471 * gcc.c (translate_options): Don't mention +e in comment.
6472 (process_command): Don't handle +e specially.
6474 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
6476 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
6478 * ira-build.c (merge_hard_reg_conflicts): New function.
6479 (create_cap_allocno, copy_info_to_removed_store_destinations,
6480 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
6481 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
6482 (remove_unnecessary_allocnos, remove_low_level_allocnos)
6483 copy_nifo_to_removed_store_destination): Use them.
6484 * ira-lives.c (make_hard_regno_born): New function, split out of
6486 (make_allocno_born): Likewise.
6487 (make_hard_regno_dead): New function, split out of make_regno_dead.
6488 (make_allocno_dead): Likewise.
6489 (inc_register_pressure): New function, split out of set_allocno_live.
6490 (dec_register_pressure): New function, split out of clear_allocno_live.
6491 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
6492 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
6493 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
6494 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
6495 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
6496 mark_pseudo_regno_live.
6497 (process_bb_node_lives): Use mark_pseudo_regno_live,
6498 make_hard_regno_born and make_allocno_dead.
6499 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
6500 set_allocno_live, clear_allocno_live): Delete functions.
6502 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
6503 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
6505 (ira_flattening): Use ira_parent_allocno.
6506 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
6507 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
6509 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
6512 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
6513 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
6514 minmax_set_iter_cond, minmax_set_iter_next,
6515 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
6516 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
6517 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
6518 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
6521 * ira-int.h (struct live_range, live_range_t): Renamed from struct
6522 ira_allocno_live_range and allocno_live_range_t; all uses changed.
6523 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
6526 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
6528 * thumb2.md (thumb2_tlobits_cbranch): Delete.
6529 (peephole2 to convert zero_extract/compare of single bit to
6530 lshift/compare): New.
6532 2010-06-24 Anatoly Sokolov <aesok@post.ru>
6534 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
6535 recursive call and call to 'int_const_binop'.
6536 (build_range_check, fold_cond_expr_with_comparison, unextend,
6537 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
6538 multiple_of_p): Adjust call to const_binop.
6540 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
6542 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
6543 determine size of XFmode operand.
6544 (XFmode extended DFmode push splitter): Ditto.
6545 (XFmode extended SFmode push splitter): Ditto.
6547 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
6550 * config/i386/i386.md (extract_code): New.
6551 (<u>divmodqi4): Likewise.
6552 (divmodhiqi3): Likewise.
6553 (udivmodhiqi3): Likewise.
6554 (<u>divqi3): Remvoved.
6556 2010-06-24 Jakub Jelinek <jakub@redhat.com>
6559 * recog.h (struct recog_data): Add is_asm field.
6560 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
6561 present in constraints of inline-asm operand and memory operand
6562 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
6563 (extract_insn): Initialize recog_data.is_asm.
6564 * doc/md.texi (Constraints): Document operand side-effect rules.
6566 2010-06-24 Andi Kleen <ak@linux.intel.com>
6568 * c-parser.c (c_parser_conditional_expression): Call
6569 warn_for_omitted_condop.
6570 * doc/invoke.texi: Document omitted condop warning.
6572 2010-06-24 Nick Clifton<nickc@redhat.com>
6574 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
6575 insn in the sequence is a jump insn before setting its label.
6577 2010-06-24 Alan Modra <amodra@gmail.com>
6579 * collect2.c (main): Match exactly --version and --help.
6581 2010-06-24 DJ Delorie <dj@redhat.com>
6583 * config/m32c/m32c-pragma.c: Don't include rtl.h.
6585 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
6587 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
6588 using X87MODEF mode iterator.
6589 (pushsf splitter): Macroize splitter using P mode iterator.
6590 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
6593 (*movxf_internal): Rename from *movxf_integer.
6594 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
6595 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
6596 (*movdf_internal): Rename from *movdf_integer.
6597 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
6598 (*movsf_internal): Rename from *movdf_1.
6600 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
6602 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
6603 (const_gimple_seq_node): Removed typedefs.
6605 * gimple.h (gimple_seq_node_d, gimple_seq_node)
6606 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
6608 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
6610 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6611 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6612 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6613 and CODE_FOR_vec_extract_lo_v4df.
6615 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6616 Changed to define_insn_and_split.
6617 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6618 (vec_extract_lo_v16hi): Likewise.
6619 (vec_extract_lo_v32qi): Likewise.
6620 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6621 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6623 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
6626 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6627 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6628 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6629 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6630 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6633 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6636 * df-core.c (struct df): Rename to df_d.
6637 * df.h (struct df): Likewise.
6638 * dse.h (struct df): Remove forward declaration.
6639 * recog.h (struct insn_data): Rename to:
6640 (struct_insn_data_d). Adjusted all users.
6642 2010-06-23 Arnaud Charlet <charlet@adacore.com
6645 * doc/install.texi: Update requirements to build GNAT.
6647 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
6649 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6651 (m68k_sched_attr_opx_type): Remove unreachable return.
6652 (m68k_sched_attr_opy_type): Likewise.
6653 (m68k_sched_attr_size): Likewise.
6654 (sched_get_opxy_mem_type): Likewise.
6655 (m68k_sched_attr_op_mem): Likewise.
6657 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6659 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6660 new statement and adjust VDEF only if necessary. Remove superfluous
6661 call to maybe_clean_or_replace_eh_stmt.
6662 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6664 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6665 * tree-inline.c (copy_bb): ...and not there.
6667 2010-06-22 Cary Coutant <ccoutant@google.com>
6669 * dwarf2out.c (is_nested_in_subprogram): New function.
6670 (should_move_die_to_comdat): Use it.
6671 (copy_ancestor_tree): Don't mark DIEs here.
6672 (copy_decls_walk): Start walk from root of newly-added tree;
6673 mark DIEs here instead.
6675 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
6677 * config/i386/i386.md (unit): Also check sseishft1.
6679 2010-06-22 Jan Hubicka <jh@suse.cz>
6681 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6684 2010-06-22 Jan Hubicka <jh@suse.cz>
6686 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6687 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6688 Return true if something changed.
6689 * df.h (df_confluence_function_n): Return bool.
6690 * df-core.c (df_worklist_propagate_forward,
6691 df_worklist_propagate_backward): Track changes and ages.
6692 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6694 * dse.c (dse_confluence_n): Return always true.
6696 2010-06-22 Jan Hubicka <jh@suse.cz>
6698 * bitmap.c (bitmap_clear_bit): Micro optimize.
6700 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
6702 * config/i386/i386.md (SWI1248x): New mode iterator.
6707 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6708 SWI1248x mode iterator.
6709 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6710 using SWI124 mode iterator.
6711 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6713 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
6714 *pushdi2_prologue_rex64 using P mode iterator.
6715 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6716 using SWI48 mode iterator.
6717 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6718 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6719 using SWI1248x mode iterator.
6720 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6721 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6722 SWI48 mode iterator.
6723 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6725 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6726 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6727 SWI12 mode iterator.
6728 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6729 SWI12 mode iterator.
6730 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6731 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6732 SWI24 mode iterator.
6733 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6734 SWI48 mode iterator.
6735 (mov<mode>_insn_1): New expander.
6736 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6737 using SWI48x mode iterator.
6739 (*movoi_internal_avx): Rename from *movoi_internal.
6740 (*movti_internal_rex64): Rename from *movti_rex64.
6741 (*movti_internal_sse): Rename from *movti_sse.
6742 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
6743 (*movdi_internal): Rename from *movdi_2.
6744 (*movsi_internal): Rename from *movsi_1.
6745 (*movhi_internal): Rename from *movhi_1.
6746 (*movqi_internal): Rename from *movqi_1.
6748 (insv): Update the call to gen_movsi_insv_1 for rename.
6749 * config/i386/i386.c (promote_duplicated_reg): Ditto.
6751 2010-06-22 Jan Hubicka <jh@suse.cz>
6753 * passes.c (execute_function_todo): Move call of statistics_fini_pass
6755 (execute_todo) ... this one.
6757 2010-06-22 Alan Modra <amodra@gmail.com>
6760 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6761 * caller-save.c (insert_restore, insert_save): Use non-validate
6762 form of adjust_address.
6764 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6767 * config/pa/pa.c (override_options): Disable
6768 -freorder-blocks-and-partition.
6770 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
6773 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
6775 * config/i386/i386.md (type): Add sseishft1
6777 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
6778 (ppro_insn_load): Likewise.
6779 (ppro_insn_store): Likewise.
6780 (ppro_insn_both): Likewise.
6782 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
6783 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
6785 (*vec_extractv2di_1_avx): Likewise.
6786 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
6787 type. Remove atom_unit.
6788 (*vec_extractv2di_1_sse2): Likewise.
6790 2010-06-21 DJ Delorie <dj@redhat.com>
6792 * diagnostic.h (diagnostic_classification_change_t): New.
6793 (diagnostic_context): Add history and push/pop list.
6794 (diagnostic_push_diagnostics): Declare.
6795 (diagnostic_pop_diagnostics): Declare.
6796 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
6797 from pragmas in a history chain instead of the global table.
6798 (diagnostic_push_diagnostics): New.
6799 (diagnostic_pop_diagnostics): New.
6800 (diagnostic_report_diagnostic): Scan history chain to find state
6801 of diagnostics as of the diagnostic location.
6802 * opts.c (set_option): Pass UNKNOWN_LOCATION to
6803 diagnostic_classify_diagnostic.
6804 (enable_warning_as_error): Likewise.
6805 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
6806 use in the history chain.
6807 * doc/extend.texi: Document pragma GCC diagnostic changes.
6809 2010-06-21 Jakub Jelinek <jakub@redhat.com>
6811 * dwarf2out.c (add_linkage_name): New function. Don't add
6812 anything to DW_TAG_member DIEs.
6813 (add_name_and_src_coords_attributes): Use it.
6814 (gen_variable_die): Call it for C++ static data members if
6815 specification is DW_TAG_member.
6817 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
6818 C++ char16_t and char32_t.
6820 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
6821 * genattrtab.c: Include vecprim.h.
6822 (cached_attrs, cached_attr_count, attrs_seen_once,
6823 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
6824 attrs_cached_after): New variables.
6825 (find_attrs_to_cache): New function.
6826 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
6827 (write_test_expr): Add attrs_cached argument, return it too,
6828 attempt to cache non-const attributes used more than once in
6829 a single case handling.
6830 (write_attr_get): Use find_attrs_to_cache, for caching candidates
6831 emit cached_* variables. Adjust write_attr_set callers.
6832 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
6833 to find attributes that should be cached in this block. Adjust
6834 write_test_expr callers.
6835 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
6837 (make_automaton_attrs): Adjust write_test_expr caller.
6839 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
6840 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
6841 (make_automaton_attrs): If find_tune_attr returns non-NULL,
6842 write separate internal_dfa_insn_code_* and insn_default_latency_*
6843 functions for each attribute's value and emit init_sched_attrs
6844 function and function pointers.
6845 * genattr.c (const_attrs, reservations): New variables.
6846 (gen_attr): Add const attributes to const_attrs vector.
6847 (check_tune_attr, find_tune_attr): New functions.
6848 (main): Add reservations to reservations vector. If find_tune_attr
6849 returns true, add prototype for init_sched_attrs and make
6850 internal_dfa_insn_code and insn_default_latency function pointers,
6851 otherwise define init_sched_attrs as dummy macro.
6852 * cfgexpand.c: Include insn-attr.h.
6853 (gimple_expand_cfg): Call init_sched_attrs.
6855 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
6858 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
6859 va_arg from a set of register save slots into a temporary,
6860 if the container is bigger than type size, do the copying
6861 using smaller mode or using memcpy.
6864 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
6866 (sel_print_to_dot): Remove macro.
6867 (sel_print): Likewise. New prototype.
6868 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
6869 (sel_print): New function.
6871 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6873 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
6874 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
6876 2010-06-21 Nick Clifton <nickc@redhat.com>
6878 * config/rx/rx.h (PTRDIFF_TYPE): Define.
6879 (SMALL_REGISTER_CLASS): Define (to zero).
6880 (PRINT_OPERAND): Delete.
6881 (PRINT_OPERAND_ADDRESS): Delete.
6882 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
6883 (rx_print_operand_address): Delete prototype.
6884 * config/rx/rx.c (rx_print_operand): Make static.
6885 Allow %H and %L to handle CONST_DOUBLEs.
6886 (rx_print_operand_address): Make static.
6887 (rx_gen_move_template): Rename local variable 'template' to
6889 (rx_function_arg): Do not pass unknown sized objects in registers.
6890 (TARGET_PRINT_OPERAND): Define.
6891 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6893 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6895 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
6897 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
6899 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
6900 stack-alignment for simple leaf-functions.
6902 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
6904 * doc/install.texi: Document bootstrap-lto.
6906 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
6909 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
6910 (input_function): Drop them here, if VTA is disabled.
6912 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
6915 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
6917 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
6918 ix86_swapped_fp_comparsion_operator instead of
6919 ix86_fp_comparison_operator.
6921 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
6922 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
6923 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
6924 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
6925 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
6926 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
6928 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6931 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
6932 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
6933 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
6934 (decode_cmdline_option): Update for this return value. Set
6935 orig_option_with_args_text field. Set arg field for unknown
6936 options. Make static.
6937 (decode_cmdline_options_to_array): New.
6938 (prune_options): Update handling of find_opt return value.
6939 * opts.c (read_cmdline_option): Take decoded option. Return void.
6940 (read_cmdline_options): Take decoded options.
6941 (decode_options): Add parameters for decoded options. Use
6942 decode_cmdline_options_to_array. Use decoded options for -O
6943 scan. Use integral_argument for -O parameters. Update call to
6944 read_cmdline_options.
6945 (enable_warning_as_error): Update handling of find_opt return value.
6946 * opts.h: Update comment on unknown options.
6947 (struct cl_decoded_option): Update comments on opt_index and arg.
6948 Add orig_option_with_args_text.
6949 (decode_cmdline_option): Remove.
6950 (decode_cmdline_options_to_array): Declare.
6951 (decode_options): Update prototype.
6952 * toplev.c (save_argv): Remove.
6953 (save_decoded_options, save_decoded_options_count): New.
6954 (read_integral_parameter): Remove.
6955 (print_switch_values): Use decoded options.
6956 (toplev_main): Don't set save_argv. Update call to decode_options.
6957 * toplev.h (read_integral_parameter): Remove.
6958 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
6960 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
6963 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
6965 * constraints.md (Pw, Px): New constraints.
6966 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
6968 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
6970 * config/i386/sse.md (fma4modesuffixf4): Removed.
6971 (ssemodesuffixf2s): Likewise.
6972 (ssemodesuffixf4): Likewise.
6973 (ssemodesuffixf2c): Likewise.
6974 (ssescalarmodesuffix2s): Likewise.
6975 (avxmodesuffixf2c): Likewise.
6976 (ssemodesuffix): New.
6977 (ssescalarmodesuffix): Likewise.
6978 Update patterns with ssemodesuffix and ssescalarmodesuffix.
6980 2010-06-19 Philip Herron <herron.philip@googlemail.com>
6982 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
6984 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
6986 * stor-layout.c (debug_rli): Remove unused local variables.
6988 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6990 PR rtl-optimization/40900
6991 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
6992 original expression for later reuse.
6993 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
6994 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
6996 2010-06-18 Anatoly Sokolov <aesok@post.ru>
6998 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
6999 double_int_fits_in_uhwi_p): Implement as static inline.
7000 (double_int_xor): New inline function.
7001 (double_int_lrotate, double_int_rrotate, double_int_max,
7002 double_int_umax, double_int_smax, double_int_min, double_int_umin,
7003 double_int_smin): Declare.
7004 (lrotate_double, rrotate_double): Remove declaration.
7005 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
7006 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
7007 (double_int_lrotate, double_int_rrotate, double_int_max,
7008 double_int_umax, double_int_smax, double_int_min, double_int_umin,
7009 double_int_smin): New function.
7010 * fold-const.c (int_const_binop): Clean up, use double_int_*
7012 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
7013 double_int_* and immed_double_int_const functions.
7015 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7017 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
7018 * function.c (types_used_by_cur_var_decl): Likewise.
7019 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
7021 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
7023 * tree.h (record_layout_info): Change type of pending_statics field
7025 * stor-layout.c (start_record_layout): Store NULL into
7027 (debug_rli): Call debug_vec_tree instead of debug_tree.
7028 (place_field): Likewise.
7029 (finish_record_layout): Likewise.
7031 2010-06-18 Alan Modra <amodra@gmail.com>
7033 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
7035 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7038 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
7039 for SET source operand from SET destination operand.
7041 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
7043 PR rtl-optimization/39871
7044 * reload1.c (init_eliminable_invariants): For flag_pic, disable
7045 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
7046 (function_invariant_p): Rule out a plus of frame or arg pointer with
7048 * ira.c (find_reg_equiv_invariant_const): Likewise.
7050 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
7052 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
7053 print_operand_address and puts to output the operand for CONST.
7055 2010-06-17 Jakub Jelinek <jakub@redhat.com>
7058 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
7061 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7063 * v850-protos.h (print_operand): Delete.
7064 (print_operand_address): Delete.
7065 * v850.h (PRINT_OPERAND): Delete.
7066 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7067 (PRINT_OPERAND_ADDRESS): Delete.
7068 * v850.c (print_operand_address): Rename to...
7069 (v850_print_operand_address): ...this. Make static. Call
7071 (print_operand): Rename to...
7072 (v850_print_operand): ...this. Make static. Call
7073 v850_print_operand_address.
7074 (v850_print_operand_punct_valid_p): New function.
7075 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7076 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7078 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7080 * config/sh/sh-protos.h (print_operand): Delete.
7081 (print_operand_address): Delete.
7082 * config/sh/sh.h (PRINT_OPERAND): Delete.
7083 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7084 (PRINT_OPERAND_ADDRESS): Delete.
7085 * config/sh/sh.c (sh_print_operand_address): Make static.
7086 (sh_print_operand): Make static. Call sh_print_operand_address
7087 and sh_print_operand.
7088 (sh_print_operand_punct_valid_p): New function.
7089 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7090 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7092 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7094 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
7095 (mcore_print_operand_address): Delete.
7096 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
7097 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7098 (PRINT_OPERAND_ADDRESS): Delete.
7099 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
7100 (mcore_print_operand): Make static.
7101 (mcore_print_operand_punct_valid_p): New function.
7102 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
7103 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7105 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7107 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
7108 (print_operand_address): Delete.
7109 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
7110 (PRINT_OPERAND_ADDRESS): Delete.
7111 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
7113 (m68hc11_print_operand): Make static.
7114 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7116 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7118 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
7119 (m32r_print_operand_address): Delete.
7120 * config/m32r/m32r.h (m32r_punct_chars): Delete.
7121 (PRINT_OPERAND): Delete.
7122 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7123 (PRINT_OPERAND_ADDRESS): Delete.
7124 * config/m32r/m32r.c (m32r_punct_chars): Make static.
7125 (m32r_print_operand_address): Make static.
7126 (m32r_print_operand): Make static.
7127 (m32r_print_operand_punct_valid_p): New function.
7128 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7129 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7131 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7133 * config/iq2000/iq2000-protos.h (print_operand): Delete.
7134 (print_operand_address): Delete.
7135 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
7136 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7137 (PRINT_OPERAND_ADDRESS): Delete.
7138 (iq2000_print_operand_punct): Delete.
7139 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
7140 (iq2000_print_operand_address): Make static.
7141 (iq2000_print_operand): Make static.
7142 (iq2000_print_operand_punct_valid_p): New function.
7143 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7144 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7146 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7148 * config/frv/frv-protos.h (frv_print_operand): Delete.
7149 (frv_print_operand_address): Delete.
7150 * config/frv/frv.h (PRINT_OPERAND): Delete.
7151 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7152 (PRINT_OPERAND_ADDRESS): Delete.
7153 * config/frv/frv.c (frv_print_operand_address): Make static.
7154 (frv_print_operand): Make static.
7155 (frv_print_operand_punct_valid_p): New function.
7156 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7157 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7159 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
7161 * tree.h (vec_member): Declare.
7162 * tree.c (vec_member): Define.
7164 2010-06-17 Richard Guenther <rguenther@suse.de>
7166 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
7167 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
7169 2010-06-17 Richard Guenther <rguenther@suse.de>
7171 * tree-inline.c (declare_return_variable): Remove bogus code.
7173 2010-06-17 Richard Guenther <rguenther@suse.de>
7175 * gimplify.c (gimplify_bind_expr): Always promote complex
7176 and vector variables to registers if possible.
7178 2010-06-17 Richard Guenther <rguenther@suse.de>
7180 * expr.c (get_inner_reference): Use double_int for bit_offset
7183 2010-06-16 DJ Delorie <dj@redhat.com>
7185 * common.opt (-fstrict-volatile-bitfields): new.
7186 * doc/invoke.texi: Document it.
7187 * fold-const.c (optimize_bit_field_compare): For volatile
7188 bitfields, use the field's type to determine the mode, not the
7190 * expr.c (expand_assignment): Likewise.
7191 (get_inner_reference): Likewise.
7192 (expand_expr_real_1): Likewise.
7193 * expmed.c (store_fixed_bit_field): Likewise.
7194 (extract_bit_field_1): Likewise.
7195 (extract_fixed_bit_field): Likewise.
7197 2010-06-16 Richard Guenther <rguenther@suse.de>
7199 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
7201 2010-06-16 Douglas B Rupp <rupp@gnat.com>
7203 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
7204 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
7205 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
7206 * debug.c: Likewise.
7207 * sdbout.c: Likewise.
7208 * vmsdbgout.c: Likewise.
7209 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
7210 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
7211 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
7212 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
7213 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
7214 * dwarf2out.c (dw_fde_struct): New fields
7215 dw_fde_vms_{end,begin}_prologue.
7216 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
7217 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
7218 (dwarf2out_vms_end_prologue): New function.
7219 (dwarf2out_vms_begin_epilogue): New function.
7220 (dw_val_struct): New value dw_val_class_vms_delta.
7221 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
7222 begin_epilogue for VMS.
7223 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
7224 new static functions.
7225 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
7226 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
7228 (print_die): New case dw_val_class_vms_delta.
7229 (attr_checksum): Likewise.
7230 (same_dw_val_p: Likewise.
7231 (size_of_die): Likewise.
7232 (value_format): Likewise.
7233 (output_die): Likewise.
7234 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
7235 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
7236 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
7237 dwarf2out_cfi_begin_epilogue
7238 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
7240 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
7242 * config/cris/cris-protos.h (cris_print_operand): Delete.
7243 (cris_print_operand_address): Delete.
7244 * config/cris/cris.h (PRINT_OPERAND): Delete.
7245 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7246 (PRINT_OPERAND_ADDRESS): Delete.
7247 * config/cris/cris.c (cris_print_operand_address): Make static.
7248 (cris_print_operand): Make static.
7249 (cris_print_operand_punct_valid_p): New function.
7250 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7251 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7253 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
7255 * config/arm/arm-protos.h (arm_print_operand): Delete.
7256 (arm_print_operand_address): Delete.
7257 * config/arm/arm.h (PRINT_OPERAND): Delete.
7258 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7259 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
7260 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
7261 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
7262 (arm_print_operand): Make static.
7263 (arm_print_operand_punct_valid_p): New function.
7264 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7265 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7267 2010-06-16 Nick Clifton <nickc@redhat.com>
7269 * config/rx/constraints.md (NEGint4): New constraint.
7270 * config/rx/rx.md (attr cc): Add set_zsc.
7271 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
7274 (call_internal): Clobber the cc0 register.
7275 (call_value_internal): Likewise.
7276 (cstoresi4): Likewise.
7277 (movsieq): Likewise.
7278 (movsine): Likewise.
7279 (addsi3): Add alternative to handle small negative constants.
7281 (addsi3): Do not set the O bit in the cc0 register.
7285 (andsi3): Reorder alternatives to prefer shorter forms.
7288 (negsi2): Note that the cc0 flags are set.
7289 (rotlsi3): Note that only the Z and S bits are set in cc0.
7290 (lshrsi3): Likewise.
7291 (ashlsi3): Likewise.
7292 (subsf3): Use %Q for the MEM operand.
7293 (fix_truncsfsi2): Likewise.
7294 (floatsisf2): Likewise.
7295 (bitset): Remove early clobber from destination.
7296 (bitset_in_memory): Likewise.
7297 (lrintsf2): Clobber the cc0 register.
7298 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
7299 (rx_print_operand): Handle %N.
7301 2010-06-16 Jan Hubicka <jh@suse.cz>
7303 * df-core.c (df_compact_blocks): Free problem_temps vector.
7305 2010-06-16 Martin Jambor <mjambor@suse.cz>
7307 PR tree-optimization/43905
7308 * tree-sra.c: Include tree-inline.h.
7309 (create_abstract_origin): Removed.
7310 (modify_function): Version the call graph node instead of creating
7311 abstract origins and dealing with same_body aliases.
7312 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
7313 function is versionable.
7314 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
7316 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
7318 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
7319 (CHOOSE_DYNAMIC_LINKER): Update.
7321 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
7323 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
7324 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
7325 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
7326 *prefetch_3dnow_rex.
7328 2010-06-15 Anatoly Sokolov <aesok@post.ru>
7330 * target.h (struct asm_out):Add declare_constant_name field.
7331 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7332 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
7333 * output.h (default_asm_declare_constant_name): Declare.
7334 (assemble_label): Update prototype.
7335 * varasm.c (assemble_constant_contents): Use
7336 targetm.asm_out.declare_constant_name target hook.
7337 (assemble_label): Add 'file' argument.
7338 (default_asm_declare_constant_name): New function.
7339 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
7340 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
7341 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
7343 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
7344 * config/darwin.c (darwin_asm_declare_constant_name): New function.
7345 (machopic_output_indirection): Update assemble_label argument list.
7346 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
7347 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7349 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
7352 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7353 size_one_node for pointer types. Do not call gmp_cst_to_tree.
7355 2010-06-15 Richard Guenther <rguenther@suse.de>
7357 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
7359 2010-06-15 Paul Brook <paul@codesourcery.com>
7361 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
7364 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
7366 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
7367 don't get a vector type for output.
7369 2010-06-15 Jakub Jelinek <jakub@redhat.com>
7372 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
7373 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
7374 (LANG_HOOKS_DECLS): Add it.
7375 * gimplify.c (omp_notice_variable): Call
7376 lang_hooks.decls.omp_report_decl.
7378 2010-06-15 Martin Jambor <mjambor@suse.cz>
7381 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
7382 on the newly dead SSA name.
7384 2010-06-15 Alan Modra <amodra@gmail.com>
7386 * doc/invoke.texi: Add mcmodel to powerpc options.
7387 * configure.ac: Add HAVE_LD_LARGE_TOC test.
7388 * configure: Regenerate.
7389 * config.in: Regenerate.
7390 * config/rs6000/linux64.opt (mcmodel): New.
7391 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
7392 (TARGET_CMODEL, SET_CMODEL): Define.
7393 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
7394 select CMODEL_MEDIUM default.
7395 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
7396 (TARGET_CMODEL): Define default.
7397 * config/rs6000/rs6000.c (cmodel): New variable.
7398 (rs6000_explicit_options): Add cmodel field.
7399 (rs6000_handle_option): Handle -mcmodel.
7400 (create_TOC_reference): Add largetoc_reg param. Generate high,
7401 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
7402 (rs6000_delegitimize_address): Recognise new toc reference rtl
7403 and minimal-toc rtl.
7404 (rs6000_legitimize_reload_address): Handle new toc references.
7405 (print_operand_address): Handle legitimate_constant_pool_address_p
7406 match before lo_sum.
7407 (rs6000_eliminate_indexed_memrefs): Tidy.
7408 (rs6000_emit_move): Tweak threshold for inlining constants.
7409 Keep rs6000_emit_allocate_stack large stack frame offsets
7410 loaded into r0 inline.
7411 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
7412 (tocrel_base, tocrel_offset): New variables.
7413 (toc_relative_expr_p): Set them here.
7414 (print_operand_address): Skip over any offset on constant pool address.
7415 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
7416 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
7417 (offsettable_ok_by_alignment): New function.
7418 (rs6000_emit_move): Address suitably aligned local symbol_refs
7419 relative to the toc pointer for -mcmodel=medium.
7420 (legitimate_constant_pool_address_p): Make param const_rtx. Add
7421 strict param. Allow lo_sum version of addressing. Verify reg
7422 used for -mminimal-toc and -mcmodel != small. Update all callers.
7423 * config/rs6000/constraints.md: Update for above change.
7424 * config/rs6000/predicates.md: Likewise.
7425 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
7427 (tls_gd): Split for -mcmodel=medium/large.
7428 (tls_gd_high, tls_gd_low): New.
7429 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
7430 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
7431 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
7432 (largetoc_high, largetoc_low): New.
7433 (cmptf_internal2): Add clobber.
7434 * config/rs6000/rs6000-protos.h: Update.
7436 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
7438 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
7439 true if no prefetch is going to be generated for a given group.
7440 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
7441 estimate the prefetch_count.
7442 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
7443 prefetch count by considering the unroll_factor and prefetch_mod
7444 for is_loop_prefetching_profitable.
7446 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
7448 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
7449 anything if the argument is not a MEM.
7451 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
7456 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
7458 (canonicalize_loop_ivs): Likewise.
7460 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
7463 * haifa-sched.c (setup_insn_reg_pressure_info,
7464 update_register_pressure): Reject debug insns.
7465 (ready_sort): Don't setup reg pressure for debug insns.
7466 (schedule_insn): Don't update reg pressure for debug insns.
7468 2010-06-14 Richard Guenther <rguenther@suse.de>
7470 * lto-streamer.c (cached_bp): Remove.
7471 (bitpack_delete): Likewise.
7472 (bitpack_create): Likewise.
7473 (bp_get_next_word): Likewise.
7474 (bp_pack_value, bp_unpack_value): Move ...
7475 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
7477 (struct bitpack_d): Likewise.
7478 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
7479 New inline functions.
7480 * lto-streamer-out.c (lto_output_bitpack): Remove.
7481 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
7482 (pack_value_fields): Adjust.
7483 (lto_write_tree): Likewise.
7484 (output_gimple_stmt): Likewise.
7485 (output_function): Likewise.
7486 * lto-streamer-in.c (input_gimple_stmt): Adjust.
7487 (input_function): Likewise.
7488 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
7489 (lto_input_bitpack): Remove.
7490 (lto_materialize_tree): Adjust.
7491 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
7492 * lto-cgraph.c (lto_output_edge): Adjust.
7493 (lto_output_node): Likewise.
7494 (lto_output_varpool_node): Likewise.
7495 (lto_output_ref): Likewise.
7496 (input_node): Likewise.
7497 (input_varpool_node): Likewise.
7498 (input_ref): Likewise.
7499 (input_edge): Likewise.
7500 (output_node_opt_summary): Likewise.
7501 (input_node_opt_summary): Likewise.
7502 * ipa-pure-const.c (pure_const_write_summary): Likewise.
7503 (pure_const_read_summary): Likewise.
7504 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
7505 (ipa_read_indirect_edge_info): Likewise.
7506 (ipa_write_node_info): Likewise.
7507 (ipa_read_node_info): Likewise.
7509 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
7512 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
7513 (vec_extract_lo_v16hi): Likewise.
7514 (vec_extract_lo_v32qi): Likewise.
7516 2010-06-14 Jakub Jelinek <jakub@redhat.com>
7519 * tree.h (build_call_expr): Don't define as vararg macro, instead
7521 * builtins.c (build_call_nofold): Remove.
7522 (expand_builtin_int_roundingfn, expand_builtin_pow,
7523 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
7524 expand_builtin_memset_args, expand_builtin_strcmp,
7525 expand_builtin_strncmp, expand_builtin_memory_chk): Use
7526 build_call_nofold_loc instead of build_call_nofold.
7527 (build_call_expr): New function.
7529 PR tree-optimization/44508
7530 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
7531 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
7532 don't eliminate trivially dead stmts.
7533 * tree-vrp.c (vrp_finalize): Pass false as last argument
7534 to substitute_and_fold.
7535 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
7536 to substitute_and_fold.
7537 * tree-ssa-ccp.c (ccp_finalize): Likewise.
7540 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
7542 2010-06-14 Ira Rosen <irar@il.ibm.com>
7544 PR tree-optimization/44507
7545 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
7546 to build initial vector for BIT_AND_EXPR.
7547 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7549 2010-06-14 Jakub Jelinek <jakub@redhat.com>
7551 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
7552 adjust z10prop set_attr.
7554 2010-06-13 Jan Hubicka <jh@suse.cz>
7556 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7557 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
7558 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
7559 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
7560 datastructure checks into checking asserts.
7561 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
7562 * tree-ssa-sccvn.c (VN_INFO): Likewise.
7563 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
7564 df_ref_create_structure): Likewise.
7565 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
7566 pool_free): Use gcc_checking_assert.
7567 * alias.c (get_alias_set): Likewise.
7568 * var-tracking.c (variable_htab_free, shared_hash_copy,
7569 canonicalize_values_mark, variable_merge_over_cur): Likewise.
7570 * lto-streamer.c (bp_unpack_value): Likewise.
7572 2010-06-13 Richard Guenther <rguenther@suse.de>
7574 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
7575 Do not stream but initialize TYPE_CANONICAL to NULL.
7576 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
7577 * gimple.c (gimple_types_compatible_p): Disregard
7578 TYPE_STRUCTURAL_EQUALITY_P.
7579 (gimple_register_type): Use TYPE_CANONICAL as cache.
7580 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
7581 before registering common types.
7582 * config/i386/i386.c (ix86_function_arg_boundary): Do not
7583 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
7584 * tree.h (TYPE_CANONICAL): Clarify documentation.
7586 2010-06-13 Anatoly Sokolov <aesok@post.ru>
7588 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7589 LIBCALL_VALUE): Remove macros.
7590 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
7591 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7592 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7593 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
7594 (ia64_function_value): Make static. Handle receiving the function
7595 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
7597 2010-06-12 Jan Hubicka <jh@suse.cz>
7599 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
7602 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
7604 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
7606 2010-06-12 Jan Hubicka <jh@suse.cz>
7608 * df-core.c (df_clear_bb_info): New function.
7609 (df_set_blocks): bb_info is always allocated.
7610 (df_get_bb_info): Use block_info_elt_size.
7611 (df_set_bb_info): Likewise.
7612 (df_compact_blocks): Update for new block_info.
7613 (grow_bb_info): New function.
7614 * df-problems.c (df_grow_bb_info): Move to df-core.c
7615 (df_rd_set_bb_info): Remove.
7616 (df_rd_free_bb_info): Do not free block pool.
7617 (df_rd_alloc): Do not create pool, use check for
7618 obstack presence instead of NULL pointer for new blocks.
7619 (df_rd_free): DO not free alloc pool; clear block_info.
7620 (problem_RD): Add size of block info structure.
7621 (df_lr_set_bb_info): Remove.
7622 (df_lr_free_bb_info): Do not free block pool.
7623 (df_lr_alloc): Do not create pool, use check for
7624 obstack presence instead of NULL pointer for new blocks.
7625 (df_lr_free): DO not free alloc pool; clear block_info.
7626 (problem_LR): Add size of block info structure.
7627 (df_live_set_bb_info): Remove.
7628 (df_live_free_bb_info): Do not free block pool.
7629 (df_live_alloc): Do not create pool, use check for
7630 obstack presence instead of NULL pointer for new blocks.
7631 (df_live_free): DO not free alloc pool; clear block_info.
7632 (problem_LIVE): Add size of block info structure.
7633 (problem_CHAIN): Add size of block info structure.
7634 (df_byte_lr_set_bb_info): Remove.
7635 (df_byte_lr_free_bb_info): Do not free block pool.
7636 (df_byte_lr_alloc): Do not create pool, use check for
7637 obstack presence instead of NULL pointer for new blocks.
7638 (df_byte_lr_free): DO not free alloc pool; clear block_info.
7639 (problem_BYTE_LR): Add size of block info structure.
7640 (problem_NOTE): Add size of block info structure.
7641 (df_byte_MD_set_bb_info): Remove.
7642 (df_byte_MD_free_bb_info): Do not free block pool.
7643 (df_byte_MD_alloc): Do not create pool, use check for
7644 obstack presence instead of NULL pointer for new blocks.
7645 (df_byte_MD_free): DO not free alloc pool; clear block_info.
7646 (problem_BD): Add size of block info structure.
7647 * df-scan.c (df_scan_free_internal): Free block pool.
7648 (df_scan_set_bb_info): Remove.
7649 (df_scan_free_bb_info): Check for artificial_defs instead
7650 of bb_info being non-NULL.
7651 (df_scan_alloc): DO not create df_scan_block pool.
7652 (problem_SCAN): Set size of block info.
7653 (df_bb_refs_record): Do not allocate bb_info.
7654 * df.h (df_problem): Add block_info_elt_size.
7655 (struct dataflow): Change block_info to void *.
7656 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7657 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7660 2010-06-12 Jan Hubicka <jh@suse.cz>
7662 PR tree-optimize/44485
7663 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7664 containing use of return value of noreturn function.
7666 2010-06-12 Anatoly Sokolov <aesok@post.ru>
7668 * targhooks.c (default_function_value): Don't use
7669 FUNCTION_OUTGOING_VALUE.
7670 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7671 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7673 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
7675 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7676 Add crtfastmath.o to extra_parts.
7677 * config/mips/crtfastmath.c: New.
7678 * config/mips/linux.h (ENDFILE_SPEC): New.
7680 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
7682 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7683 old_type in parameter.
7684 (gcc_type_for_value): Update call to gcc_type_for_interval.
7685 (compute_type_for_level_1): Renamed compute_type_for_level.
7686 Update call to gcc_type_for_interval.
7688 2010-06-11 Joseph Myers <joseph@codesourcery.com>
7690 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7691 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7693 2010-06-11 Joseph Myers <joseph@codesourcery.com>
7695 * opts-common.c: Include options.h.
7696 (integral_argument): Move from opts.c.
7697 (decode_cmdline_option): New. Based on read_cmdline_option.
7698 * opts.c (integral_argument): Move to opts-common.c.
7699 (read_cmdline_option): Move most contents to
7700 decode_cmdline_option. Use %qs in diagnostics.
7701 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7702 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7703 decode_cmdline_option): New.
7705 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
7708 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7709 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7710 (partiysi2_cmp): Ditto.
7711 (*partiyhi2_cmp): Ditto.
7712 (*parityqi2_cmp): Remove.
7714 2010-06-11 Jan Hubicka <jh@suse.cz>
7716 * bitmap.h (bmp_iter_next_bit): New.
7717 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7719 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
7720 Eric Botcazou <ebotcazou@adacore.com>
7722 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7725 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
7727 * config/i386/i386.md (unspec): New define_c_enum.
7730 2010-06-10 Jakub Jelinek <jakub@redhat.com>
7732 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7734 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
7737 * tree-if-conv.c (bb_predicate_s): New struct.
7738 (bb_predicate_p): New.
7739 (bb_has_predicate): New.
7740 (bb_predicate): New.
7741 (set_bb_predicate): New.
7742 (bb_predicate_gimplified_stmts): New.
7743 (set_bb_predicate_gimplified_stmts): New.
7744 (add_bb_predicate_gimplified_stmts): New.
7745 (init_bb_predicate): New.
7746 (free_bb_predicate): New.
7747 (is_predicated): Use bb_predicate.
7748 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
7749 (predicate_bbs): Same. Gimplify the condition of the basic blocks
7750 before processing their successors.
7751 (clean_predicate_lists): Removed.
7752 (find_phi_replacement_condition): Use bb_predicate.
7753 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
7755 (insert_gimplified_predicates): New.
7756 (combine_blocks): Call insert_gimplified_predicates.
7757 (tree_if_conversion): Call free_bb_predicate instead of
7758 clean_predicate_lists.
7760 2010-10-11 Paul Brook <paul@codesourcery.com>
7762 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
7763 * config/arm/arm.c (all_architectures): Change v7e-m default to
7765 * config/arm/arm-cores.def: Add cortex-m4.
7766 * config/arm/arm-tune.md: Regenerate.
7768 2010-06-11 Jan Hubicka <jh@suse.cz>
7770 * ipa-pure-const.c (special_builtlin_state): New function.
7771 (check_call): Use it instead of special casign BUILT_IN_RETURN.
7772 (propagate_pure_const): Use it.
7774 2010-06-11 Jan Hubicka <jh@suse.cz>
7776 * df-problems.c (df_live_scratch): Convert to bitmap_head.
7777 (df_live_alloc): Initialize df_live_scratch when initializing
7779 (df_live_transfer_function): Update uses of df_live_scratch.
7780 (df_live_free): Free problem_data; clear df_live_scratch before
7781 releasing the obstack.
7782 (df_md_free): Free problem data.
7784 2010-06-11 Jan Hubicka <jh@suse.cz>
7786 * doc/invoke.texi (Wsuggest-attribute): Document.
7787 (Wmissing-noreturn): Remove.
7788 * ipa-pure-const.c (warn_function_noreturn): New function.
7789 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
7790 warn_missing_noreturn.
7791 * common.opt (Wsuggest-attribute=noreturn): New.
7792 * tree-flow.h (warn_function_noreturn): Declare.
7793 * tree-cfg.c (execute_warn_function_noreturn): Use
7794 warn_function_noreturn.
7795 (gate_warn_function_noreturn): New.
7796 (pass_warn_function_noreturn): Update.
7798 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7800 * c-typeck.c (handle_warn_cast_qual): Add loc
7801 parameter. Improve warning message.
7802 (build_c_cast): Pass location to handle_warn_cast_qual.
7804 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
7806 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
7807 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
7809 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
7811 2010-06-10 Dodji Seketeli <dodji@redhat.com>
7813 Fix bootstap on mips
7814 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
7817 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
7819 * system.h (helper_const_non_const_cast): New inline for
7821 (CONST_CAST2): For gcc version <= 4.0 use
7822 new helper to do const/non-const casting.
7824 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
7826 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
7827 * Makefile.in (OBJS-common): Include insn-enums.o.
7828 (insn-enums.o): New rule.
7829 (simple_generated_c): Add insn-enums.c.
7830 (build/genenums.o): New rule.
7831 (genprogmd): Add "enums".
7832 * genconstants.c (print_enum_type): Declare a C string array
7834 * genenums.c: New file.
7835 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
7836 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
7837 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
7839 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
7841 * doc/md.texi (define_enum_attr): Document.
7842 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
7843 * read-md.h (lookup_enum_type): Declare.
7844 * read-md.c (lookup_enum_type): New function.
7845 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
7846 * genattrtab.c (attr_desc): Add an enum_name field.
7847 (evaluate_eq_attr): Take the associated attribute as argument.
7848 Get the enum prefix from the enum_name field, if defined.
7849 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
7850 (simplify_test_exp): Pass attr to evaluate_eq_attr.
7851 (add_attr_value): New function, split out from...
7852 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
7853 (write_test_expr): Pass attr to evaluate_eq_attr.
7854 (write_attr_get): Use the enum_name as the enum tag, if defined.
7855 (write_attr_valueq): Use the enum_name as a prefix, if defined.
7856 (find_attr): Initialize enum_name.
7857 (main): Handle DEFINE_ENUM_ATTR.
7858 * gensupport.c (process_rtx): Likewise.
7859 * config/mips/mips.h (mips_tune_attr): Delete.
7860 * config/mips/mips.md (cpu): Use define_attr_enum.
7862 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
7864 * doc/md.texi (define_c_enum, define_enum): Document.
7865 * read-md.h (md_constant): Add a parent_enum field.
7866 (enum_value, enum_type): New structures.
7867 (upcase_string, traverse_enum_types): Declare.
7868 * read-md.c (enum_types): New variable.
7869 (upcase_string, add_constant): New functions.
7870 (handle_constants): Don't create the hash table here.
7872 (traverse_md_constants): Don't check for a null md_constants.
7873 (decimal_string, handle_enum, traverse_enum_types): New functions.
7874 (read_md_files): Initialize md_constants and md_enums.
7875 * genconstants.c (print_md_constant): Ignore info argument.
7876 Only print constants that belong to no enum.
7877 (print_enum_type): New function.
7878 (main): Don't pass stdout to print_md_constant. Call print_enum_type
7879 for each defined enum type.
7880 * config/mips/mips.md (processor): New define_enum.
7881 (unspec): New define_c_enum.
7882 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
7883 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
7884 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
7885 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
7886 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
7887 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
7888 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
7889 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
7890 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
7891 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
7892 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
7893 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
7894 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
7895 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
7896 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
7897 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
7898 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
7899 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
7900 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
7901 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
7902 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
7903 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
7904 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7905 (UNSPEC_RDDSP): Move to mips-dsp.md.
7906 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
7907 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
7908 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
7909 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
7910 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
7911 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
7912 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
7913 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
7914 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
7915 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
7916 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
7917 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
7918 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
7919 Moved to mips-dspr2.md.
7920 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
7921 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
7922 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
7923 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
7924 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
7925 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
7926 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7927 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7928 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7929 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7930 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7931 UNSPEC_LOONGSON_PSADBH)
7932 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7933 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7934 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
7935 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7936 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7937 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7938 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
7939 (cpu): Update comment.
7940 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
7941 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
7942 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
7943 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
7944 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
7945 UNSPEC_LOONGSON_PCMPEQ)
7946 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
7947 UNSPEC_LOONGSON_PINSR_0)
7948 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
7949 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
7950 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
7951 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
7952 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
7953 UNSPEC_LOONGSON_PSADBH)
7954 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
7955 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
7956 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
7957 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7958 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7959 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7960 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
7961 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
7962 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
7963 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
7964 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
7965 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
7966 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
7967 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
7968 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
7969 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
7970 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
7971 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
7972 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
7973 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
7974 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
7975 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
7976 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
7977 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
7978 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
7979 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
7980 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
7981 (UNSPEC_RDDSP): Moved from mips.md.
7982 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
7983 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
7984 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
7985 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
7986 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
7987 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
7988 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
7989 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
7990 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
7991 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
7992 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
7993 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
7994 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
7995 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
7996 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
7997 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
7998 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
7999 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
8000 (UNSPEC_SCC): Moved from mips.md.
8001 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
8002 "processor_type" to "processor".
8003 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
8004 * config/mips/mips.h (processor_type): Delete.
8005 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
8006 "processor_type" to "processor".
8008 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8010 * configure.ac (tm_include_list): Add insn-constants.h.
8011 * configure: Regenerate.
8012 * Makefile.in (GTM_H): Move insn-constants.h here from...
8014 * mkconfig.sh: Remove special handling for insn-constants.h.
8016 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8018 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
8019 (BUILD_MD): ...this new variable.
8020 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
8021 that include the old contents of simple_generated_h and
8023 (simple_generated_h, simple_generated_c): Include them. Add
8025 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
8026 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
8027 Remove these dependencies from the main rule and include
8028 insn-conditions.md in the command line only if it appears
8029 in the dependency list.
8030 (insn-constants.h, s-constants): Delete.
8031 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
8033 (build/genmddeps.o): Likewise.
8034 (genprogrtl): New variable that contains everything from genprogmd
8035 except mddeps and constants.
8036 (genprogmd): Redefine in terms of genprogrtl. Make these programs
8037 depend on $(BUILD_MD)
8038 (genprog): New variable. Make these programs depend on
8040 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
8041 (main): Use read_md_files instead of init_rtx_reader_args.
8042 * genconstants.c: As for genmddeps.c.
8043 * read-md.h (read_skip_construct): Declare.
8044 * read-md.c (read_skip_construct): New function.
8045 (handle_file): Allow a null handle_directive, skipping the
8047 (parse_include): Update the comment accordingly.
8049 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8051 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
8052 * genmddeps.c: Include read-md.h.
8053 (main): Call init_rtx_reader_args instead of init_md_reader_args.
8054 * genattr.c (main): Likewise.
8055 * genattrtab.c (main): Likewise.
8056 * genautomata.c (main): Likewise.
8057 * gencodes.c (main): Likewise.
8058 * genconditions.c (main): Likewise.
8059 * genconfig.c (main): Likewise.
8060 * genconstants.c (main): Likewise.
8061 * genemit.c (main): Likewise.
8062 * genextract.c (main): Likewise.
8063 * genflags.c (main): Likewise.
8064 * genopinit.c (main): Likewise.
8065 * genoutput.c (main): Likewise.
8066 * genpeep.c (main): Likewise.
8067 * genrecog.c (main): Likewise.
8068 * genpreds.c (main): Likewise.
8069 * gensupport.h (in_fname): Move to read-md.h.
8070 (init_md_reader_args_cb): Rename to...
8071 (init_rtx_reader_args_cb): ...this and return a bool.
8072 (init_md_reader_args): Rename to...
8073 (init_rtx_reader_args): ...this and return a bool.
8074 (include_callback): Move to read-md.h.
8075 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
8076 (file_name_list, first_dir_md_include): Move to read-md.c
8077 (first_bracket_include): Delete unused variable.
8078 (last_dir_md_include): Move to read-md.c.
8079 (process_include): Delete, moving code to read-md.c:handle_include.
8080 (process_rtx): Don't handle INCLUDE.
8081 (save_string): Delete.
8082 (rtx_handle_directive): New function.
8083 (init_md_reader_args_cb): Rename to...
8084 (init_rtx_reader_args_cb): ...this and return a boolean success value.
8086 (init_md_reader_args): Rename to...
8087 (init_rtx_reader_args): ...this and return a boolean success value.
8088 * rtl.def (INCLUDE): Delete.
8089 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
8091 * read-rtl.c (read_conditions): Don't gobble ')' here.
8092 (read_mapping): Likewise.
8093 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
8094 Handle top-level non-rtx constructs here rather than in read_rtx_1.
8095 Store the whole queue in *X. Remove call to init_md_reader.
8096 (read_rtx_1): Rename to...
8097 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
8098 Don't handle top-level non-rtx constructs here. Don't handle (nil)
8100 (read_nested_rtx): New function. Handle (nil) here rather than
8102 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
8104 * read-md.h (directive_handler_t): New type.
8105 (in_fname, include_callback): Moved from read-md.h.
8106 (read_constants, init_md_reader): Delete.
8107 (read_md_files): Declare.
8108 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
8109 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
8111 (read_constants): Rename to...
8112 (handle_constants): ...this. Don't gobble ')' here.
8113 (handle_include, handle_file, handle_toplevel_file)
8114 (parse_include): New functions, mostly taken from gensupport.c.
8115 (init_md_reader): Subsume into...
8116 (read_md_files): ...this new function.
8118 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8120 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
8121 (unread_char): Decrement read_md_lineno after putting back '\n'.
8122 * read-md.c (fatal_with_file_and_line): Push back any characters
8123 that we decide not to add to the context.
8124 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
8125 fatal_expected_char in cases where '/' ends a line (for example).
8126 (read_name): Don't increment read_md_lineno here.
8127 (read_escape): Likewise.
8128 (read_quoted_string): Likewise.
8129 (read_braced_string): Likewise.
8131 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8133 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
8134 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
8135 * genconstants.c: Include read-md.h.
8136 * read-rtl.c (md_constants): Move to read-md.c.
8137 (md_name): Move to read-md.h.
8138 (initialize_iterators): Use leading_string_hash instead of def_hash
8139 and leading_string_eq_p instead of def_name_eq_p.
8140 (read_name): Move to read-md.c.
8141 (def_hash, def_name_eq_p): Delete.
8142 (read_constants, traverse_md_constants): Move to read-md.c.
8143 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
8144 * read-md.h: Include hashtab.h.
8145 (md_name): Moved from read-rtl.c.
8146 (md_constant): Moved from read-md.h.
8147 (leading_string_hash, leading_string_eq_p, read_name)
8148 (read_constants, traverse_md_constants): Declare.
8149 * read-md.c (md_constants): Moved from read-rtl.c.
8150 (leading_string_hash, leading_string_eq_p): New functions.
8151 (read_name, read_constants, traverse_md_constants): Moved from
8154 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8156 * read-rtl.c (md_name): New structure.
8157 (read_name): Take an md_name instead of a buffer pointer.
8158 Use the "string" field instead of strcpy when expanding constants.
8159 (read_constants): Remove the tmp_char argument. Update the calls
8160 to read_name, using two local name buffers instead of the tmp_char
8161 argument. Merge the constant-creation code.
8162 (read_conditions): Remove the tmp_char argument. Update the calls
8163 to read_name, using a local name buffer instead of the tmp_char
8165 (read_mapping): Replace tmp_char variable with a local name buffer.
8166 Update the calls to read_name.
8167 (read_rtx_1): Likewise. Update the calls to read_constants and
8170 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8172 * Makefile.in (build/read-md.o): Depend on errors.h.
8173 * read-md.h (error_with_line): Declare.
8174 * read-md.c: Include errors.h.
8175 (message_with_line_1): New function, extracted from...
8176 (message_with_line): ...here.
8177 (error_with_line): New function.
8178 * genattrtab.c: If a call to message_with_line is followed by
8179 "have_error = 1;", replace both statements with a call to
8181 * genoutput.c: Likewise.
8182 * genpreds.c: Likewise.
8183 * genrecog.c: If a call to message_with_line is followed by
8184 "error_count++;", replace both statements with a call to
8186 (errorcount): Delete.
8187 (main): Don't check it.
8188 * gensupport.c: If a call to message_with_line is followed by
8189 "errors = 1;", replace both statements with a call to error_with_line.
8191 (process_define_cond_exec): Check have_error instead of errors.
8192 (init_md_reader_args_cb): Likewise. Don't set errors.
8194 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8196 * read-md.h (read_md_file): Declare.
8197 (read_char, unread_char): New functions.
8198 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8199 (read_quoted_string, read_string): Remove FILE * argument.
8200 * read-md.c (read_md_file): New variable.
8201 (read_md_filename, read_md_lineno): Update comments and remove
8202 unnecessary initialization.
8203 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8204 (read_escape, read_quoted_string, read_braced_string, read_string):
8205 Remove FILE * argument. Update calls accordingly, using read_char
8206 and unread_char instead of getc and ungetc.
8207 * rtl.h (read_rtx): Remove FILE * argument.
8208 * read-rtl.c (iterator_group): Remove FILE * argument from
8210 (iterator_traverse_data): Remove "infile" field.
8211 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
8212 (add_mapping, read_name, read_constants, read_conditions)
8213 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
8214 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
8215 Remove file arguments from all calls, using read_char and unread_char
8216 instead of getc and ungetc.
8217 * gensupport.c (process_include): Preserve read_md_file around
8218 the include. Set read_md_file to the handle of the included file.
8219 Update call to read_rtx.
8220 (init_md_reader_args_cb): Set read_md_file to the handle of the file
8221 and remove local FILE *. Update calls to read_rtx.
8223 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8225 * read-md.h (read_rtx_lineno): Rename to...
8226 (read_md_lineno): ...this.
8227 (read_rtx_filename): Rename to...
8228 (read_md_filename): ...this.
8229 (copy_rtx_ptr_loc): Rename to...
8230 (copy_md_ptr_loc): ...this.
8231 (print_rtx_ptr_loc): Rename to...
8232 (print_md_ptr_loc): ...this.
8233 * read-md.c: Likewise. Update references after renaming.
8234 (string_obstack): Replace RTL with MD in comment.
8235 (set_rtx_ptr_loc): Rename to...
8236 (set_md_ptr_loc): ...this.
8237 (get_rtx_ptr_loc): Rename to...
8238 (get_md_ptr_loc): ...this.
8239 * genconditions.c: Update references after renaming.
8240 * genemit.c: Likewise.
8241 * genoutput.c: Likewise.
8242 * genpreds.c: Likewise.
8243 * gensupport.c: Likewise.
8244 * read-rtl.c: Likewise.
8246 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
8248 * Makefile.in (READ_MD_H): New variable.
8249 (BUILD_RTL): Add build/read-md.o.
8250 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
8251 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
8252 (build/genattrtab.o, build/genconditions.o build/genemit.o)
8253 (build/genextract.o, build/genflags.o, build/genoutput.o)
8254 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
8255 (build/read-md.o): New rule.
8256 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
8257 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
8258 * coretypes.h: ...here.
8259 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
8260 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
8261 * genattr.c: Include read-md.h.
8262 * genattrtab.c: Likewise.
8263 * genconditions.c: Likewise.
8264 * genemit.c: Likewise.
8265 * genextract.c: Likewise.
8266 * genflags.c: Likewise.
8267 * genoutput.c: Likewise.
8268 * genpreds.c: Likewise.
8269 * genrecog.c: Likewise.
8270 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8271 (join_c_conditions, print_c_condition, read_rtx_filename)
8272 (read_rtx_lineno): Move to read-md.h.
8273 * read-rtl.c: Include read-md.h.
8274 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
8275 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
8276 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
8277 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
8278 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8279 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
8280 (read_braced_string, read_string): Move to read-md.c.
8281 (read_rtx): Move some initialization to init_md_reader and call
8282 init_md_reader here.
8283 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
8285 * gensupport.c: Include read-md.h.
8286 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
8287 * read-md.h, read-md.c: New files.
8289 2010-06-10 Anatoly Sokolov <aesok@post.ru>
8291 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8292 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8293 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
8294 * config/moxie/moxie.c (moxie_function_value): Make static.
8295 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
8296 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8298 2010-06-10 Martin Jambor <mjambor@suse.cz>
8300 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
8301 * dbgcnt.def (tree_sra): New counter.
8302 * tree-sra.c: Include dbgcnt.h.
8303 (gate_intra_sra): Check tree_sra debug counter.
8305 2010-06-10 Martin Jambor <mjambor@suse.cz>
8307 PR tree-optimization/44258
8308 * tree-sra.c (build_access_subtree): Return false iff there is a
8310 (build_access_trees): Likewise.
8311 (analyze_all_variable_accesses): Disqualify candidates if
8312 build_access_trees returns true for them.
8314 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
8317 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
8318 tail-recurse into canonical node. Fast-forward over
8319 non-canonical VALUEs.
8321 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
8324 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
8325 (*addsi_1_zext) <TYPE_LEA>: Likewise.
8326 (add lea splitter): Likewise.
8327 (add_zext lea splitter): Likewise.
8329 2010-06-10 Joseph Myers <joseph@codesourcery.com>
8331 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
8333 2010-06-10 Jan Hubicka <jh@suse.cz>
8335 * df-problems.c (df_live_problem_data): Add live_bitmaps.
8336 (df_live_alloc): Initialize problem data and live_osbtacks.
8337 (df_live_finalize): Remove obstack, problem data; do not
8339 (df_live_top_dump, df_live_bottom_dump): Do not dump old
8340 data when not allocated.
8341 (df_live_verify_solution_start): Do not allocate problem data.
8342 (df_live_verify_solution_end): Check if out is allocated.
8343 (struct df_md_problem_data): New structure.
8344 (df_md_alloc): Allocate problem data.
8345 (df_md_free): Free problem data; do not clear bitmaps.
8347 2010-06-10 Jan Beulich <jbeulich@novell.com>
8350 * configure.ac: Replace $() with ${} when intending to expand
8351 variables rather than invoking commands.
8352 * configure: Re-generate.
8354 2010-06-10 Jan Hubicka <jh@suse.cz>
8356 PR rtl-optimization/44460
8357 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8358 TYPE_NEEDS_CONSTRUCTING sanity check.
8360 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8362 * doc/include/fdl.texi: Move to GFDL version 1.3.
8364 * doc/cpp.texi: Move to GFDL version 1.3.
8365 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
8366 * doc/gccint.texi: Move to GFDL version 1.3.
8367 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
8368 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
8369 * doc/invoke.texi: Move to GFDL version 1.3.
8371 2010-06-09 Jan Hubicka <jh@suse.cz>
8373 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
8375 (propagate) ... here; swap the order.
8377 2010-06-09 Jan Hubicka <jh@suse.cz>
8379 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
8380 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
8381 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
8382 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
8384 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
8386 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8387 Do not the gather memory reference in the outer loop if the step
8390 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
8392 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
8393 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8394 8 to 4. Minor change of the related comments.
8396 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8398 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
8399 the scev analysis when the variable is not used outside the loop
8400 in a close phi node: call compute_overall_effect_of_inner_loop.
8402 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8404 * graphite-sese-to-poly.c (single_pred_cond): Renamed
8405 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
8406 (build_sese_conditions_before): Renamed call to single_pred_cond.
8407 (build_sese_conditions_after): Same.
8409 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
8411 * graphite-poly.h: Fix comments and indentation.
8412 * graphite-sese-to-poly.c: Same.
8413 (build_sese_conditions_before): Compute stmt and gbb only when needed.
8414 * tree-chrec.c: Fix comments and indentation.
8415 (tree-ssa-loop-niter.c): Same.
8417 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8419 PR rtl-optimization/42461
8420 * dce.c (deletable_insn_p): Return true for const or pure calls again.
8421 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
8423 2010-06-09 Jan Hubicka <jh@suse.cz>
8425 * bitmap.c (bitmap_and): Walk array forward.
8426 (bitmap_and_compl_into): Likewise.
8427 (bitmap_xor): Likewise.
8428 (bitmap_xor_into): Likewise.
8429 (bitmap_equal_p): Likewise.
8430 (bitmap_intersect_p): Likewise.
8431 (bitmap_intersect_compl_p): Likewise.
8432 (bitmap_ior_and_into): Likewise.
8433 (bitmap_elt_copy): Likewise.
8434 (bitmap_and_compl): Likewise.
8435 (bitmap_elt_ior): Likewise.
8437 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
8439 * opts-common.c (prune_options): Ensure replacement argv array
8440 is correctly terminated by a NULL entry.
8442 2010-06-09 Jan Hubicka <jh@suse.cz>
8444 * cgraph.h (varpool_first_static_initializer,
8445 varpool_next_static_initializer): Make checking only when
8447 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
8448 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
8449 gcc_assert to gcc_checking_assert.
8450 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
8451 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
8452 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
8453 op_iter_init_phiuse, op_iter_init_phidef,
8454 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
8455 gcc_checking_assert.
8456 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
8457 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
8458 partition_is_global, live_on_entry, live_on_exit,
8459 live_merge_and_clear): Likewise.
8460 * system.h (gcc_checking_assert): New macro.
8461 * gimple.h (set_bb_seq): Use gcc_checking_assert.
8463 2010-06-09 Jason Merrill <jason@redhat.com>
8465 * Makefile.in (TAGS): Collect tags info from c-family.
8467 2010-06-09 Jan Hubicka <jh@suse.cz>
8469 * gimple.h (gcc_gimple_checking_assert): New macro.
8470 (gimple_set_def_ops, gimple_set_use_ops,
8471 gimple_set_vuse, gimple_set_vdef,
8472 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
8473 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
8474 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
8475 gimple_asm_output_op, gimple_asm_output_op_ptr,
8476 gimple_asm_set_output_op, gimple_asm_clobber_op,
8477 gimple_asm_set_clobber_op, gimple_asm_label_op,
8478 gimple_asm_set_label_op, gimple_try_set_kind,
8479 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
8480 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
8481 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
8482 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
8483 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
8484 gimple_omp_for_set_initial, gimple_omp_for_final,
8485 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
8486 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
8487 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
8488 conditional with ENABLE_GIMPLE_CHECKING.
8489 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
8491 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
8493 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
8494 (get_computation_cost_at): Use it.
8495 (determine_use_iv_cost_condition): Likewise.
8496 (determine_iv_cost): Likewise.
8498 2010-06-09 Richard Guenther <rguenther@suse.de>
8500 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
8503 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
8505 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
8507 2010-06-09 Martin Jambor <mjambor@suse.cz>
8509 PR tree-optimization/44423
8510 * tree-sra.c (dump_access): Dump also grp_assignment_read.
8511 (analyze_access_subtree): Pass negative allow_replacements to children
8512 if the current type is scalar.
8514 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
8517 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
8518 * doc/plugins.texi (Plugin license check): Update information
8519 on type of plugin_is_GPL_compatible.
8520 * Makefile.in (PLUGINCC): Define as $(COMPILER).
8521 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
8523 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
8525 * config/arm/arm.c (thumb2_reorg): New function.
8526 (arm_reorg): Call it.
8527 * config/arm/thumb2.md (define_peephole2 for flag clobbering
8528 arithmetic operations): Delete.
8530 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
8533 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
8536 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
8539 * gcc-plugin.h: Encapsulate all declarations in extern "C".
8541 2010-06-08 Jan Hubicka <jh@suse.cz>
8543 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
8544 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
8546 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
8548 PR tree-optimization/39874
8550 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
8552 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
8553 same_bool_result_p): New.
8554 (and_var_with_comparison, and_var_with_comparison_1,
8555 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
8556 (or_var_with_comparison, or_var_with_comparison_1,
8557 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
8558 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
8559 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
8560 of combine_comparisons.
8561 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
8563 2010-06-08 Anatoly Sokolov <aesok@post.ru>
8565 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8566 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8567 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
8568 pdp11_function_value_regno_p): New functions.
8569 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8570 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8572 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
8574 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
8575 Thumb-2 in the MINUS case.
8577 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8579 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
8581 * doc/gty.texi (GTY Options): Document typed GC allocation and
8582 variable_size GTY option.
8584 * ggc-internal.h: New.
8586 * ggc.h: Update copyright year.
8587 (digit_string): Move to stringpool.c.
8588 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
8589 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
8590 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
8591 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
8592 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
8593 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
8594 (ggc_force_collect, ggc_get_size, ggc_statistics)
8595 (ggc_print_common_statistics): Move to ggc-internal.h.
8596 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
8597 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
8598 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
8599 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
8600 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
8601 (ggc_alloc_zone_pass_stat): Remove.
8602 (ggc_internal_alloc_stat, ggc_internal_alloc)
8603 (ggc_internal_cleared_alloc_stat): New.
8604 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
8605 (ggc_internal_vec_alloc_stat)
8606 (ggc_internal_cleared_vec_alloc_stat)
8607 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
8608 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8609 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8610 (ggc_cleared_alloc_ptr_array_two_args): New.
8611 (htab_create_ggc, splay_tree_new_ggc): Redefine.
8612 (ggc_splay_alloc): Change the type of the first argument to
8614 (ggc_alloc_string): Make macro.
8615 (ggc_alloc_string_stat): New.
8616 (ggc_strdup): Redefine.
8617 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8618 (ggc_alloc_rtvec_sized): New.
8619 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8620 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8621 (ggc_internal_cleared_alloc_zone_stat)
8622 (ggc_internal_zone_alloc_stat)
8623 (ggc_internal_zone_cleared_alloc_stat)
8624 (ggc_internal_zone_vec_alloc_stat)
8625 (ggc_alloc_zone_rtx_def_stat)
8626 (ggc_alloc_zone_tree_node_stat)
8627 (ggc_alloc_zone_cleared_tree_node_stat)
8628 (ggc_alloc_cleared_gimple_statement_d_stat): New.
8630 * ggc-common.c: Include ggc-internal.h.
8631 (ggc_internal_cleared_alloc_stat): Rename from
8632 ggc_alloc_cleared_stat.
8633 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8634 (ggc_calloc): Remove.
8635 (ggc_cleared_alloc_htab_ignore_args): New.
8636 (ggc_cleared_alloc_ptr_array_two_args): New.
8637 (ggc_splay_alloc): Add obj_type parameter.
8638 (init_ggc_heuristics): Formatting fixes.
8640 * ggc-none.c: Update copyright year.
8641 (ggc_alloc_stat): Rename to ggc_alloc_stat.
8642 (ggc_alloc_cleared_stat): Rename to
8643 ggc_internal_cleared_alloc_stat.
8644 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8646 * ggc-page.c: Update copyright year. Include ggc-internal.h.
8647 Remove references to ggc_alloc in comments.
8648 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8649 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8650 (new_ggc_zone, destroy_ggc_zone): Remove.
8651 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8653 * ggc-zone.c: Include ggc-internal.h. Remove references to
8654 ggc_alloc in comments.
8655 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8656 (ggc_internal_alloc_zone_pass_stat): New.
8657 (ggc_internal_cleared_alloc_zone_stat): New.
8658 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8659 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8660 (new_ggc_zone, destroy_ggc_zone): Remove.
8662 * stringpool.c: Update copyright year. Include ggc-internal.h
8663 (digit_vector): Make static.
8664 (digit_string): Moved from ggc.h.
8665 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8666 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8668 * Makefile.in (GGC_INTERNAL_H): New.
8669 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8670 $(GGC_INTERNAL_H) to dependencies.
8672 * gentype.c: Update copyright year.
8673 (walk_type): Accept variable_size GTY option.
8674 (USED_BY_TYPED_GC_P): New macro.
8675 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
8676 whitespace at the end of strings.
8677 (get_type_specifier, variable_size_p): New functions.
8678 (alloc_quantity, alloc_zone): New enums.
8679 (write_typed_alloc_def): New function.
8680 (write_typed_struct_alloc_def): Likewise.
8681 (write_typed_typed_typedef_alloc_def): Likewise.
8682 (write_typed_alloc_defns): Likewise.
8683 (output_typename, write_splay_tree_allocator_def): Likewise.
8684 (write_splay_tree_allocators): Likewise.
8685 (main): Call write_typed_alloc_defns and
8686 write_splay_tree_allocators.
8688 * lto-streamer.h (lto_file_decl_data_ptr): New.
8690 * passes.c (order): Define using cgraph_node_ptr.
8692 * strinpool.c (struct string_pool_data): Declare nested_ptr using
8695 * gimple.h (union gimple_statement_d): Likewise.
8697 * rtl.h (struct rtx_def): Likewise.
8698 (struct rtvec_def): Likewise.
8700 * tree.h (union tree_node): Likewise.
8702 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8704 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8706 * tree-scalar-evolution.c (scev_initialize): Likewise.
8708 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8710 * dwarf2asm.c (dw2_force_const_mem): Likewise.
8712 * omp-low.c (lower_omp_critical): Likewise.
8714 * bitmap.h (struct bitmap_head_def): Update comment to not
8715 reference ggc_alloc.
8717 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8719 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8721 * ipa-prop.c (duplicate_ggc_array): Rename to
8722 duplicate_ipa_jump_func_array. Use typed GC allocation.
8723 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8725 * gimple.c (gimple_alloc_stat): Use
8726 ggc_alloc_cleared_gimple_statement_d_stat.
8728 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8730 * tree.c (make_node_stat): Use
8731 ggc_alloc_zone_cleared_tree_node_stat.
8732 (make_tree_vec_stat): Likewise.
8733 (build_vl_exp_stat): Likewise.
8734 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8735 (make_tree_binfo_stat): Likewise.
8736 (tree_cons_stat): Likewise.
8738 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8739 (shallow_copy_rtx_stat): Likewise.
8740 (make_node_stat): Likewise.
8742 * lto-symtab.c: Fix comment.
8744 * tree-cfg.c (create_bb): Update comment to not reference
8746 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
8748 * varpool.c (varpool_node): Use typed GC allocation.
8749 (varpool_extra_name_alias): Likewise.
8751 * varasm.c (emutls_decl): Likewise.
8752 (get_unnamed_section): Likewise.
8753 (get_noswitch_section): Likewise.
8754 (get_section): Likewise.
8755 (get_block_for_section): Likewise.
8756 (build_constant_desc): Likewise.
8757 (create_constant_pool): Likewise.
8758 (force_const_mem): Likewise.
8760 * tree.c (build_vl_exp_stat): Likewise.
8761 (build_real): Likewise.
8762 (build_string): Likewise.
8763 (decl_debug_expr_insert): Likewise.
8764 (decl_value_expr_insert): Likewise.
8765 (type_hash_add): Likewise.
8766 (build_omp_clause): Likewise.
8768 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
8770 * tree-ssa.c (init_tree_ssa): Likewise.
8772 * tree-ssa-structalias.c (heapvar_insert): Likewise.
8774 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8776 * tree-ssa-loop-niter.c (record_estimate): Likewise.
8778 * tree-ssa-alias.c (get_ptr_info): Likewise.
8780 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8782 * tree-phinodes.c (allocate_phi_node): Likewise.
8784 * tree-iterator.c (tsi_link_before): Likewise.
8785 (tsi_link_after): Likewise.
8787 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8789 * tree-dfa.c (create_var_ann): Likewise.
8791 * tree-cfg.c (create_bb): Likewise.
8793 * toplev.c (alloc_for_identifier_to_locale): Likewise.
8794 (general_init): Likewise.
8796 * stringpool.c (stringpool_ggc_alloc): Likewise.
8797 (gt_pch_save_stringpool): Likewise.
8799 * sese.c (if_region_set_false_region): Likewise.
8801 * passes.c (do_per_function_toporder): Likewise.
8803 * optabs.c (set_optab_libfunc): Likewise.
8804 (set_conv_libfunc): Likewise.
8806 * lto-symtab.c (lto_symtab_register_decl): Likewise.
8808 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8809 (input_eh_region): Likewise.
8810 (input_eh_lp): Likewise.
8811 (make_new_block): Likewise.
8812 (unpack_ts_real_cst_value_fields): Likewise.
8814 * lto-section-in.c (lto_new_in_decl_state): Likewise.
8816 * lto-cgraph.c (input_node_opt_summary): Likewise.
8818 * loop-init.c (loop_optimizer_init): Likewise.
8820 * lambda.h (lambda_vector_new): Likewise.
8822 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
8824 * ira.c (update_equiv_regs): Likewise.
8826 * ipa.c (cgraph_node_set_new): Likewise.
8827 (cgraph_node_set_add): Likewise.
8828 (varpool_node_set_new): Likewise.
8829 (varpool_node_set_add): Likewise.
8831 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
8832 (duplicate_ipa_jump_func_array): Likewise.
8833 (ipa_read_node_info): Likewise.
8835 * ipa-cp.c (ipcp_create_replace_map): Likewise.
8837 * integrate.c (get_hard_reg_initial_val): Likewise.
8839 * gimple.c (gimple_alloc_stat): Likewise.
8840 (gimple_build_omp_for): Likewise.
8841 (gimple_seq_alloc): Likewise.
8842 (gimple_copy): Likewise.
8844 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
8845 (gsi_insert_after_without_update): Likewise.
8847 * function.c (add_frame_space): Likewise.
8848 (insert_temp_slot_address): Likewise.
8849 (assign_stack_temp_for_type): Likewise.
8850 (allocate_struct_function): Likewise.
8851 (types_used_by_var_decl_insert): Likewise.
8853 * except.c (init_eh_for_function): Likewise.
8854 (gen_eh_region): Likewise.
8855 (gen_eh_region_catch): Likewise.
8856 (gen_eh_landing_pad): Likewise.
8857 (add_call_site): Likewise.
8859 * emit-rtl.c (get_mem_attrs): Likewise.
8860 (get_reg_attrs): Likewise.
8861 (start_sequence): Likewise.
8862 (init_emit): Likewise.
8864 * dwarf2out.c (new_cfi): Likewise.
8865 (queue_reg_save): Likewise.
8866 (dwarf2out_frame_init): Likewise.
8867 (new_loc_descr): Likewise.
8868 (find_AT_string): Likewise.
8869 (new_die): Likewise.
8870 (add_var_loc_to_decl): Likewise.
8871 (clone_die): Likewise.
8872 (clone_as_declaration): Likewise.
8873 (break_out_comdat_types): Likewise.
8874 (new_loc_list): Likewise.
8875 (loc_descriptor): Likewise.
8876 (add_loc_descr_to_each): Likewise.
8877 (add_const_value_attribute): Likewise.
8878 (tree_add_const_value_attribute): Likewise.
8879 (add_comp_dir_attribute): Likewise.
8880 (add_name_and_src_coords_attributes): Likewise.
8881 (lookup_filename): Likewise.
8882 (store_vcall_insn): Likewise.
8883 (dwarf2out_init): Likewise.
8885 * dbxout.c (dbxout_init): Likewise.
8887 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8889 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
8891 * config/score/score7.c (score7_output_external): Likewise.
8893 * config/score/score3.c (score3_output_external): Likewise.
8895 * config/s390/s390.c (s390_init_machine_status): Likewise.
8897 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
8898 (rs6000_init_machine_status): Likewise.
8899 (output_toc): Likewise.
8901 * config/pa/pa.c (pa_init_machine_status): Likewise.
8902 (get_deferred_plabel): Likewise.
8904 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
8906 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
8908 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
8910 * config/mep/mep.c (mep_init_machine_status): Likewise.
8911 (mep_note_pragma_flag): Likewise.
8913 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
8915 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
8917 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
8919 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
8920 (i386_pe_maybe_record_exported_symbol): Likewise.
8922 * config/i386/i386.c (get_dllimport_decl): Likewise.
8923 (ix86_init_machine_status): Likewise.
8924 (assign_386_stack_local): Likewise.
8926 * config/frv/frv.c (frv_init_machine_status): Likewise.
8928 * config/darwin.c (machopic_indirection_name): Likewise.
8930 * config/cris/cris.c (cris_init_machine_status): Likewise.
8932 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
8934 * config/avr/avr.c (avr_init_machine_status): Likewise.
8936 * config/arm/arm.c (arm_init_machine_status): Likewise.
8938 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
8939 (alpha_need_linkage): Likewise.
8940 (alpha_use_linkage): Likewise.
8942 * cgraph.c (cgraph_allocate_node): Likewise.
8943 (cgraph_create_edge_1): Likewise.
8944 (cgraph_create_indirect_edge): Likewise.
8945 (cgraph_add_asm_node): Likewise.
8947 * cfgrtl.c (init_rtl_bb_info): Likewise.
8949 * cfgloop.c (alloc_loop): Likewise.
8950 (rescan_loop_exit): Likewise.
8952 * cfg.c (init_flow): Likewise.
8953 (alloc_block): Likewise.
8954 (unchecked_make_edge): Likewise.
8956 * c-parser.c (c_parse_init): Likewise.
8957 (c_parse_file): Likewise.
8959 * c-decl.c (bind): Likewise.
8960 (record_inline_static): Likewise.
8961 (push_scope): Likewise.
8962 (make_label): Likewise.
8963 (lookup_label_for_goto): Likewise.
8964 (finish_struct): Likewise.
8965 (finish_enum): Likewise.
8966 (c_push_function_context): Likewise.
8968 * bitmap.c (bitmap_element_allocate): Likewise.
8969 (bitmap_gc_alloc_stat): Likewise.
8971 * alias.c (record_alias_subset): Likewise.
8972 (init_alias_analysis): Likewise.
8974 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
8976 * fold-const.c (fold_comparison): Remove redundant parenthesis.
8977 * tree-inline.c (expand_call_inline): Pass translated return value of
8978 cgraph_inline_failed_string to diagnostic function.
8980 2010-06-08 Andrew Pinski <pinskia@gmail.com>
8981 Shujing Zhao <pearly.zhao@oracle.com>
8984 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
8985 implicit bad conversions is initialization.
8986 (error_init): Use gmsgid instead of msgid for argument name and change
8988 (pedwarn_init): Use gmsgid instead of msgid for argument name and
8989 change the call for pedwarn.
8990 (warning_init): Use gmsgid instead of msgid for argument name and
8991 change the call for warning.
8993 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
8995 * config/mips/mips-protos.h (mips_print_operand): Delete.
8996 (mips_print_operand_address): Delete.
8997 * config/mips/mips.h (mips_print_operand_punct): Delete.
8998 (PRINT_OPERAND): Delete.
8999 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9000 (PRINT_OPERAND_ADDRESS): Delete.
9001 * config/mips/mips.c (mips_print_operand_punct): Make static.
9002 (mips_print_operand_address): Make static.
9003 (mips_print_operand): Make static. Call
9004 mips_print_operand_punct_valid_p.
9005 (mips_print_operand_punct_valid_p): New function.
9006 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9007 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9009 2010-06-07 Jan Hubicka <jh@suse.cz>
9012 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
9015 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
9017 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
9020 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9022 * doc/sourcebuild.texi (Effective-Target Keywords, Other
9023 attributes): Document gas.
9025 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
9027 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
9028 <TYPE_LEA>: Split instruction.
9029 <default>: Remove alternative 2 handling.
9030 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
9031 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
9032 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
9034 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
9035 (ashift_zext lea splitter): Use DImode for multiplication.
9037 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
9038 to generate addition.
9040 2010-06-07 Joseph Myers <joseph@codesourcery.com>
9042 * common.opt (fira-verbose): Use Var.
9043 (fpcc-struct-return): Use Init instead of VarExists.
9044 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
9046 * flags.h (flag_signed_char, flag_short_enums,
9047 flag_pcc_struct_return, flag_ira_verbose,
9048 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
9049 * toplev.c (flag_detailed_statistics, flag_signed_char,
9050 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
9051 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
9052 * toplev.h (flag_crossjumping, flag_if_conversion,
9053 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
9054 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
9055 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
9056 flag_cprop_registers, time_report, flag_ira_loop_pressure,
9057 flag_ira_coalesce, flag_ira_move_spills,
9058 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
9060 2010-06-07 Jan Hubicka <jh@suse.cz>
9062 * df-core.c (df_analyze_problem): Do verification after allocation.
9064 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
9065 (df_lr_alloc): Initialize problem data; move bitmaps to
9067 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
9068 (df_lr_verify_solution_start): Do not initialize problem data;
9069 allocate bitmaps in lr_bitmaps.
9070 (df_lr_verify_solution_end): Do not free problem data.
9072 2010-06-07 Jan Hubicka <jh@suse.cz>
9074 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
9075 if caller is noreturn.
9076 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
9077 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
9078 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
9079 * ipa-pure-const.c (check_decl): Add IPA parameter.
9080 (state_from_flags): New function.
9081 (better_state, worse_state): New functions.
9082 (check_call): When in IPA mode, do not care about callees.
9083 (check_load, check_store): Update.
9084 (check_ipa_load, check_ipa_store): New.
9085 (check_stmt): When in IPA mode, use IPA checkers.
9086 (analyze_function): Use state_from_flags.
9087 (propagate): Check indirect edges and references.
9089 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
9091 PR rtl-optimization/44404
9092 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
9093 of count_occurrences to see if it's safe to modify mem_insn.
9095 2010-06-07 Richard Guenther <rguenther@suse.de>
9097 * gimplify.c (gimplify_cleanup_point_expr): For empty body
9098 and EH-only cleanup drop the cleanup instead of inserting it
9101 2010-06-07 Ira Rosen <irar@il.ibm.com>
9103 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
9105 * targhooks.c (default_builtin_vectorization_cost): New function.
9106 * targhooks.h (default_builtin_vectorization_cost): Declare.
9107 * target.h (enum vect_cost_for_stmt): Define.
9108 (builtin_vectorization_cost): Change argument and comment.
9109 * tree-vectorizer.h: Remove cost model macros.
9110 * tree-vect-loop.c: Include target.h.
9111 (vect_get_cost): New function.
9112 (vect_estimate_min_profitable_iters): Replace cost model macros with
9113 calls to vect_get_cost.
9114 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
9115 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
9116 default implementation.
9117 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
9118 calls to target hook builtin_vectorization_cost.
9119 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
9121 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
9122 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
9123 implementation to return costs.
9124 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9125 * config/spu/spu.h: Remove vectorizer cost model macros.
9126 * config/i386/i386.h: Likewise.
9127 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
9128 a call to target hook builtin_vectorization_cost.
9130 2010-06-06 Sriraman Tallam <tmsriram@google.com>
9133 * config/i386/i386.c (override_options): Turn zee pass on for level 2
9134 and above and defer till target is known.
9135 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
9138 2010-05-25 Jan Hubicka <jh@suse.cz>
9140 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
9141 (df_compact_blocks): Likewise.
9142 * df.h (struct df): Turn hardware_regs_used,
9143 regular_block_artificial_uses, eh_block_artificial_uses,
9144 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
9146 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
9147 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
9148 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
9149 df_scan_blocks, df_insn_delete, df_insn_rescan,
9150 df_insn_rescan_debug_internal, df_insn_rescan_all,
9151 df_process_deferred_rescans, df_process_deferred_rescans,
9152 df_notes_rescan, df_get_call_refs, df_get_call_refs,
9153 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
9154 df_record_entry_block_defs, df_record_exit_block_uses,
9155 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
9156 df_scan_verify): Update.
9158 2010-05-25 Dodji Seketeli <dodji@redhat.com>
9161 * c-common.c (is_typedef_decl): Move this definition ...
9162 * tree.c (is_typedef_decl): ... here.
9163 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9164 * c-common.h (is_typedef_decl): Move this declaration ...
9165 * tree.h (is_typedef_decl): ... here.
9166 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9167 * dwarf2out.c (is_naming_typedef_decl): New function.
9168 (gen_tagged_type_die): Split out of ...
9169 (gen_type_die_with_usage): ... this function. When an anonymous
9170 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9171 is emitted for the typedef.
9172 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9173 anonymous tagged types.
9175 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
9178 * c-decl.c (grokdeclarator): Delete warning.
9180 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
9182 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
9183 newly built CALL_EXPR.
9184 * tree-profile.c (tree_profiling): Don't profile functions produced
9187 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
9191 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
9192 endianness-independent.
9194 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9196 * c-common.c: Move to c-family/.
9197 * c-common.def: Likewise.
9198 * c-common.h: Likewise.
9199 * c-cppbuiltin.c: Likewise.
9200 * c-dump.c: Likewise.
9201 * c-format.c: Likewise.
9202 * c-format.h : Likewise.
9203 * c-gimplify.c: Likewise.
9204 * c-lex.c: Likewise.
9205 * c-omp.c: Likewise.
9207 * c-opts.c: Likewise.
9208 * c-pch.c: Likewise.
9209 * c-ppoutput.c: Likewise.
9210 * c-pragma.c: Likewise.
9211 * c-pragma.h: Likewise.
9212 * c-pretty-print.c: Likewise.
9213 * c-pretty-print.h: Likewise.
9214 * c-semantics.c: Likewise.
9215 * stub-objc.c: Likewise.
9217 * gengtype.c (get_file_langdir): Special-case files in c-family/.
9218 (get_output_file_with_visibility): Fix name for c-common.h.
9219 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
9221 * c-tree.h: Update include path for moved files.
9222 * c-lang.c: Likewise.
9223 * c-lang.h: Likewise.
9224 * c-parser.c: Likewise.
9225 * c-convert.c: Likewise.
9226 * c-decl.c: Likewise.
9227 * c-objc-common.c: Likewise.
9228 * configure.ac: Make sure c-family/ exists in the build directory.
9229 * configure: Regenerate.
9230 * Makefile.in: Update paths for moved files. Regroup files per
9231 location and update dependencies. Move generated_files down after
9234 * config/spu/spu-c.c: Update paths for moved files.
9235 * config/mep/mep-pragma.c: Likewise.
9236 * config/darwin-c.c: Likewise.
9237 * config/i386/msformat-c.c: Likewise.
9238 * config/i386/i386-c.c: Likewise.
9239 * config/avr/avr-c.c: Likewise.
9240 * config/sol2-c.c: Likewise.
9241 * config/ia64/ia64-c.c: Likewise.
9242 * config/rs6000/rs6000-c.c: Likewise.
9243 * config/arm/arm.c: Likewise.
9244 * config/arm/arm-c.c: Likewise.
9245 * config/h8300/h8300.c: Likewise.
9246 * config/v850/v850-c.c: Likewise.
9248 * config/t-darwin: Fix dependencies for moved files.
9249 * config/t-sol2: Fix dependencies for moved files.
9250 * config/mep/t-mep: Fix dependencies for moved files.
9251 * config/ia64/t-ia64: Fix dependencies for moved files.
9252 * config/rs6000/t-rs6000: Fix dependencies for moved files.
9253 * config/v850/t-v850: Fix dependencies for moved files.
9254 * config/v850/t-v850e: Fix dependencies for moved files.
9256 * config/m32c/m32c-pragma.c
9258 * po/exgettext: Look in c-family/ also.
9260 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
9262 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
9263 (mark_control_dependent_edges_necessary): Call it instead of marking
9264 the last statement manually.
9265 (propagate_necessity): Likewise.
9267 2010-06-05 Jan Hubicka <jh@suse.cz>
9269 * basic-block.h (compute_dominance_frontiers): Updated.
9270 (compute_idf): Likewise.
9272 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
9273 for dominance frontiers.
9274 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
9275 (insert_updated_phi_nodes_for): Likewise.
9276 (update_ssa): Likewise.
9277 * cfganal.c (compute_dominance_frontiers_1): Likewise.
9278 (compute_dominance_frontiers): Likewise.
9279 (compute_idf): Likewise.
9280 * df-problems.c (df_md_local_compute): Likewise.
9282 2010-06-05 Anatoly Sokolov <aesok@post.ru>
9284 * target.h (struct gcc_target): Add memory_move_cost field.
9285 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
9286 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
9287 * targhooks.c (default_memory_move_cost): New function.
9288 * targhooks.h (default_memory_move_cost): Declare function.
9289 * reload.h (memory_move_cost): Declare.
9290 (memory_move_secondary_cost): Change type of 'in' argument to bool.
9291 * reginfo.c (memory_move_cost): New function.
9292 (memory_move_secondary_cost): Change type of 'in' argument to bool.
9293 * ira.h (ira_memory_move_cost): Update comment.
9294 * ira.c (ira_memory_move_cost): Update comment.
9295 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
9296 with memory_move_cost.
9297 * postreload.c (reload_cse_simplify_set): (Ditto.).
9298 * reload1.c (choose_reload_regs): (Ditto.).
9299 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
9300 (MEMORY_MOVE_COST): Revise documentation.
9302 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9303 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9304 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
9305 type of 'in' argument to bool.
9306 (TARGET_MEMORY_MOVE_COST): Define.
9308 2010-06-05 Jan Hubicka <jh@suse.cz>
9310 * ipa-pure-const.c (propagate): Fix typo in handling of functions
9311 that cannot return. Be more careful when merging the results with
9312 previously known ones.
9314 2010-06-05 Matthias Klose <doko@ubuntu.com>
9316 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
9317 function to add the -iplugindir option.
9318 (find_plugindir_spec_function): Add new declaration and function.
9319 (static_spec_func): Use it for "find-plugindir".
9321 2010-06-05 Jakub Jelinek <jakub@redhat.com>
9324 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
9325 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
9326 statement expression.
9328 2010-06-05 Jan Hubicka <jh@suse.cz>
9330 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
9331 (df_rd_problem_data): Convert sparse_invalidated_by_call,
9332 dense_invalidated_by_call to bitmap head.
9333 (df_rd_alloc, df_rd_bb_local_compute_process_def,
9334 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
9335 df_rd_start_dump, df_lr_verify_transfer_functions,
9336 df_live_verify_transfer_functions, df_chain_create_bb,
9337 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
9338 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
9339 df_simulate_one_insn_forwards, df_md_alloc,
9340 df_md_bb_local_compute_process_def,
9341 df_md_bb_local_compute_process_def, df_md_local_compute,
9342 df_md_transfer_function df_md_free): Update.
9344 2010-06-05 Joseph Myers <joseph@codesourcery.com>
9347 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
9348 target type for ADDR_EXPR; require no changes to qualifiers except
9350 * c-tree.h (c_build_type_variant): Remove.
9352 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
9354 * genautomata.c (get_excl_set): Do work per element, not per char.
9355 (check_presence_pattern_sets): Similar.
9356 (check_absence_pattern_sets): Similar.
9358 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
9360 * genautomata.c (curr_state_pass_num): Delete.
9361 (min_issue_delay_pass_states): Delete.
9362 (min_issue_delay): Delete.
9363 (initiate_min_issue_delay_pass_states): Delete.
9364 (output_min_issue_delay_table): Compute min_issue_delay_vect
9365 using a breadth-first search variant.
9366 (output_tables): Don't call initiate_min_issue_delay_pass_states.
9368 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
9371 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
9372 (df_byte_lr_bb_local_compute): Likewise.
9374 2010-06-03 Jason Merrill <jason@redhat.com>
9376 Implement noexcept operator (5.3.7)
9377 * c-common.c (c_common_reswords): Add noexcept.
9378 * c-common.h (enum rid): Add RID_NOEXCEPT.
9380 2010-06-04 Joseph Myers <joseph@codesourcery.com>
9382 * config/darwin-driver.c (darwin_default_min_version): Use
9383 GCC-specific formats in diagnostics.
9384 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
9386 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
9387 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
9388 eval_spec_function, handle_braces, process_brace_body, main,
9389 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
9390 getenv_spec_function, compare_version_strings,
9391 version_compare_spec_function): Use GCC-specific formats in
9394 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9396 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
9397 that operand 0 and operand 1 are equal.
9398 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
9399 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
9400 and operand 1 are equal.
9401 <default>: Ditto. Remove ??? comment.
9402 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
9403 and operand 1 are equal.
9404 <default>: Ditto. Remove ??? comment.
9405 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
9407 (*add<mode>_4) <default>: Ditto.
9408 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
9410 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
9412 * config/i386/i386-protos.h (ix86_print_operand): Declare.
9413 * config/i386/i386.c (ix86_print_operand): Make non-static.
9414 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
9415 * output.h (output_operand): Declare.
9416 * final.c (output_operand): Make non-static.
9418 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
9420 PR rtl-optimization/44013
9421 * sched-deps.c (add_dependence_list_and_free): Don't free lists
9422 when processing debug insns.
9425 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
9426 recursing. Check that recursion is bounded. Rename inner var
9427 to avoid hiding incoming argument.
9429 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9431 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
9436 (*addqi_ext_1_rex64): Ditto.
9437 (*addqi_ext_1): Ditto.
9439 (*addqi_4): Check for incdec_operand in QImode.
9441 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
9442 using SWI mode iterator.
9443 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
9444 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
9446 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
9447 using SWI mode iterator.
9449 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
9452 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
9453 * c-format.c (gcc_diag_flag_specs): Add hash.
9454 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
9455 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
9456 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
9457 pp_c_cv_qualifiers. Handle qualifiers spelling here.
9458 (pp_c_type_qualifier_list): Call the function above.
9459 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
9460 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
9461 (WARN_FOR_QUALIFIERS): New macro.
9462 (convert_for_assignment): Use it.
9464 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
9466 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
9468 2010-06-04 Jan Hubicka <jh@suse.cz>
9470 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
9471 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
9472 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
9473 DF_BYTE_LR_OUT): Update for embedded bitmaps.
9474 * fwprop.c (single_def_use_enter_block): Likewise.
9475 * ddg.c (create_ddg_dep_from_intra_loop_link,
9476 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
9477 * loop-iv.c (latch_dominating_def): Likewise.
9478 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
9479 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
9480 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
9481 df_rd_transfer_function, df_rd_top_dump,
9482 df_rd_bottom_dump): Update.
9483 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
9484 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
9485 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
9486 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
9487 df_lr_verify_solution_start, df_lr_verify_solution_end,
9488 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
9489 df_live_free_bb_info, df_live_alloc, df_live_reset,
9490 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
9491 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
9492 df_live_verify_solution_start, df_live_verify_solution_end,
9493 df_live_verify_transfer_functions, df_chain_create_bb,
9494 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
9495 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9496 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9497 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
9498 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9499 df_byte_lr_transfer_function, df_byte_lr_top_dump,
9500 df_byte_lr_bottom_dump, df_create_unused_note,
9501 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
9502 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
9503 df_md_transfer_function, df_md_init, df_md_confluence_0,
9505 df_md_top_dump, df_md_bottom_dump): Update.
9506 (struct df_lr_problem_data): Embedd bitmap headers.
9508 2010-06-04 Jan Hubicka <jh@suse.cz>
9510 * dce.c (dce_process_block): Do not re-scan already marked
9513 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
9515 PR rtl-optimization/39871
9516 PR rtl-optimization/40615
9517 PR rtl-optimization/42500
9518 PR rtl-optimization/42502
9519 * ira.c (init_reg_equiv_memory_loc: New function.
9520 (ira): Call it twice.
9521 * reload.h (calculate_elim_costs_all_insns): Declare.
9522 * ira-costs.c: Include "reload.h".
9523 (regno_equiv_gains): New static variable.
9524 (init_costs): Allocate it.
9525 (finish_costs): Free it.
9526 (ira_costs): Call calculate_elim_costs_all_insns.
9527 (find_costs_and_classes): Take estimated elimination costs
9529 (ira_adjust_equiv_reg_cost): New function.
9530 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
9531 * reload1.c (init_eliminable_invariants, free_reg_equiv,
9532 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
9533 (elim_bb): New static variable.
9534 (reload): Move code out of here into init_eliminable_invariants and
9535 free_reg_equiv. Call them.
9536 (calculate_elim_costs_all_insns): New function.
9537 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
9538 all callers changed. If FOR_COSTS is true, don't call alter_reg,
9539 but call note_reg_elim_costly if we turned a valid memory address
9540 into an invalid one.
9541 * Makefile.in (ira-costs.o): Depend on reload.h.
9543 2010-06-04 Julian Brown <julian@codesourcery.com>
9545 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
9548 2010-06-04 Richard Guenther <rguenther@suse.de>
9551 * cgraph.h (struct varpool_node): Add lto_file_data field.
9552 * lto-cgraph.c (input_varpool_node): Initialize it.
9554 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
9556 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
9557 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
9558 predicate in "type" attribute calculation.
9559 (*addsi_1_zext): Ditto.
9560 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
9561 (*addsi_2_zext): Ditto.
9562 (*add<mode>_3): Ditto.
9563 (*addsi_3_zext): Ditto.
9564 (*add<mode>_5): Ditto.
9566 2010-06-03 Jan Hubicka <jh@suse.cz>
9568 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
9570 * cfganal.c (compute_dominance_frontiers_1): Likewise.
9572 2010-06-03 Jan Hubicka <jh@suse.cz>
9574 * df-problems.c (df_create_unused_note, df_note_bb_compute):
9575 micro-optimize the checks when to add new note.
9577 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
9579 * final.c (output_asm_insn): Call
9580 targetm.asm_out.print_operand_punct_valid_p. Update comments.
9581 (output_operand): Call targetm.asm_out.print_operand. Update comments.
9582 (output_address): Call targetm.asm_out.print_operand_address.
9584 * target.h (struct gcc_target): Add print_operand,
9585 print_operand_address, and print_operand_punct_valid_p fields.
9586 * targhooks.h (default_print_operand): Declare.
9587 (default_print_operand_address): Declare.
9588 (default_print_operand_punct_valid_p): Declare.
9589 * targhooks.c (default_print_operand): Define.
9590 (default_print_operand_address): Define.
9591 (default_print_operand_punct_valid_p): Define.
9592 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
9593 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
9594 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9595 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
9596 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
9597 * vmsdbgout.c (addr_const_to_string): Update comment.
9598 * config/i386/i386.c (print_operand): Rename to...
9599 (ix86_print_operand): ...this. Make static.
9600 (print_operand_address): Rename to...
9601 (ix86_print_operand_address): ...this. Make static. Call
9602 ix86_print_operand instead of PRINT_OPERAND.
9603 (ix86_print_operand_punct_valid_p): New function.
9604 (TARGET_PRINT_OPERAND): Define.
9605 (TARGET_PRINT_OPERAND_ADDRESS): Define.
9606 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9607 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
9608 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9609 (PRINT_OPERAND): Delete.
9610 (PRINT_OPERAND_ADDRESS): Delete.
9611 * config/i386/i386-protos.h (print_operand): Delete prototype.
9612 (print_operand_address): Delete prototype.
9614 2010-06-03 Richard Guenther <rguenther@suse.de>
9616 PR tree-optimization/44403
9617 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9618 Preserve pointer qualifiers.
9619 (vect_create_data_ref_ptr): Likewise.
9621 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
9624 * defaults.h (MAX_FIXED_MODE_SIZE): New.
9626 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9628 2010-06-03 Jakub Jelinek <jakub@redhat.com>
9631 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9632 return false if merging the bbs would lead to goto_locus
9633 location being lost from the IL.
9635 2010-06-03 Jan Hubicka <jh@suse.cz>
9636 Jakub Jelinek <jakub@redhat.com>
9638 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9639 set->regs[i] is NULL or has just one entry.
9641 2010-06-03 Jan Hubicka <jh@suse.cz>
9643 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9644 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9646 2010-06-03 Paul Brook <paul@codesourcery.com>
9648 * config/arm/arm.c (FL_TUNE): Define.
9649 (arm_default_cpu, arm_cpu_select): Remove.
9650 (all_cores): Populate core field.
9651 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9652 (arm_find_cpu): New function.
9653 (arm_handle_option): Lookup cpu/architecture names.
9654 (arm_override_options): Cleanup mcpu/march/mtune handling.
9655 (arm_file_start): Ditto.
9657 2010-06-03 Alan Modra <amodra@gmail.com>
9660 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9661 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9662 rtx to gen_load_toc_v4_PIC_1b. Tidy.
9663 (rs6000_emit_load_toc_table): Likewise.
9665 2010-06-02 Jan Hubicka <jh@suse.cz>
9667 * passes.c (init_optimization_passes): Put ipa reference
9668 after ipa pure-const.
9670 2010-06-02 Jan Hubicka <jh@suse.cz>
9672 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9673 calls_read_all and calls_write_all.
9674 (get_reference_optimization_summary): Fix formatting.
9675 (is_proper_for_analysis): Check that decl is not readonly.
9676 (propagate_bits): Check CONST/PURE/noreturn flags.
9677 (ipa_init): Move all_module_statics to optimization_summary_obstack.
9678 (analyze_function): Ignore indirect edges.
9679 (copy_global_bitmap): For all module statics, do nothing.
9680 (generate_summary): Do not print calls_read_all/calls_write_all.
9681 (read_write_all_from_decl): Take node as argument; check
9682 cgraph_node_cannot_return.
9683 (propagate): Reorganize read_all/write_all computation;
9684 check indirect edges; check ecf flags; use all_module_statics
9685 in the results; do not free all_module_statics.
9686 (stream_out_bitmap): Handle all_module_statics.
9687 (ipa_reference_write_optimization_summary): Likewise; use
9688 varpool/cgraph encoders to get boundaries.
9689 (ipa_reference_read_optimization_summary): Read in all_module_statics;
9690 use it when possible.
9692 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9695 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9696 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9698 * doc/extend.texi (powerpc builtins): Document vec_recip,
9699 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9701 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9702 (rs6000_emit_swrsqrt): Ditto.
9703 (rs6000_emit_swdivsf): Delete.
9704 (rs6000_emit_swdivdf): Ditto.
9705 (rs6000_emit_swrsqrtsf): Ditto.
9707 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9708 describe the reciprocal estimate support for each type.
9709 (recip_options): Map -mrecip=<opt> into option bits.
9710 (gen_2arg_fn_t): New typedef for binary rtx gen function.
9711 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9712 reciprocal estimate instructions.
9713 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9714 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9715 Set up rs6000_recip_bits based on the -mrecip* options. Print the
9716 cost information if -mdebug=cost or -mdebug=reg.
9717 (rs6000_override_options): Set -mrecip-precision for power6, and
9718 power7 machines. If -mvsx or -mdfp, enable various options that
9719 came in previous instruction set ISAs, unless the option was
9720 explicitly disabled by the command line option. Parse
9721 -mrecip=<opt> options.
9722 (rs6000_builtin_vectorized_function): Add support for vectorizing
9723 the reciprocal estimate builtins and expansions.
9724 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9725 (bdesc_2arg): Add reciprocal estimate builtins.
9726 (bdesc_1arg): Add reciprocal square root estimate builtins.
9727 (rs6000_expand_builtin): Rewrite to use a switch statement,
9728 instead of multiple if/then/elses. Add reciprocal estimate builtins.
9729 (rs6000_init_builtins): Create declarations for reciprocal
9731 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9732 sized, prefer traditional floating point registers, if integer
9733 vector types, prefer altivec registers. Don't actually look at
9734 the memory address any more.
9735 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9737 (rs6000_load_constant_and_splat): New helper function to load up
9738 the constant for reciprocal estimate instructions.
9739 (rs6000_emit_madd): New helper function for generating
9740 multiply/add type instructions, based on the current switches.
9741 (rs6000_emit_msub): Ditto.
9742 (rs6000_emit_mnsub): Ditto.
9743 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
9744 replace a divide with a reciprocal estimate and fixup, adding
9745 support for machines with high precision and vectors.
9746 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
9747 low precision machines.
9748 (rs6000_emit_swdiv): New common function to be called to replace a
9749 division with reciprocal estimate and fixup.
9750 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
9751 for double and vector types. Add support for high precision machines.
9753 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
9754 the reciprocal estimate instructions can be generated.
9755 (TARGET_FRE): Ditto.
9756 (TARGET_FRSQRTES): Ditto.
9757 (TARGET_FRSQRTE): Ditto.
9758 (RS6000_RECIP_*): New macros for reciprocal estimate support.
9760 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
9761 square root estimate on vectors.
9762 (re<mode>2): New insn for reciprocal division estimate on vectors.
9764 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
9766 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
9767 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
9768 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
9769 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
9770 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
9771 (RS6000_BUILTIN_RSQRT): Ditto.
9772 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
9773 floating point builtin.
9775 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9776 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
9777 __RECIP_PRECISION__ based on the command line switches.
9778 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
9780 * config/rs6000/rs6000.opt (-mrecip): Document add support for
9781 replacing division instructions with reciprocal estimate and fixup.
9782 (-mrecip=<opt>): New option.
9783 (-mrecip-precision): Ditto.
9785 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
9786 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
9787 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
9790 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
9791 (UNSPEC_VREFP): Ditto.
9792 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
9793 conterparts with regard to support of -mno-fused-madd and -ffast-math.
9794 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
9795 reciprocal estimate instructions to be generated.
9796 (altivec_vrefp): Ditto.
9798 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
9800 (rreg): New mode attribute for reciprocal estimate support.
9801 (recip<mode>3): New insn for division using reciprocal estimate
9803 (divide define_split): New define_split to convert floating point
9804 division to use reciprocal estimate if the user used the
9805 appropriate options and the split is run when we can add new
9806 pseudo registers for the fixup.
9807 (rsqrt<mode>2): New insn for reciprocal square root support.
9808 (recipsf3): Move into recip<mode>3.
9810 (fres): Use TARGET_FRES.
9811 (rsqrtsf2): Move into rsqrt<mode>2.
9812 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
9813 (copysignsf3): Add support for VSX.
9814 (fred): Use TARGET_FRE.
9816 (rsqrtdf_internal1): New function for frsqrte instruciton.
9818 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
9821 2010-06-03 Richard Guenther <rguenther@suse.de>
9824 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
9825 (set_user_assembler_libfunc): Likewise.
9827 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
9829 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
9831 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
9833 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
9834 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
9835 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
9836 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
9837 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
9838 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
9839 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
9840 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
9841 * defaults.h: Updated for above mentioned changes.
9843 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
9845 * c-common.c: Remove header include of tm_p.h.
9846 * Makefile.in (c-common.o): Remove TM_P_H dependency.
9848 2010-06-02 Jakub Jelinek <jakub@redhat.com>
9850 * tree.h (struct tree_decl_map): New type.
9851 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
9852 (tree_decl_map_hash): New prototype.
9853 (debug_expr_for_decl, value_expr_for_decl): Change into
9854 tree_decl_map hashtab from tree_map.
9855 (init_ttree): Adjust initialization.
9856 (tree_decl_map_hash): New function.
9857 (decl_debug_expr_lookup, decl_debug_expr_insert,
9858 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
9860 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9862 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
9864 * configure: Regenerate.
9865 * config.in: Regenerate.
9867 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
9868 (X86_64_EMULATION): Define.
9869 (TARGET_LD_EMULATION): Use them.
9871 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
9872 (SPARC64_EMULATION): Define.
9873 (LINK_ARCH_SPEC): Use them.
9875 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
9877 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
9878 smallest_mode_for_size for computing the precision types of new
9879 graphite IVs. Do not call lang_hooks.types.type_for_size.
9881 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
9883 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
9885 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
9887 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
9890 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
9891 return false instead.
9893 2010-06-02 Jan Hubicka <jh@suse.cz>
9896 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
9897 create new cgraph node to check callee.
9899 2010-06-02 Richard Guenther <rguenther@suse.de>
9901 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
9903 2010-06-02 Richard Guenther <rguenther@suse.de>
9905 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
9906 (lto_wrapper_cleanup): ... this. Do not exit.
9907 (fatal): Adjust. Exit here.
9908 (fatal_perror): Likewise.
9909 (fatal_signal): New function.
9910 (main): Set up signal handlers to cleanup temporary files.
9911 * Makefile.in (lto-wrapper.o): Adjust dependencies.
9913 2010-06-02 Richard Guenther <rguenther@suse.de>
9915 PR tree-optimization/44377
9916 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
9918 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9920 * config/s390/2097.md (z10_fhex): Remove insn reservation.
9921 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
9922 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
9923 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
9925 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
9927 2010-06-02 Jan Hubicka <jh@suse.cz>
9929 * bitmap.c (bitmap_descriptor): Add search_iter.
9930 (bitmap_find_bit): Increment it.
9931 (print_statistics): Print it.
9933 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
9935 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
9936 instead of gimple_build_call_vec. Delete unnecessary local variable.
9938 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
9940 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
9941 change from yesterday.
9943 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
9945 * c-ada-spec.c: Clean up redundant includes.
9947 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
9949 * gimplify.c: Do not include except.h and optabs.h.
9950 (gimplify_body): Do not initialize RTL profiling.
9951 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
9952 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
9953 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
9954 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
9957 * tree-pretty-print.h: Include pretty-print.h.
9958 * gimple-pretty-print.h: Include pretty-print.h.
9960 * tree-pretty-print.c: Do not include diagnostic.h.
9961 * tree-vrp.c: Likewise.
9962 * tree-tailcall.c: Likewise
9963 * tree-scalar-evolution.c: Likewise
9964 * tree-ssa-dse.c: Likewise
9965 * tree-chrec.c: Likewise
9966 * tree-ssa-sccvn.c: Likewise
9967 * tree-ssa-copyrename.c: Likewise
9968 * tree-nomudflap.c: Likewise
9969 * tree-call-cdce.c: Likewise
9970 * tree-stdarg.c: Likewise
9971 * tree-ssa-math-opts.c: Likewise
9972 * tree-nrv.c: Likewise
9973 * tree-ssa-sink.c: Likewise
9974 * tree-browser.c: Likewise
9975 * tree-ssa-loop-ivcanon.c: Likewise
9976 * tree-ssa-loop.c: Likewise
9977 * tree-parloops.c: Likewise
9978 * tree-ssa-address.c: Likewise
9979 * tree-ssa-ifcombine.c: Likewise
9980 * tree-if-conv.c: Likewise
9981 * tree-data-ref.c: Likewise
9982 * tree-affine.c: Likewise
9983 * tree-ssa-phiopt.c: Likewise
9984 * tree-ssa-coalesce.c: Likewise
9985 * tree-ssa-pre.c: Likewise
9986 * tree-ssa-live.c: Likewise
9987 * tree-predcom.c: Likewise
9988 * tree-ssa-forwprop.c: Likewise
9989 * tree-ssa-dce.c: Likewise
9990 * tree-ssa-ter.c: Likewise
9991 * tree-ssa-loop-prefetch.c: Likewise
9992 * tree-optimize.c: Likewise
9993 * tree-ssa-phiprop.c: Likewise
9994 * tree-object-size.c: Likewise
9995 * tree-outof-ssa.c: Likewise
9996 * tree-ssa-structalias.c: Likewise
9997 * tree-switch-conversion.c: Likewise
9998 * tree-ssa-reassoc.c: Likewise
9999 * tree-ssa-operands.c: Likewise
10000 * tree-vectorizer.c: Likewise
10001 * tree-vect-data-refs.c: Likewise
10002 * tree-vect-generic.c: Likewise
10003 * tree-vect-stmts.c: Likewise
10004 * tree-vect-patterns.c: Likewise
10005 * tree-vect-slp.c: Likewise
10006 * tree-vect-loop.c: Likewise
10007 * tree-ssa-loop-ivopts.c: Likewise
10008 * tree-ssa-loop-im.c: Likewise
10009 * tree-ssa-loop-niter.c: Likewise
10010 * tree-ssa-loop-unswitch.c: Likewise
10011 * tree-ssa-loop-manip.c: Likewise
10012 * tree-ssa-loop-ch.c: Likewise
10013 * tree-dump.c: Likewise
10014 * tree-complex.c: Likewise
10016 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
10017 * tree-ssa-uninit.c: Likewise
10018 * tree-ssa-threadupdate.c: Likewise
10019 * tree-ssa-uncprop.c: Likewise
10020 * tree-ssa-ccp.c: Likewise
10021 * tree-ssa-dom.c: Likewise
10022 * tree-ssa-propagate.c: Likewise
10023 * tree-ssa-alias.c: Likewise
10024 * tree-dfa.c: Likewise
10025 * tree-cfgcleanup.c: Likewise
10026 * tree-sra.c: Likewise
10027 * tree-ssa-copy.c: Likewise
10028 * tree-ssa.c: Likewise
10029 * tree-profile.c: Likewise
10030 * tree-cfg.c: Likewise
10031 * tree-ssa-threadedge.c: Likewise
10032 * tree-vect-loop-manip.c: Likewise
10034 * tree-inline.c: Do not include diagnostic.h and expr.h.
10036 (copy_decl_for_dup_finish): Do not use NULL_RTX.
10038 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
10039 * tree-loop-distribution.c: Likewise.
10041 2010-06-01 Jan Hubicka <jh@suse.cz>
10043 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
10045 2010-06-01 Jan Hubicka <jh@suse.cz>
10047 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
10048 remove return value.
10049 (split_bbs_on_noreturn_calls) .... here.
10050 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
10051 * tree-flow.h (fixup_noreturn_call): New.
10053 2010-06-01 Jan Hubicka <jh@suse.cz>
10055 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
10057 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
10059 * tree.h (build_nt_call_list): Delete.
10060 * tree.c (build_nt_call_list): Delete.
10062 2010-06-01 Jan Hubicka <jh@suse.cz>
10064 * fwprop.c: Make emit-rtl.h include last.
10065 * rtlanal.c: Include emit-rtl.h.
10066 * genautomata.c: Output emit-rtl include into insn-automata.c
10067 * df-scan.c: Include emit-rtl.h.
10068 * haifa-sched.c: Indlude emit-rtl.h.
10069 * mode-switching.c: Indlude emit-rtl.h.
10070 * graph.c: Indlude emit-rtl.h.
10071 * sel-sched.c: Include emit-rtl.h.
10072 * sel-sched-ir.c: Include emit-rtl.h.
10073 * ira-build.c: Include emit-rtl.h.
10074 * emit-rtl.c (first_insn, last_insn): Remove defines.
10075 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
10076 Move to emit-rtl.h.
10077 (set_new_first_and_last_insn, get_last_insn_anywhere,
10078 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
10079 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
10080 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
10081 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
10082 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
10083 Use accessor functions.
10084 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10085 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10086 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10087 mem_expr_equal_p): Move here from rtl.h.
10088 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
10089 Move here from emit-rtl.c; make inline.
10090 * cfglayout.h: Include emit-rtl.h.
10091 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10092 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10093 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10094 mem_expr_equal_p, get_insns, set_first-insn,
10095 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
10096 * reg-stack.c: Include emit-rtl.h.
10099 2010-06-01 Jan Hubicka <jh@suse.cz>
10101 * cgraph.h (tree_function_versioning): Update prototype.
10102 (cgraph_function_versioning): Update prototype.
10103 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
10105 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
10106 (cgraph_materialize_clone, save_inline_function_body): Update use of
10107 tree_function_versioning.
10108 * tree-inline.c (copy_bb): Look for previous copied block to link
10109 after; fix debug output.
10110 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
10111 (copy_body): Likewise.
10112 (expand_call_inline): Update use of copy_body.
10113 (tree_function_versioning): Update use of copy body; accept
10114 blocks_to_copy and new_entry.
10116 2010-06-01 Jan Hubicka <jh@suse.cz>
10118 * gegenrtl.c: Remove unnecesary prototypes.
10120 (gendef): Produce static inline.
10122 (main): Do not decode parameters; generate header only.
10123 * Makefile.in (genrtl.c): Remove.
10125 2010-06-01 Jan Hubicka <jh@suse.cz>
10127 * tree-switch-conversion.c (build_one_array): Make it readonly.
10129 2010-06-01 Richard Guenther <rguenther@suse.de>
10131 * optabs.c (init_optabs): Guard all accesses to reinit.
10132 * ipa-pure-const.c (propagate): Fix another typo.
10133 * opts.c (common_handle_option): Split assignment to bool.
10134 * c-opts.c (c_common_handle_option): Likewise.
10136 2010-06-01 Arnaud Charlet <charlet@adacore.com>
10137 Matthew Gingell <gingell@adacore.com>
10139 * doc/invoke.texi: Mention -fdump-ada-spec.
10140 * tree-dump.c (dump_files): Add ada-spec.
10141 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
10142 * tree-pass.h (tree_dump_index): Add TDI_ada.
10143 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
10144 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
10145 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
10146 * c-decl.c: Include c-ada-spec.h.
10147 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
10149 (c_write_global_declarations): Add handling of -fdump-ada-spec.
10150 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
10151 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
10152 * c-ada-spec.h, c-ada-spec.c: New files.
10154 2010-06-01 Richard Guenther <rguenther@suse.de>
10157 * ipa-pure-const.c (get_function_state): Hand back varying state
10158 if we do not have one.
10159 (has_function_state): New function.
10160 (duplicate_node_data): Adjust.
10161 (remove_node_data): Likewise.
10162 (pure_const_write_summary): Likewise.
10163 (propagate): Likewise. Fix typo.
10165 2010-06-01 Jan Hubicka <jh@suse.cz>
10167 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
10168 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
10169 (execute_all_ipa_transforms): Do not play with the states.
10171 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
10173 * config/arm/t-linux-androideabi: New.
10174 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
10176 2010-06-01 Jan Hubicka <jh@suse.cz>
10178 * tree-inline.c (estimate_num_insns): For stdarg functions look
10179 into call statement to count cost of argument passing.
10181 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
10183 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
10184 argument for fprintf.
10185 (ix86_output_addr_diff_elt): Likewise.
10186 (x86_function_profiler): Likewise.
10187 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
10188 (LPREFIX): Likewise.
10189 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10191 2010-05-31 Jakub Jelinek <jakub@redhat.com>
10194 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
10195 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
10196 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
10197 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
10198 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
10199 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
10200 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
10201 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
10204 2010-05-31 Jan Hubicka <jh@suse.cz>
10206 * tree.h (tree_range_check_failed): Declare noreturn.
10208 2010-05-31 Jan Hubicka <jh@suse.cz>
10210 * gimple.c (gimple_call_builtin_p): New function.
10211 * gimple.h (gimple_call_builtin_p): Declare.
10212 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
10214 (execute_warn_function_return): BUILT_IN_RETURN is return.
10215 (split_critical_edges): Return edges are not critical.
10216 (is_ctrl_altering_stmt): Builtin_in_return is altering.
10217 (gimple_verify_flow_info): Handle built_in_return.
10218 (execute_warn_function_return): Handle built_in_return.
10219 * ipa-pure-const.c (check_call): Ignore builtin_return.
10221 2010-05-31 Jakub Jelinek <jakub@redhat.com>
10223 PR middle-end/44337
10224 * expr.c (expand_assignment): Don't store anything for out-of-bounds
10225 array accesses with non-MEM.
10227 PR tree-optimization/44182
10228 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
10229 newly needs to end a bb is followed by debug stmts, instead return
10230 true from the function at the end.
10231 (maybe_move_debug_stmts_to_successors): New function.
10232 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
10234 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
10237 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
10239 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
10241 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
10242 for nested functions in non-optimized compilation.
10244 2010-05-31 Richard Guenther <rguenther@suse.de>
10246 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
10248 2010-05-30 Jan Hubicka <jh@suse.cz>
10250 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
10252 2010-05-30 Richard Guenther <rguenther@suse.de>
10255 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
10256 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
10259 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
10261 * config/darwin.c (output_objc_section_asm_op): Add comment.
10262 (name_needs_quotes): Add '_' to list of valid comment chars.
10263 (machopic_output_function_base_name): Remove unneeded quotes.
10264 (darwin_encode_section_info): Adjust asm whitespace.
10265 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
10266 (ASM_OUTPUT_LOCAL): Ditto.
10267 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
10268 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
10269 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
10271 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
10273 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
10274 RS6000_OUTPUT_BASENAME unconditionally.
10275 (rs6000_output_function_epilogue): Likewise.
10277 2010-05-30 Jan Hubicka <jh@suse.cz>
10279 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
10282 2010-05-30 Richard Guenther <rguenther@suse.de>
10284 * tree-cfg.c (verify_gimple_assign_single): Implement
10285 verification for COND_EXPR rhs.
10287 2010-05-30 Jan Hubicka <jh@suse.cz>
10289 * cgraph.h (cgraph_dump_file): Declare.
10290 * cgraphunit.c (cgraph_dump_file): Export.
10291 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
10293 2010-05-30 Jan Hubicka <jh@suse.cz>
10295 * dwarf2out.c (reference_to_unused,
10296 premark_types_used_by_global_vars_helper): Avoid creation of new
10299 2010-05-30 Jan Hubicka <jh@suse.cz>
10301 * cgraph.h (cgraph_node_cannot_return,
10302 cgraph_edge_cannot_lead_to_return): New functions.
10303 * cgraph.c (cgraph_node_cannot_return,
10304 cgraph_edge_cannot_lead_to_return): Use them.
10305 * ipa-pure-const.c (pure_const_names): New static var.
10306 (check_call): Handle calls not leading to return.
10307 (pure_const_read_summary): Dump info read.
10308 (propagate): Dump info about propagation process; ignore side effects
10309 of functions not leading to exit; fix handling of pure functions.
10311 2010-05-30 Jan Hubicka <jh@suse.cz>
10313 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
10314 for tail call epilogues.
10316 2010-05-30 Jan Hubicka <jh@suse.cz>
10318 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
10319 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
10322 2010-05-29 Jan Hubicka <jh@suse.cz>
10324 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
10325 node; remove references in node we no longer keep in cgrpah but need
10328 2010-05-29 Jan Hubicka <jh@suse.cz>
10330 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
10332 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10335 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
10337 2010-05-29 Jan Hubicka <jh@suse.cz>
10339 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
10340 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
10341 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
10342 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
10343 debug_names_replaced_by, debug_update_ssa): Likewise.
10344 * sbitmap.c (debug_sbitmap): Likewise.
10345 * genrecog.c (debug_decision, debug_decision_list): Likewise.
10346 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
10347 debug_tree_chain): Likewise.
10348 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
10349 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
10350 * optabs.c (debug_optab_libfuncs): Likewise.
10351 (verify_loop_closed_ssa): Likewise.
10352 * value-prof.c (verify_histograms): Likewise.
10353 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
10354 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
10355 * cfghooks.c (verify_flow_info): Likewise.
10356 * fold-const.c (debug_fold_checksum): Likewise.
10357 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
10358 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
10360 * omega.c (debug_omega_problem): Likewise.
10361 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
10362 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
10363 * dominance.c (verify_dominators, debug_dominance_info,
10364 debug_dominance_tree): Likewise.
10365 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
10366 * df_regno_debug, df_ref_debug,
10367 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
10368 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
10369 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
10370 * sel-sched.c (debug_state): Likewise.
10371 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
10373 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
10374 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
10375 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
10376 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
10378 * c-pretty-print.c (debug_c_tree): Likewise.
10379 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
10380 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
10381 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
10382 * ebitmap.c (debug_ebitmap): Likewise.
10383 * function.c (debug_find_var_in_block_tree): Likewise.
10384 * print-rtl.c (debug_rtx): Likewise.
10385 (debug_rtx_count): Likewise.
10386 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
10387 * stor-layout.c (debug_rli): Likewise.
10388 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
10389 * tree-data-ref.c (debug_data_references,
10390 debug_data_dependence_relations, debug_data_reference,
10391 debug_data_dependence_relation, debug_rdg_vertex,
10392 debug_rdg_component, debug_rdg): Likewise.
10393 * tree-affine.c (debug_aff): Likewise.
10394 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
10396 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
10397 * emit-rtl.c (verify_rtl_sharing): Likewise.
10398 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
10399 debug_value_expressions): Likewise.
10400 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
10401 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
10402 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
10403 * cfglayout.c (verify_insn_chain): Likewise.
10404 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
10405 debug_clast_stmt, debug_generated_program): Likewise.
10406 * ggc-page.c (debug_print_page_list): Likewise.
10407 * tree-ssa-ter.c (debug_ter): Likewise.
10408 * graphite-dependences.c (debug_pddr): Likewise.
10409 * sched-deps.c (debug_ds): Likewise.
10410 * tree-ssa.c (verify_ssa): Likewise.
10411 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
10412 debug_scattering_functions, debug_iteration_domains, debug_pdr,
10413 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
10414 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
10415 * tree-inline.c (debug_find_tree): Likewise.
10416 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
10417 debug_ppl_powerset_matrix): Likewise.
10418 * var-tracking.c (debug_dv): Likewise.
10419 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
10420 * cfgloop.c (verify_loop_structure): Likewise.
10421 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
10422 * c-common.c (verify_sequence_points): Likewise.
10423 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
10424 debug_candidates, debug_rgn_dependencies): Likewise.
10425 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
10426 * debug_constraint_graph, debug_solution_for_var,
10427 debug_sa_points_to_info): Likewise.
10428 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
10430 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
10431 debug_loops, debug_loop, debug_loop_num): Likewise.
10432 * passes.c (debug_pass): Likewise.
10433 (dump_properties): Likewise; add cfglayout property.
10434 (debug_properties): Likewise.
10435 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
10436 * varpool.c (debug_varpool): Likewise.
10437 * regcprop.c (debug_value_data): Likewise.
10438 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
10439 debug_immediate_uses_for): Likewise.
10441 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
10444 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
10445 Filter out insn-flags.h.
10447 2010-05-29 Jan Hubicka <jh@suse.cz>
10449 * cgraph.h (struct varpool_node_set_def,
10450 struct cgraph_node_set_def): Remove unused AUX pointer.
10451 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
10454 2010-05-29 Jan Hubicka <jh@suse.cz>
10456 PR middle-end/44324
10457 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
10459 2010-05-29 Richard Guenther <rguenther@suse.de>
10461 * lto-streamer.c (cached_bp): New global variable.
10462 (bitpack_create): Return the cached bitpack, if available.
10463 (bitpack_delete): Clear and cache the bitpack, if appropriate.
10464 (bp_pack_value): Remove redundant asserts.
10466 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
10468 PR middle-end/44306
10469 * tree-if-conv.c (is_true_predicate): New.
10470 (is_predicated): Use is_true_predicate.
10471 (add_to_predicate_list): Same. Do not use unshare_expr.
10472 (add_to_dst_predicate_list): Same.
10474 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
10476 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
10478 (predicate_bbs): Same.
10479 (clean_predicate_lists): Same.
10480 (find_phi_replacement_condition): Do not AND the predicate from
10483 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
10486 * Makefile.in (build/gencondmd.o): Add a missing `\'.
10488 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10491 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
10492 (negdf2): Adjust expander pattern and use negdf2_slow.
10493 (negsf2): Likewise.
10495 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
10497 * basic-block.h (struct control_flow_graph): Move last_label_uid field
10499 * df.h (struct df_base_ref): Move regno field up.
10500 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
10501 * expr.h (struct separate_ops): Move location field up.
10502 * optabs.h (struct optab_d): Move libcall_basename field down.
10503 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
10504 * config/i386/i386.h (struct machine_function): Convert call_abi field
10505 into a bitfield. Move cfa field to the end of the structure.
10507 2010-05-29 Jan Hubicka <jh@suse.cz>
10509 * varpool.c (varpool_get_node): Fix lookup.
10511 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10513 * config/spu/spu-protos.h: Do not include rtl.h. Protect
10514 RTL specific prototypes with #ifdef RTX_CODE.
10515 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
10516 * config/spu/t-spu-elf: Fix dependencies.
10518 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
10520 2010-05-29 Mike Stump <mikestump@comcast.net>
10523 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
10524 TM_H when building to avoid dependency loops.
10526 2010-05-29 Jan Hubicka <jh@suse.cz>
10528 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
10529 refs and body; not the whole node for masters of materialized clones.
10531 2010-05-29 Mike Stump <mikestump@comcast.net>
10533 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
10535 2010-05-29 Jan Hubicka <jh@suse.cz>
10537 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
10538 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
10539 use of clone_function_name.
10540 * cgraph.h (cgraph_create_virtual_clone,
10541 cgraph_function_versioning): update prototypes.
10542 (clone_function_name): Declare.
10543 * ipa-cp.c (ipcp_insert_stage): Update call of
10544 cgraph_create_virtual_clone.
10545 * omp-low.c (create_omp_child_function_name): Use
10546 cgraph_create_virtual_clone.
10547 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
10548 (cgraph_function_versioning): Take SUFFIX argument; produce new name
10549 and make decl local.
10551 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10553 * vec.h: Include statistics.h
10554 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
10557 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10559 * c-lex.c: Do not include c-tree.h.
10560 * c-pretty-print.c: Likewise.
10561 * c-opts.c: Likewise.
10562 * c-gimplify.c: Likewise.
10563 * c-common.c: Likewise.
10564 * c-dump.c: Likewise. Include c-common.h.
10566 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10568 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
10569 before including diagnostic-core.h.
10570 (c_cpp_error): New prototype moved from c-tree.h.
10571 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
10572 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
10573 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
10574 (c_cpp_error): Prototype moved to c-common.h.
10575 * Makefile.in: Update dependency for C_COMMON_H.
10577 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
10579 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
10580 * c-common.c (c_register_addr_space): Remove here.
10581 * c-decl.c (c_register_addr_space): Re-add here.
10583 2010-05-28 Mike Stump <mikestump@comcast.net>
10585 * config/darwin-c.c: Remove c-tree.h include.
10587 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10589 * gcc.c: Include diagnostic.h.
10590 (error_count): Remove. All users changed to use errorcount.
10591 (programname): Remove. All users changed to use progname.
10592 (fancy_abort, internal_error, fatal_error, error, warning, inform,
10594 (execute): Don't include "Internal error" and bug reporting
10595 information in argument of internal_error call.
10596 (process_command): Don't increment error_count after calling
10598 (input_filename): Rename to gcc_input_filename. All users
10600 (main): Call diagnostic_initialize. Register delete_temp_files
10601 with atexit. Use seen_error to test for errors.
10602 * gcc.h: Include diagnostic-core.h.
10603 (fatal_error, error, warning): Remove.
10604 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
10605 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
10606 (gcc.o): Update dependencies.
10608 2010-05-28 Jeff Law <law@redhat.com>
10610 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10612 * ira.h (ira_bad_reload_regno): Declare
10613 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10615 * ira-color.c (update_curr_costs): Free updated hard reg costs.
10616 (ira_reassign_conflict_allocnos): Remove bogus asserts.
10617 (allocno_reload_assign): Likewise.
10619 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
10621 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10624 2010-05-28 Richard Guenther <rguenther@suse.de>
10627 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10628 Stream fixed-point constants mode.
10629 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10630 and TYPE_PRECISION.
10631 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10632 Stream fixed-point constants mode.
10633 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10634 and TYPE_PRECISION.
10636 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10638 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10639 only place it was called from.
10640 (number_of_latch_executions): Do not return chrec_dont_know when the
10641 may_be_zero is a runtime condition: instead, return a COND_EXPR
10642 including the may_be_zero condition.
10643 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10645 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10648 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10650 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10651 generate COND_EXPRs for degenerate_phi_result.
10653 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
10655 PR middle-end/44293
10656 * tree-if-conv.c (if_convertible_loop_p): Check the
10657 if-convertibility of phi nodes in non predicated BBs.
10659 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10661 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10663 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10666 * gcc.c (inform, warning, inform): New functions.
10667 (fatal_ice): Rename to internal_error; change cmsgid parameter to
10668 gmsgid. All callers changed.
10669 (notice): Rename to fnotice; add parameter fp. All callers changed.
10670 (fatal_error): Rename to fatal_signal. All users changed.
10671 (fatal): Rename to fatal_error; change cmsgid parameter to
10672 gmsgid. All callers changed.
10673 (process_command): Use warning instead of error for warnings.
10674 (end_going_arg): Don't use _() around argument of error.
10675 (do_spec_1): Use inform for message from %n specs. Use warning
10676 instead of error for warnings.
10677 (main): Use inform for comparison messages. Use warning for
10678 message about unused linker input.
10679 (error): Increment error_count. Print "error: ".
10680 * gcc.h (fatal): Change to fatal_error.
10681 (warning): Declare.
10682 * config/darwin-driver.c (darwin_default_min_version): Use warning
10683 instead of fprintf for warnings.
10684 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10686 2010-05-28 Julian Brown <julian@codesourcery.com>
10688 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10689 (*thumb2_addsi3_compare0_scratch): New.
10690 * config/arm/constraints.md (Pv): New.
10691 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10693 (*addsi3_compare0_scratch): Likewise.
10695 2010-05-28 Jan Hubicka <jh@suse.cz>
10697 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10699 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10700 only on local statics.
10702 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
10704 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10706 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
10709 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10710 (OPTION_GLIBC): Define.
10712 2010-05-28 Jakub Jelinek <jakub@redhat.com>
10715 * dwarf2out.c (double_int_type_size_in_bits): New function.
10716 (round_up_to_align): Change first argument and return value to
10718 (field_byte_offset): Work internally on double_ints.
10721 * builtins.c (expand_movstr): Use a temporary pseudo instead
10722 of target even when target is not NULL and not const0_rtx, but
10723 fails movstr predicate.
10724 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10726 2010-05-28 Joseph Myers <joseph@codesourcery.com>
10728 * final.c (rest_of_clean_state): Use %m in errors instead of
10730 * gengtype.c (read_input_list, close_output_files): Use xstrerror
10731 instead of strerror.
10732 * toplev.c (process_options): Use %m in errors instead of strerror
10734 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10737 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
10739 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10740 (ix86_canonical_va_list_type): Make static. Add declaration.
10741 (ix86_enum_va_list): Make static. Reindent.
10742 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
10743 (ix86_canonical_va_list_type): Ditto.
10744 (ix86_enum_va_list): Ditto.
10746 2010-05-28 Richard Guenther <rguenther@suse.de>
10748 * lto-wrapper.c (run_gcc): With -save-temps generate a
10749 user-visible ltrans filename. Fixup ltrans unit numbering.
10751 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
10753 * c-common.c (c_common_nodes_and_builtins): Replace use
10754 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
10755 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
10756 to ix86_enum_va_list.
10757 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
10758 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
10759 (TARGET_ENUM_VA_LIST_P): Add hook description.
10760 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
10761 * target.h (gcc_target): Add enum_va_list hook.
10764 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
10765 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
10766 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
10768 2010-05-28 Alan Modra <amodra@gmail.com>
10771 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10772 emit_library_call machinery to set up __tls_get_addr calls.
10774 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10776 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
10778 2010-05-28 Dodji Seketeli <dodji@redhat.com>
10780 Revert fix for PR c++/44188
10781 * c-common.c (is_typedef_decl): Revert the moving of this
10783 * tree.c (is_typedef_decl): ... here.
10784 (typdef_variant_p): Revert the moving of this definition
10785 here from gcc/cp/tree.c.
10786 * c-common.h (is_typedef_decl): Revert the moving of this
10788 * tree.h (is_typedef_decl): ... here.
10789 (typedef_variant_p): Revert the moving of this declaration here
10790 from gcc/cp/cp-tree.h
10791 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
10792 (gen_tagged_type_die): Revert the splitting out of ...
10793 (gen_type_die_with_usage): ... this function. Revert the anonymous
10794 tagged type handling.
10795 (gen_typedef_die): Revert emitting DW_TAG_typedef for
10796 typedefs naming anonymous tagged types.
10798 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
10800 * config/rs6000/rs6000-modes.def (PSImode): Delete.
10802 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
10804 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
10805 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
10807 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
10809 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
10810 XER_REGS to CA_REGS throughout.
10811 * config/rs6000/rs6000.h: Same.
10812 (ADDITIONAL_REGISTER_NAMES): Add "xer".
10813 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
10814 that mode_iterator "P" is the size for arithmetic carries as well.
10815 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
10817 2010-05-28 Jakub Jelinek <jakub@redhat.com>
10820 * combine.c (struct rtx_subst_pair): Define unconditionally.
10821 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
10822 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
10823 Call make_compound_operation on pair->to.
10824 (propagate_for_debug): Don't call make_compound_operation here.
10825 Always use simplify_replace_fn_rtx.
10827 2010-05-27 Sterling Augustine <sterling@tensilica.com>
10829 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
10830 * config/xtensa/xtensa.c (override_options): Check
10831 TARGET_FORCE_NO_PIC and set flag_pic.
10832 * config/xtensa/xtensa.opt: Document -mforce-no-pic
10834 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
10837 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
10838 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
10840 2010-05-27 Joseph Myers <joseph@codesourcery.com>
10842 * diagnostic-core.h: New. Contents moved from diagnostic.h and
10844 * diagnostic.c: Don't include toplev.h.
10845 (progname): Define. Moved from toplev.c.
10846 (seen_error): New function.
10847 * diagnostic.h: Include diagnostic-core.h.
10848 (diagnostic_t, emit_diagnostic): Don't declare here.
10849 * toplev.c (progname): Move to toplev.c.
10850 (emit_debug_global_declarations, compile_file, finalize,
10851 do_compile, toplev_main): Use seen_error.
10852 * toplev.h: Include diagnostic-core.h.
10853 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
10854 internal_error, warning, warning_at, error, error_n, error_at,
10855 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
10856 verbatim, fnotice, progname): Move to diagnostic-core.h.
10857 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
10858 (expand_builtin_expect): Use seen_error.
10859 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
10860 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
10861 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
10862 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
10863 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
10864 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
10865 errorcount for errors.
10866 * c-opts.c (c_common_finish): Use seen_error.
10867 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10868 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
10869 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
10870 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
10871 (get_coverage_counts): Use seen_error.
10872 * dwarf2out.c (dwarf2out_finish): Use seen_error.
10873 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
10874 gimplify_body): Use seen_error.
10875 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
10876 * ipa-pure-const.c (gate_pure_const): Use seen_error.
10877 * ipa-reference.c (gate_reference): Use seen_error.
10878 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
10879 * lambda-code.c: Include diagnostic-core.h instead of
10881 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
10882 * lto-compress.c: Include diagnostic-core.h instead of
10884 * lto-section-in.c: Include diagnostic-core.h instead of
10886 * lto-streamer-out.c: Include diagnostic-core.h instead of
10888 * lto-streamer.c: Include diagnostic-core.h instead of
10890 (gate_lto_out): Use seen_error.
10891 * matrix-reorg.c: Include diagnostic-core.h instead of
10893 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
10894 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
10895 (gate_expand_omp, lower_omp_1): Use seen_error.
10896 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
10897 (rest_of_decl_compilation, rest_of_type_compilation,
10898 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
10899 * tree-cfg.c (label_to_block_fn): Use seen_error.
10900 * tree-inline.c (optimize_inline_calls): Use seen_error.
10901 * tree-mudflap.c (mudflap_finish_file): Use
10903 * tree-optimize.c (gate_all_optimizations,
10904 gate_all_early_local_passes, gate_all_early_optimizations): Use
10906 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
10907 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
10908 (varpool_remove_unreferenced_decls,
10909 varpool_assemble_pending_decls): Use seen_error.
10910 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
10911 (TOPLEV_H, DIAGNOSTIC_H): Update.
10912 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
10913 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
10914 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
10915 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
10916 coverage.o, lambda-code.o): Update dependencies.
10918 2010-05-25 Dodji Seketeli <dodji@redhat.com>
10921 * c-common.c (is_typedef_decl): Move this definition ...
10922 * tree.c (is_typedef_decl): ... here.
10923 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
10924 * c-common.h (is_typedef_decl): Move this declaration ...
10925 * tree.h (is_typedef_decl): ... here.
10926 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
10927 * dwarf2out.c (is_naming_typedef_decl): New function.
10928 (gen_tagged_type_die): Split out of ...
10929 (gen_type_die_with_usage): ... this function. When an anonymous
10930 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
10931 is emitted for the typedef.
10932 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
10933 anonymous tagged types.
10935 2010-05-27 Jason Merrill <jason@redhat.com>
10937 * print-tree.c (debug_vec_tree): New fn.
10938 (print_vec_tree): New fn.
10939 * tree.h: Declare them.
10940 * gdbinit.in (pvt): New command.
10942 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
10944 * gdbinit.in (pdd): New command.
10946 2010-05-27 Jan Hubicka <jh@suse.cz>
10948 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
10949 (update_caller_keys): Return early if there are no callers;
10950 only update fibheap when decresing the key.
10951 (update_callee_keys): Avoid recursion.
10952 (decide_inlining_of_small_functions): When badness does not match;
10953 re-insert into fibheap.
10955 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
10957 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
10958 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
10959 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
10960 (ALL_HOST_OBJS): Now a union of the above two.
10961 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
10962 all files in ALL_HOST_FRONTEND_OBJS.
10963 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
10965 * c-common.c: Pretend to be a backend file by undefining
10966 IN_GCC_FRONTEND (still need rtl.h here).
10968 2010-05-27 Jan Hubicka <jh@suse.cz>
10970 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
10971 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
10973 2010-05-27 Jan Hubicka <jh@suse.cz>
10975 * sched-ebb.c: Rename struct deps to struct deps_desc.
10977 * sel-sched-ir.c: Likewise.
10978 * sched-deps.c: Likewise.
10979 * sched-int.h: Likewise.
10980 * sched-rgn.c: Likewise.
10982 2010-05-27 Jon Beniston <jon@beniston.com>
10985 * config/lm32/lm32.h: Remove definition of
10986 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
10988 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
10991 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
10993 2010-05-27 Richard Guenther <rguenther@suse.de>
10995 PR tree-optimization/44284
10996 * tree-vect-stmts.c (vectorizable_assignment): Handle
10997 sign-changing conversions as simple copy.
10999 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11001 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
11003 (__gthread_active_p): Check for pthread_create if compiling against
11006 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11008 Support compilation for Android platform. Reimplement -mandroid.
11010 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
11011 (*android*): Set ANDROID_DEFAULT.
11012 (arm*-*-linux*): Include linux-android.h.
11013 (arm*-*-eabi*): Don't include previous -mandroid implementation.
11014 * config/arm/eabi.h: Remove, move Android-specific parts ...
11015 * config/linux-android.h: ... here. New file.
11016 * config/arm/eabi.opt: Rename to ...
11017 * config/linux-android.opt: ... this.
11018 (mandroid): Allow -mno-android option. Initialize based on
11020 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
11021 Move logic to corresponding LINUX_TARGET_* macros.
11022 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
11023 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
11024 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
11025 Android definitions.
11026 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
11027 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
11030 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11032 Add support for Bionic C library
11034 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
11036 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
11037 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
11039 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
11040 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
11041 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
11042 to support multiple C libraries. Handle Bionic.
11043 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
11044 (BIONIC_DYNAMIC_LINKER64): Define.
11045 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
11047 (TARGET_HAS_SINCOS): Enable for Bionic.
11049 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
11050 the last option specified on command line take effect.
11051 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
11053 (mglibc, muclibc): Update.
11055 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
11056 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
11059 * doc/invoke.texi (-mglibc, -muclibc): Update.
11060 (-mbionic): Document.
11062 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11064 * c-common.h (c_register_addr_space): Add prototype.
11065 (ADDR_SPACE_KEYWORD): Remove.
11066 * c-common.c (c_register_addr_space): New function.
11067 (c_addr_space_name): Reimplement.
11068 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
11070 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
11071 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
11073 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
11074 Remove TARGET_ADDR_SPACE_KEYWORDS.
11076 2010-05-27 Joseph Myers <joseph@codesourcery.com>
11078 * input.c: New file.
11079 * input.h (main_input_filename): Move declaration to toplev.h.
11080 * toplev.c (input_location, line_table): Move to input.c
11081 * toplev.h (main_input_filename): Move declaration from input.h.
11082 * tree.c (expand_location): Move to input.c.
11083 * Makefile.in (OBJS-common): Add input.o.
11084 (input.o): Add dependencies.
11086 2010-05-27 Richard Guenther <rguenther@suse.de>
11088 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
11089 for non-existant files.
11090 (fork_execute): Mark args_name file as deleted.
11092 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
11095 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
11096 (narrow_signed_type): Likewise.
11098 2010-05-26 Jan Hubicka <jh@suse.cz>
11100 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
11101 edge only when checking is enabled; check using former_clone_of;
11102 check inline clones too.
11103 (cgraph_materialize_clone): Record former_clone_of pointer.
11104 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
11105 combining redirections; dump args_to_skip bitmap
11106 (cgraph_materialize_all_clones): Do no redirection here.
11107 * ipa-inline.c (inline_transform): Do redirection here.
11108 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
11111 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11113 * config/avr/avr-c.c: Do not include regs.h.
11114 Include cpplib.h for cpp_define and tree.h for c-common.h.
11115 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
11116 * config/avr/t-avr: Fix dependencies for avr-c.o.
11118 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11120 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
11121 string instead of SYMBOL_REF rtx.
11122 * rtl.h (set_stack_check_libfunc): Move prototype from here...
11123 * libfuncs.h: ...to here. Adjust for explow.c change.
11125 2010-05-26 Joseph Myers <joseph@codesourcery.com>
11127 * pretty-print.c: Don't include ggc.h.
11128 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
11129 (identifier_to_locale): Use them for allocation.
11130 * pretty-print.h (identifier_to_locale_alloc,
11131 identifier_to_locale_free): Declare.
11132 * toplev.c (alloc_for_identifier_to_locale): New.
11133 (general_init): Set identifier_to_locale_alloc and
11134 identifier_to_locale_free.
11135 * Makefile.in (pretty-print.o): Update dependencies.
11137 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
11139 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
11140 pointer types if they have different alignment or mode.
11142 2010-05-26 Anatoly Sokolov <aesok@post.ru>
11144 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11145 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11146 * config/sparc/sparc-protos.h (function_value): Remove declaration.
11147 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
11148 sparc_function_value_regno_p): New functions.
11149 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11150 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11151 (function_value): Rename to...
11152 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
11153 argument to 'outgoing'.
11154 (function_arg_record_value, function_arg_union_value,
11155 function_arg_vector_value): Update comment.
11157 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
11159 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
11160 (fde_needed_for_eh_p): New predicate.
11161 (output_call_frame_info): Use it throughout to decide whether FDEs
11162 are needed for EH purpose.
11163 (dwarf2out_begin_prologue): Reorder assignments.
11165 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11167 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
11168 special case loop->header.
11169 (is_predicated): New.
11170 (if_convertible_loop_p): Call it.
11172 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11174 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
11175 iterator in parameter. Do not generate code during the analysis.
11176 (tree_if_convert_cond_stmt): Removed.
11177 (tree_if_convert_stmt): Removed.
11178 (predicate_bbs): New.
11179 (if_convertible_loop_p): Call predicate_bbs.
11180 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
11181 now contains all the analysis part.
11183 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11185 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
11186 statements in the analysis part.
11187 (tree_if_convert_stmt): Update comment.
11188 (remove_conditions_and_labels): New.
11189 (combine_blocks): Call remove_conditions_and_labels.
11190 (tree_if_conversion): Update comment.
11192 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11194 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
11195 than 2 predecessors or more than 2 successors.
11197 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11199 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
11200 of loops in which the data dependence analysis fails.
11202 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11204 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
11205 CDI_POST_DOMINATORS.
11206 (tree_if_conversion): Same.
11208 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11210 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
11212 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
11214 * tree-if-conv.c: Update copyright years. Fix comments.
11217 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
11219 * builtin-types.def (BT_INT128): New primitive type.
11220 (BT_UINT128): Likewise.
11221 * c-common.c (c_common_r): Add __int128 keyword.
11222 (c_common_type_for_size): Handle __int128.
11223 (c_common_type_for_mode): Likewise.
11224 (c_common_signed_or_unsigned_type): Likewise.
11225 (c_common_nodes_and_builtins): Add builtin type
11226 if target supports 128-bit integer scalar.
11227 * c-common.h (enum rid): Add RID_INT128.
11228 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
11229 if target supports 128-bit integer scalar.
11230 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
11231 (finish_declspecs): Likewise.
11232 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
11233 (c_token_starts_declspecs): Likewise.
11234 (c_parser_declspecs): Likewise.
11235 (c_parser_attributes): Likewise.
11236 (c_parser_objc_selector): Likewise.
11237 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
11238 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
11239 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
11240 * tree.c (make_or_reuse_type): Likewise.
11241 (make_unsigned_type): Likewise.
11242 (build_common_tree_nodes_2): Likewise.
11243 * tree.h (enum integer_type_kind): Add itk_int128 and
11244 itk_unsigned_int128.
11245 (int128_integer_type_node): New define.
11246 (int128_unsigned_type_node): New define.
11247 * doc/extend.texi: Add documentation about __int128 type.
11249 2010-05-26 Richard Guenther <rguenther@suse.de>
11251 * tree-ssa-sccvn.c (copy_nary): Adjust.
11252 (copy_phis): Rename to ...
11253 (copy_phi): ... this. Adjust.
11254 (copy_references): Rename to ...
11255 (copy_reference): ... this. Adjust.
11256 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
11257 result into the valid table.
11259 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11261 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
11262 insn-config.h, insn-codes.h, recog.h, and optabs.h.
11264 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11266 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
11268 2010-05-26 Richard Guenther <rguenther@suse.de>
11270 * opts.c (common_handle_option): Handle OPT_Ofast.
11272 2010-05-26 Joseph Myers <joseph@codesourcery.com>
11274 * diagnostic.c: Don't include opts.h.
11275 (permissive_error_option): Define.
11276 (diagnostic_initialize): Take n_opts parameter. Allocate memory
11277 for classify_diagnostic. Don't use memset for
11278 classify_diagnostic. Initialize new and recently added fields.
11279 (diagnostic_classify_diagnostic): Use context->n_opts instead of
11281 (diagnostic_report_diagnostic): Pass context parameter to
11282 diagnostic_report_warnings_p. Use option_enabled and option_name
11283 hooks from context.
11284 (emit_diagnostic): Use permissive_error_option.
11285 (permerror): Likewise.
11286 * diagnostic.h: Don't include options.h.
11287 (struct diagnostic_context): Add n_opts, opt_permissive,
11288 inhibit_warnings, warn_system_headers, option_enabled and
11289 option_name fields. Change classify_diagnostic to a pointer.
11290 * opts-diagnostic.h: New file.
11291 * opts.c: Include opts-diagnostic.h.
11292 (common_handle_option): Set global_dc fields for -Wfatal-errors,
11293 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
11294 (option_name): New function.
11295 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
11296 (c_common_handle_option): Set global_dc->permissive for
11298 * c-common.c (c_cpp_error): Save and restore
11299 global_dc->warn_system_headers, not variable warn_system_headers.
11300 * toplev.c: Include opts-diagnostic.h.
11301 (general_init): Update call to diagnostic_initialize. Set
11302 global_dc->show_column, global_dc->option_enabled and
11303 global_dc->option_name.
11304 (process_options): Don't set global_dc fields here.
11305 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
11306 (diagnostic.o, opts.o, toplev.o): Update dependencies.
11308 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
11310 * config/picochip/picochip.md (movsi): Split a movsi from a
11311 const after reload.
11313 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11315 * ggc-zone.c: Update copyright year.
11316 (poison_region): Mark memory for Valgrind as undefined before
11317 memset () call and inaccessible afterwards.
11318 (ggc_pch_total_size): Change type of i to int.
11320 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11322 * ggc-common.c (ggc_free_overhead): Allow empty slot.
11324 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11326 * ggc-common.c: Update copyright year.
11327 (ggc_rlimit_bound): Remove prototype. Compile only if
11328 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
11329 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
11330 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
11331 (ggc_min_heapsize_heuristic): Likewise.
11333 2010-05-26 Richard Guenther <rguenther@suse.de>
11335 PR rtl-optimization/44164
11336 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
11337 no-common access-path disambiguation.
11338 (indirect_ref_may_alias_decl_p): Adjust.
11339 (indirect_refs_may_alias_p): Likewise.
11340 (refs_may_alias_p_1): Likewise.
11342 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11344 * c-typeck.c: Do not include expr.h.
11346 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
11348 * rtl.h (decl_default_tls_model): Move prototype from here...
11349 * output.h: ...to here.
11350 * c-decl.c: Do not include rtl.h.
11351 * c-pragma.c: Likewise.
11352 * c-parser.c: Likewise.
11353 * c-gimplify.c: Likewise. And also not hard-reg-set.
11354 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
11355 FIXME note for it. Add a FIXME note for expr.h.
11356 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
11357 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
11360 2010-05-26 Jakub Jelinek <jakub@redhat.com>
11363 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
11364 or total_size is larger than red zone size for non-V4 ABI, emit a
11365 stack_tie resp. frame_tie insn before stack pointer restore.
11366 * config/rs6000/rs6000.md (frame_tie): New insn.
11368 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
11370 * function.h (struct function): Add can_throw_non_call_exceptions bit.
11371 * lto-streamer-in.c (input_function): Stream it in.
11372 * lto-streamer-out.c (output_function): Stream it out.
11373 * function.c (allocate_struct_function): Set it.
11374 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
11375 for flag_non_call_exceptions.
11376 * cfgbuild.c (control_flow_insn_p): Likewise.
11377 (make_edges): Likewise.
11378 * cfgexpand.c (expand_stack_alignment): Likewise.
11379 * combine.c (distribute_notes): Likewise.
11380 * cse.c (cse_extended_basic_block): Likewise.
11381 * except.c (insn_could_throw_p): Likewise.
11382 * gcse.c (simple_mem): Likewise.
11383 * ipa-pure-const.c (check_call): Likewise.
11384 (check_stmt ): Likewise.
11385 * lower-subreg.c (lower-subreg.c): Likewise.
11386 * optabs.c (emit_libcall_block): Likewise.
11387 (prepare_cmp_insn): Likewise.
11388 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
11389 * postreload.c (rest_of_handle_postreload): Likewise.
11390 * reload1.c (reload_as_needed): Likewise.
11391 (emit_input_reload_insns): Likewise.
11392 (emit_output_reload_insns): Likewise.
11393 (fixup_abnormal_edges): Likewise.
11394 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
11395 * store-motion.c (find_moveable_store): Likewise.
11396 * tree-eh.c (stmt_could_throw_p): Likewise.
11397 (tree_could_throw_p): Likewise.
11398 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11399 * config/arm/arm.c (arm_expand_prologue): Likewise.
11400 (thumb1_expand_prologue): Likewise.
11401 * config/rx/rx.md (cbranchsf4): Likewise.
11403 * config/s390/s390.c (s390_emit_prologue): Likewise.
11404 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
11405 (inline_forbidden_into_p): New predicate.
11406 (expand_call_inline): Use it to forbid inlining.
11407 (tree_can_inline_p): Likewise.
11409 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11411 * config/i386/i386-c.c: Do not include rtl.h.
11412 * config/i386/t-i386: Update dependencies.
11414 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11416 * attribs.c: Do not include rtl.h.
11417 * Makefile.in: Update dependencies.
11419 2010-05-25 Anatoly Sokolov <aesok@post.ru>
11421 * double-int.h (double_int_and): New.
11422 * combine.c (try_combine): Clean up, use double_int_* and
11423 immed_double_int_const functions.
11425 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11427 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
11428 stderr to /dev/null instead of grep -q.
11429 * configure: Regenerate.
11431 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
11433 * Makefile.in (EXCEPT_H): Fix typo.
11435 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
11437 * ira-build.c (update_conflict_hard_reg_costs): New.
11438 (ira_build): Call update_conflict_hard_reg_costs.
11440 2010-05-25 Jakub Jelinek <jakub@redhat.com>
11443 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
11445 (intersect_loc_chains): Walk the s2var's loc_chain together
11446 with s1node chain as long as the locations are equal, don't
11447 call find_loc_in_1pdv in that case.
11450 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
11451 (copy_bind_expr): ... instead of here.
11452 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
11453 if the block hasn't been remapped.
11454 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
11455 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
11457 2010-05-25 Richard Guenther <rguenther@suse.de>
11459 PR middle-end/44069
11460 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
11461 out-of-bounds array accesses.
11463 2010-05-25 Richard Guenther <rguenther@suse.de>
11465 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
11466 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
11467 (run_gcc): Re-organize to make cleanup easier.
11469 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11471 * config/s390/s390.c (optimization_options): Fix and move the
11472 flag_prefetch_loop_arrays override ...
11473 (override_options): ... here.
11475 2010-05-25 Joseph Myers <joseph@codesourcery.com>
11477 * diagnostic.c: Don't include plugin.h.
11478 (diagnostic_report_diagnostic): Don't handle plugins specially
11479 here. Pass context to internal_error callback.
11480 * diagnostic.h (struct diagnostic_context): Add context parameter
11481 to internal_error callback.
11482 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
11483 * plugin.h (struct diagnostic_context): Declare.
11484 (warn_if_plugins, plugins_internal_error_function): Declare.
11485 * toplev.c (general_init): Set global_dc->internal_error.
11486 * Makefile.in (diagnostic.o): Update dependencies.
11488 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
11490 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
11491 * config/rs6000/t-darwin64: New.
11492 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
11495 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
11498 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
11499 match the original (and intended) behaviour before r159557. This
11500 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
11503 2010-05-25 Richard Guenther <rguenther@suse.de>
11505 * doc/invoke.texi: Document -Ofast.
11506 * target.h (struct gcc_target): Add handle_ofast.
11507 * target-def.h (TARGET_HANDLE_OFAST): Add.
11508 (TARGET_INITIALIZER): Adjust.
11509 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
11510 * common.opt (Ofast): Add.
11512 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
11514 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
11515 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
11517 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
11520 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
11521 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
11522 false_rtx. Use false_rtx to compute the correct *ptest for reversed
11523 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
11525 2010-05-25 Jakub Jelinek <jakub@redhat.com>
11527 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
11528 DW_OP_minus with negated offset instead of DW_OP_plus.
11529 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
11531 2010-05-25 Wei Guozhi <carrot@google.com>
11533 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
11534 tst instruction and a new alternative.
11535 * config/arm/constraints.md (Pu): New constraint.
11537 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
11539 * function.c (assign_stack_local_1): Initialize variable
11540 to avoid warning when bootstrapping at -O3.
11542 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
11544 * configure.ac (all_lang_makefiles): Remove everything related to it.
11545 * configure: Regenerate.
11546 * Makefile.in: Fix reference to ada Make-lang.in.
11547 Remove support for LANG_MAKEFILES.
11549 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
11550 Sandra Loosemore <sandra@codesourcery.com>
11552 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
11553 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
11554 description. Add arm_neon_fp16_ok.
11555 (Add Options): Add arm_neon and arm_neon_fp16.
11557 2010-05-24 Joseph Myers <joseph@codesourcery.com>
11559 * diagnostic.c: Don't include flags.h.
11560 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
11561 context parameters. Check flags in the context passed as a parameter.
11562 (diagnostic_build_prefix): Add context parameter. Check
11563 show_column flag in context.
11564 (diagnostic_action_after_output): Check fatal_errors flag in context.
11565 (diagnostic_report_current_module): Check show_column flag in context.
11566 (default_diagnostic_starter): Update call to
11567 diagnostic_build_prefix.
11568 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
11569 (emit_diagnostic): Pass context to permissive_error_kind.
11570 (permerror): Pass context to permissive_error_kind.
11571 * diagnostic.h (struct diagnostic_context): Add show_column,
11572 pedantic_errors, permissive and fatal_errors fields.
11573 (diagnostic_build_prefix): Update prototype.
11575 * toplev.c (process_options): Set flags in global_dc from
11576 flag_show_column, flag_pedantic_errors, flag_permissive,
11578 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
11579 to diagnostic_build_prefix.
11580 * Makefile.in (diagnostic.o): Update dependencies.
11582 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
11584 * config/i386/ia32intrin.h (__crc32q): Define only if
11585 __SSE4_2__ is defined.
11587 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
11590 PR middle-end/43602
11591 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
11592 DECL_VISIBILITY_SPECIFIED.
11593 (emutls_decl): Set DECL_PRESERVE_P and copy
11594 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
11595 (emutls_finalize_control_var): New callback.
11596 (emutls_finish): Finalize emutls control variables.
11597 * toplev.c (compile_file): Move the call to emutls_finish ()
11598 before varpool_assemble_pending_decls ().
11600 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
11602 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
11603 added to the preprocessor condition.
11605 2010-05-24 Paul Brook <paul@codesourcery.com>
11607 * gengtype-lex.l: Add HARD_REG_SET.
11608 * expr.c (expand_expr_real_1): Record writes to hard registers.
11609 * function.c (rtl_data): Add asm_clobbers.
11610 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11611 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11612 Use crtl->asm_clobbers.
11614 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11616 * doc/makefile.texi (Makefile): Mention stages 'profile'
11617 and 'feedback' for profiledbootstrap.
11619 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
11622 * config/i386/i386.c (def_builtin): Properly check
11623 OPTION_MASK_ISA_64BIT.
11625 2010-05-23 Joseph Myers <joseph@codesourcery.com>
11627 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11628 typedefs with different but compatible types. Allow duplicate
11629 typedefs with the same type except for pedantic non-C1X, but give
11630 warning for variably modified types.
11631 * c-typeck.c (tagged_types_tu_compatible_p,
11632 function_types_compatible_p, type_lists_compatible_p,
11633 comptypes_internal): Add parameter different_types_p; set
11634 *different_types_p for different but compatible types. All
11636 (comptypes_check_different_types): New.
11637 * c-tree.h (comptypes_check_different_types): Declare.
11639 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
11641 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
11642 * jump.c: Include basic-block.h.
11643 * profile.c: Likewise.
11644 * tree-profile.c: Likewise.
11645 * coverage.c: Likewise.
11646 * basic-block.h (optimize_function_for_size_p): Move to function.h.
11647 (optimize_function_for_speed_p): Likewise.
11648 * function.h (optimize_function_for_size_p,
11649 optimize_function_for_speed_p): Moved here from basic-block.h.
11650 * Makefile.in: Update dependencies.
11652 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11654 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11655 before calling make; allow override through $MAKE.
11656 * doc/invoke.texi (Optimize Options): Document override.
11658 2010-05-23 Anatoly Sokolov <aesok@post.ru>
11660 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11661 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11662 (rs6000_mode_dependent_address_ptr): Make static.
11663 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11664 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11667 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
11670 * config/i386/i386.c: Make sure that the correct regparm is passed.
11672 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
11674 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11675 * sbitmap.c: ...to here to internalize sbitmap element access.
11676 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11677 Explain why basic-block.h is included.
11678 * function.h: Include tm.h for CUMULATIVE_ARGS.
11679 * Makefile.in: Update dependencies.
11681 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
11683 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11685 * sbitmap.h (struct sbitmap_def): Do not typedef here.
11686 * sbitmap.c: Include sbitmap.h.
11687 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11688 hard-reg-set.h. Split everything related to regsets out from here...
11689 * regset.h: ...to here. New file.
11690 * df.h: Include regset.h and sbitmap.h.
11691 * tree-flow.h: Likewise.
11692 * cfgloop.h: Likewise.
11693 * except.h: Do not include sbitmap.h. Include hashtab.h.
11694 * cgraph.h: Include vec.h and function.h.
11695 * reload.h (struct insn_chain): Change types of live_throughout
11696 and dead_or_set from regset_head to bitmap_head.
11697 (compute_use_by_pseudos): Be defined also if regset.h is not included.
11698 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11699 spilled_regs from regset_head to bitmap_head to avoid dependency
11701 * sel-sched-ir.h: Include regset.h.
11702 * reload.c: Include df.h before reload.h.
11703 * caller-save.c: Likewise.
11704 * reload1.c: Likewise.
11706 (mark_elimination): Update type of r to bitmap, consistent with
11708 * dominance.c: Include bitmap.h.
11709 * modulo-sched.c: Include df.h.
11710 * cfganal.c: Include bitmap.h and sbitmap.h.
11711 * cfgbuild.c: Include sbitmap.h.
11712 * lcm.c: Include sbitmap.h.
11713 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11714 * domwalk.c: Include sbitmap.h, exclude ggc.h.
11715 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11716 * cselib.c: Include bitmap.h.
11717 * tree-optimize.c: Include regset.h.
11718 * stmt.c: Include bitmap.h.
11719 * Makefile.in: Update dependencies.
11721 2010-05-22 Jan Hubicka <jh@suse.cz>
11723 * cgraph.h (struct varpool_node): Add same_comdat_group.
11724 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11726 (output_varpool): Update call of lto_output_varpool_node.
11727 (input_varpool): Read same_comdat_group pointer.
11728 (input_varpool_1): Fixup same_comdat_group pointer.
11729 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11730 group is needed, all are.
11731 * varpool.c (varpool_remove_node): Remove node from same comdat group
11733 (varpool_analyze_pending_decls): Walk same comdat groups.
11735 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
11737 * rtl.h (union rtunion_def): Remove rt_bit member.
11738 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11739 * print-rtl (print_rtx): Do not print the member.
11740 * gengtype.c (adjust_field_rtx_def): Do not handle it.
11741 * gengenrtl.c (type_from_format): Likewise.
11742 (accessor_from_format): Likewise.
11744 2010-05-22 Joseph Myers <joseph@codesourcery.com>
11746 * dbgcnt.c: Include toplev.h instead of errors.h.
11747 * ira-emit.c: Don't include errors.h.
11748 * ira.c: Include toplev.h instead of errors.h.
11749 * lto-compress.c: Include toplev.h instead of errors.h.
11750 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
11751 ira.o, dbgcnt.o): Update dependencies.
11753 2010-05-22 Richard Guenther <rguenther@suse.de>
11755 * gimple.c (gimple_types_compatible_p): Check type qualifications
11756 before merging pointer to complete and pointer to incomplete type.
11757 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
11758 we use our own resolution algorithm. The gold linker plugin
11759 doesn't do the job we want it to do here.
11761 2010-05-22 Anatoly Sokolov <aesok@post.ru>
11763 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11764 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11765 (sparc_mode_dependent_address_p): New function.
11767 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
11769 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11771 * timevar.c: Do not include any core headers.
11772 (timevar_print): De-i18n-ize.
11773 (print_time): Likewise.
11774 * timevar.h (timevar_push, timevar_pop): Make inline functions.
11776 2010-05-21 Joseph Myers <joseph@codesourcery.com>
11778 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
11780 (diagnostic_initialize): Initialize x_data not last_function.
11781 (diagnostic_report_current_function): Move to tree-diagnostic.c.
11782 (default_diagnostic_starter): Call
11783 diagnostic_report_current_module not
11784 diagnostic_report_current_function.
11785 (diagnostic_report_diagnostic): Initialize x_data not
11787 (verbatim): Likewise.
11788 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
11790 (struct diagnostic_context): Change last_function to x_data.
11791 (diagnostic_auxiliary_data): Replace with
11792 diagnostic_context_auxiliary_data and
11793 diagnostic_info_auxiliary_data.
11794 (diagnostic_last_function_changed, diagnostic_set_last_function,
11795 diagnostic_report_current_function): Move to tree-diagnostic.h.
11796 (print_declaration, dump_generic_node, print_generic_stmt,
11797 print_generic_stmt_indented, print_generic_expr,
11798 print_generic_decl, debug_c_tree, dump_omp_clauses,
11799 print_call_name, debug_generic_expr, debug_generic_stmt,
11800 debug_tree_chain, default_tree_printer): Move to
11801 tree-pretty-print.h.
11802 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
11803 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
11804 gimple-pretty-print.h.
11805 * pretty-print.c: Don't include tree.h
11806 (pp_base_format): Don't handle %K here.
11807 (pp_base_tree_identifier): Move to tree-pretty-print.c.
11808 * pretty-print.h (text_info): Change abstract_origin to x_data.
11809 (pp_tree_identifier, pp_unsupported_tree,
11810 pp_base_tree_identifier): Move to tree-pretty-print.h.
11811 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
11812 tree-pretty-print.h: New files.
11813 * tree-pretty-print.c: Include tree-pretty-print.h.
11814 (percent_K_format): New. Moved from pretty-print.c.
11815 (pp_base_tree_identifier): Move from pretty-print.c.
11816 * c-objc-common.c: Include tree-pretty-print.h.
11817 (c_tree_printer): Handle %K here.
11818 * langhooks.c: Include tree-diagnostic.h.
11819 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
11820 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
11821 (default_tree_printer): Handle %K using percent_K_format.
11822 (general_init): Use default_tree_diagnostic_starter.
11823 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
11824 (free_lang_data): Use default_tree_diagnostic_starter.
11825 * c-pretty-print.c: Include tree-pretty-print.h.
11826 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11827 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11828 * dwarf2out.c: Include tree-pretty-print.h.
11829 * except.c: Include tree-pretty-print.h.
11830 * gimple-pretty-print.c: Include tree-pretty-print.h and
11831 gimple-pretty-print.h.
11832 * gimplify.c: Include tree-pretty-print.h.
11833 * graphite-poly.c: Include tree-pretty-print.h and
11834 gimple-pretty-print.h.
11835 * ipa-cp.c: Include tree-pretty-print.h.
11836 * ipa-inline.c: Include gimple-pretty-print.h.
11837 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11838 * ipa-pure-const.c: Include gimple-pretty-print.h.
11839 * ipa-struct-reorg.c: Include tree-pretty-print.h and
11840 gimple-pretty-print.h.
11841 * ipa-type-escape.c: Include tree-pretty-print.h.
11842 * print-rtl.c: Include tree-pretty-print.h.
11843 * print-tree.c: Include gimple-pretty-print.h.
11844 * sese.c: Include tree-pretty-print.h.
11845 * tree-affine.c: Include tree-pretty-print.h.
11846 * tree-browser.c: Include tree-pretty-print.h.
11847 * tree-call-cdce.c: Include gimple-pretty-print.h.
11848 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
11849 * tree-chrec.c: Include tree-pretty-print.h.
11850 * tree-data-ref.c: Include tree-pretty-print.h and
11851 gimple-pretty-print.h.
11852 * tree-dfa.c: Include tree-pretty-print.h.
11853 * tree-if-conv.c: Include tree-pretty-print.h and
11854 gimple-pretty-print.h.
11855 * tree-inline.c: Include tree-pretty-print.h.
11856 * tree-into-ssa.c: Include tree-pretty-print.h and
11857 gimple-pretty-print.h.
11858 * tree-nrv.c: Include tree-pretty-print.h.
11859 * tree-object-size.c: Include tree-pretty-print.h and
11860 gimple-pretty-print.h.
11861 * tree-outof-ssa.c: Include tree-pretty-print.h and
11862 gimple-pretty-print.h.
11863 * tree-parloops.c: Include tree-pretty-print.h and
11864 gimple-pretty-print.h.
11865 * tree-predcom.c: Include tree-pretty-print.h and
11866 gimple-pretty-print.h.
11867 * tree-scalar-evolution.c: Include tree-pretty-print.h and
11868 gimple-pretty-print.h.
11869 * tree-sra.c: Include tree-pretty-print.h.
11870 * tree-ssa-address.c: Include tree-pretty-print.h.
11871 * tree-ssa-alias.c: Include tree-pretty-print.h.
11872 * tree-ssa-ccp.c: Include tree-pretty-print.h and
11873 gimple-pretty-print.h.
11874 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
11875 * tree-ssa-copy.c: Include tree-pretty-print.h and
11876 gimple-pretty-print.h.
11877 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
11878 * tree-ssa-dce.c: Include tree-pretty-print.h and
11879 gimple-pretty-print.h.
11880 * tree-ssa-dom.c: Include tree-pretty-print.h and
11881 gimple-pretty-print.h.
11882 * tree-ssa-dse.c: Include gimple-pretty-print.h.
11883 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
11884 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
11885 * tree-ssa-live.c: Include tree-pretty-print.h and
11886 gimple-pretty-print.h.
11887 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
11888 gimple-pretty-print.h.
11889 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
11890 gimple-pretty-print.h.
11891 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
11892 gimple-pretty-print.h.
11893 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
11894 gimple-pretty-print.h.
11895 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
11896 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
11897 * tree-ssa-operands.c: Include tree-pretty-print.h and
11898 gimple-pretty-print.h.
11899 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
11900 gimple-pretty-print.h.
11901 * tree-ssa-pre.c: Include tree-pretty-print.h and
11902 gimple-pretty-print.h.
11903 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
11904 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
11905 gimple-pretty-print.h.
11906 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
11907 gimple-pretty-print.h.
11908 * tree-ssa-sink.c: Include gimple-pretty-print.h.
11909 * tree-ssa-ter.c: Include tree-pretty-print.h and
11910 gimple-pretty-print.h.
11911 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
11912 * tree-ssa.c: Include tree-pretty-print.h and
11913 gimple-pretty-print.h.
11914 * tree-stdarg.c: Include gimple-pretty-print.h.
11915 * tree-switch-conversion.c: Include gimple-pretty-print.h.
11916 * tree-tailcall.c: Include tree-pretty-print.h and
11917 gimple-pretty-print.h.
11918 * tree-vect-data-refs.c: Include tree-pretty-print.h and
11919 gimple-pretty-print.h.
11920 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
11921 gimple-pretty-print.h.
11922 * tree-vect-loop.c: Include tree-pretty-print.h and
11923 gimple-pretty-print.h.
11924 * tree-vect-patterns.c: Include gimple-pretty-print.h.
11925 * tree-vect-slp.c: Include tree-pretty-print.h and
11926 gimple-pretty-print.h.
11927 * tree-vect-stmts.c: Include tree-pretty-print.h and
11928 gimple-pretty-print.h.
11929 * tree-vectorizer.c: Include tree-pretty-print.h.
11930 * tree-vrp.c: Include tree-pretty-print.h and
11931 gimple-pretty-print.h.
11932 * value-prof.c: Include tree-pretty-print.h and
11933 gimple-pretty-print.h.
11934 * var-tracking.c: Include tree-pretty-print.h.
11935 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
11936 (tree-diagnostic.o): New dependencies.
11937 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
11938 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
11939 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
11940 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
11941 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
11942 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
11943 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
11944 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
11945 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
11946 tree-ssa-address.o, tree-ssa-loop-niter.o,
11947 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
11948 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
11949 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
11950 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
11951 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
11952 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
11953 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
11954 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
11955 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
11956 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
11957 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
11958 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
11959 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
11960 tree-switch-conversion.o, var-tracking.o, value-prof.o,
11961 cfgexpand.o, pretty-print.o): Update dependencies.
11963 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
11965 * tree-ssa-structalias.c: Remove tm_p.h from include.
11967 2010-05-21 Jeff Law <law@redhat.com>
11969 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
11971 2010-05-21 Jason Merrill <jason@redhat.com>
11973 * tree-eh.c (cleanup_is_dead_in): New.
11974 (lower_try_finally): Don't generate a dead cleanup region.
11975 (lower_cleanup): Likewise.
11977 2010-05-21 Jakub Jelinek <jakub@redhat.com>
11980 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
11981 unchain each use from the cyclic next_regno_use chain first.
11983 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
11985 * real: Do not include gmp.h, mpfr.h, and mpc.h.
11986 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
11987 (real_value_negate, real_value_abs): New prototypes.
11988 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
11989 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
11990 new include file for interface between MPFR and REAL_VALUE_TYPE.
11991 * real.c: Include realmpfr.h.
11992 (real_arithmetic2): Remove legacy function.
11993 (real_value_negate): New.
11994 (real_value_abs): New.
11995 (mfpr_from_real, real_from_mpfr): Move from here...
11996 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
11997 * builtins.c: Include realmpfr.h.
11998 * fold-const.c: Include realmpfr.h.
11999 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
12000 (fold_negate_const): Likewise.
12001 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
12002 * toplev.c: Include realmpfr.h.
12003 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
12004 and real_value_negate.
12005 * fixed-value.c (check_real_for_fixed_mode): Likewise.
12006 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
12007 (vfp3_const_double_index): Likewise.
12008 (arm_print_operand): Likewise.
12009 * Makefile.in: Update dependencies.
12011 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12013 * config/s390/s390.c (override_options): Increase the default
12014 of max-completely-peel-times.
12016 2010-05-21 Julian Brown <julian@codesourcery.com>
12017 Mark Mitchell <mark@codesourcery.com>
12019 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
12020 sibling calls for Thumb-1.
12021 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
12022 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
12024 (*call_insn, *call_value_insn): Don't use for Thumb-2.
12025 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
12027 (return): New expander.
12028 (*arm_return): New name for ARM return insn.
12029 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
12031 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
12033 * config.gcc (sparc64-*-rtems*): New target.
12035 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
12037 * tree.c (build_function_decl_skip_args): Fix grammar.
12038 (build_function_type_list_1): Fix typos, adjust formatting.
12040 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
12042 * tree.h: Include real.h and fixed-value.h as basic datatypes.
12043 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
12044 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
12045 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
12046 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
12047 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
12048 tree-pretty-print.c, tree-loop-distribution.c,
12049 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
12050 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
12051 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
12052 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
12053 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
12054 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
12055 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
12056 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
12057 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
12058 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
12059 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
12060 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
12061 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
12062 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
12063 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
12064 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
12065 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
12066 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
12067 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
12068 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
12069 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
12070 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
12071 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
12072 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
12073 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
12074 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
12075 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
12076 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
12077 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
12078 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
12079 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
12080 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
12081 config/score/score7.c, config/score/score.c, config/arm/arm.c,
12082 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
12083 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
12084 config/bfin/bfin.c: Clean up redundant includes.
12085 * Makefile.in: Update accordingly.
12087 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
12089 PR middle-end/44204
12090 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
12091 statement has no arguments.
12093 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
12096 * varasm.c (emutls_decl): Merge attributes to new decl.
12098 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
12100 PR middle-end/44101
12101 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
12102 around the uniquized constructor if its type requires a conversion.
12104 2010-05-21 Jakub Jelinek <jakub@redhat.com>
12107 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
12108 at -O0 goto_locus of any of the incoming edges differs from
12109 goto_locus of outgoing edge, or gimple_location of any of the
12112 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
12114 * ira.c (ira_non_ordered_class_hard_regs): Define.
12115 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
12116 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
12117 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
12118 cost of unaligned hard regs when allocating multi-reg pseudos.
12120 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
12122 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
12123 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
12124 for TARGET_NO_FLOAT.
12125 * config/mips/mips.c (mips_file_start): Expand conditional expression
12126 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
12127 (mips_override_options): Move -mno-float override -msoft-float and
12129 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
12130 Condition(TARGET_SUPPORTS_NO_FLOAT).
12131 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
12132 __mips_no_float here.
12133 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
12134 (TARGET_SUPPORTS_NO_FLOAT): Define.
12135 * config/mips/sdemtk.opt: Delete.
12137 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
12139 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
12141 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
12144 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
12145 * configure: Regenerate.
12146 * config.in: Regenerate.
12147 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
12148 instead of sahf only for 64bit targets.
12150 2010-05-20 Jakub Jelinek <jakub@redhat.com>
12153 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
12154 setup_ref_regs for DEBUG_INSNs.
12156 2010-05-20 Jan Hubicka <jh@suse.cz>
12158 PR middle-end/44197
12159 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
12161 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
12164 * df-scan.c (df_ref_compare): Stabilize sort.
12166 2010-05-20 Jakub Jelinek <jakub@redhat.com>
12168 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
12169 argument. Don't use DW_OP_piece if offset is non-zero,
12170 put offset into second DW_OP_bit_piece argument.
12171 (dw_sra_loc_expr): Adjust callers. For memory expressions
12174 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
12177 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
12178 settings for 16-bit-constant "addo" alternative.
12180 2010-05-19 James E. Wilson <wilson@codesourcery.com>
12182 * config/mips/mips-dsp.md (add<DSPV:mode>3,
12183 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
12186 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
12187 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
12190 2010-05-19 Joseph Myers <joseph@codesourcery.com>
12192 * diagnostic.c (FLOAT, FFS): Don't undefine.
12193 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
12194 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
12197 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12199 * combine.c (propagate_for_debug): Call make_compound_operation
12200 on the source value.
12201 (try_combine): When implementing a split chosen by find_split_point,
12202 either copy i2src or set it to null. Assert that i2src is not null
12203 before substituting into CALL_INSN_FUNCTION_USAGE.
12205 2010-05-19 Anatoly Sokolov <aesok@post.ru>
12207 * double-int.h (double_int_ior): New function.
12208 * tree.h (build_int_cst_wide_type): Remove.
12209 * tree.c (build_int_cst_wide_type): Remove.
12210 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
12211 of build_int_cst_wide_type.
12212 * stor-layout.c (set_sizetype): (Ditto.).
12213 * dojump.c (do_jump): Use build_int_cstu instead of
12214 build_int_cst_wide_type.
12216 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
12218 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
12219 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
12220 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
12221 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
12222 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
12223 propagate the 'data' argument to copy_tree_r.
12224 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
12225 Propagate 'data' argument to walk_tree.
12226 (copy_if_shared): New function.
12227 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
12228 (unmark_visited): New function.
12229 (unshare_body): Call copy_if_shared instead of doing it manually.
12230 (unvisit_body): Call unmark_visited instead of doing it manually.
12232 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
12234 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
12235 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
12236 * hooks.c: Likewise.
12237 * target-def.h (TARGET_FOLD_BUILTIN): Define to
12238 hook_tree_tree_int_treep_bool_null.
12239 * target.h (struct gcc_target): Update signature of fold_builtin
12241 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
12242 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
12243 instead of the call expression.
12244 (fold_builtin_call_array): Pass n and argarray directly.
12245 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
12247 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
12248 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
12249 `i' and use it in place of `arity'.
12250 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
12251 Dereference `args' directly.
12252 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
12254 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12256 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12258 (Directives): Document optional dg-require-effective-target
12261 2010-05-19 Richard Guenther <rguenther@suse.de>
12264 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
12266 2010-05-19 Richard Guenther <rguenther@suse.de>
12268 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
12269 * common.opt (fwhopr=): New.
12270 * opts.c (common_handle_option): Handle OPT_fwhopr.
12271 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
12272 * collect2.c (main): Match -fwhopr*.
12273 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
12274 Execute ltrans stage in parallel when jobs is bigger than 1.
12276 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12278 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12279 pentiumpro on Solaris 8/x86 with Sun as.
12280 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
12282 (gcc_cv_as_ix86_quad): Check for .quad directive.
12283 * configure: Regenerate.
12284 * config.in: Regenerate.
12285 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
12287 2010-05-19 Martin Jambor <mjambor@suse.cz>
12289 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
12290 also for indirect edges. Actual printing moved...
12291 (ipa_print_node_jump_functions_for_edge): ...here.
12292 (ipa_compute_jump_functions): Renamed to
12293 ipa_compute_jump_functions_for_edge and made static.
12294 (ipa_compute_jump_functions): New function.
12295 (make_edge_direct_to_target): Check if the number of arguments on
12296 the newly direct edge is the same as the number of parametrs of
12298 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
12299 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
12300 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12301 analysis functions unconditionally, call the new
12302 ipa_analyze_params_uses on the node instead of every edge.
12304 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
12306 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
12308 (dump_mem_ref): Adopt debug code to handle a tree as step. This
12309 also checks for a constant int vs. non-constant but
12310 loop-invariant steps.
12311 (find_or_create_group): Change the sort algorithm to only consider
12312 steps that are constant ints.
12313 (idx_analyze_ref): Adopt code to handle a tree instead of a
12314 HOST_WIDE_INT for step.
12315 (gather_memory_references_ref): Handle tree instead of int and be
12316 prepared to see a NULL_TREE.
12317 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
12318 prefetches if the step cannot be calculated at compile time.
12319 (issue_prefetch_ref): Issue prefetches for non-constant but
12320 loop-invariant steps.
12322 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12325 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12327 * tree.h (build_call_list): Remove.
12328 * tree.c (build_call_list): Remove.
12330 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
12332 * tree.h (build_call_list): Remove.
12333 * tree.c (build_call_list): Remove.
12335 2010-05-18 Jan Hubicka <jh@suse.cz>
12337 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
12339 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
12341 PR rtl-optimization/43332
12342 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
12344 2010-05-18 Anatoly Sokolov <aesok@post.ru>
12346 * tree.h (build_int_cstu): Implement as static inline.
12347 * tree.c (build_int_cstu): Remove function.
12348 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
12351 2010-05-18 Richard Guenther <rguenther@suse.de>
12354 * lto-wrapper.c (verbose): New variable. Initialize from -v.
12355 (debug): Initialize from -save-temps.
12356 (collect_execute): Print command-line when verbose.
12357 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
12358 for ltrans invocation. Produce -dumpbase flag again.
12359 (process_args): Remove.
12361 * collect2.c (maybe_run_lto_and_relink): Only pass object
12362 files to lto-wrapper.
12363 * gcc.c (LINK_COMMAND_SPEC): Likewise.
12365 2010-05-18 Jan Hubicka <jh@suse.cz>
12367 * opts.c (decode_options): Do not disable whopr at ipa_cp.
12368 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
12370 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
12373 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
12375 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
12378 2010-05-18 Jakub Jelinek <jakub@redhat.com>
12381 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
12382 rtx_equal_p inline.
12384 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
12386 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
12387 lto-macho as lto_binary_reader.
12389 * darwin.c (darwin_asm_named_section): Do not add assembler comment
12390 after .section directive; just print it before the directive instead.
12392 2010-05-17 Jan Hubicka <jh@suse.cz>
12394 * cgraph.c (cgraph_create_virtual_clone): Only check
12395 versionable_function_p when not in wpa and checking is enabled.
12396 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
12397 there are no more functions to materialize.
12399 2010-05-17 Jan Hubicka <jh@suse.cz>
12401 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
12402 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
12404 (output_cgraph): Call output_cgraph_opt_summary.
12405 (input_cgrpah): Call input_cgraph_opt_summary.
12406 (output_cgraph_opt_summary_p, output_node_opt_summary,
12407 input_node_opt_summary, input_cgraph_opt_section): New functions.
12408 * lto-section-in.c (lto_section_name): Add cgraphopt.
12409 * tree-inline.c (tree_function_versioning): Handle parm_num.
12410 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
12411 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
12413 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
12415 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
12416 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
12417 the insn to prefetch ratio heuristic to loops with known trip count.
12419 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
12421 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
12422 (schedule_prefetches): Do not generate a prefetch if the unroll factor
12423 is far from what is required by the prefetch.
12425 2010-05-17 Jan Hubicka <jh@suse.cz>
12427 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
12428 (ipcp_estimate_growth): Likewise.
12429 (ipcp_const_param_count): Likewise.
12430 (ipcp_insert_stage): Likewise.
12431 * ipa-prop.c (visit_load_for_mod_analysis): New function.
12432 (visit_store_addr_for_mod_analysis): Set used flag.
12433 (ipa_detect_param_modifications): Set used flag for SSE params;
12434 update use of walk_stmt_load_store_addr_ops.
12435 (ipa_print_node_params): Print used flag.
12436 (ipa_write_node_info): Stream used flag.
12437 (ipa_read_node_info): Likewise.
12438 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
12439 (ipa_is_param_used): New function.
12440 (lto_ipa_fixup_call_notes): Remove unused declaration.
12442 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12445 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
12446 * configure: Regenerate.
12447 * config.in: Regenerate.
12448 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
12449 !HAVE_AS_IX86_REP_LOCK_PREFIX.
12450 Don't emit whitespace.
12451 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
12452 (*rep_movsi): Likewise.
12453 (*rep_movsi_rex64): Likewise.
12454 (*rep_movqi): Likewise.
12455 (*rep_movqi_rex64): Likewise.
12456 (*rep_stosdi_rex64): Likewise.
12457 (*rep_stossi): Likewise.
12458 (*rep_stossi_rex64): Likewise.
12459 (*rep_stosqi): Likewise.
12460 (*rep_stosqi_rex64): Likewise.
12461 (*cmpstrnqi_nz_1): Use {%;} after repz.
12462 (*cmpstrnqi_nz_rex_1): Likewise.
12463 (*cmpstrnqi_1): Likewise.
12464 (*cmpstrnqi_rex_1): Likewise.
12465 (*strlenqi_1): Use {%;} after repnz.
12466 (*strlenqi_rex_1): Likewise.
12467 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
12468 (*sync_compare_and_swap<mode>): Likewise.
12469 (sync_double_compare_and_swap<mode>): Likewise.
12470 (*sync_double_compare_and_swapdi_pic): Likewise.
12471 (sync_old_add<mode>): Likewise.
12472 (sync_add<mode>): Likewise.
12473 (sync_sub<mode>): Likewise.
12474 (sync_<code><mode>): Likewise.
12476 2010-05-17 Martin Jambor <mjambor@suse.cz>
12478 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
12479 otr_token and polymorphic.
12480 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
12481 (cgraph_clone_edge): Copy the above fields.
12482 * tree.c (get_binfo_at_offset): New function.
12483 * tree.h (get_binfo_at_offset): Declare.
12484 * ipa-prop.h (enum jump_func_type): Added known_type jump function
12485 type, reordered items, updated comments.
12486 (union jump_func_value): Added base_type field, reordered fields.
12487 (enum ipa_lattice_type): Moved down in the file.
12488 (struct ipa_param_descriptor): New field polymorphic.
12489 (ipa_is_param_polymorphic): New function.
12490 * ipa-prop.c: Include gimple.h and gimple-fold.h.
12491 (ipa_print_node_jump_functions): Print known type jump functions.
12492 (compute_complex_pass_through): Renamed to...
12493 (compute_complex_assign_jump_func): this.
12494 (compute_complex_ancestor_jump_func): New function.
12495 (compute_known_type_jump_func): Likewise.
12496 (compute_scalar_jump_functions): Create known type and complex ancestor
12498 (ipa_note_param_call): New parameter polymorphic, set the corresponding
12499 flag in the call note accordingly.
12500 (ipa_analyze_call_uses): Renamed to...
12501 (ipa_analyze_indirect_call_uses): this. New parameter target, define
12502 variable var only in the block where it is used.
12503 (ipa_analyze_virtual_call_uses): New function.
12504 (ipa_analyze_call_uses): Likewise.
12505 (combine_known_type_and_ancestor_jfs): Likewise.
12506 (update_jump_functions_after_inlining): Implemented handling of a
12507 number of new jump function types combination.
12508 (print_edge_addition_message): Removed.
12509 (make_edge_direct_to_target): New function.
12510 (try_make_edge_direct_simple_call): Likewise.
12511 (try_make_edge_direct_virtual_call): Likewise.
12512 (update_call_notes_after_inlining): Renamed to...
12513 (update_indirect_edges_after_inlining): this. Moved edge creation for
12514 indirect calls to try_make_edge_direct_simple_call, also calls
12515 try_make_edge_direct_virtual_call for virtual calls.
12516 (ipa_print_node_params): Changed the header message.
12517 (ipa_write_jump_function): Stream also known type jump functions.
12518 (ipa_read_jump_function): Likewise.
12519 (ipa_write_indirect_edge_info): Stream new fields in
12520 cgraph_indirect_call_info.
12521 (ipa_read_indirect_edge_info): Likewise.
12522 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
12525 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12527 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
12529 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
12531 * tree.h (CALL_EXPR_ARGS): Delete.
12532 (call_expr_arglist): Delete.
12533 * tree.c (call_expr_arglist): Delete.
12534 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
12535 targetm.fold_builtin.
12536 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
12537 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
12538 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
12539 arglist parameter. Use CALL_EXPR_ARG.
12540 (picochip_expand_builtin_3op): Likewise.
12541 (picochip_expand_builtin_2opvoid): Likewise.
12542 (picochip_expand_array_get): Likewise.
12543 (picochip_expand_array_put): Likewise.
12544 (picochip_expand_array_testport): Likewise.
12545 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
12546 rather than arglist.
12547 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
12549 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
12550 than TREE_VALUE and TREE_CHAIN.
12551 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12552 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
12555 2010-05-17 Jakub Jelinek <jakub@redhat.com>
12558 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
12559 to have no fallthru edge.
12561 PR middle-end/44102
12562 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
12563 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
12564 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
12565 add BARRIER after previous bb if needed.
12567 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
12569 * tree.c (build_function_type_list_1): Remove bogus assert condition.
12571 2010-05-17 Alan Modra <amodra@gmail.com>
12573 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
12574 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
12575 with copy_reg rtx param.
12576 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
12577 Correct cases where code for ABI_V4 did not initialise the reg
12578 used to access frame. Also leave frame_reg_rtx as sp for large
12579 frames that save no regs.
12581 2010-05-17 Martin Jambor <mjambor@suse.cz>
12583 PR middle-end/44133
12584 * tree-sra.c (create_access_replacement): New parameter rename, mark
12585 the replaement for renaming only when it is true.
12586 (get_access_replacement): Pass true in the rename parameter of
12587 create_access_replacement.
12588 (get_unrenamed_access_replacement): New function.
12589 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
12590 replacement declaration from it.
12592 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
12594 * function.c (try_fit_stack_local, add_frame_space): New static
12596 (assign_stack_local_1): Use them. Look for opportunities to use
12597 space previously wasted on alignment.
12598 * function.h (struct frame_space): New.
12599 (struct rtl_data): Add FRAME_SPACE_LIST member.
12600 * reload1.c (something_was_spilled): New static variable.
12601 (alter_reg): Set it.
12602 (reload): Test it in addition to testing if the frame size changed.
12604 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
12606 * config/s390/s390.c: Define sane prefetch settings and activate
12607 flag_prefetch_loop_arrays on -O3.
12608 * config/s390/s390.h: Declare that read can use write prefetch.
12610 2010-05-17 Jakub Jelinek <jakub@redhat.com>
12612 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12615 2010-05-16 Jan Hubicka <jh@suse.cz>
12617 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12618 function body; do not check stdarg field of struct function.
12620 2010-05-16 Jan Hubicka <jh@suse.cz>
12622 * cgraph.c (dump_cgraph_node): Dump versionable flag.
12623 * cgraph.h (cgraph_local_info): Add versionable flag.
12624 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12625 (ipcp_versionable_function_p): Use it.
12626 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12629 2010-05-16 Jan Hubicka <jh@suse.cz>
12631 * cgraph.c (cgraph_clone_node): Take decl argument and insert
12632 clone into hash when it is different from orig.
12633 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12634 * cgraph.h (cgraph_clone_node): Update prototype.
12635 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12636 (lto_cgraph_encoder_delete): Delete body map.
12637 (lto_cgraph_encoder_size): Move to header.
12638 (lto_cgraph_encoder_encode_body_p,
12639 lto_set_cgraph_encoder_encode_body): New.
12640 (lto_output_node): Do not take written_decls argument; output clone_of
12642 (add_node_to): Add include_body_argument; call
12643 lto_set_cgraph_encoder_encode_body on master of the clone.
12644 (add_references): Update use of add_node_to.
12645 (compute_ltrans_boundary): Likewise.
12646 (output_cgraph): Do not create written_decls bitmap.
12647 (input_node): Take nodes argument; stream in clone_of correctly.
12648 (input_cgraph_1): Update use of input_node.
12649 * lto-streamer-out.c (lto_output): Use encoder info to decide
12650 what bodies to output.
12651 * ipa-inline.c (cgraph_clone_inlined_nodes,
12652 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12653 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12654 (lto_cgraph_encoder_size): Define here.
12655 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12658 2010-05-16 Richard Guenther <rguenther@suse.de>
12660 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12662 * ipa-type-escape.c (gate_type_escape_vars): Run when
12663 -fipa-struct-reorg runs.
12664 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12665 * common.opt (fipa-type-escape): Remove.
12667 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
12669 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12670 (decode_options): Likewise.
12671 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12673 2010-05-16 Jan Hubicka <jh@suse.cz>
12675 * ipa.c (function_and_variable_visibility): Also bring local all
12678 2010-05-16 Richard Guenther <rguenther@suse.de>
12680 * alias.c (nonoverlapping_memrefs_p): Remove use of
12681 IPA type-escape information.
12683 2010-05-16 Joseph Myers <joseph@codesourcery.com>
12685 * c-common.c (c_common_reswords): Add _Static_assert for C.
12686 * c-parser.c (c_token_starts_declaration,
12687 c_parser_next_token_starts_declaration,
12688 c_parser_static_assert_declaration_no_semi,
12689 c_parser_static_assert_declaration): New.
12690 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12691 Handle static assertions if static_assert_ok.
12692 (c_parser_external_declaration, c_parser_declaration_or_fndef,
12693 c_parser_compound_statement_nostart, c_parser_label,
12694 c_parser_for_statement, c_parser_objc_methodprotolist,
12695 c_parser_omp_for_loop): All callers of
12696 c_parser_declaration_or_fndef changed.
12697 (c_parser_struct_declaration): Handle static assertions.
12698 (c_parser_compound_statement_nostart): Use
12699 c_parser_next_token_starts_declaration and
12700 c_token_starts_declaration to detect start of declarations.
12701 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12704 2010-05-16 Anatoly Sokolov <aesok@post.ru>
12706 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12707 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12708 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12709 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12710 (mmix_function_outgoing_value): Rename to...
12711 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12712 (mmix_function_value_regno_p): Make static.
12713 (mmix_libcall_value): New function.
12714 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12715 mmix_function_value_regno_p): Remove declaration.
12717 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
12719 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12720 BUILT_IN_ALLOCA if stack checking is enabled.
12722 2010-05-16 Richard Guenther <rguenther@suse.de>
12724 * var-tracking.c (vars_copy_1): Inline ...
12725 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
12726 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
12727 (variable_merge_over_cur): Adjust. Merge asserts.
12728 (variable_merge_over_src): Likewise.
12729 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12730 (variable_post_merge_new_vals): Merge asserts.
12731 (variable_post_merge_perm_vals): Likewise.
12732 (find_mem_expr_in_1pdv): Likewise.
12733 (dataflow_set_different_value): Remove.
12734 (onepart_variable_different_p): Merge asserts.
12735 (variable_different_p): Likewise.
12736 (dataflow_set_different_1): Inline ...
12737 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
12738 (emit_notes_for_differences_1): Merge asserts.
12740 2010-05-16 Richard Guenther <rguenther@suse.de>
12742 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
12743 * optabs.c (libfunc_decl_hash): Likewise.
12744 * varasm.c (emutls_decl): Likewise.
12746 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
12748 * c-decl.c: Don't include gimple.h.
12749 (merge_decls): Do not copy gimple_body.
12751 2010-05-15 Jason Merrill <jason@redhat.com>
12753 * c.opt: Add -fnothrow-opt.
12755 2010-05-15 Jan Hubicka <jh@suse.cz>
12757 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
12759 * passes.c (ipa_write_summaries): Write all analyzed nodes.
12761 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
12763 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
12764 * Makefile.in: Add it.
12765 Fix all other Makefile dependencies for changes below.
12766 * tree.h: Include it instead of defining VEC primitives here.
12767 * gimple.h: Likewise.
12769 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
12770 * except.h: Include vecir.h, break dependence on tree.h.
12772 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
12774 * tree-iterator.c: ...to here.
12775 * tree-iterator.h: Fix file introduction comment. Add extern markers.
12777 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
12779 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
12780 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
12781 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
12782 tree-mudflap.h, and target.h.
12783 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
12784 predict.h, tree-inline.h, gimple.h, and langhooks.h.
12785 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
12786 Add FIXME for why gimple.h is still included (should be unnecessary
12787 since GCC 4.5 gimplification unit-at-a-time).
12788 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
12789 * c-pragma.c: Add FIXME for why function.h needs to be included just
12790 for cfun, at front-end level.
12791 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
12792 Do not include ggc.h, but include vecprim.h for VEC(char).
12793 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
12794 Explain why target.h is included.
12795 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
12796 Explain why gimple.h is included.
12797 * c-ppoutput.c: Do not include tm.h.
12798 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
12799 * c-parses.c: Explain why rtl.h is included, and that this (and only
12800 this) is also why tm.h must be included.
12801 Do not include except.h.
12802 * c-lang.c: Do not include ggc.h.
12804 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
12806 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
12808 2010-05-15 Joseph Myers <joseph@codesourcery.com>
12810 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
12811 unions by default if those structs and unions have no tags. Do
12812 not condition anonymous struct and unions handling on flag_iso.
12813 Allow anonymous structs and unions for C1X.
12814 (finish_struct): Do not diagnose lack of named fields when
12815 anonymous structs and unions present for C1X. Accept flexible
12816 array members in structure with anonymous structs or unions but no
12817 directly named fields.
12818 * doc/extend.texi (Unnamed Fields): Update.
12820 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
12822 * gimple.h (compare_field_offset): Rename into...
12823 (gimple_compare_field_offset): ...this.
12824 * gimple.c (compare_field_offset): Rename into...
12825 (gimple_compare_field_offset): ...this. Compare the full access if
12826 the offset is self-referential.
12827 (gimple_types_compatible_p): Adjust for above renaming.
12828 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
12829 DECL_NONADDRESSABLE_P flag of fields before merging them.
12831 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
12833 * tree.h (ctor_to_list): Delete.
12834 * tree.c (ctor_to_list): Delete.
12836 2010-05-15 Jan Hubicka <jh@suse.cz>
12838 * ipa-reference.c: Include toplev.h
12839 (is_proper_for_analysis): Only add to all_module_statics
12840 if it is allocated.
12841 (write_node_summary_p, stream_out_bitmap,
12842 ipa_reference_write_optimization_summary,
12843 ipa_reference_read_optimization_summary): New.
12844 (struct ipa_opt_pass_d pass_ipa_reference): Add
12845 optimization summary streaming.
12846 * lto-cgraph.c (referenced_from_this_partition_p,
12847 reachable_from_this_partition_p): New functions.
12848 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
12849 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
12850 * opts.c (decode_options): Enable ipa_reference.
12851 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
12852 * lto-streamer.h (referenced_from_this_partition_p,
12853 reachable_from_this_partition_p): Declare.
12855 2010-05-15 Richard Guenther <rguenther@suse.de>
12857 PR tree-optimization/44038
12858 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
12859 taking the address of a V_C_E of a constant.
12861 2010-05-14 Jan Hubicka <jh@suse.cz>
12863 * tree.h (memory_identifier_string): Remove.
12864 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
12865 (ipa_reference_global_vars_info_d): Remove statics_not_read and
12866 statics_not_written.
12867 (ipa_reference_optimization_summary_d): New structure.
12868 (ipa_reference_optimization_summary_t): New type and vector.
12869 (ipa_reference_vars_info_d): Embedd structures instead of using
12871 (reference_vars_to_consider): Remove out of GGC space.
12872 (module_statics_escape): Remove.
12873 (global_info_obstack): Rename to ...
12874 (optimization_summary_obstack): ... this one.
12875 (initialization_status_t): Remove.
12876 (memory_identifier_string): Remove.
12877 (get_reference_vars_info): Fix indenting.
12878 (set_reference_vars_info): Likewise.
12879 (get_reference_optimization_summary): New.
12880 (set_reference_optimization_summary): New.
12881 (get_global_reference_vars_info): Remove.
12882 (ipa_reference_get_read_global): Remove.
12883 (ipa_reference_get_written_global): Remove.
12884 (ipa_reference_get_not_read_global): Update.
12885 (ipa_reference_get_not_written_global): Update.
12886 (is_proper_for_analysis): Outlaw addressable.
12887 (propagate_bits): Update for new datastructures.
12888 (analyze_variable): Remove.
12889 (init_function_info): Update for new datastructures.
12890 (clean_function_local_data): Remove.
12891 (clean_function): Remove.
12892 (copy_global_bitmap): Use optimizations_summary_obstack.
12893 (duplicate_node_data): Duplicate optimization summary only.
12894 (remove_node_data): Remove optimization summary only.
12895 (generate_summary): Do not analyze variables; do not compute
12896 module_statics_escape; do not prune solutions by it.
12897 (read_write_all_from_decl): Fix typos in comments.
12898 (propagate): Doscover readonly and nonaddressable first;
12899 update for new datastructures; share global bitmaps.
12900 * ipa-reference.h (ipa_reference_get_read_global,
12901 ipa_reference_get_written_global): Remove.
12902 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
12903 * Makefile.in: Remove ipa-refereference from GT files.
12905 2010-05-14 Jakub Jelinek <jakub@redhat.com>
12908 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
12909 for all SYMBOL_REF_DECLs.
12911 2010-05-14 Jan Hubicka <jh@suse.cz>
12913 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
12914 (varpool_all_refs_explicit_p): New inline function.
12915 * ipa-reference.c: Update comment.
12916 (module_statics_written): Remove.
12917 (get_static_decl): Remove.
12918 (ipa_init): Do not initialize module_statics_written.
12919 (analyze_function): Likewise.
12920 (generate_summary): Likewise; do not compute module_statics_readonly
12921 and do not update variable flags.
12922 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
12923 * ipa.c: Inlucde flags.h
12924 (cgraph_local_node_p): New.
12925 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
12926 promote functions to local.
12927 (ipa_discover_readonly_nonaddressable_vars): New function.
12928 (function_and_variable_visibility): Use cgraph_local_node_p.
12929 * varpool.c (varpool_finalize_decl): Set force_output for
12930 DECL_PRESERVE_P vars.
12932 2010-05-14 Jan Hubicka <jh@suse.cz>
12934 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
12936 2010-05-14 Richard Guenther <rguenther@suse.de>
12938 PR tree-optimization/44119
12939 * tree-ssa-pre.c (eliminate): Properly mark replacement of
12940 a PHI node necessary.
12942 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
12944 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
12946 2010-05-14 Jason Merrill <jason@redhat.com>
12949 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
12950 (gimple_call_set_nothrow): New.
12951 * gimple.c (gimple_build_call_from_tree): Call it.
12952 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
12955 * gimplify.c (gimplify_seq_add_stmt): No longer static.
12956 * gimple.h: Declare it.
12957 * gimple.c (gimple_build_eh_filter): No ops.
12959 2010-05-14 Jan Hubicka <jh@suse.cz>
12961 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
12962 nodes already in queue.
12963 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
12964 re-enqueueing node.
12966 2010-05-14 Jakub Jelinek <jakub@redhat.com>
12969 * cfgexpand.c (expand_debug_expr): If non-memory op0
12970 has BLKmode, return NULL.
12972 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
12974 * config.gcc: Add support for --with-cpu option for bdver1.
12975 * config/i386/i386.h (TARGET_BDVER1): New macro.
12976 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
12977 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12978 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
12979 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
12980 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
12981 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
12982 (processor_type): Add PROCESSOR_BDVER1.
12983 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
12984 processor_type in config/i386/i386.h.
12985 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
12986 movaps <reg, reg> instead of movapd <reg, reg> when replacing
12987 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
12988 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
12989 to emit packed xor instead of packed double/packed integer
12990 xor for SSE and AVX when moving a zero value.
12991 * config/i386/sse.md: Add check for
12992 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
12993 movapd/movdqa for SSE and AVX.
12994 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
12995 single logical operations i.e and, or and xor instead of packed double
12996 logical operations for SSE and AVX.
12997 * config/i386/i386-c.c (ix86_target_macros_internal):
12998 Add PROCESSOR_BDVER1.
12999 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
13000 (has_fma4, has_xop): New.
13001 * config/i386/i386.c (bdver1_cost): New variable.
13002 (m_BDVER1): New macro.
13003 (m_AMD_MULTIPLE): Add m_BDVER1.
13004 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
13005 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
13006 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
13007 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
13008 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
13009 x86_tune_sse_partial_reg_dependency,
13010 x86_tune_sse_unaligned_load_optimal,
13011 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
13012 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
13013 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
13014 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
13015 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
13016 Enable/disable for bdver1.
13017 (processor_target_table): Add bdver1_cost.
13018 (cpu_names): Add bdver1.
13019 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
13020 processor_alias_table.
13021 (ix86_expand_vector_move_misalign): Change.
13022 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
13023 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
13024 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
13025 of movupd/movdqu for SSE and AVX.
13026 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
13027 (ix86_tune_adjust_cost): Add code for bdver1.
13028 (standard_sse_constant_opcode): Add check for
13029 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
13030 of packed double xor for SSE and AVX.
13032 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
13034 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
13035 result to unsigned.
13037 2010-05-14 Tristan Gingold <gingold@adacore.com>
13039 * toplev.c (default_debug_hooks): Remove this variable.
13040 (process_options): Remove assignments to default_debug_hooks.
13042 2010-05-14 Martin Jambor <mjambor@suse.cz>
13044 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
13045 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
13046 * langhooks.h (struct lang_hooks_for_decls): Removed field
13048 * tree.c (free_lang_data): Remove assignment to
13049 lang_hooks.fold_obj_type_ref.
13050 * tree.def (OBJ_TYPE_REF): Update comment.
13052 2010-05-14 Richard Guenther <rguenther@suse.de>
13054 PR tree-optimization/44124
13055 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
13057 2010-05-14 Alan Modra <amodra@gmail.com>
13060 * config/rs6000/rs6000.c (struct machine_function): Reorder
13061 fields for better packing. Add lr_save_state.
13062 (rs6000_ra_ever_killed): Return lr_save_state if set.
13063 (rs6000_emit_eh_reg_restore): Set lr_save_state.
13065 2010-05-13 Jan Hubicka <jh@suse.cz>
13067 * varpool.c (decide_is_variable_needed): Drop code checking
13068 TREE_SYMBOL_REFERENCED.
13070 2010-05-13 Jan Hubicka <jh@suse.cz>
13072 * final.c (output_addr_const): Do not call mark_decl_referenced.
13073 * cgraphunit.c (process_function_and_variable_attributes): Use
13074 mark_needed_node dirrectly.
13075 (assemble_thunk): Do not call mark_decl_referenced.
13077 2010-05-13 Anatoly Sokolov <aesok@post.ru>
13079 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
13081 2010-05-13 Jeff Law <law@redhat.com>
13083 * ira-conflicts.c (print_allocno_conflicts): New function broken out
13085 (print_conflicts): Call print_allocno_conflicts.
13087 2010-05-13 Jakub Jelinek <jakub@redhat.com>
13090 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
13093 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
13095 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
13096 t-mingw-w64 or t-mingw-w32 for multilib configuration.
13097 * config/i386/t-mingw-w32: New.
13098 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
13100 2010-05-13 Martin Jambor <mjambor@suse.cz>
13102 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
13104 * gimple-fold.c (get_base_binfo_for_type): New function.
13105 (gimple_get_relevant_ref_binfo): Likewise.
13106 (gimple_fold_obj_type_ref_known_binfo): Likewise.
13107 (gimple_fold_obj_type_ref): Likewise.
13108 (fold_gimple_call): Simplify condition for folding virtual calls
13109 and call gimple_fold_obj_type_ref.
13110 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
13111 (gimple_fold_obj_type_ref_known_binfo): Likewise.
13113 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
13115 * config/rs6000/rs6000-protos.h
13116 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
13117 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
13118 (rs6000_debug_mode_dependent_address)
13119 (rs6000_mode_dependent_address_ptr): Likewise.
13121 2010-05-13 Jakub Jelinek <jakub@redhat.com>
13124 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
13126 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
13127 * tree-sra.c (create_access_replacement): Call unshare_expr before
13128 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
13129 * dwarf2out.c: Include tree-flow.h.
13130 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
13131 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
13132 Handle DW_OP_bit_piece.
13133 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
13134 construct_piece_list, adjust_piece_list): New functions.
13135 (add_var_loc_to_decl): Handle SRA optimized variables.
13136 Adjust for var_loc_note to loc field renaming.
13137 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
13138 in VAR_LOCATION note.
13139 (new_loc_descr_op_bit_piece): New function.
13140 (dw_sra_loc_expr): New function.
13141 (dw_loc_list): Use it. Don't handle the last range after the
13142 loop, handle it inside of the loop. Adjust for var_loc_note
13143 to loc field renaming.
13144 (add_location_or_const_value_attribute): Only special case
13145 single entry loc lists if loc is NOTE_P. Adjust for
13146 var_loc_note to loc field renaming.
13147 (dwarf2out_var_location): Don't set newloc->var_loc_note
13148 and newloc->next here.
13150 2010-05-12 Jan Hubicka <jh@suse.cz>
13152 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
13154 * cgraph.h (cgraph_only_called_directly_p,
13155 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
13156 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
13157 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
13159 * ipa.c (cgraph_remove_unreachable_nodes): Use
13160 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
13162 * tree-inline.c (copy_bb): Check address_taken flag.
13163 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
13164 externally_visible flag.
13166 2010-05-12 Jason Merrill <jason@redhat.com>
13170 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
13171 * sdbout.c (plain_type_1): Likewise.
13172 * dwarf2out.c (is_base_type): Likewise.
13173 (gen_type_die_with_usage): Likewise. Generate
13174 DW_TAG_unspecified_type for any LANG_TYPE.
13176 2010-05-12 Jan Hubicka <jh@suse.cz>
13178 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
13180 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
13181 (cgraph_clone_edge): Update.
13182 (cgraph_node_remove_callees): Remove indirect calls too.
13183 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
13184 (cgraph_create_indirect_edge): Update prototype.
13185 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
13186 is_proper_for_analysis.
13187 (add_new_function, visited_nodes, function_insertion_hook_holder,
13188 get_local_reference_vars_info, mark_address_taken, mark_address,
13189 mark_load, mark_store, check_asm_memory_clobber, check_call,
13190 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
13191 (ipa_init): Do not initialize visited_nodes;
13192 function_insertion_hook_holder.
13193 (analyze_variable): Rewrite.
13194 (analyze_function): Rewrite.
13195 (copy_local_bitmap): Remove.
13196 (duplicate_node_dat): Do not duplicate local info.
13197 (generate_summary): Simplify to only walk cgraph.
13198 (write_node_summary_p, ipa_reference_write_summary,
13199 ipa_reference_read_summary): Remove.
13200 (propagate): Do not remove function insertion;
13202 (pass_ipa_reference): NULLify summary handling fields.
13203 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
13204 (input_edge): Input ecf_flags.
13205 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
13206 (update_indirect_edges_after_inlining): Ignore edges with unknown
13209 2010-05-12 Sriraman Tallam <tmsriram@google.com>
13211 * implicit-zee.c: New file.
13212 * tree-pass.h (pass_implicit_zee): Declare.
13213 * passes.c (init_optimization_passes): Add zee pass.
13214 * common.opt (fzee): New flag.
13215 * timevar.def (TV_ZEE): Define.
13216 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
13218 * Makefile.in (implicit-zee.o): Add new build file.
13220 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13221 Nathan Froyd <froydnj@codesourcery.com>
13223 * c-common.c (sync_resolve_params): Remove write-only variable.
13225 2010-05-12 Anatoly Sokolov <aesok@post.ru>
13227 * target.h (struct gcc_target): Add mode_dependent_address_p field.
13228 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13229 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
13230 * targhooks.c (default_mode_dependent_address_p): New function.
13231 * targhooks.h (default_mode_dependent_address_p): Declare function.
13232 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13233 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
13234 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
13235 target hook. Change return type to bool.
13236 * recog.h (mode_dependent_address_p): Change return type to bool.
13238 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13239 Nathan Froyd <froydnj@codesourcery.com>
13241 * tree-mudflap.c (build_function_type_0, build_function_type_1,
13242 build_function_type_2, build_function_type_3): Remove.
13243 (mudflap_init): Use build_function_type_list.
13245 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
13246 Nathan Froyd <froydnj@codesourcery.com>
13248 * coverage.c (build_fn_info_value): Call build_constructor instead of
13249 build_constructor_from_list.
13250 (build_ctr_info_value): Likewise.
13251 (build_gcov_info): Likewise.
13253 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
13255 * tree.c (build_constructor): Compute TREE_CONSTANT for the
13256 resultant constructor.
13257 (build_constructor_single): Don't set TREE_CONSTANT.
13258 (build_constructor_from_list): Don't compute TREE_CONSTANT.
13260 2010-05-12 Jan Hubicka <jh@suse.cz>
13262 * cgraph.h (struct varpool_node): Add aux.
13263 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
13264 * varpool.c (varpool_remove_node): Do not remove initializer.
13265 (varpool_reset_queue): Export.
13266 (varpool_finalize_decl): Volatile vars are forced to be output.
13267 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
13269 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
13270 process_references, varpool_can_remove_if_no_refs): New functions.
13271 (cgraph_remove_unreachable_nodes): Handle variables too.
13273 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
13276 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
13278 2010-05-12 Jakub Jelinek <jakub@redhat.com>
13280 PR middle-end/44085
13281 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
13282 change value of ORT_TASK.
13283 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
13284 (omp_notice_threadprivate_variable): New function.
13285 (omp_notice_variable): Call it for threadprivate variables.
13286 If enclosing ctx is a task, print enclosing task rather than
13287 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
13288 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
13289 if task has untied clause.
13292 * dwarf2out.c (base_type_die): Don't add name attribute here.
13293 (modified_type_die): Instead of sizetype use
13294 its underlying original type. If a DW_TAG_base_type doesn't
13295 have name added, add __unknown__.
13296 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
13297 always call force_type_die instead.
13299 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
13301 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
13302 for __stack_chk_guard.
13304 2010-05-11 Jakub Jelinek <jakub@redhat.com>
13306 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
13307 don't call start_source_file debug hook here...
13308 (finish_options): ... but here, after outputting predefined and
13309 command line defines and undefs.
13311 PR middle-end/44071
13312 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
13314 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
13315 optimizing away empty bb with no successors, move over its
13316 footer chain to fallthru predecessor.
13317 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
13318 (rtl_split_edge): For asm goto call patch_jump_insn even if
13319 splitting fallthru edge.
13322 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
13323 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
13324 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13325 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
13329 * c-parser.c (c_parser_expression): Mark LHS of a comma
13330 expression as read if it is a decl, handled component or
13331 COMPOUND_EXPR with that on the RHS.
13332 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
13333 if it is a decl or handled component.
13335 2010-05-11 Jan Hubicka <jh@suse.cz>
13337 * lto-symtab.c (lto_symtab_free): New function.
13338 * lto-streamer.h (lto_symtab_free): Declare.
13340 2010-05-11 Jan Hubicka <jh@suse.cz>
13342 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
13343 that if function is needed it is reachable.
13344 (lto_output_node): See if it the function is reachable or referenced.
13345 (output_cgraph): Update call of lto_output_node.
13346 * lto-streamer.h (reachable_from_other_partition_p): Declare.
13348 2010-05-11 Jan Hubicka <jh@suse.cz>
13350 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
13353 2010-05-11 Jan Hubicka <jh@suse.cz>
13355 PR tree-optimize/44063
13356 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
13358 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
13360 (estimate_function_body_sizes): Compute sizes even when disregarding.
13362 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
13364 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
13366 2010-05-11 Jan Hubicka <jh@suse.cz>
13368 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
13369 into every boundary.
13371 2010-05-11 Jan Hubicka <jh@suse.cz>
13373 * matrix-reorg.c (matrix_reorg): Rebuild edges.
13375 2010-05-11 Jan Hubicka <jh@suse.cz>
13377 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
13378 lto_streamer_cache_delete): Put nodes into heap.
13379 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
13382 2010-05-11 Jan Hubicka <jh@suse.cz>
13384 * cgraphbuild.c (cgraph_rebuild_references): New.
13385 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
13386 out extern inlines.
13387 * cgraph.h (cgraph_rebuild_references): Declare.
13388 * tree-inline.c (tree_function_versioning): Use it.
13389 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
13391 2010-05-11 Jan Hubicka <jh@suse.cz>
13393 * cgraph.c: Include ipa-utils.h
13394 (cgraph_create_virtual_clone): Update references.
13395 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
13397 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
13399 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
13400 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
13403 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
13405 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
13407 2010-05-11 Jakub Jelinek <jakub@redhat.com>
13409 * gcc.c (execute): For -### don't quote arguments that
13410 contain just alphanumerics and _/-. characters.
13411 * doc/invoke.texi: Document that change for -###.
13414 * df-problems.c (struct dead_debug): Add to_rescan field.
13415 (dead_debug_init): Clear to_rescan field.
13416 (dead_debug_finish): Rescan all debug insns in to_rescan
13417 bitmap and free the bitmap.
13418 (dead_debug_insert_before): Instead of rescanning debug insns
13419 immediately queue their rescanning until dead_debug_finish.
13420 (df_note_bb_compute): After dead_debug_add do continue instead
13423 2010-05-10 Jakub Jelinek <jakub@redhat.com>
13426 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
13427 clear also INSN_REG_USE_LIST.
13429 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13431 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
13433 2010-05-10 Jan Hubicka <jh@suse.cz>
13435 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
13438 2010-05-10 Jan Hubicka <jh@suse.cz>
13440 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
13442 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
13443 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
13444 (lto_streamer_cache_create): Init alloc pool.
13445 (lto_streamer_cache_delete): Free alloc pool.
13446 * lto-streamer.h: Include alloc pool.
13447 (lto_streamer_cache_d): Use alloc pool.
13448 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
13450 2010-05-10 Jan Hubicka <jh@suse.cz>
13452 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
13453 * cgraphbuild.c: Include except.h
13454 (record_type_list, record_eh_tables): New function.
13455 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
13457 2010-05-10 Jan Hubicka <jh@suse.cz>
13459 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
13460 __frame_dummy_init_array_entry, force_to_data): Attribute as used
13461 rather than unused.
13463 2010-05-10 Michael Matz <matz@suse.de>
13465 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
13466 (can_reassociate_p): Use FLOAT_TYPE_P.
13467 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
13468 (vect_force_simple_reduction): ... this.
13469 * tree-parloops.c (gather_scalar_reductions): Use
13470 vect_force_simple_reduction.
13471 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
13472 vect_is_simple_reduction, add modify argument, if true rewrite
13473 "a-b" into "a+(-b)".
13474 (vect_is_simple_reduction, vect_force_simple_reduction): New
13476 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
13478 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
13479 Vladimir Makarov <vmakarov@redhat.com>
13481 PR rtl-optimization/44012
13482 * ira-build.c (remove_unnecessary_allocnos): Nullify
13483 regno_allocno_map of the removed allocno.
13485 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13487 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
13489 * configure: Regenerate.
13491 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13493 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
13495 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
13496 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
13498 * configure: Regenerate.
13500 2010-05-10 Richard Guenther <rguenther@suse.de>
13502 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
13503 marked if the entry identifier is marked.
13505 2010-05-10 Richard Guenther <rguenther@suse.de>
13507 * c-common.c (struct c_common_attributes): Add fnspec attribute.
13508 (handle_fnspec_attribute): New function.
13509 * gimple.h (gimple_call_return_flags): Declare.
13510 (gimple_call_arg_flags): Likewise.
13511 * gimple.c (gimple_call_arg_flags): New function.
13512 (gimple_call_return_flags): Likewise.
13513 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
13514 New argument flags.
13515 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
13516 return value flags.
13517 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
13518 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
13520 (make_heapvar_for): ... this new function.
13521 (handle_rhs_call): Handle fnspec attribute argument specifiers.
13522 (handle_lhs_call): Likewise.
13523 (find_func_aliases): Adjust.
13525 2010-05-10 Richard Guenther <rguenther@suse.de>
13527 PR tree-optimization/44050
13528 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
13530 2010-05-10 Wei Guozhi <carrot@google.com>
13533 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
13535 2010-05-09 Joseph Myers <joseph@codesourcery.com>
13538 * c-typeck.c (lookup_field): Take a type directly. Update
13540 (build_component_ref): Update call to lookup_field.
13541 (set_init_label): Use lookup_field to find initialized field.
13542 Handle returned list of fields like a sequence of designators.
13544 2010-05-09 Richard Guenther <rguenther@suse.de>
13546 PR middle-end/44024
13547 * fold-const.c (tree_single_nonzero_warnv_p): Properly
13548 handle &FUNCTION_DECL.
13550 2010-05-09 Joseph Myers <joseph@codesourcery.com>
13553 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
13554 structures and unions recursively.
13555 (detect_field_duplicates): Move duplicate detection with a hash to
13556 detect_field_duplicates_hash. Always use a hash if anonymous
13557 structures or unions are present.
13558 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
13561 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
13564 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
13565 detect Atom, Core 2 and Core i7.
13567 2010-05-09 Richard Guenther <rguenther@suse.de>
13569 * gcc.c (store_arg): Handle temporary file deletion for
13572 2010-05-09 Richard Guenther <rguenther@suse.de>
13574 PR middle-end/44043
13575 * ipa-inline.c (estimate_function_body_sizes): Return after
13576 disregarding inline limits.
13578 2010-05-09 Richard Guenther <rguenther@suse.de>
13580 * gcc.c (store_arg): Revert last change.
13582 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
13584 PR middle-end/28685
13585 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
13586 (optimize_ops_list): Call it.
13588 2010-05-08 Richard Guenther <rguenther@suse.de>
13590 PR tree-optimization/44030
13591 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
13592 NECESSARY flag if we propagate from a inserted expression.
13594 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
13596 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
13597 domain types as equal if they are both PLACEHOLDER_EXPRs.
13599 2010-05-08 Richard Guenther <rguenther@suse.de>
13601 * lto-wrapper.c (run_gcc): Remove linker output from
13602 command line for LTRANS invocation.
13604 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
13606 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13607 lto-macho as lto_binary_reader.
13608 * target.h (struct gcc_target): New hooks lto_start and lto_end.
13609 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13610 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13611 in lto_start and lto_end calls.
13612 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
13614 (scan_prog_file): Update is_elf_or_coff call.
13615 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13617 * collect2.c (main): Fix enum comparison.
13619 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13621 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13622 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
13623 and TARGET_ASM_LTO_END.
13624 * darwin.c: Include obstack.h and lto-streamer.h.
13625 (lto_section_names_offset, lto_section_names_obstack,
13626 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13628 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13629 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
13630 to a temporary file.
13631 (darwin_asm_lto_end): New function. Restore asm_out_file.
13632 (darwin_asm_named_section): For LTO sections, replace the name with
13633 the offset of the section name in a string table, and build this
13635 (darwin_file_start): Initialize global vars for LTO support.
13636 (darwin_file_end): If output to asm_out_file was redirected, append it
13637 to the proper asm_out_file here. Add the section names section.
13639 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
13641 * c-pragma.c (pending_weak_d, pending_weak): New.
13642 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13643 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13644 handle_pragma_weak): Update the uses of pending_weaks.
13646 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13648 PR documentation/44016
13649 * doc/standards.texi (Standards): Link to unversioned
13650 cxx0x_status.html page.
13652 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
13655 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13656 in addition to TREE_USED, to avoid "set but unused" warnings.
13658 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13660 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13661 (is_loop_prefetching_profitable): Do not insert prefetches
13662 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13663 times the prefetch ahead distance.
13665 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13667 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13668 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13669 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13672 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
13674 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13675 a diagnostic info when the insn-to-mem ratio is too small.
13677 2010-05-07 Richard Guenther <rguenther@suse.de>
13679 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13681 (store_arg): Queue temp_filename for deletion instead of
13682 the whole argument.
13684 2010-05-07 Richard Guenther <rguenther@suse.de>
13686 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13687 (run_gcc): Handle LTRANS phase invocation.
13688 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13690 2010-05-07 Jakub Jelinek <jakub@redhat.com>
13692 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13693 this is also meaningful on PARM_DECLs and RESULT_DECLs.
13695 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13697 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13699 2010-05-07 Richard Guenther <rguenther@suse.de>
13701 PR tree-optimization/44020
13702 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13703 code when PRE is not yet initialized.
13705 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13707 * config/mips/dbxmdebug.h: Remove.
13708 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13710 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
13712 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13713 with null pointer and also warn about ordered comparison of zero with
13714 pointer if -Wextra.
13716 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13718 * graphite-blocking.c
13719 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13720 * graphite-clast-to-gimple.c
13721 (clast_to_gcc_expression): Same.
13722 (precision_for_value): Same.
13723 (precision_for_interval): Same.
13724 (gcc_type_for_interval): Same.
13725 (graphite_create_new_guard): Same.
13726 (compute_bounds_for_level): Same.
13727 (graphite_create_new_loop_guard): Same.
13728 * graphite-interchange.c
13729 (build_linearized_memory_access): Same.
13730 (pdr_stride_in_loop): Same.
13731 (memory_strides_in_loop_1): Same.
13732 (memory_strides_in_loop): Same.
13733 (extend_scattering): Same.
13734 (psct_scattering_dim_for_loop_depth): Same.
13735 (pbb_number_of_iterations): Same.
13737 (debug_iteration_domains): Same.
13739 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13740 (ppl_set_inhomogeneous_gmp): Same.
13741 (ppl_strip_loop): Same.
13742 (ppl_lexico_compare_linear_expressions): Same.
13743 (ppl_read_polyhedron_matrix): Same.
13744 (ppl_max_for_le_pointset): Same.
13746 (ppl_read_polyhedron_matrix): Same.
13747 (tree_int_to_gmp): Same.
13748 (gmp_cst_to_tree): Same.
13749 (ppl_set_inhomogeneous): Same.
13750 (ppl_set_inhomogeneous_tree): Same.
13751 (ppl_set_coef): Same.
13752 (ppl_set_coef_tree): Same.
13753 * graphite-sese-to-poly.c
13754 (build_pbb_scattering_polyhedrons): Same.
13755 (build_scop_scattering): Same.
13756 (scan_tree_for_params_right_scev): Same.
13757 (scan_tree_for_params): Same.
13758 (find_params_in_bb): Same.
13759 (find_scop_parameters): Same.
13760 (add_upper_bounds_from_estimated_nit): Same.
13761 (build_loop_iteration_domains): Same.
13762 (add_condition_to_domain): Same.
13763 (pdr_add_memory_accesses): Same.
13765 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
13767 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
13768 CLooG's value_* macros to their respective mpz_* counterparts.
13769 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
13770 (graphite_create_new_loop_guard): Same.
13771 * graphite-interchange.c (build_linearized_memory_access): Same.
13772 (pdr_stride_in_loop): Same.
13773 (memory_strides_in_loop_1): Same.
13774 (1st_interchange_profitable_p): Same.
13775 * graphite-poly.c (extend_scattering): Same.
13776 (psct_scattering_dim_for_loop_depth): Same.
13777 (pbb_number_of_iterations): Same.
13778 (pbb_number_of_iterations_at_time): Same.
13779 * graphite-poly.h (new_1st_loop): Same.
13780 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
13781 (oppose_constraint): Same.
13782 (insert_constraint_into_matrix): Same.
13783 (ppl_set_inhomogeneous_gmp): Same.
13784 (ppl_set_coef_gmp): Same.
13785 (ppl_strip_loop): Same.
13786 (ppl_lexico_compare_linear_expressions): Same.
13787 (ppl_max_for_le_pointset): Same.
13788 (ppl_min_for_le_pointset): Same.
13789 (ppl_build_realtion): Same.
13790 * graphite-ppl.h (gmp_cst_to_tree): Same.
13791 (ppl_set_inhomogeneous): Same.
13792 (ppl_set_inhomogeneous_tree): Same.
13793 (ppl_set_coef): Same.
13794 (ppl_set_coef_tree): Same.
13795 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13796 (build_scop_scattering): Same.
13797 (add_value_to_dim): Same.
13798 (scan_tree_for_params_right_scev): Same.
13799 (scan_tree_for_params_int): Same.
13800 (scan_tree_for_params): Same.
13801 (find_params_in_bb): Same.
13802 (find_scop_parameters): Same.
13803 (add_upper_bounds_from_estimated_nit): Same.
13804 (build_loop_iteration_domains): Same.
13805 (create_linear_expr_from_tree): Same.
13806 (add_condition_to_domain): Same.
13807 (pdr_add_memory_accesses): Same.
13809 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
13810 Jason Merrill <jason@redhat.com>
13812 * c-common.c (c_common_reswords): Add nullptr.
13813 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
13814 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
13815 (gen_type_die_with_usage): Likewise.
13816 * dbxout.c (dbxout_type): Likewise.
13817 * sdbout.c (plain_type_1): Likewise.
13819 2010-05-06 Jason Merrill <jason@redhat.com>
13821 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
13822 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
13824 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
13826 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
13827 stripping WITH_SIZE_EXPR.
13828 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
13831 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13833 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
13834 list of obsolete configurations.
13835 Disabled check for obsolete configurations.
13836 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
13837 Removed support for previous versions.
13838 * config/mips/iris.h: Removed.
13839 * config/mips/iris5.h: Removed.
13840 * config/mips/iris6.h: Merged old iris.h contents.
13841 (TARGET_IRIX): Removed.
13842 (DRIVER_SELF_SPECS): Removed mabi=32.
13843 (IDENT_ASM_OP): Removed undef.
13844 (STARTFILE_SPEC): Removed mabi=32.
13845 (ENDFILE_SPEC): Likewise.
13846 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
13847 (MACHINE_TYPE): Update for IRIX 6.5.
13848 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
13849 TARGET_IRIX by TARGET_IRIX6.
13850 (mips_file_start): Likewise.
13851 (mips_output_external): Remove IRIX 5/6 O32 support.
13852 (mips_output_function_prologue): Likewise.
13853 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
13855 (TARGET_CPU_CPP_BUILTINS): Likewise.
13856 (TARGET_IRIX): Removed.
13857 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
13858 (MULTILIB_DIRNAMES): Removed 32.
13859 (MULTILIB_OSDIRNAMES): Removed ../lib.
13860 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
13861 (Specific, mips-sgi-irix5): Document removal.
13862 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
13863 Remove references to older IRIX 6 releases and the O32 ABI.
13865 2010-05-06 Jakub Jelinek <jakub@redhat.com>
13868 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
13869 instead of DF_REF_REAL_REG.
13871 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
13874 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
13875 handling to still return true for x64 targets.
13877 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
13879 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
13881 2010-05-06 Jan Hubicka <jh@suse.cz>
13883 PR tree-optimization/43791
13884 * ipa-inline.c (update_caller_keys): Remove bogus
13885 disregard_inline_limits check.
13887 2010-05-06 Michael Matz <matz@suse.de>
13889 PR tree-optimization/43984
13890 * tree-ssa-pre.c (inserted_phi_names): Remove.
13891 (inserted_exprs): Change to bitmap.
13892 (create_expression_by_pieces): Set bits, don't append to vector.
13893 (insert_into_preds_of_block): Don't handle inserted_phi_names.
13894 (eliminate): Don't look at inserted_phi_names, remove deleted
13895 insns from inserted_exprs.
13896 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
13897 (init_pre, fini_pre): Allocate and free bitmaps.
13898 (execute_pre): Insert insns on edges before elimination.
13900 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
13902 * tree.c (initializer_zerop): Handle STRING_CST.
13904 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
13907 * doc/invoke.texi (Wimplicit): Document as C only.
13908 * opts.c (common_handle_option): Add argument kind.
13909 (handle_option): Rename as read_cmdline_option. Factor out code to...
13910 (handle_option): ... here. New.
13911 (handle_options): Rename as read_cmdline_options.
13912 (decode_options): Update call.
13913 (set_option): Use option index instead of option pointer. Classify
13914 diagnostics correctly.
13915 (enable_warning_as_error): Call handle_option.
13916 * opts.h (set_option): Update declaration.
13917 (handle_option): Declare.
13918 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
13919 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
13920 * c-opts.c (set_Wimplicit): Delete.
13921 (c_family_lang_mask): New static constant.
13922 (c_common_handle_option): Add argument kind. Use handle_option
13923 instead of set_Wimplicit.
13924 (c_common_post_options): warn_implicit and warn_implicit_int
13925 are disabled by default.
13926 * c-common.c (warn_implicit): Do not define here.
13927 * c-common.h (warn_implicit): Do not declare here.
13928 (c_common_handle_option): Update declaration.
13929 * lto-opts.c (lto_reissue_options): Update call to set_option.
13931 2010-05-06 Richard Guenther <rguenther@suse.de>
13933 PR tree-optimization/43571
13934 * domwalk.c (walk_dominator_tree): Walk the dominator
13935 sons in more optimal order.
13937 2010-05-06 Richard Guenther <rguenther@suse.de>
13939 PR tree-optimization/43934
13940 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
13941 (stmt_cost): Likewise.
13942 (extract_true_false_args_from_phi): New helper.
13943 (determine_max_movement): For PHI nodes verify we can hoist them
13944 and compute their cost.
13945 (determine_invariantness_stmt): Handle PHI nodes.
13946 (move_computations_stmt): Likewise. Hoist PHI nodes in
13947 if-converted form using COND_EXPRs.
13948 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
13949 (tree_ssa_lim): Likewise.
13950 * tree-flow.h (tree_ssa_lim): Adjust prototype.
13951 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
13953 2010-05-06 Richard Guenther <rguenther@suse.de>
13955 PR tree-optimization/43987
13956 * tree-ssa-structalias.c (could_have_pointers): For possibly
13957 address-taken variables force pointers to be recorded.
13958 (create_variable_info_for_1): Likewise.
13959 (push_fields_onto_fieldstack): Pass in wheter all fields
13960 must have pointers.
13961 (find_func_aliases): Query types instead of vars whether
13962 they contain pointers where appropriate.
13964 2010-05-06 Jan Hubicka <jh@suse.cz>
13966 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
13967 (record_reference, mark_address, mark_load, mark_store): Record
13969 (record_references_in_initializer): Update call of record_references.
13970 (rebuild_cgraph_edges): Remove all references before rebuiding.
13971 * cgraph.c (cgraph_create_node): Clear ref list.
13972 (cgraph_remove_node): Remove references.
13973 (dump_cgraph_node): Dump references.
13974 (cgraph_clone_node): Clone references.
13975 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
13976 (struct cgraph_node, varpool_node): Add ref_lst.
13977 * ipa-ref.c: New file.
13978 * ipa-ref.h: New file.
13979 * ipa-ref-inline.h: New file.
13980 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
13981 (referenced_from_other_partition_p): New function.
13982 (lto_output_varpool_node): Take set arugment; call
13983 referenced_from_other_partition.
13984 (lto_output_ref): New.
13985 (add_references): New.
13986 (output_refs): New.
13987 (output_cgraph): Compute boundary based on references; output refs.
13988 (output_varpool): Accept cgraph_node_set argument.
13991 (input_cgraph): Call input_refs.
13992 * lto-section-in.c (lto_section_name): Add refs.
13993 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
13994 (ipa-ref.o): New file.
13995 * varpool.c (varpool_node): Clear ipa ref list.
13996 (varpool_remove_node): Remove references.
13997 (dump_varpool_node): Dump references.
13998 (varpool_assemble_decl): Only compile finalized ones.
13999 (varpool_extra_name_alias): Initialize ref list.
14000 * lto-streamer.c (lto-get_section_name): Add .refs section.
14001 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
14002 (referenced_from_other_partition_p): Declared.
14004 2010-05-06 Ira Rosen <irar@il.ibm.com>
14006 PR tree-optimization/43901
14007 * tree-vect-stmts.c (vectorizable_call): Assert that vector
14008 type is not NULL if it's transformation phase, and return
14009 FALSE if it's analysis.
14010 (vectorizable_conversion, vectorizable_operation,
14011 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
14013 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
14015 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14017 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14019 * config/mips/mips-protos.h
14020 (mips_small_register_classes_for_mode_p): Delete prototype.
14022 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
14024 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
14025 * config/arm/arm.c (multiple_operation_profitable_p,
14026 compute_offset_order): New static functions.
14027 (load_multiple_sequence, store_multiple_sequence): Use them.
14028 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
14029 memory offsets, not register numbers.
14030 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
14032 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
14034 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
14035 (get_pending_sizes, put_pending_size, put_pending_sizes):
14036 Update the uses of pending_sizes.
14037 * c-decl.c (store_parm_decls): Likewise.
14038 * c-tree.h (struct c_arg_info): Likewise.
14039 * tree.h: Update the prototype for get_pending_sizes and
14042 2010-05-05 Jason Merrill <jason@redhat.com>
14045 * c-common.c (handle_aligned_attribute): Respect
14046 ATTR_FLAG_TYPE_IN_PLACE.
14049 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
14050 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14051 (TARGET_INITIALIZER): Use it.
14052 * c-common.c (attribute_takes_identifier_p): Call it.
14053 * c-common.h: Update prototype.
14054 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
14055 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14057 2010-05-05 Jakub Jelinek <jakub@redhat.com>
14060 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
14061 DW_ID_down_case for Fortran compilation units.
14063 2010-05-05 Jan Hubicka <jh@suse.cz>
14065 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
14068 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
14070 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
14071 a variable-sized RESULT_DECL.
14073 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
14075 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
14077 2010-05-05 Jason Merrill <jason@redhat.com>
14080 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
14082 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
14084 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
14085 Jakub Jelinek <jakub@redhat.com>
14088 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
14089 (dead_debug_init, dead_debug_finish): New functions.
14090 (dead_debug_add, dead_debug_insert_before): Likewise.
14091 (df_note_bb_compute): Initialize a dead_debug object, add dead
14092 debug uses to it, insert debug bind insns before death insns,
14093 reset debug insns that refer to pending uses at the end.
14094 * rtl.h (make_debug_expr_from_rtl): New prototype.
14095 * varasm.c (make_debug_expr_from_rtl): New function.
14097 2010-05-05 Jan Hubicka <jh@suse.cz>
14099 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
14100 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14101 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14102 lto_varpool_encoder_deref, lto_varpool_encoder_size,
14103 lto_varpool_encoder_encode_initializer_p,
14104 lto_set_varpool_encoder_encode_initializer): New functions.
14105 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
14106 call output_varpool.
14107 (input_varpool_node): Do not always set analyzed.
14108 (input_cgraph_1): Return vector of cgraph nodes.
14109 (input_varpool_1): Return vector of varpools.
14110 (input_cgraph): Free the vectors.
14111 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14112 output only initializers needed.
14113 (lto_output): Only call output_cgraph.
14114 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
14115 * lto-section-out.c (lto_new_out_decl_state): Initialize
14116 state->varpool_node_encoder.
14117 * lto-streamer.h (lto_varpool_encoder_d): New.
14118 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
14119 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
14120 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
14121 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14122 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
14124 (output_varpool, input_varpool): Remove declarations.
14126 2010-05-05 Jan Hubicka <jh@suse.cz>
14128 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
14129 with body can prevail.
14131 2010-05-05 Jan Hubicka <jh@suse.cz>
14133 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
14136 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14138 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
14140 * gengtype.h (erro_at_line): Constify pos argument.
14142 * gengtype.c: Include hashtab.h.
14143 (enum gc_used): Document GC_MAYBE_POINTED_TO.
14144 (error_at_line): Constify pos argument.
14145 (do_typedef): Initialize p->opt field.
14146 (get_file_gtfilename): Fix comment typo.
14147 (struct walk_type_data): Constify line field.
14148 (get_output_file_for_structure): New function.
14149 (write_local_func_for_structure): Constify orig_s argument.
14150 Use get_output_file_for_structure.
14151 (write_func_for_structure): Use get_output_file_for_structure.
14152 (INDENT): New define.
14153 (dump_pair, dump_type, dump_type_list, dump_typekind)
14154 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
14155 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
14157 (seen_types): New variable.
14158 (main): New variable do_dump. Process "-d" command line option.
14159 Call dump_everything if dump requested.
14161 2010-05-05 Jakub Jelinek <jakub@redhat.com>
14163 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
14164 in a temporary instead of invoking the macro multiple times.
14165 (track_expr_p): Likewise.
14167 2010-05-04 Neil Vachharajani <nvachhar@google.com>
14169 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
14171 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
14172 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
14173 conditions for printing notes.
14174 * common.opt (-Wcoverage-mismatch): Allow negative, default to
14175 true, update documentation.
14176 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
14178 2010-05-04 Jakub Jelinek <jakub@redhat.com>
14181 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
14184 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
14187 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
14188 (*sse_prologue_save_insn1): Likewise.
14189 (SSE prologue save splitter): Likewise.
14191 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
14193 * tree.c (free_lang_data_in_one_sizepos): New inline function.
14194 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
14195 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
14196 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
14197 all decls. Call it on DECL_FIELD_OFFSET of fields.
14198 (find_decls_types_r): Follow DECL_VALUE_EXPR.
14199 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
14201 2010-05-04 Martin Jambor <mjambor@suse.cz>
14203 * tree-sra.c (build_access_from_expr_1): The first parameter type
14204 changed to simple tree.
14205 (build_access_from_expr): Likewise, gsi parameter was eliminated.
14206 (scan_assign_result): Renamed to assignment_mod_result, enum elements
14208 (build_accesses_from_assign): Removed all parameters except for a
14209 simple gimple statement. Now returns a simple bool.
14210 (scan_function): All non-analysis parts moved to separate functions
14211 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
14212 parameters and updated both callers.
14213 (sra_modify_expr): Removed parameter data.
14214 (sra_modify_function_body): New function.
14215 (perform_intra_sra): Call sra_modify_function_body to modify the
14217 (replace_removed_params_ssa_names): Parameter data changed into
14218 adjustments vector.
14219 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
14220 changed the parameter dont_convert to convert with the opposite
14222 (sra_ipa_modify_assign): Parameter data changed into adjustments
14223 vector, return value changed to bool.
14224 (ipa_sra_modify_function_body): New function.
14225 (sra_ipa_reset_debug_stmts): Updated a comment.
14226 (modify_function): Use ipa_sra_modify_function_body to modify function
14229 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
14231 PR middle-end/43671
14232 * alias.c (true_dependence): Handle the same VALUE in x and mem.
14233 (canon_true_dependence): Likewise.
14234 (write_dependence_p): Likewise.
14236 2010-05-04 Jan Hubicka <jh@suse.cz>
14238 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
14239 * cgraphbuild.c: Include ipa-utils.h
14240 (record_reference_ctx): New struct.
14241 (record_reference): Simplify to work on initializers; not statements.
14242 (mark_address, mark_load, mark_store): New.
14243 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14244 walk PHI nodes too.
14245 (record_references_in_initializer): Update use of record_reference.
14246 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14247 walk PHI nodes too.
14249 2010-05-04 Jan Hubicka <jh@suse.cz>
14251 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
14252 node will be removed anyway.
14253 (lto_varpool_replace_node): Allow also unanalyzed nodes;
14254 relink aliases of node into prevailing node.
14255 * varpool.c (varpool_remove_node): Remove aliases properly;
14256 when removing node, remove all its aliases too; remove DECL_INITIAL
14257 of removed node; ggc_free the varpool node.
14259 2010-05-04 Richard Guenther <rguenther@suse.de>
14261 PR tree-optimization/43879
14262 * tree-ssa-structalias.c (alias_get_name): Use
14263 DECL_ASSEMBLER_NAME if available.
14264 (create_function_info_for): Return the varinfo node.
14265 (ipa_pta_execute): Associate same-body aliases and extra names
14266 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
14268 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14270 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
14272 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
14275 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
14276 only if HONOR_REG_ALLOC_ORDER is not defined.
14278 2010-05-04 Richard Guenther <rguenther@suse.de>
14280 PR tree-optimization/43949
14281 * tree-vrp.c (extract_range_from_binary_expr): Only handle
14284 2010-04-26 Jason Merrill <jason@redhat.com>
14286 * c.opt (-fstrict-enums): New.
14287 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
14289 2010-05-03 David Ung <davidu@mips.com>
14290 James E. Wilson <wilson@codesourcery.com>
14292 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
14293 emit the trap instruction before the divide for TUNE_74K.
14295 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
14297 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
14298 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
14299 based on the above, for new target hook.
14301 * hooks.c (hook_bool_mode_true): New generic hook.
14302 * hooks.h (hook_bool_mode_true): Add prototype.
14304 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
14306 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
14307 target hook, set to hook_bool_mode_false.
14308 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
14309 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
14310 with targetm.small_register_classes_for_mode_p.
14311 (find_reusable_reload): Likewise.
14312 (combine_reloads): Likewise.
14313 * reload1.c (reload_as_needed): Likewise.
14314 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
14315 * ifcvt.c (noce_process_if_block, check_cond_move_block,
14316 dead_or_predicable): Likewise.
14317 * regmove.c (optimize_reg_copy_1): Likewise.
14318 * calls.c (prepare_call_address): Likewise.
14319 (precompute_register_parameters): Likewise.
14321 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
14323 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
14324 implementation of the hook that considers all register classes
14325 small except for SH64.
14326 (sh_override_options): Use the new hook.
14327 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
14330 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
14332 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
14333 implementation of the hook that considers all register classes
14335 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
14338 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
14340 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
14341 implementation of the hook that considers all register classes
14343 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
14346 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
14348 * config/m32c/m32c.h: Likewise.
14349 * config/pdp11/pdp11.h: Likewise.
14350 * config/avr/avr.h: Likewise.
14351 * config/xtensa/xtensa.h: Likewise.
14352 * config/m68hc11/m68hc11.h: Likewise.
14353 * config/mn10300/mn10300.h: Likewise.
14354 * config/mcore/mcore.h: Likewise.
14355 * config/h8300/h8300.h: Likewise.
14356 * config/bfin/bfin.h: Likewise.
14358 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
14359 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
14361 2010-05-03 Anatoly Sokolov <aesok@post.ru>
14363 * double-int.h (tree_to_double_int): Remove macro.
14364 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
14365 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14366 (tree_to_double_int): New function.
14367 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
14369 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14371 2010-05-03 Richard Guenther <rguenther@suse.de>
14373 PR tree-optimization/43971
14374 * tree-ssa-structalias.c (get_constraint_for_1): Fix
14375 constraints in the !flag_delete_null_pointer_checks case.
14377 2010-05-03 Jakub Jelinek <jakub@redhat.com>
14380 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
14381 result mode matches original rtl mode.
14383 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
14386 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
14388 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14390 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
14391 when processing flag options.
14393 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14395 * gcov-iov.c (main): Change format string placeholder
14396 from %#08x to 0x%08x.
14397 * genchecksum.c (dosum): Change format string placeholder
14398 from %#02x to 0x%02x.
14400 2010-05-02 Richard Guenther <rguenther@suse.de>
14402 PR tree-optimization/43879
14403 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
14405 2010-05-02 Bruno Haible <bruno@clisp.org>
14407 * doc/extend.texi (Function Attributes): Fix a typo.
14409 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14412 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
14413 placeholder from 0x%x to %#x.
14414 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14415 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14416 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14417 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14418 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14419 * config/i386/i386.c (ix86_target_string): Ditto.
14420 * config/i386/i386.c (output_pic_addr_const): Ditto.
14421 (print_operand): Ditto.
14423 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
14425 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
14426 placeholder from 0x%x to %#x.
14427 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
14428 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
14429 (ASM_OUTPUT_DEBUG_DATA): Ditto.
14430 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
14431 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
14432 * optc-gen.awk: Ditto.
14433 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
14434 (HOST_WIDE_INT_PRINT_HEX): Ditto.
14435 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
14436 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14438 2010-05-01 Anatoly Sokolov <aesok@post.ru>
14440 * target.h (struct calls): Add function_value_regno_p field.
14441 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
14442 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
14443 * targhooks.c (default_function_value_regno_p): New function.
14444 * targhooks.h (default_function_value_regno_p): Declare function.
14445 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
14446 * builtins.c. (apply_result_size): (Ditto.).
14447 * combine.c. (likely_spilled_retval_p): (Ditto.).
14448 * mode-switching.c. Include 'target.h'.
14449 (create_pre_exit): Use function_value_regno_p hook.
14450 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
14451 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
14452 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
14454 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
14455 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
14456 (ix86_function_value_regno_p): Declare as static, change argument
14457 type to const unsigned int.
14458 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
14460 2010-05-01 Richard Guenther <rguenther@suse.de>
14462 PR tree-optimization/43949
14463 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
14465 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
14467 2010-05-01 Anatoly Sokolov <aesok@post.ru>
14469 * rtl.h (CONST_DOUBLE_P): Define.
14470 (rtx_to_double_int): Declare.
14471 * emit-rtl.c (rtx_to_double_int): New function.
14472 * dwarf2out.c (insert_double): New function.
14473 (loc_descriptor, add_const_value_attribute): Clean up, use
14474 rtx_to_double_int and insert_double functions.
14476 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
14478 * doc/extend.texi (Inline): Add missing return keyword to examples.
14479 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
14482 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
14484 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
14485 the variable part of the offset as well. Use highest_pow2_factor for
14486 all alignment checks.
14488 2010-04-30 Richard Guenther <rguenther@suse.de>
14490 PR tree-optimization/43879
14491 * tree-ssa-structalias.c (type_could_have_pointers): Functions
14494 2010-04-30 Jan Hubicka <jh@suse.cz>
14496 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
14498 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
14500 2010-04-30 Jan Hubicka <jh@suse.cz>
14502 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
14504 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
14505 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
14506 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
14507 cgraph_node_set_needs_ltrans_p): Remove.
14509 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
14511 * sdbout.c: Include vec.h, do not include varray.h.
14512 (deferred_global_decls, sdbout_global_decl,
14513 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
14514 * toplev.c: Do not include varray.h.
14515 (dump_memory_report): Do not dump VARRAY statistics.
14516 * gengtype.c (open_base_file): Ignore varray.h.
14517 * Makefile.in: Update for abovementioned changes.
14518 Remove all traces of varray.c and varray.h.
14519 * varray.c: Remove file.
14520 * varray.h: Remove file.
14522 2010-04-30 Jan Hubicka <jh@suse.cz>
14524 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
14527 2010-04-30 Jan Hubicka <jh@suse.cz>
14529 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
14532 2010-04-30 Richard Guenther <rguenther@suse.de>
14534 * tree-ssa-structalias.c (get_constraint_for_1): Generate
14535 constraints for CONSTRUCTOR.
14537 2010-04-30 Richard Guenther <rguenther@suse.de>
14540 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
14541 first after all lowering passes.
14543 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
14545 * toplev.c: Include varray.h for statistics dumping.
14546 * tree.h: Do not declare varray_head_tag.
14547 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
14548 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
14549 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
14550 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
14551 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
14552 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
14553 c-common.c, c-common.h, reg-stack.c, basic-block.h,
14554 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
14556 * Makefile.in: Update for abovementioned changes.
14558 2010-04-30 Jakub Jelinek <jakub@redhat.com>
14561 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
14563 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
14565 * config/picochip/picochip.c (picochip_legitimize_address): Define.
14566 Use this function to do machine-specific conversion.
14567 (picochip_legitimize_reload_address): Likewise.
14568 (picochip_legitimate_address_p): Check valid base register only if
14570 (picochip_check_conditional_copy): Check for modw only if opnd is
14572 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
14573 to call the function in c.
14574 * config/picochip/picochip-protos.h
14575 (picochip_legitimize_reload_address): Define.
14576 * config/picochip/picochip.md (supported_compare1): Define.
14578 2010-04-30 Jan Hubicka <jh@suse.cz>
14580 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
14581 (cgraph_global_info): Remove inlined.
14582 (LTO_cgraph_tag_names): Remove.
14583 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
14584 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
14585 simplify cgraph tags and document.
14586 (lto_output_node): Use only LTO_cgraph_unavail_node and
14587 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
14588 for_functions_valid, global info, process and output flags.
14589 (input_overwrite_node): Initialize estimated stack size and
14590 estimated growth. Do not read flags we no longer store.
14591 (input_node): Likewise do not read info no longer stored.
14592 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
14595 2010-04-30 Richard Guenther <rguenther@suse.de>
14597 PR tree-optimization/43879
14598 * tree-ssa-structalias.c (get_constraint_for_1): Properly
14599 handle non-zero initializers.
14601 2010-04-30 Richard Guenther <rguenther@suse.de>
14603 * builtins.c (fold_builtin_1): Delete free (0).
14605 2010-04-29 Jan Hubicka <jh@suse.cz>
14607 * gengtype.c (open_base_files): Add lto-streamer.h
14608 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14609 (pass_ipa_cp): GGC collect.
14610 * toplev. (compile_file): Do not output symbols.
14611 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14612 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14613 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14614 * lto-section-in.c: Include ggc.h
14615 (lto_new_in_decl_state): Alloc in GGC.
14616 (lto_delete_in_decl_state): Likewise.
14617 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14620 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
14623 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14624 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
14625 (HONOR_REG_ALLOC_ORDER): Describe new macro.
14626 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14627 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14628 account only if HONOR_REG_ALLOC_ORDER is not defined.
14629 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14630 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14632 2010-04-29 Jon Grant <04@jguk.org>
14634 * collect2.c (vflag): Change type from int to bool.
14636 (helpflag): New global bool.
14637 (main): Set vflag and debug with boolean, not integer truth values.
14638 Accept new "--help" option and output usage text if found.
14639 * collect2.h (vflag): Update prototype.
14642 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
14645 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14647 2010-04-29 Richard Guenther <rguenther@suse.de>
14650 * plugin.h (invoke_plugin_callbacks): Annotate arguments
14651 with ATTRIBUTE_UNUSED.
14653 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
14656 * config/i386/i386.c (get_some_local_dynamic_name): Replace
14657 INSN_P with NONDEBUG_INSN_P.
14658 (distance_non_agu_define): Likewise.
14659 (distance_agu_use): Likewise.
14661 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
14663 From Dominique d'Humieres <dominiq@lps.ens.fr>
14665 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14668 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
14670 * plugin.h (invoke_plugin_callbacks): New inline function.
14671 * plugin.c (flag_plugin_added): New global flag.
14672 (add_new_plugin): Initialize above flag.
14673 (invoke_plugin_callbacks): Rename to ...
14674 (invoke_plugin_callbacks_full): ... this.
14676 2010-04-28 Jan Hubicka <jh@suse.cz>
14678 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14679 (lto_varpool_replace_node): New.
14680 (lto_symtab_resolve_symbols): Resolve varpool nodes.
14681 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14682 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14683 * cgraph.h (varpool_node_ptr): New type.
14684 (varpool_node_ptr): New vector.
14685 (varpool_node_set_def): New structure.
14686 (varpool_node_set): New type.
14687 (varpool_node_set): New vector.
14688 (varpool_node_set_element_def): New structure.
14689 (varpool_node_set_element, const_varpool_node_set_element): New types.
14690 (varpool_node_set_iterator): New type.
14691 (varpool_node): Add prev pointers, add used_from_other_partition,
14692 in_other_partition.
14693 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14694 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14695 varpool_get_node, varpool_remove_node): Declare.
14696 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14697 varpool_node_set_size): New inlines.
14698 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14699 * tree-pass.h (varpool_node_set_def): Forward declare.
14700 (ipa_opt_pass_d): Summary writting takes vnode sets too.
14701 (ipa_write_optimization_summaries): Update prototype.
14702 * ipa-cp.c (ipcp_write_summary): Update.
14703 * ipa-reference.c (ipa_reference_write_summary): Update.
14704 * lto-cgraph.c (lto_output_varpool_node): New static function.
14705 (output_varpool): New function.
14706 (input_varpool_node): New static function.
14707 (input_varpool_1): New function.
14708 (input_cgraph): Input varpool.
14709 * ipa-pure-const.c (pure_const_write_summary): Update.
14710 * lto-streamer-out.c (lto_output): Update, output varpool too.
14711 (write_global_stream): Kill WPA hack.
14712 (produce_asm_for_decls): Update.
14713 (output_alias_pair_p): Handle variables.
14714 (output_unreferenced_globals): Output only needed partition of varpool.
14715 * ipa-inline.c (inline_write_summary): Update.
14716 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14718 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14719 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14720 varpool_node_set_new, varpool_node_set_add,
14721 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14722 debug_varpool_node_set): New functions.
14723 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14724 (execute_one_pass): Process new decls too.
14725 (ipa_write_summaries_2): Pass around vsets.
14726 (ipa_write_summaries_1): Likewise.
14727 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14729 (ipa_write_optimization_summaries_1): Pass around vsets.
14730 (ipa_write_optimization_summaries): Likewise.
14731 * varpool.c (varpool_get_node): New.
14732 (varpool_node): Update doubly linked lists.
14733 (varpool_remove_node): New.
14734 (dump_varpool_node): More dumping.
14735 (varpool_enqueue_needed_node): Update doubly linked lists.
14736 (decide_is_variable_needed): Kill ltrans hack.
14737 (varpool_finalize_decl): Kill lto hack.
14738 (varpool_assemble_decl): Skip decls in other partitions.
14739 (varpool_assemble_pending_decls): Update doubly linkes lists.
14740 (varpool_empty_needed_queue): Likewise.
14741 (varpool_extra_name_alias): Likewise.
14742 * lto-streamer.c (lto_get_section_name): Add vars section.
14743 * lto-streamer.h (lto_section_type): Update.
14744 (output_varpool, input_varpool): Declare.
14746 2010-04-28 Mike Stump <mikestump@comcast.net>
14748 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
14750 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
14752 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
14753 record or union type with RECORD_OR_UNION_TYPE_P predicate.
14754 (lto_input_ts_type_tree_pointers): Likewise.
14755 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
14756 (lto_output_ts_type_tree_pointers): Likewise.
14758 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
14760 Uniquization of constants at the Tree level
14761 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
14762 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
14764 (tree_output_constant_def): Declare.
14765 * gimplify.c (gimplify_init_constructor): When using block copy, first
14766 uniquize the constant constructor on the RHS.
14767 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
14768 DECL_IN_CONSTANT_POOL flag.
14769 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
14770 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14772 (assemble_variable): Deal with symbols belonging to the tree constant
14774 (get_constant_section): Add ALIGN parameter and simplify.
14775 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
14776 (assemble_constant_contents): Use the expression of the VAR_DECL.
14777 (output_constant_def_contents): Use the alignment of the VAR_DECL.
14778 (tree_output_constant_def): New global function.
14779 (mark_constant): Use the expression of the VAR_DECL.
14780 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
14782 (output_object_block): Likewise and assemble the expression.
14784 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
14786 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
14787 hash_tree, eq_tree): New tree hash table.
14788 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
14789 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
14790 lto_orig_address_remove): Reimplement.
14792 2010-04-28 Xinliang David Li <davidxl@google.com>
14795 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
14796 (compute_uninit_opnds_pos): New function.
14797 (is_non_loop_exit_postdominating): New function.
14798 (compute_control_dep_chain): New function.
14799 (find_pdom): New function.
14800 (convert_control_dep_chain_into_preds): New function.
14801 (find_predicates): New function.
14802 (find_control_equiv_block): New function.
14803 (collect_phi_def_edges): New function.
14804 (find_def_preds): New function.
14805 (find_dom): New function.
14806 (dump_predicates): New function.
14807 (get_cmp_code): New function.
14808 (is_value_included_in): New function.
14809 (find_matching_predicate_in_rest_chains): New function.
14810 (use_pred_not_overlap_with_undef_path_pred): New function.
14811 (is_use_properly_guarded): New function.
14812 (normalize_cond_1): New function.
14813 (is_and_or_or): New function.
14814 (normalize_cond): New function.
14815 (is_gcond_subset_of): New function.
14816 (is_subset_of_any): New function.
14817 (is_or_set_subset_of): New function.
14818 (is_and_set_subset_of): New function.
14819 (is_norm_cond_subset_of): New function.
14820 (is_pred_expr_subset_of): New function.
14821 (is_pred_chain_subset_of): New function.
14822 (is_included_in): New function.
14823 (is_superset_of): New function.
14824 (find_uninit_use): New function.
14825 (warn_uninitialized_phi): New function.
14826 (compute_possibly_undefined_names): New function.
14827 (ssa_undefined_value_p): New function.
14828 (execute_late_warn_uninitialized): New function.
14829 * tree-ssa.c (ssa_undefined_value_p): Removed.
14830 (warn_uninit): Changed to extern.
14831 (warn_uninitialized_phi): Removed.
14832 (warn_uninitialized_vars): Changed to extern.
14833 (execute_late_warn_uninitialized): Removed
14834 * tree-flow.h: Add new prototypes.
14835 * timevar.def: Add new time variable.
14836 * Makefile.in: Add new build file.
14838 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
14840 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
14843 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14846 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
14848 2010-04-28 Martin Jambor <mjambor@suse.cz>
14850 * cgraph.h (struct cgraph_node): New field indirect_calls.
14851 (struct cgraph_indirect_call_info): New type.
14852 (struct cgraph_edge): Removed field indirect_call. New fields
14853 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
14854 (cgraph_create_indirect_edge): Declare.
14855 (cgraph_make_edge_direct): Likewise.
14856 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
14857 * ipa-prop.h (struct ipa_param_call_note): Removed.
14858 (struct ipa_node_params): Removed field param_calls.
14859 (ipa_create_all_structures_for_iinln): Declare.
14860 * cgraph.c: Described indirect edges and uids in initial comment.
14861 (cgraph_add_edge_to_call_site_hash): New function.
14862 (cgraph_edge): Search also among the indirect edges, use
14863 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
14864 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
14865 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
14867 (initialize_inline_failed): Assign a reason to indirect edges.
14868 (cgraph_create_edge_1): New function.
14869 (cgraph_create_edge): Moved some functionality to
14870 cgraph_create_edge_1.
14871 (cgraph_create_indirect_edge): New function.
14872 (cgraph_edge_remove_callee): Add an assert checking for
14874 (cgraph_edge_remove_caller): Special-case indirect edges.
14875 (cgraph_remove_edge): Likewise.
14876 (cgraph_set_edge_callee): New function.
14877 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
14878 (cgraph_make_edge_direct): New function.
14879 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
14880 the declaration of the call statement matches.
14881 (cgraph_node_remove_callees): Special-case indirect edges.
14882 (cgraph_clone_edge): Likewise.
14883 (cgraph_clone_node): Clone also the indirect edges.
14884 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
14885 indirect_call, dump count of indirect_calls edges.
14886 * ipa-prop.c (iinlining_processed_edges): New variable.
14887 (ipa_note_param_call): Create indirect edges instead of
14888 creating notes. New parameter node.
14889 (ipa_analyze_call_uses): New parameter node, pass it on to
14890 ipa_note_param_call.
14891 (ipa_analyze_stmt_uses): Likewise.
14892 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
14893 (print_edge_addition_message): Work on edges rather than on notes.
14894 (update_call_notes_after_inlining): Likewise, renamed to
14895 update_indirect_edges_after_inlining.
14896 (ipa_create_all_structures_for_iinln): New function.
14897 (ipa_free_node_params_substructures): Do not free notes.
14898 (ipa_edge_duplication_hook): Propagate bits within
14899 iinlining_processed_edges bitmap.
14900 (ipa_node_duplication_hook): Do not duplicate notes.
14901 (free_all_ipa_structures_after_ipa_cp): Renamed to
14902 ipa_free_all_structures_after_ipa_cp.
14903 (free_all_ipa_structures_after_iinln): Renamed to
14904 ipa_free_all_structures_after_iinln.
14905 (ipa_write_param_call_note): Removed.
14906 (ipa_read_param_call_note): Removed.
14907 (ipa_write_indirect_edge_info): New function.
14908 (ipa_read_indirect_edge_info): Likewise.
14909 (ipa_write_node_info): Do not stream notes, do stream information
14911 (ipa_read_node_info): Likewise.
14912 (lto_ipa_fixup_call_notes): Removed.
14913 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
14914 * ipa-inline.c (pass_ipa_inline): Likewise.
14915 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
14916 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
14917 * tree-inline.c (copy_bb): Removed an unnecessary double check for
14919 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
14921 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
14922 (output_cgraph): Stream also indirect edges.
14923 (lto_output_edge): Added capability to stream indirect edges.
14924 (input_edge): Likewise.
14925 (input_cgraph_1): Likewise.
14926 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
14929 2010-04-28 Richard Guenther <rguenther@suse.de>
14931 PR tree-optimization/43879
14932 PR tree-optimization/43909
14933 * tree-ssa-structalias.c (struct variable_info): Add
14934 only_restrict_pointers flag.
14935 (new_var_info): Initialize it. Increment stats.total_vars here.
14936 (create_function_info_for): Do not increment stats.total_vars here.
14937 (get_function_part_constraint): Fix build with C++.
14938 (insert_into_field_list): Remove.
14939 (push_fields_onto_fieldstack): Properly merge fields.
14940 (create_variable_info_for): Split and simplify.
14941 (create_variable_info_for_1): New piece.
14942 (intra_create_variable_infos): Properly make restrict constraints
14945 2010-04-28 Richard Guenther <rguenther@suse.de>
14948 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
14950 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
14951 Jan Hubicka <hubicka@ucw.cz>
14953 * doc/invoke.texi (-Wsuggest-attribute=const,
14954 -Wsuggest-attribute=pure): Document.
14955 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
14956 (function_always_visible_to_compiler_p,
14957 suggest_attribute, warn_function_pure, warn_function_const):
14959 (check_call): Improve debug info.
14960 (analyze_function): Do not check availability.
14961 (add_new_function): Check availability.
14962 (propagate): Output warnings.
14963 (skip_function_for_local_pure_const): New function.
14964 (local_pure_const): Use it; output warnings.
14965 * common.opt (Wsuggest-attribute=const,
14966 Wsuggest-attribute=pure): New.
14968 2010-04-27 Jakub Jelinek <jakub@redhat.com>
14970 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
14971 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
14972 or DW_CFA_def_cfa_offset{,_sf}.
14974 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
14976 * tree.h: Fix truncated long macros.
14978 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
14980 * collect2.c (TARGET_64BIT): Redefine to target's default.
14981 * tlink.c: Likewise.
14982 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
14983 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
14984 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
14985 for underscoring __USER_LABEL_PREFIX__.
14986 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
14987 (SUB_LINK_ENTRY32): New.
14988 (SUB_LINK_ENTRY64): New.
14989 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
14990 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
14991 (SUB_LINK_ENTRY64): New.
14992 (SUB_LINK_ENTRY): New.
14993 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
14994 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
14995 x64 target is choosen.
14996 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
14997 * configure: Regenerated.
14998 * configure.ac (leading-mingw64-underscores): Option added.
15000 2010-04-27 Jan Hubicka <jh@suse.cz>
15002 * doc/invoke.texi (-fipa-profile): Document.
15003 * opts.c (decode_options): Enable ipa-profile at -O1.
15004 * timevar.def (TV_IPA_PROFILE): Define.
15005 * common.opt (fipa-profile): Add.
15006 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
15008 (cgraph_propagate_frequency): Handle only local ones.
15009 * tree-pass.h (pass_ipa_profile): Declare.
15010 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
15011 (pass_ipa_profile): Use TV_IPA_PROFILE.
15012 * ipa.c (ipa_profile): New function.
15013 (gate_ipa_profile): Likewise.
15014 (pass_ipa_profile): New global variable.
15015 * passes.c (pass_ipa_profile): New.
15017 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
15019 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
15021 2010-04-27 Martin Jambor <mjambor@suse.cz>
15023 PR middle-end/43812
15024 * ipa.c (dissolve_same_comdat_group_list): New function.
15025 (function_and_variable_visibility): Call
15026 dissolve_same_comdat_group_list when comdat group contains external or
15028 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
15029 lists are circular and that they contain only DECL_ONE_ONLY nodes.
15031 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
15033 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
15034 (const_hash_1) <VECTOR_CST>: New case.
15035 (compare_constant) <VECTOR_CST>: Likewise.
15036 <ADDR_EXPR>: Deal with LABEL_REFs.
15037 (copy_constant) <VECTOR_CST>: New case.
15039 2010-04-27 Jan Hubicka <jh@suse.cz>
15041 * cgraph.c (cgraph_propagate_frequency): New function.
15042 * cgraph.h (cgraph_propagate_frequency): Declare.
15043 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
15044 cgraph_propagate_frequency.
15046 2010-04-27 Jakub Jelinek <jakub@redhat.com>
15048 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
15050 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
15053 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
15054 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
15055 here to determine which regs to push and how much stack to reserve.
15057 2010-04-27 Jie Zhang <jie@codesourcery.com>
15059 * doc/gimple.texi (gimple_statement_with_ops): Remove
15060 addresses_taken field.
15061 (gimple_statement_with_memory_ops): Likewise.
15063 2010-04-27 Jan Hubicka <jh@suse.cz>
15065 * tree-inline.c (eni_inlining_weights): Remove.
15066 (estimate_num_insns): Special case more builtins.
15068 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
15071 * c-typeck.c (build_binary_op): Move forward check for comparison
15072 pointer with null pointer constant and adjust the diagnostic message.
15074 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
15077 * configure.ac (gcc_cv_as_section_has_align): Set if installed
15078 binutils supports extended .section directive needed by LTO, or
15079 warn if older binutils found.
15080 (LTO_BINARY_READER): New AC_SUBST'd variable.
15081 (LTO_USE_LIBELF): Likewise.
15082 * gcc/config.gcc (lto_binary_reader): New target-specific configure
15084 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
15085 (LTO_USE_LIBELF): Likewise.
15086 * configure: Regenerate.
15088 * collect2.c (is_elf): Rename from this ...
15089 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
15090 object files in addition to ELF-formatted ones.
15091 (scan_prog_file): Caller updated. Also allow for LTO info marker
15092 symbol to be prefixed or not by an extra underscore.
15094 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
15095 * config/i386/winnt.c: Also #include lto-streamer.h
15096 (i386_pe_asm_named_section): Specify 1-byte section alignment for
15097 LTO named sections.
15098 (i386_pe_asm_output_aligned_decl_common): Add comment.
15099 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
15101 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
15104 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
15105 Add missing earlyclobber for second alternative.
15107 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
15109 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
15110 bits for artificial defs at the top of the block.
15111 * fwprop.c (single_def_use_enter_block): Don't call it.
15113 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
15116 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
15117 instead of "$gcc_cv_objdump -T".
15118 Use "-undefined dynamic_lookup" on darwin.
15119 * gcc/configure: Regenerate.
15121 2010-04-26 Jakub Jelinek <jakub@redhat.com>
15124 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
15126 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
15128 * c-parser.c (struct c_token): Move location field up.
15129 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
15130 (struct c_declspecs): Convert typespec_word, storage_class, and
15131 default_int_p into bitfields.
15132 (struct c_declarator): Move loc field up.
15134 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
15136 * cfgloop.h (struct loop): Move can_be_parallel field up.
15137 * ipa-prop.h (struct ip_node_params): Move bitfields up.
15138 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
15140 (struct iv_cand): Convert pos field into a bitfield.
15141 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
15143 (struct _stmt_vec_info): Shuffle fields for better packing.
15145 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
15147 * varasm.c (IN_NAMED_SECTION): Remove guard.
15148 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
15149 (IN_NAMED_SECTION_P): ...this.
15150 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
15151 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
15153 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
15155 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
15156 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
15157 of shadowing it. Fix comments.
15159 2010-04-26 Jan Hubicka <jh@suse.cz>
15161 * cgraph.c (cgraph_create_node): Set node frequency to normal.
15162 (cgraph_clone_node): Copy function frequency.
15163 * cgraph.h (node_frequency): New enum
15164 (struct cgraph_node): Add.
15165 * final.c (rest_of_clean_state): Update.
15166 * lto-cgraph.c (lto_output_node): Output node frequency.
15167 (input_overwrite_node): Input node frequency.
15168 * tre-ssa-loop-ivopts (computation_cost): Update.
15169 * lto-streamer-out.c (output_function): Do not output function
15171 * predict.c (maybe_hot_frequency_p): Update and handle functions
15173 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
15175 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
15176 (compute_function_frequency): Set noreturn functions to be executed
15178 (choose_function_section): Update.
15179 * lto-streamer-in.c (input_function): Do not input function frequency.
15180 * function.c (allocate_struct_function): Do not initialize function
15182 * function.h (function_frequency): Remove.
15183 (struct function): Remove function frequency.
15184 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
15185 (try_update): Update.
15186 * tree-inline.c (initialize_cfun): Do not update function frequency.
15187 * passes.c (pass_init_dump_file): Update.
15188 * i386.c (ix86_compute_frame_layout): Update.
15189 (ix86_pad_returns): Update.
15191 2010-04-26 Jie Zhang <jie@codesourcery.com>
15193 PR tree-optimization/43833
15194 * tree-vrp.c (range_int_cst_p): New.
15195 (range_int_cst_singleton_p): New.
15196 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
15197 when both operands are constants. Use range_int_cst_p in
15200 2010-04-26 Jan Hubicka <jh@suse.cz>
15202 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
15204 2010-04-26 Richard Guenther <rguenther@suse.de>
15207 * gimple.c (gimple_decl_printable_name): Deal gracefully
15208 with a NULL DECL_NAME.
15210 2010-04-26 Richard Guenther <rguenther@suse.de>
15213 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
15214 if emitting debug information and it is either a function
15215 or a namespace decl.
15217 2010-04-26 Ira Rosen <irar@il.ibm.com>
15219 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
15220 determine if the statement is vectorizable, and a macro to access it.
15221 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15222 Skip statements that can't be vectorized. If the analysis fails,
15223 mark the statement as unvectorizable if vectorizing basic block.
15224 (vect_compute_data_refs_alignment): Likewise.
15225 (vect_verify_datarefs_alignment): Skip statements marked as
15226 unvectorizable. Add print.
15227 (vect_analyze_group_access): Skip statements that can't be
15228 vectorized. If the analysis fails, mark the statement as
15229 unvectorizable if vectorizing basic block.
15230 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
15231 * tree-vect-stmts.c (vectorizable_store): Fix the number of
15232 generated stmts for SLP.
15233 (new_stmt_vec_info): Initialize the new field.
15234 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
15235 statements marked as unvectorizable.
15237 2010-04-25 Joseph Myers <joseph@codesourcery.com>
15239 * c-common.c (flag_isoc1x): New.
15240 (flag_isoc99): Update comment.
15241 * c-common.h (flag_isoc1x): New.
15242 (flag_isoc99): Update comment.
15243 * c-cppbuiltin.c (builtin_define_float_constants): Also define
15244 __<type>_DECIMAL_DIG__.
15245 * c-opts.c (set_std_c1x): New.
15246 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
15247 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
15248 * c.opt (-std=c1x, -std=gnu1x): New options.
15249 * doc/cpp.texi: Mention -std=c1x.
15250 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
15251 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
15252 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
15253 * doc/standards.texi: Mention C1X.
15254 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
15255 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
15256 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15259 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
15261 * config/i386/gmon-sol2.c (_mcleanup): Change format string
15262 placeholder from 0x%x to %#x.
15263 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15264 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15265 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15266 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15267 * config/i386/i386.c (ix86_target_string): Ditto.
15268 (output_pic_addr_const): Ditto.
15269 (print_operand): Ditto.
15271 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
15273 * combine.c (find_split_point): Add third argument. Use it
15274 to find nested multiply-accumulate instructions. Adjust calls.
15275 (try_combine): Adjust call to find_split_point.
15277 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
15279 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
15281 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
15283 PR tree-optimization/41442
15284 * fold-const.c (merge_truthop_with_opposite_arm): New function.
15285 (fold_binary_loc): Call it.
15287 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15289 * toplev.c (general_init): Set default for fdiagnostics-show-option.
15290 * opts.c (common_handle_option): Allow disabling it.
15291 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
15293 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
15295 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
15296 between modes if both types are integral.
15298 2010-04-23 Richard Guenther <rguenther@suse.de>
15300 PR tree-optimization/43572
15301 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
15303 2010-04-23 Richard Guenther <rguenther@suse.de>
15306 * tree-inline.c (tree_can_inline_p): Also check compatibility
15309 2010-04-23 Martin Jambor <mjambor@suse.cz>
15311 PR tree-optimization/43846
15312 * tree-sra.c (struct access): New flag grp_assignment_read.
15313 (build_accesses_from_assign): Set grp_assignment_read.
15314 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
15315 (enum mark_read_status): New type.
15316 (analyze_access_subtree): Propagate grp_assignment_read, create
15317 accesses also if both direct_read and root->grp_assignment_read.
15319 2010-04-23 Martin Jambor <mjambor@suse.cz>
15321 PR middle-end/43835
15322 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
15323 function does not have type attributes.
15325 2010-04-23 Richard Guenther <rguenther@suse.de>
15328 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
15331 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15333 * sese.h (create_if_region_on_edge): Remove.
15335 * sese.c (create_if_region_on_edge): Make static.
15337 * tree-inline.c: Do not include ggc.h.
15339 * expr.c: Do not include ggc.h.
15341 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
15344 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
15347 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15348 in the middle of insns for casesi_worker_2.
15350 2010-04-22 David Edelsohn <edelsohn@gnu.org>
15352 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
15354 2010-04-22 Ira Rosen <irar@il.ibm.com>
15356 PR tree-optimization/43842
15357 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
15358 loop unrolling in update of exit phis. Fix comment.
15359 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
15360 least two reduction statements in the loop before starting SLP
15363 2010-04-22 Nick Clifton <nickc@redhat.com>
15365 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
15367 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
15369 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
15370 to simplify a + ~a.
15372 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15374 * tree-parloops.c (loop_parallel_p): New argument
15375 parloop_obstack. Pass it down.
15376 (parallelize_loops): New variable parloop_obstack. Initialize it,
15377 pass it down, free it.
15379 * tree-loop-linear.c (linear_transform_loops): Pass down
15382 * tree-data-ref.h (lambda_compute_access_matrices): New argument
15383 of type struct obstack *.
15385 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
15386 scratch_obstack. Initialize it, pass down, free it.
15388 * lambda.h (lambda_loop_new): Remove.
15389 (lambda_matrix_new, lambda_matrix_inverse)
15390 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
15391 argument of type struct obstack *.
15393 * lambda-trans.c (lambda_trans_matrix_new): New argument
15394 lambda_obstack. Pass it down, use obstack allocation for ret.
15395 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
15398 * lambda-mat.c (lambda_matrix_get_column)
15399 (lambda_matrix_project_to_null): Remove.
15400 (lambda_matrix_new): New argument lambda_obstack. Use obstack
15401 allocation for mat.
15402 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
15405 * lambda-code.c (lambda_loop_new): New function.
15406 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
15407 (lambda_compute_auxillary_space, lambda_compute_target_space)
15408 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
15409 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
15410 (build_access_matrix): New argument lambda_obstack. Use obstack
15412 (lambda_compute_step_signs, lambda_compute_access_matrices): New
15413 argument lambda_obstack. Pass it down.
15415 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15417 * optabs.h (expand_widening_mult): Declare.
15419 2010-04-22 Richard Guenther <rguenther@suse.de>
15421 PR tree-optimization/43845
15422 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
15423 lookup the CALL_EXPR function and arguments.
15425 2010-04-22 Nick Clifton <nickc@redhat.com>
15427 * config/stormy16/stormy16.c
15428 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
15429 * config/stormy16/stormy16.h: Tidy up formatting.
15430 (DONT_USE_BUILTIN_SETJMP): Remove definition.
15431 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
15432 (ineqbranchsi): Delete pattern.
15433 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
15434 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
15435 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15436 stormy16-lib2-ucmpsi2.c.
15438 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15440 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
15441 df_simulate_find_noclobber_defs as appropriate. Keep track of an
15442 extra set merge_set_noclobber, and use it to relax the final test
15444 * df.h (df_simulate_find_noclobber_defs): Declare.
15445 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
15447 (df_simulate_find_noclobber_defs): New function.
15449 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
15451 * config/i386/i386.md: Use {} around multi-line preparation statements.
15453 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
15455 * c-tree.h (push_init_level, pop_init_level, set_init_index)
15456 (process_init_element): New argument of type struct obstack *.
15458 * c-typeck.c (push_init_level, pop_init_level, set_designator)
15459 (set_init_index, set_init_label, set_nonincremental_init)
15460 (set_nonincremental_init_from_string, find_init_member)
15461 (output_init_element, output_pending_init_elements)
15462 (process_init_element): New argument braced_init_obstack. Pass it
15464 (push_range_stack, add_pending_init): New argument
15465 braced_init_obstack. Use obstack allocation.
15467 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
15468 braced_init_obstack. Pass it down.
15469 (c_parser_braced_init): New variables ret, braced_init_obstack.
15470 Initialize obstack, pass it down and finally free it.
15472 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
15474 PR middle-end/29274
15475 * tree-pass.h (pass_optimize_widening_mul): Declare.
15476 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
15477 gate_optimize_widening_mul): New static functions.
15478 (pass_optimize_widening_mul): New.
15479 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
15480 <case MULT_EXPR>: Remove support for widening multiplies.
15481 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
15482 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
15483 simplify_gen_unary rather than directly building extensions.
15484 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
15486 * expmed.c (expand_widening_mult): New function.
15487 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
15489 2010-04-21 Jan Hubicka <jh@suse.cz>
15491 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
15492 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
15493 * lto-wpa-fixup.c: Remove.
15494 * Makefile.in (lto-wpa-fixup.o): Remove.
15495 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
15496 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
15497 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
15499 2010-04-21 Jan Hubicka <jh@suse.cz>
15501 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
15502 add write_optimization_summary, read_optimization_summary.
15503 (ipa_write_summaries_of_cgraph_node_set): Remove.
15504 (ipa_write_optimization_summaries): Declare.
15505 (ipa_read_optimization_summaries): Declare.
15506 * ipa-cp.c (pass_ipa_cp): Update.
15507 * ipa-reference.c (pass_ipa_reference): Update.
15508 * ipa-pure-const.c (pass_ipa_pure_const): Update.
15509 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
15511 * ipa-inline.c (pass_ipa_inline): Update.
15512 * ipa.c (pass_ipa_whole_program): Update.
15513 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
15514 * passes.c (ipa_write_summaries_1): Do not test wpa.
15515 (ipa_write_optimization_summaries_1): New.
15516 (ipa_write_optimization_summaries): New.
15517 (ipa_read_summaries): Do not test ltrans.
15518 (ipa_read_optimization_summaries_1): New.
15519 (ipa_read_optimization_summaries): New.
15521 2010-04-21 Jan Hubicka <jh@suse.cz>
15523 * lto-cgraph.c (lto_output_node): Do not output comdat groups
15524 for boundary nodes.
15525 (output_cgraph): Do not arrange comdat groups for boundary nodes.
15527 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15530 * dwarf2out.c (add_name_and_src_coords_attributes): Add
15531 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
15533 2010-04-21 Jan Hubicka <jh@suse.cz>
15535 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
15537 2010-04-21 Jan Hubicka <jh@suse.cz>
15539 * varpool.c (decide_is_variable_needed): Variable is always needed
15542 2010-04-21 Jan Hubicka <jh@suse.cz>
15544 * opts.c (decode_options): Enable pure-const pass for whopr.
15546 2010-04-21 Jan Hubicka <jh@suse.cz>
15548 * cgraph.c (dump_cgraph_node): Dump also assembler name.
15549 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
15551 (cgraph_decide_inlining): Do not expect callee to be removed in all
15554 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
15556 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
15558 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
15560 * config/i386/i386.md (x86_shrd): Add athlon_decode and
15561 amdfam10_decode attributes.
15563 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15565 PR middle-end/43570
15566 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
15567 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
15568 (lower_copyprivate_clauses): Use private var in outer
15569 context instead of original var. Make sure the types
15570 are correct for VLAs.
15572 2010-04-21 Richard Guenther <rguenther@suse.de>
15574 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
15575 to non-pointer objects.
15577 2010-04-21 Jakub Jelinek <jakub@redhat.com>
15579 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
15580 last chain entry if it starts with the still current label.
15581 (add_location_or_const_value_attribute): Check that
15582 loc_list->first->next is NULL instead of comparing ->first with ->last.
15583 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
15584 to add_var_loc_to_decl.
15586 * dwarf2out.c (output_call_frame_info): For dw_cie_version
15587 >= 4 add also address size and segment size fields into CIE header.
15589 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
15590 long as address size is the same as sizeof (void *) and
15592 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
15593 address size or segment size is unexpected, return DW_EH_PE_omit.
15594 (classify_object_over_fdes): If get_cie_encoding returned
15595 DW_EH_PE_omit, return -1.
15596 (init_object): If classify_object_over_fdes returned -1,
15597 pretend there were no FDEs at all.
15599 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
15601 * config/i386/i386.md (bswap<mode>2): Macroize expander from
15602 bswap{si,di}2 using SWI48 mode iterator.
15603 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
15604 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
15605 set modrm attribute of bswap insn to 0 and remove length attribute.
15606 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
15607 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
15608 set mode attribute to <MODE> and remove length attribute.
15610 2010-04-20 James E. Wilson <wilson@codesourcery.com>
15612 PR rtl-optimization/43520
15613 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15614 zero available registers.
15616 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15618 * builtins.c (fold_builtin_cproj): Fold more cases.
15620 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15622 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15623 (fold_builtin_1): Fold builtin cproj.
15624 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15625 Use ATTR_CONST_NOTHROW_LIST.
15627 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
15629 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15630 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
15631 ffsi2_no_cmove for !TARGET_CMOVE.
15632 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
15633 (ffssi2): Remove expander.
15634 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15636 (ctz<mode>2): Ditto from ctz{si,di}2.
15637 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15639 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15642 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15644 * dwarf2out.c (AT_linkage_name): Define.
15645 (clone_as_declaration): Handle DW_AT_linkage_name.
15646 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15647 of DW_AT_MIPS_linkage_name.
15648 (move_linkage_attr): Likewise.
15649 (dwarf2out_finish): Likewise.
15651 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
15653 PR middle-end/41952
15654 * fold-const.c (fold_comparison): New folding rule.
15656 2010-04-20 Anatoly Sokolov <aesok@post.ru>
15658 * double-int.h (double_int_setbit): Declare.
15659 * double-int.c (double_int_setbit): New function.
15660 * rtl.h (immed_double_int_const): Declare.
15661 * emit-rtl.c (immed_double_int_const): New function.
15662 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15663 and immed_double_int_const functions.
15664 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15665 expand_copysign_bit): (Ditto.).
15666 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15667 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15668 * dojump.c (prefer_and_bit_test): (Ditto.).
15669 * expr.c (convert_modes, reduce_to_bit_field_precision,
15670 const_vector_from_tree): (Ditto.).
15671 * expmed.c (mask_rtx, lshift_value): (Ditto.).
15673 2010-04-20 Jan Hubicka <jh@suse.cz>
15675 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15676 (dump_cgraph_node): Dump new flags.
15677 * cgraph.h (struct cgraph_node): Add flags
15678 reachable_from_other_partition and in_other_partition.
15679 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15680 other partition can not be removed.
15681 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15682 the other partition must be output; silence sanity checking on
15683 leaking functions bodies from other paritition.
15684 * lto-cgraph.c (reachable_from_other_partition_p): New function.
15685 (lto_output_node): Output new flags; do not sanity check that inline
15686 clones are output; drop lto_forced_extern_inline_p code; do not mock
15687 visibility flags at partition boundaries.
15688 (add_node_to): New function.
15689 (output_cgraph): Use it to sort functions so masters appear before
15691 (input_overwrite_node): Input new flags.
15692 * passes.c (ipa_write_summaries): Do not call
15693 lto_new_extern_inline_states.
15694 * lto-section-out.c (forced_extern_inline,
15695 lto_new_extern_inline_states lto_delete_extern_inline_states,
15696 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15697 * lto-streamer.h (lto_new_extern_inline_states,
15698 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15699 lto_forced_extern_inline_p): Kill.
15701 2010-04-20 Richard Guenther <rguenther@suse.de>
15703 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15704 from vars that can have pointers.
15705 (process_constraint): Dump useless constraints.
15707 2010-04-20 Richard Guenther <rguenther@suse.de>
15709 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15710 (dump_sa_points_to_info): Remove asserts.
15711 (init_base_vars): nothing_id isn't an escape point nor does it
15714 2010-04-20 Jakub Jelinek <jakub@redhat.com>
15716 * tree.h (TYPE_REF_IS_RVALUE): Define.
15717 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15718 should_move_die_to_comdat, prune_unused_types_walk): Handle
15719 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15720 (modified_type_die, gen_reference_type_die): Emit
15721 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15722 if TYPE_REF_IS_RVALUE and -gdwarf-4.
15724 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15727 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15728 calls for -fpic -m31 if they have been sibcall optimized.
15730 2010-04-19 James E. Wilson <wilson@codesourcery.com>
15732 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15733 ar.lc fixed and call-used.
15735 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15737 2010-04-19 Jan Hubicka <jh@suse.cz>
15739 * opts.c (decode_options): Disable whpr incompatible passes.
15740 * lto/lto.c (lto_1_to_1_map): Skip clones.
15741 (read_cgraph_and_symbols): Do not mark everything as needed.
15742 (do_whole_program_analysis): Do map only after optimizing;
15743 set proper cgraph_state; use passmanager.
15745 2010-04-19 DJ Delorie <dj@redhat.com>
15747 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
15748 POINTER_PLUS_EXPR and fix them.
15750 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
15752 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
15753 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
15754 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
15755 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
15756 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
15757 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
15758 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
15759 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
15760 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
15761 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
15762 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
15764 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
15766 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
15767 (check_cond_move_block): Likewise.
15768 (cond_move_process_if_block): Likewise.
15769 (noce_find_if_block): Improve formatting.
15770 (find_if_header): Pass 0 to memset and tweak conditions.
15771 (cond_exec_find_if_block): Fix long lines and tweak conditions.
15773 2010-04-19 Jakub Jelinek <jakub@redhat.com>
15775 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
15778 PR middle-end/43337
15779 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
15780 with non-local decl doesn't need chain.
15782 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
15784 * ira-color.c (allocno_reload_assign): Avoid accumulating
15785 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
15787 2010-04-19 Martin Jambor <mjambor@suse.cz>
15789 * gimple.h (create_tmp_reg): Declare.
15790 * gimplify.c (create_tmp_reg): New function.
15791 (gimplify_return_expr): Use create_tmp_reg.
15792 (gimplify_omp_atomic): Likewise.
15793 (gimple_regimplify_operands): Likewise.
15794 * tree-dfa.c (make_rename_temp): Likewise.
15795 * tree-predcom.c (predcom_tmp_var): Likewise.
15796 (reassociate_to_the_same_stmt): Likewise.
15797 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
15798 (get_replaced_param_substitute): Likewise.
15799 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15800 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
15801 * tree-ssa-pre.c (get_representative_for): Likewise.
15802 (create_expression_by_pieces): Likewise.
15803 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15804 (create_tailcall_accumulator): Likewise.
15806 2010-04-19 Martin Jambor <mjambor@suse.cz>
15808 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
15810 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
15812 2010-04-19 Richard Guenther <rguenther@suse.de>
15814 PR tree-optimization/43796
15815 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
15816 from SCEV in the lattice.
15817 (vrp_visit_phi_node): Dump change.
15819 2010-04-19 Richard Guenther <rguenther@suse.de>
15821 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
15822 * configure: Re-generated.
15824 2010-04-19 Richard Guenther <rguenther@suse.de>
15826 PR tree-optimization/43783
15827 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
15828 constant ARRAY_REF operands two and three if possible.
15830 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
15833 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
15835 2010-04-19 Jie Zhang <jie@codesourcery.com>
15838 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
15840 2010-04-19 Ira Rosen <irar@il.ibm.com>
15842 PR tree-optimization/37027
15843 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
15844 and macro to access it.
15845 (vectorizable_reduction): Add argument.
15846 (vect_get_slp_defs): Likewise.
15847 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
15848 statements for possible use in SLP.
15849 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
15850 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
15851 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
15853 (vectorizable_reduction): Likewise.
15854 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
15856 (vectorizable_type_demotion, vectorizable_type_promotion,
15857 vectorizable_store): Likewise.
15858 (vect_analyze_stmt): Update call to vectorizable_reduction.
15859 (vect_transform_stmt): Likewise.
15860 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
15861 (vect_build_slp_tree): Fix indentation. Check that there are no loads
15862 from different interleaving chains in same node.
15863 (vect_slp_rearrange_stmts): New function.
15864 (vect_supported_load_permutation_p): Allow load permutations for
15865 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
15866 inside SLP nodes if necessary.
15867 (vect_analyze_slp_instance): Handle reductions.
15868 (vect_analyze_slp): Try to build SLP instances originating from groups
15870 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
15871 (vect_get_constant_vectors): Create initial vectors for reductions
15872 according to reduction code. Add new argument.
15873 (vect_get_slp_defs): Add new argument, pass it to
15874 vect_get_constant_vectors.
15875 (vect_schedule_slp_instance): Remove SLP tree root statements.
15877 2010-04-19 Jakub Jelinek <jakub@redhat.com>
15879 * tree.h (ENUM_IS_SCOPED): Define.
15880 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
15881 for ENUM_IS_SCOPED enums.
15883 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
15885 * fold-const.c (fold_comparison): Use ssizetype.
15886 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15887 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
15888 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
15889 * tree-object-size.c (compute_object_sizes): Use size_type_node.
15891 * tree.h (initialize_sizetypes): Remove parameter.
15892 (build_common_tree_nodes): Remove second parameter.
15893 * stor-layout.c (initialize_sizetypes): Remove parameter.
15894 Always create an unsigned type.
15895 (set_sizetype): Assert that the passed type is unsigned and simplify.
15896 * tree.c (build_common_tree_nodes): Remove second parameter.
15897 Adjust call to initialize_sizetypes.
15898 * c-decl.c (c_init_decl_processing): Remove second argument in call to
15899 build_common_tree_nodes.
15901 2010-04-18 Matthias Klose <doko@ubuntu.com>
15903 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
15905 2010-04-18 Ira Rosen <irar@il.ibm.com>
15907 PR tree-optimization/43771
15908 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
15909 load permutation doesn't have gaps.
15911 2010-04-18 Jan Hubicka <jh@suse.cz>
15913 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
15914 (sse_prologue_save_insn expander): Use new pattern.
15915 (sse_prologue_save_insn1): New pattern and splitter.
15916 (sse_prologue_save_insn): Update to deal also with 64bit aligned
15918 * i386.c (setup_incoming_varargs_64): Do not compute jump
15920 (ix86_gimplify_va_arg): Update alignment needed.
15921 (ix86_local_alignment): Do not align all local arrays to 128bit.
15923 2010-04-17 Jan Hubicka <jh@suse.cz>
15925 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
15927 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
15929 * arm.md (negdi2): Remove redundant code to force values into a
15932 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
15934 * arm/bpabi.S: Add EABI alignment attributes to objects.
15935 * arm/bpabi-v6m.S: Likewise.
15936 * arm/crti.asm: Likewise.
15937 * arm/crtn.asm: Likewise.
15938 * arm/lib1funcs.asm: Likewise.
15939 * arm/libunwind.S: Likewise.
15941 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
15943 * arm-protos.h (tune_params): New structure.
15944 * arm.c (current_tune): New variable.
15945 (arm_constant_limit): Delete.
15946 (struct processors): Add pointer to the tune parameters.
15947 (arm_slowmul_tune): New tuning option.
15948 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
15949 (all_cores): Adjust to pick up the tuning model.
15950 (arm_constant_limit): New function.
15951 (arm_override_options): Select the appropriate tuning model. Delete
15952 initialization of arm_const_limit.
15953 (arm_split_constant): Use the new constant-limit model.
15954 (arm_rtx_costs): Pick up the current tuning model.
15955 * arm.md (is_strongarm, is_xscale): Delete.
15956 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
15957 for Xscale variant architectures.
15958 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
15960 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15962 * config/arm/arm.c (arm_gen_constant): Remove unused variable
15964 (arm_rtx_costs_1): Remove unused variable extra_cost.
15965 (arm_unwind_emit_set): Use variable offset.
15966 (thumb1_output_casesi): Remove unused variable flags.
15968 2010-04-16 Jeff Law <law@redhat.com>
15970 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
15971 needing assignment rather than doing a two-phase assignment. Remove
15972 unused variable 'm'.
15974 2010-04-16 Jakub Jelinek <jakub@redhat.com>
15977 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
15979 2010-04-16 Doug Kwan <dougkwan@google.com>
15981 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
15982 (next_operand_entry_id): New static variable.
15983 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
15984 (add_to_ops_vec): Assigned unique ID to operand entry.
15985 (struct oecount_s): New field ID.
15986 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
15987 (undistribute_ops_list): Assign unique IDs to oecounts.
15988 (init_reassoc): reset next_operand_entry_id.
15990 2010-04-16 Doug Kwan <dougkwan@google.com>
15992 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
15993 missing left parenthesis.
15995 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
15997 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
15998 *btdi_rex64 using SWI48 mode iterator.
15999 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
16000 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
16001 *jcc_btdi_mask_rex64.
16003 2010-04-16 Anatoly Sokolov <aesok@post.ru>
16005 * double-int.h (tree_to_double_int): Convert to macro.
16006 * double-int.c (tree_to_double_int): Remove.
16008 2010-04-16 Jakub Jelinek <jakub@redhat.com>
16011 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
16012 with want_address 2 and in case a single element list might be
16013 possible, call it again with want_address 0.
16015 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16017 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
16018 case 'W' print operands for HI mode.
16019 * config/h8300/h8300.h (Y0, Y2) : New constraints.
16020 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
16021 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
16022 * config/h8300/predicate.md (bit_register_indirect_operand): New.
16024 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
16026 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
16027 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
16028 #xx:3 and #xx:4 mode.
16030 * config/h8300/h8300.md (inverted load with HImode dest): Add
16031 support for H8300SX.
16033 * config/h8300/predicate.md (bit_operand): Allow immediate values that
16034 satisfy 'U' constraint.
16036 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16038 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
16039 * configure: Regenerate.
16040 * config.in: Regenerate.
16041 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
16044 2010-04-16 Richard Guenther <rguenther@suse.de>
16046 * tree.h (struct tree_decl_minimal): Move pt_uid ...
16047 (struct tree_decl_common): ... here.
16048 (DECL_PT_UID): Adjust.
16049 (SET_DECL_PT_UID): Likewise.
16050 (DECL_PT_UID_SET_P): Likewise.
16052 2010-04-16 Richard Guenther <rguenther@suse.de>
16054 PR tree-optimization/43572
16055 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
16056 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
16057 * tree-flow.h (is_call_clobbered): Remove.
16058 * tree-flow-inline.h (is_call_clobbered): Likewise.
16059 * tree-dfa.c (dump_variable): Do not dump call clobber state.
16060 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
16061 (execute_return_slot_opt): Adjust.
16062 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
16063 check for call clobbered vars here.
16064 (find_tail_calls): Move tailcall verification to the
16067 2010-04-16 Diego Novillo <dnovillo@google.com>
16069 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
16071 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
16074 * config/arm/arm.md (cbranchqi4): New pattern.
16075 * config/arm/predicates.md (const0_operand,
16076 cbranchqi4_comparison_operator): New predicates.
16078 2010-04-16 Richard Guenther <rguenther@suse.de>
16080 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
16081 (dump_gimple_stmt): Likewise.
16083 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
16085 * recog.h (struct recog_data): New field is_operator.
16086 (struct insn_operand_data): New field is_operator.
16087 * recog.c (extract_insn): Set recog_data.is_operator.
16088 * genoutput.c (output_operand_data): Emit code to set the
16090 * reload.c (find_reloads): Use it rather than testing for an
16091 empty constraint string.
16094 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
16095 If the previous insn is a cbranchsi4_insn with the same arguments,
16096 omit the compare instruction.
16098 * config/arm/arm.md (addsi3_cbranch): If destination is a high
16099 register, inputs must be low registers and we need a low register
16100 scratch. Handle alternative 2 like alternative 3.
16102 2010-04-16 Jakub Jelinek <jakub@redhat.com>
16104 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
16105 don't call get_addr on both. If one expression is a VALUE and
16106 the other a REG, check VALUE's locs if the REG isn't among them.
16108 2010-04-16 Christian Bruel <christian.bruel@st.com>
16110 * config/sh/sh.h (sh_frame_pointer_required): New function.
16111 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
16112 (flag_omit_frame_pointer) Set.
16113 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
16114 (rounded_frame_size): Adjust size with outgoing_args_size.
16115 (sh_set_return_address): Must return from stack pointer.
16116 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
16117 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
16118 (ACCUMULATE_OUTGOING_ARGS): Define.
16119 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
16120 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
16122 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
16125 * config/sh/sh.c (sh_legitimize_reload_address): Use
16126 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
16127 Remove a unneeded check for offset_base.
16129 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
16131 * configure: Regenerated.
16133 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16135 * config/s390/s390.c (s390_call_save_register_used): Switch back
16136 to HARD_REGNO_NREGS.
16138 2010-04-15 Richard Guenther <rguenther@suse.de>
16140 * alias.c (alias_set_subset_of): Handle alias-set zero
16143 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
16144 Julian Brown <julian@codesourcery.com>
16146 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
16147 alternatives according to use of high and low regs.
16148 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16149 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
16150 optimizing for size on Thumb-2.
16152 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
16154 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
16156 2010-04-15 Richard Guenther <rguenther@suse.de>
16158 * tree-ssa-structalias.c (struct variable_info): Add
16160 (new_var_info): Initialize it.
16161 (dump_constraints): Support printing last added constraints.
16162 (debug_constraints): Adjust.
16163 (dump_constraint_graph): Likewise.
16164 (make_heapvar_for): Check for NULL cfun.
16165 (get_function_part_constraint): New function.
16166 (get_fi_for_callee): Likewise.
16167 (find_func_aliases): Properly implement IPA PTA constraints.
16168 (process_ipa_clobber): New function.
16169 (find_func_clobbers): Likewise.
16170 (insert_into_field_list_sorted): Remove.
16171 (create_function_info_for): Properly allocate vars for IPA mode.
16172 Do not use insert_into_field_list_sorted.
16173 (create_variable_info_for): Properly generate constraints for
16174 global vars in IPA mode.
16175 (dump_solution_for_var): Always dump the solution.
16176 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
16177 (find_what_var_points_to): Adjust.
16178 (pt_solution_set): Change.
16179 (pt_solution_ior_into): New function.
16180 (pt_solution_empty_p): Export.
16181 (pt_solution_includes_global): Adjust.
16182 (pt_solution_includes_1): Likewise.
16183 (pt_solutions_intersect_1): Likewise.
16184 (dump_sa_points_to_info): Check some invariants.
16185 (solve_constraints): Move constraint dumping ...
16186 (compute_points_to_sets): ... here.
16187 (ipa_pta_execute): ... and here.
16188 (compute_may_aliases): Do not re-compute points-to info
16189 locally if IPA info is available.
16190 (ipa_escaped_pt): New global var.
16191 (ipa_pta_execute): Properly implement IPA PTA.
16192 * tree-into-ssa.c (dump_decl_set): Support dumping
16193 decls not in referenced-vars.
16194 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
16195 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
16196 (dump_points_to_solution): Likewise.
16197 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
16198 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
16199 (remap_gimple_stmt): Reset call clobber/use information if necessary.
16200 (copy_decl_to_var): Copy DECL_PT_UID.
16201 (copy_result_decl_to_var): Likewise.
16202 * tree.c (make_node_stat): Initialize DECL_PT_UID.
16203 (copy_node_stat): Copy it.
16204 * tree.h (DECL_PT_UID): New macro.
16205 (SET_DECL_PT_UID): Likewise.
16206 (DECL_PT_UID_SET_P): Likewise.
16207 (struct tree_decl_minimal): Add pt_uid member.
16208 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
16209 (pt_solution_empty_p): Declare.
16210 (pt_solution_set): Adjust.
16211 (ipa_escaped_pt): Declare.
16212 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
16213 * gimple-pretty-print.c (pp_points_to_solution): New function.
16214 (dump_gimple_call): Dump call clobber/use information.
16215 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
16216 * tree-pass.h (TDF_ALIAS): New dump option.
16217 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
16218 * doc/invoke.texi (-fipa-pta): Update documentation.
16220 2010-04-15 Richard Guenther <rguenther@suse.de>
16222 * Makefile.in (OBJS-common): Add gimple-fold.o.
16223 (gimple-fold.o): New rule.
16224 * tree.h (maybe_fold_offset_to_reference,
16225 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
16227 * gimple.h: ... here.
16228 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
16229 may_propagate_address_into_dereference): Move prototypes ...
16230 * gimple.h: ... here.
16231 * tree-ssa-ccp.c (get_symbol_constant_value,
16232 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
16233 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
16234 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
16235 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
16236 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
16237 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
16238 gimplify_and_update_call_from_tree): Move ...
16239 * gimple-fold.c: ... here. New file.
16240 (ccp_fold_builtin): Rename to ...
16241 (gimple_fold_builtin): ... this.
16242 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
16244 2010-04-15 Richard Guenther <rguenther@suse.de>
16246 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
16247 fit_double_type, force_fit_type_double, add_double_with_sign,
16248 neg_double, mul_double_with_sign, lshift_double, rshift_double,
16249 lrotate_double, rrotate_double, div_and_round_double): Move ...
16250 * double-int.c: ... here.
16251 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
16252 add_double, neg_double, mul_double_with_sign, mul_double,
16253 lshift_double, rshift_double, lrotate_double, rrotate_double,
16254 div_and_round_double): Move prototypes ...
16255 * double-int.h: ... here.
16257 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
16260 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
16261 matching constraints to ensure inputs match the output.
16263 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
16266 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
16267 in an input-only operand.
16269 2010-04-15 Anatoly Sokolov <aesok@post.ru>
16271 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
16272 (double_int_not, double_int_lshift, double_int_rshift): Declare.
16273 (double_int_negative_p): Convert to static inline function.
16274 * double-int.c (double_int_lshift, double_int_lshift): New functions.
16275 (double_int_negative_p): Remove.
16276 * tree.h (lshift_double, rshift_double):
16277 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
16278 * fold-const.c (fold_convert_const_int_from_real,
16279 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
16280 (lshift_double): Change type of arith argument to bool.
16281 (rshift_double): Change type of arith argument to bool. Correct
16283 * expmed.c (mask_rtx, lshift_value): (Ditto.).
16285 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
16288 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
16289 at the start and end of the then/else blocks, and omit them from the
16291 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
16292 argument; all callers changed. Pass zero to old_insns_match_p instead.
16293 (flow_find_head_matching_sequence): New function.
16294 (old_insns_match_p): Check REG_EH_REGION notes for calls.
16295 * basic-block.h (flow_find_cross_jump,
16296 flow_find_head_matching_sequence): Declare functions.
16298 2010-04-14 Jason Merrill <jason@redhat.com>
16301 * c-common.c (attribute_takes_identifier_p): New fn.
16302 * c-common.h: Declare it.
16304 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16306 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
16307 splitter condition.
16308 (*udivmod<mode>4): Ditto.
16310 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16312 * config/i386/i386.md (maxmin_int): Rename code attribute from
16313 maxminiprefix and update all users.
16314 (maxmin_float): Ditto from maxminfprefix.
16315 (logic): Ditto from logicprefix.
16316 (absneg_mnemonic): Ditto from absnegprefix.
16317 * config/i386/mmx.md: Update all users of maxminiprefix,
16318 maxminfprefix and logicprefix for rename.
16319 * config/i386/sse.md: Ditto.
16320 * config/i386/sync.md (sync_<code><mode>): Update for
16321 logicprefix rename.
16323 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16326 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
16327 warnings converted to errors.
16329 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16331 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
16332 used insn_type variable.
16333 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
16334 to avoid set-but-not-used warning.
16336 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16338 * df-core.c (df_ref_debug): Change format string placeholder
16340 * dwarf2asm.c (dw2_asm_output_data_raw,
16341 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
16342 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
16343 * dwarf2out.c (output_cfi, output_cfi_directive,
16344 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
16345 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
16347 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
16348 * print-rtl.c (print_rtx): Ditto.
16350 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16352 PR middle-end/42694
16353 * builtins.c (expand_builtin_pow_root): New function to expand pow
16354 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
16355 series of sqrt and cbrt calls under -ffast-math.
16356 (expand_builtin_pow): Call it.
16358 2010-04-14 Michael Matz <matz@suse.de>
16360 PR tree-optimization/42963
16361 * tree-cfg.c (touched_switch_bbs): New static variable.
16362 (group_case_labels_stmt): New function broken out from ...
16363 (group_case_labels): ... here, use the above.
16364 (start_recording_case_labels): Allocate touched_switch_bbs.
16365 (end_recording_case_labels): Deallocate it, call
16366 group_case_labels_stmt.
16367 (gimple_redirect_edge_and_branch): Remember index of affected BB.
16369 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16371 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
16372 from insn template.
16374 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
16376 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
16378 2010-04-13 Jan Hubicka <jh@suse.cz>
16380 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
16381 of optimized out static functions.
16382 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
16383 cost computation. Also sanity check for overflows.
16384 (update_caller_keys): Update cgraph_edge_badness call; properly
16385 update fibheap and sanity check that it is up to date.
16386 (add_new_edges_to_heap): Update cgraph_edge_badness.
16387 (cgraph_decide_inlining_of_small_function): Likewise;
16388 add sanity checking that badness in heap is up to date;
16389 improve dumping of reason; Update badness of calls to the
16390 offline copy of function currently inlined; dump badness
16391 of functions not inlined because of unit growth limits.
16393 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
16395 PR middle-end/32628
16396 * c-common.c (pointer_int_sum): Disregard overflow that occured only
16397 because of sign-extension change when converting to sizetype here...
16398 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
16400 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
16401 the folding to constants. Remove redundant final conversion.
16402 (fold_binary) <associate>: Do not associate if the re-association of
16403 constants alone overflows.
16404 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
16405 to the end of the list.
16406 (multiple_of_p) <COND_EXPR>: New case.
16408 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
16410 * opt-functions.awk (opt_sanitized_name): New.
16412 * optc-gen.awk: Use it
16413 * opth-gen.awk: Use it.
16415 2010-04-13 Martin Jambor <mjambor@suse.cz>
16417 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
16418 (sra_modify_assign): Delete stmts loading dead data even if racc has no
16419 children. Call replace_uses_with_default_def_ssa_name to handle
16422 2010-04-13 Michael Matz <matz@suse.de>
16424 PR middle-end/43730
16425 * builtins.c (expand_builtin_interclass_mathfn): Also create
16426 a register if the predicate doesn't match.
16428 2010-04-13 Diego Novillo <dnovillo@google.com>
16430 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
16431 * c-pch.c: Include timevar.h.
16432 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
16433 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
16434 * ggc-common.c: Include timevar.h.
16435 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
16436 * timevar.def (TV_PCH_SAVE): Define.
16437 (TV_PCH_CPP_SAVE): Define.
16438 (TV_PCH_PTR_REALLOC): Define.
16439 (TV_PCH_PTR_SORT): Define.
16440 (TV_PCH_RESTORE): Define.
16441 (TV_PCH_CPP_RESTORE): Define.
16443 2010-04-13 Michael Matz <matz@suse.de>
16445 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
16447 (can_reassociate_p): New function.
16448 (break_up_subtract_bb, reassociate_bb): Use it.
16450 2010-04-13 Richard Guenther <rguenther@suse.de>
16453 * builtins.c (c_readstr): Fix assert.
16455 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
16457 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
16458 when generating cltd insn.
16460 (*ashl<mode>3_1): Remove special handling for register operand 2.
16461 (*ashlsi3_1_zext): Ditto.
16462 (*ashlhi3_1): Ditto.
16463 (*ashlhi3_1_lea): Ditto.
16464 (*ashlqi3_1): Ditto.
16465 (*ashlqi3_1_lea): Ditto.
16466 (*<shiftrt_insn><mode>3_1): Ditto.
16467 (*<shiftrt_insn>si3_1_zext): Ditto.
16468 (*<shiftrt_insn>qi3_1_slp): Ditto.
16469 (*<rotate_insn><mode>3_1): Ditto.
16470 (*<rotate_insn>si3_1_zext): Ditto.
16471 (*<rotate_insn>qi3_1_slp): Ditto.
16473 2010-04-13 Richard Guenther <rguenther@suse.de>
16475 * tree-ssa-structalias.c (callused_id): Remove.
16476 (call_stmt_vars): New.
16477 (get_call_vi): Likewise.
16478 (lookup_call_use_vi): Likewise.
16479 (lookup_call_clobber_vi): Likewise.
16480 (get_call_use_vi): Likewise.
16481 (get_call_clobber_vi): Likewise.
16482 (make_transitive_closure_constraints): Likewise.
16483 (handle_const_call): Adjust to do per-call call-used handling.
16484 (handle_pure_call): Likewise.
16485 (find_what_var_points_to): Remove general callused handling.
16486 (init_base_vars): Likewise.
16487 (init_alias_vars): Initialize call_stmt_vars.
16488 (compute_points_to_sets): Process call-used and call-clobbered
16489 vars for call statements.
16490 (delete_points_to_sets): Free call_stmt_vars.
16492 2010-04-13 Richard Guenther <rguenther@suse.de>
16494 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16495 Only add RW dependence for dependence distance zero.
16496 Adjust maximal vectorization factor according to dependences.
16497 Move alignment handling ...
16498 (vect_find_same_alignment_drs): ... here. New function.
16499 (vect_analyze_data_ref_dependences): Adjust.
16500 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
16501 (vect_analyze_data_refs): Adjust minimal vectorization factor
16502 according to data references.
16503 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
16504 dependences before determining the vectorization factor.
16505 Analyze alignment after determining the vectorization factor.
16506 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
16507 dependences before alignment.
16508 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
16510 (vect_analyze_data_refs): Likewise.
16511 (MAX_VECTORIZATION_FACTOR): New define.
16513 2010-04-13 Duncan Sands <baldrick@free.fr>
16515 * except.h (lang_eh_type_covers): Remove.
16516 * except.c (lang_eh_type_covers): Likewise.
16518 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16519 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16521 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
16522 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
16523 UNITS_PER_LONG where it is ABI relevant.
16524 (s390_return_addr_rtx): Likewise.
16525 (s390_back_chain_rtx): Likewise.
16526 (s390_frame_area): Likewise.
16527 (s390_frame_info): Likewise.
16528 (s390_initial_elimination_offset): Likewise.
16529 (save_gprs): Likewise.
16530 (s390_emit_prologue): Likewise.
16531 (s390_emit_epilogue): Likewise.
16532 (s390_function_arg_advance): Likewise.
16533 (s390_function_arg): Likewise.
16534 (s390_va_start): Likewise.
16535 (s390_gimplify_va_arg): Likewise.
16536 (s390_function_profiler): Likewise.
16537 (s390_optimize_prologue): Likewise.
16538 (s390_rtx_costs): Likewise.
16539 (s390_secondary_reload): Likewise.
16540 (s390_promote_function_mode): Likewise.
16541 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
16542 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
16543 registers available.
16544 (s390_unwind_word_mode): New function.
16545 (s390_function_value): Split 64 bit values into register pair if
16546 used as return value.
16547 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
16548 function call parameters. Handle parallels.
16549 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
16550 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
16551 (DWARF_CIE_DATA_ALIGNMENT): New macro.
16552 (s390_expand_setmem): Remove unused variable src_addr.
16553 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
16554 deal with 64 bit registers.
16555 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
16556 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
16557 (UNITS_PER_LONG): New macro.
16558 * libjava/include/s390-signal.h: Define extended ucontext
16559 structure containing the upper halfs of the 64 bit registers.
16561 2010-04-13 Simon Baldwin <simonb@google.com>
16563 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
16565 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
16567 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
16568 rvalue on the RHS if the LHS is of a non-renamable type.
16569 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
16571 2010-04-13 Matthias Klose <doko@ubuntu.com>
16573 * gcc.c (cc1_options): Handle -iplugindir before processing
16574 the cc1 spec. Only add -iplugindir once.
16575 (cpp_unique_options): Add -iplugindir option if -fplugin* options
16577 * common.opt (iplugindir): Remove `Separate' property, initialize.
16578 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
16580 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
16581 (distclean): Remove plugin dir.
16582 * doc/invoke.texi: Document -iplugindir.
16584 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
16586 * doc/plugins.texi (Loading Plugins): Document short
16587 -fplugin=foo option.
16588 (Plugin API): Mention default_plugin_dir_name function.
16590 * gcc.c (find_file_spec_function): Add new declaration.
16591 (static_spec_func): Use it for "find-file".
16592 (find_file_spec_function): Add new function.
16593 (cc1_options): Add -iplugindir option if -fplugin* options found.
16595 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
16597 * plugin.c (add_new_plugin): Updated comment, and handle short
16599 (default_plugin_dir_name): Added new function.
16601 * common.opt (iplugindir): New option to set the plugin directory.
16603 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
16605 * config/i386/i386.md (any_rotate): New code iterator.
16606 (rotate_insn): New code attribute.
16608 (SWIM124): New mode iterator.
16609 (<rotate_insn>ti3): New expander.
16610 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16611 any_rotate code iterator.
16612 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16613 using any_rotate code iterator and SWIM124 mode iterator.
16614 (ix86_rotlti3): New insn_and_split pattern.
16615 (ix86_rotrti3): Ditto.
16616 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16617 ix86_rotl{di,ti}3 patterns.
16618 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16619 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16620 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16621 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16622 code iterator and SWI mode iterator.
16623 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16624 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16626 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16627 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16628 (bswap rotatert splitter): Add splitter.
16629 (bswap splitter): Macroize splitter using any_rotate code iterator.
16630 Add insn predicate to split only for TARGET_USE_XCHGB or when
16631 optimizing function for size.
16633 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16635 * config/pa/pa.c (emit_move_sequence): Remove use of
16636 deleted variable flag_argument_noalias.
16638 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16640 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16642 Add to unsupported targets list.
16643 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16644 sparc*-sun-solaris2.[567]* from target lists.
16645 * configure: Regenerate.
16646 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16648 Remove Solaris 7 patch references.
16649 (Specific, sparc-sun-solaris2.7): Removed.
16650 (sparc-sun-solaris2*): Update Solaris 7 example.
16651 (sparc64-*-solaris2*): Likewise.
16653 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16655 * config.build (alpha*-dec-osf4*): Remove.
16656 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16657 of obsolete configurations.
16658 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16660 * config/alpha/t-osf4: Renamed to ...
16661 * config/alpha/t-osf5: ... this.
16662 * config/alpha/osf.h: Renamed to ...
16663 * config/alpha/osf5.h: ... this.
16664 Merged old osf5.h contents.
16666 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16667 (EXTRA_SPECS): Removed.
16668 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16669 reflect removal of Tru64 UNIX V4.0/V5.0 support.
16672 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16674 * doc/contrib.texi (Contributors, Rainer Orth): Update.
16676 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
16679 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16680 __thiscall convention.
16682 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16684 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16686 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16688 2010-04-12 Steve Ellcey <sje@cup.hp.com>
16690 * function.c (assign_parms_initialize_all): Add unused attribute
16693 2010-04-12 Richard Guenther <rguenther@suse.de>
16695 * gsstruct.def (GSS_CALL): New.
16696 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16697 * gimple.h: Include tree-ssa-alias.h.
16698 (struct gimple_statement_call): New.
16699 (union gimple_statement_struct_d): Add gimple_call member.
16700 (gimple_call_reset_alias_info): Declare.
16701 (gimple_call_use_set): New function.
16702 (gimple_call_clobber_set): Likewise.
16703 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16704 * gimple.c (gimple_call_reset_alias_info): New function.
16705 (gimple_build_call_1): Call it.
16706 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16707 * tree-inline.c (remap_gimple_stmt): Likewise.
16708 (expand_call_inline): Remove callused handling.
16709 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16710 * tree-dfa.c (dump_variable): Likewise.
16711 * tree-parloops.c (parallelize_loops): Likewise.
16712 * tree-ssa.c (init_tree_ssa): Likewise.
16713 (delete_tree_ssa): Likewise.
16714 * tree-flow-inline.h (is_call_used): Remove.
16715 * tree-flow.h (struct gimple_df): Remove callused member.
16716 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16717 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16718 (ref_maybe_used_by_call_p_1): Simplify.
16719 (call_may_clobber_ref_p_1): Likewise.
16720 * tree-ssa-structalias.c (compute_points_to_sets): Set
16721 the call stmt used and clobbered sets.
16722 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16723 (find_tail_calls): Verify the tail call.
16725 2010-04-12 Richard Guenther <rguenther@suse.de>
16727 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16728 single-iteration always-inline inlining.
16729 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16730 (cgraph_decide_inlining): Do not handle always-inline specially.
16731 (try_inline): Remove always-inline cycle detection special case.
16732 Do not recurse on always-inlines.
16733 (cgraph_early_inlining): Do not iterate if not optimizing.
16734 (cgraph_gate_early_inlining): remove.
16735 (pass_early_inline): Run unconditionally.
16736 (gate_cgraph_decide_inlining): New function.
16737 (pass_ipa_inline): Use it. Do not run the IPA inliner if
16738 not inlining or optimizing.
16739 (cgraph_decide_inlining_of_small_functions): Also consider
16740 always-inline functions.
16741 (cgraph_default_inline_p): Return true for nodes which should
16742 disregard inline limits.
16743 (estimate_function_body_sizes): Assume zero size and time for
16744 nodes which are marked as disregarding inline limits.
16745 (cgraph_decide_recursive_inlining): Do not perform recursive
16746 inlining on always-inline nodes.
16748 2010-04-12 Jakub Jelinek <jakub@redhat.com>
16751 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
16752 for exprs satisfying handled_component_p.
16754 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
16756 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
16757 non-constant aggregate elements.
16759 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
16760 is a real initialization.
16762 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
16765 * c-decl.c (start_function): Move forward check for nested function.
16767 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
16769 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
16770 * config/sh/sh.c: Include reload.h.
16771 (sh_legitimize_reload_address): New.
16772 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
16773 sh_legitimize_reload_address.
16775 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16777 * config/sh/sh.md (*movqi_pop): New insn pattern.
16778 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
16780 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
16782 * config/i386/i386.md (any_shiftrt): New code iterator.
16783 (shiftrt_insn): New code attribute.
16785 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
16786 using any_shiftrt code iterator.
16787 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
16788 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
16789 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
16790 pattern from corresponding peephole2 patterns.
16791 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
16792 using any_shiftrt code iterator.
16793 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
16794 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
16795 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
16796 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
16797 *{ashr,lshr}<mode>3_cmp_zext.
16798 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
16800 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
16802 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
16804 (*lshr<mode>3_cconly): Ditto.
16806 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
16808 * config/i386/i386.md (lshr<mode>3): Macroize expander from
16809 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16810 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
16811 pattern from *lshr{di,ti}3_1 and corresponding splitters using
16813 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16814 from corresponding peephole2 patterns.
16815 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
16816 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
16817 and *lshrdi3_1_rex64 using SWI mode iterator.
16818 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
16819 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
16820 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
16821 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
16822 and *lshrdi3_cmp_rex64 using SWI mode iterator.
16823 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
16824 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
16825 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
16826 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
16829 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
16831 * config/i386/i386.md (ashr<mode>3): Macroize expander from
16832 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16833 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
16834 pattern from *ashr{di,ti}3_1 and corresponding splitters using
16836 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
16837 from corresponding peephole2 patterns.
16838 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
16839 (ashrsi3_cvt): Rename from ashrsi3_31.
16840 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
16841 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
16842 and x86_64_shift_adj_3 using SWI48 mode iterator.
16843 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
16844 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
16845 and *ashrdi3_1_rex64 using SWI mode iterator.
16846 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
16847 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
16848 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
16849 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
16850 and *ashrdi3_cmp_rex64 using SWI mode iterator.
16851 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
16852 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
16853 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
16854 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
16856 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
16857 * config/i386/i386.c (ix86_split_ashr): Update for renamed
16858 x86_shift<mode>_adj_3 expanders.
16860 2010-04-10 Wei Guozhi <carrot@google.com>
16863 * config/arm/arm.c (arm_pic_static_addr): New function.
16864 (legitimize_pic_address): Call arm_pic_static_addr when it detects
16866 (arm_output_addr_const_extra): Output expression for new pattern.
16867 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
16869 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
16871 * ira-costs.c (record_reg_classes): Ignore alternatives that are
16874 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
16875 * web.c: Include "insn-config.h" and "recog.h".
16876 (union_match_dups): New function.
16877 (web_main): Call it.
16878 (union_defs): Don't try to recognize match_dups.
16880 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
16881 if doing so would replace the entire pattern.
16883 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
16887 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
16888 and splitter pattern. Change splitter operand 1 predicate to
16891 2010-04-09 Martin Jambor <mjambor@suse.cz>
16893 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
16894 lattices are addresses of CONST_DECLs with the same initial value.
16895 (ipcp_print_all_lattices): Print values of CONST_DECLs.
16896 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
16898 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
16899 Bernd Schmidt <bernds@codesourcery.com>
16901 * loop-invariant.c (replace_uses): New static function.
16902 (move_invariant_reg): Use it to ensure we can replace the uses.
16904 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
16906 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
16908 (picochip_override_options): Enable section anchors only above -O1.
16909 (picochip_reorg): Fixed a couple of build warnings.
16911 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16913 * configure.ac (plugin -rdynamic test): Log result.
16914 * configure: Regenerate.
16915 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
16916 (RDYNAMIC_SPEC): Define.
16917 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
16919 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16921 * configure.ac: Determine Sun ld version numbers.
16922 (comdat_group): Restrict GNU ld version checks to gld.
16923 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
16924 (enable_comdat): Support --enable-comdat.
16925 * configure: Regenerate.
16926 * doc/install.texi (Configuration): Document --enable-comdat.
16928 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16930 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
16931 * config/sol2-gld.h: ... here.
16932 * config.gcc (sparc*-*-solaris2*): Reflect this.
16933 (i[34567]86-*-solaris2*): Use it.
16935 2010-04-09 Steve Ellcey <sje@cup.hp.com>
16937 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
16939 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
16941 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
16944 * diagnostic.c (diagnostic_initialize): Initialize
16945 some_warnings_are_errors.
16946 (diagnostic_finish): New.
16947 (diagnostic_action_after_output): Call it before exiting.
16948 (diagnostic_report_diagnostic): Do not print message here. Set
16949 some_warnings_are_errors.
16950 * diagnostic.h (diagnostic_context): Delete
16951 issue_warnings_are_errors_message. Add some_warnings_are_errors.
16952 (diagnostic_finish): Declare.
16953 * toplev.c (toplev_main): Call it before exit.
16955 2010-04-09 Jason Merrill <jason@redhat.com>
16958 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
16959 for incomplete type.
16962 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
16963 based on a warning flag.
16965 2010-04-09 Richard Guenther <rguenther@suse.de>
16967 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
16969 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
16972 * varasm.c (default_assemble_visibility): Wrap vars that are
16973 set, but unused, by targets without GAS.
16974 * config/rs6000/rs6000.c (paired_emit_vector_compare):
16975 Remove set, but unused, vars.
16976 (rs6000_legitimize_tls_address): Likewise.
16977 (altivec_expand_dst_builtin): Likewise.
16978 * config/darwin.c (machopic_classify_symbol): Likewise.
16979 (machopic_indirection_name): Likewise.
16981 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
16983 * config/i386/i386.md (DWI): New mode iterator.
16984 (S): New mode attribute.
16985 (shift_operand): Ditto.
16986 (shift_immediate_operand): Ditto.
16987 (ashl_input_operand): Ditto.
16988 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
16989 using SDWIM mode iterator.
16990 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
16991 pattern from *ashl{di,ti}3_1 and corresponding splitters using
16993 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
16994 from corresponding peephole2 patterns.
16995 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
16996 and x86_64_shift_adj_1 using SWI48 mode iterator.
16997 (x86_shift<mode>_adj_2): Ditto.
16998 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
16999 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
17000 using SWI48 mode iterator.
17001 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
17002 *ashldi3_cmp_rex64 using SWI mode iterator.
17003 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
17004 *ashldi3_cconly_rex64 using SWI mode iterator.
17005 * config/i386/i386.c (ix86_split_ashl): Update for renamed
17006 x86_shift<mode>_adj_{1,2}.
17007 (ix86_split_ashr): Ditto.
17008 (ix86_split_lshr): Ditto.
17010 2010-04-09 Richard Guenther <rguenther@suse.de>
17012 * target.h (builtin_conversion): Pass in input and output types.
17013 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
17014 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
17015 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
17016 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
17018 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
17020 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
17022 2010-04-09 Richard Guenther <rguenther@suse.de>
17025 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
17027 2010-04-09 Richard Guenther <rguenther@suse.de>
17029 * tree-vectorizer.h (struct _stmt_vec_info): Document
17030 that vectype is the type of the LHS.
17031 (supportable_widening_operation, supportable_narrowing_operation):
17032 Get both input and output vector types as arguments.
17033 (vect_is_simple_use_1): Declare.
17034 (get_same_sized_vectype): Likewise.
17035 * tree-vect-loop.c (vect_determine_vectorization_factor):
17036 Set STMT_VINFO_VECTYPE to the vector type of the def.
17037 (vectorizable_reduction): Adjust.
17038 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
17039 Adjust. Specify the output vector type.
17040 (vect_pattern_recog_1): Adjust.
17041 * tree-vect-stmts.c (get_same_sized_vectype): New function.
17042 (vectorizable_call): Adjust.
17043 (vectorizable_conversion): Likewise.
17044 (vectorizable_operation): Likewise.
17045 (vectorizable_type_demotion): Likewise.
17046 (vectorizable_type_promotion): Likewise.
17047 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
17049 (vect_is_simple_use_1): New function.
17050 (supportable_widening_operation): Get both input and output
17052 (supportable_narrowing_operation): Likewise.
17053 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
17055 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
17057 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
17058 __thiscall and _thiscall as predefined macros.
17059 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
17060 thiscall attribute handling.
17061 (ix86_comp_type_attributes): Likewise.
17062 (ix86_function_regparm): Likewise.
17063 (ix86_return_pops_args): Likewise.
17064 (init_cumulative_args): Likewise.
17065 (find_drap_reg): Likewise.
17066 (ix86_static_chain): Likewise.
17067 (x86_this_parameter): Likewise.
17068 (x86_output_mi_thunk): Likewise.
17069 (ix86_attribute_table): Add description for thiscall attribute.
17070 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
17071 * doc/extend.texi: Add documentation for thiscall.
17073 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17076 * c.opt (Wint-to-pointer-cast): Available in C++.
17077 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
17079 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
17081 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
17082 * calls.c (expand_call): Pass the function type to aggregate_value_p.
17083 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
17084 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
17085 function type instead. Reorder and simplify checks.
17087 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
17089 2010-04-08 Jing Yu <jingyu@google.com>
17090 Zdenek Dvorak <ook@ucw.cz>
17092 PR tree-optimization/42720
17093 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
17094 loop unswitch conditions here from ...
17095 (tree_unswitch_single_loop): ... here.
17097 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
17099 * tree-if-conv.c: Fix comments and simplify logic.
17101 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
17103 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
17104 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
17105 (main_tree_if_conversion): Update call to tree_if_conversion.
17107 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17110 * doc/invoke.texi (-b,-V): Delete.
17111 * doc/tm.texi: Do not mention -b.
17112 * gcc.c (display_help): Delete -b and -V.
17113 (process_command): Delete -b and -V.
17114 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
17116 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
17117 Wolfgang Gellerich <gellerich@de.ibm.com>
17119 Implement target hook for loop unrolling
17120 * target.h (loop_unroll_adjust): Add a new target hook function.
17121 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
17122 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
17123 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
17124 (s390_loop_unroll_adjust): Implement the new target hook for s390.
17125 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
17127 (decide_unroll_stupid): Likewise.
17129 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17132 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
17134 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17136 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
17137 (Specific, *-*-solaris2*): Likewise.
17138 Don't prefer Sun as over GNU as.
17140 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
17142 * config/s390/s390.c (override_options): Adjust the z10 defaults
17143 for max-unroll-times, max-completely-peeled-insns
17144 and max-completely-peel-times.
17146 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17148 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
17149 instructions for z10.
17150 (s390_expand_setmem): Likewise.
17151 (s390_expand_cmpmem): Likewise.
17153 2010-04-08 Richard Guenther <rguenther@suse.de>
17155 PR tree-optimization/43679
17156 * tree-ssa-pre.c (eliminate): Only propagate copies.
17158 2010-04-08 Jakub Jelinek <jakub@redhat.com>
17161 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
17162 set but not used variable warning.
17164 2010-04-08 Wei Guozhi <carrot@google.com>
17167 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
17168 (arm_size_rtx_costs): Call the new function when optimized for size.
17170 2010-04-08 Jakub Jelinek <jakub@redhat.com>
17173 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
17174 op0 is not a MEM, just return NULL instead of assertion
17176 (discover_nonconstant_array_refs): Don't walk debug stmts.
17178 2010-04-08 Doug Kwan <dougkwan@google.com>
17180 * configure.ac: Recognize gold and do not use its version number
17181 to test ld features.
17182 * configure: Regenerate.
17184 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
17186 PR middle-end/40815
17187 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
17188 (negate_value): Move code to push elements to broken_up_substracts ...
17189 (eliminate_plus_minus_pair): ... here. Push operands that have no
17190 negative pair to plus_negates.
17191 (repropagate_negates, init_reassoc, fini_reassoc): Update.
17193 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17195 * doc/install.texi (Configuration): Move description of
17196 --enable-lto, --with-libelf*, --enable-gold from Java section to
17199 * doc/generic.texi (Working with declarations)
17200 (Function Properties, C and C++ Trees): Fix typos.
17201 * doc/sourcebuild.texi (Top Level): Likewise.
17203 2010-04-07 Jakub Jelinek <jakub@redhat.com>
17206 * tree.h (DECL_READ_P): Define.
17207 (struct tree_decl_common): Add decl_read_flag.
17208 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
17209 a set but not used warning.
17210 (merge_decls): Merge DECL_READ_P flag.
17211 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
17212 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
17213 * c-common.c (handle_used_attribute, handle_unused_attribute):
17215 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
17217 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
17219 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
17220 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
17221 c_parser_binary_expression, c_parser_cast_expression,
17222 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
17223 Call default_function_array_read_conversion instead of
17224 default_function_array_conversion where needed.
17225 (c_parser_unary_expression, c_parser_conditional_expression,
17226 c_parser_postfix_expression_after_primary, c_parser_initelt):
17227 Likewise. Call mark_exp_read where needed.
17228 (c_parser_statement_after_labels, c_parser_asm_operands,
17229 c_parser_typeof_specifier, c_parser_sizeof_expression,
17230 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
17232 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
17234 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
17235 (warn_unused_but_set_parameter): Default to warn_unused
17237 * doc/invoke.texi: Document -Wunused-but-set-variable and
17238 -Wunused-but-set-parameter.
17240 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
17241 used count variable.
17242 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
17243 when operandN variables aren't used in the body of the expander
17245 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
17246 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
17247 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
17248 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
17249 FOR_EACH_IMM_USE_ON_STMT): Likewise.
17250 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
17251 * tree.c (PROCESS_ARG): Likewise.
17253 2010-04-07 Simon Baldwin <simonb@google.com>
17255 * diagnostic.h (diagnostic_override_option_index): New macro to
17256 set a diagnostic's option_index.
17257 * c-tree.h (c_cpp_error): Add warning reason argument.
17258 * opts.c (_warning_as_error_callback): New.
17259 (register_warning_as_error_callback): Store callback for
17260 warnings enabled via enable_warning_as_error.
17261 (enable_warning_as_error): Call callback, minor code tidy.
17262 * opts.h (register_warning_as_error_callback): Declare.
17263 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
17264 response to -Werror=.
17265 (c_common_init_options): Register warning_as_error_callback in opts.c.
17266 * common.opt: Add -Wno-cpp option.
17267 * c-common.c (struct reason_option_codes_t): Map cpp warning
17268 reason codes to gcc option indexes.
17269 * (c_option_controlling_cpp_error): New function, lookup the gcc
17270 option index for a cpp warning reason code.
17271 * (c_cpp_error): Add warning reason argument, call
17272 c_option_controlling_cpp_error for diagnostic_override_option_index.
17273 * doc/invoke.texi: Document -Wno-cpp.
17275 2010-04-07 Richard Guenther <rguenther@suse.de>
17277 * ipa-reference.c (mark_load): Use get_base_address.
17278 (mark_store): Likewise.
17280 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
17281 inserting GIMPLE_NOPs into the IL.
17282 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17283 Explicitly strip handled components and indirect references.
17285 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
17286 folding address expressions.
17287 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
17288 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
17289 operand_equal_p to compare decls.
17290 (ptr_deref_may_alias_decl_p): Likewise.
17291 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
17292 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
17293 Handle reversed comparison ops.
17294 * tree-sra.c (asm_visit_addr): Use get_base_address.
17295 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
17296 * ipa-reference.c (mark_address): Use get_base_address.
17298 2010-04-07 Richard Guenther <rguenther@suse.de>
17300 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17301 Propagate constants everywhere.
17303 2010-04-07 Jakub Jelinek <jakub@redhat.com>
17306 * tree.c (MAX_INT_CACHED_PREC): Define.
17307 (nonstandard_integer_type_cache): New array.
17308 (build_nonstandard_integer_type): Cache results for precision
17309 <= MAX_INT_CACHED_PREC.
17311 2010-04-07 Richard Guenther <rguenther@suse.de>
17313 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
17314 -fargument-noalias-global, -fargument-noalias-anything): Remove.
17315 * common.opt: Likewise.
17316 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
17317 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
17318 (nonoverlapping_memrefs_p): Likewise.
17319 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17320 * opts.c (common_handle_option): Handle OPT_fargument_alias,
17321 OPT_fargument_noalias, OPT_fargument_noalias_anything and
17322 OPT_fargument_noalias_global for backward compatibility.
17324 2010-04-07 Richard Guenther <rguenther@suse.de>
17326 PR tree-optimization/43270
17327 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
17328 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
17329 * tree-ssa-pre.c (phi_translate_1): Adjust.
17330 (fully_constant_expression): Split out vn_reference handling to ...
17331 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
17332 Fold reads from constant strings.
17333 (vn_reference_lookup): Handle fully constant references.
17334 (vn_reference_lookup_pieces): Likewise.
17335 * Makefile.in (expmed.o-warn): Add -Wno-error.
17337 2010-04-07 Martin Jambor <mjambor@suse.cz>
17339 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
17341 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
17344 * gcc.c: Add -static-libstdc++ to list of recognized options.
17346 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17348 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
17350 2010-04-07 Richard Guenther <rguenther@suse.de>
17352 PR middle-end/42617
17353 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
17354 bases build simple mem attributes to retain points-to information.
17356 2010-04-07 Richard Guenther <rguenther@suse.de>
17358 PR middle-end/42617
17359 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
17360 preserve points-to related information.
17362 2010-04-07 Richard Guenther <rguenther@suse.de>
17364 PR middle-end/42617
17365 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
17366 discard plain indirect references.
17367 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
17368 * tree.c (tree_nop_conversion): Likewise.
17370 2010-04-07 Dodji Seketeli <dodji@redhat.com>
17373 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
17375 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
17377 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
17378 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
17380 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17382 * tree-if-conv.c: Fix indentation and comments.
17384 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17386 * tree-if-conv.c: Sort static functions in topological order.
17388 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
17390 * tree-if-conv.c: Fix indentation and comments.
17392 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17394 PR middle-end/43519
17395 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
17396 lang_hooks.types.type_for_size instead of
17397 build_nonstandard_integer_type.
17398 When converting an unsigned type to signed, double its precision.
17399 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
17400 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
17401 (graphite_create_new_loop_guard): When ub + 1 wraps around,
17404 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17406 PR middle-end/43519
17407 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17408 POINTER_PLUS_EXPR for pointer types.
17410 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17412 PR middle-end/43519
17413 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
17414 * graphite-clast-to-gimple.c: Include langhooks.h.
17415 (max_signed_precision_type): New.
17416 (max_precision_type): Takes two types as arguments.
17417 (precision_for_value): New.
17418 (precision_for_interval): New.
17419 (gcc_type_for_interval): New.
17420 (gcc_type_for_value): New.
17421 (gcc_type_for_clast_term): New.
17422 (gcc_type_for_clast_red): New.
17423 (gcc_type_for_clast_bin): New.
17424 (gcc_type_for_clast_expr): Split up into several functions.
17425 (gcc_type_for_clast_eq): Rewritten.
17426 (compute_bounds_for_level): New.
17427 (compute_type_for_level_1): New.
17428 (compute_type_for_level): New.
17429 (gcc_type_for_cloog_iv): Removed.
17430 (gcc_type_for_iv_of_clast_loop): Rewritten.
17431 (graphite_create_new_loop): Compute the lower and upper bound types
17432 with gcc_type_for_clast_expr.
17433 (graphite_create_new_loop_guard): Same.
17434 (find_cloog_iv_in_expr): Removed.
17435 (compute_cloog_iv_types_1): Removed.
17436 (compute_cloog_iv_types): Removed.
17437 (gloog): Do not call compute_cloog_iv_types.
17438 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
17439 GBB_CLOOG_IV_TYPES.
17440 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
17441 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
17442 (GBB_CLOOG_IV_TYPES): Removed.
17444 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17446 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
17447 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
17448 (detect_commutative_reduction): Same.
17450 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17452 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
17453 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
17455 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
17456 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
17457 (rewrite_commutative_reductions_out_of_ssa): Same.
17458 * passes.c (execute_function_todo): Call verify_ssa for every pass
17459 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
17460 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
17461 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
17462 with an extra argument.
17463 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
17464 verify_ssa only when the extra argument is true.
17465 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
17466 with an extra argument.
17467 (tree_transform_and_unroll_loop): Same.
17469 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
17471 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
17472 for all the passes of the LNO having LOOP_CLOSED_SSA.
17473 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
17474 * tree-loop-distribution.c (pass_loop_distribution): Same.
17475 * tree-pass.h (TODO_verify_loops): Removed.
17476 * tree-ssa-loop.c (pass_tree_loop_init): Same.
17478 (pass_tree_unswitch): Same.
17479 (pass_predcom): Same.
17480 (pass_vectorize): Same.
17481 (pass_linear_transform): Same.
17482 (pass_graphite_transforms): Same.
17483 (pass_iv_canon): Same.
17484 (pass_complete_unroll): Same.
17485 (pass_complete_unrolli): Same.
17486 (pass_parallelize_loops): Same.
17487 (pass_loop_prefetch): Same.
17488 (pass_iv_optimize): Same.
17490 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
17492 PR middle-end/32824
17493 * passes.c (init_optimization_passes): Move pass_lim before
17494 pass_copy_prop and pass_dce_loop.
17496 2010-04-06 Jakub Jelinek <jakub@redhat.com>
17499 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
17500 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
17501 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
17502 MULTI_* defines for 4 argument vpermil2p* builtins.
17504 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
17506 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
17507 * config/i386/i386.c (x86_maybe_negate_const_int): New.
17508 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
17509 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
17510 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
17511 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
17512 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
17513 Use x86_maybe_negate_const_int to output insn mnemonic.
17514 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
17515 check from instruction predicate. Update comments.
17516 * config/i386/sync.md (sync_add<mode>): Use
17517 x86_maybe_negate_const_int to output insn mnemonic.
17519 2010-04-06 Jan Hubicka <jh@suse.cz>
17521 PR tree-optimization/42906
17522 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
17523 IGNORE_SELF argument. Set visited_control_parents for fully
17525 (find_obviously_necessary_stmts): Update call of
17526 mark_control_dependent_edges_necessary.
17527 (propagate_necessity): Likewise. Handle PHI edges more curefully.
17529 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
17531 * config/i386/i386.md: Remove comment about 'e' and 'E'
17534 2010-04-06 Richard Guenther <rguenther@suse.de>
17536 PR tree-optimization/43627
17537 * tree-vrp.c (extract_range_from_unary_expr): Widenings
17538 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
17541 2010-04-06 Jakub Jelinek <jakub@redhat.com>
17543 * BASE-VER: Change to 4.6.0.
17546 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
17549 2010-04-06 Richard Guenther <rguenther@suse.de>
17551 PR middle-end/43661
17552 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
17554 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17556 * doc/invoke.texi (Optimize Options): Document that LTO
17557 won't remove object access purely due to incompatible
17560 2010-04-04 Matthias Klose <doko@ubuntu.com>
17562 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
17563 Initialize variable.
17565 2010-04-03 Richard Guenther <rguenther@suse.de>
17567 PR middle-end/42509
17568 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
17569 require a non-NULL MEM_OFFSET.
17571 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
17573 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
17574 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
17575 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
17576 config/alpha/predicates.md, config/arm/arm.md,
17577 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
17578 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
17579 config/darwin9.h, config/darwin.c, config/darwin.h,
17580 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
17581 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
17582 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
17583 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
17584 config/mips/mips.md, config/mn10300/mn10300.c,
17585 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
17586 config/rs6000/aix.h, config/rs6000/dfp.md,
17587 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
17588 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
17589 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
17590 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
17591 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
17592 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
17593 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
17594 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
17595 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
17596 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
17597 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
17598 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
17599 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
17600 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
17601 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
17602 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
17603 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
17604 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
17605 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
17606 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
17607 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
17608 opt-functions.awk, opth-gen.awk, params.def, passes.c,
17609 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17610 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17611 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17612 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17613 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17614 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17615 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17616 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17617 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17618 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17619 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17620 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17621 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17622 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17624 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17627 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17628 * aclocal.m4: Regenerate.
17630 2010-04-02 Richard Guenther <rguenther@suse.de>
17632 PR tree-optimization/43629
17633 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17634 if we have seen a constant value.
17636 2010-04-02 Joseph Myers <joseph@codesourcery.com>
17638 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17640 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
17643 * arm.c (legitimize_tls_address): Adjust call to
17644 gen_tls_load_dot_plus_four.
17645 (arm_note_pic_base): New function.
17646 (arm_cannot_copy_insn_p): Use it.
17647 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17650 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17655 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17657 * Makefile.in ($(out_object_file)): Depend on
17658 gt-$(basename $(notdir $(out_file))).h.
17660 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
17662 * config.gcc (lm32-*-rtems*): Add t-lm32.
17664 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
17666 * config.gcc: Add lm32-*-rtems*.
17667 * config/lm32/rtems.h: New file.
17669 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
17672 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17674 2010-04-01 Jakub Jelinek <jakub@redhat.com>
17676 * dwarf2out.c (output_compilation_unit_header): For
17677 -gdwarf-4 use version 4 instead of version 3.
17678 (output_line_info): For version 4 and above emit additional
17679 maximum ops per insn header field.
17680 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17682 * dwarf2out.c (is_c_family, is_java): Remove.
17683 (lower_bound_default): New function.
17684 (add_bound_info, gen_descr_array_type_die): Use it.
17686 2010-04-01 Dodji Seketeli <dodji@redhat.com>
17689 * dwarf2out.c (gen_variable_die): Allow debug info for variable
17690 re-declaration when it happens in a function.
17692 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
17694 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17695 (cgraph_remove_function_insertion_hook): Same.
17696 (cgraph_call_function_insertion_hooks): Same.
17698 2010-04-01 Richard Guenther <rguenther@suse.de>
17700 PR middle-end/43614
17701 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17702 and TREE_THIS_VOLATILE.
17703 (copy_ref_info): Likewise.
17704 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17705 * tree.c (build6_stat): Ignore side-effects of all but arg5
17706 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
17709 2010-04-01 Richard Guenther <rguenther@suse.de>
17711 PR tree-optimization/43607
17712 * ipa-type-escape.c (check_call): Do not access non-existing
17715 2010-04-01 Richard Guenther <rguenther@suse.de>
17717 PR middle-end/43602
17719 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
17720 Jack Howarth <howarth@bromo.med.uc.edu>
17722 * tree-profile.c (tree_init_ic_make_global_vars): Make static
17725 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17727 * doc/install.texi (Prerequisites): Document libelf usability on
17728 IRIX 5/6 and Solaris 2.
17729 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17730 Update GNU as, GNU ld requirements.
17731 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17732 Document Sun Studio compiler download.
17733 Update and simplify as, ld recommendations.
17734 (Specific, *-*-solaris2.7): Note obsoletion, removal.
17736 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17738 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17739 with_tune_32 to pentium4.
17741 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
17743 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
17745 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17747 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
17748 obsoletion, removal.
17750 Document GNU as requirement.
17751 Update configure requirements.
17752 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
17753 Recomment IRIX 6.5.18+.
17754 Document IDF/IDL requirement.
17755 Document GNU as requirement.
17756 Document GNU ld bootstrap failure.
17757 Remove freeware.sgi.com reference.
17759 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17761 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
17762 UNIX V4.0, V5.0 obsoletion, removal.
17763 Remove --with-gc=simple reference.
17764 Update VM requirements during bootstrap.
17765 Remove -oldas bootstrap description.
17766 Update binutils reference.
17767 Remove comparison failure note.
17769 2010-03-31 Richard Guenther <rguenther@suse.de>
17770 Zdenek Dvorak <ook@ucw.cz>
17771 Sebastian Pop <sebastian.pop@amd.com>
17773 PR middle-end/43464
17774 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
17775 with multiple arguments.
17776 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
17778 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
17780 * graphite-dependences.c (print_pddr): Call print_pdr with an
17782 * graphite-poly.c (debug_pdr): Add an extra argument for the
17785 (print_pbb_domain): Same.
17787 (print_scop_context): Same.
17788 (print_scop): Same.
17789 (print_cloog): Same.
17790 (debug_pbb_domain): Same.
17792 (print_pdrs): Same.
17793 (debug_pdrs): Same.
17794 (debug_scop_context): Same.
17795 (debug_scop): Same.
17796 (debug_cloog): Same.
17797 (print_scop_params): Same.
17798 (debug_scop_params): Same.
17799 (print_iteration_domain): Same.
17800 (print_iteration_domains): Same.
17801 (debug_iteration_domain): Same.
17802 (debug_iteration_domains): Same.
17803 (print_scattering_function): Same.
17804 (print_scattering_functions): Same.
17805 (debug_scattering_function): Same.
17806 (debug_scattering_functions): Same.
17807 * graphite-poly.h (debug_pdr): Update declaration.
17809 (print_pbb_domain): Same.
17811 (print_scop_context): Same.
17812 (print_scop): Same.
17813 (print_cloog): Same.
17814 (debug_pbb_domain): Same.
17816 (print_pdrs): Same.
17817 (debug_pdrs): Same.
17818 (debug_scop_context): Same.
17819 (debug_scop): Same.
17820 (debug_cloog): Same.
17821 (print_scop_params): Same.
17822 (debug_scop_params): Same.
17823 (print_iteration_domain): Same.
17824 (print_iteration_domains): Same.
17825 (debug_iteration_domain): Same.
17826 (debug_iteration_domains): Same.
17827 (print_scattering_function): Same.
17828 (print_scattering_functions): Same.
17829 (debug_scattering_function): Same.
17830 (debug_scattering_functions): Same.
17832 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
17834 * graphite-poly.c (print_scattering_function_1): New.
17835 (print_scattering_function): Call it.
17836 (print_scop_params): Remove spaces at the end of lines.
17837 (print_cloog): New.
17838 (debug_cloog): New.
17839 * graphite-poly.h (print_cloog): Declared.
17840 (debug_cloog): Declared.
17842 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
17844 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
17846 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
17847 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
17848 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
17849 to switch between adding the IV bump in loop->latch or in loop->header.
17851 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
17853 * graphite-poly.c (print_scattering_function): Pretty print following
17854 the scoplib format.
17856 (print_pbb_domain): Same.
17857 (dump_gbb_cases): Same.
17858 (dump_gbb_conditions): Same.
17859 (print_pdrs): Same.
17861 (print_scop_params): Same.
17862 (print_scop_context): Same.
17863 (print_scop): Same.
17864 (print_pbb_body): New.
17865 (lst_indent_to): New.
17866 (print_lst): Start new lines with a #.
17867 * graphite-poly.h (pbb_bb): New.
17868 (pbb_index): Use pbb_bb.
17869 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
17871 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
17873 2010-03-31 Jakub Jelinek <jakub@redhat.com>
17875 * dwarf2out.c (size_of_die): For -gdwarf-4 use
17876 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
17877 and 0 instead of 1 for dw_val_class_flag.
17878 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
17879 dw_val_class_range_list, dw_val_class_loc_list,
17880 dw_val_class_lineptr and dw_val_class_macptr, use
17881 DW_FORM_flag_present for dw_val_class_flag and
17882 DW_FORM_exprloc for dw_val_class_loc.
17883 (output_die): For -gdwarf-4 print dw_val_class_loc
17884 size as uleb128 instead of 1 or 2 bytes and don't print
17885 anything for dw_val_class_flag.
17887 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
17888 instead of cselib_lookup following by tweaking locs->setting_insn.
17891 * cselib.c (cselib_process_insn): Clear cselib_current_insn
17892 even before returning from label, setjmp call or volatile asm
17895 2010-03-31 Richard Guenther <rguenther@suse.de>
17897 PR middle-end/43600
17898 * cgraphunit.c (cgraph_output_in_order): Do not allocate
17899 temporary data on stack.
17901 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17903 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
17904 (PUSHSECTION_ASM_OP): Remove.
17905 (POPSECTION_ASM_OP): Remove.
17906 (PUSHSECTION_FORMAT): Remove.
17907 * config/sol2.h (PUSHSECTION_FORMAT): Define.
17908 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
17909 * config/sol2.c (solaris_output_init_fini): Use it.
17911 2010-03-31 Jie Zhang <jie@codesourcery.com>
17914 * opt-functions.awk (var_type_struct): Use signed char type
17915 for simple variables.
17917 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17919 * config/sol2.c: Include output.h.
17920 (solaris_assemble_visibility): New function.
17921 * config/t-sol2 (sol2.o): Add output.h dependency.
17922 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
17923 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
17926 2010-03-31 Jakub Jelinek <jakub@redhat.com>
17929 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
17930 V2SImode or XFmode on PRE_DEC.
17933 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
17936 2010-03-31 Jie Zhang <jie@codesourcery.com>
17939 * reload.h (caller_save_initialized_p): Declare.
17940 * toplev.c (backend_init_target): Don't call
17941 init_caller_save but set caller_save_initialized_p to false.
17942 * caller-save.c (caller_save_initialized_p): Define.
17943 (init_caller_save): Check caller_save_initialized_p.
17944 * ira.c (ira): Call init_caller_save if flag_caller_saves.
17946 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17949 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
17950 and soft-fp/t-softfp to tmake_file.
17951 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
17952 (LIBGCC2_TF_CEXT): Define.
17955 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
17958 * cselib.c (n_useless_values): Document handling of debug locs.
17959 (n_useless_debug_values, n_debug_values): New variables.
17960 (new_elt_loc_list): Don't add to debug values, keep count.
17961 (promote_debug_loc): New.
17962 (cselib_reset_table): Zero new variables.
17963 (entry_and_rtx_equal_p): Promote debug locs.
17964 (discard_useless_locs): Increment n_useless_debug_values for
17966 (remove_useless_values): Adjust n_useless_values and n_debug_values
17967 with n_useless_debug_values.
17968 (add_mem_for_addr): Promote debug locs.
17969 (cselib_lookup_mem): Likewise.
17970 (cselib_lookup_addr): Renamed to...
17971 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
17972 (cselib_log_lookup): ... this. Turn into...
17973 (cselib_lookup_addr): ... new wrapper.
17974 (cselib_lookup_from_insn): New.
17975 (cselib_invalidate_regno): Increment n_useless_debug_values for
17977 (cselib_invalidate_mem): Likewise.
17978 (cselib_process_insn): Take n_deleted and n_debug_values into
17979 account to guard remove_useless_value call.
17980 (cselib_finish): Zero n_useless_debug_values.
17981 * cselib.h (cselib_lookup_from_insn): Declare.
17982 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
17983 (sched_analyze_2): Likewise.
17985 2010-03-30 Jakub Jelinek <jakub@redhat.com>
17987 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
17989 (adjust_mems): Replace narrowing SUBREG of expression containing
17990 just PLUS, MINUS, MULT and ASHIFT of registers and constants
17991 with operations in the narrower mode.
17994 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
17995 regs_invalidated_by_call instead all call_used_reg_set registers.
17997 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
17999 PR middle-end/43430
18000 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
18001 pointer comparisons with types_compatible_p.
18002 * tree-vect-stmts.c (vectorizable_call): Same.
18003 (vectorizable_condition): Same.
18005 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18007 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
18008 stack check if the mask would be zero.
18010 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
18011 Jack Howarth <howarth@bromo.med.uc.edu>
18013 * tree-profile.c (tree_init_ic_make_global_vars): Make static
18016 2010-03-30 Joseph Myers <joseph@codesourcery.com>
18019 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
18021 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
18022 Include ___unordxf2 and ___unordtf2.
18023 * config/i386/libgcc-glibc.ver: Do not define inheritance from
18026 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
18028 * config/lm32/t-lm32: New file.
18029 * config.gcc: Use the above file when targetting lm32.
18031 2010-03-28 Duncan Sands <baldrick@free.fr>
18033 * Makefile.in (PLUGIN_HEADERS): Add except.h.
18035 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
18037 PR middle-end/43431
18038 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
18039 Improve vectorization cost model diagnostic.
18041 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
18043 PR middle-end/43436
18044 * tree-vect-data-refs.c (vect_analyze_data_refs): When
18045 compute_data_dependences_for_loop returns false, early exit
18046 and output an extra diagnostic for the failed data reference
18049 2010-03-29 Richard Guenther <rguenther@suse.de>
18051 PR tree-optimization/43560
18052 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
18053 (can_sm_ref_p): Treat stores to readonly locations as trapping.
18055 2010-03-29 Jie Zhang <jie@codesourcery.com>
18058 * toplev.c (process_options): Set optimization_default_node
18059 and optimization_current_node.
18060 * opts.c (decode_options): Don't set optimization_default_node
18061 and optimization_current_node.
18063 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
18065 * config/rtems.h: Abandon -qrtems_debug.
18067 2010-03-28 Jan Hubicka <jh@suse.cz>
18069 PR tree-optimization/43505
18070 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
18071 map should not be copied.
18073 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18075 PR middle-end/41674
18076 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
18077 cdtors, set DECL_PRESERVE_P.
18078 * ipa.c (cgraph_externally_visible_p): Return true if declaration
18079 should be preseved.
18081 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
18083 PR tree-optimization/43528
18084 * stor-layout.c (place_field): Check that constant fits into
18085 unsigned HWI when skipping calculation of MS bitfield layout.
18087 2010-03-27 Jan Hubicka <jh@suse.cz>
18089 PR middle-end/43391
18090 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
18091 notice_global_symbol work.
18093 2010-03-27 Jakub Jelinek <jakub@redhat.com>
18095 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
18096 instead of dwarf2out_decl.
18097 (struct var_loc_node): Remove section_label field.
18098 (dwarf2out_function_decl): New function.
18099 (dwarf2out_var_location): Don't set section_label field.
18100 (dwarf2out_begin_function): Don't empty decl_loc_table here.
18102 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18104 PR tree-optimization/43544
18105 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18106 First argument for builtin vectorized function hook is now a
18107 tree to be able to distinguish between machine specific and
18109 * targhooks.c (default_builtin_vectorized_function): Ditto.
18110 * targhooks.h (default_builtin_vectorized_function): Ditto.
18111 * target.h (struct gcc_target): Ditto.
18112 * tree-vect-stmts.c (vectorizable_function): Ditto.
18113 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
18114 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
18117 2010-03-26 Joseph Myers <joseph@codesourcery.com>
18120 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
18121 nested binding iff it is a FUNCTION_DECL.
18122 (store_parm_decls_newstyle): Pass nested=true to bind for
18123 FUNCTION_DECLs amongst parameters.
18125 2010-03-26 Jakub Jelinek <jakub@redhat.com>
18127 * var-tracking.c (vt_expand_loc_callback): Don't run
18128 cselib_expand_value_rtx_cb in dummy mode if
18129 cselib_dummy_expand_value_rtx_cb returned false.
18131 * var-tracking.c (emit_note_insn_var_location): For one part
18132 notes with offset 0, don't add EXPR_LIST around the location.
18133 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
18134 add_location_or_const_value_attribute): Adjust for that change.
18137 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
18138 into first operand and location into second.
18139 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
18140 dw_cfi_oprnd_loc for DW_CFA_expression.
18141 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
18142 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
18143 assume first argument is regnum and second argument is location.
18145 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
18148 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
18149 of scratch register to DImode. Split to DImode comparison operator.
18150 Use SImode subreg of scratch register in the multiplication.
18151 (*cmp_sadd_sidi): Ditto.
18152 (*cmp_ssub_si): Ditto.
18153 (*cmp_ssub_sidi): Ditto.
18155 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
18158 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
18159 Remove invalid assert and wrong comment.
18161 2010-03-26 Jakub Jelinek <jakub@redhat.com>
18164 * flags.h (final_insns_dump_p): New extern.
18165 * final.c (final_insns_dump_p): New variable.
18166 (rest_of_clean_state): Set it before -fdump-final-insns=
18167 dumping, clear afterwards.
18168 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
18169 MEM_ALIAS_SET on MEMs.
18171 2010-03-26 David S. Miller <davem@davemloft.net>
18173 * configure.ac: Fix sparc GOTDATA_OP bug check.
18174 * configure: Rebuild.
18176 2010-03-26 Alan Modra <amodra@gmail.com>
18178 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
18180 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18182 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
18183 TLS_SECTION_ASM_FLAG.
18185 2010-03-25 Jakub Jelinek <jakub@redhat.com>
18188 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
18189 Clear first_function_block_is_cold.
18192 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
18193 argument if the argument is truth_value_p.
18195 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18197 * config/rs6000/constraints.md: Update copyright year for my changes.
18200 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
18201 used in reg+reg addressing, swap registers.
18203 2010-03-24 Jakub Jelinek <jakub@redhat.com>
18206 * target.h (struct gcc_target): Add code_end hook.
18207 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
18208 if not yet defined.
18209 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
18210 * toplev.c (compile_file): Call targetm.asm_out.code_end
18211 hook before unwind info/debug info output.
18212 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
18213 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
18214 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18215 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
18216 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18217 * config/i386/i386.c (ix86_file_end): Renamed to...
18218 (ix86_code_end): ... this. Make static. Don't call
18219 file_end_indicate_exec_stack. Emit unwind info using
18220 final_start_function/final_end_function.
18221 (darwin_x86_file_end): Remove.
18222 (TARGET_ASM_CODE_END): Define.
18223 * config/i386/i386.h (TARGET_ASM_FILE_END,
18224 NEED_INDICATE_EXEC_STACK): Don't define.
18225 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
18226 (TARGET_ASM_FILE_END): Define to darwin_file_end.
18227 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
18228 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
18231 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
18232 at the beginning and final_end_function at the end.
18233 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18235 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18237 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
18238 and Sun as TLS syntax.
18239 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
18240 * configure: Regenerate.
18241 * config.in: Regenerate.
18242 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
18243 (default_elf_asm_named_section): Use it.
18244 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
18245 (i386_output_dwarf_dtprel): Likewise.
18246 (output_addr_const_extra): Likewise.
18247 (output_pic_addr_const): Lowercase @GOTTPOFF.
18248 (output_addr_const_extra): Likewise.
18249 (output_pic_addr_const): Lowercase @GOTNTPOFF.
18250 (output_addr_const_extra): Likewise.
18251 (output_pic_addr_const): Lowercase @INDNTPOFF.
18252 (output_addr_const_extra): Likewise.
18253 (output_pic_addr_const): Lowercase @NTPOFF.
18254 (output_addr_const_extra): Likewise.
18255 (output_pic_addr_const): Lowercase @TPOFF.
18256 (output_addr_const_extra): Likewise.
18257 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
18258 (*tls_global_dynamic_64): Likewise.
18259 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
18260 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
18262 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
18263 (ASM_OUTPUT_TLS_COMMON): Use it.
18264 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
18267 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
18268 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18269 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
18270 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
18271 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18272 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
18274 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18276 * config/i386/i386.c (override_options): Don't accept
18277 -mtls-dialect=sun any longer.
18278 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
18279 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
18280 (*tls_local_dynamic_base_32_sun): Likewise.
18281 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18283 2010-03-24 Jakub Jelinek <jakub@redhat.com>
18286 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18287 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
18290 * ira.c (adjust_cleared_regs): New function.
18291 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
18295 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
18297 * expr.c (expand_expr_real): Restore previous
18298 curr_insn_source_location and curr_insn_block after
18299 expand_expr_real_1 call.
18300 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
18301 instead of expand_expr_real_1.
18303 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
18305 PR rtl-optimization/43413
18306 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
18309 2010-03-22 James E. Wilson <wilson@codesourcery.com>
18312 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
18313 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
18315 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
18317 * config/i386/i386.c (ix86_target_string): Add -mfma.
18318 Fix a typo in comment.
18320 2010-03-22 Mike Stump <mikestump@comcast.net>
18323 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
18324 Don't overly align based upon packed packed fields.
18326 2010-03-22 Jason Merrill <jason@redhat.com>
18328 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
18329 Use () rather than [], and move before the element type.
18331 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18333 * doc/configfiles.texi (Configuration Files): Removed
18334 fixinc/Makefile*, intl/Makefile.*.
18335 * doc/makefile.texi: Fixed markup. Abstract from version
18336 control system used.
18337 (Makefile): Removed obsolete gcc/java/parse.y example.
18338 * doc/sourcebuild.texi: Likewise.
18339 (Top Level): Added config, gnattools, libdecnumber, libgcc,
18340 libgomp, libssp. Removed fastjar.
18341 (Miscellaneous Docs): Clarify location.
18342 Added COPYING3, COPYING3.LIB.
18343 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
18345 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18348 * config/i386/i386.c (x86_function_profiler)
18349 [!NO_PROFILE_COUNTERS]: Fix typo.
18350 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
18353 2010-03-22 Janis Johnson <janis187@us.ibm.com>
18354 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18356 * doc/sourcebuild.texi (Test Directives): Split into six
18357 subsections, with most of the current text in new subsections
18358 Directives, Selectors, and Final Actions.
18359 (Directives): Split list of test directives into multiple
18361 (Selectors): Describe use and syntax of selectors.
18362 (Effective-Target Keywords): Describe all existing keywords.
18363 (Add Options): Describe features for dg-add-options.
18364 (Require Support): Describe variants of dg-require-support.
18365 (Final Actions): Describe commands to use in dg-final.
18367 2010-03-22 Michael Matz <matz@suse.de>
18369 PR middle-end/43475
18370 * recog.c (validate_replace_rtx_group): Replace also in
18371 REG_EQUAL and REG_EQUIV notes.
18373 2010-03-22 Richard Guenther <rguenther@suse.de>
18375 PR tree-optimization/43390
18376 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
18377 sure vector extracts are type correct.
18379 2010-03-22 Richard Guenther <rguenther@suse.de>
18381 PR middle-end/40106
18382 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
18383 x * sqrt (x) even when optimizing for size if the target
18384 has native support for sqrt.
18386 2010-03-22 Jakub Jelinek <jakub@redhat.com>
18388 * varasm.c (make_decl_rtl_for_debug): Also clear
18389 flag_mudflap for the duration of make_decl_rtl call.
18392 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
18393 locs from preserved VALUEs.
18395 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18397 PR middle-end/42718
18398 * pa.md (movmemsi): Set align to one if zero.
18399 (movmemdi): Likewise.
18401 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
18404 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
18405 with their corresponding prologue pushes.
18407 2010-03-20 Andrew Pinski <pinskia@gmail.com>
18410 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
18411 at the begining or end.
18412 (spu_expand_epilogue): Likewise.
18414 2010-03-20 Richard Guenther <rguenther@suse.de>
18416 PR rtl-optimization/43438
18417 * combine.c (make_extraction): Properly zero-/sign-extend an
18418 extraction of the low part of a CONST_INT. Also handle
18421 2010-03-19 Mike Stump <mikestump@comcast.net>
18423 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
18424 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
18425 (override_options): Use SUBTARGET32_DEFAULT_CPU.
18427 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
18430 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
18433 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
18435 PR rtl-optimization/42258
18436 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
18437 use that may match DEF.
18440 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
18441 the cost of loading the constant rather than assuming
18443 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
18444 outer code is AND, do the same tests as the andsi3 expander and
18445 return COSTS_N_INSNS (1) if and is cheap.
18447 * optabs.c (avoid_expensive_constant): Fix formatting.
18449 2010-03-19 Michael Matz <matz@suse.de>
18452 * attribs.c (decl_attributes): When rebuilding a function pointer
18453 type use the same qualifiers as the original pointer type.
18455 2010-03-19 Martin Jambor <mjambor@suse.cz>
18457 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
18458 and is_gimple_ip_invariant_address.
18460 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18463 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18465 * config/arm/arm.c (arm_override_options): Turn off
18466 flag_dwarf2_cfi_asm for AAPCS variants.
18468 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18471 * config/arm/arm.c (emit_multi_reg_push): Update comments.
18472 Use PRE_MODIFY instead of PRE_DEC.
18473 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
18474 (vfp_emit_fstmd): Likewise.
18476 2010-03-19 Michael Matz <matz@suse.de>
18479 * builtins.c (expand_builtin_interclass_mathfn,
18480 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
18483 2010-03-19 Richard Guenther <rguenther@suse.de>
18485 PR tree-optimization/43415
18486 * tree-ssa-pre.c (phi_translate): Split out worker to ...
18487 (phi_translate_1): ... this.
18488 (phi_translate): Move all caching here. Cache all NARY
18489 and REFERENCE translations.
18491 2010-03-19 David S. Miller <davem@davemloft.net>
18493 With help from Eric Botcazou.
18494 * config/sparc/sparc.c: Include dwarf2out.h.
18495 (emit_pic_helper): Delete.
18496 (pic_helper_symbol_name): Delete.
18497 (pic_helper_emitted_p): Delete.
18498 (pic_helper_needed): New.
18499 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
18500 (get_pc_thunk_name): New.
18501 (load_pic_register): Remove 'delay_pic_helper' arg. Use
18502 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
18503 Set pic_helper_needed to true. Don't call emit_pic_helper.
18504 (sparc_expand_prologue): Update load_pic_register call.
18505 (sparc_output_mi_thunk): Likewise.
18506 (sparc_file_end): Emit a hidden comdat symbol for the PIC
18507 thunk if possible. Output CFI information as needed.
18509 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18510 Jack Howarth <howarth@bromo.med.uc.edu>
18513 * config/i386/i386.h: Fix ABI on darwin x86-32.
18515 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
18517 * tree.h: Declare make_decl_rtl_for_debug.
18518 * varasm.c (make_decl_rtl_for_debug): New.
18519 * dwarf2out.c (rtl_for_decl_location): Call it.
18520 * cfgexpand.c (expand_debug_expr): Call it.
18522 2010-03-18 Jakub Jelinek <jakub@redhat.com>
18525 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
18529 * var-tracking.c (vt_init_cfa_base): Do nothing if
18530 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
18532 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
18535 * var-tracking.c (canonicalize_vars_star): New.
18536 (dataflow_post_merge_adjust): Use it.
18538 2010-03-18 Jakub Jelinek <jakub@redhat.com>
18541 * var-tracking.c (non_suitable_const): New function.
18542 (add_uses): For DEBUG_INSNs with constants, don't record any
18543 value, instead just the constant value itself.
18544 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
18545 is not VAR_LOC_UNKNOWN_P, set var to the constant.
18546 (emit_notes_in_bb): Likewise.
18547 (emit_note_insn_var_location): For onepart variables if
18548 cur_loc is a VOIDmode constant, use DECL_MODE.
18550 2010-03-18 Martin Jambor <mjambor@suse.cz>
18552 PR middle-end/42450
18553 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
18554 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
18555 all non-clones. Moved call redirection...
18556 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
18557 (cgraph_materialize_all_clones): Dispose of all
18558 combined_args_to_skip bitmaps.
18559 (verify_cgraph_node): Do not check for edges pointing to wrong
18560 nodes in inline clones.
18561 * tree-inline.c (copy_bb): Call
18562 cgraph_redirect_edge_call_stmt_to_callee.
18563 * ipa.c (cgraph_remove_unreachable_nodes): Call
18564 cgraph_node_remove_callees even when there are used clones.
18566 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
18568 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
18570 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
18573 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
18576 2010-03-18 Michael Matz <matz@suse.de>
18578 PR middle-end/43419
18579 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
18580 into sqrt(x) if we need to preserve signed zeros.
18582 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
18583 Eric Botcazou <ebotcazou@adacore.com>
18585 PR rtl-optimization/43360
18586 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
18587 note if we don't know its invariant status.
18589 2010-03-18 Michael Matz <matz@suse.de>
18591 PR tree-optimization/43402
18592 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
18593 PHI chains of ssa names registered for update.
18595 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
18598 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
18599 non-offsettable and pre_modify update addressing.
18600 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
18601 and "2" alternatives "#".
18602 (*movdd_softfloat32): Make all alternatives "#";
18603 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
18604 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
18605 (*movdf_softfloat32): Make all alternatives "#";
18606 (movdi): Use the new DIFD mode iterator to create a common splitter
18607 for movdi, movdf and movdd patterns.
18609 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
18611 * common.opt (dumpdir): Remove redundant tab.
18613 2010-03-17 Martin Jambor <mjambor@suse.cz>
18615 PR tree-optimization/43347
18616 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18617 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18619 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
18621 PR rtl-optimization/42216
18622 * regrename.c (create_new_chain): New function, broken out from...
18623 (scan_rtx_reg): ... here. Call it. Handle the case where we are
18624 appending a use to an empty chain.
18625 (build_def_use): Remove previous changes that convert OP_INOUT to
18626 OP_OUT operands; instead detect the case where an OP_INOUT operand
18627 uses a previously untracked register and create an empty chain for it.
18629 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18631 * doc/extend.texi (Function Attributes): Rewrite unfinished
18632 sentence in ms_abi documentation.
18634 2010-03-17 Alan Modra <amodra@gmail.com>
18636 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18637 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18638 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18639 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18641 2010-03-16 Richard Henderson <rth@redhat.com>
18643 PR middle-end/43365
18644 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18645 (lower_try_finally): Save and restore eh_seq around the expansion
18646 of the try-finally.
18648 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
18650 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18651 statements before splitting block.
18653 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18655 * doc/sourcebuild.texi (Testsuites): Fix markup.
18656 Use pathnames relative to gcc/testsuite.
18657 (Test Directives): Move description of how timeout is determined.
18658 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18659 (C Tests): Correct gcc.misc-tests directory.
18660 Framework tests now live in gcc.test-framework.
18662 2010-03-16 Richard Guenther <rguenther@suse.de>
18664 PR middle-end/43379
18665 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18666 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18668 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
18669 Alexandre Oliva <aoliva@redhat.com>
18671 PR tree-optimization/42917
18672 * lambda-code.c (remove_iv): Skip debug statements.
18673 (lambda_loopnest_to_gcc_loopnest): Likewise.
18674 (not_interesting_stmt): Debug statements are not interesting.
18676 2010-03-16 Jakub Jelinek <jakub@redhat.com>
18680 * cselib.c (cselib_preserve_constants,
18681 cfa_base_preserved_val): New static variables.
18682 (preserve_only_constants): New function.
18683 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18684 clear its REG_VALUES. If cselib_preserve_constants, don't
18685 empty the whole hash table, but preserve there VALUEs with constants,
18686 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18687 (cselib_preserve_cfa_base_value): New function.
18688 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18689 (cselib_init): Change argument to int bitfield. Set
18690 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18692 (cselib_finish): Clear cselib_preserve_constants and
18693 cfa_base_preserved_val.
18694 * cselib.h (enum cselib_record_what): New enum.
18695 (cselib_init): Change argument to int.
18696 (cselib_preserve_cfa_base_value): New prototype.
18697 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18698 * dse.c (dse_step1): Likewise.
18699 * cfgcleanup.c (thread_jump): Likewise.
18700 * sched-deps.c (sched_analyze): Likewise.
18701 * gcse.c (local_cprop_pass): Likewise.
18702 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18703 If FN is non-NULL, call the callback always and whenever it returns
18704 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
18705 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18706 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18707 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18708 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18709 * var-tracking.c: Include recog.h.
18710 (bb_stack_adjust_offset): Remove.
18711 (vt_stack_adjustments): Don't call it, instead just gather the
18712 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18713 (adjust_stack_reference): Remove.
18714 (compute_cfa_pointer): New function.
18715 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18716 (struct adjust_mem_data): New type.
18717 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18719 (get_address_mode): New function.
18720 (replace_expr_with_values): Use it.
18721 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18722 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
18723 (adjust_sets): Remove.
18724 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18725 Use get_address_mode.
18726 (get_adjusted_src): Remove.
18727 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
18728 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
18729 (add_with_sets): Don't call adjust_sets.
18730 (fp_setter, vt_init_cfa_base): New functions.
18731 (vt_initialize): Change return type to bool. Move most of pool etc.
18732 initialization to the beginning of the function from end. Pass
18733 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18734 If !frame_pointer_needed, call vt_stack_adjustment before mos
18735 vector is filled, call vt_init_cfa_base if argp/framep has been
18736 eliminated to sp. If frame_pointer_needed and argp/framep has
18737 been eliminated to hard frame pointer, set
18738 hard_frame_pointer_adjustment and call vt_init_cfa_base after
18739 encountering fp setter in the prologue. For MO_ADJUST, call
18740 log_op_type before pusing the op into mos vector, not afterwards.
18741 Call adjust_insn before cselib_process_insn/add_with_sets,
18742 call cancel_changes (0) afterwards.
18743 (variable_tracking_main_1): Adjust for vt_initialize calling
18744 vt_stack_adjustments and returning whether it succeeded or not.
18746 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
18748 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
18751 2010-03-15 Jakub Jelinek <jakub@redhat.com>
18753 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
18755 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
18756 drap_reg has not been set.
18758 2010-03-15 Michael Matz <matz@suse.de>
18760 PR middle-end/43300
18761 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
18762 use it to expand block copies.
18763 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18764 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
18765 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
18767 2010-03-15 Richard Guenther <rguenther@suse.de>
18769 PR tree-optimization/43367
18770 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
18773 2010-03-15 Richard Guenther <rguenther@suse.de>
18775 PR tree-optimization/43317
18776 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
18778 2010-03-15 Martin Jambor <mjambor@suse.cz>
18780 PR tree-optimization/43141
18781 * tree-sra.c (create_abstract_origin): New function.
18782 (modify_function): Call create_abstract_origin.
18784 2010-03-15 Chris Demetriou <cgd@google.com>
18786 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
18789 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18791 PR middle-end/43354
18792 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
18793 call insert_out_of_ssa_copy for default definitions.
18795 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18797 * graphite-clast-to-gimple.c (my_long_long): Defined.
18798 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
18799 * graphite-sese-to-poly.c (my_long_long): Defined.
18800 (scop_ivs_can_be_represented): Use it.
18802 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18804 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
18805 graphite-max-bbs-per-function, and loop-block-tile-size.
18806 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
18808 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
18810 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18812 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
18813 forward declaration.
18814 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
18815 (add_upper_bounds_from_estimated_nit): New.
18816 (build_loop_iteration_domains): Use it.
18818 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18820 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
18822 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18824 PR middle-end/43306
18825 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
18826 should be an INTEGER_CST. Also handle CASE_CONVERT.
18828 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18830 * graphite.c (graphite_initialize): To bound the number of bbs per
18831 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
18832 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
18833 * doc/invoke.texi: Document it.
18835 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18837 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
18838 * graphite-sese-to-poly.h (build_poly_scop): Same.
18840 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
18842 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
18843 the number of parameters in the scop. Use as an upper bound
18844 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
18845 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
18846 * doc/invoke.texi: Document it.
18848 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
18850 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
18851 * doc/c-tree.texi: Remove.
18852 * doc/generic.texi: Merge c-tree.texi here.
18853 * doc/gccint.texi (Trees): Remove menu entry.
18854 (c-tree.texi): Remove @include.
18855 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
18856 * doc/languages.texi (Reading RTL): Ditto.
18858 2010-03-12 Steve Ellcey <sje@cup.hp.com>
18861 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
18863 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18865 PR middle-end/42431
18866 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
18867 code added to work around reload clobbering CONST insns.
18869 2010-03-12 Jakub Jelinek <jakub@redhat.com>
18871 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
18872 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
18873 (cselib_preserve_only_values): Remove retain argument, don't
18874 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
18875 * cselib.h (cselib_preserve_only_values): Remove retain argument.
18876 * var-tracking.c (micro_operation): Move insn field before union.
18877 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
18878 (struct variable_tracking_info_def): Remove n_mos field, change
18879 mos into a vector of micro_operations.
18880 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
18881 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
18882 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
18883 changing into a vector.
18884 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
18885 come before all other uops generated by add_stores.
18886 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
18888 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
18889 a vector. Run just one pass over the bbs instead of separate counting
18890 and computation phase.
18891 (vt_finalize): Free VTI (bb)->mos vector instead of array.
18894 * tree-inline.c (remap_decls): Put old_var rather than origin_var
18895 into *nonlocalized_list vector.
18896 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
18897 even if origin is non-NULL.
18898 (gen_variable_die): Likewise.
18899 (process_scope_var): Don't change origin.
18900 (gen_decl_die): Likewise.
18901 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
18902 before adding new edges instead of after it, fix moving over
18905 2010-03-11 David S. Miller <davem@davemloft.net>
18907 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
18909 * configure: Rebuild.
18911 2010-03-11 Martin Jambor <mjambor@suse.cz>
18913 PR tree-optimization/43257
18914 * tree.c (assign_assembler_name_if_neeeded): New function.
18915 (free_lang_data_in_cgraph): Assembler name assignment moved to the
18916 above new function.
18917 * tree.h (assign_assembler_name_if_neeeded): Declare.
18918 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
18919 the function if needed.
18921 2010-03-11 Chris Demetriou <cgd@google.com>
18923 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
18924 include/stdint-gcc.h, and include/stdint.h world-readable.
18926 2010-03-11 Richard Guenther <rguenther@suse.de>
18928 PR tree-optimization/43255
18929 * tree-vrp.c (process_assert_insertions_for): Do not insert
18930 asserts for trivial conditions.
18932 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18934 PR tree-optimization/43280
18935 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
18936 generation. Move calculation of size out of the if branch.
18937 (find_bswap): Modify compare number generation.
18939 2010-03-11 Richard Guenther <rguenther@suse.de>
18942 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
18943 (input_gimple_stmt): Fixup handled component types during
18944 operand read. Also fix up decls in ADDR_EXPRs.
18946 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
18948 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
18949 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
18951 2010-03-10 Jan Hubicka <jh@suse.cz>
18954 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
18955 * varasm.c (get_variable_section): Don't do that here...
18956 (make_decl_rtl): ... and here.
18957 (do_assemble_alias): Produce decl RTL.
18958 (assemble_alias): Likewise.
18960 2010-03-10 Jakub Jelinek <jakub@redhat.com>
18963 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
18964 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
18966 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
18967 (based_loc_descr): Only express drap or vdrap regno based expressions
18968 using DW_OP_fbreg when not optimizing.
18969 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
18970 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
18971 REG_CFA_SET_VDRAP note.
18973 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
18975 PR tree-optimization/43236
18976 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
18977 error in calculation of base address in reverse iteration case.
18978 (generate_builtin): Take number of latch executions if the statement
18981 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
18983 PR middle-end/42859
18984 * tree-eh.c: Include pointer-set.h.
18985 (lower_eh_dispatch): Filter out duplicate case labels and
18986 remove the unneeded edge when the label is unused. Return
18987 true when some edges are removed.
18988 (execute_lower_eh_dispatch): When any lowering resulted in
18989 removing an edge, also delete unreachable blocks.
18991 2010-03-10 Jakub Jelinek <jakub@redhat.com>
18994 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18995 UNSPEC_MACHOPIC_OFFSET.
18997 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
19000 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
19001 (m68k_delegitimize_address): New function.
19003 2010-03-09 Jakub Jelinek <jakub@redhat.com>
19006 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
19009 * var-tracking.c (adjust_sets): New function.
19010 (count_with_sets, add_with_sets): Use it.
19011 (get_adjusted_src): New inline function.
19012 (add_stores): Use it.
19015 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
19016 call cselib_dummy_expand_value_rtx_cb instead of
19017 cselib_expand_value_rtx_cb.
19020 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
19021 * config/i386/i386.c: Include debug.h and dwarf2out.h.
19022 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
19023 and .cfi_endproc around the pic thunks.
19024 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
19025 all queued unwind info register saves are saved before the call.
19026 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
19027 considered as sp-=4 for unwind info and the pop as sp+=4 which
19028 also clobbers dest, but doesn't actually restore it.
19031 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
19032 RTX_FRAME_RELATED_P.
19034 2010-03-09 Jie Zhang <jie@codesourcery.com>
19036 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
19037 whitespaces in output template.
19039 2010-03-09 Jie Zhang <jie@codesourcery.com>
19041 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
19042 out array boundary.
19044 2010-03-08 Jakub Jelinek <jakub@redhat.com>
19046 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
19047 builtins.exp in a separate job.
19049 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19051 * graphite-sese-to-poly.c (add_param_constraints): Use
19052 lower_bound_in_type and upper_bound_in_type.
19054 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19056 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
19057 instead of unsigned_type_node.
19059 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19060 Reza Yazdani <reza.yazdani@amd.com>
19062 PR middle-end/43065
19063 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
19064 on pointer type parameters.
19066 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
19068 PR middle-end/42644
19069 PR middle-end/42130
19070 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
19071 handle conversions from pointer to integers.
19072 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
19073 induction variable, to be able to work with code generated by CLooG.
19074 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
19075 (build_poly_scop): Bail out if we cannot codegen a loop.
19077 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
19079 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
19080 code generation with gloog_error.
19082 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19084 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
19085 Call fold_convert on all the returned values.
19086 (expand_scalar_variables_expr): Pass to
19087 expand_scalar_variables_ssa_name the type of the resulting expression.
19089 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19091 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
19092 ppl_min_for_le_pointset.
19093 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
19094 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
19096 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19098 * graphite-dependences.c (map_into_dep_poly): Removed.
19099 (dependence_polyhedron_1): Use combine_context_id_scat.
19101 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19103 * graphite-poly.h (struct poly_scattering): Add layout documentation.
19104 (struct poly_bb): Same.
19105 (combine_context_id_scat): New.
19107 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19109 PR middle-end/42326
19110 * sese.c (name_defined_in_loop_p): Return false for default
19113 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19115 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
19116 and clean up the logic.
19118 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
19120 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
19123 2010-03-08 Jakub Jelinek <jakub@redhat.com>
19125 * var-tracking.c (remove_cselib_value_chains): Define only for
19127 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
19128 delete_slot_part, emit_notes_for_differences_1): Don't call
19129 remove_cselib_value_chains here.
19130 (set_slot_part, emit_notes_for_differences_2): Don't call
19131 add_cselib_value_chains here.
19132 (preserved_values): New vector.
19133 (preserve_value): New function.
19134 (add_uses, add_stores, vt_add_function_parameters): Use it
19135 instead of cselib_preserve_value.
19136 (changed_values_stack): New vector.
19137 (check_changed_vars_0): New function.
19138 (check_changed_vars_1, check_changed_vars_2): Use it.
19139 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
19140 changed_values_stack VALUEs.
19141 (vt_emit_notes): For all preserved_values call
19142 add_cselib_value_chains. If ENABLE_CHECKING call
19143 remove_cselib_value_chains before verifying value_chains is empty.
19144 Initialize and free changed_values_stack.
19145 (vt_initialize): Initialize preserved_values.
19146 (vt_finalize): Free preserved_values.
19148 2010-03-08 Richard Guenther <rguenther@suse.de>
19150 PR tree-optimization/43269
19151 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
19154 2010-03-08 Martin Jambor <mjambor@suse.cz>
19156 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
19157 (ipa_is_param_called): Removed.
19158 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
19159 (ipa_print_node_params): Do not print the called flag.
19160 (ipa_write_node_info): Do not stream the called flag.
19161 (ipa_read_node_info): Likewise.
19163 2010-03-07 Jakub Jelinek <jakub@redhat.com>
19166 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
19167 * cselib.c (struct expand_value_data): Add dummy field.
19168 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
19170 (cselib_dummy_expand_value_rtx_cb): New function.
19171 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
19173 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
19174 * var-tracking.c: Include pointer-set.h.
19175 (variable): Change n_var_parts to char from int. Add
19176 cur_loc_changed and in_changed_variables fields.
19177 (variable_canonicalize): Remove.
19178 (shared_var_p): New inline function.
19179 (unshare_variable): Maintain cur_loc_changed and
19180 in_changed_variables fields. If var was in changed_variables,
19181 replace it there with new_var. Just copy cur_loc instead of
19182 resetting it to something else.
19183 (variable_union): Don't recompute cur_loc. Use shared_var_p.
19184 (dataflow_set_union): Don't call variable_canonicalize.
19185 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
19186 of their DEBUG_EXPR_TREE_DECLs.
19187 (canonicalize_loc_order_check): Verify that cur_loc is NULL
19188 and in_changed_variables and cur_loc_changed is false.
19189 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
19190 and cur_loc_changed. Don't update cur_loc here.
19191 (variable_merge_over_src): Don't call variable_canonicalize.
19192 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
19193 removing loc that is equal to cur_loc, clear cur_loc,
19194 set cur_loc_changed and ensure variable_was_changed is called.
19195 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
19196 compare pointers in cur_loc check, if it is equal to loc,
19197 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
19198 (variable_different_p): Remove compare_current_location argument,
19199 don't compare cur_loc.
19200 (dataflow_set_different_1): Adjust variable_different_p caller.
19201 (variable_was_changed): If dv had some var in changed_variables
19202 already, reset in_changed_variables flag for it and propagate
19203 cur_loc_changed over to the new variable. On empty var
19204 always set cur_loc_changed. Set in_changed_variables on whatever
19205 var is added to changed_variables.
19206 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
19207 Use shared_var_p. When removing loc that is equal to cur_loc,
19208 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
19209 end, don't set it to something else, just call variable_was_changed.
19210 (delete_slot_part): Use shared_var_p. When cur_loc equals to
19211 loc being removed, clear cur_loc and set cur_loc_changed.
19212 Set cur_loc_changed if all locations have been removed.
19213 (struct expand_loc_callback_data): New type.
19214 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
19215 allocated. Always create SUBREGs if simplify_subreg failed.
19216 Prefer to use cur_loc, when that fails and still in
19217 changed_variables (and seen first time) recompute it. Set
19218 cur_loc_changed of variables which had to change cur_loc and
19219 compute elcd->cur_loc_changed if any of the subexpressions used
19220 had to change cur_loc.
19221 (vt_expand_loc): Adjust to pass arguments in
19222 expand_loc_callback_data structure.
19223 (vt_expand_loc_dummy): New function.
19224 (emitted_notes): New variable.
19225 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
19226 that weren't used for any other decl in current
19227 emit_notes_for_changes call call vt_expand_loc_dummy to update
19228 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
19229 first loc_chain location if NULL before. Always use just
19230 cur_loc instead of first loc_chain location. When cur_loc_changed
19231 is false, when not --enable-checking=rtl just don't emit any note.
19232 When rtl checking, compute the note and assert it is the same
19233 as previous note. Clear cur_loc_changed and in_changed_variables
19234 at the end before removing from changed_variables.
19235 (check_changed_vars_3): New function.
19236 (emit_notes_for_changes): Traverse changed_vars to call
19237 check_changed_vars_3 on each changed var.
19238 (emit_notes_for_differences_1): Clear cur_loc_changed and
19239 in_changed_variables. Recompute cur_loc of new_var.
19240 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
19241 (vt_emit_notes): Initialize and destroy emitted_notes.
19243 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
19245 PR rtl-optimization/42220
19246 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
19247 Use verify_reg_tracked to determine if we should use OP_OUT rather
19249 (build_def_use): If we see an in-out operand for a register that we
19250 know nothing about, treat is an output if possible, fail the block if
19253 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19256 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
19259 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19262 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
19263 uses of relevant DEFs that are dead outside the loop too.
19265 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
19267 * var-tracking.c (dataflow_set_merge): Swap src and src2.
19269 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19271 * var-tracking.c (values_to_unmark): New variable.
19272 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19273 values_to_unmark vector. Moved body to...
19274 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19275 instead queue it into values_to_unmark vector.
19276 (vt_find_locations): Free values_to_unmark vector.
19278 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
19280 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
19281 (site.exp): Export them when plugins are enabled.
19283 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
19285 PR middle-end/42326
19286 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
19287 that contain scevs.
19288 (chrec_fold_multiply): Same.
19290 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
19293 * c-decl.c (build_compound_literal): Return early if init is
19294 an error_mark_node.
19296 2010-03-04 Martin Jambor <mjambor@suse.cz>
19298 PR tree-optimization/43164
19299 PR tree-optimization/43191
19300 * tree-sra.c (type_consists_of_records_p): Reject records with
19301 zero-size bit-fields at the end.
19303 2010-03-04 Mike Stump <mikestump@comcast.net>
19305 * Makefile.in (TAGS): Remove *.y.
19307 2010-03-04 Richard Guenther <rguenther@suse.de>
19309 PR tree-optimization/40761
19310 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
19312 (my_rev_post_order_compute): New function.
19313 (init_pre): Call it.
19315 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
19317 PR middle-end/43209
19318 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
19319 decrease the cost of an IV candidate when the cost is infinite.
19321 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19323 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
19324 Use '3DNow!' for the extension of that name, ensure normal space
19326 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
19328 2010-03-03 Jeff Law <law@redhat.com>
19330 * PR middle-end/32693
19331 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
19332 than gen_rtx_SUBREG.
19333 (extract_bit_field_1): Likewise.
19335 2010-03-03 Janis Johnson <janis187@us.ibm.com>
19337 * doc/sourcebuild.texi (Test directives): Document that arguments
19338 include-opts and exclude-opts are now optional for dg-skip-if,
19339 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
19341 2010-03-03 Jason Merrill <jason@redhat.com>
19344 * cgraph.h (varpool_node): Add extra_name field.
19345 * varpool.c (varpool_extra_name_alias): New.
19346 (varpool_assemble_decl): Emit extra name aliases.
19347 (varpool_mark_needed_node): Look past an extra name alias.
19348 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
19349 * lto-streamer-in.c (lto_input_tree): Read it.
19350 * lto-streamer-out.c (output_unreferenced_globals): Write it.
19352 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
19354 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
19355 (sparc*-*-solaris2*): ...this.
19357 2010-03-03 Jakub Jelinek <jakub@redhat.com>
19360 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
19361 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
19362 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
19363 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
19366 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
19367 fallthrough to default handling, just with want_address 0 instead of 2.
19368 For single element lists, add_AT_loc directly, otherwise create an
19369 artificial variable DIE and stick location list to it.
19372 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
19373 (VAL_EXPR_HAS_REVERSE): Define.
19374 (reverse_op): New function.
19375 (add_stores): For reversible operations add an extra MO_VAL_USE.
19377 2010-03-02 Jason Merrill <jason@redhat.com>
19379 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
19381 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
19383 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
19384 (sparc64-*-linux*): Likewise.
19385 (sparc64-*-solaris2*): Include assembler files before linker ones.
19386 (sparc-*-solaris2*): Simplify and reorder to match previous case.
19387 * config/sparc/gas.h: Delete.
19388 * config/sparc/sol2-64.h: Add copyright notice.
19389 * config/sparc/sol2-gas-bi.h: Likewise.
19390 * config/sparc/sol2-gld.h: Likewise.
19391 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
19392 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
19393 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
19394 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
19395 (sparc_elf_asm_named_section): Rename into...
19396 (sparc_solaris_elf_asm_named_section): ...this. Always define.
19398 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
19400 * config/alpha/alpha.c (override_options): Fix -mtune error message.
19402 2010-03-02 Jeff Law <law@redhat.com>
19404 PR middle-end/42431
19405 * reload1.c (rtx_p, substitute_stack): Declare.
19406 (substitute): Record addresses of changed rtxs.
19407 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
19408 Restore the original rtx when complete.
19409 (reload): Free subsitute_stack when complete.
19411 2010-03-02 Janis Johnson <janis187@us.ibm.com>
19413 * doc/gccint.texi (menu): Add Testsuites as a chapter.
19414 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
19416 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
19417 LTO Testing, gcov Testing, profopt Testing, compat Testing,
19418 Torture Tests): Change from subsection to section.
19420 2010-03-02 Jakub Jelinek <jakub@redhat.com>
19421 Steven Bosscher <steven@gcc.gnu.org>
19423 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
19426 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
19428 PR middle-end/42640
19429 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
19430 the assignment from the new induction variable to the assignment
19431 of the value from the original loop PHI function.
19433 2010-03-01 Janis Johnson <janis187@us.ibm.com>
19434 Daniel Jacobowitz <dan@codesourcery.com>
19436 * doc/sourcebuild.texi (Test directives): Clarify options to
19439 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19441 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
19442 Disable cfi directives unless GCC and gas agree on using read-only
19443 .eh_frame sections for 64-bit.
19444 * configure: Regenerate.
19446 2010-03-01 Richard Guenther <rguenther@suse.de>
19448 PR tree-optimization/43220
19449 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
19450 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
19452 2010-03-01 Richard Guenther <rguenther@suse.de>
19453 Martin Jambor <mjambor@suse.cz>
19455 PR middle-end/41250
19456 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
19457 gimplified parameters.
19459 2010-03-01 Christian Bruel <christian.bruel@st.com>
19461 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
19463 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
19465 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
19467 2010-03-01 Richard Guenther <rguenther@suse.de>
19469 PR middle-end/43213
19470 * expr.c (expand_assignment): Use the alias-oracle to tell
19471 if the rhs aliases the result decl.
19473 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19476 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
19477 to sol_gt_pch_get_address.
19478 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
19479 64-bit, SPARC and x86.
19480 (sol_gt_pch_get_address): New function.
19482 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
19484 * toplev.h (inform_n, error_n): Declare.
19485 * diagnostic.c (inform_n, error_n): New function.
19487 2010-03-01 Jakub Jelinek <jakub@redhat.com>
19489 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
19490 has no rtl yet when processing local_decls, queue it and recheck
19491 if deferred stack allocation hasn't assigned it rtl.
19493 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
19495 * config/sh/sh.c (unspec_bbr_uid): New.
19496 (gen_block_redirect): Use it instead of INSN_UID.
19497 (gen_far_branch): Likewise.
19499 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
19501 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
19502 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
19504 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19506 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
19507 (Warning Options): -Wno-conversion-null is valid for
19508 Objective-C++ as well.
19509 * doc/tm.texi (Named Address Spaces): Likewise.
19510 * doc/plugins.texi (Plugins): Replace TABs with spaces.
19511 * doc/tree-ssa.texi (Tree SSA): Likewise.
19513 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19516 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
19517 by default. Don't set the default arch for
19518 i[34567]86-*-darwin*|x86_64-*-darwin*.
19520 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19523 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
19524 default. Set the default 32bit/64bit archs with $with_arch
19525 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
19527 2010-02-27 Richard Guenther <rguenther@suse.de>
19529 PR tree-optimization/43186
19530 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
19531 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
19532 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
19533 unroller iterations.
19535 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
19537 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
19538 required and i[34567]86-*-* targets don't support 64bit ISA.
19540 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
19543 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19544 the same alias set.
19546 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
19548 * config.gcc: Set the default arch at least to Prescott for
19549 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
19550 if SSE math is enabled.
19552 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19554 * diagnostic.c (diagnostic_initialize): Update.
19555 (diagnostic_report_diagnostic): Test inhibit_notes_p for
19557 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
19558 (diagnostic_inhibit_notes): New.
19559 * toplev.c (process_options): inhibit notes with -fcompare-debug.
19561 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19564 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
19565 * doc/standards.texi: Likewise.
19566 * doc/extend.texi: Likewise.
19567 * doc/trouble.texi: Likewise.
19568 * doc/cppopts.texi: Likewise.
19569 * doc/install.texi: Likewise.
19570 * c.opt (std=c90,std=gnu90): New options.
19571 * c-opts.c (c_common_handle_option): Handle them.
19573 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
19576 * c-decl.c (undeclared_variable): Use an informative note.
19578 2010-02-26 Richard Guenther <rguenther@suse.de>
19580 PR tree-optimization/43186
19581 * gimple.h (gimple_fold): Remove.
19582 * gimple.c (gimple_fold): Remove. Inline into single user ...
19583 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
19584 Try harder for conditions.
19586 2010-02-26 Jakub Jelinek <jakub@redhat.com>
19589 * function.c (used_types_insert): Don't skip through named pointer
19590 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
19591 and it is different from the main variant's type.
19593 2010-02-26 Nick Clifton <nickc@redhat.com>
19595 * config/rx/rx.md (sminsi3): Remove bogus alternative.
19597 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
19599 * config.gcc: Support --with-fpmath=sse for x86.
19601 * config/i386/ssemath.h: New.
19603 * doc/install.texi (--with-fpmath=sse): Documented.
19605 2010-02-26 Richard Guenther <rguenther@suse.de>
19607 PR tree-optimization/43188
19608 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19609 vector types of over-aligned element type.
19611 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
19614 * config/i386/i386.c (expand_vec_perm_blend): Use correct
19615 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
19617 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
19619 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19621 2010-02-26 Jakub Jelinek <jakub@redhat.com>
19623 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19624 * var-tracking.c: Include diagnostic.h.
19625 (debug_dv): New function.
19626 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19629 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19630 (add_value_chain, add_value_chains, remove_value_chain,
19631 remove_value_chains): Handle DEBUG_EXPRs.
19632 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19635 * regcprop.c (struct queued_debug_insn_change): New type.
19636 (struct value_data_entry): Add debug_insn_changes field.
19637 (struct value_data): Add n_debug_insn_changes field.
19638 (debug_insn_changes_pool): New variable.
19639 (free_debug_insn_changes, apply_debug_insn_changes,
19640 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19641 (kill_value_one_regno): Call free_debug_insn_changes if needed.
19642 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19644 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19646 (copyprop_hardreg_forward_1): Don't call apply_change_group for
19647 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
19648 changes, call cprop_find_used_regs via note_stores.
19649 (copyprop_hardreg_forward): When copying vd from predecessor
19650 which has any queued DEBUG_INSN changes, make sure the pointers are
19651 cleared. At the end call df_analyze and then if there are any
19652 DEBUG_INSN changes queued at the end of some basic block for still
19653 live registers, apply them.
19654 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19656 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
19658 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19661 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
19663 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19664 targets. Set the default with_cpu/with_arch from arch/cpu.
19665 Allow x86-64 and native for with_cpu/with_arch.
19667 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
19669 * ebitmap.c: Change calls to verify_popcount with calls to
19670 sbitmap_verify_popcount.
19671 (ebitmap_clear_bit): Fixed map->cacheindex test and
19672 map>cache update when bit clearing results in an empty
19675 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
19678 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19679 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19680 and support both V2DF and V2DI modes.
19681 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19682 support both V2DF and V2DI modes.
19683 (general): Delete trailing whitespace from a few patterns.
19685 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19686 V2DF/V2DI interleave high/low builtins.
19688 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19691 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19692 interleave high/low functions.
19694 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
19696 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19697 #pragma extern_prefix.
19699 2010-02-25 Jakub Jelinek <jakub@redhat.com>
19702 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19703 BLKmode, assert op0 is a MEM and just adjust its mode.
19706 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19707 if bitpos isn't multiple of mode's bitsize.
19709 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19711 * c.opt (-ftemplate-depth=): New.
19712 (-ftemplate-depth-): Deprecate.
19713 * optc-gen.awk: Handle -ftemplate-depth=.
19714 * opth-gen.awk: Likewise.
19715 * c-opts.c (c_common_handle_option): Likewise.
19716 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19718 2010-02-24 Jason Merrill <jason@redhat.com>
19720 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19722 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19724 * cfg.c (alloc_aux_for_block): Remove inline.
19725 (alloc_aux_for_edge): Likewise.
19727 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19729 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19731 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19733 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19734 * config/i386/sol2-gas.h: New file.
19735 * config.gcc (i[34567]86-*-solaris2*): Use it.
19737 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19740 * c-typeck.c (ep_convert_and_check): New.
19741 (build_conditional_expr): Use it.
19742 (build_binary_op): Likewise.
19744 2010-02-24 Jakub Jelinek <jakub@redhat.com>
19746 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
19749 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
19750 bounds even for -O+.
19751 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
19752 expr needs to have DECL_NAME set.
19754 2010-02-24 Nick Clifton <nickc@redhat.com>
19756 * config/mep/mep.c: Include gimple.h.
19757 (mep_function_uses_sp): Delete unused function.
19758 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
19759 parameters. Use unsigned integers to count args. Return a
19760 NULL_RTX instead of an error_mark_node. Toidy up formatting.
19762 2010-02-23 Jakub Jelinek <jakub@redhat.com>
19765 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
19766 greater or equal to nelt instead of 2 * nelt.
19767 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
19770 2010-02-23 Jason Merrill <jason@redhat.com>
19773 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
19774 in cfun->local_decls even if they have register types.
19777 * stor-layout.c (place_field): Don't warn about unnecessary
19778 DECL_PACKED if the type is packed.
19780 2010-02-23 Jakub Jelinek <jakub@redhat.com>
19783 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
19784 GOTOFF relocs, even when the base reg isn't pic pointer.
19786 2010-02-23 Michael Matz <matz@suse.de>
19789 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
19790 (expand_gimple_basic_block): Generate and use debug temps if there
19791 are debug uses left after the last real use of TERed ssa names.
19792 Unlink debug immediate uses when they are expanded.
19794 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
19797 * config/i386/i386.c (override_options): Reorganise to provide
19798 better error messages.
19800 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
19802 PR middle-end/43083
19803 * graphite-scop-detection.c (create_single_exit_edge): Move
19804 the call to find_single_exit_edge to....
19805 (create_sese_edges): ...here. Don't handle multiple edges
19806 exiting the function.
19807 (build_graphite_scops): Don't handle multiple edges
19808 exiting the function.
19810 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
19812 PR middle-end/43097
19813 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
19814 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
19816 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
19818 PR middle-end/43026
19819 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
19821 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
19824 * c-typeck.c (convert_arguments): Print declaration location.
19825 * c-common.c (validate_nargs): Rename as
19826 builtin_function_validate_nargs.
19827 (check_builtin_function_arguments): Update.
19829 2010-02-22 Richard Guenther <rguenther@suse.de>
19832 * tree-inline.c (declare_return_variable): Use the type of
19833 the call stmt lhs if available.
19835 2010-02-22 Duncan Sands <baldrick@free.fr>
19837 * passes.c (register_pass): Always consider all pass lists when
19838 ref_pass_instance_number is zero.
19840 2010-02-22 Richard Guenther <rguenther@suse.de>
19842 PR tree-optimization/42749
19843 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
19844 parameter. Do arithmetic in the original type.
19845 (update_accumulator_with_ops): Likewise.
19846 (adjust_accumulator_values): Adjust.
19848 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19850 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
19851 (QI to BLKmode splitter): New splitter.
19853 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
19855 * config/i386/i386.c (initial_ix86_tune_features): Turn on
19856 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
19858 2010-02-22 Richard Guenther <rguenther@suse.de>
19860 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
19862 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
19864 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
19865 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
19866 ($(T)crti.o, $(T)crtn.o): Remove rules.
19868 2010-02-21 Tobias Burnus <burnus@net-b.de>
19871 * doc/invoke.texi (-fassociative-math): Document that this
19872 option is automatically enabled for Fortran.
19874 2010-02-20 David S. Miller <davem@davemloft.net>
19876 * configure.ac: Test if linker and assembler properly support
19877 GOTDATA_OP relocations.
19878 * configure: Rebuild.
19879 * config.in: Likewise.
19880 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
19881 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
19882 (movsi_high_pic): Likewise.
19883 (movdi_lo_sum_pic): Likewise.
19884 (movdi_high_pic): Likewise.
19885 (movsi_pic_gotdata_op): New pattern.
19886 (movdi_pic_gotdata_op): Likewise.
19887 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
19888 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
19890 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
19893 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
19894 attribute to ssemul.
19895 (xop_mulv2div2di3_high): Ditto.
19897 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19900 * c.opt (Wconversion-null): New option.
19901 * doc/invoke.texi (Wconversion-null): Document.
19903 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19905 * common.opt (Wlarger-than-): Add Undocumented.
19907 2010-02-19 Mike Stump <mikestump@comcast.net>
19909 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
19911 2010-02-19 Jason Merrill <jason@redhat.com>
19914 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
19915 * configure: Likewise.
19917 2010-02-20 Alan Modra <amodra@gmail.com>
19919 PR middle-end/42344
19920 * cgraph.h (cgraph_make_decl_local): Declare.
19921 * cgraph.c (cgraph_make_decl_local): New function.
19922 (cgraph_make_node_local): Use it.
19923 * cgraphunit.c (cgraph_function_versioning): Likewise.
19924 * ipa.c (function_and_variable_visibility): Likewise.
19926 2010-02-19 Jakub Jelinek <jakub@redhat.com>
19929 * except.c (sjlj_emit_function_enter): Don't call
19930 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
19932 * rtl.h (add_reg_br_prob_note): Remove prototype.
19934 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
19937 * c-common.c (conversion_warning): Remove widening conversions
19938 before checking the conversion of integers to reals.
19940 2010-02-19 Mike Stump <mikestump@comcast.net>
19942 PR middle-end/43125
19943 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
19946 * cgraphunit.c (process_function_and_variable_attributes): Check
19947 DECL_PRESERVE_P instead of looking up attribute "used".
19948 * ipa-pure-const.c (check_decl): Likewise.
19949 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
19950 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
19951 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
19952 instead of attribute "used".
19953 * config/sol2-c.c (solaris_pragma_init): Likewise.
19954 (solaris_pragma_fini): Likewise.
19956 2010-02-19 Jakub Jelinek <jakub@redhat.com>
19958 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
19959 Use XCNEW instead of xcalloc.
19960 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
19961 XNEW instead of xmalloc.
19962 (get_fields): Use XNEWVEC instead of xmalloc.
19965 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
19966 populate vars array.
19967 (create_new_general_access): For debug stmts just reset value.
19968 (get_stmt_accesses): For accesses within debug stmts just record them
19969 using add_access_to_acc_sites instead of preventing the peeling or
19970 counting them as accesses.
19972 PR middle-end/42233
19973 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
19975 2010-02-19 Richard Guenther <rguenther@suse.de>
19977 PR tree-optimization/42916
19978 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
19981 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
19983 * configure.ac: Replace all uses of changequote in macro arguments
19984 with proper quoting.
19986 2010-02-19 Jakub Jelinek <jakub@redhat.com>
19988 PR middle-end/42233
19989 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
19991 2010-02-19 Richard Guenther <rguenther@suse.de>
19993 PR tree-optimization/42944
19994 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
19995 test for aliasing with errno.
19997 2010-02-19 Jakub Jelinek <jakub@redhat.com>
19999 PR middle-end/42233
20000 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
20001 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
20002 * dojump.c: Include output.h.
20003 (inv): New inline function.
20004 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
20005 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
20006 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
20007 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
20008 argument, pass it down to other calls.
20009 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
20010 add REG_BR_PROB note to the conditional jump.
20011 * cfgexpand.c (add_reg_br_prob_note): Removed.
20012 (expand_gimple_cond): Don't call it, add the probability
20013 as last argument to jumpif_1/jumpifnot_1.
20014 * Makefile.in (dojump.o): Depend on output.h.
20015 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
20017 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
20018 * stmt.c (do_jump_if_equal): Likewise.
20019 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
20020 * loop-unswitch.c (compare_and_jump_seq): Likewise.
20021 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
20023 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
20024 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
20025 jumpifnot_1 callers.
20026 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
20028 (store_expr): Adjust jumpifnot caller.
20029 (store_constructor): Adjust jumpif caller.
20031 PR middle-end/42233
20032 * gimplify.c (gimple_boolify): For __builtin_expect call
20033 gimple_boolify also on its first argument.
20035 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
20037 * configure.ac (gnu-unique-object): Wrap regexps using [] in
20039 (__stack_chk_fail): Ditto. Remove quadrigraphs.
20040 * configure: Regenerated.
20042 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20044 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
20045 lang_hooks.types_compatible_p instead of comptypes.
20047 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
20049 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
20050 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
20051 if __prefer_thumb__ is defined.
20053 2010-02-18 Martin Jambor <mjambor@suse.cz>
20055 PR tree-optimization/43066
20056 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
20057 array with zero-sized element type.
20059 2010-02-18 Jakub Jelinek <jakub@redhat.com>
20061 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
20062 rtx, allocate struct var_loc_node here and return it to the
20063 caller, and only if it is actually needed.
20064 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
20065 move it earlier and return immediately if it returns NULL.
20067 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
20069 * config/sparc/gas.h: New file. Restore
20070 TARGET_ASM_NAMED_SECTION to its ELF default.
20071 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
20072 check !HAVE_GNU_AS.
20073 * config/sparc/sparc.c (sparc_elf_asm_named_section):
20074 Likewise. Add ATTRIBUTE_UNUSED to prototype.
20075 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
20076 after sparc/sysv4.h.
20078 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
20080 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
20082 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
20084 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
20085 patterns from predicated pattern.
20087 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
20090 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
20091 for insn mnemonic suffix.
20093 2010-02-17 Richard Guenther <rguenther@suse.de>
20095 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
20098 2010-02-17 Jakub Jelinek <jakub@redhat.com>
20101 * caller-save.c (save_call_clobbered_regs): If BB ends with
20102 a DEBUG_INSN, move any notes in between last real insn and the last
20103 DEBUG_INSN after the last DEBUG_INSN.
20105 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
20107 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
20108 Fix return type. Fix argument type. Explain meaning of return value.
20110 2010-02-16 Richard Guenther <rguenther@suse.de>
20112 PR tree-optimization/41043
20113 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
20114 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
20116 (vrp_visit_phi_node): ... but only for loop PHI nodes.
20118 2010-02-16 Ira Rosen <irar@il.ibm.com>
20120 PR tree-optimization/43074
20121 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
20122 * tree-vect-loop.c (vect_analyze_loop_operations): Add
20123 vectorizable cycles in hybrid SLP check.
20124 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
20126 2010-02-16 Richard Guenther <rguenther@suse.de>
20128 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
20129 (true_dependence): If memrefs_conflict_p computes must-alias
20130 trust it. Move TBAA check after offset-based disambiguation.
20131 (canon_true_dependence): Likewise.
20133 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
20135 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
20136 * doc/invoke.texi: Document it.
20137 * var-tracking.c: Include toplev.h and params.h.
20138 (vt_find_locations): Return bool indicating success. Compute
20139 hash sizes unconditionally. Check new parameter, report.
20140 (variable_tracking_main_1): Check vt_find_locations results and
20141 retry. Renamed from...
20142 (variable_tracking_main): ... this. New wrapper to preserve
20143 flag_var_tracking_assignments.
20144 * Makefile.in (var-tracking.o): Adjust dependencies.
20146 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
20147 Jakub Jelinek <jakub@redhat.com>
20150 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
20151 if weak_import attribute is present.
20152 * config/darwin.c (machopic_select_section): Likewise.
20154 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
20156 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
20157 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
20158 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
20159 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
20161 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
20164 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20165 Fix argument types.
20167 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
20168 Rewrite text to refer to the names.
20170 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
20172 * config/i386/i386-builtin-types.def
20173 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
20174 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
20175 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
20176 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
20177 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
20178 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
20179 IX86_BUILTIN_VPERMIL2PS256.
20180 (MULTI_ARG_4_DF2_DI_I): Defined.
20181 (MULTI_ARG_4_DF2_DI_I1): Defined.
20182 (MULTI_ARG_4_SF2_SI_I): Defined.
20183 (MULTI_ARG_4_SF2_SI_I1): Defined.
20184 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
20185 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
20186 __builtin_ia32_vpermil2ps256.
20187 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20188 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20189 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
20190 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20191 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20192 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
20193 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
20194 CODE_FOR_xop_vpermil2v8sf3.
20195 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
20196 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
20197 * config/i386/xopintrin.h (_mm_permute2_pd): New.
20198 (_mm256_permute2_pd): New.
20199 (_mm_permute2_ps): New.
20200 (_mm256_permute2_ps): New.
20202 2010-02-15 Nick Clifton <nickc@redhat.com>
20204 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
20205 boolean parameters. Use emit_jump_insn when emitting a pop
20206 instruction containing a return insn.
20207 (push): Use 'true' rather than '1' as second parameter to F.
20208 (h8300_expand_prologue): Likewise.
20209 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
20210 (h8300_expand_epilogue): Likewise.
20212 2010-02-15 Richard Guenther <rguenther@suse.de>
20214 PR middle-end/43068
20215 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
20218 2010-02-15 Nick Clifton <nickc@redhat.com>
20220 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
20223 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
20225 * intl.c (fake_ngettext): New function.
20226 * intl.h (fake_ngettext): Declare.
20227 (ngettext): Define macro.
20228 * collect2.c (notice_translated): New function.
20229 (main): Use notice_translated and ngettext.
20230 * collect2.h (notice_translated): Declare.
20232 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
20234 * reorg.c (delete_computation): Comment fixes.
20235 * caller-save.c (setup_save_areas): Idem.
20236 * sel-sched-dump.c (dump_lv_set): Idem.
20239 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20241 * config/s390/s390.c (s390_sched_init): New function.
20242 (TARGET_SCHED_INIT): Target hook defined.
20244 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
20245 Jack Howarth <howarth@bromo.med.uc.edu>
20246 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
20249 Partial revert of unintended change in fix for PR41605.
20250 * config/darwin.h: Fix typo.
20251 * config/darwin9.h: Same.
20253 2010-02-11 Jakub Jelinek <jakub@redhat.com>
20255 * c-pch.c (pch_init): Clear v.
20257 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20259 PR middle-end/42930
20260 * graphite-scop-detection.c (graphite_can_represent_scev): Call
20261 graphite_can_represent_init for MULT_EXPR.
20263 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20265 PR middle-end/42914
20266 PR middle-end/42530
20267 * graphite-sese-to-poly.c (remove_phi): New.
20268 (translate_scalar_reduction_to_array): Call remove_phi.
20270 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20272 PR middle-end/42771
20273 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
20274 * graphite-clast-to-gimple.h (gloog): Update declaration.
20275 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
20276 * graphite-poly.h (struct poly_bb): Add missing comments.
20277 (struct scop): Add poly_scop_p field.
20278 (POLY_SCOP_P): New.
20279 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
20280 * graphite.c (graphite_transform_loops): Build the polyhedral
20281 representation for each scop before code generation.
20282 * sese.c (rename_variables_in_operand): Removed.
20283 (rename_variables_in_expr): Return the renamed expression.
20284 (rename_sese_parameters): New.
20285 * sese.h (rename_sese_parameters): Declared.
20287 2010-02-11 Richard Guenther <rguenther@suse.de>
20289 PR tree-optimization/42998
20290 * tree-ssa-pre.c (create_expression_by_pieces): Treat
20291 POINTER_PLUS_EXPR properly.
20293 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
20294 Changpeng Fang <changpeng.fang@amd.com>
20296 PR middle-end/40886
20297 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
20298 the cost of an IV candidate when the IV is used in a test against zero.
20300 * gcc.dg/tree-ssa/ivopts-3.c: New.
20302 2010-02-11 Richard Guenther <rguenther@suse.de>
20305 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
20306 pointer-vs-decl case by swapping refs. Handle some cases
20307 of pointer-vs-decl disambiguations more conservatively.
20308 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
20309 to false after expanding.
20311 2010-02-11 Richard Guenther <rguenther@suse.de>
20314 * gcc.c (process_command): Handle LTO file@offset case more
20317 2010-02-11 Jakub Jelinek <jakub@redhat.com>
20319 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
20320 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
20322 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
20324 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
20325 if MEM's mode size isn't DWARF2_ADDR_SIZE.
20326 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
20327 Optimize eq/ne comparisons when both arguments are known to be
20329 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
20330 Don't mask operands unnecessarily if they are known to be already
20333 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
20335 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
20338 2010-02-10 Richard Guenther <rguenther@suse.de>
20340 PR tree-optimization/43017
20341 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
20342 for wrapping signed arithmetic.
20344 2010-02-10 Jakub Jelinek <jakub@redhat.com>
20347 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
20348 if no debug info should be emitted for it.
20350 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
20352 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
20353 note when flag_exceptions is set.
20355 2010-02-10 Duncan Sands <baldrick@free.fr>
20357 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
20359 2010-02-10 Richard Guenther <rguenther@suse.de>
20362 * tree.c (get_unwidened): Handle constants.
20363 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
20365 2010-02-10 Martin Jambor <mjambor@suse.cz>
20368 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
20369 check for variable argument counts independently.
20371 2010-02-10 Christian Bruel <christian.bruel@st.com>
20374 * config/sh/sh.c (find_barrier): Increase length for non delayed
20375 conditional branches.
20377 2010-02-10 Christian Bruel <christian.bruel@st.com>
20379 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
20381 2010-02-10 Jakub Jelinek <jakub@redhat.com>
20383 * builtins.c (set_builtin_user_assembler_name): Also handle
20384 ffs if int is smaller than word.
20386 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
20388 PR middle-end/42973
20389 * ira-conflicts.c (get_dup): Remove.
20390 (process_reg_shuffles): Add new parameter. Use it as an
20391 additional guard for copy generation.
20392 (add_insn_allocno_copies): Rewrite.
20394 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
20396 * common.opt (fsched2-use-traces): Preserved for backward
20398 * doc/invoke.texi: Remove the documentation about option
20399 -fsched2-use-traces.
20400 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
20401 flag_sched2_use_traces.
20402 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
20403 the backward compatibility flag section.
20405 2010-02-09 Richard Guenther <rguenther@suse.de>
20407 PR tree-optimization/43008
20408 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
20409 make HEAP variables initialized from global memory if they
20410 are not known builtin functions.
20411 (find_func_aliases): Adjust.
20413 2010-02-09 Richard Guenther <rguenther@suse.de>
20415 PR tree-optimization/43000
20416 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
20417 arithmetic manually.
20419 2010-02-08 Jakub Jelinek <jakub@redhat.com>
20421 PR tree-optimization/42931
20422 * tree-loop-linear.c (try_interchange_loops): Don't call
20423 double_int_mul if estimated_loop_iterations failed.
20425 2010-02-08 Martin Jambor <mjambor@suse.cz>
20427 PR middle-end/42898
20428 * tree-sra.c (build_accesses_from_assign): Do not mark in
20429 should_scalarize_away_bitmap if stmt has volatile ops.
20430 (sra_modify_assign): Do not process assigns piecemeal if if stmt
20433 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
20435 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
20437 2010-02-07 Adam Nemet <adambnmet@gmail.com>
20439 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
20440 before the pattern.
20442 2010-02-07 Andrew Pinski <pinskia@gmail.com>
20444 PR middle-end/42946
20445 * df-core.c (df_finish_pass): Change type of saved_flags to int.
20447 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
20449 PR middle-end/42988
20450 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
20451 to unknown_dependence.
20452 (graphite_legal_transform_dr): Handle the unknown_dependence.
20453 (graphite_carried_dependence_level_k): Same.
20455 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
20457 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
20459 2010-02-07 Richard Guenther <rguenther@suse.de>
20461 PR middle-end/42991
20462 * expr.c (get_inner_reference): Always initialize *pbitsize.
20464 2010-02-07 Richard Guenther <rguenther@suse.de>
20466 PR middle-end/42956
20467 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
20468 new ARRAY_REFs on variable size element or minimal index arrays.
20470 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
20471 gimple_fold_indirect_ref.
20473 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
20476 * arm.c (arm_override_options): Just return if the user has specified
20477 an invalid fpu name.
20479 2010-02-03 Jason Merrill <jason@redhat.com>
20482 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
20483 i386_pe_maybe_record_exported_symbol.
20485 2010-02-05 Steve Ellcey <sje@cup.hp.com>
20488 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20489 (pa_delegitimize_address): New function.
20491 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
20493 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
20494 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
20496 2010-02-05 Richard Guenther <rguenther@suse.de>
20499 * lto-streamer-in.c (get_resolution): Deal with references
20500 to undefined functions.
20502 2010-02-05 Richard Guenther <rguenther@suse.de>
20504 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
20505 (fold_const_aggregate_ref): Likewise.
20506 (ccp_fold_stmt): Substitute loads.
20507 (maybe_fold_reference): Verify types before substituting.
20509 (fold_gimple_assign): Unshare properly.
20510 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
20512 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
20514 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
20515 for rs6000_gen_cell_microcode.
20517 2010-02-04 Richard Guenther <rguenther@suse.de>
20519 PR rtl-optimization/42952
20520 * dse.c (const_or_frame_p): Remove MEM handling.
20522 2010-02-04 Nick Clifton <nickc@redhat.com>
20524 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20525 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20526 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
20527 (mn10300_asm_output_mi_thunk): New function.
20528 (mn10300_can_output_mu_thunk): New function.
20529 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
20530 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
20531 (FUNCTION_ARG): Delete incorrect comment.
20533 2010-02-03 Jason Merrill <jason@redhat.com>
20536 * fold-const.c (operand_equal_p): Handle erroneous types.
20538 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
20540 * config/h8300/h8300.md (can_delay): Fix attibute condition.
20542 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
20544 PR rtl-optimization/42941
20545 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
20548 2010-02-03 Jason Merrill <jason@redhat.com>
20551 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
20553 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
20556 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
20557 (cselib_reset_table): Renamed from...
20558 (cselib_reset_table_with_next_value): ... this.
20559 (cselib_get_next_uid): Renamed from...
20560 (cselib_get_next_unknown_value): ... this.
20561 * cselib.c (next_uid): Renamed from...
20562 (next_unknown_value): ... this.
20563 (cselib_clear_table): Adjust.
20564 (cselib_reset_table): Adjust. Renamed from...
20565 (cselib_reset_table_with_next_value): ... this.
20566 (cselib_get_next_uid): Adjust. Renamed from...
20567 (cselib_get_next_unknown_value): ... this.
20568 (get_value_hash): Use hash.
20569 (cselib_hash_rtx): Likewise.
20570 (new_cselib_val): Adjust. Set and dump uid.
20571 (cselib_lookup_mem): Pass next_uid as hash.
20572 (cselib_subst_to_values): Likewise.
20573 (cselib_log_lookup): Dump uid.
20574 (cselib_lookup): Pass next_uid as hash. Adjust.
20575 (cselib_process_insn): Adjust.
20576 (cselib_init): Initialize next_uid.
20577 (cselib_finish): Adjust.
20578 (dump_cselib_table): Likewise.
20579 * dse.c (canon_address): Dump value uid.
20580 * print-rtl.c (print_rtx): Print value uid.
20581 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
20583 (dv_uid): New function, sort of renamed from...
20584 (dv_htab_hash): ... this, reimplemented in terms of it and...
20585 (dv_uid2hash): ... this. New.
20586 (variable_htab_eq): Drop excess assertions.
20587 (tie_break_pointers): Removed.
20588 (canon_value_cmp): Compare uids.
20589 (variable_post_merge_New_vals): Print uids.
20590 (vt_add_function_parameters): Adjust.
20591 (vt_initialize): Reset table. Adjust.
20593 2010-02-03 Richard Guenther <rguenther@suse.de>
20595 PR tree-optimization/42944
20596 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
20597 (call_may_clobber_ref_p_1): Likewise. Properly handle
20598 malloc and calloc clobbering errno.
20600 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
20602 * doc/invoke.texi: Fix name of sched1 dump.
20604 * opts.c (decode_options): Set flag_tree_switch_conversion
20605 only conditionally on optimize >= 2.
20607 * gcse.c: Assorted comment fixes in pass description.
20609 2010-02-03 Anthony Green <green@moxielogic.com>
20611 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20612 nop padding in order to maintain alignment of storage location of
20613 target function address.
20614 (moxie_trampoline_init): Store target function address at newly
20616 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20618 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20620 2010-02-03 Richard Guenther <rguenther@suse.de>
20622 PR middle-end/42927
20623 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20625 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20627 * config.gcc: Reenable check for obsolete targets.
20628 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20629 mips-sgi-irix6.[0-4]*.
20631 2010-02-02 Nick Clifton <nickc@redhat.com>
20633 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20634 constant size of 4 as being the same as 0.
20635 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20636 can take values in the range 0..4.
20638 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
20641 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20642 as _darwin10_Unwind_FindEnclosingFunction().
20643 * libgcc-libsystem.ver: New.
20645 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
20648 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20649 implicitly set registers.
20651 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
20653 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20654 (arm_override_options): Allow automatic selection of the thread
20655 pointer register if thumb2.
20656 (legitimize_pic_address): Improve code sequences for Thumb2.
20657 (arm_call_tls_get_addr): Likewise.
20658 (legitimize_tls_address): Likewise.
20659 * arm.md (pic_load_addr_arm): Delete. Replace with ...
20660 (pic_load_addr_32bit): ... this. New named pattern.
20661 * thumb2.md (pic_load_addr_thumb2): Delete.
20662 (pic_load_dot_plus_four): Delete.
20663 (tls_load_dot_plus_four): New named pattern.
20665 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20668 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20669 Document fix for TLS bug.
20671 2010-01-31 Richard Guenther <rguenther@suse.de>
20673 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20674 conservatively correct.
20676 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20680 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20682 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20684 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20686 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20688 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
20690 * config.gcc: Adjust order of makefile fragments for mingw targets.
20692 2010-01-31 Richard Guenther <rguenther@suse.de>
20694 PR middle-end/42898
20695 * gimplify.c (gimplify_init_constructor): For volatile LHS
20696 initialize a temporary.
20698 2010-01-31 Matthias Klose <doko@ubuntu.com>
20700 * configure.ac: Fix __stack_chk_fail check for cross builds configured
20702 * configure: Regenerate.
20704 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
20706 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20707 the same alias set and their sizes different constantness.
20708 (aliasing_component_refs_p): Revert 2009-10-24 change.
20710 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20712 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20715 2010-01-29 Richard Guenther <rguenther@suse.de>
20717 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20718 Assert we successfully updated the call.
20720 2010-01-29 Jakub Jelinek <jakub@redhat.com>
20722 PR rtl-optimization/42889
20723 * df.h (df_set_bb_dirty_nonlr): New prototype.
20724 * df-core.c (df_set_bb_dirty_nonlr): New function.
20725 * df-scan.c (df_insn_rescan): Call it instead of
20726 df_set_bb_dirty for DEBUG_INSNs.
20728 2010-01-29 Richard Guenther <rguenther@suse.de>
20730 PR middle-end/37448
20731 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20732 quadratic behavior in most cases.
20734 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
20737 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20738 in the call to gen_x86_movsicc_0_m1.
20740 2010-01-28 Richard Guenther <rguenther@suse.de>
20742 PR tree-optimization/42871
20743 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
20745 2010-01-28 Richard Guenther <rguenther@suse.de>
20747 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
20748 into call arguments.
20750 2010-01-28 Richard Guenther <rguenther@suse.de>
20752 PR middle-end/42883
20753 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
20754 the forwarder if the destination is an EH landing pad.
20756 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
20758 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
20759 block list passed to gimple_duplicate_sese_tail.
20760 (parallelize_loops): Avoid parallelization when the function
20761 has_nonlocal_label.
20762 Avoid parallelization when the preheader is IRREDUCIBLE.
20763 Try to optimize when estimated_loop_iterations_int is unresolved.
20764 Add the loop's location to the dump file.
20765 * tree-cfg.c (add_phi_args_after_redirect): Remove.
20766 (gimple_duplicate_sese_tail): Remove the check for the latch.
20767 Redirect nexits to the exit block.
20768 Remove handling of the incoming edges to the latch.
20769 Redirect the backedge from the copied latch to the exit bb.
20771 2010-01-28 Michael Matz <matz@suse.de>
20774 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
20775 Wrap force_reg into a sequence, emit it before user.
20777 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
20779 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
20781 (arm_legacy_rev): Likewise.
20782 (thumb_legacy_rev): Likewise.
20784 2010-01-27 Jakub Jelinek <jakub@redhat.com>
20786 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
20787 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
20788 on MEM's address failed, try avoid_constant_pool_reference and
20789 recurse if it returned something different.
20790 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
20791 address, try avoid_constant_pool_reference and recurse if it
20792 returned something different.
20793 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
20794 address and avoid_constant_pool_reference returned something
20795 different, don't set have_address.
20797 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
20800 * var-tracking.c (val_store): Add modified argument, obey it.
20802 (count_uses): Move down logging of main.
20803 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
20804 don't need resolution.
20805 (emit_notes_in_bb): Likewise.
20807 2010-01-27 Richard Guenther <rguenther@suse.de>
20809 PR middle-end/42878
20810 * tree-inline.c (remap_decl): Delay remapping of SSA name
20811 default definitions until we need them.
20813 2010-01-27 Jakub Jelinek <jakub@redhat.com>
20815 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20816 (rs6000_delegitimize_address): New function.
20818 * config/s390/s390.c (s390_delegitimize_address): Call
20819 delegitimize_mem_from_attrs.
20821 PR middle-end/42874
20822 * tree-inline.c (cannot_copy_type_1): Removed.
20823 (copy_forbidden): Don't forbid copying of functions containing
20824 records/unions with variable length fields.
20826 2010-01-27 Christian Bruel <christian.bruel@st.com>
20830 * config/sh/sh.c (find_barrier): Increase length for non delayed
20831 conditional branches.
20833 2010-01-27 Matthias Klose <doko@ubuntu.com>
20835 * configure.ac (gnu-unique-object): Fix ldd version check.
20836 * configure: Regenerate.
20838 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20840 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
20842 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
20843 Test for HAVE_GNU_AS value.
20845 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20847 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
20848 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
20849 INT64_TYPE): Define.
20850 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
20851 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
20852 INT_LEAST64_TYPE): Define.
20853 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
20854 UINT_LEAST64_TYPE): Define.
20855 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
20856 INT_FAST64_TYPE): Define.
20857 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
20858 UINT_FAST64_TYPE): Define.
20859 (INTMAX_TYPE, UINTMAX_TYPE): Define.
20860 (INTPTR_TYPE, UINTPTR_TYPE): Define.
20861 (SIG_ATOMIC_TYPE): Define.
20863 2010-01-26 Richard Guenther <rguenther@suse.de>
20865 * df-scan.c (df_scan_set_bb_info): Remove assert.
20866 (df_insn_rescan_debug_internal): Merge asserts.
20867 (df_install_ref): Likewise.
20868 (df_mark_reg): Use bitmap_set_range.
20869 (df_hard_reg_used_p): Remove assert.
20870 (df_hard_reg_used_count): Likewise.
20872 2010-01-26 Richard Guenther <rguenther@suse.de>
20874 PR rtl-optimization/42685
20875 * web.c (web_main): Ignore DEBUG_INSNs.
20877 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
20879 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
20881 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
20882 Fix types of fndecl and arglist parameters.
20884 2010-01-26 Richard Guenther <rguenther@suse.de>
20886 PR middle-end/42806
20887 * tree-eh.c (unsplit_eh): Skip debug insns.
20889 2010-01-26 Richard Guenther <rguenther@suse.de>
20891 PR tree-optimization/42250
20892 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
20894 2010-01-26 Jakub Jelinek <jakub@redhat.com>
20897 * omp-low.c (expand_omp_sections): Only use single_pred if
20898 l2_bb is single_pred_p.
20900 2010-01-25 Christian Bruel <christian.bruel@st.com>
20903 * config/sh/sh.c (find_barrier): Increase length for non delayed
20904 conditional branches.
20905 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
20907 2010-01-24 David S. Miller <davem@davemloft.net>
20909 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
20910 define if not using GAS.
20911 * config/sparc/sparc.c (sparc_elf_asm_named_section):
20912 Likewise. Delete SECTION_MERGE code, which is only applicable
20915 2010-01-24 Mark Mitchell <mark@codesourcery.com>
20918 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
20919 mangling of va_list in system headers.
20921 2010-01-23 Toon Moene <toon@moene.org>
20923 * tree-predcom.c (combine_chains): Return NULL, not false.
20925 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
20927 * tree-loop-distribution.c (distribute_loop): Fix declaration and
20928 initialization of variable res to agree with return type.
20930 2010-01-22 Steve Ellcey <sje@cup.hp.com>
20932 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
20933 * tree-sra.c: Add include of expr.h.
20935 2010-01-22 Jakub Jelinek <jakub@redhat.com>
20937 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
20938 insert the debug stmt on the single non-EH edge from the stmt.
20940 2010-01-22 Richard Henderson <rth@redhat.com>
20943 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
20944 the RHS until after generate_subtree_copies has insertted its
20945 code before the current statement.
20947 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
20949 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
20951 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
20953 2010-01-21 Martin Jambor <mjambor@suse.cz>
20955 PR tree-optimization/42585
20956 * tree-sra.c (struct access): New field grp_total_scalarization.
20957 (dump_access): Dump the new field.
20958 (should_scalarize_away_bitmap): New variable.
20959 (cannot_scalarize_away_bitmap): Likewise.
20960 (sra_initialize): Allocate new bitmaps.
20961 (sra_deinitialize): Free new bitmaps.
20962 (create_access_1): New function.
20963 (create_access): Parts moved to create_access_1.
20964 (type_consists_of_records_p): New function.
20965 (completely_scalarize_record): Likewise.
20966 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
20967 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
20968 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
20970 (analyze_all_variable_accesses): Completely scalarize small eligible
20973 2010-01-21 Martin Jambor <mjambor@suse.cz>
20975 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
20977 2010-01-21 Andrew Haley <aph@redhat.com>
20979 * gcc.c (process_command): Move lang_specific_driver before
20980 setting cc_libexec_prefix.
20982 2010-01-21 Richard Guenther <rguenther@suse.de>
20984 PR middle-end/19988
20985 * fold-const.c (negate_expr_p): Pretend only negative
20986 real constants are easily negatable.
20988 2010-01-20 Janis Johnson <janis187@us.ibm.com>
20989 Jason Merrill <jason@redhat.com>
20991 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
20992 (TYPE_TRANSPARENT_AGGR): this, for union and record.
20993 * calls.c (initialize argument_information): Handle it.
20994 * c-common.c (handle_transparent_union_attribute): Use new name.
20995 * c-decl.c (finish_struct): Ditto.
20996 * c-typeck.c (type_lists_compatible_p): Ditto.
20997 (convert_for_assignment): Use new name and also handle record.
20998 * function.c (aggregate_value_p): Handle it.
20999 (pass_by_reference): Ditto.
21000 (assign_parm_data_types): Ditto.
21001 * print-tree.c (print_node): Ditto.
21002 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
21003 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
21004 * tree.c (first_field): New fn.
21006 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
21009 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
21010 even when linking statically, for now.
21012 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
21015 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
21016 without a cselib val.
21017 (count_uses): Accept MO_VAL_SET with no val on stores.
21018 (add_stores): Likewise.
21020 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21022 * var-tracking.c (check_value_val): Add a compile time assertion.
21023 (dv_is_decl_p): Simplify.
21024 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
21025 gcc_assert if ENABLE_CHECKING.
21027 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
21030 * var-tracking.c: Include tree-flow.h.
21031 (mem_dies_at_call): New.
21032 (dataflow_set_preserve_mem_locs): Use it.
21033 (dataflow_set_remove_mem_locs): Likewise.
21034 (dump_var): Renamed from dump_variable. Adjust all callers.
21035 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
21036 * Makefile.in (var-tracking.o): Adjust deps.
21038 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
21040 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
21042 2010-01-20 Richard Guenther <rguenther@suse.de>
21044 PR tree-optimization/42717
21045 * tree-ssa-dce.c (get_live_post_dom): Remove.
21046 (forward_edge_to_pdom): Take an arbitrary edge to copy
21047 degenerate PHI args from.
21048 (remove_dead_stmt): Use the first post-dominator even if it
21049 does not contain live statements as redirection destination.
21051 2010-01-20 Richard Guenther <rguenther@suse.de>
21053 * tree-inline.c (estimate_num_insns): Handle EH builtins.
21055 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21057 * sel-sched.c (create_speculation_check): Remove set but not used
21059 (try_transformation_cache): Remove set but not used variable ds.
21060 (calculate_privileged_insns): Remove set but not used variables
21061 cur_insn and min_spec_insn.
21062 (find_best_expr): Remove set but not used variable avail_n.
21063 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
21065 * cgraphunit.c (assemble_thunk): Remove set but not used variable
21067 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
21068 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
21069 new_scop_exit_edge.
21071 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
21074 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
21075 cpu types. Add support for *-sse3 cpu types.
21076 (x86_64-*-*): Ditto.
21078 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21080 PR middle-end/42803
21081 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
21082 argument, call initializer_constant_valid_p_1 instead of
21083 initializer_constant_valid_p, pass CACHE to it, return NULL
21084 immediately if first call returns NULL.
21085 (initializer_constant_valid_p_1): New function.
21086 (initializer_constant_valid_p): Use it.
21088 2010-01-20 Thomas Quinot <quinot@adacore.com>
21090 * tree.def (PLACEHOLDER_EXPR): Fix comment.
21092 2010-01-20 Jakub Jelinek <jakub@redhat.com>
21094 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
21095 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
21096 (loc_list_from_tree): Don't handle unsigned division. Handle
21097 signed modulo using DW_OP_{over,over,div,mul,minus}.
21098 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
21099 modulo instead of signed.
21101 2010-01-20 DJ Delorie <dj@redhat.com>
21103 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
21105 (h8300_emit_stack_adjustment): Propogate it.
21107 (h8300_expand_prologue): Likewise.
21108 (h8300_expand_epilogue): Likewise.
21110 2010-01-19 Michael Matz <matz@suse.de>
21112 PR tree-optimization/41783
21113 * tree-data-ref.c (toplevel): Include flags.h.
21114 (dump_data_dependence_relation): Also dump the inputs if the
21115 result will be unknown.
21116 (split_constant_offset_1): Look through some conversions.
21117 * tree-predcom.c (determine_roots_comp): Restart a new chain if
21118 the offset from last element is too large.
21119 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
21120 (reassociate_to_the_same_stmt): Handle vector registers.
21121 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
21122 (e.g. conversions).
21123 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
21124 wide_prolog_niters argument, emit widening instructions.
21125 (vect_do_peeling_for_alignment): Adjust caller, use widened
21126 variant of the iteration cound.
21127 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
21129 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21132 * config/arm/neon-testgen.m (emit_automatics): New parameter
21133 features. Adjust for Fixed_return_reg feature.
21134 (test_intrinsic): Call emit_automatics with new feature.
21135 * config/arm/neon.ml: Update copyright years.
21136 (features): New Fixed_return_reg feature.
21137 (ops): Update feature for Vget_low.
21139 2010-01-19 Jakub Jelinek <jakub@redhat.com>
21141 PR tree-optimization/42719
21142 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
21146 * fwprop.c (all_uses_available_at): Return false if def_set dest
21147 is a REG that is used in def_insn.
21149 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
21151 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
21153 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
21154 Add argument names.
21156 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
21158 * target.h (struct gcc_target) <secondary_reload>: Change type
21159 of last argument to secondary_reload_info *.
21161 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
21164 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
21165 memory references with unaligned offsets. Remove CQImode handling.
21166 (unaligned_memory_operand): Return 1 for memory references with
21167 unaligned offsets. Remove CQImode handling.
21169 2010-01-18 Richard Guenther <rguenther@suse.de>
21171 PR middle-end/39954
21172 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
21175 2010-01-18 Richard Guenther <rguenther@suse.de>
21177 PR tree-optimization/42781
21178 * tree-ssa-structalias.c (find_what_var_points_to): Skip
21179 restrict processing only if the original variable was artificial.
21181 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
21183 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
21184 find number of popped argument bytes.
21186 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
21187 Fix the text that describes the return value for invalid insns.
21189 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
21191 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
21192 Clarify what 'cost of the -dependence' is. Fix quoting.
21194 * toplev.c (default_get_pch_validity): Rename argument to "sz".
21195 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
21197 2010-01-17 Jakub Jelinek <jakub@redhat.com>
21199 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21200 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
21202 2010-01-17 Richard Guenther <rguenther@suse.de>
21204 PR middle-end/42248
21205 * function.c (split_complex_args): Take a VEC to modify.
21206 (assign_parms_augmented_arg_list): Build a VEC instead of
21207 a chain of PARM_DECLs.
21208 (assign_parms_unsplit_complex): Take a VEC of arguments.
21209 Do not fixup unmodified parms.
21210 (assign_parms): Deal with the VEC.
21211 (gimplify_parameters): Likewise.
21213 2010-01-17 Richard Guenther <rguenther@suse.de>
21215 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
21216 node existence check.
21217 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
21218 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
21219 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
21220 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
21221 (gimple_execute_on_growing_pred): Likewise.
21223 2010-01-17 Richard Guenther <rguenther@suse.de>
21225 PR tree-optimization/42773
21226 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
21227 (compute_antic_aux): Likewise.
21228 (compute_partial_antic_aux): Likewise.
21230 2010-01-17 Jie Zhang <jie.zhang@analog.com>
21233 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
21236 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
21238 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
21241 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
21242 Fix markup for strict argument.
21244 (TARGET_SCHED_REORDER2): Fix argument types.
21246 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
21247 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
21249 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
21250 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
21252 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
21255 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
21256 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
21257 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
21258 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
21259 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
21261 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
21263 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
21265 (TARGET_ASM_RELOC_RW_MASK): Add return type.
21266 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
21268 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
21270 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
21273 (TARGET_ASM_NAMED_SECTION): Fix argument list.
21275 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
21276 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
21278 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
21280 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
21282 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
21283 referring to it. Fix language.
21285 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
21287 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
21289 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
21291 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
21293 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
21294 '@var{stream}. Remove stray 'and'.
21296 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
21298 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
21300 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
21302 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
21303 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
21305 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
21306 Fix description of return value.
21307 Rename argument "sz" to "len."
21309 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
21310 Clarify meaning of 'true' return value.
21312 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
21314 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
21315 rep_mode versus mode_rep.
21317 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
21319 (TARGET_BUILTIN_DECL): Fix name.
21321 (TARGET_COMMUTATIVE_P): Fix type of first argument.
21323 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
21325 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
21327 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
21329 (TARGET_RELAXED_ORDERING): Use @deftypevr.
21331 (TARGET_GET_DRAP_RTX): Note that this is a hook.
21334 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
21335 Rename argument tm_fn to md_fn.
21337 (TARGET_OPTION_PRINT): Fix argument list.
21339 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
21342 * config/i386/i386.c (ix86_fixup_binary_operands):
21343 Revert FMA4 fixup of operands.
21345 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21348 * Makefile.in (write_entries_to_file, install-plugin):
21349 Use \012 instead of \n with tr.
21351 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
21353 * configure.ac (HAVE_AS_REF): New C macro.
21354 * configure: Regenerate.
21355 * config.in: Likewise.
21356 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
21358 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
21361 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
21363 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
21365 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
21367 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
21369 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
21371 (TARGET_IN_SMALL_DATA_P): Fix argument type.
21373 (TARGET_BINDS_LOCAL_P): Fix argument type.
21375 (TARGET_ASM_FILE_END): Use prototype.
21377 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
21379 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
21381 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
21383 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
21385 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
21386 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
21388 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
21389 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
21391 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
21392 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
21393 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
21394 (TARGET_ADDR_SPACE_CONVERT): Likewise.
21396 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
21398 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
21400 (TARGET_INIT_BUILTINS): Use prototype.
21402 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
21403 Put 'const char *' in braces. Fix parameter types.
21404 (TARGET_INVALID_CONVERSION): Fix parameter types.
21405 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
21406 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
21408 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
21411 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
21413 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
21415 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
21417 * doc/tm.texi (TARGET_HELP): Fix return type.
21419 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
21420 in braces. Fix argument types.
21422 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
21424 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
21426 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
21428 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
21429 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
21431 (TARGET_MANGLE_TYPE): Fix argument types.
21433 (TARGET_IRA_COVER_CLASSES): Use prototype.
21435 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
21437 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
21439 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
21441 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
21443 (TARGET_CALLEE_COPIES): Fix argument types.
21445 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
21447 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
21449 (TARGET_FUNCTION_VALUE): Fix argument types.
21451 (TARGET_RETURN_IN_MSB): Fix argument type.
21453 (TARGET_RETURN_IN_MEMORY): Fix argument types.
21455 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
21457 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
21459 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
21460 agree with return type.
21462 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
21464 2010-01-15 Jing Yu <jingyu@google.com>
21466 PR rtl-optimization/42691
21467 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
21468 a pseudo to a constant and are merged, and adjust comments.
21470 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
21472 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
21474 2010-01-15 Richard Guenther <rguenther@suse.de>
21476 PR middle-end/42739
21477 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
21478 labels of computed or non-local gotos to the destination.
21479 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
21480 landing pad label is the first label.
21482 2010-01-15 Richard Guenther <rguenther@suse.de>
21484 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
21486 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21489 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
21490 to allow generation of the xssqrtdp instruction on power7.
21491 (sqrtdf2_fpr): Ditto.
21493 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21495 PR middle-end/42674
21496 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
21497 functions with noreturn attribute.
21500 * varasm.c (declare_weak): Add weak attribute to decl if it
21501 doesn't have one already.
21502 (assemble_external): Only add decls to weak_decls if they also
21503 have weak attribute.
21505 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
21507 * var-tracking.c (var_reg_delete): Don't delete the association
21508 between REGs and values or one-part variables if the register
21511 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21514 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
21515 because its first operand is a non-localized variable.
21517 2010-01-14 Martin Jambor <mjambor@suse.cz>
21519 PR tree-optimization/42706
21520 * tree-sra.c (encountered_recursive_call): New variable.
21521 (encountered_unchangable_recursive_call): Likewise.
21522 (sra_initialize): Initialize both new variables.
21523 (callsite_has_enough_arguments_p): New function.
21524 (scan_function): Call decl and flags check only for IPA-SRA, check
21525 whether there is a recursive call and whether it has enough arguments.
21526 (all_callers_have_enough_arguments_p): New function.
21527 (convert_callers): Look for recursive calls only when
21528 encountered_recursive_call is set.
21529 (ipa_early_sra): Bail out either if
21530 !all_callers_have_enough_arguments_p or
21531 encountered_unchangable_recursive_call.
21533 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21535 * sel-sched.c: Add 2010 to copyright years.
21536 * sel-sched-ir.c: Likewise.
21537 * sel-sched-ir.h: Likewise.
21539 2010-01-14 Martin Jambor <mjambor@suse.cz>
21541 PR tree-optimization/42714
21542 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
21543 constructors specially.
21545 2010-01-14 Andi Kleen <ak@linux.intel.com>
21547 * config/i386/drivers-i386.c (detect_caches_intel):
21548 Add l2sizekb parameter and fill in.
21549 (host_detect_local_cpu): Add l2sizekb, fill in.
21550 Add Atom small cache heuristic.
21552 2010-01-14 Andi Kleen <ak@linux.intel.com>
21554 * config/i386/drivers-i386.c (detect_caches_cpuid4):
21555 Add level3 parameter and fill in.
21556 (detect_caches_intel): Handle level3 cache.
21558 2010-01-14 Andi Kleen <ak@linux.intel.com>
21560 * config/i386/drivers-i386.c (host_detect_local_cpu):
21561 Fix core duo detection.
21563 2010-01-14 Andi Kleen <ak@linux.intel.com>
21565 * config/i386/drivers-i386.c (host_detect_local_cpu):
21566 Fix Atom detection.
21568 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21570 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
21571 (rs6000_variable_issue_1): this. Use...
21572 (rs6000_variable_issue): here. Reimplement. Print debug info.
21574 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21576 * sel-sched-ir.c (sel_restore_other_notes): Rename to
21577 sel_restore_notes. Update all callers. Call reemit_notes
21580 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21582 PR rtl-optimization/42246
21583 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
21586 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21588 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
21589 all successors is the same as number of successors in current region.
21591 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21593 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
21594 to rename is not separable. Otherwise check that its LHS is not NULL.
21596 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21598 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
21600 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21602 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
21603 available registers when failed to discover LHS register class.
21604 Fix indentation. Update comment.
21606 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21607 Alexander Monakov <amonakov@ispras.ru>
21609 PR rtl-optimization/42389
21610 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21612 (advance_state_on_fence): Likewise.
21613 (sel_target_adjust_priority): Print debug output only when
21614 sched_verbose >= 4, not 2.
21615 (get_expr_cost): Do not issue all unique insns on the next cycle.
21616 (fill_insns): Initialize can_issue_more from the value saved
21618 * sel-sched-ir.c (flist_add): New parameter issue_more.
21619 Init FENCE_ISSUE_MORE with it.
21620 (merge_fences): Likewise.
21621 (init_fences): Update call to flist_add.
21622 (add_to_fences, add_clean_fence_to_fences)
21623 (add_dirty_fence_to_fences): Likewise.
21624 (move_fence_to_fences): Update call to merge_fences.
21625 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21627 * sel-sched-ir.h (struct _fence): New field issue_more.
21628 (FENCE_ISSUE_MORE): New accessor macro.
21630 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21632 PR rtl-optimization/42388
21633 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21634 that have no predecessors nor successors. Do not call move_bb_info
21635 for empty blocks outside of current region.
21637 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21639 PR rtl-optimization/42294
21640 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21641 * sel-sched.c (move_exprs_to_boundary): Transitively add all
21642 originators' originators.
21644 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
21646 PR rtl-optimization/39453
21647 PR rtl-optimization/42246
21648 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21650 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21652 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21653 Alexander Monakov <amonakov@ispras.ru>
21655 PR middle-end/42245
21656 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
21657 (maybe_tidy_empty_bb): ... here. Make static. Add new
21658 argument. Update all callers.
21659 (tidy_control_flow): ... and here. Recompute topological order
21660 of basic blocks in region if necessary.
21661 (sel_redirect_edge_and_branch): Change return type. Return true
21662 if topological order might have been invalidated.
21663 (purge_empty_blocks): Export and move from...
21664 * sel-sched.c (purge_empty_blocks): ... here.
21665 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21666 (maybe_tidy_empty_bb): Delete prototype.
21667 (purge_empty_blocks): Declare.
21669 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
21671 PR rtl-optimization/42249
21672 * sel-sched.c (try_replace_dest_reg): When chosen register
21673 and original register is the same, do not bail out early, but
21674 still check all original insns for validity of replacing destination
21675 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21678 2010-01-14 Jakub Jelinek <jakub@redhat.com>
21681 Port from no-undefined-overflow branch:
21682 2009-03-09 Richard Guenther <rguenther@suse.de>
21684 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21686 2010-01-14 Richard Guenther <rguenther@suse.de>
21689 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21691 2010-01-14 Ira Rosen <irar@il.ibm.com>
21693 PR tree-optimization/42709
21694 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21695 as scalar type in creation of constant vector operand.
21697 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21700 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21701 (check-parallel-%): Match `testsuite' directory component only
21704 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
21706 PR translation/39521
21707 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21710 2010-01-13 Richard Guenther <rguenther@suse.de>
21712 PR tree-optimization/42730
21713 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21716 2010-01-13 Steve Ellcey <sje@cup.hp.com>
21719 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21720 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21723 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
21725 * config/bfin/libgcc-bfin.ver: Regenerate based on current
21726 libgcc-std.ver. Add entries for ___smulsi3_highpart and
21727 ___umulsi3_highpart.
21729 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21730 rather than schedule_insns if the pass is enabled.
21732 2010-01-13 Martin Jambor <mjambor@suse.cz>
21734 PR tree-optimization/42704
21735 * tree-sra.c (sra_modify_assign): Do not delete assignments to
21738 2010-01-13 Martin Jambor <mjambor@suse.cz>
21740 PR tree-optimization/42703
21741 * tree-sra.c (analyze_access_subtree): Check that we can build a
21742 reference to the original data within the aggregate.
21744 2010-01-13 Richard Guenther <rguenther@suse.de>
21746 PR tree-optimization/42705
21747 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
21749 2010-01-13 Richard Guenther <rguenther@suse.de>
21751 PR middle-end/42716
21752 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
21754 2010-01-13 Jakub Jelinek <jakub@redhat.com>
21757 * var-tracking.c (values_to_unmark): New variable.
21758 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21759 values_to_unmark vector. Moved body to...
21760 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
21761 instead queue it into values_to_unmark vector.
21762 (vt_find_locations): Free values_to_unmark vector.
21764 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
21766 * config/s390/s390.c (override_options): Set
21767 default of max-pending-list-length to 256
21769 2010-01-13 Richard Guenther <rguenther@suse.de>
21772 * tree-pass.h (PROP_gimple_lcx): New.
21773 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
21774 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
21775 before the final cleanup_eh.
21776 (dump_properties): Dump PROP_gimple_lcx.
21777 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
21778 (tree_lower_complex_O0): Remove.
21779 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
21780 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
21781 tree_lower_complex, schedule TODO_update_ssa.
21782 * lto-streamer-out.c (output_function): Stream the functions
21784 * lto-streamer-in.c (input_function): Likewise.
21785 (lto_read_body): Do not override them here.
21787 2010-01-12 Joseph Myers <joseph@codesourcery.com>
21790 * c-typeck.c (build_c_cast): Fold value cast to union type before
21791 wrapping it in a CONSTRUCTOR.
21793 2010-01-12 Jakub Jelinek <jakub@redhat.com>
21795 PR rtl-optimization/42699
21796 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
21799 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21801 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21802 SUBTARGET_WARN_UNUSED_SPEC): Move ...
21803 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21804 SUBTARGET_WARN_UNUSED_SPEC): ... here
21805 * config/mips/iris5.h (LIBGCC_SPEC): Define.
21807 2010-01-12 Julian Brown <julian@codesourcery.com>
21809 * config/arm/neon-schedgen.ml (Utils): Don't try to
21810 open missing module.
21811 (find_with_result): New.
21813 2010-01-12 Jakub Jelinek <jakub@redhat.com>
21816 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
21817 sharing when canonicalizing ({lt,ge}u (plus a b) b).
21819 PR tree-optimization/42645
21820 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
21821 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
21822 decl_map, set processing_debug_stmt to -1 and return name without
21825 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
21827 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
21828 binutils version, and reword target configuration description.
21830 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
21832 * config/avr/avr.h (LINKER_NAME): Remove.
21834 2010-01-11 Janis Johnson <janis187@us.ibm.com>
21837 * config/rs6000/rs6000.c (rs6000_override_options): On targets
21838 that support VSX, warn for -mno-altivec if vsx is not disabled,
21841 2010-01-11 Joseph Myers <joseph@codesourcery.com>
21842 Shujing Zhao <pearly.zhao@oracle.com>
21844 PR translation/42469
21845 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
21846 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
21847 character between option name and help text.
21848 * c.opt (imultilib): Likewise.
21850 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
21852 * lto-streamer-out.c (output_unreferenced_globals): Output static
21855 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
21857 PR rtl-optimization/42621
21858 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
21859 optimizing for size.
21860 (duplicate_computed_gotos): Remove now-redundant check.
21862 2010-01-10 Steve Ellcey <sje@cup.hp.com>
21865 * configure.ac: Save and restore LDFLAGS and LIBS
21866 * configure: Regenerate.
21868 2010-01-10 Richard Guenther <rguenther@suse.de>
21870 PR middle-end/42667
21871 * builtins.c (fold_builtin_strlen): Add type argument and
21872 convert the resulting length to it.
21873 (fold_builtin_1): Adjust.
21875 2010-01-09 Jakub Jelinek <jakub@redhat.com>
21877 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
21878 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
21880 (num_insns_constant_wide): Adjust for that change.
21882 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21885 * web.c (union_defs): Add used argument, to combine uses of
21886 uninitialized regs.
21887 (entry_register): Adjust type and tests of used argument.
21888 (web_main): Widen used for new use. Pass it to union_defs.
21889 * df.h (union_defs): Adjust prototype.
21891 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21894 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
21895 uses in new incoming argument. Free body.
21896 (reset_debug_uses_in_loop): New.
21897 (analyze_insn_to_expand_var): Call the latter if the former found
21898 anything. Fix whitespace. Reject invalid dest overlaps before
21899 going through all insns in the loop.
21901 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21904 * haifa-sched.c (dying_use_p): Debug insns don't count.
21906 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21908 PR middle-end/42363
21909 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
21910 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
21911 (verify_gimple_call): Reject LHS in noreturn calls.
21913 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21917 * tree-vect-loop-manip.c (adjust_info): New type.
21918 (adjust_vec): New pointer to vector.
21919 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
21920 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
21921 (slpeel_update_phis_for_duplicate_loop): Use them.
21922 (slpeel_update_phi_nodes_for_guard1): Likewise.
21923 (slpeel_update_phi_nodes_for_guard2): Likewise.
21924 (slpeel_tree_peel_loop_to_edge): Likewise.
21925 (vect_update_ivs_after_vectorizer): Likewise.
21927 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21929 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
21930 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
21932 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
21934 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
21935 bogus uninitialized warning.
21937 2010-01-09 Richard Guenther <rguenther@suse.de>
21939 PR middle-end/42512
21940 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
21941 the evolution is compatible with the initial condition.
21943 2010-01-09 Jakub Jelinek <jakub@redhat.com>
21945 * gcc.c (process_command): Update copyright notice dates.
21946 * gcov.c (print_version): Likewise.
21947 * gcov-dump.c (print_version): Likewise.
21948 * mips-tfile.c (main): Likewise.
21949 * mips-tdump.c (main): Likewise.
21951 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
21954 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
21956 (rotlhi3_8): Delete.
21958 (rotlsi3_8): Delete.
21959 (rotlsi3_16): Delete.
21960 (rotlsi3_24): Delete.
21961 (rotl<mode>3): New.
21962 (*rotw<mode>3): New.
21963 (*rotb<mode>3): New.
21964 * config/avr/avr.c (avr_rotate_bytes): New function.
21965 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
21967 2010-01-08 Steve Ellcey <sje@cup.hp.com>
21970 * configure.ac: Modify -rdynamic check.
21971 * configure: Regenerate.
21973 2010-01-08 DJ Delorie <dj@redhat.com>
21975 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
21976 register popping order.
21978 2010-01-08 Richard Guenther <rguenther@suse.de>
21981 * c.opt (fsigned-char): Also let LTO handle this option.
21982 (funsigned-char): Likewise.
21984 2010-01-07 Richard Guenther <rguenther@suse.de>
21986 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
21987 (gimple_op): Likewise.
21988 (gimple_op_ptr): Likewise.
21989 (gimple_assign_set_lhs): Remove gcc_assert.
21990 (gimple_assign_set_rhs1): Likewise.
21991 (gimple_assign_set_rhs2): Likewise.
21992 (gimple_call_set_lhs): Likewise.
21993 (gimple_call_set_fn): Likewise.
21994 (gimple_call_set_fndecl): Likewise.
21995 (gimple_call_fndecl): Likewise.
21996 (gimple_call_return_type): Likewise.
21997 (gimple_call_set_chain): Likewise.
21998 (gimple_call_num_args): Likewise.
21999 (gimple_call_set_arg): Likewise.
22000 (gimple_cond_set_code): Likewise.
22001 (gimple_cond_set_lhs): Likewise.
22002 (gimple_cond_set_rhs): Likewise.
22003 (gimple_cond_set_true_label): Likewise.
22004 (gimple_cond_set_false_label): Likewise.
22005 (gimple_label_set_label): Likewise.
22006 (gimple_goto_set_dest): Likewise.
22007 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
22008 (gimple_debug_bind_get_value): Likewise.
22009 (gimple_debug_bind_get_value_ptr): Likewise.
22010 (gimple_debug_bind_set_var): Likewise.
22011 (gimple_debug_bind_set_value): Likewise.
22012 (gimple_debug_bind_reset_value): Likewise.
22013 (gimple_debug_bind_has_value_p): Likewise.
22014 (gimple_return_retval_ptr): Remove gcc_assert.
22015 (gimple_return_retval): Likewise.
22016 (gimple_return_set_retval): Likewise.
22017 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
22018 (safe_referenced_var_iterator): Remove.
22019 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
22020 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
22021 (fill_referenced_var_vec): Remove.
22022 (first_readonly_imm_use): Remove redundant gcc_assert.
22023 (phi_arg_index_from_use): Combine gcc_asserts.
22024 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
22025 (first_imm_use_stmt): Remove redundant gcc_assert.
22026 * tree-cfg.c (verify_gimple_call): Verify function and chain
22027 operands. Verify arguments.
22028 (verify_types_in_gimple_stmt): Verify condition code and labels.
22030 2010-01-07 Richard Guenther <rguenther@suse.de>
22032 PR tree-optimization/42641
22033 * sese.c (rename_map_elt_info): Use the SSA name version, do
22036 2010-01-07 Jakub Jelinek <jakub@redhat.com>
22038 PR tree-optimization/42625
22039 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
22040 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
22042 2010-01-07 Duncan Sands <baldrick@free.fr>
22044 * Makefile.in (PLUGIN_HEADERS): Add version.h.
22046 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
22049 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
22050 note itself is not function_invariant_p.
22052 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
22054 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
22055 Do not add the DF_NOTE problem.
22056 * store-motion.c (execute_rtl_store_motion): Likewise.
22058 2010-01-07 Martin Jambor <mjambor@suse.cz>
22060 PR tree-optimization/42157
22061 * tree-sra.c (compare_access_positions): Stabilize sort if both
22062 accesses have integer types, return zero immediately if they are the
22065 2010-01-06 Richard Henderson <rth@redhat.com>
22067 PR middle-end/41883
22068 * haifa-sched.c (add_to_note_list): Merge into ...
22069 (concat_note_lists): ... here, and ...
22070 (unlink_other_notes, rm_other_notes): Merge into...
22071 (remove_notes): ... here. Create REG_SAVE_NOTEs for
22072 NOTE_INSN_EPILOGUE_BEG.
22074 2010-01-06 Richard Guenther <rguenther@suse.de>
22076 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
22077 not inline regular functions into always-inline functions.
22079 2010-01-06 Nick Clifton <nickc@redhat.com>
22081 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
22082 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
22084 (OVERRIDE_OPTIONS): Delete.
22085 (OPTIMIZATION_OPTIONS): Define.
22086 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
22087 * config/rx/rx.c (rx_handle_option): Issue an error message if
22088 -mcpu=rx200 and -fpu are used together.
22089 (rx_set_optimization_options): New function. Issue an error
22090 message if an optimization attribute attempts to reset the FPU/
22091 math optimization pairing.
22092 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
22093 * config/rx/rx.opt: Set the default to 32-bit doubles.
22094 * config/rx/t-rx: Add multilibs for -nofpu option.
22095 * doc/invoke.texi: Update documentation of RX options.
22097 2010-01-06 Richard Guenther <rguenther@suse.de>
22099 * tree-ssa-pre.c (name_to_id): New global.
22100 (alloc_expression_id): Simplify SSA name handling.
22101 (lookup_expression_id): Likewise.
22102 (init_pre): Zero name_to_id.
22103 (fini_pre): Free it.
22105 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
22107 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
22109 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
22112 * config/i386/sse.md (smaxv2di3): New.
22113 (umaxv2di3): Likewise.
22114 (sminv2di3): Likewise.
22115 (uminv2di3): Likewise.
22117 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
22120 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
22121 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
22122 (legitimize_tls_address): Likewise.
22123 (sparc_tls_referenced_p): Likewise.
22124 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
22125 and adjust calls to legitimize_pic_address.
22126 (legitimate_constant_p) Use sparc_tls_referenced_p.
22127 (legitimate_pic_operand_p): Likewise.
22128 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
22129 (sparc_tls_symbol_ref_1): Delete.
22130 (sparc_tls_referenced_p): Make static, recognize specific patterns.
22131 (legitimize_tls_address): Make static, handle CONST patterns.
22132 (legitimize_pic_address): Make static, remove unused parameter and
22133 adjust recursive calls.
22134 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
22135 and adjust call to legitimize_pic_address.
22136 (sparc_output_mi_thunk): Likewise.
22138 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
22139 H.J. Lu <hongjiu.lu@intel.com>
22142 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
22143 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
22144 operands to make them signed.
22147 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22150 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22151 GTU to GT for V4SI and V2DI.
22153 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22154 (umin<mode>3): Removed.
22156 (uminv4si3): Likewise.
22158 2010-01-05 Martin Jambor <mjambor@suse.cz>
22160 PR tree-optimization/42462
22161 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
22162 current_function_decl to helper functions and macros.
22164 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22167 * flags.h: Don't include real.h.
22168 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
22169 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
22170 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
22171 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
22172 * dominance.c: Update copyright.
22173 * gimple.c (walk_gimple_op): Remove inline.
22174 * tree-ssa-reassoc.c: Include real.h.
22175 * Makefile.in (FLAGS_H): Remove $(REAL_H).
22176 (tree-ssa-reassoc.o): Depend on $(REAL_H).
22178 2010-01-05 Nick Clifton <nickc@redhat.com>
22180 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
22181 register to push into the stack frame when the accumulator has to
22182 be saved during interrupts.
22184 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
22186 * doc/invoke.texi: Remove the documentation about option
22187 -Wunreachable-code.
22188 * common.opt (Wunreachable-code): Preserved for backward
22190 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
22191 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
22192 the backward compatibility flag section.
22194 2010-01-05 Richard Guenther <rguenther@suse.de>
22196 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
22198 2010-01-05 Jakub Jelinek <jakub@redhat.com>
22201 * cfgexpand.c (expand_one_var): Diagnose too large variables.
22203 PR tree-optimization/42508
22204 * tree-sra.c (convert_callers): Check for recursive call
22205 by comparing cgraph nodes instead of decls.
22206 (modify_function): Call ipa_modify_formal_parameters also
22207 on all same_body aliases.
22209 * cgraphunit.c (cgraph_materialize_all_clones): Compare
22210 cgraph nodes when checking for same_body aliases.
22212 2010-01-05 Richard Guenther <rguenther@suse.de>
22214 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
22215 allocation and lookup.
22216 (get_or_alloc_expr_for_constant): Likewise.
22217 (phi_translate): Sink allocation.
22219 2010-01-04 Richard Guenther <rguenther@suse.de>
22221 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
22222 a new entry only if needed.
22223 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
22224 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
22226 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
22228 (phi_translate): Handle CONSTANTs early.
22230 2010-01-04 Martin Jambor <mjambor@suse.cz>
22232 PR tree-optimization/42398
22233 * tree-sra.c (struct access): Removed flag grp_different_types.
22234 (dump_access): Do not dump the removed flag.
22235 (sort_and_splice_var_accesses): Do not set the removed flag.
22236 (sra_modify_expr): Check for type compatibility directly.
22238 2010-01-04 Martin Jambor <mjambor@suse.cz>
22240 PR tree-optimization/42366
22241 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
22242 edges with variable number of parameters.
22243 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
22244 flag instead of asserting it.
22245 (ipa_read_node_info): Read uses_analysis_done flag.
22247 2010-01-04 Richard Guenther <rguenther@suse.de>
22249 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
22250 iterative_hash_* as intended.
22251 (vn_reference_compute_hash): Likewise. Simplify hashing
22253 (vn_reference_lookup_2): Likewise.
22254 (vn_nary_op_compute_hash): Likewise.
22255 (vn_phi_compute_hash): Likewise.
22256 (expressions_equal_p): Remove strange code.
22257 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
22258 (pre_expr_hash): Likewise. Simplify hashing SSA names.
22259 (bitmap_insert_into_set_1): Take value-id as parameter.
22260 (add_to_value): Pass it.
22261 (bitmap_insert_into_set): Likewise.
22262 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
22264 2010-01-04 Jakub Jelinek <jakub@redhat.com>
22267 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
22268 (do_self_spec): For switches with SWITCH_IGNORE set set also
22269 SWITCH_IGNORE_PERMANENTLY.
22270 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
22273 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
22275 * lto-streamer-out.c (output_unreferenced_globals): Output the full
22276 tree of an unreferenced global var.
22278 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22281 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22282 GTU to GT for V4SI and V2DI.
22284 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22285 (umin<mode>3): Removed.
22287 (uminv4si3): Likewise.
22289 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
22292 * collect2.c (main): Turn on trace in collect2 if -v is passed
22295 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
22297 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
22298 description of expression operand.
22300 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
22302 * configure.ac: Add install-html to target_list for Make-hooks.
22303 * configure: Regenerate.
22304 * fortran/Make-lang.in (F95_HTMLFILES): New.
22305 (fortran.html): Use it.
22306 (fortran.install-html): New.
22307 * Makefile.in (install-html): Add lang.install-html.
22308 * java/Make-lang.in (JAVA_HTMLFILES): New.
22309 (java.html): Use it.
22310 (java.install-html): New.
22311 * objc/Make-lang.in (objc.install-html): New.
22312 * objcp/Make-lang.in (obj-c++.install-html): New.
22313 * cp/Make-lang.in (c++.install-html): New.
22314 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
22315 * lto/Make-lang.in (lto.install-html): New.
22317 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
22320 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
22322 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
22324 PR rtl-optimization/41862
22325 * store-motion.c (store_killed_in_insn, compute_store_table,
22326 remove_reachable_equiv_notes, replace_store_insn,
22327 build_store_vectors): Ignore all DEBUG_INSNs.
22329 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
22332 * common.opt: Add dumpdir.
22334 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
22336 (option_map): Add --dumpdir.
22338 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
22340 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
22342 * opts.c (decode_options): Try dump_dir_name first if
22343 dump_base_name isn't an absolute path.
22344 (common_handle_option): Handle OPT_dumpdir.
22346 * toplev.c (dump_dir_name): New.
22347 (print_switch_values): Also ignore -dumpdir.
22349 * toplev.h (dump_dir_name): New.
22351 2010-01-03 Richard Guenther <rguenther@suse.de>
22353 PR tree-optimization/42589
22354 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
22355 double-word expansion of bswap32.
22357 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
22359 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
22360 with BLOCK_FOR_INSN.
22361 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
22362 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
22363 noce_process_if_block): Likewise.
22364 * gcse.c (compute_local_properties, insert_expr_in_table,
22365 insert_set_in_table, canon_list_insert, find_avail_set,
22366 pre_insert_copy_insn): Likewise.
22368 * basic-block.h (BLOCK_NUM): Move from here...
22369 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
22371 2010-01-03 Richard Guenther <rguenther@suse.de>
22373 PR tree-optimization/42438
22374 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
22375 contains_may_not_return_call flag.
22376 (BB_MAY_NOTRETURN): New.
22377 (valid_in_sets): Trapping nary operations are not valid
22378 in blocks that may not return.
22379 (insert_into_preds_of_block): Remove check for trapping expressions.
22380 (compute_avail): Compute also BB_MAY_NOTRETURN.
22382 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
22384 * doc/invoke.texi: Add 2010 to copyright years.
22386 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
22388 * config/sparc/sparc.c: Fix formatting nits.
22390 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
22391 Alexander Monakov <amonakov@ispras.ru>
22393 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
22395 2010-01-02 Richard Guenther <rguenther@suse.de>
22397 PR middle-end/42577
22398 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
22399 (simplify_switch_using_ranges): Mark to be removed edges
22402 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22404 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22406 * collect2.c (scan_libraries): Add missing argument in call to
22409 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
22412 * config/alpha/predicates.md (aligned_memory_operand): Return false
22414 (unaligned_memory_operand): Return true for CQImode.
22415 * config/alpha/alpha.c (get_aligned_mem): Assert that location
22416 doesn not cross aligned SImode word boundary.
22418 2010-01-02 Anatoly Sokolov <aesok@post.ru>
22420 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
22422 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
22423 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
22425 2010-01-02 Richard Guenther <rguenther@suse.de>
22428 * toplev.c (compile_file): Emit LTO marker properly. Change
22429 it to __gnu_lto_v1.
22430 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
22432 2010-01-01 Richard Guenther <rguenther@suse.de>
22435 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
22437 2010-01-01 Richard Guenther <rguenther@suse.de>
22440 * c-decl.c (grokdeclarator): For zero-size arrays force
22441 structural equality checks as layout_type does.
22443 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
22445 * builtins.c: Update copyright to 2010.
22447 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
22450 * lto-streamer-out.c (produce_asm): Revert the last change.
22451 (copy_function): Likewise.
22453 * lto-streamer.c (lto_get_section_name): Skip any leading
22456 2010-01-01 Richard Guenther <rguenther@suse.de>
22458 PR middle-end/42559
22459 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
22463 Copyright (C) 2010 Free Software Foundation, Inc.
22465 Copying and distribution of this file, with or without modification,
22466 are permitted in any medium without royalty provided the copyright
22467 notice and this notice are preserved.