1 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
4 (sparc_emit_set_const64): Likewise. Remove disabled code.
5 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
6 (sparc_emit_set_const64): Likewise.
8 2010-06-26 Catherine Moore <clm@codesourcery.com>
10 * config/mips/mips.md (alu_type): New attribute.
11 (type): Infer type from alu_type.
12 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
14 *subsi3_extended, negsi2, negdi2, *low<mode>,
15 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
16 xor<mode>3, *nor<mode>3,
17 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
18 *zero_extendhi_truncqi): Set alu_type instead of type.
20 2010-06-26 Douglas B Rupp <rupp@gnat.com>
22 * config/alpha/alpha.c (alpha_need_linkage): Adjust
23 splay_tree_new_ggc call.
24 (alpha_use_linkage): Likewise.
26 2010-06-26 Joseph Myers <joseph@codesourcery.com>
28 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
29 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
30 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
31 (static_specs): Remove switches_need_spaces.
32 (process_command, do_self_spec): Hardcode handling "-o" instead of
33 checking switches_need_spaces.
34 * system.h (SWITCHES_NEED_SPACES): Poison.
36 2010-06-26 Richard Guenther <rguenther@suse.de>
38 PR tree-optimization/44393
39 * tree-loop-distribution.c (generate_loops_for_partition): Fix
40 stmt removal and VOP renaming.
41 (generate_memset_zero): Remove redundant stmt updating.
42 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
43 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
45 2010-06-26 Jan Hubicka <jh@suse.cz>
47 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
48 edges comming from header are equivalent.
49 (visit_bb): Handle PHIs correctly.
50 * tree-inline.c (copy_phis_for_bb): Be able to copy
52 (copy_cfg_body): Produce edge from entry BB before copying
55 2010-06-26 Richard Guenther <rguenther@suse.de>
58 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
59 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
61 2010-06-26 Joseph Myers <joseph@codesourcery.com>
63 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
64 add_infile, alloc_switch): New.
65 (process_command): Remove variable lang_n_infiles. Process
66 options in a single pass. Use new functions for allocating
67 infiles and switches arrays. Properly skip operands of
68 -Xpreprocessor and -Xassembler.
70 2010-06-26 Jan Hubicka <jh@suse.cz>
73 * cgraphunit.c (cgraph_function_versioning): Remove wrong
74 cgraph_make_decl_local call; fix typo copying RTL data.
76 2010-06-25 DJ Delorie <dj@redhat.com>
78 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
79 (m32c_output_aligned_common): Likewise.
80 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
81 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
82 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
83 (m32c_register_pragmas): Register it.
84 * config/m32c/m32c.c (m32c_get_pragma_address): New.
85 (m32c_insert_attributes): Set #pragma address decls volatile.
86 (pragma_entry_eq): New.
87 (pragma_entry_hash): New.
88 (m32c_note_pragma_address): New.
89 (m32c_get_pragma_address): New.
90 (m32c_output_aligned_common): New.
91 * doc/extend.texi: Document the new pragma.
93 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
95 * config/m32c/predicates.md (m32c_any_operand): Check the code
96 instead of memory_operand so as to allow matching volatile MEMs.
97 (m32c_nonimmediate_operand): Likewise.
98 (mra_operand): Allow volatiles.
100 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
103 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
104 address if the offset is unknown.
106 2010-06-25 Douglas B Rupp <rupp@gnat.com>
108 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
109 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
110 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
111 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
112 to ia64_start_function. Invoke it.
113 * config/ia64/ia64.c (ia64_start_function): Call new function
114 dwarf2out_vms_debug_main_pointer.
116 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
118 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
119 statements computing the true predicate.
121 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
123 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
124 to boolean_true_node.
125 (reset_bb_predicate): New.
126 (predicate_bbs): Call reset_bb_predicate.
128 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
130 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
131 (tree_if_conversion): Returns true when something has been changed.
132 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
135 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
137 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
138 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
139 * tree-if-conv.c: Include dbgcnt.h.
140 (tree_if_conversion): Use if_conversion_tree to count the number of
141 if-convertible loops.
143 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
145 * common.opt (fprefetch-loop-arrays): Re-define
146 -fprefetch-loop-arrays as a tri-state option with the initial
148 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
149 pass only when flag_prefetch_loop_arrays > 0.
150 * toplev.c (process_options): Note that, with tri-states,
151 flag_prefetch_loop_arrays>0 means prefetching is enabled.
152 * config/i386/i386.c (override_options): Enable prefetching at -O3
153 for a set of CPUs that sw prefetching is helpful.
154 (software_prefetching_beneficial_p): New. Return TRUE if software
155 prefetching is beneficial for the given CPU.
157 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
159 PR rtl-optimization/44326
160 * implicit-zee.c (find_removable_zero_extends): Replace
161 INSN_P with NONDEBUG_INSN_P.
163 2010-06-25 Martin Jambor <mjambor@suse.cz>
165 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
166 (struct ipa_node_params): Removed the modification_analysis_done flag.
167 (ipa_is_param_modified): Removed.
168 (ipa_analyze_node): Declare.
169 (ipa_compute_jump_functions): Remove declaration.
170 (ipa_count_arguments): Likewise.
171 (ipa_detect_param_modifications): Likewise.
172 (ipa_analyze_params_uses): Likewise.
173 * ipa-prop.c (struct param_analysis_info): New type.
174 (visit_store_addr_for_mod_analysis): Removed.
175 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
176 moved down in the file.
177 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
178 (ipa_count_arguments): Made static.
179 (mark_modified): New function.
180 (is_parm_modified_before_call): New function.
181 (compute_pass_through_member_ptrs): New parameter parms_info, call
182 is_parm_modified_before_call instead of ipa_is_param_modified.
183 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
184 it to compute_pass_through_member_ptrs.
185 (ipa_compute_jump_functions): New parameter parms_info, pass it to
186 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
187 on the callee if it is analyzed. Made static.
188 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
189 is_parm_modified_before_call instead of ipa_is_param_modified.
190 (ipa_analyze_call_uses): New parameter parms_info, pass it to
191 ipa_analyze_indirect_call_uses.
192 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
193 ipa_analyze_call_uses.
194 (ipa_analyze_params_uses): New parameter parms_info, pass it to
195 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
196 (ipa_analyze_node): New function.
197 (ipa_print_node_params): Do not dump the modified flag.
198 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
199 it. Do not stream the modified parameter flag.
200 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
201 it. Do not stream the modified parameter flag.
202 * ipa-cp.c (ipcp_analyze_node): Removed.
203 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
204 with only a call to ipa_analyze_node.
205 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
206 node with only a call to ipa_analyze_node.
208 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
210 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
212 2010-06-25 Jan Hubicka <jh@suse.cz>
214 * tree-pass.h (pass_split_functions): Declare.
215 * opts.c (decode_options): Enable function splitting at -O2
216 * timevar.def (TV_IPA_FNSPLIT): New macro.
217 * ipa-split.c: New file.
218 * common.opt (-fpartial-inlining): New flag.
219 * Makefile.in (ipa-split.o): New object file.
220 * passes.c (init_optimization_passes): Add ipa-split.
221 * params.def (partial-inlining-entry-probability): New parameters.
222 * doc/invoke.texi (-fpartial-inlining): New.
224 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
227 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
228 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
229 (gimplify_expr): Likewise.
231 2010-06-25 Martin Jambor <mjambor@suse.cz>
233 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
234 statements instead of bailing out on them.
235 (ipa_analyze_indirect_call_uses): Do not require that loads from the
236 parameter are in the same BB as the condition. Update comments.
238 2010-06-25 Jakub Jelinek <jakub@redhat.com>
241 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
242 true or always false, return NULL_TREE.
243 (tree_unswitch_single_loop): Optimize conditions even when reaching
244 max-unswitch-level parameter. If num > 0, optimize first all conditions
245 using entry checks, then do still reachable block discovery and consider
246 only conditions in still reachable basic blocks in the loop.
248 PR tree-optimization/44539
249 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
250 the call doesn't have LHS, but has VDEF.
252 2010-06-25 Joseph Myers <joseph@codesourcery.com>
254 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
255 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
256 * gcc.c (enum add_del, struct modify_target, modify_target):
258 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
259 * system.h (MODIFY_TARGET_NAME): Poison.
261 2010-06-25 Alan Modra <amodra@gmail.com>
263 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
264 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
265 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
266 CMODEL_LARGE as default.
267 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
268 (offsettable_ok_by_alignment): Delete.
269 (rs6000_emit_move): Remove mcmodel=medium optimization.
271 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
273 With large parts from Jim Wilson:
275 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
276 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
277 * optabs.c (optab_for_tree_code): Likewise.
278 (expand_widen_pattern_expr): Likewise.
279 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
280 out of execute_optimize_widening_mul.
281 (convert_plusminus_to_widen): New function.
282 (execute_optimize_widening_mul): Use the two new functions.
283 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
284 Remove code to generate widening multiply-accumulate. Add support
285 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
286 * gimple-pretty-print.c (dump_ternary_rhs): New function.
287 (dump_gimple_assign): Call it when appropriate.
288 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
289 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
290 (expand_gimple_stmt_1): Likewise.
291 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
292 WIDEN_MULT_MINUS_EXPR.
293 * tree-ssa-operands.c (get_expr_operands): Likewise.
294 * tree-inline.c (estimate_operator_cost): Likewise.
295 * gimple.c (extract_ops_from_tree_1): Renamed from
296 extract_ops_from_tree. Add new arg for a third operand; fill it.
297 (gimple_build_assign_stat): Support operations with three operands.
298 (gimple_build_assign_with_ops_stat): Likewise.
299 (gimple_assign_set_rhs_from_tree): Likewise.
300 (gimple_assign_set_rhs_with_ops_1): Renamed from
301 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
302 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
303 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
304 WIDEN_MULT_MINUS_EXPR.
305 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
306 (extract_ops_from_tree_1): Adjust declaration.
307 (gimple_assign_set_rhs_with_ops_1): Likewise.
308 (gimple_build_assign_with_ops): Pass NULL for last operand.
309 (gimple_build_assign_with_ops3): New macro.
310 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
311 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
313 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
314 (verify_gimple_assign): Call it.
315 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
316 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
317 functions for dealing with three-operand statements.
318 * tree.c (commutative_ternary_tree_code): New function.
319 * tree.h (commutative_ternary_tree_code): Declare it.
320 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
322 (gimple_assign_nonzero_warnv_p): Likewise.
323 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
324 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
325 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
326 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
327 (struct hashtable_expr): New member ternary in the union.
328 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
329 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
330 (iterative_hash_hashable_expr): Likewise.
331 (print_expr_hash_elt): Handle EXPR_TERNARY.
332 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
333 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
334 statements. Handle GIMPLE_TERNARY_RHS.
336 2010-06-25 Jan Hubicka <jh@suse.cz>
338 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
340 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
343 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
344 parameters are not good.
345 (c_parser_parameter_declaration): Error unknown type name if the type
346 name can't start declaration specifiers.
348 2010-06-25 Joseph Myers <joseph@codesourcery.com>
350 * gcc.c (translate_options): Don't mention +e in comment.
351 (process_command): Don't handle +e specially.
353 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
355 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
357 * ira-build.c (merge_hard_reg_conflicts): New function.
358 (create_cap_allocno, copy_info_to_removed_store_destinations,
359 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
360 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
361 (remove_unnecessary_allocnos, remove_low_level_allocnos)
362 copy_nifo_to_removed_store_destination): Use them.
363 * ira-lives.c (make_hard_regno_born): New function, split out of
365 (make_allocno_born): Likewise.
366 (make_hard_regno_dead): New function, split out of make_regno_dead.
367 (make_allocno_dead): Likewise.
368 (inc_register_pressure): New function, split out of set_allocno_live.
369 (dec_register_pressure): New function, split out of clear_allocno_live.
370 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
371 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
372 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
373 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
374 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
375 mark_pseudo_regno_live.
376 (process_bb_node_lives): Use mark_pseudo_regno_live,
377 make_hard_regno_born and make_allocno_dead.
378 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
379 set_allocno_live, clear_allocno_live): Delete functions.
381 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
382 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
384 (ira_flattening): Use ira_parent_allocno.
385 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
386 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
388 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
391 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
392 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
393 minmax_set_iter_cond, minmax_set_iter_next,
394 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
395 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
396 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
397 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
400 * ira-int.h (struct live_range, live_range_t): Renamed from struct
401 ira_allocno_live_range and allocno_live_range_t; all uses changed.
402 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
405 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
407 * thumb2.md (thumb2_tlobits_cbranch): Delete.
408 (peephole2 to convert zero_extract/compare of single bit to
409 lshift/compare): New.
411 2010-06-24 Anatoly Sokolov <aesok@post.ru>
413 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
414 recursive call and call to 'int_const_binop'.
415 (build_range_check, fold_cond_expr_with_comparison, unextend,
416 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
417 multiple_of_p): Adjust call to const_binop.
419 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
421 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
422 determine size of XFmode operand.
423 (XFmode extended DFmode push splitter): Ditto.
424 (XFmode extended SFmode push splitter): Ditto.
426 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
429 * config/i386/i386.md (extract_code): New.
430 (<u>divmodqi4): Likewise.
431 (divmodhiqi3): Likewise.
432 (udivmodhiqi3): Likewise.
433 (<u>divqi3): Remvoved.
435 2010-06-24 Jakub Jelinek <jakub@redhat.com>
438 * recog.h (struct recog_data): Add is_asm field.
439 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
440 present in constraints of inline-asm operand and memory operand
441 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
442 (extract_insn): Initialize recog_data.is_asm.
443 * doc/md.texi (Constraints): Document operand side-effect rules.
445 2010-06-24 Andi Kleen <ak@linux.intel.com>
447 * c-parser.c (c_parser_conditional_expression): Call
448 warn_for_omitted_condop.
449 * doc/invoke.texi: Document omitted condop warning.
451 2010-06-24 Nick Clifton<nickc@redhat.com>
453 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
454 insn in the sequence is a jump insn before setting its label.
456 2010-06-24 Alan Modra <amodra@gmail.com>
458 * collect2.c (main): Match exactly --version and --help.
460 2010-06-24 DJ Delorie <dj@redhat.com>
462 * config/m32c/m32c-pragma.c: Don't include rtl.h.
464 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
466 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
467 using X87MODEF mode iterator.
468 (pushsf splitter): Macroize splitter using P mode iterator.
469 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
472 (*movxf_internal): Rename from *movxf_integer.
473 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
474 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
475 (*movdf_internal): Rename from *movdf_integer.
476 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
477 (*movsf_internal): Rename from *movdf_1.
479 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
481 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
482 (const_gimple_seq_node): Removed typedefs.
484 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
485 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
487 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
489 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
490 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
491 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
492 and CODE_FOR_vec_extract_lo_v4df.
494 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
495 Changed to define_insn_and_split.
496 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
497 (vec_extract_lo_v16hi): Likewise.
498 (vec_extract_lo_v32qi): Likewise.
499 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
500 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
502 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
505 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
506 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
507 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
508 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
509 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
512 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
515 * df-core.c (struct df): Rename to df_d.
516 * df.h (struct df): Likewise.
517 * dse.h (struct df): Remove forward declaration.
518 * recog.h (struct insn_data): Rename to:
519 (struct_insn_data_d). Adjusted all users.
521 2010-06-23 Arnaud Charlet <charlet@adacore.com
524 * doc/install.texi: Update requirements to build GNAT.
526 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
528 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
530 (m68k_sched_attr_opx_type): Remove unreachable return.
531 (m68k_sched_attr_opy_type): Likewise.
532 (m68k_sched_attr_size): Likewise.
533 (sched_get_opxy_mem_type): Likewise.
534 (m68k_sched_attr_op_mem): Likewise.
536 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
538 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
539 new statement and adjust VDEF only if necessary. Remove superfluous
540 call to maybe_clean_or_replace_eh_stmt.
541 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
543 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
544 * tree-inline.c (copy_bb): ...and not there.
546 2010-06-22 Cary Coutant <ccoutant@google.com>
548 * dwarf2out.c (is_nested_in_subprogram): New function.
549 (should_move_die_to_comdat): Use it.
550 (copy_ancestor_tree): Don't mark DIEs here.
551 (copy_decls_walk): Start walk from root of newly-added tree;
552 mark DIEs here instead.
554 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
556 * config/i386/i386.md (unit): Also check sseishft1.
558 2010-06-22 Jan Hubicka <jh@suse.cz>
560 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
563 2010-06-22 Jan Hubicka <jh@suse.cz>
565 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
566 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
567 Return true if something changed.
568 * df.h (df_confluence_function_n): Return bool.
569 * df-core.c (df_worklist_propagate_forward,
570 df_worklist_propagate_backward): Track changes and ages.
571 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
573 * dse.c (dse_confluence_n): Return always true.
575 2010-06-22 Jan Hubicka <jh@suse.cz>
577 * bitmap.c (bitmap_clear_bit): Micro optimize.
579 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/i386.md (SWI1248x): New mode iterator.
586 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
587 SWI1248x mode iterator.
588 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
589 using SWI124 mode iterator.
590 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
592 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
593 *pushdi2_prologue_rex64 using P mode iterator.
594 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
595 using SWI48 mode iterator.
596 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
597 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
598 using SWI1248x mode iterator.
599 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
600 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
602 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
604 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
605 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
607 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
609 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
610 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
612 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
614 (mov<mode>_insn_1): New expander.
615 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
616 using SWI48x mode iterator.
618 (*movoi_internal_avx): Rename from *movoi_internal.
619 (*movti_internal_rex64): Rename from *movti_rex64.
620 (*movti_internal_sse): Rename from *movti_sse.
621 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
622 (*movdi_internal): Rename from *movdi_2.
623 (*movsi_internal): Rename from *movsi_1.
624 (*movhi_internal): Rename from *movhi_1.
625 (*movqi_internal): Rename from *movqi_1.
627 (insv): Update the call to gen_movsi_insv_1 for rename.
628 * config/i386/i386.c (promote_duplicated_reg): Ditto.
630 2010-06-22 Jan Hubicka <jh@suse.cz>
632 * passes.c (execute_function_todo): Move call of statistics_fini_pass
634 (execute_todo) ... this one.
636 2010-06-22 Alan Modra <amodra@gmail.com>
639 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
640 * caller-save.c (insert_restore, insert_save): Use non-validate
641 form of adjust_address.
643 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
646 * config/pa/pa.c (override_options): Disable
647 -freorder-blocks-and-partition.
649 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
652 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
654 * config/i386/i386.md (type): Add sseishft1
656 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
657 (ppro_insn_load): Likewise.
658 (ppro_insn_store): Likewise.
659 (ppro_insn_both): Likewise.
661 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
662 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
664 (*vec_extractv2di_1_avx): Likewise.
665 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
666 type. Remove atom_unit.
667 (*vec_extractv2di_1_sse2): Likewise.
669 2010-06-21 DJ Delorie <dj@redhat.com>
671 * diagnostic.h (diagnostic_classification_change_t): New.
672 (diagnostic_context): Add history and push/pop list.
673 (diagnostic_push_diagnostics): Declare.
674 (diagnostic_pop_diagnostics): Declare.
675 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
676 from pragmas in a history chain instead of the global table.
677 (diagnostic_push_diagnostics): New.
678 (diagnostic_pop_diagnostics): New.
679 (diagnostic_report_diagnostic): Scan history chain to find state
680 of diagnostics as of the diagnostic location.
681 * opts.c (set_option): Pass UNKNOWN_LOCATION to
682 diagnostic_classify_diagnostic.
683 (enable_warning_as_error): Likewise.
684 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
685 use in the history chain.
686 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
687 allow these pragmas anywhere.
688 * doc/extend.texi: Document pragma GCC diagnostic changes.
690 2010-06-21 Jakub Jelinek <jakub@redhat.com>
692 * dwarf2out.c (add_linkage_name): New function. Don't add
693 anything to DW_TAG_member DIEs.
694 (add_name_and_src_coords_attributes): Use it.
695 (gen_variable_die): Call it for C++ static data members if
696 specification is DW_TAG_member.
698 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
699 C++ char16_t and char32_t.
701 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
702 * genattrtab.c: Include vecprim.h.
703 (cached_attrs, cached_attr_count, attrs_seen_once,
704 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
705 attrs_cached_after): New variables.
706 (find_attrs_to_cache): New function.
707 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
708 (write_test_expr): Add attrs_cached argument, return it too,
709 attempt to cache non-const attributes used more than once in
710 a single case handling.
711 (write_attr_get): Use find_attrs_to_cache, for caching candidates
712 emit cached_* variables. Adjust write_attr_set callers.
713 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
714 to find attributes that should be cached in this block. Adjust
715 write_test_expr callers.
716 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
718 (make_automaton_attrs): Adjust write_test_expr caller.
720 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
721 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
722 (make_automaton_attrs): If find_tune_attr returns non-NULL,
723 write separate internal_dfa_insn_code_* and insn_default_latency_*
724 functions for each attribute's value and emit init_sched_attrs
725 function and function pointers.
726 * genattr.c (const_attrs, reservations): New variables.
727 (gen_attr): Add const attributes to const_attrs vector.
728 (check_tune_attr, find_tune_attr): New functions.
729 (main): Add reservations to reservations vector. If find_tune_attr
730 returns true, add prototype for init_sched_attrs and make
731 internal_dfa_insn_code and insn_default_latency function pointers,
732 otherwise define init_sched_attrs as dummy macro.
733 * cfgexpand.c: Include insn-attr.h.
734 (gimple_expand_cfg): Call init_sched_attrs.
736 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
739 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
740 va_arg from a set of register save slots into a temporary,
741 if the container is bigger than type size, do the copying
742 using smaller mode or using memcpy.
745 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
747 (sel_print_to_dot): Remove macro.
748 (sel_print): Likewise. New prototype.
749 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
750 (sel_print): New function.
752 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
754 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
755 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
757 2010-06-21 Nick Clifton <nickc@redhat.com>
759 * config/rx/rx.h (PTRDIFF_TYPE): Define.
760 (SMALL_REGISTER_CLASS): Define (to zero).
761 (PRINT_OPERAND): Delete.
762 (PRINT_OPERAND_ADDRESS): Delete.
763 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
764 (rx_print_operand_address): Delete prototype.
765 * config/rx/rx.c (rx_print_operand): Make static.
766 Allow %H and %L to handle CONST_DOUBLEs.
767 (rx_print_operand_address): Make static.
768 (rx_gen_move_template): Rename local variable 'template' to
770 (rx_function_arg): Do not pass unknown sized objects in registers.
771 (TARGET_PRINT_OPERAND): Define.
772 (TARGET_PRINT_OPERAND_ADDRESS): Define.
774 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
776 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
778 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
780 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
781 stack-alignment for simple leaf-functions.
783 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
785 * doc/install.texi: Document bootstrap-lto.
787 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
790 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
791 (input_function): Drop them here, if VTA is disabled.
793 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
796 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
798 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
799 ix86_swapped_fp_comparsion_operator instead of
800 ix86_fp_comparison_operator.
802 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
803 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
804 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
805 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
806 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
807 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
809 2010-06-20 Joseph Myers <joseph@codesourcery.com>
812 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
813 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
814 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
815 (decode_cmdline_option): Update for this return value. Set
816 orig_option_with_args_text field. Set arg field for unknown
817 options. Make static.
818 (decode_cmdline_options_to_array): New.
819 (prune_options): Update handling of find_opt return value.
820 * opts.c (read_cmdline_option): Take decoded option. Return void.
821 (read_cmdline_options): Take decoded options.
822 (decode_options): Add parameters for decoded options. Use
823 decode_cmdline_options_to_array. Use decoded options for -O
824 scan. Use integral_argument for -O parameters. Update call to
825 read_cmdline_options.
826 (enable_warning_as_error): Update handling of find_opt return value.
827 * opts.h: Update comment on unknown options.
828 (struct cl_decoded_option): Update comments on opt_index and arg.
829 Add orig_option_with_args_text.
830 (decode_cmdline_option): Remove.
831 (decode_cmdline_options_to_array): Declare.
832 (decode_options): Update prototype.
833 * toplev.c (save_argv): Remove.
834 (save_decoded_options, save_decoded_options_count): New.
835 (read_integral_parameter): Remove.
836 (print_switch_values): Use decoded options.
837 (toplev_main): Don't set save_argv. Update call to decode_options.
838 * toplev.h (read_integral_parameter): Remove.
839 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
841 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
844 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
846 * constraints.md (Pw, Px): New constraints.
847 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
849 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
851 * config/i386/sse.md (fma4modesuffixf4): Removed.
852 (ssemodesuffixf2s): Likewise.
853 (ssemodesuffixf4): Likewise.
854 (ssemodesuffixf2c): Likewise.
855 (ssescalarmodesuffix2s): Likewise.
856 (avxmodesuffixf2c): Likewise.
857 (ssemodesuffix): New.
858 (ssescalarmodesuffix): Likewise.
859 Update patterns with ssemodesuffix and ssescalarmodesuffix.
861 2010-06-19 Philip Herron <herron.philip@googlemail.com>
863 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
865 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
867 * stor-layout.c (debug_rli): Remove unused local variables.
869 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
871 PR rtl-optimization/40900
872 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
873 original expression for later reuse.
874 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
875 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
877 2010-06-18 Anatoly Sokolov <aesok@post.ru>
879 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
880 double_int_fits_in_uhwi_p): Implement as static inline.
881 (double_int_xor): New inline function.
882 (double_int_lrotate, double_int_rrotate, double_int_max,
883 double_int_umax, double_int_smax, double_int_min, double_int_umin,
884 double_int_smin): Declare.
885 (lrotate_double, rrotate_double): Remove declaration.
886 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
887 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
888 (double_int_lrotate, double_int_rrotate, double_int_max,
889 double_int_umax, double_int_smax, double_int_min, double_int_umin,
890 double_int_smin): New function.
891 * fold-const.c (int_const_binop): Clean up, use double_int_*
893 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
894 double_int_* and immed_double_int_const functions.
896 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
898 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
899 * function.c (types_used_by_cur_var_decl): Likewise.
900 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
902 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
904 * tree.h (record_layout_info): Change type of pending_statics field
906 * stor-layout.c (start_record_layout): Store NULL into
908 (debug_rli): Call debug_vec_tree instead of debug_tree.
909 (place_field): Likewise.
910 (finish_record_layout): Likewise.
912 2010-06-18 Alan Modra <amodra@gmail.com>
914 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
916 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
919 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
920 for SET source operand from SET destination operand.
922 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
924 PR rtl-optimization/39871
925 * reload1.c (init_eliminable_invariants): For flag_pic, disable
926 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
927 (function_invariant_p): Rule out a plus of frame or arg pointer with
929 * ira.c (find_reg_equiv_invariant_const): Likewise.
931 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
933 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
934 print_operand_address and puts to output the operand for CONST.
936 2010-06-17 Jakub Jelinek <jakub@redhat.com>
939 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
942 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
944 * v850-protos.h (print_operand): Delete.
945 (print_operand_address): Delete.
946 * v850.h (PRINT_OPERAND): Delete.
947 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
948 (PRINT_OPERAND_ADDRESS): Delete.
949 * v850.c (print_operand_address): Rename to...
950 (v850_print_operand_address): ...this. Make static. Call
952 (print_operand): Rename to...
953 (v850_print_operand): ...this. Make static. Call
954 v850_print_operand_address.
955 (v850_print_operand_punct_valid_p): New function.
956 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
957 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
959 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
961 * config/sh/sh-protos.h (print_operand): Delete.
962 (print_operand_address): Delete.
963 * config/sh/sh.h (PRINT_OPERAND): Delete.
964 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
965 (PRINT_OPERAND_ADDRESS): Delete.
966 * config/sh/sh.c (sh_print_operand_address): Make static.
967 (sh_print_operand): Make static. Call sh_print_operand_address
968 and sh_print_operand.
969 (sh_print_operand_punct_valid_p): New function.
970 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
971 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
973 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
975 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
976 (mcore_print_operand_address): Delete.
977 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
978 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
979 (PRINT_OPERAND_ADDRESS): Delete.
980 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
981 (mcore_print_operand): Make static.
982 (mcore_print_operand_punct_valid_p): New function.
983 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
984 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
986 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
988 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
989 (print_operand_address): Delete.
990 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
991 (PRINT_OPERAND_ADDRESS): Delete.
992 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
994 (m68hc11_print_operand): Make static.
995 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
997 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
999 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1000 (m32r_print_operand_address): Delete.
1001 * config/m32r/m32r.h (m32r_punct_chars): Delete.
1002 (PRINT_OPERAND): Delete.
1003 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1004 (PRINT_OPERAND_ADDRESS): Delete.
1005 * config/m32r/m32r.c (m32r_punct_chars): Make static.
1006 (m32r_print_operand_address): Make static.
1007 (m32r_print_operand): Make static.
1008 (m32r_print_operand_punct_valid_p): New function.
1009 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1010 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1012 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1014 * config/iq2000/iq2000-protos.h (print_operand): Delete.
1015 (print_operand_address): Delete.
1016 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1017 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1018 (PRINT_OPERAND_ADDRESS): Delete.
1019 (iq2000_print_operand_punct): Delete.
1020 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1021 (iq2000_print_operand_address): Make static.
1022 (iq2000_print_operand): Make static.
1023 (iq2000_print_operand_punct_valid_p): New function.
1024 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1025 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1027 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1029 * config/frv/frv-protos.h (frv_print_operand): Delete.
1030 (frv_print_operand_address): Delete.
1031 * config/frv/frv.h (PRINT_OPERAND): Delete.
1032 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1033 (PRINT_OPERAND_ADDRESS): Delete.
1034 * config/frv/frv.c (frv_print_operand_address): Make static.
1035 (frv_print_operand): Make static.
1036 (frv_print_operand_punct_valid_p): New function.
1037 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1038 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1040 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1042 * tree.h (vec_member): Declare.
1043 * tree.c (vec_member): Define.
1045 2010-06-17 Richard Guenther <rguenther@suse.de>
1047 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1048 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1050 2010-06-17 Richard Guenther <rguenther@suse.de>
1052 * tree-inline.c (declare_return_variable): Remove bogus code.
1054 2010-06-17 Richard Guenther <rguenther@suse.de>
1056 * gimplify.c (gimplify_bind_expr): Always promote complex
1057 and vector variables to registers if possible.
1059 2010-06-17 Richard Guenther <rguenther@suse.de>
1061 * expr.c (get_inner_reference): Use double_int for bit_offset
1064 2010-06-16 DJ Delorie <dj@redhat.com>
1066 * common.opt (-fstrict-volatile-bitfields): new.
1067 * doc/invoke.texi: Document it.
1068 * fold-const.c (optimize_bit_field_compare): For volatile
1069 bitfields, use the field's type to determine the mode, not the
1071 * expr.c (expand_assignment): Likewise.
1072 (get_inner_reference): Likewise.
1073 (expand_expr_real_1): Likewise.
1074 * expmed.c (store_fixed_bit_field): Likewise.
1075 (extract_bit_field_1): Likewise.
1076 (extract_fixed_bit_field): Likewise.
1078 2010-06-16 Richard Guenther <rguenther@suse.de>
1080 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1082 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1084 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1085 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1086 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1087 * debug.c: Likewise.
1088 * sdbout.c: Likewise.
1089 * vmsdbgout.c: Likewise.
1090 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1091 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1092 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1093 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1094 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1095 * dwarf2out.c (dw_fde_struct): New fields
1096 dw_fde_vms_{end,begin}_prologue.
1097 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1098 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1099 (dwarf2out_vms_end_prologue): New function.
1100 (dwarf2out_vms_begin_epilogue): New function.
1101 (dw_val_struct): New value dw_val_class_vms_delta.
1102 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1103 begin_epilogue for VMS.
1104 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1105 new static functions.
1106 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1107 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1109 (print_die): New case dw_val_class_vms_delta.
1110 (attr_checksum): Likewise.
1111 (same_dw_val_p: Likewise.
1112 (size_of_die): Likewise.
1113 (value_format): Likewise.
1114 (output_die): Likewise.
1115 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1116 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1117 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1118 dwarf2out_cfi_begin_epilogue
1119 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1121 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1123 * config/cris/cris-protos.h (cris_print_operand): Delete.
1124 (cris_print_operand_address): Delete.
1125 * config/cris/cris.h (PRINT_OPERAND): Delete.
1126 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1127 (PRINT_OPERAND_ADDRESS): Delete.
1128 * config/cris/cris.c (cris_print_operand_address): Make static.
1129 (cris_print_operand): Make static.
1130 (cris_print_operand_punct_valid_p): New function.
1131 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1132 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1134 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1136 * config/arm/arm-protos.h (arm_print_operand): Delete.
1137 (arm_print_operand_address): Delete.
1138 * config/arm/arm.h (PRINT_OPERAND): Delete.
1139 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1140 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1141 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1142 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1143 (arm_print_operand): Make static.
1144 (arm_print_operand_punct_valid_p): New function.
1145 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1146 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1148 2010-06-16 Nick Clifton <nickc@redhat.com>
1150 * config/rx/constraints.md (NEGint4): New constraint.
1151 * config/rx/rx.md (attr cc): Add set_zsc.
1152 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1155 (call_internal): Clobber the cc0 register.
1156 (call_value_internal): Likewise.
1157 (cstoresi4): Likewise.
1158 (movsieq): Likewise.
1159 (movsine): Likewise.
1160 (addsi3): Add alternative to handle small negative constants.
1162 (addsi3): Do not set the O bit in the cc0 register.
1166 (andsi3): Reorder alternatives to prefer shorter forms.
1169 (negsi2): Note that the cc0 flags are set.
1170 (rotlsi3): Note that only the Z and S bits are set in cc0.
1171 (lshrsi3): Likewise.
1172 (ashlsi3): Likewise.
1173 (subsf3): Use %Q for the MEM operand.
1174 (fix_truncsfsi2): Likewise.
1175 (floatsisf2): Likewise.
1176 (bitset): Remove early clobber from destination.
1177 (bitset_in_memory): Likewise.
1178 (lrintsf2): Clobber the cc0 register.
1179 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1180 (rx_print_operand): Handle %N.
1182 2010-06-16 Jan Hubicka <jh@suse.cz>
1184 * df-core.c (df_compact_blocks): Free problem_temps vector.
1186 2010-06-16 Martin Jambor <mjambor@suse.cz>
1188 PR tree-optimization/43905
1189 * tree-sra.c: Include tree-inline.h.
1190 (create_abstract_origin): Removed.
1191 (modify_function): Version the call graph node instead of creating
1192 abstract origins and dealing with same_body aliases.
1193 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1194 function is versionable.
1195 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1197 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1199 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1200 (CHOOSE_DYNAMIC_LINKER): Update.
1202 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1204 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1205 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1206 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1207 *prefetch_3dnow_rex.
1209 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1211 * target.h (struct asm_out):Add declare_constant_name field.
1212 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1213 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1214 * output.h (default_asm_declare_constant_name): Declare.
1215 (assemble_label): Update prototype.
1216 * varasm.c (assemble_constant_contents): Use
1217 targetm.asm_out.declare_constant_name target hook.
1218 (assemble_label): Add 'file' argument.
1219 (default_asm_declare_constant_name): New function.
1220 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1221 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1222 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1224 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1225 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1226 (machopic_output_indirection): Update assemble_label argument list.
1227 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1228 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1230 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1233 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1234 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1236 2010-06-15 Richard Guenther <rguenther@suse.de>
1238 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1240 2010-06-15 Paul Brook <paul@codesourcery.com>
1242 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1245 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1247 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1248 don't get a vector type for output.
1250 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1253 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1254 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1255 (LANG_HOOKS_DECLS): Add it.
1256 * gimplify.c (omp_notice_variable): Call
1257 lang_hooks.decls.omp_report_decl.
1259 2010-06-15 Martin Jambor <mjambor@suse.cz>
1262 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1263 on the newly dead SSA name.
1265 2010-06-15 Alan Modra <amodra@gmail.com>
1267 * doc/invoke.texi: Add mcmodel to powerpc options.
1268 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1269 * configure: Regenerate.
1270 * config.in: Regenerate.
1271 * config/rs6000/linux64.opt (mcmodel): New.
1272 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1273 (TARGET_CMODEL, SET_CMODEL): Define.
1274 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1275 select CMODEL_MEDIUM default.
1276 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1277 (TARGET_CMODEL): Define default.
1278 * config/rs6000/rs6000.c (cmodel): New variable.
1279 (rs6000_explicit_options): Add cmodel field.
1280 (rs6000_handle_option): Handle -mcmodel.
1281 (create_TOC_reference): Add largetoc_reg param. Generate high,
1282 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1283 (rs6000_delegitimize_address): Recognise new toc reference rtl
1284 and minimal-toc rtl.
1285 (rs6000_legitimize_reload_address): Handle new toc references.
1286 (print_operand_address): Handle legitimate_constant_pool_address_p
1287 match before lo_sum.
1288 (rs6000_eliminate_indexed_memrefs): Tidy.
1289 (rs6000_emit_move): Tweak threshold for inlining constants.
1290 Keep rs6000_emit_allocate_stack large stack frame offsets
1291 loaded into r0 inline.
1292 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1293 (tocrel_base, tocrel_offset): New variables.
1294 (toc_relative_expr_p): Set them here.
1295 (print_operand_address): Skip over any offset on constant pool address.
1296 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1297 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1298 (offsettable_ok_by_alignment): New function.
1299 (rs6000_emit_move): Address suitably aligned local symbol_refs
1300 relative to the toc pointer for -mcmodel=medium.
1301 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1302 strict param. Allow lo_sum version of addressing. Verify reg
1303 used for -mminimal-toc and -mcmodel != small. Update all callers.
1304 * config/rs6000/constraints.md: Update for above change.
1305 * config/rs6000/predicates.md: Likewise.
1306 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1308 (tls_gd): Split for -mcmodel=medium/large.
1309 (tls_gd_high, tls_gd_low): New.
1310 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1311 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1312 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1313 (largetoc_high, largetoc_low): New.
1314 (cmptf_internal2): Add clobber.
1315 * config/rs6000/rs6000-protos.h: Update.
1317 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1319 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1320 true if no prefetch is going to be generated for a given group.
1321 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1322 estimate the prefetch_count.
1323 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1324 prefetch count by considering the unroll_factor and prefetch_mod
1325 for is_loop_prefetching_profitable.
1327 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1329 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1330 anything if the argument is not a MEM.
1332 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1337 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1339 (canonicalize_loop_ivs): Likewise.
1341 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1344 * haifa-sched.c (setup_insn_reg_pressure_info,
1345 update_register_pressure): Reject debug insns.
1346 (ready_sort): Don't setup reg pressure for debug insns.
1347 (schedule_insn): Don't update reg pressure for debug insns.
1349 2010-06-14 Richard Guenther <rguenther@suse.de>
1351 * lto-streamer.c (cached_bp): Remove.
1352 (bitpack_delete): Likewise.
1353 (bitpack_create): Likewise.
1354 (bp_get_next_word): Likewise.
1355 (bp_pack_value, bp_unpack_value): Move ...
1356 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1358 (struct bitpack_d): Likewise.
1359 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1360 New inline functions.
1361 * lto-streamer-out.c (lto_output_bitpack): Remove.
1362 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1363 (pack_value_fields): Adjust.
1364 (lto_write_tree): Likewise.
1365 (output_gimple_stmt): Likewise.
1366 (output_function): Likewise.
1367 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1368 (input_function): Likewise.
1369 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1370 (lto_input_bitpack): Remove.
1371 (lto_materialize_tree): Adjust.
1372 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1373 * lto-cgraph.c (lto_output_edge): Adjust.
1374 (lto_output_node): Likewise.
1375 (lto_output_varpool_node): Likewise.
1376 (lto_output_ref): Likewise.
1377 (input_node): Likewise.
1378 (input_varpool_node): Likewise.
1379 (input_ref): Likewise.
1380 (input_edge): Likewise.
1381 (output_node_opt_summary): Likewise.
1382 (input_node_opt_summary): Likewise.
1383 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1384 (pure_const_read_summary): Likewise.
1385 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1386 (ipa_read_indirect_edge_info): Likewise.
1387 (ipa_write_node_info): Likewise.
1388 (ipa_read_node_info): Likewise.
1390 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1393 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1394 (vec_extract_lo_v16hi): Likewise.
1395 (vec_extract_lo_v32qi): Likewise.
1397 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1400 * tree.h (build_call_expr): Don't define as vararg macro, instead
1402 * builtins.c (build_call_nofold): Remove.
1403 (expand_builtin_int_roundingfn, expand_builtin_pow,
1404 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1405 expand_builtin_memset_args, expand_builtin_strcmp,
1406 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1407 build_call_nofold_loc instead of build_call_nofold.
1408 (build_call_expr): New function.
1410 PR tree-optimization/44508
1411 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1412 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1413 don't eliminate trivially dead stmts.
1414 * tree-vrp.c (vrp_finalize): Pass false as last argument
1415 to substitute_and_fold.
1416 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1417 to substitute_and_fold.
1418 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1421 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1422 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1423 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1424 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1425 ggc_strdup instead of xstrdup.
1427 2010-06-14 Ira Rosen <irar@il.ibm.com>
1429 PR tree-optimization/44507
1430 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1431 to build initial vector for BIT_AND_EXPR.
1432 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1434 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1436 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1437 adjust z10prop set_attr.
1439 2010-06-13 Jan Hubicka <jh@suse.cz>
1441 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1442 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1443 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1444 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1445 datastructure checks into checking asserts.
1446 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1447 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1448 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1449 df_ref_create_structure): Likewise.
1450 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1451 pool_free): Use gcc_checking_assert.
1452 * alias.c (get_alias_set): Likewise.
1453 * var-tracking.c (variable_htab_free, shared_hash_copy,
1454 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1455 * lto-streamer.c (bp_unpack_value): Likewise.
1457 2010-06-13 Richard Guenther <rguenther@suse.de>
1459 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1460 Do not stream but initialize TYPE_CANONICAL to NULL.
1461 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1462 * gimple.c (gimple_types_compatible_p): Disregard
1463 TYPE_STRUCTURAL_EQUALITY_P.
1464 (gimple_register_type): Use TYPE_CANONICAL as cache.
1465 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1466 before registering common types.
1467 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1468 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1469 * tree.h (TYPE_CANONICAL): Clarify documentation.
1471 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1473 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1474 LIBCALL_VALUE): Remove macros.
1475 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1476 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1477 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1478 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1479 (ia64_function_value): Make static. Handle receiving the function
1480 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1482 2010-06-12 Jan Hubicka <jh@suse.cz>
1484 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1487 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1489 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1491 2010-06-12 Jan Hubicka <jh@suse.cz>
1493 * df-core.c (df_clear_bb_info): New function.
1494 (df_set_blocks): bb_info is always allocated.
1495 (df_get_bb_info): Use block_info_elt_size.
1496 (df_set_bb_info): Likewise.
1497 (df_compact_blocks): Update for new block_info.
1498 (grow_bb_info): New function.
1499 * df-problems.c (df_grow_bb_info): Move to df-core.c
1500 (df_rd_set_bb_info): Remove.
1501 (df_rd_free_bb_info): Do not free block pool.
1502 (df_rd_alloc): Do not create pool, use check for
1503 obstack presence instead of NULL pointer for new blocks.
1504 (df_rd_free): DO not free alloc pool; clear block_info.
1505 (problem_RD): Add size of block info structure.
1506 (df_lr_set_bb_info): Remove.
1507 (df_lr_free_bb_info): Do not free block pool.
1508 (df_lr_alloc): Do not create pool, use check for
1509 obstack presence instead of NULL pointer for new blocks.
1510 (df_lr_free): DO not free alloc pool; clear block_info.
1511 (problem_LR): Add size of block info structure.
1512 (df_live_set_bb_info): Remove.
1513 (df_live_free_bb_info): Do not free block pool.
1514 (df_live_alloc): Do not create pool, use check for
1515 obstack presence instead of NULL pointer for new blocks.
1516 (df_live_free): DO not free alloc pool; clear block_info.
1517 (problem_LIVE): Add size of block info structure.
1518 (problem_CHAIN): Add size of block info structure.
1519 (df_byte_lr_set_bb_info): Remove.
1520 (df_byte_lr_free_bb_info): Do not free block pool.
1521 (df_byte_lr_alloc): Do not create pool, use check for
1522 obstack presence instead of NULL pointer for new blocks.
1523 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1524 (problem_BYTE_LR): Add size of block info structure.
1525 (problem_NOTE): Add size of block info structure.
1526 (df_byte_MD_set_bb_info): Remove.
1527 (df_byte_MD_free_bb_info): Do not free block pool.
1528 (df_byte_MD_alloc): Do not create pool, use check for
1529 obstack presence instead of NULL pointer for new blocks.
1530 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1531 (problem_BD): Add size of block info structure.
1532 * df-scan.c (df_scan_free_internal): Free block pool.
1533 (df_scan_set_bb_info): Remove.
1534 (df_scan_free_bb_info): Check for artificial_defs instead
1535 of bb_info being non-NULL.
1536 (df_scan_alloc): DO not create df_scan_block pool.
1537 (problem_SCAN): Set size of block info.
1538 (df_bb_refs_record): Do not allocate bb_info.
1539 * df.h (df_problem): Add block_info_elt_size.
1540 (struct dataflow): Change block_info to void *.
1541 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1542 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1545 2010-06-12 Jan Hubicka <jh@suse.cz>
1547 PR tree-optimize/44485
1548 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1549 containing use of return value of noreturn function.
1551 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1553 * targhooks.c (default_function_value): Don't use
1554 FUNCTION_OUTGOING_VALUE.
1555 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1556 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1558 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1560 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1561 Add crtfastmath.o to extra_parts.
1562 * config/mips/crtfastmath.c: New.
1563 * config/mips/linux.h (ENDFILE_SPEC): New.
1565 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1567 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1568 old_type in parameter.
1569 (gcc_type_for_value): Update call to gcc_type_for_interval.
1570 (compute_type_for_level_1): Renamed compute_type_for_level.
1571 Update call to gcc_type_for_interval.
1573 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1575 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1576 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1578 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1580 * opts-common.c: Include options.h.
1581 (integral_argument): Move from opts.c.
1582 (decode_cmdline_option): New. Based on read_cmdline_option.
1583 * opts.c (integral_argument): Move to opts-common.c.
1584 (read_cmdline_option): Move most contents to
1585 decode_cmdline_option. Use %qs in diagnostics.
1586 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1587 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1588 decode_cmdline_option): New.
1590 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1593 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1594 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1595 (partiysi2_cmp): Ditto.
1596 (*partiyhi2_cmp): Ditto.
1597 (*parityqi2_cmp): Remove.
1599 2010-06-11 Jan Hubicka <jh@suse.cz>
1601 * bitmap.h (bmp_iter_next_bit): New.
1602 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1604 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1605 Eric Botcazou <ebotcazou@adacore.com>
1607 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1610 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1612 * config/i386/i386.md (unspec): New define_c_enum.
1615 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1617 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1618 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1619 (lazy_hex_fp_value): New function.
1620 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1621 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1623 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1626 * tree-if-conv.c (bb_predicate_s): New struct.
1627 (bb_predicate_p): New.
1628 (bb_has_predicate): New.
1629 (bb_predicate): New.
1630 (set_bb_predicate): New.
1631 (bb_predicate_gimplified_stmts): New.
1632 (set_bb_predicate_gimplified_stmts): New.
1633 (add_bb_predicate_gimplified_stmts): New.
1634 (init_bb_predicate): New.
1635 (free_bb_predicate): New.
1636 (is_predicated): Use bb_predicate.
1637 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1638 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1639 before processing their successors.
1640 (clean_predicate_lists): Removed.
1641 (find_phi_replacement_condition): Use bb_predicate.
1642 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1644 (insert_gimplified_predicates): New.
1645 (combine_blocks): Call insert_gimplified_predicates.
1646 (tree_if_conversion): Call free_bb_predicate instead of
1647 clean_predicate_lists.
1649 2010-10-11 Paul Brook <paul@codesourcery.com>
1651 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1652 * config/arm/arm.c (all_architectures): Change v7e-m default to
1654 * config/arm/arm-cores.def: Add cortex-m4.
1655 * config/arm/arm-tune.md: Regenerate.
1657 2010-06-11 Jan Hubicka <jh@suse.cz>
1659 * ipa-pure-const.c (special_builtlin_state): New function.
1660 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1661 (propagate_pure_const): Use it.
1663 2010-06-11 Jan Hubicka <jh@suse.cz>
1665 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1666 (df_live_alloc): Initialize df_live_scratch when initializing
1668 (df_live_transfer_function): Update uses of df_live_scratch.
1669 (df_live_free): Free problem_data; clear df_live_scratch before
1670 releasing the obstack.
1671 (df_md_free): Free problem data.
1673 2010-06-11 Jan Hubicka <jh@suse.cz>
1675 * doc/invoke.texi (Wsuggest-attribute): Document.
1676 (Wmissing-noreturn): Remove.
1677 * ipa-pure-const.c (warn_function_noreturn): New function.
1678 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1679 warn_missing_noreturn.
1680 * common.opt (Wsuggest-attribute=noreturn): New.
1681 * tree-flow.h (warn_function_noreturn): Declare.
1682 * tree-cfg.c (execute_warn_function_noreturn): Use
1683 warn_function_noreturn.
1684 (gate_warn_function_noreturn): New.
1685 (pass_warn_function_noreturn): Update.
1687 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1689 * c-typeck.c (handle_warn_cast_qual): Add loc
1690 parameter. Improve warning message.
1691 (build_c_cast): Pass location to handle_warn_cast_qual.
1693 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1695 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1696 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1698 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1700 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1702 Fix bootstap on mips
1703 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1706 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1708 * system.h (helper_const_non_const_cast): New inline for
1710 (CONST_CAST2): For gcc version <= 4.0 use
1711 new helper to do const/non-const casting.
1713 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1715 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1716 * Makefile.in (OBJS-common): Include insn-enums.o.
1717 (insn-enums.o): New rule.
1718 (simple_generated_c): Add insn-enums.c.
1719 (build/genenums.o): New rule.
1720 (genprogmd): Add "enums".
1721 * genconstants.c (print_enum_type): Declare a C string array
1723 * genenums.c: New file.
1724 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1725 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1726 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1728 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1730 * doc/md.texi (define_enum_attr): Document.
1731 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1732 * read-md.h (lookup_enum_type): Declare.
1733 * read-md.c (lookup_enum_type): New function.
1734 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1735 * genattrtab.c (attr_desc): Add an enum_name field.
1736 (evaluate_eq_attr): Take the associated attribute as argument.
1737 Get the enum prefix from the enum_name field, if defined.
1738 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1739 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1740 (add_attr_value): New function, split out from...
1741 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1742 (write_test_expr): Pass attr to evaluate_eq_attr.
1743 (write_attr_get): Use the enum_name as the enum tag, if defined.
1744 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1745 (find_attr): Initialize enum_name.
1746 (main): Handle DEFINE_ENUM_ATTR.
1747 * gensupport.c (process_rtx): Likewise.
1748 * config/mips/mips.h (mips_tune_attr): Delete.
1749 * config/mips/mips.md (cpu): Use define_attr_enum.
1751 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1753 * doc/md.texi (define_c_enum, define_enum): Document.
1754 * read-md.h (md_constant): Add a parent_enum field.
1755 (enum_value, enum_type): New structures.
1756 (upcase_string, traverse_enum_types): Declare.
1757 * read-md.c (enum_types): New variable.
1758 (upcase_string, add_constant): New functions.
1759 (handle_constants): Don't create the hash table here.
1761 (traverse_md_constants): Don't check for a null md_constants.
1762 (decimal_string, handle_enum, traverse_enum_types): New functions.
1763 (read_md_files): Initialize md_constants and md_enums.
1764 * genconstants.c (print_md_constant): Ignore info argument.
1765 Only print constants that belong to no enum.
1766 (print_enum_type): New function.
1767 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1768 for each defined enum type.
1769 * config/mips/mips.md (processor): New define_enum.
1770 (unspec): New define_c_enum.
1771 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1772 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1773 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1774 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1775 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1776 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1777 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1778 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1779 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1780 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1781 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1782 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1783 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1784 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1785 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1786 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1787 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1788 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1789 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1790 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1791 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1792 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1793 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1794 (UNSPEC_RDDSP): Move to mips-dsp.md.
1795 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1796 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1797 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1798 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1799 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1800 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1801 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1802 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1803 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1804 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1805 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1806 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1807 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1808 Moved to mips-dspr2.md.
1809 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1810 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1811 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1812 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1813 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1814 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1815 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1816 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1817 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1818 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1819 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1820 UNSPEC_LOONGSON_PSADBH)
1821 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1822 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1823 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1824 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1825 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1826 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1827 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1828 (cpu): Update comment.
1829 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1830 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1831 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1832 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1833 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1834 UNSPEC_LOONGSON_PCMPEQ)
1835 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1836 UNSPEC_LOONGSON_PINSR_0)
1837 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1838 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1839 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1840 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1841 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1842 UNSPEC_LOONGSON_PSADBH)
1843 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1844 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1845 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1846 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1847 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1848 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1849 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1850 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1851 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1852 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1853 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1854 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1855 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1856 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1857 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1858 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1859 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1860 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1861 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1862 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1863 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1864 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1865 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1866 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1867 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1868 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1869 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1870 (UNSPEC_RDDSP): Moved from mips.md.
1871 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1872 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1873 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1874 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1875 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1876 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1877 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1878 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1879 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1880 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1881 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1882 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1883 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1884 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1885 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1886 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1887 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1888 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1889 (UNSPEC_SCC): Moved from mips.md.
1890 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1891 "processor_type" to "processor".
1892 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1893 * config/mips/mips.h (processor_type): Delete.
1894 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1895 "processor_type" to "processor".
1897 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1899 * configure.ac (tm_include_list): Add insn-constants.h.
1900 * configure: Regenerate.
1901 * Makefile.in (GTM_H): Move insn-constants.h here from...
1903 * mkconfig.sh: Remove special handling for insn-constants.h.
1905 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1907 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1908 (BUILD_MD): ...this new variable.
1909 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1910 that include the old contents of simple_generated_h and
1912 (simple_generated_h, simple_generated_c): Include them. Add
1914 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1915 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1916 Remove these dependencies from the main rule and include
1917 insn-conditions.md in the command line only if it appears
1918 in the dependency list.
1919 (insn-constants.h, s-constants): Delete.
1920 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1922 (build/genmddeps.o): Likewise.
1923 (genprogrtl): New variable that contains everything from genprogmd
1924 except mddeps and constants.
1925 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1926 depend on $(BUILD_MD)
1927 (genprog): New variable. Make these programs depend on
1929 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1930 (main): Use read_md_files instead of init_rtx_reader_args.
1931 * genconstants.c: As for genmddeps.c.
1932 * read-md.h (read_skip_construct): Declare.
1933 * read-md.c (read_skip_construct): New function.
1934 (handle_file): Allow a null handle_directive, skipping the
1936 (parse_include): Update the comment accordingly.
1938 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1940 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1941 * genmddeps.c: Include read-md.h.
1942 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1943 * genattr.c (main): Likewise.
1944 * genattrtab.c (main): Likewise.
1945 * genautomata.c (main): Likewise.
1946 * gencodes.c (main): Likewise.
1947 * genconditions.c (main): Likewise.
1948 * genconfig.c (main): Likewise.
1949 * genconstants.c (main): Likewise.
1950 * genemit.c (main): Likewise.
1951 * genextract.c (main): Likewise.
1952 * genflags.c (main): Likewise.
1953 * genopinit.c (main): Likewise.
1954 * genoutput.c (main): Likewise.
1955 * genpeep.c (main): Likewise.
1956 * genrecog.c (main): Likewise.
1957 * genpreds.c (main): Likewise.
1958 * gensupport.h (in_fname): Move to read-md.h.
1959 (init_md_reader_args_cb): Rename to...
1960 (init_rtx_reader_args_cb): ...this and return a bool.
1961 (init_md_reader_args): Rename to...
1962 (init_rtx_reader_args): ...this and return a bool.
1963 (include_callback): Move to read-md.h.
1964 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1965 (file_name_list, first_dir_md_include): Move to read-md.c
1966 (first_bracket_include): Delete unused variable.
1967 (last_dir_md_include): Move to read-md.c.
1968 (process_include): Delete, moving code to read-md.c:handle_include.
1969 (process_rtx): Don't handle INCLUDE.
1970 (save_string): Delete.
1971 (rtx_handle_directive): New function.
1972 (init_md_reader_args_cb): Rename to...
1973 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1975 (init_md_reader_args): Rename to...
1976 (init_rtx_reader_args): ...this and return a boolean success value.
1977 * rtl.def (INCLUDE): Delete.
1978 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1980 * read-rtl.c (read_conditions): Don't gobble ')' here.
1981 (read_mapping): Likewise.
1982 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1983 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1984 Store the whole queue in *X. Remove call to init_md_reader.
1985 (read_rtx_1): Rename to...
1986 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1987 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1989 (read_nested_rtx): New function. Handle (nil) here rather than
1991 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1993 * read-md.h (directive_handler_t): New type.
1994 (in_fname, include_callback): Moved from read-md.h.
1995 (read_constants, init_md_reader): Delete.
1996 (read_md_files): Declare.
1997 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1998 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2000 (read_constants): Rename to...
2001 (handle_constants): ...this. Don't gobble ')' here.
2002 (handle_include, handle_file, handle_toplevel_file)
2003 (parse_include): New functions, mostly taken from gensupport.c.
2004 (init_md_reader): Subsume into...
2005 (read_md_files): ...this new function.
2007 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2009 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2010 (unread_char): Decrement read_md_lineno after putting back '\n'.
2011 * read-md.c (fatal_with_file_and_line): Push back any characters
2012 that we decide not to add to the context.
2013 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
2014 fatal_expected_char in cases where '/' ends a line (for example).
2015 (read_name): Don't increment read_md_lineno here.
2016 (read_escape): Likewise.
2017 (read_quoted_string): Likewise.
2018 (read_braced_string): Likewise.
2020 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2022 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2023 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2024 * genconstants.c: Include read-md.h.
2025 * read-rtl.c (md_constants): Move to read-md.c.
2026 (md_name): Move to read-md.h.
2027 (initialize_iterators): Use leading_string_hash instead of def_hash
2028 and leading_string_eq_p instead of def_name_eq_p.
2029 (read_name): Move to read-md.c.
2030 (def_hash, def_name_eq_p): Delete.
2031 (read_constants, traverse_md_constants): Move to read-md.c.
2032 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2033 * read-md.h: Include hashtab.h.
2034 (md_name): Moved from read-rtl.c.
2035 (md_constant): Moved from read-md.h.
2036 (leading_string_hash, leading_string_eq_p, read_name)
2037 (read_constants, traverse_md_constants): Declare.
2038 * read-md.c (md_constants): Moved from read-rtl.c.
2039 (leading_string_hash, leading_string_eq_p): New functions.
2040 (read_name, read_constants, traverse_md_constants): Moved from
2043 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2045 * read-rtl.c (md_name): New structure.
2046 (read_name): Take an md_name instead of a buffer pointer.
2047 Use the "string" field instead of strcpy when expanding constants.
2048 (read_constants): Remove the tmp_char argument. Update the calls
2049 to read_name, using two local name buffers instead of the tmp_char
2050 argument. Merge the constant-creation code.
2051 (read_conditions): Remove the tmp_char argument. Update the calls
2052 to read_name, using a local name buffer instead of the tmp_char
2054 (read_mapping): Replace tmp_char variable with a local name buffer.
2055 Update the calls to read_name.
2056 (read_rtx_1): Likewise. Update the calls to read_constants and
2059 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2061 * Makefile.in (build/read-md.o): Depend on errors.h.
2062 * read-md.h (error_with_line): Declare.
2063 * read-md.c: Include errors.h.
2064 (message_with_line_1): New function, extracted from...
2065 (message_with_line): ...here.
2066 (error_with_line): New function.
2067 * genattrtab.c: If a call to message_with_line is followed by
2068 "have_error = 1;", replace both statements with a call to
2070 * genoutput.c: Likewise.
2071 * genpreds.c: Likewise.
2072 * genrecog.c: If a call to message_with_line is followed by
2073 "error_count++;", replace both statements with a call to
2075 (errorcount): Delete.
2076 (main): Don't check it.
2077 * gensupport.c: If a call to message_with_line is followed by
2078 "errors = 1;", replace both statements with a call to error_with_line.
2080 (process_define_cond_exec): Check have_error instead of errors.
2081 (init_md_reader_args_cb): Likewise. Don't set errors.
2083 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2085 * read-md.h (read_md_file): Declare.
2086 (read_char, unread_char): New functions.
2087 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2088 (read_quoted_string, read_string): Remove FILE * argument.
2089 * read-md.c (read_md_file): New variable.
2090 (read_md_filename, read_md_lineno): Update comments and remove
2091 unnecessary initialization.
2092 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2093 (read_escape, read_quoted_string, read_braced_string, read_string):
2094 Remove FILE * argument. Update calls accordingly, using read_char
2095 and unread_char instead of getc and ungetc.
2096 * rtl.h (read_rtx): Remove FILE * argument.
2097 * read-rtl.c (iterator_group): Remove FILE * argument from
2099 (iterator_traverse_data): Remove "infile" field.
2100 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2101 (add_mapping, read_name, read_constants, read_conditions)
2102 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2103 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2104 Remove file arguments from all calls, using read_char and unread_char
2105 instead of getc and ungetc.
2106 * gensupport.c (process_include): Preserve read_md_file around
2107 the include. Set read_md_file to the handle of the included file.
2108 Update call to read_rtx.
2109 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2110 and remove local FILE *. Update calls to read_rtx.
2112 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2114 * read-md.h (read_rtx_lineno): Rename to...
2115 (read_md_lineno): ...this.
2116 (read_rtx_filename): Rename to...
2117 (read_md_filename): ...this.
2118 (copy_rtx_ptr_loc): Rename to...
2119 (copy_md_ptr_loc): ...this.
2120 (print_rtx_ptr_loc): Rename to...
2121 (print_md_ptr_loc): ...this.
2122 * read-md.c: Likewise. Update references after renaming.
2123 (string_obstack): Replace RTL with MD in comment.
2124 (set_rtx_ptr_loc): Rename to...
2125 (set_md_ptr_loc): ...this.
2126 (get_rtx_ptr_loc): Rename to...
2127 (get_md_ptr_loc): ...this.
2128 * genconditions.c: Update references after renaming.
2129 * genemit.c: Likewise.
2130 * genoutput.c: Likewise.
2131 * genpreds.c: Likewise.
2132 * gensupport.c: Likewise.
2133 * read-rtl.c: Likewise.
2135 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2137 * Makefile.in (READ_MD_H): New variable.
2138 (BUILD_RTL): Add build/read-md.o.
2139 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2140 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2141 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2142 (build/genextract.o, build/genflags.o, build/genoutput.o)
2143 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2144 (build/read-md.o): New rule.
2145 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2146 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2147 * coretypes.h: ...here.
2148 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2149 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2150 * genattr.c: Include read-md.h.
2151 * genattrtab.c: Likewise.
2152 * genconditions.c: Likewise.
2153 * genemit.c: Likewise.
2154 * genextract.c: Likewise.
2155 * genflags.c: Likewise.
2156 * genoutput.c: Likewise.
2157 * genpreds.c: Likewise.
2158 * genrecog.c: Likewise.
2159 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2160 (join_c_conditions, print_c_condition, read_rtx_filename)
2161 (read_rtx_lineno): Move to read-md.h.
2162 * read-rtl.c: Include read-md.h.
2163 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2164 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2165 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2166 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2167 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2168 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2169 (read_braced_string, read_string): Move to read-md.c.
2170 (read_rtx): Move some initialization to init_md_reader and call
2171 init_md_reader here.
2172 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2174 * gensupport.c: Include read-md.h.
2175 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2176 * read-md.h, read-md.c: New files.
2178 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2180 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2181 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2182 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2183 * config/moxie/moxie.c (moxie_function_value): Make static.
2184 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2185 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2187 2010-06-10 Martin Jambor <mjambor@suse.cz>
2189 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2190 * dbgcnt.def (tree_sra): New counter.
2191 * tree-sra.c: Include dbgcnt.h.
2192 (gate_intra_sra): Check tree_sra debug counter.
2194 2010-06-10 Martin Jambor <mjambor@suse.cz>
2196 PR tree-optimization/44258
2197 * tree-sra.c (build_access_subtree): Return false iff there is a
2199 (build_access_trees): Likewise.
2200 (analyze_all_variable_accesses): Disqualify candidates if
2201 build_access_trees returns true for them.
2203 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2206 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2207 tail-recurse into canonical node. Fast-forward over
2208 non-canonical VALUEs.
2210 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2213 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2214 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2215 (add lea splitter): Likewise.
2216 (add_zext lea splitter): Likewise.
2218 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2220 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2222 2010-06-10 Jan Hubicka <jh@suse.cz>
2224 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2225 (df_live_alloc): Initialize problem data and live_osbtacks.
2226 (df_live_finalize): Remove obstack, problem data; do not
2228 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2229 data when not allocated.
2230 (df_live_verify_solution_start): Do not allocate problem data.
2231 (df_live_verify_solution_end): Check if out is allocated.
2232 (struct df_md_problem_data): New structure.
2233 (df_md_alloc): Allocate problem data.
2234 (df_md_free): Free problem data; do not clear bitmaps.
2236 2010-06-10 Jan Beulich <jbeulich@novell.com>
2239 * configure.ac: Replace $() with ${} when intending to expand
2240 variables rather than invoking commands.
2241 * configure: Re-generate.
2243 2010-06-10 Jan Hubicka <jh@suse.cz>
2245 PR rtl-optimization/44460
2246 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2247 TYPE_NEEDS_CONSTRUCTING sanity check.
2249 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2251 * doc/include/fdl.texi: Move to GFDL version 1.3.
2253 * doc/cpp.texi: Move to GFDL version 1.3.
2254 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2255 * doc/gccint.texi: Move to GFDL version 1.3.
2256 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2257 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2258 * doc/invoke.texi: Move to GFDL version 1.3.
2260 2010-06-09 Jan Hubicka <jh@suse.cz>
2262 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2264 (propagate) ... here; swap the order.
2266 2010-06-09 Jan Hubicka <jh@suse.cz>
2268 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2269 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2270 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2271 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2273 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2275 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2276 Do not the gather memory reference in the outer loop if the step
2279 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2281 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2282 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2283 8 to 4. Minor change of the related comments.
2285 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2287 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2288 the scev analysis when the variable is not used outside the loop
2289 in a close phi node: call compute_overall_effect_of_inner_loop.
2291 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2293 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2294 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2295 (build_sese_conditions_before): Renamed call to single_pred_cond.
2296 (build_sese_conditions_after): Same.
2298 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2300 * graphite-poly.h: Fix comments and indentation.
2301 * graphite-sese-to-poly.c: Same.
2302 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2303 * tree-chrec.c: Fix comments and indentation.
2304 (tree-ssa-loop-niter.c): Same.
2306 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2308 PR rtl-optimization/42461
2309 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2310 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2312 2010-06-09 Jan Hubicka <jh@suse.cz>
2314 * bitmap.c (bitmap_and): Walk array forward.
2315 (bitmap_and_compl_into): Likewise.
2316 (bitmap_xor): Likewise.
2317 (bitmap_xor_into): Likewise.
2318 (bitmap_equal_p): Likewise.
2319 (bitmap_intersect_p): Likewise.
2320 (bitmap_intersect_compl_p): Likewise.
2321 (bitmap_ior_and_into): Likewise.
2322 (bitmap_elt_copy): Likewise.
2323 (bitmap_and_compl): Likewise.
2324 (bitmap_elt_ior): Likewise.
2326 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2328 * opts-common.c (prune_options): Ensure replacement argv array
2329 is correctly terminated by a NULL entry.
2331 2010-06-09 Jan Hubicka <jh@suse.cz>
2333 * cgraph.h (varpool_first_static_initializer,
2334 varpool_next_static_initializer): Make checking only when
2336 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2337 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2338 gcc_assert to gcc_checking_assert.
2339 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2340 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2341 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2342 op_iter_init_phiuse, op_iter_init_phidef,
2343 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2344 gcc_checking_assert.
2345 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2346 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2347 partition_is_global, live_on_entry, live_on_exit,
2348 live_merge_and_clear): Likewise.
2349 * system.h (gcc_checking_assert): New macro.
2350 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2352 2010-06-09 Jason Merrill <jason@redhat.com>
2354 * Makefile.in (TAGS): Collect tags info from c-family.
2356 2010-06-09 Jan Hubicka <jh@suse.cz>
2358 * gimple.h (gcc_gimple_checking_assert): New macro.
2359 (gimple_set_def_ops, gimple_set_use_ops,
2360 gimple_set_vuse, gimple_set_vdef,
2361 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2362 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2363 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2364 gimple_asm_output_op, gimple_asm_output_op_ptr,
2365 gimple_asm_set_output_op, gimple_asm_clobber_op,
2366 gimple_asm_set_clobber_op, gimple_asm_label_op,
2367 gimple_asm_set_label_op, gimple_try_set_kind,
2368 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2369 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2370 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2371 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2372 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2373 gimple_omp_for_set_initial, gimple_omp_for_final,
2374 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2375 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2376 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2377 conditional with ENABLE_GIMPLE_CHECKING.
2378 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2380 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2382 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2383 (get_computation_cost_at): Use it.
2384 (determine_use_iv_cost_condition): Likewise.
2385 (determine_iv_cost): Likewise.
2387 2010-06-09 Richard Guenther <rguenther@suse.de>
2389 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2392 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2394 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2396 2010-06-09 Martin Jambor <mjambor@suse.cz>
2398 PR tree-optimization/44423
2399 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2400 (analyze_access_subtree): Pass negative allow_replacements to children
2401 if the current type is scalar.
2403 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2406 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2407 * doc/plugins.texi (Plugin license check): Update information
2408 on type of plugin_is_GPL_compatible.
2409 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2410 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2412 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2414 * config/arm/arm.c (thumb2_reorg): New function.
2415 (arm_reorg): Call it.
2416 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2417 arithmetic operations): Delete.
2419 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2422 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2425 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2428 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2430 2010-06-08 Jan Hubicka <jh@suse.cz>
2432 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2433 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2435 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2437 PR tree-optimization/39874
2439 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2441 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2442 same_bool_result_p): New.
2443 (and_var_with_comparison, and_var_with_comparison_1,
2444 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2445 (or_var_with_comparison, or_var_with_comparison_1,
2446 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2447 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2448 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2449 of combine_comparisons.
2450 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2452 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2454 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2455 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2456 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2457 pdp11_function_value_regno_p): New functions.
2458 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2459 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2461 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2463 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2464 Thumb-2 in the MINUS case.
2466 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2468 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2470 * doc/gty.texi (GTY Options): Document typed GC allocation and
2471 variable_size GTY option.
2473 * ggc-internal.h: New.
2475 * ggc.h: Update copyright year.
2476 (digit_string): Move to stringpool.c.
2477 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2478 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2479 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2480 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2481 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2482 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2483 (ggc_force_collect, ggc_get_size, ggc_statistics)
2484 (ggc_print_common_statistics): Move to ggc-internal.h.
2485 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2486 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2487 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2488 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2489 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2490 (ggc_alloc_zone_pass_stat): Remove.
2491 (ggc_internal_alloc_stat, ggc_internal_alloc)
2492 (ggc_internal_cleared_alloc_stat): New.
2493 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2494 (ggc_internal_vec_alloc_stat)
2495 (ggc_internal_cleared_vec_alloc_stat)
2496 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2497 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2498 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2499 (ggc_cleared_alloc_ptr_array_two_args): New.
2500 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2501 (ggc_splay_alloc): Change the type of the first argument to
2503 (ggc_alloc_string): Make macro.
2504 (ggc_alloc_string_stat): New.
2505 (ggc_strdup): Redefine.
2506 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2507 (ggc_alloc_rtvec_sized): New.
2508 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2509 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2510 (ggc_internal_cleared_alloc_zone_stat)
2511 (ggc_internal_zone_alloc_stat)
2512 (ggc_internal_zone_cleared_alloc_stat)
2513 (ggc_internal_zone_vec_alloc_stat)
2514 (ggc_alloc_zone_rtx_def_stat)
2515 (ggc_alloc_zone_tree_node_stat)
2516 (ggc_alloc_zone_cleared_tree_node_stat)
2517 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2519 * ggc-common.c: Include ggc-internal.h.
2520 (ggc_internal_cleared_alloc_stat): Rename from
2521 ggc_alloc_cleared_stat.
2522 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2523 (ggc_calloc): Remove.
2524 (ggc_cleared_alloc_htab_ignore_args): New.
2525 (ggc_cleared_alloc_ptr_array_two_args): New.
2526 (ggc_splay_alloc): Add obj_type parameter.
2527 (init_ggc_heuristics): Formatting fixes.
2529 * ggc-none.c: Update copyright year.
2530 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2531 (ggc_alloc_cleared_stat): Rename to
2532 ggc_internal_cleared_alloc_stat.
2533 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2535 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2536 Remove references to ggc_alloc in comments.
2537 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2538 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2539 (new_ggc_zone, destroy_ggc_zone): Remove.
2540 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2542 * ggc-zone.c: Include ggc-internal.h. Remove references to
2543 ggc_alloc in comments.
2544 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2545 (ggc_internal_alloc_zone_pass_stat): New.
2546 (ggc_internal_cleared_alloc_zone_stat): New.
2547 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2548 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2549 (new_ggc_zone, destroy_ggc_zone): Remove.
2551 * stringpool.c: Update copyright year. Include ggc-internal.h
2552 (digit_vector): Make static.
2553 (digit_string): Moved from ggc.h.
2554 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2555 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2557 * Makefile.in (GGC_INTERNAL_H): New.
2558 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2559 $(GGC_INTERNAL_H) to dependencies.
2561 * gentype.c: Update copyright year.
2562 (walk_type): Accept variable_size GTY option.
2563 (USED_BY_TYPED_GC_P): New macro.
2564 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2565 whitespace at the end of strings.
2566 (get_type_specifier, variable_size_p): New functions.
2567 (alloc_quantity, alloc_zone): New enums.
2568 (write_typed_alloc_def): New function.
2569 (write_typed_struct_alloc_def): Likewise.
2570 (write_typed_typed_typedef_alloc_def): Likewise.
2571 (write_typed_alloc_defns): Likewise.
2572 (output_typename, write_splay_tree_allocator_def): Likewise.
2573 (write_splay_tree_allocators): Likewise.
2574 (main): Call write_typed_alloc_defns and
2575 write_splay_tree_allocators.
2577 * lto-streamer.h (lto_file_decl_data_ptr): New.
2579 * passes.c (order): Define using cgraph_node_ptr.
2581 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2584 * gimple.h (union gimple_statement_d): Likewise.
2586 * rtl.h (struct rtx_def): Likewise.
2587 (struct rtvec_def): Likewise.
2589 * tree.h (union tree_node): Likewise.
2591 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2593 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2595 * tree-scalar-evolution.c (scev_initialize): Likewise.
2597 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2599 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2601 * omp-low.c (lower_omp_critical): Likewise.
2603 * bitmap.h (struct bitmap_head_def): Update comment to not
2604 reference ggc_alloc.
2606 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2608 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2610 * ipa-prop.c (duplicate_ggc_array): Rename to
2611 duplicate_ipa_jump_func_array. Use typed GC allocation.
2612 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2614 * gimple.c (gimple_alloc_stat): Use
2615 ggc_alloc_cleared_gimple_statement_d_stat.
2617 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2619 * tree.c (make_node_stat): Use
2620 ggc_alloc_zone_cleared_tree_node_stat.
2621 (make_tree_vec_stat): Likewise.
2622 (build_vl_exp_stat): Likewise.
2623 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2624 (make_tree_binfo_stat): Likewise.
2625 (tree_cons_stat): Likewise.
2627 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2628 (shallow_copy_rtx_stat): Likewise.
2629 (make_node_stat): Likewise.
2631 * lto-symtab.c: Fix comment.
2633 * tree-cfg.c (create_bb): Update comment to not reference
2635 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2637 * varpool.c (varpool_node): Use typed GC allocation.
2638 (varpool_extra_name_alias): Likewise.
2640 * varasm.c (emutls_decl): Likewise.
2641 (get_unnamed_section): Likewise.
2642 (get_noswitch_section): Likewise.
2643 (get_section): Likewise.
2644 (get_block_for_section): Likewise.
2645 (build_constant_desc): Likewise.
2646 (create_constant_pool): Likewise.
2647 (force_const_mem): Likewise.
2649 * tree.c (build_vl_exp_stat): Likewise.
2650 (build_real): Likewise.
2651 (build_string): Likewise.
2652 (decl_debug_expr_insert): Likewise.
2653 (decl_value_expr_insert): Likewise.
2654 (type_hash_add): Likewise.
2655 (build_omp_clause): Likewise.
2657 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2659 * tree-ssa.c (init_tree_ssa): Likewise.
2661 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2663 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2665 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2667 * tree-ssa-alias.c (get_ptr_info): Likewise.
2669 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2671 * tree-phinodes.c (allocate_phi_node): Likewise.
2673 * tree-iterator.c (tsi_link_before): Likewise.
2674 (tsi_link_after): Likewise.
2676 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2678 * tree-dfa.c (create_var_ann): Likewise.
2680 * tree-cfg.c (create_bb): Likewise.
2682 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2683 (general_init): Likewise.
2685 * stringpool.c (stringpool_ggc_alloc): Likewise.
2686 (gt_pch_save_stringpool): Likewise.
2688 * sese.c (if_region_set_false_region): Likewise.
2690 * passes.c (do_per_function_toporder): Likewise.
2692 * optabs.c (set_optab_libfunc): Likewise.
2693 (set_conv_libfunc): Likewise.
2695 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2697 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2698 (input_eh_region): Likewise.
2699 (input_eh_lp): Likewise.
2700 (make_new_block): Likewise.
2701 (unpack_ts_real_cst_value_fields): Likewise.
2703 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2705 * lto-cgraph.c (input_node_opt_summary): Likewise.
2707 * loop-init.c (loop_optimizer_init): Likewise.
2709 * lambda.h (lambda_vector_new): Likewise.
2711 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2713 * ira.c (update_equiv_regs): Likewise.
2715 * ipa.c (cgraph_node_set_new): Likewise.
2716 (cgraph_node_set_add): Likewise.
2717 (varpool_node_set_new): Likewise.
2718 (varpool_node_set_add): Likewise.
2720 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2721 (duplicate_ipa_jump_func_array): Likewise.
2722 (ipa_read_node_info): Likewise.
2724 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2726 * integrate.c (get_hard_reg_initial_val): Likewise.
2728 * gimple.c (gimple_alloc_stat): Likewise.
2729 (gimple_build_omp_for): Likewise.
2730 (gimple_seq_alloc): Likewise.
2731 (gimple_copy): Likewise.
2733 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2734 (gsi_insert_after_without_update): Likewise.
2736 * function.c (add_frame_space): Likewise.
2737 (insert_temp_slot_address): Likewise.
2738 (assign_stack_temp_for_type): Likewise.
2739 (allocate_struct_function): Likewise.
2740 (types_used_by_var_decl_insert): Likewise.
2742 * except.c (init_eh_for_function): Likewise.
2743 (gen_eh_region): Likewise.
2744 (gen_eh_region_catch): Likewise.
2745 (gen_eh_landing_pad): Likewise.
2746 (add_call_site): Likewise.
2748 * emit-rtl.c (get_mem_attrs): Likewise.
2749 (get_reg_attrs): Likewise.
2750 (start_sequence): Likewise.
2751 (init_emit): Likewise.
2753 * dwarf2out.c (new_cfi): Likewise.
2754 (queue_reg_save): Likewise.
2755 (dwarf2out_frame_init): Likewise.
2756 (new_loc_descr): Likewise.
2757 (find_AT_string): Likewise.
2758 (new_die): Likewise.
2759 (add_var_loc_to_decl): Likewise.
2760 (clone_die): Likewise.
2761 (clone_as_declaration): Likewise.
2762 (break_out_comdat_types): Likewise.
2763 (new_loc_list): Likewise.
2764 (loc_descriptor): Likewise.
2765 (add_loc_descr_to_each): Likewise.
2766 (add_const_value_attribute): Likewise.
2767 (tree_add_const_value_attribute): Likewise.
2768 (add_comp_dir_attribute): Likewise.
2769 (add_name_and_src_coords_attributes): Likewise.
2770 (lookup_filename): Likewise.
2771 (store_vcall_insn): Likewise.
2772 (dwarf2out_init): Likewise.
2774 * dbxout.c (dbxout_init): Likewise.
2776 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2778 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2780 * config/score/score7.c (score7_output_external): Likewise.
2782 * config/score/score3.c (score3_output_external): Likewise.
2784 * config/s390/s390.c (s390_init_machine_status): Likewise.
2786 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2787 (rs6000_init_machine_status): Likewise.
2788 (output_toc): Likewise.
2790 * config/pa/pa.c (pa_init_machine_status): Likewise.
2791 (get_deferred_plabel): Likewise.
2793 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2795 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2797 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2799 * config/mep/mep.c (mep_init_machine_status): Likewise.
2800 (mep_note_pragma_flag): Likewise.
2802 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2804 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2806 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2808 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2809 (i386_pe_maybe_record_exported_symbol): Likewise.
2811 * config/i386/i386.c (get_dllimport_decl): Likewise.
2812 (ix86_init_machine_status): Likewise.
2813 (assign_386_stack_local): Likewise.
2815 * config/frv/frv.c (frv_init_machine_status): Likewise.
2817 * config/darwin.c (machopic_indirection_name): Likewise.
2819 * config/cris/cris.c (cris_init_machine_status): Likewise.
2821 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2823 * config/avr/avr.c (avr_init_machine_status): Likewise.
2825 * config/arm/arm.c (arm_init_machine_status): Likewise.
2827 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2828 (alpha_need_linkage): Likewise.
2829 (alpha_use_linkage): Likewise.
2831 * cgraph.c (cgraph_allocate_node): Likewise.
2832 (cgraph_create_edge_1): Likewise.
2833 (cgraph_create_indirect_edge): Likewise.
2834 (cgraph_add_asm_node): Likewise.
2836 * cfgrtl.c (init_rtl_bb_info): Likewise.
2838 * cfgloop.c (alloc_loop): Likewise.
2839 (rescan_loop_exit): Likewise.
2841 * cfg.c (init_flow): Likewise.
2842 (alloc_block): Likewise.
2843 (unchecked_make_edge): Likewise.
2845 * c-parser.c (c_parse_init): Likewise.
2846 (c_parse_file): Likewise.
2848 * c-decl.c (bind): Likewise.
2849 (record_inline_static): Likewise.
2850 (push_scope): Likewise.
2851 (make_label): Likewise.
2852 (lookup_label_for_goto): Likewise.
2853 (finish_struct): Likewise.
2854 (finish_enum): Likewise.
2855 (c_push_function_context): Likewise.
2857 * bitmap.c (bitmap_element_allocate): Likewise.
2858 (bitmap_gc_alloc_stat): Likewise.
2860 * alias.c (record_alias_subset): Likewise.
2861 (init_alias_analysis): Likewise.
2863 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2865 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2866 * tree-inline.c (expand_call_inline): Pass translated return value of
2867 cgraph_inline_failed_string to diagnostic function.
2869 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2870 Shujing Zhao <pearly.zhao@oracle.com>
2873 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2874 implicit bad conversions is initialization.
2875 (error_init): Use gmsgid instead of msgid for argument name and change
2877 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2878 change the call for pedwarn.
2879 (warning_init): Use gmsgid instead of msgid for argument name and
2880 change the call for warning.
2882 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2884 * config/mips/mips-protos.h (mips_print_operand): Delete.
2885 (mips_print_operand_address): Delete.
2886 * config/mips/mips.h (mips_print_operand_punct): Delete.
2887 (PRINT_OPERAND): Delete.
2888 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2889 (PRINT_OPERAND_ADDRESS): Delete.
2890 * config/mips/mips.c (mips_print_operand_punct): Make static.
2891 (mips_print_operand_address): Make static.
2892 (mips_print_operand): Make static. Call
2893 mips_print_operand_punct_valid_p.
2894 (mips_print_operand_punct_valid_p): New function.
2895 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2896 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2898 2010-06-07 Jan Hubicka <jh@suse.cz>
2901 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2904 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2906 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2909 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2911 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2912 attributes): Document gas.
2914 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2916 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2917 <TYPE_LEA>: Split instruction.
2918 <default>: Remove alternative 2 handling.
2919 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2920 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2921 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2923 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2924 (ashift_zext lea splitter): Use DImode for multiplication.
2926 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2927 to generate addition.
2929 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2931 * common.opt (fira-verbose): Use Var.
2932 (fpcc-struct-return): Use Init instead of VarExists.
2933 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2935 * flags.h (flag_signed_char, flag_short_enums,
2936 flag_pcc_struct_return, flag_ira_verbose,
2937 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2938 * toplev.c (flag_detailed_statistics, flag_signed_char,
2939 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2940 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2941 * toplev.h (flag_crossjumping, flag_if_conversion,
2942 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2943 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2944 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2945 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2946 flag_ira_coalesce, flag_ira_move_spills,
2947 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2949 2010-06-07 Jan Hubicka <jh@suse.cz>
2951 * df-core.c (df_analyze_problem): Do verification after allocation.
2953 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2954 (df_lr_alloc): Initialize problem data; move bitmaps to
2956 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2957 (df_lr_verify_solution_start): Do not initialize problem data;
2958 allocate bitmaps in lr_bitmaps.
2959 (df_lr_verify_solution_end): Do not free problem data.
2961 2010-06-07 Jan Hubicka <jh@suse.cz>
2963 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2964 if caller is noreturn.
2965 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2966 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2967 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2968 * ipa-pure-const.c (check_decl): Add IPA parameter.
2969 (state_from_flags): New function.
2970 (better_state, worse_state): New functions.
2971 (check_call): When in IPA mode, do not care about callees.
2972 (check_load, check_store): Update.
2973 (check_ipa_load, check_ipa_store): New.
2974 (check_stmt): When in IPA mode, use IPA checkers.
2975 (analyze_function): Use state_from_flags.
2976 (propagate): Check indirect edges and references.
2978 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2980 PR rtl-optimization/44404
2981 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2982 of count_occurrences to see if it's safe to modify mem_insn.
2984 2010-06-07 Richard Guenther <rguenther@suse.de>
2986 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2987 and EH-only cleanup drop the cleanup instead of inserting it
2990 2010-06-07 Ira Rosen <irar@il.ibm.com>
2992 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2994 * targhooks.c (default_builtin_vectorization_cost): New function.
2995 * targhooks.h (default_builtin_vectorization_cost): Declare.
2996 * target.h (enum vect_cost_for_stmt): Define.
2997 (builtin_vectorization_cost): Change argument and comment.
2998 * tree-vectorizer.h: Remove cost model macros.
2999 * tree-vect-loop.c: Include target.h.
3000 (vect_get_cost): New function.
3001 (vect_estimate_min_profitable_iters): Replace cost model macros with
3002 calls to vect_get_cost.
3003 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3004 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3005 default implementation.
3006 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3007 calls to target hook builtin_vectorization_cost.
3008 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3010 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3011 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3012 implementation to return costs.
3013 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3014 * config/spu/spu.h: Remove vectorizer cost model macros.
3015 * config/i386/i386.h: Likewise.
3016 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3017 a call to target hook builtin_vectorization_cost.
3019 2010-06-06 Sriraman Tallam <tmsriram@google.com>
3022 * config/i386/i386.c (override_options): Turn zee pass on for level 2
3023 and above and defer till target is known.
3024 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3027 2010-05-25 Jan Hubicka <jh@suse.cz>
3029 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3030 (df_compact_blocks): Likewise.
3031 * df.h (struct df): Turn hardware_regs_used,
3032 regular_block_artificial_uses, eh_block_artificial_uses,
3033 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3035 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3036 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3037 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3038 df_scan_blocks, df_insn_delete, df_insn_rescan,
3039 df_insn_rescan_debug_internal, df_insn_rescan_all,
3040 df_process_deferred_rescans, df_process_deferred_rescans,
3041 df_notes_rescan, df_get_call_refs, df_get_call_refs,
3042 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3043 df_record_entry_block_defs, df_record_exit_block_uses,
3044 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3045 df_scan_verify): Update.
3047 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3050 * c-common.c (is_typedef_decl): Move this definition ...
3051 * tree.c (is_typedef_decl): ... here.
3052 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3053 * c-common.h (is_typedef_decl): Move this declaration ...
3054 * tree.h (is_typedef_decl): ... here.
3055 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3056 * dwarf2out.c (is_naming_typedef_decl): New function.
3057 (gen_tagged_type_die): Split out of ...
3058 (gen_type_die_with_usage): ... this function. When an anonymous
3059 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3060 is emitted for the typedef.
3061 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3062 anonymous tagged types.
3064 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3067 * c-decl.c (grokdeclarator): Delete warning.
3069 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3071 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3072 newly built CALL_EXPR.
3073 * tree-profile.c (tree_profiling): Don't profile functions produced
3076 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3080 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3081 endianness-independent.
3083 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3085 * c-common.c: Move to c-family/.
3086 * c-common.def: Likewise.
3087 * c-common.h: Likewise.
3088 * c-cppbuiltin.c: Likewise.
3089 * c-dump.c: Likewise.
3090 * c-format.c: Likewise.
3091 * c-format.h : Likewise.
3092 * c-gimplify.c: Likewise.
3093 * c-lex.c: Likewise.
3094 * c-omp.c: Likewise.
3096 * c-opts.c: Likewise.
3097 * c-pch.c: Likewise.
3098 * c-ppoutput.c: Likewise.
3099 * c-pragma.c: Likewise.
3100 * c-pragma.h: Likewise.
3101 * c-pretty-print.c: Likewise.
3102 * c-pretty-print.h: Likewise.
3103 * c-semantics.c: Likewise.
3104 * stub-objc.c: Likewise.
3106 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3107 (get_output_file_with_visibility): Fix name for c-common.h.
3108 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3110 * c-tree.h: Update include path for moved files.
3111 * c-lang.c: Likewise.
3112 * c-lang.h: Likewise.
3113 * c-parser.c: Likewise.
3114 * c-convert.c: Likewise.
3115 * c-decl.c: Likewise.
3116 * c-objc-common.c: Likewise.
3117 * configure.ac: Make sure c-family/ exists in the build directory.
3118 * configure: Regenerate.
3119 * Makefile.in: Update paths for moved files. Regroup files per
3120 location and update dependencies. Move generated_files down after
3123 * config/spu/spu-c.c: Update paths for moved files.
3124 * config/mep/mep-pragma.c: Likewise.
3125 * config/darwin-c.c: Likewise.
3126 * config/i386/msformat-c.c: Likewise.
3127 * config/i386/i386-c.c: Likewise.
3128 * config/avr/avr-c.c: Likewise.
3129 * config/sol2-c.c: Likewise.
3130 * config/ia64/ia64-c.c: Likewise.
3131 * config/rs6000/rs6000-c.c: Likewise.
3132 * config/arm/arm.c: Likewise.
3133 * config/arm/arm-c.c: Likewise.
3134 * config/h8300/h8300.c: Likewise.
3135 * config/v850/v850-c.c: Likewise.
3137 * config/t-darwin: Fix dependencies for moved files.
3138 * config/t-sol2: Fix dependencies for moved files.
3139 * config/mep/t-mep: Fix dependencies for moved files.
3140 * config/ia64/t-ia64: Fix dependencies for moved files.
3141 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3142 * config/v850/t-v850: Fix dependencies for moved files.
3143 * config/v850/t-v850e: Fix dependencies for moved files.
3145 * config/m32c/m32c-pragma.c
3147 * po/exgettext: Look in c-family/ also.
3149 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3151 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3152 (mark_control_dependent_edges_necessary): Call it instead of marking
3153 the last statement manually.
3154 (propagate_necessity): Likewise.
3156 2010-06-05 Jan Hubicka <jh@suse.cz>
3158 * basic-block.h (compute_dominance_frontiers): Updated.
3159 (compute_idf): Likewise.
3161 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3162 for dominance frontiers.
3163 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3164 (insert_updated_phi_nodes_for): Likewise.
3165 (update_ssa): Likewise.
3166 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3167 (compute_dominance_frontiers): Likewise.
3168 (compute_idf): Likewise.
3169 * df-problems.c (df_md_local_compute): Likewise.
3171 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3173 * target.h (struct gcc_target): Add memory_move_cost field.
3174 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3175 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3176 * targhooks.c (default_memory_move_cost): New function.
3177 * targhooks.h (default_memory_move_cost): Declare function.
3178 * reload.h (memory_move_cost): Declare.
3179 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3180 * reginfo.c (memory_move_cost): New function.
3181 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3182 * ira.h (ira_memory_move_cost): Update comment.
3183 * ira.c: (ira_memory_move_cost): Update comment.
3184 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3185 with memory_move_cost.
3186 * postreload.c (reload_cse_simplify_set): (Ditto.).
3187 * reload1.c (choose_reload_regs): (Ditto.).
3188 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3189 (MEMORY_MOVE_COST): Revise documentation.
3191 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3192 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3193 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3194 type of 'in' argument to bool.
3195 (TARGET_MEMORY_MOVE_COST): Define.
3197 2010-06-05 Jan Hubicka <jh@suse.cz>
3199 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3200 that cannot return. Be more careful when merging the results with
3201 previously known ones.
3203 2010-06-05 Matthias Klose <doko@ubuntu.com>
3205 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3206 function to add the -iplugindir option.
3207 (find_plugindir_spec_function): Add new declaration and function.
3208 (static_spec_func): Use it for "find-plugindir".
3210 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3213 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3214 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3215 statement expression.
3217 2010-06-05 Jan Hubicka <jh@suse.cz>
3219 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3220 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3221 dense_invalidated_by_call to bitmap head.
3222 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3223 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3224 df_rd_start_dump, df_lr_verify_transfer_functions,
3225 df_live_verify_transfer_functions, df_chain_create_bb,
3226 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3227 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3228 df_simulate_one_insn_forwards, df_md_alloc,
3229 df_md_bb_local_compute_process_def,
3230 df_md_bb_local_compute_process_def, df_md_local_compute,
3231 df_md_transfer_function df_md_free): Update.
3233 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3236 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3237 target type for ADDR_EXPR; require no changes to qualifiers except
3239 * c-tree.h (c_build_type_variant): Remove.
3241 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3243 * genautomata.c (get_excl_set): Do work per element, not per char.
3244 (check_presence_pattern_sets): Similar.
3245 (check_absence_pattern_sets): Similar.
3247 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3249 * genautomata.c (curr_state_pass_num): Delete.
3250 (min_issue_delay_pass_states): Delete.
3251 (min_issue_delay): Delete.
3252 (initiate_min_issue_delay_pass_states): Delete.
3253 (output_min_issue_delay_table): Compute min_issue_delay_vect
3254 using a breadth-first search variant.
3255 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3257 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3260 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3261 (df_byte_lr_bb_local_compute): Likewise.
3263 2010-06-03 Jason Merrill <jason@redhat.com>
3265 Implement noexcept operator (5.3.7)
3266 * c-common.c (c_common_reswords): Add noexcept.
3267 * c-common.h (enum rid): Add RID_NOEXCEPT.
3269 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3271 * config/darwin-driver.c (darwin_default_min_version): Use
3272 GCC-specific formats in diagnostics.
3273 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3275 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3276 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3277 eval_spec_function, handle_braces, process_brace_body, main,
3278 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3279 getenv_spec_function, compare_version_strings,
3280 version_compare_spec_function): Use GCC-specific formats in
3283 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3285 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3286 that operand 0 and operand 1 are equal.
3287 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3288 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3289 and operand 1 are equal.
3290 <default>: Ditto. Remove ??? comment.
3291 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3292 and operand 1 are equal.
3293 <default>: Ditto. Remove ??? comment.
3294 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3296 (*add<mode>_4) <default>: Ditto.
3297 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3299 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3301 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3302 * config/i386/i386.c (ix86_print_operand): Make non-static.
3303 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3304 * output.h (output_operand): Declare.
3305 * final.c (output_operand): Make non-static.
3307 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3309 PR rtl-optimization/44013
3310 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3311 when processing debug insns.
3314 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3315 recursing. Check that recursion is bounded. Rename inner var
3316 to avoid hiding incoming argument.
3318 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3320 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3325 (*addqi_ext_1_rex64): Ditto.
3326 (*addqi_ext_1): Ditto.
3328 (*addqi_4): Check for incdec_operand in QImode.
3330 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3331 using SWI mode iterator.
3332 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3333 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3335 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3336 using SWI mode iterator.
3338 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3341 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3342 * c-format.c (gcc_diag_flag_specs): Add hash.
3343 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3344 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3345 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3346 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3347 (pp_c_type_qualifier_list): Call the function above.
3348 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3349 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3350 (WARN_FOR_QUALIFIERS): New macro.
3351 (convert_for_assignment): Use it.
3353 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3355 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3357 2010-06-04 Jan Hubicka <jh@suse.cz>
3359 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3360 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3361 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3362 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3363 * fwprop.c (single_def_use_enter_block): Likewise.
3364 * ddg.c (create_ddg_dep_from_intra_loop_link,
3365 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3366 * loop-iv.c (latch_dominating_def): Likewise.
3367 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3368 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3369 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3370 df_rd_transfer_function, df_rd_top_dump,
3371 df_rd_bottom_dump): Update.
3372 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3373 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3374 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3375 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3376 df_lr_verify_solution_start, df_lr_verify_solution_end,
3377 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3378 df_live_free_bb_info, df_live_alloc, df_live_reset,
3379 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3380 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3381 df_live_verify_solution_start, df_live_verify_solution_end,
3382 df_live_verify_transfer_functions, df_chain_create_bb,
3383 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3384 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3385 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3386 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3387 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3388 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3389 df_byte_lr_bottom_dump, df_create_unused_note,
3390 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3391 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3392 df_md_transfer_function, df_md_init, df_md_confluence_0,
3394 df_md_top_dump, df_md_bottom_dump): Update.
3395 (struct df_lr_problem_data): Embedd bitmap headers.
3397 2010-06-04 Jan Hubicka <jh@suse.cz>
3399 * dce.c (dce_process_block): Do not re-scan already marked
3402 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3404 PR rtl-optimization/39871
3405 PR rtl-optimization/40615
3406 PR rtl-optimization/42500
3407 PR rtl-optimization/42502
3408 * ira.c (init_reg_equiv_memory_loc: New function.
3409 (ira): Call it twice.
3410 * reload.h (calculate_elim_costs_all_insns): Declare.
3411 * ira-costs.c: Include "reload.h".
3412 (regno_equiv_gains): New static variable.
3413 (init_costs): Allocate it.
3414 (finish_costs): Free it.
3415 (ira_costs): Call calculate_elim_costs_all_insns.
3416 (find_costs_and_classes): Take estimated elimination costs
3418 (ira_adjust_equiv_reg_cost): New function.
3419 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3420 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3421 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3422 (elim_bb): New static variable.
3423 (reload): Move code out of here into init_eliminable_invariants and
3424 free_reg_equiv. Call them.
3425 (calculate_elim_costs_all_insns): New function.
3426 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3427 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3428 but call note_reg_elim_costly if we turned a valid memory address
3429 into an invalid one.
3430 * Makefile.in (ira-costs.o): Depend on reload.h.
3432 2010-06-04 Julian Brown <julian@codesourcery.com>
3434 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3437 2010-06-04 Richard Guenther <rguenther@suse.de>
3440 * cgraph.h (struct varpool_node): Add lto_file_data field.
3441 * lto-cgraph.c (input_varpool_node): Initialize it.
3443 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3445 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3446 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3447 predicate in "type" attribute calculation.
3448 (*addsi_1_zext): Ditto.
3449 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3450 (*addsi_2_zext): Ditto.
3451 (*add<mode>_3): Ditto.
3452 (*addsi_3_zext): Ditto.
3453 (*add<mode>_5): Ditto.
3455 2010-06-03 Jan Hubicka <jh@suse.cz>
3457 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3459 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3461 2010-06-03 Jan Hubicka <jh@suse.cz>
3463 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3464 micro-optimize the checks when to add new note.
3466 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3468 * final.c (output_asm_insn): Call
3469 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3470 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3471 (output_address): Call targetm.asm_out.print_operand_address.
3473 * target.h (struct gcc_target): Add print_operand,
3474 print_operand_address, and print_operand_punct_valid_p fields.
3475 * targhooks.h (default_print_operand): Declare.
3476 (default_print_operand_address): Declare.
3477 (default_print_operand_punct_valid_p): Declare.
3478 * targhooks.c (default_print_operand): Define.
3479 (default_print_operand_address): Define.
3480 (default_print_operand_punct_valid_p): Define.
3481 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3482 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3483 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3484 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3485 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3486 * vmsdbgout.c (addr_const_to_string): Update comment.
3487 * config/i386/i386.c (print_operand): Rename to...
3488 (ix86_print_operand): ...this. Make static.
3489 (print_operand_address): Rename to...
3490 (ix86_print_operand_address): ...this. Make static. Call
3491 ix86_print_operand instead of PRINT_OPERAND.
3492 (ix86_print_operand_punct_valid_p): New function.
3493 (TARGET_PRINT_OPERAND): Define.
3494 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3495 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3496 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3497 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3498 (PRINT_OPERAND): Delete.
3499 (PRINT_OPERAND_ADDRESS): Delete.
3500 * config/i386/i386-protos.h (print_operand): Delete prototype.
3501 (print_operand_address): Delete prototype.
3503 2010-06-03 Richard Guenther <rguenther@suse.de>
3505 PR tree-optimization/44403
3506 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3507 Preserve pointer qualifiers.
3508 (vect_create_data_ref_ptr): Likewise.
3510 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3513 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3515 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3517 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3520 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3521 return false if merging the bbs would lead to goto_locus
3522 location being lost from the IL.
3524 2010-06-03 Jan Hubicka <jh@suse.cz>
3525 Jakub Jelinek <jakub@redhat.com>
3527 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3528 set->regs[i] is NULL or has just one entry.
3530 2010-06-03 Jan Hubicka <jh@suse.cz>
3532 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3533 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3535 2010-06-03 Paul Brook <paul@codesourcery.com>
3537 * config/arm/arm.c (FL_TUNE): Define.
3538 (arm_default_cpu, arm_cpu_select): Remove.
3539 (all_cores): Populate core field.
3540 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3541 (arm_find_cpu): New function.
3542 (arm_handle_option): Lookup cpu/architecture names.
3543 (arm_override_options): Cleanup mcpu/march/mtune handling.
3544 (arm_file_start): Ditto.
3546 2010-06-03 Alan Modra <amodra@gmail.com>
3549 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3550 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3551 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3552 (rs6000_emit_load_toc_table): Likewise.
3554 2010-06-02 Jan Hubicka <jh@suse.cz>
3556 * passes.c (init_optimization_passes): Put ipa reference
3557 after ipa pure-const.
3559 2010-06-02 Jan Hubicka <jh@suse.cz>
3561 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3562 calls_read_all and calls_write_all.
3563 (get_reference_optimization_summary): Fix formatting.
3564 (is_proper_for_analysis): Check that decl is not readonly.
3565 (propagate_bits): Check CONST/PURE/noreturn flags.
3566 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3567 (analyze_function): Ignore indirect edges.
3568 (copy_global_bitmap): For all module statics, do nothing.
3569 (generate_summary): Do not print calls_read_all/calls_write_all.
3570 (read_write_all_from_decl): Take node as argument; check
3571 cgraph_node_cannot_return.
3572 (propagate): Reorganize read_all/write_all computation;
3573 check indirect edges; check ecf flags; use all_module_statics
3574 in the results; do not free all_module_statics.
3575 (stream_out_bitmap): Handle all_module_statics.
3576 (ipa_reference_write_optimization_summary): Likewise; use
3577 varpool/cgraph encoders to get boundaries.
3578 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3579 use it when possible.
3581 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3584 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3585 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3587 * doc/extend.texi (powerpc builtins): Document vec_recip,
3588 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3590 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3591 (rs6000_emit_swrsqrt): Ditto.
3592 (rs6000_emit_swdivsf): Delete.
3593 (rs6000_emit_swdivdf): Ditto.
3594 (rs6000_emit_swrsqrtsf): Ditto.
3596 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3597 describe the reciprocal estimate support for each type.
3598 (recip_options): Map -mrecip=<opt> into option bits.
3599 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3600 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3601 reciprocal estimate instructions.
3602 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3603 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3604 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3605 cost information if -mdebug=cost or -mdebug=reg.
3606 (rs6000_override_options): Set -mrecip-precision for power6, and
3607 power7 machines. If -mvsx or -mdfp, enable various options that
3608 came in previous instruction set ISAs, unless the option was
3609 explicitly disabled by the command line option. Parse
3610 -mrecip=<opt> options.
3611 (rs6000_builtin_vectorized_function): Add support for vectorizing
3612 the reciprocal estimate builtins and expansions.
3613 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3614 (bdesc_2arg): Add reciprocal estimate builtins.
3615 (bdesc_1arg): Add reciprocal square root estimate builtins.
3616 (rs6000_expand_builtin): Rewrite to use a switch statement,
3617 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3618 (rs6000_init_builtins): Create declarations for reciprocal
3620 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3621 sized, prefer traditional floating point registers, if integer
3622 vector types, prefer altivec registers. Don't actually look at
3623 the memory address any more.
3624 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3626 (rs6000_load_constant_and_splat): New helper function to load up
3627 the constant for reciprocal estimate instructions.
3628 (rs6000_emit_madd): New helper function for generating
3629 multiply/add type instructions, based on the current switches.
3630 (rs6000_emit_msub): Ditto.
3631 (rs6000_emit_mnsub): Ditto.
3632 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3633 replace a divide with a reciprocal estimate and fixup, adding
3634 support for machines with high precision and vectors.
3635 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3636 low precision machines.
3637 (rs6000_emit_swdiv): New common function to be called to replace a
3638 division with reciprocal estimate and fixup.
3639 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3640 for double and vector types. Add support for high precision machines.
3642 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3643 the reciprocal estimate instructions can be generated.
3644 (TARGET_FRE): Ditto.
3645 (TARGET_FRSQRTES): Ditto.
3646 (TARGET_FRSQRTE): Ditto.
3647 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3649 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3650 square root estimate on vectors.
3651 (re<mode>2): New insn for reciprocal division estimate on vectors.
3653 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3655 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3656 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3657 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3658 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3659 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3660 (RS6000_BUILTIN_RSQRT): Ditto.
3661 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3662 floating point builtin.
3664 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3665 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3666 __RECIP_PRECISION__ based on the command line switches.
3667 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3669 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3670 replacing division instructions with reciprocal estimate and fixup.
3671 (-mrecip=<opt>): New option.
3672 (-mrecip-precision): Ditto.
3674 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3675 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3676 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3679 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3680 (UNSPEC_VREFP): Ditto.
3681 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3682 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3683 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3684 reciprocal estimate instructions to be generated.
3685 (altivec_vrefp): Ditto.
3687 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3689 (rreg): New mode attribute for reciprocal estimate support.
3690 (recip<mode>3): New insn for division using reciprocal estimate
3692 (divide define_split): New define_split to convert floating point
3693 division to use reciprocal estimate if the user used the
3694 appropriate options and the split is run when we can add new
3695 pseudo registers for the fixup.
3696 (rsqrt<mode>2): New insn for reciprocal square root support.
3697 (recipsf3): Move into recip<mode>3.
3699 (fres): Use TARGET_FRES.
3700 (rsqrtsf2): Move into rsqrt<mode>2.
3701 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3702 (copysignsf3): Add support for VSX.
3703 (fred): Use TARGET_FRE.
3705 (rsqrtdf_internal1): New function for frsqrte instruciton.
3707 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3710 2010-06-03 Richard Guenther <rguenther@suse.de>
3713 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3714 (set_user_assembler_libfunc): Likewise.
3716 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3718 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3720 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3722 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3723 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3724 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3725 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3726 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3727 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3728 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3729 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3730 * defaults.h: Updated for above mentioned changes.
3732 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3734 * c-common.c: Remove header include of tm_p.h.
3735 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3737 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3739 * tree.h (struct tree_decl_map): New type.
3740 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3741 (tree_decl_map_hash): New prototype.
3742 (debug_expr_for_decl, value_expr_for_decl): Change into
3743 tree_decl_map hashtab from tree_map.
3744 (init_ttree): Adjust initialization.
3745 (tree_decl_map_hash): New function.
3746 (decl_debug_expr_lookup, decl_debug_expr_insert,
3747 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3749 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3751 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3753 * configure: Regenerate.
3754 * config.in: Regenerate.
3756 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3757 (X86_64_EMULATION): Define.
3758 (TARGET_LD_EMULATION): Use them.
3760 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3761 (SPARC64_EMULATION): Define.
3762 (LINK_ARCH_SPEC): Use them.
3764 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3766 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3767 smallest_mode_for_size for computing the precision types of new
3768 graphite IVs. Do not call lang_hooks.types.type_for_size.
3770 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3772 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3774 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3776 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3779 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3780 return false instead.
3782 2010-06-02 Jan Hubicka <jh@suse.cz>
3785 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3786 create new cgraph node to check callee.
3788 2010-06-02 Richard Guenther <rguenther@suse.de>
3790 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3792 2010-06-02 Richard Guenther <rguenther@suse.de>
3794 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3795 (lto_wrapper_cleanup): ... this. Do not exit.
3796 (fatal): Adjust. Exit here.
3797 (fatal_perror): Likewise.
3798 (fatal_signal): New function.
3799 (main): Set up signal handlers to cleanup temporary files.
3800 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3802 2010-06-02 Richard Guenther <rguenther@suse.de>
3804 PR tree-optimization/44377
3805 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3807 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3809 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3810 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3811 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3812 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3814 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3816 2010-06-02 Jan Hubicka <jh@suse.cz>
3818 * bitmap.c (bitmap_descriptor): Add search_iter.
3819 (bitmap_find_bit): Increment it.
3820 (print_statistics): Print it.
3822 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3824 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3825 instead of gimple_build_call_vec. Delete unnecessary local variable.
3827 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3829 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3830 change from yesterday.
3832 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3834 * c-ada-spec.c: Clean up redundant includes.
3836 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3838 * gimplify.c: Do not include except.h and optabs.h.
3839 (gimplify_body): Do not initialize RTL profiling.
3840 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3841 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3842 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3843 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3846 * tree-pretty-print.h: Include pretty-print.h.
3847 * gimple-pretty-print.h: Include pretty-print.h.
3849 * tree-pretty-print.c: Do not include diagnostic.h.
3850 * tree-vrp.c: Likewise.
3851 * tree-tailcall.c: Likewise
3852 * tree-scalar-evolution.c: Likewise
3853 * tree-ssa-dse.c: Likewise
3854 * tree-chrec.c: Likewise
3855 * tree-ssa-sccvn.c: Likewise
3856 * tree-ssa-copyrename.c: Likewise
3857 * tree-nomudflap.c: Likewise
3858 * tree-call-cdce.c: Likewise
3859 * tree-stdarg.c: Likewise
3860 * tree-ssa-math-opts.c: Likewise
3861 * tree-nrv.c: Likewise
3862 * tree-ssa-sink.c: Likewise
3863 * tree-browser.c: Likewise
3864 * tree-ssa-loop-ivcanon.c: Likewise
3865 * tree-ssa-loop.c: Likewise
3866 * tree-parloops.c: Likewise
3867 * tree-ssa-address.c: Likewise
3868 * tree-ssa-ifcombine.c: Likewise
3869 * tree-if-conv.c: Likewise
3870 * tree-data-ref.c: Likewise
3871 * tree-affine.c: Likewise
3872 * tree-ssa-phiopt.c: Likewise
3873 * tree-ssa-coalesce.c: Likewise
3874 * tree-ssa-pre.c: Likewise
3875 * tree-ssa-live.c: Likewise
3876 * tree-predcom.c: Likewise
3877 * tree-ssa-forwprop.c: Likewise
3878 * tree-ssa-dce.c: Likewise
3879 * tree-ssa-ter.c: Likewise
3880 * tree-ssa-loop-prefetch.c: Likewise
3881 * tree-optimize.c: Likewise
3882 * tree-ssa-phiprop.c: Likewise
3883 * tree-object-size.c: Likewise
3884 * tree-outof-ssa.c: Likewise
3885 * tree-ssa-structalias.c: Likewise
3886 * tree-switch-conversion.c: Likewise
3887 * tree-ssa-reassoc.c: Likewise
3888 * tree-ssa-operands.c: Likewise
3889 * tree-vectorizer.c: Likewise
3890 * tree-vect-data-refs.c: Likewise
3891 * tree-vect-generic.c: Likewise
3892 * tree-vect-stmts.c: Likewise
3893 * tree-vect-patterns.c: Likewise
3894 * tree-vect-slp.c: Likewise
3895 * tree-vect-loop.c: Likewise
3896 * tree-ssa-loop-ivopts.c: Likewise
3897 * tree-ssa-loop-im.c: Likewise
3898 * tree-ssa-loop-niter.c: Likewise
3899 * tree-ssa-loop-unswitch.c: Likewise
3900 * tree-ssa-loop-manip.c: Likewise
3901 * tree-ssa-loop-ch.c: Likewise
3902 * tree-dump.c: Likewise
3903 * tree-complex.c: Likewise
3905 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3906 * tree-ssa-uninit.c: Likewise
3907 * tree-ssa-threadupdate.c: Likewise
3908 * tree-ssa-uncprop.c: Likewise
3909 * tree-ssa-ccp.c: Likewise
3910 * tree-ssa-dom.c: Likewise
3911 * tree-ssa-propagate.c: Likewise
3912 * tree-ssa-alias.c: Likewise
3913 * tree-dfa.c: Likewise
3914 * tree-cfgcleanup.c: Likewise
3915 * tree-sra.c: Likewise
3916 * tree-ssa-copy.c: Likewise
3917 * tree-ssa.c: Likewise
3918 * tree-profile.c: Likewise
3919 * tree-cfg.c: Likewise
3920 * tree-ssa-threadedge.c: Likewise
3921 * tree-vect-loop-manip.c: Likewise
3923 * tree-inline.c: Do not include diagnostic.h and expr.h.
3925 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3927 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3928 * tree-loop-distribution.c: Likewise.
3930 2010-06-01 Jan Hubicka <jh@suse.cz>
3932 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3934 2010-06-01 Jan Hubicka <jh@suse.cz>
3936 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3937 remove return value.
3938 (split_bbs_on_noreturn_calls) .... here.
3939 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3940 * tree-flow.h (fixup_noreturn_call): New.
3942 2010-06-01 Jan Hubicka <jh@suse.cz>
3944 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3946 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3948 * tree.h (build_nt_call_list): Delete.
3949 * tree.c (build_nt_call_list): Delete.
3951 2010-06-01 Jan Hubicka <jh@suse.cz>
3953 * fwprop.c: Make emit-rtl.h include last.
3954 * rtlanal.c: Include emit-rtl.h.
3955 * genautomata.c: Output emit-rtl include into insn-automata.c
3956 * df-scan.c: Include emit-rtl.h.
3957 * haifa-sched.c: Indlude emit-rtl.h.
3958 * mode-switching.c: Indlude emit-rtl.h.
3959 * graph.c: Indlude emit-rtl.h.
3960 * sel-sched.c: Include emit-rtl.h.
3961 * sel-sched-ir.c: Include emit-rtl.h.
3962 * ira-build.c: Include emit-rtl.h.
3963 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3964 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3966 (set_new_first_and_last_insn, get_last_insn_anywhere,
3967 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3968 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3969 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3970 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3971 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3972 Use accessor functions.
3973 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3974 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3975 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3976 mem_expr_equal_p): Move here from rtl.h.
3977 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3978 Move here from emit-rtl.c; make inline.
3979 * cfglayout.h: Include emit-rtl.h.
3980 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3981 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3982 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3983 mem_expr_equal_p, get_insns, set_first-insn,
3984 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3985 * reg-stack.c: Include emit-rtl.h.
3988 2010-06-01 Jan Hubicka <jh@suse.cz>
3990 * cgraph.h (tree_function_versioning): Update prototype.
3991 (cgraph_function_versioning): Update prototype.
3992 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3994 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3995 (cgraph_materialize_clone, save_inline_function_body): Update use of
3996 tree_function_versioning.
3997 * tree-inline.c (copy_bb): Look for previous copied block to link
3998 after; fix debug output.
3999 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4000 (copy_body): Likewise.
4001 (expand_call_inline): Update use of copy_body.
4002 (tree_function_versioning): Update use of copy body; accept
4003 blocks_to_copy and new_entry.
4005 2010-06-01 Jan Hubicka <jh@suse.cz>
4007 * gegenrtl.c: Remove unnecesary prototypes.
4009 (gendef): Produce static inline.
4011 (main): Do not decode parameters; generate header only.
4012 * Makefile.in (genrtl.c): Remove.
4014 2010-06-01 Jan Hubicka <jh@suse.cz>
4016 * tree-switch-conversion.c (build_one_array): Make it readonly.
4018 2010-06-01 Richard Guenther <rguenther@suse.de>
4020 * optabs.c (init_optabs): Guard all accesses to reinit.
4021 * ipa-pure-const.c (propagate): Fix another typo.
4022 * opts.c (common_handle_option): Split assignment to bool.
4023 * c-opts.c (c_common_handle_option): Likewise.
4025 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4026 Matthew Gingell <gingell@adacore.com>
4028 * doc/invoke.texi: Mention -fdump-ada-spec.
4029 * tree-dump.c (dump_files): Add ada-spec.
4030 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4031 * tree-pass.h (tree_dump_index): Add TDI_ada.
4032 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4033 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4034 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4035 * c-decl.c: Include c-ada-spec.h.
4036 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4038 (c_write_global_declarations): Add handling of -fdump-ada-spec.
4039 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4040 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4041 * c-ada-spec.h, c-ada-spec.c: New files.
4043 2010-06-01 Richard Guenther <rguenther@suse.de>
4046 * ipa-pure-const.c (get_function_state): Hand back varying state
4047 if we do not have one.
4048 (has_function_state): New function.
4049 (duplicate_node_data): Adjust.
4050 (remove_node_data): Likewise.
4051 (pure_const_write_summary): Likewise.
4052 (propagate): Likewise. Fix typo.
4054 2010-06-01 Jan Hubicka <jh@suse.cz>
4056 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4057 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4058 (execute_all_ipa_transforms): Do not play with the states.
4060 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4062 * config/arm/t-linux-androideabi: New.
4063 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4065 2010-06-01 Jan Hubicka <jh@suse.cz>
4067 * tree-inline.c (estimate_num_insns): For stdarg functions look
4068 into call statement to count cost of argument passing.
4070 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4072 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4073 argument for fprintf.
4074 (ix86_output_addr_diff_elt): Likewise.
4075 (x86_function_profiler): Likewise.
4076 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4077 (LPREFIX): Likewise.
4078 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4080 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4083 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4084 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4085 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4086 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4087 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4088 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4089 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4090 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4093 2010-05-31 Jan Hubicka <jh@suse.cz>
4095 * tree.h (tree_range_check_failed): Declare noreturn.
4097 2010-05-31 Jan Hubicka <jh@suse.cz>
4099 * gimple.c (gimple_call_builtin_p): New function.
4100 * gimple.h (gimple_call_builtin_p): Declare.
4101 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4103 (execute_warn_function_return): BUILT_IN_RETURN is return.
4104 (split_critical_edges): Return edges are not critical.
4105 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4106 (gimple_verify_flow_info): Handle built_in_return.
4107 (execute_warn_function_return): Handle built_in_return.
4108 * ipa-pure-const.c (check_call): Ignore builtin_return.
4110 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4113 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4114 array accesses with non-MEM.
4116 PR tree-optimization/44182
4117 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4118 newly needs to end a bb is followed by debug stmts, instead return
4119 true from the function at the end.
4120 (maybe_move_debug_stmts_to_successors): New function.
4121 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4123 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4126 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4128 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4130 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4131 for nested functions in non-optimized compilation.
4133 2010-05-31 Richard Guenther <rguenther@suse.de>
4135 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4137 2010-05-30 Jan Hubicka <jh@suse.cz>
4139 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4141 2010-05-30 Richard Guenther <rguenther@suse.de>
4144 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4145 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4148 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4150 * config/darwin.c (output_objc_section_asm_op): Add comment.
4151 (name_needs_quotes): Add '_' to list of valid comment chars.
4152 (machopic_output_function_base_name): Remove unneeded quotes.
4153 (darwin_encode_section_info): Adjust asm whitespace.
4154 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4155 (ASM_OUTPUT_LOCAL): Ditto.
4156 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4157 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4158 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4160 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4162 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4163 RS6000_OUTPUT_BASENAME unconditionally.
4164 (rs6000_output_function_epilogue): Likewise.
4166 2010-05-30 Jan Hubicka <jh@suse.cz>
4168 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4171 2010-05-30 Richard Guenther <rguenther@suse.de>
4173 * tree-cfg.c (verify_gimple_assign_single): Implement
4174 verification for COND_EXPR rhs.
4176 2010-05-30 Jan Hubicka <jh@suse.cz>
4178 * cgraph.h (cgraph_dump_file): Declare.
4179 * cgraphunit.c (cgraph_dump_file): Export.
4180 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4182 2010-05-30 Jan Hubicka <jh@suse.cz>
4184 * dwarf2out.c (reference_to_unused,
4185 premark_types_used_by_global_vars_helper): Avoid creation of new
4188 2010-05-30 Jan Hubicka <jh@suse.cz>
4190 * cgraph.h (cgraph_node_cannot_return,
4191 cgraph_edge_cannot_lead_to_return): New functions.
4192 * cgraph.c (cgraph_node_cannot_return,
4193 cgraph_edge_cannot_lead_to_return): Use them.
4194 * ipa-pure-const.c (pure_const_names): New static var.
4195 (check_call): Handle calls not leading to return.
4196 (pure_const_read_summary): Dump info read.
4197 (propagate): Dump info about propagation process; ignore side effects
4198 of functions not leading to exit; fix handling of pure functions.
4200 2010-05-30 Jan Hubicka <jh@suse.cz>
4202 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4203 for tail call epilogues.
4205 2010-05-30 Jan Hubicka <jh@suse.cz>
4207 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4208 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4211 2010-05-29 Jan Hubicka <jh@suse.cz>
4213 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4214 node; remove references in node we no longer keep in cgrpah but need
4217 2010-05-29 Jan Hubicka <jh@suse.cz>
4219 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4221 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4224 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4226 2010-05-29 Jan Hubicka <jh@suse.cz>
4228 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4229 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4230 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4231 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4232 debug_names_replaced_by, debug_update_ssa): Likewise.
4233 * sbitmap.c (debug_sbitmap): Likewise.
4234 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4235 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4236 debug_tree_chain): Likewise.
4237 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4238 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4239 * optabs.c (debug_optab_libfuncs): Likewise.
4240 (verify_loop_closed_ssa): Likewise.
4241 * value-prof.c (verify_histograms): Likewise.
4242 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4243 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4244 * cfghooks.c (verify_flow_info): Likewise.
4245 * fold-const.c (debug_fold_checksum): Likewise.
4246 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4247 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4249 * omega.c (debug_omega_problem): Likewise.
4250 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4251 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4252 * dominance.c (verify_dominators, debug_dominance_info,
4253 debug_dominance_tree): Likewise.
4254 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4255 * df_regno_debug, df_ref_debug,
4256 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4257 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4258 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4259 * sel-sched.c (debug_state): Likewise.
4260 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4262 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4263 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4264 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4265 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4267 * c-pretty-print.c (debug_c_tree): Likewise.
4268 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4269 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4270 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4271 * ebitmap.c (debug_ebitmap): Likewise.
4272 * function.c (debug_find_var_in_block_tree): Likewise.
4273 * print-rtl.c (debug_rtx): Likewise.
4274 (debug_rtx_count): Likewise.
4275 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4276 * stor-layout.c (debug_rli): Likewise.
4277 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4278 * tree-data-ref.c (debug_data_references,
4279 debug_data_dependence_relations, debug_data_reference,
4280 debug_data_dependence_relation, debug_rdg_vertex,
4281 debug_rdg_component, debug_rdg): Likewise.
4282 * tree-affine.c (debug_aff): Likewise.
4283 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4285 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4286 * emit-rtl.c (verify_rtl_sharing): Likewise.
4287 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4288 debug_value_expressions): Likewise.
4289 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4290 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4291 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4292 * cfglayout.c (verify_insn_chain): Likewise.
4293 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4294 debug_clast_stmt, debug_generated_program): Likewise.
4295 * ggc-page.c (debug_print_page_list): Likewise.
4296 * tree-ssa-ter.c (debug_ter): Likewise.
4297 * graphite-dependences.c (debug_pddr): Likewise.
4298 * sched-deps.c (debug_ds): Likewise.
4299 * tree-ssa.c (verify_ssa): Likewise.
4300 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4301 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4302 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4303 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4304 * tree-inline.c (debug_find_tree): Likewise.
4305 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4306 debug_ppl_powerset_matrix): Likewise.
4307 * var-tracking.c (debug_dv): Likewise.
4308 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4309 * cfgloop.c (verify_loop_structure): Likewise.
4310 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4311 * c-common.c (verify_sequence_points): Likewise.
4312 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4313 debug_candidates, debug_rgn_dependencies): Likewise.
4314 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4315 * debug_constraint_graph, debug_solution_for_var,
4316 debug_sa_points_to_info): Likewise.
4317 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4319 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4320 debug_loops, debug_loop, debug_loop_num): Likewise.
4321 * passes.c (debug_pass): Likewise.
4322 (dump_properties): Likewise; add cfglayout property.
4323 (debug_properties): Likewise.
4324 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4325 * varpool.c (debug_varpool): Likewise.
4326 * regcprop.c (debug_value_data): Likewise.
4327 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4328 debug_immediate_uses_for): Likewise.
4330 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4333 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4334 Filter out insn-flags.h.
4336 2010-05-29 Jan Hubicka <jh@suse.cz>
4338 * cgraph.h (struct varpool_node_set_def,
4339 struct cgraph_node_set_def): Remove unused AUX pointer.
4340 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4343 2010-05-29 Jan Hubicka <jh@suse.cz>
4346 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4348 2010-05-29 Richard Guenther <rguenther@suse.de>
4350 * lto-streamer.c (cached_bp): New global variable.
4351 (bitpack_create): Return the cached bitpack, if available.
4352 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4353 (bp_pack_value): Remove redundant asserts.
4355 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4358 * tree-if-conv.c (is_true_predicate): New.
4359 (is_predicated): Use is_true_predicate.
4360 (add_to_predicate_list): Same. Do not use unshare_expr.
4361 (add_to_dst_predicate_list): Same.
4363 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4365 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4367 (predicate_bbs): Same.
4368 (clean_predicate_lists): Same.
4369 (find_phi_replacement_condition): Do not AND the predicate from
4372 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4375 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4377 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4380 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4381 (negdf2): Adjust expander pattern and use negdf2_slow.
4384 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4386 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4388 * df.h (struct df_base_ref): Move regno field up.
4389 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4390 * expr.h (struct separate_ops): Move location field up.
4391 * optabs.h (struct optab_d): Move libcall_basename field down.
4392 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4393 * config/i386/i386.h (struct machine_function): Convert call_abi field
4394 into a bitfield. Move cfa field to the end of the structure.
4396 2010-05-29 Jan Hubicka <jh@suse.cz>
4398 * varpool.c (varpool_get_node): Fix lookup.
4400 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4402 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4403 RTL specific prototypes with #ifdef RTX_CODE.
4404 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4405 * config/spu/t-spu-elf: Fix dependencies.
4407 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4409 2010-05-29 Mike Stump <mikestump@comcast.net>
4412 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4413 TM_H when building to avoid dependency loops.
4415 2010-05-29 Jan Hubicka <jh@suse.cz>
4417 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4418 refs and body; not the whole node for masters of materialized clones.
4420 2010-05-29 Mike Stump <mikestump@comcast.net>
4422 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4424 2010-05-29 Jan Hubicka <jh@suse.cz>
4426 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4427 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4428 use of clone_function_name.
4429 * cgraph.h (cgraph_create_virtual_clone,
4430 cgraph_function_versioning): update prototypes.
4431 (clone_function_name): Declare.
4432 * ipa-cp.c (ipcp_insert_stage): Update call of
4433 cgraph_create_virtual_clone.
4434 * omp-low.c (create_omp_child_function_name): Use
4435 cgraph_create_virtual_clone.
4436 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4437 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4438 and make decl local.
4440 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4442 * vec.h: Include statistics.h
4443 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4446 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4448 * c-lex.c: Do not include c-tree.h.
4449 * c-pretty-print.c: Likewise.
4450 * c-opts.c: Likewise.
4451 * c-gimplify.c: Likewise.
4452 * c-common.c: Likewise.
4453 * c-dump.c: Likewise. Include c-common.h.
4455 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4457 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4458 before including diagnostic-core.h.
4459 (c_cpp_error): New prototype moved from c-tree.h.
4460 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4461 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4462 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4463 (c_cpp_error): Prototype moved to c-common.h.
4464 * Makefile.in: Update dependency for C_COMMON_H.
4466 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4468 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4469 * c-common.c (c_register_addr_space): Remove here.
4470 * c-decl.c (c_register_addr_space): Re-add here.
4472 2010-05-28 Mike Stump <mikestump@comcast.net>
4474 * config/darwin-c.c: Remove c-tree.h include.
4476 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4478 * gcc.c: Include diagnostic.h.
4479 (error_count): Remove. All users changed to use errorcount.
4480 (programname): Remove. All users changed to use progname.
4481 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4483 (execute): Don't include "Internal error" and bug reporting
4484 information in argument of internal_error call.
4485 (process_command): Don't increment error_count after calling
4487 (input_filename): Rename to gcc_input_filename. All users
4489 (main): Call diagnostic_initialize. Register delete_temp_files
4490 with atexit. Use seen_error to test for errors.
4491 * gcc.h: Include diagnostic-core.h.
4492 (fatal_error, error, warning): Remove.
4493 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4494 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4495 (gcc.o): Update dependencies.
4497 2010-05-28 Jeff Law <law@redhat.com>
4499 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4501 * ira.h (ira_bad_reload_regno): Declare
4502 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4504 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4505 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4506 (allocno_reload_assign): Likewise.
4508 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4510 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4513 2010-05-28 Richard Guenther <rguenther@suse.de>
4516 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4517 Stream fixed-point constants mode.
4518 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4520 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4521 Stream fixed-point constants mode.
4522 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4525 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4527 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4528 only place it was called from.
4529 (number_of_latch_executions): Do not return chrec_dont_know when the
4530 may_be_zero is a runtime condition: instead, return a COND_EXPR
4531 including the may_be_zero condition.
4532 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4534 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4537 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4539 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4540 generate COND_EXPRs for degenerate_phi_result.
4542 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4545 * tree-if-conv.c (if_convertible_loop_p): Check the
4546 if-convertibility of phi nodes in non predicated BBs.
4548 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4550 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4552 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4555 * gcc.c (inform, warning, inform): New functions.
4556 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4557 gmsgid. All callers changed.
4558 (notice): Rename to fnotice; add parameter fp. All callers changed.
4559 (fatal_error): Rename to fatal_signal. All users changed.
4560 (fatal): Rename to fatal_error; change cmsgid parameter to
4561 gmsgid. All callers changed.
4562 (process_command): Use warning instead of error for warnings.
4563 (end_going_arg): Don't use _() around argument of error.
4564 (do_spec_1): Use inform for message from %n specs. Use warning
4565 instead of error for warnings.
4566 (main): Use inform for comparison messages. Use warning for
4567 message about unused linker input.
4568 (error): Increment error_count. Print "error: ".
4569 * gcc.h (fatal): Change to fatal_error.
4571 * config/darwin-driver.c (darwin_default_min_version): Use warning
4572 instead of fprintf for warnings.
4573 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4575 2010-05-28 Julian Brown <julian@codesourcery.com>
4577 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4578 (*thumb2_addsi3_compare0_scratch): New.
4579 * config/arm/constraints.md (Pv): New.
4580 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4582 (*addsi3_compare0_scratch): Likewise.
4584 2010-05-28 Jan Hubicka <jh@suse.cz>
4586 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4588 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4589 only on local statics.
4591 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4593 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4595 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4598 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4599 (OPTION_GLIBC): Define.
4601 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4604 * dwarf2out.c (double_int_type_size_in_bits): New function.
4605 (round_up_to_align): Change first argument and return value to
4607 (field_byte_offset): Work internally on double_ints.
4610 * builtins.c (expand_movstr): Use a temporary pseudo instead
4611 of target even when target is not NULL and not const0_rtx, but
4612 fails movstr predicate.
4613 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4615 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4617 * final.c (rest_of_clean_state): Use %m in errors instead of
4619 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4620 instead of strerror.
4621 * toplev.c (process_options): Use %m in errors instead of strerror
4623 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4626 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4628 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4629 (ix86_canonical_va_list_type): Make static. Add declaration.
4630 (ix86_enum_va_list): Make static. Reindent.
4631 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4632 (ix86_canonical_va_list_type): Ditto.
4633 (ix86_enum_va_list): Ditto.
4635 2010-05-28 Richard Guenther <rguenther@suse.de>
4637 * lto-wrapper.c (run_gcc): With -save-temps generate a
4638 user-visible ltrans filename. Fixup ltrans unit numbering.
4640 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4642 * c-common.c (c_common_nodes_and_builtins): Replace use
4643 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4644 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4645 to ix86_enum_va_list.
4646 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4647 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4648 (TARGET_ENUM_VA_LIST_P): Add hook description.
4649 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4650 * target.h (gcc_target): Add enum_va_list hook.
4653 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4654 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4655 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4657 2010-05-28 Alan Modra <amodra@gmail.com>
4660 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4661 emit_library_call machinery to set up __tls_get_addr calls.
4663 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4665 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4667 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4669 Revert fix for PR c++/44188
4670 * c-common.c (is_typedef_decl): Revert the moving of this
4672 * tree.c (is_typedef_decl): ... here.
4673 (typdef_variant_p): Revert the moving of this definition
4674 here from gcc/cp/tree.c.
4675 * c-common.h (is_typedef_decl): Revert the moving of this
4677 * tree.h (is_typedef_decl): ... here.
4678 (typedef_variant_p): Revert the moving of this declaration here
4679 from gcc/cp/cp-tree.h
4680 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4681 (gen_tagged_type_die): Revert the splitting out of ...
4682 (gen_type_die_with_usage): ... this function. Revert the anonymous
4683 tagged type handling.
4684 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4685 typedefs naming anonymous tagged types.
4687 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4689 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4691 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4693 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4694 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4696 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4698 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4699 XER_REGS to CA_REGS throughout.
4700 * config/rs6000/rs6000.h: Same.
4701 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4702 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4703 that mode_iterator "P" is the size for arithmetic carries as well.
4704 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4706 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4709 * combine.c (struct rtx_subst_pair): Define unconditionally.
4710 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4711 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4712 Call make_compound_operation on pair->to.
4713 (propagate_for_debug): Don't call make_compound_operation here.
4714 Always use simplify_replace_fn_rtx.
4716 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4718 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4719 * config/xtensa/xtensa.c (override_options): Check
4720 TARGET_FORCE_NO_PIC and set flag_pic.
4721 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4723 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4726 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4727 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4729 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4731 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4733 * diagnostic.c: Don't include toplev.h.
4734 (progname): Define. Moved from toplev.c.
4735 (seen_error): New function.
4736 * diagnostic.h: Include diagnostic-core.h.
4737 (diagnostic_t, emit_diagnostic): Don't declare here.
4738 * toplev.c (progname): Move to toplev.c.
4739 (emit_debug_global_declarations, compile_file, finalize,
4740 do_compile, toplev_main): Use seen_error.
4741 * toplev.h: Include diagnostic-core.h.
4742 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4743 internal_error, warning, warning_at, error, error_n, error_at,
4744 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4745 verbatim, fnotice, progname): Move to diagnostic-core.h.
4746 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4747 (expand_builtin_expect): Use seen_error.
4748 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4749 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4750 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4751 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4752 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4753 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4754 errorcount for errors.
4755 * c-opts.c (c_common_finish): Use seen_error.
4756 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4757 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4758 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4759 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4760 (get_coverage_counts): Use seen_error.
4761 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4762 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4763 gimplify_body): Use seen_error.
4764 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4765 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4766 * ipa-reference.c (gate_reference): Use seen_error.
4767 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4768 * lambda-code.c: Include diagnostic-core.h instead of
4770 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4771 * lto-compress.c: Include diagnostic-core.h instead of
4773 * lto-section-in.c: Include diagnostic-core.h instead of
4775 * lto-streamer-out.c: Include diagnostic-core.h instead of
4777 * lto-streamer.c: Include diagnostic-core.h instead of
4779 (gate_lto_out): Use seen_error.
4780 * matrix-reorg.c: Include diagnostic-core.h instead of
4782 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4783 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4784 (gate_expand_omp, lower_omp_1): Use seen_error.
4785 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4786 (rest_of_decl_compilation, rest_of_type_compilation,
4787 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4788 * tree-cfg.c (label_to_block_fn): Use seen_error.
4789 * tree-inline.c (optimize_inline_calls): Use seen_error.
4790 * tree-mudflap.c (mudflap_finish_file): Use
4792 * tree-optimize.c (gate_all_optimizations,
4793 gate_all_early_local_passes, gate_all_early_optimizations): Use
4795 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4796 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4797 (varpool_remove_unreferenced_decls,
4798 varpool_assemble_pending_decls): Use seen_error.
4799 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4800 (TOPLEV_H, DIAGNOSTIC_H): Update.
4801 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4802 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4803 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4804 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4805 coverage.o, lambda-code.o): Update dependencies.
4807 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4810 * c-common.c (is_typedef_decl): Move this definition ...
4811 * tree.c (is_typedef_decl): ... here.
4812 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4813 * c-common.h (is_typedef_decl): Move this declaration ...
4814 * tree.h (is_typedef_decl): ... here.
4815 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4816 * dwarf2out.c (is_naming_typedef_decl): New function.
4817 (gen_tagged_type_die): Split out of ...
4818 (gen_type_die_with_usage): ... this function. When an anonymous
4819 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4820 is emitted for the typedef.
4821 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4822 anonymous tagged types.
4824 2010-05-27 Jason Merrill <jason@redhat.com>
4826 * print-tree.c (debug_vec_tree): New fn.
4827 (print_vec_tree): New fn.
4828 * tree.h: Declare them.
4829 * gdbinit.in (pvt): New command.
4831 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4833 * gdbinit.in (pdd): New command.
4835 2010-05-27 Jan Hubicka <jh@suse.cz>
4837 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4838 (update_caller_keys): Return early if there are no callers;
4839 only update fibheap when decresing the key.
4840 (update_callee_keys): Avoid recursion.
4841 (decide_inlining_of_small_functions): When badness does not match;
4842 re-insert into fibheap.
4844 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4846 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4847 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4848 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4849 (ALL_HOST_OBJS): Now a union of the above two.
4850 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4851 all files in ALL_HOST_FRONTEND_OBJS.
4852 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4854 * c-common.c: Pretend to be a backend file by undefining
4855 IN_GCC_FRONTEND (still need rtl.h here).
4857 2010-05-27 Jan Hubicka <jh@suse.cz>
4859 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4860 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4862 2010-05-27 Jan Hubicka <jh@suse.cz>
4864 * sched-ebb.c: Rename struct deps to struct deps_desc.
4866 * sel-sched-ir.c: Likewise.
4867 * sched-deps.c: Likewise.
4868 * sched-int.h: Likewise.
4869 * sched-rgn.c: Likewise.
4871 2010-05-27 Jon Beniston <jon@beniston.com>
4874 * config/lm32/lm32.h: Remove definition of
4875 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4877 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4880 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4882 2010-05-27 Richard Guenther <rguenther@suse.de>
4884 PR tree-optimization/44284
4885 * tree-vect-stmts.c (vectorizable_assignment): Handle
4886 sign-changing conversions as simple copy.
4888 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4890 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4892 (__gthread_active_p): Check for pthread_create if compiling against
4895 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4897 Support compilation for Android platform. Reimplement -mandroid.
4899 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4900 (*android*): Set ANDROID_DEFAULT.
4901 (arm*-*-linux*): Include linux-android.h.
4902 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4903 * config/arm/eabi.h: Remove, move Android-specific parts ...
4904 * config/linux-android.h: ... here. New file.
4905 * config/arm/eabi.opt: Rename to ...
4906 * config/linux-android.opt: ... this.
4907 (mandroid): Allow -mno-android option. Initialize based on
4909 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4910 Move logic to corresponding LINUX_TARGET_* macros.
4911 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4912 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4913 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4914 Android definitions.
4915 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4916 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4919 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4921 Add support for Bionic C library
4923 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4925 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4926 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4928 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4929 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4930 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4931 to support multiple C libraries. Handle Bionic.
4932 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4933 (BIONIC_DYNAMIC_LINKER64): Define.
4934 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4936 (TARGET_HAS_SINCOS): Enable for Bionic.
4938 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4939 the last option specified on command line take effect.
4940 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4942 (mglibc, muclibc): Update.
4944 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4945 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4948 * doc/invoke.texi (-mglibc, -muclibc): Update.
4949 (-mbionic): Document.
4951 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4953 * c-common.h (c_register_addr_space): Add prototype.
4954 (ADDR_SPACE_KEYWORD): Remove.
4955 * c-common.c (c_register_addr_space): New function.
4956 (c_addr_space_name): Reimplement.
4957 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4959 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4960 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4962 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4963 Remove TARGET_ADDR_SPACE_KEYWORDS.
4965 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4967 * input.c: New file.
4968 * input.h (main_input_filename): Move declaration to toplev.h.
4969 * toplev.c (input_location, line_table): Move to input.c
4970 * toplev.h (main_input_filename): Move declaration from input.h.
4971 * tree.c (expand_location): Move to input.c.
4972 * Makefile.in (OBJS-common): Add input.o.
4973 (input.o): Add dependencies.
4975 2010-05-27 Richard Guenther <rguenther@suse.de>
4977 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4978 for non-existant files.
4979 (fork_execute): Mark args_name file as deleted.
4981 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4984 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4985 (narrow_signed_type): Likewise.
4987 2010-05-26 Jan Hubicka <jh@suse.cz>
4989 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4990 edge only when checking is enabled; check using former_clone_of;
4991 check inline clones too.
4992 (cgraph_materialize_clone): Record former_clone_of pointer.
4993 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4994 combining redirections; dump args_to_skip bitmap
4995 (cgraph_materialize_all_clones): Do no redirection here.
4996 * ipa-inline.c (inline_transform): Do redirection here.
4997 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5000 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5002 * config/avr/avr-c.c: Do not include regs.h.
5003 Include cpplib.h for cpp_define and tree.h for c-common.h.
5004 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5005 * config/avr/t-avr: Fix dependencies for avr-c.o.
5007 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5009 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5010 string instead of SYMBOL_REF rtx.
5011 * rtl.h (set_stack_check_libfunc): Move prototype from here...
5012 * libfuncs.h: ...to here. Adjust for explow.c change.
5014 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5016 * pretty-print.c: Don't include ggc.h.
5017 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5018 (identifier_to_locale): Use them for allocation.
5019 * pretty-print.h (identifier_to_locale_alloc,
5020 identifier_to_locale_free): Declare.
5021 * toplev.c (alloc_for_identifier_to_locale): New.
5022 (general_init): Set identifier_to_locale_alloc and
5023 identifier_to_locale_free.
5024 * Makefile.in (pretty-print.o): Update dependencies.
5026 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5028 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5029 pointer types if they have different alignment or mode.
5031 2010-05-26 Anatoly Sokolov <aesok@post.ru>
5033 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5034 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5035 * config/sparc/sparc-protos.h (function_value): Remove declaration.
5036 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5037 sparc_function_value_regno_p): New functions.
5038 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5039 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5040 (function_value): Rename to...
5041 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5042 argument to 'outgoing'.
5043 (function_arg_record_value, function_arg_union_value,
5044 function_arg_vector_value): Update comment.
5046 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5048 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5049 (fde_needed_for_eh_p): New predicate.
5050 (output_call_frame_info): Use it throughout to decide whether FDEs
5051 are needed for EH purpose.
5052 (dwarf2out_begin_prologue): Reorder assignments.
5054 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5056 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5057 special case loop->header.
5058 (is_predicated): New.
5059 (if_convertible_loop_p): Call it.
5061 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5063 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5064 iterator in parameter. Do not generate code during the analysis.
5065 (tree_if_convert_cond_stmt): Removed.
5066 (tree_if_convert_stmt): Removed.
5067 (predicate_bbs): New.
5068 (if_convertible_loop_p): Call predicate_bbs.
5069 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5070 now contains all the analysis part.
5072 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5074 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5075 statements in the analysis part.
5076 (tree_if_convert_stmt): Update comment.
5077 (remove_conditions_and_labels): New.
5078 (combine_blocks): Call remove_conditions_and_labels.
5079 (tree_if_conversion): Update comment.
5081 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5083 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5084 than 2 predecessors or more than 2 successors.
5086 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5088 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5089 of loops in which the data dependence analysis fails.
5091 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5093 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5094 CDI_POST_DOMINATORS.
5095 (tree_if_conversion): Same.
5097 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5099 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5101 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5103 * tree-if-conv.c: Update copyright years. Fix comments.
5106 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5108 * builtin-types.def (BT_INT128): New primitive type.
5109 (BT_UINT128): Likewise.
5110 * c-common.c (c_common_r): Add __int128 keyword.
5111 (c_common_type_for_size): Handle __int128.
5112 (c_common_type_for_mode): Likewise.
5113 (c_common_signed_or_unsigned_type): Likewise.
5114 (c_common_nodes_and_builtins): Add builtin type
5115 if target supports 128-bit integer scalar.
5116 * c-common.h (enum rid): Add RID_INT128.
5117 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5118 if target supports 128-bit integer scalar.
5119 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5120 (finish_declspecs): Likewise.
5121 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5122 (c_token_starts_declspecs): Likewise.
5123 (c_parser_declspecs): Likewise.
5124 (c_parser_attributes): Likewise.
5125 (c_parser_objc_selector): Likewise.
5126 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5127 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5128 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5129 * tree.c (make_or_reuse_type): Likewise.
5130 (make_unsigned_type): Likewise.
5131 (build_common_tree_nodes_2): Likewise.
5132 * tree.h (enum integer_type_kind): Add itk_int128 and
5133 itk_unsigned_int128.
5134 (int128_integer_type_node): New define.
5135 (int128_unsigned_type_node): New define.
5136 * doc/extend.texi: Add documentation about __int128 type.
5138 2010-05-26 Richard Guenther <rguenther@suse.de>
5140 * tree-ssa-sccvn.c (copy_nary): Adjust.
5141 (copy_phis): Rename to ...
5142 (copy_phi): ... this. Adjust.
5143 (copy_references): Rename to ...
5144 (copy_reference): ... this. Adjust.
5145 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5146 result into the valid table.
5148 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5150 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5151 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5153 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5155 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5157 2010-05-26 Richard Guenther <rguenther@suse.de>
5159 * opts.c (common_handle_option): Handle OPT_Ofast.
5161 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5163 * diagnostic.c: Don't include opts.h.
5164 (permissive_error_option): Define.
5165 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5166 for classify_diagnostic. Don't use memset for
5167 classify_diagnostic. Initialize new and recently added fields.
5168 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5170 (diagnostic_report_diagnostic): Pass context parameter to
5171 diagnostic_report_warnings_p. Use option_enabled and option_name
5173 (emit_diagnostic): Use permissive_error_option.
5174 (permerror): Likewise.
5175 * diagnostic.h: Don't include options.h.
5176 (struct diagnostic_context): Add n_opts, opt_permissive,
5177 inhibit_warnings, warn_system_headers, option_enabled and
5178 option_name fields. Change classify_diagnostic to a pointer.
5179 * opts-diagnostic.h: New file.
5180 * opts.c: Include opts-diagnostic.h.
5181 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5182 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5183 (option_name): New function.
5184 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5185 (c_common_handle_option): Set global_dc->permissive for
5187 * c-common.c (c_cpp_error): Save and restore
5188 global_dc->warn_system_headers, not variable warn_system_headers.
5189 * toplev.c: Include opts-diagnostic.h.
5190 (general_init): Update call to diagnostic_initialize. Set
5191 global_dc->show_column, global_dc->option_enabled and
5192 global_dc->option_name.
5193 (process_options): Don't set global_dc fields here.
5194 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5195 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5197 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5199 * config/picochip/picochip.md (movsi): Split a movsi from a
5202 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5204 * ggc-zone.c: Update copyright year.
5205 (poison_region): Mark memory for Valgrind as undefined before
5206 memset () call and inaccessible afterwards.
5207 (ggc_pch_total_size): Change type of i to int.
5209 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5211 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5213 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5215 * ggc-common.c: Update copyright year.
5216 (ggc_rlimit_bound): Remove prototype. Compile only if
5217 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5218 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5219 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5220 (ggc_min_heapsize_heuristic): Likewise.
5222 2010-05-26 Richard Guenther <rguenther@suse.de>
5224 PR rtl-optimization/44164
5225 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5226 no-common access-path disambiguation.
5227 (indirect_ref_may_alias_decl_p): Adjust.
5228 (indirect_refs_may_alias_p): Likewise.
5229 (refs_may_alias_p_1): Likewise.
5231 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5233 * c-typeck.c: Do not include expr.h.
5235 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5237 * rtl.h (decl_default_tls_model): Move prototype from here...
5238 * output.h: ...to here.
5239 * c-decl.c: Do not include rtl.h.
5240 * c-pragma.c: Likewise.
5241 * c-parser.c: Likewise.
5242 * c-gimplify.c: Likewise. And also not hard-reg-set.
5243 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5244 FIXME note for it. Add a FIXME note for expr.h.
5245 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5246 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5249 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5252 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5253 or total_size is larger than red zone size for non-V4 ABI, emit a
5254 stack_tie resp. frame_tie insn before stack pointer restore.
5255 * config/rs6000/rs6000.md (frame_tie): New insn.
5257 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5259 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5260 * lto-streamer-in.c (input_function): Stream it in.
5261 * lto-streamer-out.c (output_function): Stream it out.
5262 * function.c (allocate_struct_function): Set it.
5263 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5264 for flag_non_call_exceptions.
5265 * cfgbuild.c (control_flow_insn_p): Likewise.
5266 (make_edges): Likewise.
5267 * cfgexpand.c (expand_stack_alignment): Likewise.
5268 * combine.c (distribute_notes): Likewise.
5269 * cse.c (cse_extended_basic_block): Likewise.
5270 * except.c (insn_could_throw_p): Likewise.
5271 * gcse.c (simple_mem): Likewise.
5272 * ipa-pure-const.c (check_call): Likewise.
5273 (check_stmt ): Likewise.
5274 * lower-subreg.c (lower-subreg.c): Likewise.
5275 * optabs.c (emit_libcall_block): Likewise.
5276 (prepare_cmp_insn): Likewise.
5277 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5278 * postreload.c (rest_of_handle_postreload): Likewise.
5279 * reload1.c (reload_as_needed): Likewise.
5280 (emit_input_reload_insns): Likewise.
5281 (emit_output_reload_insns): Likewise.
5282 (fixup_abnormal_edges): Likewise.
5283 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5284 * store-motion.c (find_moveable_store): Likewise.
5285 * tree-eh.c (stmt_could_throw_p): Likewise.
5286 (tree_could_throw_p): Likewise.
5287 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5288 * config/arm/arm.c (arm_expand_prologue): Likewise.
5289 (thumb1_expand_prologue): Likewise.
5290 * config/rx/rx.md (cbranchsf4): Likewise.
5292 * config/s390/s390.c (s390_emit_prologue): Likewise.
5293 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5294 (inline_forbidden_into_p): New predicate.
5295 (expand_call_inline): Use it to forbid inlining.
5296 (tree_can_inline_p): Likewise.
5298 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5300 * config/i386/i386-c.c: Do not include rtl.h.
5301 * config/i386/t-i386: Update dependencies.
5303 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5305 * attribs.c: Do not include rtl.h.
5306 * Makefile.in: Update dependencies.
5308 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5310 * double-int.h (double_int_and): New.
5311 * combine.c (try_combine): Clean up, use double_int_* and
5312 immed_double_int_const functions.
5314 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5316 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5317 stderr to /dev/null instead of grep -q.
5318 * configure: Regenerate.
5320 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5322 * Makefile.in (EXCEPT_H): Fix typo.
5324 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5326 * ira-build.c (update_conflict_hard_reg_costs): New.
5327 (ira_build): Call update_conflict_hard_reg_costs.
5329 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5332 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5334 (intersect_loc_chains): Walk the s2var's loc_chain together
5335 with s1node chain as long as the locations are equal, don't
5336 call find_loc_in_1pdv in that case.
5339 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5340 (copy_bind_expr): ... instead of here.
5341 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5342 if the block hasn't been remapped.
5343 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5344 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5346 2010-05-25 Richard Guenther <rguenther@suse.de>
5349 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5350 out-of-bounds array accesses.
5352 2010-05-25 Richard Guenther <rguenther@suse.de>
5354 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5355 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5356 (run_gcc): Re-organize to make cleanup easier.
5358 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5360 * config/s390/s390.c (optimization_options): Fix and move the
5361 flag_prefetch_loop_arrays override ...
5362 (override_options): ... here.
5364 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5366 * diagnostic.c: Don't include plugin.h.
5367 (diagnostic_report_diagnostic): Don't handle plugins specially
5368 here. Pass context to internal_error callback.
5369 * diagnostic.h (struct diagnostic_context): Add context parameter
5370 to internal_error callback.
5371 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5372 * plugin.h (struct diagnostic_context): Declare.
5373 (warn_if_plugins, plugins_internal_error_function): Declare.
5374 * toplev.c (general_init): Set global_dc->internal_error.
5375 * Makefile.in (diagnostic.o): Update dependencies.
5377 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5379 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5380 * config/rs6000/t-darwin64: New.
5381 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5384 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5387 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5388 match the original (and intended) behaviour before r159557. This
5389 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5392 2010-05-25 Richard Guenther <rguenther@suse.de>
5394 * doc/invoke.texi: Document -Ofast.
5395 * target.h (struct gcc_target): Add handle_ofast.
5396 * target-def.h (TARGET_HANDLE_OFAST): Add.
5397 (TARGET_INITIALIZER): Adjust.
5398 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5399 * common.opt (Ofast): Add.
5401 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5403 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5404 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5406 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5409 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5410 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5411 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5412 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5414 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5416 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5417 DW_OP_minus with negated offset instead of DW_OP_plus.
5418 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5420 2010-05-25 Wei Guozhi <carrot@google.com>
5422 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5423 tst instruction and a new alternative.
5424 * config/arm/constraints.md (Pu): New constraint.
5426 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5428 * function.c (assign_stack_local_1): Initialize variable
5429 to avoid warning when bootstrapping at -O3.
5431 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5433 * configure.ac (all_lang_makefiles): Remove everything related to it.
5434 * configure: Regenerate.
5435 * Makefile.in: Fix reference to ada Make-lang.in.
5436 Remove support for LANG_MAKEFILES.
5438 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5439 Sandra Loosemore <sandra@codesourcery.com>
5441 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5442 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5443 description. Add arm_neon_fp16_ok.
5444 (Add Options): Add arm_neon and arm_neon_fp16.
5446 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5448 * diagnostic.c: Don't include flags.h.
5449 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5450 context parameters. Check flags in the context passed as a parameter.
5451 (diagnostic_build_prefix): Add context parameter. Check
5452 show_column flag in context.
5453 (diagnostic_action_after_output): Check fatal_errors flag in context.
5454 (diagnostic_report_current_module): Check show_column flag in context.
5455 (default_diagnostic_starter): Update call to
5456 diagnostic_build_prefix.
5457 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5458 (emit_diagnostic): Pass context to permissive_error_kind.
5459 (permerror): Pass context to permissive_error_kind.
5460 * diagnostic.h (struct diagnostic_context): Add show_column,
5461 pedantic_errors, permissive and fatal_errors fields.
5462 (diagnostic_build_prefix): Update prototype.
5464 * toplev.c (process_options): Set flags in global_dc from
5465 flag_show_column, flag_pedantic_errors, flag_permissive,
5467 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5468 to diagnostic_build_prefix.
5469 * Makefile.in (diagnostic.o): Update dependencies.
5471 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5473 * config/i386/ia32intrin.h (__crc32q): Define only if
5474 __SSE4_2__ is defined.
5476 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5480 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5481 DECL_VISIBILITY_SPECIFIED.
5482 (emutls_decl): Set DECL_PRESERVE_P and copy
5483 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5484 (emutls_finalize_control_var): New callback.
5485 (emutls_finish): Finalize emutls control variables.
5486 * toplev.c (compile_file): Move the call to emutls_finish ()
5487 before varpool_assemble_pending_decls ().
5489 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5491 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5492 added to the preprocessor condition.
5494 2010-05-24 Paul Brook <paul@codesourcery.com>
5496 * gengtype-lex.l: Add HARD_REG_SET.
5497 * expr.c (expand_expr_real_1): Record writes to hard registers.
5498 * function.c (rtl_data): Add asm_clobbers.
5499 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5500 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5501 Use crtl->asm_clobbers.
5503 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5505 * doc/makefile.texi (Makefile): Mention stages 'profile'
5506 and 'feedback' for profiledbootstrap.
5508 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5511 * config/i386/i386.c (def_builtin): Properly check
5512 OPTION_MASK_ISA_64BIT.
5514 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5516 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5517 typedefs with different but compatible types. Allow duplicate
5518 typedefs with the same type except for pedantic non-C1X, but give
5519 warning for variably modified types.
5520 * c-typeck.c (tagged_types_tu_compatible_p,
5521 function_types_compatible_p, type_lists_compatible_p,
5522 comptypes_internal): Add parameter different_types_p; set
5523 *different_types_p for different but compatible types. All
5525 (comptypes_check_different_types): New.
5526 * c-tree.h (comptypes_check_different_types): Declare.
5528 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5530 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5531 * jump.c: Include basic-block.h.
5532 * profile.c: Likewise.
5533 * tree-profile.c: Likewise.
5534 * coverage.c: Likewise.
5535 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5536 (optimize_function_for_speed_p): Likewise.
5537 * function.h (optimize_function_for_size_p,
5538 optimize_function_for_speed_p): Moved here from basic-block.h.
5539 * Makefile.in: Update dependencies.
5541 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5543 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5544 before calling make; allow override through $MAKE.
5545 * doc/invoke.texi (Optimize Options): Document override.
5547 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5549 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5550 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5551 (rs6000_mode_dependent_address_ptr): Make static.
5552 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5553 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5556 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5559 * config/i386/i386.c: Make sure that the correct regparm is passed.
5561 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5563 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5564 * sbitmap.c: ...to here to internalize sbitmap element access.
5565 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5566 Explain why basic-block.h is included.
5567 * function.h: Include tm.h for CUMULATIVE_ARGS.
5568 * Makefile.in: Update dependencies.
5570 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5572 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5574 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5575 * sbitmap.c: Include sbitmap.h.
5576 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5577 hard-reg-set.h. Split everything related to regsets out from here...
5578 * regset.h: ...to here. New file.
5579 * df.h: Include regset.h and sbitmap.h.
5580 * tree-flow.h: Likewise.
5581 * cfgloop.h: Likewise.
5582 * except.h: Do not include sbitmap.h. Include hashtab.h.
5583 * cgraph.h: Include vec.h and function.h.
5584 * reload.h (struct insn_chain): Change types of live_throughout
5585 and dead_or_set from regset_head to bitmap_head.
5586 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5587 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5588 spilled_regs from regset_head to bitmap_head to avoid dependency
5590 * sel-sched-ir.h: Include regset.h.
5591 * reload.c: Include df.h before reload.h.
5592 * caller-save.c: Likewise.
5593 * reload1.c: Likewise.
5595 (mark_elimination): Update type of r to bitmap, consistent with
5597 * dominance.c: Include bitmap.h.
5598 * modulo-sched.c: Include df.h.
5599 * cfganal.c: Include bitmap.h and sbitmap.h.
5600 * cfgbuild.c: Include sbitmap.h.
5601 * lcm.c: Include sbitmap.h.
5602 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5603 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5604 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5605 * cselib.c: Include bitmap.h.
5606 * tree-optimize.c: Include regset.h.
5607 * stmt.c: Include bitmap.h.
5608 * Makefile.in: Update dependencies.
5610 2010-05-22 Jan Hubicka <jh@suse.cz>
5612 * cgraph.h (struct varpool_node): Add same_comdat_group.
5613 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5615 (output_varpool): Update call of lto_output_varpool_node.
5616 (input_varpool): Read same_comdat_group pointer.
5617 (input_varpool_1): Fixup same_comdat_group pointer.
5618 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5619 group is needed, all are.
5620 * varpool.c (varpool_remove_node): Remove node from same comdat group
5622 (varpool_analyze_pending_decls): Walk same comdat groups.
5624 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5626 * rtl.h (union rtunion_def): Remove rt_bit member.
5627 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5628 * print-rtl (print_rtx): Do not print the member.
5629 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5630 * gengenrtl.c (type_from_format): Likewise.
5631 (accessor_from_format): Likewise.
5633 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5635 * dbgcnt.c: Include toplev.h instead of errors.h.
5636 * ira-emit.c: Don't include errors.h.
5637 * ira.c: Include toplev.h instead of errors.h.
5638 * lto-compress.c: Include toplev.h instead of errors.h.
5639 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5640 ira.o, dbgcnt.o): Update dependencies.
5642 2010-05-22 Richard Guenther <rguenther@suse.de>
5644 * gimple.c (gimple_types_compatible_p): Check type qualifications
5645 before merging pointer to complete and pointer to incomplete type.
5646 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5647 we use our own resolution algorithm. The gold linker plugin
5648 doesn't do the job we want it to do here.
5650 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5652 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5653 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5654 (sparc_mode_dependent_address_p): New function.
5656 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5658 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5660 * timevar.c: Do not include any core headers.
5661 (timevar_print): De-i18n-ize.
5662 (print_time): Likewise.
5663 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5665 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5667 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5669 (diagnostic_initialize): Initialize x_data not last_function.
5670 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5671 (default_diagnostic_starter): Call
5672 diagnostic_report_current_module not
5673 diagnostic_report_current_function.
5674 (diagnostic_report_diagnostic): Initialize x_data not
5676 (verbatim): Likewise.
5677 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5679 (struct diagnostic_context): Change last_function to x_data.
5680 (diagnostic_auxiliary_data): Replace with
5681 diagnostic_context_auxiliary_data and
5682 diagnostic_info_auxiliary_data.
5683 (diagnostic_last_function_changed, diagnostic_set_last_function,
5684 diagnostic_report_current_function): Move to tree-diagnostic.h.
5685 (print_declaration, dump_generic_node, print_generic_stmt,
5686 print_generic_stmt_indented, print_generic_expr,
5687 print_generic_decl, debug_c_tree, dump_omp_clauses,
5688 print_call_name, debug_generic_expr, debug_generic_stmt,
5689 debug_tree_chain, default_tree_printer): Move to
5690 tree-pretty-print.h.
5691 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5692 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5693 gimple-pretty-print.h.
5694 * pretty-print.c: Don't include tree.h
5695 (pp_base_format): Don't handle %K here.
5696 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5697 * pretty-print.h (text_info): Change abstract_origin to x_data.
5698 (pp_tree_identifier, pp_unsupported_tree,
5699 pp_base_tree_identifier): Move to tree-pretty-print.h.
5700 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5701 tree-pretty-print.h: New files.
5702 * tree-pretty-print.c: Include tree-pretty-print.h.
5703 (percent_K_format): New. Moved from pretty-print.c.
5704 (pp_base_tree_identifier): Move from pretty-print.c.
5705 * c-objc-common.c: Include tree-pretty-print.h.
5706 (c_tree_printer): Handle %K here.
5707 * langhooks.c: Include tree-diagnostic.h.
5708 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5709 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5710 (default_tree_printer): Handle %K using percent_K_format.
5711 (general_init): Use default_tree_diagnostic_starter.
5712 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5713 (free_lang_data): Use default_tree_diagnostic_starter.
5714 * c-pretty-print.c: Include tree-pretty-print.h.
5715 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5716 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5717 * dwarf2out.c: Include tree-pretty-print.h.
5718 * except.c: Include tree-pretty-print.h.
5719 * gimple-pretty-print.c: Include tree-pretty-print.h and
5720 gimple-pretty-print.h.
5721 * gimplify.c: Include tree-pretty-print.h.
5722 * graphite-poly.c: Include tree-pretty-print.h and
5723 gimple-pretty-print.h.
5724 * ipa-cp.c: Include tree-pretty-print.h.
5725 * ipa-inline.c: Include gimple-pretty-print.h.
5726 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5727 * ipa-pure-const.c: Include gimple-pretty-print.h.
5728 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5729 gimple-pretty-print.h.
5730 * ipa-type-escape.c: Include tree-pretty-print.h.
5731 * print-rtl.c: Include tree-pretty-print.h.
5732 * print-tree.c: Include gimple-pretty-print.h.
5733 * sese.c: Include tree-pretty-print.h.
5734 * tree-affine.c: Include tree-pretty-print.h.
5735 * tree-browser.c: Include tree-pretty-print.h.
5736 * tree-call-cdce.c: Include gimple-pretty-print.h.
5737 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5738 * tree-chrec.c: Include tree-pretty-print.h.
5739 * tree-data-ref.c: Include tree-pretty-print.h and
5740 gimple-pretty-print.h.
5741 * tree-dfa.c: Include tree-pretty-print.h.
5742 * tree-if-conv.c: Include tree-pretty-print.h and
5743 gimple-pretty-print.h.
5744 * tree-inline.c: Include tree-pretty-print.h.
5745 * tree-into-ssa.c: Include tree-pretty-print.h and
5746 gimple-pretty-print.h.
5747 * tree-nrv.c: Include tree-pretty-print.h.
5748 * tree-object-size.c: Include tree-pretty-print.h and
5749 gimple-pretty-print.h.
5750 * tree-outof-ssa.c: Include tree-pretty-print.h and
5751 gimple-pretty-print.h.
5752 * tree-parloops.c: Include tree-pretty-print.h and
5753 gimple-pretty-print.h.
5754 * tree-predcom.c: Include tree-pretty-print.h and
5755 gimple-pretty-print.h.
5756 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5757 gimple-pretty-print.h.
5758 * tree-sra.c: Include tree-pretty-print.h.
5759 * tree-ssa-address.c: Include tree-pretty-print.h.
5760 * tree-ssa-alias.c: Include tree-pretty-print.h.
5761 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5762 gimple-pretty-print.h.
5763 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5764 * tree-ssa-copy.c: Include tree-pretty-print.h and
5765 gimple-pretty-print.h.
5766 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5767 * tree-ssa-dce.c: Include tree-pretty-print.h and
5768 gimple-pretty-print.h.
5769 * tree-ssa-dom.c: Include tree-pretty-print.h and
5770 gimple-pretty-print.h.
5771 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5772 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5773 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5774 * tree-ssa-live.c: Include tree-pretty-print.h and
5775 gimple-pretty-print.h.
5776 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5777 gimple-pretty-print.h.
5778 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5779 gimple-pretty-print.h.
5780 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5781 gimple-pretty-print.h.
5782 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5783 gimple-pretty-print.h.
5784 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5785 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5786 * tree-ssa-operands.c: Include tree-pretty-print.h and
5787 gimple-pretty-print.h.
5788 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5789 gimple-pretty-print.h.
5790 * tree-ssa-pre.c: Include tree-pretty-print.h and
5791 gimple-pretty-print.h.
5792 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5793 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5794 gimple-pretty-print.h.
5795 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5796 gimple-pretty-print.h.
5797 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5798 * tree-ssa-ter.c: Include tree-pretty-print.h and
5799 gimple-pretty-print.h.
5800 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5801 * tree-ssa.c: Include tree-pretty-print.h and
5802 gimple-pretty-print.h.
5803 * tree-stdarg.c: Include gimple-pretty-print.h.
5804 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5805 * tree-tailcall.c: Include tree-pretty-print.h and
5806 gimple-pretty-print.h.
5807 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5808 gimple-pretty-print.h.
5809 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5810 gimple-pretty-print.h.
5811 * tree-vect-loop.c: Include tree-pretty-print.h and
5812 gimple-pretty-print.h.
5813 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5814 * tree-vect-slp.c: Include tree-pretty-print.h and
5815 gimple-pretty-print.h.
5816 * tree-vect-stmts.c: Include tree-pretty-print.h and
5817 gimple-pretty-print.h.
5818 * tree-vectorizer.c: Include tree-pretty-print.h.
5819 * tree-vrp.c: Include tree-pretty-print.h and
5820 gimple-pretty-print.h.
5821 * value-prof.c: Include tree-pretty-print.h and
5822 gimple-pretty-print.h.
5823 * var-tracking.c: Include tree-pretty-print.h.
5824 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5825 (tree-diagnostic.o): New dependencies.
5826 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5827 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5828 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5829 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5830 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5831 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5832 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5833 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5834 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5835 tree-ssa-address.o, tree-ssa-loop-niter.o,
5836 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5837 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5838 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5839 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5840 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5841 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5842 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5843 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5844 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5845 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5846 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5847 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5848 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5849 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5850 cfgexpand.o, pretty-print.o): Update dependencies.
5852 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5854 * tree-ssa-structalias.c: Remove tm_p.h from include.
5856 2010-05-21 Jeff Law <law@redhat.com>
5858 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5860 2010-05-21 Jason Merrill <jason@redhat.com>
5862 * tree-eh.c (cleanup_is_dead_in): New.
5863 (lower_try_finally): Don't generate a dead cleanup region.
5864 (lower_cleanup): Likewise.
5866 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5869 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5870 unchain each use from the cyclic next_regno_use chain first.
5872 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5874 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5875 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5876 (real_value_negate, real_value_abs): New prototypes.
5877 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5878 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5879 new include file for interface between MPFR and REAL_VALUE_TYPE.
5880 * real.c: Include realmpfr.h.
5881 (real_arithmetic2): Remove legacy function.
5882 (real_value_negate): New.
5883 (real_value_abs): New.
5884 (mfpr_from_real, real_from_mpfr): Move from here...
5885 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5886 * builtins.c: Include realmpfr.h.
5887 * fold-const.c: Include realmpfr.h.
5888 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5889 (fold_negate_const): Likewise.
5890 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5891 * toplev.c: Include realmpfr.h.
5892 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5893 and real_value_negate.
5894 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5895 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5896 (vfp3_const_double_index): Likewise.
5897 (arm_print_operand): Likewise.
5898 * Makefile.in: Update dependencies.
5900 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5902 * config/s390/s390.c (override_options): Increase the default
5903 of max-completely-peel-times.
5905 2010-05-21 Julian Brown <julian@codesourcery.com>
5906 Mark Mitchell <mark@codesourcery.com>
5908 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5909 sibling calls for Thumb-1.
5910 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5911 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5913 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5914 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5916 (return): New expander.
5917 (*arm_return): New name for ARM return insn.
5918 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5920 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5922 * config.gcc (sparc64-*-rtems*): New target.
5924 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5926 * tree.c (build_function_decl_skip_args): Fix grammar.
5927 (build_function_type_list_1): Fix typos, adjust formatting.
5929 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5931 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5932 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5933 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5934 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5935 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5936 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5937 tree-pretty-print.c, tree-loop-distribution.c,
5938 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5939 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5940 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5941 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5942 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5943 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5944 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5945 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5946 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5947 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5948 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5949 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5950 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5951 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5952 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5953 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5954 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5955 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5956 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5957 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5958 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5959 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5960 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5961 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5962 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5963 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5964 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5965 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5966 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5967 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5968 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5969 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5970 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5971 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5972 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5973 config/bfin/bfin.c: Clean up redundant includes.
5974 * Makefile.in: Update accordingly.
5976 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5979 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5980 statement has no arguments.
5982 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5985 * varasm.c (emutls_decl): Merge attributes to new decl.
5987 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5990 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5991 around the uniquized constructor if its type requires a conversion.
5993 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5996 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5997 at -O0 goto_locus of any of the incoming edges differs from
5998 goto_locus of outgoing edge, or gimple_location of any of the
6001 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
6003 * ira.c (ira_non_ordered_class_hard_regs): Define.
6004 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6005 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6006 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6007 cost of unaligned hard regs when allocating multi-reg pseudos.
6009 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
6011 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6012 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6013 for TARGET_NO_FLOAT.
6014 * config/mips/mips.c (mips_file_start): Expand conditional expression
6015 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6016 (mips_override_options): Move -mno-float override -msoft-float and
6018 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6019 Condition(TARGET_SUPPORTS_NO_FLOAT).
6020 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6021 __mips_no_float here.
6022 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6023 (TARGET_SUPPORTS_NO_FLOAT): Define.
6024 * config/mips/sdemtk.opt: Delete.
6026 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6028 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6030 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
6033 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6034 * configure: Regenerate.
6035 * config.in: Regenerate.
6036 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6037 instead of sahf only for 64bit targets.
6039 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6042 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6043 setup_ref_regs for DEBUG_INSNs.
6045 2010-05-20 Jan Hubicka <jh@suse.cz>
6048 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6050 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6053 * df-scan.c (df_ref_compare): Stabilize sort.
6055 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6057 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6058 argument. Don't use DW_OP_piece if offset is non-zero,
6059 put offset into second DW_OP_bit_piece argument.
6060 (dw_sra_loc_expr): Adjust callers. For memory expressions
6063 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6066 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6067 settings for 16-bit-constant "addo" alternative.
6069 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6071 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6072 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6075 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6076 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6079 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6081 * diagnostic.c (FLOAT, FFS): Don't undefine.
6082 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6083 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6086 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6088 * combine.c (propagate_for_debug): Call make_compound_operation
6089 on the source value.
6090 (try_combine): When implementing a split chosen by find_split_point,
6091 either copy i2src or set it to null. Assert that i2src is not null
6092 before substituting into CALL_INSN_FUNCTION_USAGE.
6094 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6096 * double-int.h (double_int_ior): New function.
6097 * tree.h (build_int_cst_wide_type): Remove.
6098 * tree.c (build_int_cst_wide_type): Remove.
6099 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6100 of build_int_cst_wide_type.
6101 * stor-layout.c (set_sizetype): (Ditto.).
6102 * dojump.c (do_jump): Use build_int_cstu instead of
6103 build_int_cst_wide_type.
6105 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6107 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6108 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6109 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6110 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6111 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6112 propagate the 'data' argument to copy_tree_r.
6113 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6114 Propagate 'data' argument to walk_tree.
6115 (copy_if_shared): New function.
6116 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6117 (unmark_visited): New function.
6118 (unshare_body): Call copy_if_shared instead of doing it manually.
6119 (unvisit_body): Call unmark_visited instead of doing it manually.
6121 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6123 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6124 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6125 * hooks.c: Likewise.
6126 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6127 hook_tree_tree_int_treep_bool_null.
6128 * target.h (struct gcc_target): Update signature of fold_builtin
6130 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6131 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6132 instead of the call expression.
6133 (fold_builtin_call_array): Pass n and argarray directly.
6134 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6136 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6137 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6138 `i' and use it in place of `arity'.
6139 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6140 Dereference `args' directly.
6141 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6143 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6145 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6147 (Directives): Document optional dg-require-effective-target
6150 2010-05-19 Richard Guenther <rguenther@suse.de>
6153 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6155 2010-05-19 Richard Guenther <rguenther@suse.de>
6157 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6158 * common.opt (fwhopr=): New.
6159 * opts.c (common_handle_option): Handle OPT_fwhopr.
6160 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6161 * collect2.c (main): Match -fwhopr*.
6162 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6163 Execute ltrans stage in parallel when jobs is bigger than 1.
6165 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6167 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6168 pentiumpro on Solaris 8/x86 with Sun as.
6169 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6171 (gcc_cv_as_ix86_quad): Check for .quad directive.
6172 * configure: Regenerate.
6173 * config.in: Regenerate.
6174 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6176 2010-05-19 Martin Jambor <mjambor@suse.cz>
6178 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6179 also for indirect edges. Actual printing moved...
6180 (ipa_print_node_jump_functions_for_edge): ...here.
6181 (ipa_compute_jump_functions): Renamed to
6182 ipa_compute_jump_functions_for_edge and made static.
6183 (ipa_compute_jump_functions): New function.
6184 (make_edge_direct_to_target): Check if the number of arguments on
6185 the newly direct edge is the same as the number of parametrs of
6187 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6188 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6189 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6190 analysis functions unconditionally, call the new
6191 ipa_analyze_params_uses on the node instead of every edge.
6193 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6195 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6197 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6198 also checks for a constant int vs. non-constant but
6199 loop-invariant steps.
6200 (find_or_create_group): Change the sort algorithm to only consider
6201 steps that are constant ints.
6202 (idx_analyze_ref): Adopt code to handle a tree instead of a
6203 HOST_WIDE_INT for step.
6204 (gather_memory_references_ref): Handle tree instead of int and be
6205 prepared to see a NULL_TREE.
6206 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6207 prefetches if the step cannot be calculated at compile time.
6208 (issue_prefetch_ref): Issue prefetches for non-constant but
6209 loop-invariant steps.
6211 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6214 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6216 * tree.h (build_call_list): Remove.
6217 * tree.c (build_call_list): Remove.
6219 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6221 * tree.h (build_call_list): Remove.
6222 * tree.c (build_call_list): Remove.
6224 2010-05-18 Jan Hubicka <jh@suse.cz>
6226 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6228 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6230 PR rtl-optimization/43332
6231 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6233 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6235 * tree.h (build_int_cstu): Implement as static inline.
6236 * tree.c (build_int_cstu): Remove function.
6237 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6240 2010-05-18 Richard Guenther <rguenther@suse.de>
6243 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6244 (debug): Initialize from -save-temps.
6245 (collect_execute): Print command-line when verbose.
6246 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6247 for ltrans invocation. Produce -dumpbase flag again.
6248 (process_args): Remove.
6250 * collect2.c (maybe_run_lto_and_relink): Only pass object
6251 files to lto-wrapper.
6252 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6254 2010-05-18 Jan Hubicka <jh@suse.cz>
6256 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6257 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6259 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6262 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6264 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6267 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6270 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6273 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6275 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6276 lto-macho as lto_binary_reader.
6278 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6279 after .section directive; just print it before the directive instead.
6281 2010-05-17 Jan Hubicka <jh@suse.cz>
6283 * cgraph.c (cgraph_create_virtual_clone): Only check
6284 versionable_function_p when not in wpa and checking is enabled.
6285 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6286 there are no more functions to materialize.
6288 2010-05-17 Jan Hubicka <jh@suse.cz>
6290 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6291 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6293 (output_cgraph): Call output_cgraph_opt_summary.
6294 (input_cgrpah): Call input_cgraph_opt_summary.
6295 (output_cgraph_opt_summary_p, output_node_opt_summary,
6296 input_node_opt_summary, input_cgraph_opt_section): New functions.
6297 * lto-section-in.c (lto_section_name): Add cgraphopt.
6298 * tree-inline.c (tree_function_versioning): Handle parm_num.
6299 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6300 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6302 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6304 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6305 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6306 the insn to prefetch ratio heuristic to loops with known trip count.
6308 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6310 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6311 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6312 is far from what is required by the prefetch.
6314 2010-05-17 Jan Hubicka <jh@suse.cz>
6316 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6317 (ipcp_estimate_growth): Likewise.
6318 (ipcp_const_param_count): Likewise.
6319 (ipcp_insert_stage): Likewise.
6320 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6321 (visit_store_addr_for_mod_analysis): Set used flag.
6322 (ipa_detect_param_modifications): Set used flag for SSE params;
6323 update use of walk_stmt_load_store_addr_ops.
6324 (ipa_print_node_params): Print used flag.
6325 (ipa_write_node_info): Stream used flag.
6326 (ipa_read_node_info): Likewise.
6327 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6328 (ipa_is_param_used): New function.
6329 (lto_ipa_fixup_call_notes): Remove unused declaration.
6331 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6334 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6335 * configure: Regenerate.
6336 * config.in: Regenerate.
6337 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6338 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6339 Don't emit whitespace.
6340 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6341 (*rep_movsi): Likewise.
6342 (*rep_movsi_rex64): Likewise.
6343 (*rep_movqi): Likewise.
6344 (*rep_movqi_rex64): Likewise.
6345 (*rep_stosdi_rex64): Likewise.
6346 (*rep_stossi): Likewise.
6347 (*rep_stossi_rex64): Likewise.
6348 (*rep_stosqi): Likewise.
6349 (*rep_stosqi_rex64): Likewise.
6350 (*cmpstrnqi_nz_1): Use {%;} after repz.
6351 (*cmpstrnqi_nz_rex_1): Likewise.
6352 (*cmpstrnqi_1): Likewise.
6353 (*cmpstrnqi_rex_1): Likewise.
6354 (*strlenqi_1): Use {%;} after repnz.
6355 (*strlenqi_rex_1): Likewise.
6356 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6357 (*sync_compare_and_swap<mode>): Likewise.
6358 (sync_double_compare_and_swap<mode>): Likewise.
6359 (*sync_double_compare_and_swapdi_pic): Likewise.
6360 (sync_old_add<mode>): Likewise.
6361 (sync_add<mode>): Likewise.
6362 (sync_sub<mode>): Likewise.
6363 (sync_<code><mode>): Likewise.
6365 2010-05-17 Martin Jambor <mjambor@suse.cz>
6367 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6368 otr_token and polymorphic.
6369 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6370 (cgraph_clone_edge): Copy the above fields.
6371 * tree.c (get_binfo_at_offset): New function.
6372 * tree.h (get_binfo_at_offset): Declare.
6373 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6374 type, reordered items, updated comments.
6375 (union jump_func_value): Added base_type field, reordered fields.
6376 (enum ipa_lattice_type): Moved down in the file.
6377 (struct ipa_param_descriptor): New field polymorphic.
6378 (ipa_is_param_polymorphic): New function.
6379 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6380 (ipa_print_node_jump_functions): Print known type jump functions.
6381 (compute_complex_pass_through): Renamed to...
6382 (compute_complex_assign_jump_func): this.
6383 (compute_complex_ancestor_jump_func): New function.
6384 (compute_known_type_jump_func): Likewise.
6385 (compute_scalar_jump_functions): Create known type and complex ancestor
6387 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6388 flag in the call note accordingly.
6389 (ipa_analyze_call_uses): Renamed to...
6390 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6391 variable var only in the block where it is used.
6392 (ipa_analyze_virtual_call_uses): New function.
6393 (ipa_analyze_call_uses): Likewise.
6394 (combine_known_type_and_ancestor_jfs): Likewise.
6395 (update_jump_functions_after_inlining): Implemented handling of a
6396 number of new jump function types combination.
6397 (print_edge_addition_message): Removed.
6398 (make_edge_direct_to_target): New function.
6399 (try_make_edge_direct_simple_call): Likewise.
6400 (try_make_edge_direct_virtual_call): Likewise.
6401 (update_call_notes_after_inlining): Renamed to...
6402 (update_indirect_edges_after_inlining): this. Moved edge creation for
6403 indirect calls to try_make_edge_direct_simple_call, also calls
6404 try_make_edge_direct_virtual_call for virtual calls.
6405 (ipa_print_node_params): Changed the header message.
6406 (ipa_write_jump_function): Stream also known type jump functions.
6407 (ipa_read_jump_function): Likewise.
6408 (ipa_write_indirect_edge_info): Stream new fields in
6409 cgraph_indirect_call_info.
6410 (ipa_read_indirect_edge_info): Likewise.
6411 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6414 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6416 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6418 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6420 * tree.h (CALL_EXPR_ARGS): Delete.
6421 (call_expr_arglist): Delete.
6422 * tree.c (call_expr_arglist): Delete.
6423 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6424 targetm.fold_builtin.
6425 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6426 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6427 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6428 arglist parameter. Use CALL_EXPR_ARG.
6429 (picochip_expand_builtin_3op): Likewise.
6430 (picochip_expand_builtin_2opvoid): Likewise.
6431 (picochip_expand_array_get): Likewise.
6432 (picochip_expand_array_put): Likewise.
6433 (picochip_expand_array_testport): Likewise.
6434 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6435 rather than arglist.
6436 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6438 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6439 than TREE_VALUE and TREE_CHAIN.
6440 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6441 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6444 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6447 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6448 to have no fallthru edge.
6451 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6452 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6453 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6454 add BARRIER after previous bb if needed.
6456 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6458 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6460 2010-05-17 Alan Modra <amodra@gmail.com>
6462 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6463 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6464 with copy_reg rtx param.
6465 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6466 Correct cases where code for ABI_V4 did not initialise the reg
6467 used to access frame. Also leave frame_reg_rtx as sp for large
6468 frames that save no regs.
6470 2010-05-17 Martin Jambor <mjambor@suse.cz>
6473 * tree-sra.c (create_access_replacement): New parameter rename, mark
6474 the replaement for renaming only when it is true.
6475 (get_access_replacement): Pass true in the rename parameter of
6476 create_access_replacement.
6477 (get_unrenamed_access_replacement): New function.
6478 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6479 replacement declaration from it.
6481 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6483 * function.c (try_fit_stack_local, add_frame_space): New static
6485 (assign_stack_local_1): Use them. Look for opportunities to use
6486 space previously wasted on alignment.
6487 * function.h (struct frame_space): New.
6488 (struct rtl_data): Add FRAME_SPACE_LIST member.
6489 * reload1.c (something_was_spilled): New static variable.
6490 (alter_reg): Set it.
6491 (reload): Test it in addition to testing if the frame size changed.
6493 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6495 * config/s390/s390.c: Define sane prefetch settings and activate
6496 flag_prefetch_loop_arrays on -O3.
6497 * config/s390/s390.h: Declare that read can use write prefetch.
6499 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6501 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6504 2010-05-16 Jan Hubicka <jh@suse.cz>
6506 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6507 function body; do not check stdarg field of struct function.
6509 2010-05-16 Jan Hubicka <jh@suse.cz>
6511 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6512 * cgraph.h (cgraph_local_info): Add versionable flag.
6513 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6514 (ipcp_versionable_function_p): Use it.
6515 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6518 2010-05-16 Jan Hubicka <jh@suse.cz>
6520 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6521 clone into hash when it is different from orig.
6522 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6523 * cgraph.h (cgraph_clone_node): Update prototype.
6524 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6525 (lto_cgraph_encoder_delete): Delete body map.
6526 (lto_cgraph_encoder_size): Move to header.
6527 (lto_cgraph_encoder_encode_body_p,
6528 lto_set_cgraph_encoder_encode_body): New.
6529 (lto_output_node): Do not take written_decls argument; output clone_of
6531 (add_node_to): Add include_body_argument; call
6532 lto_set_cgraph_encoder_encode_body on master of the clone.
6533 (add_references): Update use of add_node_to.
6534 (compute_ltrans_boundary): Likewise.
6535 (output_cgraph): Do not create written_decls bitmap.
6536 (input_node): Take nodes argument; stream in clone_of correctly.
6537 (input_cgraph_1): Update use of input_node.
6538 * lto-streamer-out.c (lto_output): Use encoder info to decide
6539 what bodies to output.
6540 * ipa-inline.c (cgraph_clone_inlined_nodes,
6541 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6542 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6543 (lto_cgraph_encoder_size): Define here.
6544 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6547 2010-05-16 Richard Guenther <rguenther@suse.de>
6549 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6551 * ipa-type-escape.c (gate_type_escape_vars): Run when
6552 -fipa-struct-reorg runs.
6553 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6554 * common.opt (fipa-type-escape): Remove.
6556 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6558 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6559 (decode_options): Likewise.
6560 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6562 2010-05-16 Jan Hubicka <jh@suse.cz>
6564 * ipa.c (function_and_variable_visibility): Also bring local all
6567 2010-05-16 Richard Guenther <rguenther@suse.de>
6569 * alias.c (nonoverlapping_memrefs_p): Remove use of
6570 IPA type-escape information.
6572 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6574 * c-common.c (c_common_reswords): Add _Static_assert for C.
6575 * c-parser.c (c_token_starts_declaration,
6576 c_parser_next_token_starts_declaration,
6577 c_parser_static_assert_declaration_no_semi,
6578 c_parser_static_assert_declaration): New.
6579 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6580 Handle static assertions if static_assert_ok.
6581 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6582 c_parser_compound_statement_nostart, c_parser_label,
6583 c_parser_for_statement, c_parser_objc_methodprotolist,
6584 c_parser_omp_for_loop): All callers of
6585 c_parser_declaration_or_fndef changed.
6586 (c_parser_struct_declaration): Handle static assertions.
6587 (c_parser_compound_statement_nostart): Use
6588 c_parser_next_token_starts_declaration and
6589 c_token_starts_declaration to detect start of declarations.
6590 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6593 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6595 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6596 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6597 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6598 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6599 (mmix_function_outgoing_value): Rename to...
6600 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6601 (mmix_function_value_regno_p): Make static.
6602 (mmix_libcall_value): New function.
6603 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6604 mmix_function_value_regno_p): Remove declaration.
6606 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6608 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6609 BUILT_IN_ALLOCA if stack checking is enabled.
6611 2010-05-16 Richard Guenther <rguenther@suse.de>
6613 * var-tracking.c (vars_copy_1): Inline ...
6614 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6615 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6616 (variable_merge_over_cur): Adjust. Merge asserts.
6617 (variable_merge_over_src): Likewise.
6618 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6619 (variable_post_merge_new_vals): Merge asserts.
6620 (variable_post_merge_perm_vals): Likewise.
6621 (find_mem_expr_in_1pdv): Likewise.
6622 (dataflow_set_different_value): Remove.
6623 (onepart_variable_different_p): Merge asserts.
6624 (variable_different_p): Likewise.
6625 (dataflow_set_different_1): Inline ...
6626 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6627 (emit_notes_for_differences_1): Merge asserts.
6629 2010-05-16 Richard Guenther <rguenther@suse.de>
6631 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6632 * optabs.c (libfunc_decl_hash): Likewise.
6633 * varasm.c (emutls_decl): Likewise.
6635 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6637 * c-decl.c: Don't include gimple.h.
6638 (merge_decls): Do not copy gimple_body.
6640 2010-05-15 Jason Merrill <jason@redhat.com>
6642 * c.opt: Add -fnothrow-opt.
6644 2010-05-15 Jan Hubicka <jh@suse.cz>
6646 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6648 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6650 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6652 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6653 * Makefile.in: Add it.
6654 Fix all other Makefile dependencies for changes below.
6655 * tree.h: Include it instead of defining VEC primitives here.
6656 * gimple.h: Likewise.
6658 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6659 * except.h: Include vecir.h, break dependence on tree.h.
6661 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6663 * tree-iterator.c: ...to here.
6664 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6666 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6668 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6669 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6670 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6671 tree-mudflap.h, and target.h.
6672 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6673 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6674 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6675 Add FIXME for why gimple.h is still included (should be unnecessary
6676 since GCC 4.5 gimplification unit-at-a-time).
6677 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6678 * c-pragma.c: Add FIXME for why function.h needs to be included just
6679 for cfun, at front-end level.
6680 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6681 Do not include ggc.h, but include vecprim.h for VEC(char).
6682 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6683 Explain why target.h is included.
6684 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6685 Explain why gimple.h is included.
6686 * c-ppoutput.c: Do not include tm.h.
6687 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6688 * c-parses.c: Explain why rtl.h is included, and that this (and only
6689 this) is also why tm.h must be included.
6690 Do not include except.h.
6691 * c-lang.c: Do not include ggc.h.
6693 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6695 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6697 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6699 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6700 unions by default if those structs and unions have no tags. Do
6701 not condition anonymous struct and unions handling on flag_iso.
6702 Allow anonymous structs and unions for C1X.
6703 (finish_struct): Do not diagnose lack of named fields when
6704 anonymous structs and unions present for C1X. Accept flexible
6705 array members in structure with anonymous structs or unions but no
6706 directly named fields.
6707 * doc/extend.texi (Unnamed Fields): Update.
6709 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6711 * gimple.h (compare_field_offset): Rename into...
6712 (gimple_compare_field_offset): ...this.
6713 * gimple.c (compare_field_offset): Rename into...
6714 (gimple_compare_field_offset): ...this. Compare the full access if
6715 the offset is self-referential.
6716 (gimple_types_compatible_p): Adjust for above renaming.
6717 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6718 DECL_NONADDRESSABLE_P flag of fields before merging them.
6720 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6722 * tree.h (ctor_to_list): Delete.
6723 * tree.c (ctor_to_list): Delete.
6725 2010-05-15 Jan Hubicka <jh@suse.cz>
6727 * ipa-reference.c: Include toplev.h
6728 (is_proper_for_analysis): Only add to all_module_statics
6730 (write_node_summary_p, stream_out_bitmap,
6731 ipa_reference_write_optimization_summary,
6732 ipa_reference_read_optimization_summary): New.
6733 (struct ipa_opt_pass_d pass_ipa_reference): Add
6734 optimization summary streaming.
6735 * lto-cgraph.c (referenced_from_this_partition_p,
6736 reachable_from_this_partition_p): New functions.
6737 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6738 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6739 * opts.c (decode_options): Enable ipa_reference.
6740 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6741 * lto-streamer.h (referenced_from_this_partition_p,
6742 reachable_from_this_partition_p): Declare.
6744 2010-05-15 Richard Guenther <rguenther@suse.de>
6746 PR tree-optimization/44038
6747 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6748 taking the address of a V_C_E of a constant.
6750 2010-05-14 Jan Hubicka <jh@suse.cz>
6752 * tree.h (memory_identifier_string): Remove.
6753 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6754 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6755 statics_not_written.
6756 (ipa_reference_optimization_summary_d): New structure.
6757 (ipa_reference_optimization_summary_t): New type and vector.
6758 (ipa_reference_vars_info_d): Embedd structures instead of using
6760 (reference_vars_to_consider): Remove out of GGC space.
6761 (module_statics_escape): Remove.
6762 (global_info_obstack): Rename to ...
6763 (optimization_summary_obstack): ... this one.
6764 (initialization_status_t): Remove.
6765 (memory_identifier_string): Remove.
6766 (get_reference_vars_info): Fix indenting.
6767 (set_reference_vars_info): Likewise.
6768 (get_reference_optimization_summary): New.
6769 (set_reference_optimization_summary): New.
6770 (get_global_reference_vars_info): Remove.
6771 (ipa_reference_get_read_global): Remove.
6772 (ipa_reference_get_written_global): Remove.
6773 (ipa_reference_get_not_read_global): Update.
6774 (ipa_reference_get_not_written_global): Update.
6775 (is_proper_for_analysis): Outlaw addressable.
6776 (propagate_bits): Update for new datastructures.
6777 (analyze_variable): Remove.
6778 (init_function_info): Update for new datastructures.
6779 (clean_function_local_data): Remove.
6780 (clean_function): Remove.
6781 (copy_global_bitmap): Use optimizations_summary_obstack.
6782 (duplicate_node_data): Duplicate optimization summary only.
6783 (remove_node_data): Remove optimization summary only.
6784 (generate_summary): Do not analyze variables; do not compute
6785 module_statics_escape; do not prune solutions by it.
6786 (read_write_all_from_decl): Fix typos in comments.
6787 (propagate): Doscover readonly and nonaddressable first;
6788 update for new datastructures; share global bitmaps.
6789 * ipa-reference.h (ipa_reference_get_read_global,
6790 ipa_reference_get_written_global): Remove.
6791 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6792 * Makefile.in: Remove ipa-refereference from GT files.
6794 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6797 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6798 for all SYMBOL_REF_DECLs.
6800 2010-05-14 Jan Hubicka <jh@suse.cz>
6802 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6803 (varpool_all_refs_explicit_p): New inline function.
6804 * ipa-reference.c: Update comment.
6805 (module_statics_written): Remove.
6806 (get_static_decl): Remove.
6807 (ipa_init): Do not initialize module_statics_written.
6808 (analyze_function): Likewise.
6809 (generate_summary): Likewise; do not compute module_statics_readonly
6810 and do not update variable flags.
6811 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6812 * ipa.c: Inlucde flags.h
6813 (cgraph_local_node_p): New.
6814 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6815 promote functions to local.
6816 (ipa_discover_readonly_nonaddressable_vars): New function.
6817 (function_and_variable_visibility): Use cgraph_local_node_p.
6818 * varpool.c (varpool_finalize_decl): Set force_output for
6819 DECL_PRESERVE_P vars.
6821 2010-05-14 Jan Hubicka <jh@suse.cz>
6823 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6825 2010-05-14 Richard Guenther <rguenther@suse.de>
6827 PR tree-optimization/44119
6828 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6829 a PHI node necessary.
6831 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6833 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6835 2010-05-14 Jason Merrill <jason@redhat.com>
6838 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6839 (gimple_call_set_nothrow): New.
6840 * gimple.c (gimple_build_call_from_tree): Call it.
6841 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6844 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6845 * gimple.h: Declare it.
6846 * gimple.c (gimple_build_eh_filter): No ops.
6848 2010-05-14 Jan Hubicka <jh@suse.cz>
6850 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6851 nodes already in queue.
6852 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6855 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6858 * cfgexpand.c (expand_debug_expr): If non-memory op0
6859 has BLKmode, return NULL.
6861 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6863 * config.gcc: Add support for --with-cpu option for bdver1.
6864 * config/i386/i386.h (TARGET_BDVER1): New macro.
6865 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6866 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6867 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6868 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6869 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6870 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6871 (processor_type): Add PROCESSOR_BDVER1.
6872 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6873 processor_type in config/i386/i386.h.
6874 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6875 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6876 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6877 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6878 to emit packed xor instead of packed double/packed integer
6879 xor for SSE and AVX when moving a zero value.
6880 * config/i386/sse.md: Add check for
6881 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6882 movapd/movdqa for SSE and AVX.
6883 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6884 single logical operations i.e and, or and xor instead of packed double
6885 logical operations for SSE and AVX.
6886 * config/i386/i386-c.c (ix86_target_macros_internal):
6887 Add PROCESSOR_BDVER1.
6888 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6889 (has_fma4, has_xop): New.
6890 * config/i386/i386.c (bdver1_cost): New variable.
6891 (m_BDVER1): New macro.
6892 (m_AMD_MULTIPLE): Add m_BDVER1.
6893 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6894 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6895 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6896 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6897 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6898 x86_tune_sse_partial_reg_dependency,
6899 x86_tune_sse_unaligned_load_optimal,
6900 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6901 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6902 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6903 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6904 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6905 Enable/disable for bdver1.
6906 (processor_target_table): Add bdver1_cost.
6907 (cpu_names): Add bdver1.
6908 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6909 processor_alias_table.
6910 (ix86_expand_vector_move_misalign): Change.
6911 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6912 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6913 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6914 of movupd/movdqu for SSE and AVX.
6915 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6916 (ix86_tune_adjust_cost): Add code for bdver1.
6917 (standard_sse_constant_opcode): Add check for
6918 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6919 of packed double xor for SSE and AVX.
6921 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6923 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6926 2010-05-14 Tristan Gingold <gingold@adacore.com>
6928 * toplev.c (default_debug_hooks): Remove this variable.
6929 (process_options): Remove assignments to default_debug_hooks.
6931 2010-05-14 Martin Jambor <mjambor@suse.cz>
6933 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6934 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6935 * langhooks.h (struct lang_hooks_for_decls): Removed field
6937 * tree.c (free_lang_data): Remove assignment to
6938 lang_hooks.fold_obj_type_ref.
6939 * tree.def (OBJ_TYPE_REF): Update comment.
6941 2010-05-14 Richard Guenther <rguenther@suse.de>
6943 PR tree-optimization/44124
6944 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6946 2010-05-14 Alan Modra <amodra@gmail.com>
6949 * config/rs6000/rs6000.c (struct machine_function): Reorder
6950 fields for better packing. Add lr_save_state.
6951 (rs6000_ra_ever_killed): Return lr_save_state if set.
6952 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6954 2010-05-13 Jan Hubicka <jh@suse.cz>
6956 * varpool.c (decide_is_variable_needed): Drop code checking
6957 TREE_SYMBOL_REFERENCED.
6959 2010-05-13 Jan Hubicka <jh@suse.cz>
6961 * final.c (output_addr_const): Do not call mark_decl_referenced.
6962 * cgraphunit.c (process_function_and_variable_attributes): Use
6963 mark_needed_node dirrectly.
6964 (assemble_thunk): Do not call mark_decl_referenced.
6966 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6968 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6970 2010-05-13 Jeff Law <law@redhat.com>
6972 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6974 (print_conflicts): Call print_allocno_conflicts.
6976 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6979 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6982 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6984 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6985 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6986 * config/i386/t-mingw-w32: New.
6987 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6989 2010-05-13 Martin Jambor <mjambor@suse.cz>
6991 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6993 * gimple-fold.c (get_base_binfo_for_type): New function.
6994 (gimple_get_relevant_ref_binfo): Likewise.
6995 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6996 (gimple_fold_obj_type_ref): Likewise.
6997 (fold_gimple_call): Simplify condition for folding virtual calls
6998 and call gimple_fold_obj_type_ref.
6999 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7000 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7002 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7004 * config/rs6000/rs6000-protos.h
7005 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7006 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7007 (rs6000_debug_mode_dependent_address)
7008 (rs6000_mode_dependent_address_ptr): Likewise.
7010 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7013 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7015 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7016 * tree-sra.c (create_access_replacement): Call unshare_expr before
7017 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7018 * dwarf2out.c: Include tree-flow.h.
7019 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7020 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7021 Handle DW_OP_bit_piece.
7022 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7023 construct_piece_list, adjust_piece_list): New functions.
7024 (add_var_loc_to_decl): Handle SRA optimized variables.
7025 Adjust for var_loc_note to loc field renaming.
7026 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7027 in VAR_LOCATION note.
7028 (new_loc_descr_op_bit_piece): New function.
7029 (dw_sra_loc_expr): New function.
7030 (dw_loc_list): Use it. Don't handle the last range after the
7031 loop, handle it inside of the loop. Adjust for var_loc_note
7032 to loc field renaming.
7033 (add_location_or_const_value_attribute): Only special case
7034 single entry loc lists if loc is NOTE_P. Adjust for
7035 var_loc_note to loc field renaming.
7036 (dwarf2out_var_location): Don't set newloc->var_loc_note
7037 and newloc->next here.
7039 2010-05-12 Jan Hubicka <jh@suse.cz>
7041 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7043 * cgraph.h (cgraph_only_called_directly_p,
7044 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7045 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7046 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7048 * ipa.c (cgraph_remove_unreachable_nodes): Use
7049 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7051 * tree-inline.c (copy_bb): Check address_taken flag.
7052 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7053 externally_visible flag.
7055 2010-05-12 Jason Merrill <jason@redhat.com>
7059 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7060 * sdbout.c (plain_type_1): Likewise.
7061 * dwarf2out.c (is_base_type): Likewise.
7062 (gen_type_die_with_usage): Likewise. Generate
7063 DW_TAG_unspecified_type for any LANG_TYPE.
7065 2010-05-12 Jan Hubicka <jh@suse.cz>
7067 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7069 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7070 (cgraph_clone_edge): Update.
7071 (cgraph_node_remove_callees): Remove indirect calls too.
7072 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7073 (cgraph_create_indirect_edge): Update prototype.
7074 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7075 is_proper_for_analysis.
7076 (add_new_function, visited_nodes, function_insertion_hook_holder,
7077 get_local_reference_vars_info, mark_address_taken, mark_address,
7078 mark_load, mark_store, check_asm_memory_clobber, check_call,
7079 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7080 (ipa_init): Do not initialize visited_nodes;
7081 function_insertion_hook_holder.
7082 (analyze_variable): Rewrite.
7083 (analyze_function): Rewrite.
7084 (copy_local_bitmap): Remove.
7085 (duplicate_node_dat): Do not duplicate local info.
7086 (generate_summary): Simplify to only walk cgraph.
7087 (write_node_summary_p, ipa_reference_write_summary,
7088 ipa_reference_read_summary): Remove.
7089 (propagate): Do not remove function insertion;
7091 (pass_ipa_reference): NULLify summary handling fields.
7092 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7093 (input_edge): Input ecf_flags.
7094 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7095 (update_indirect_edges_after_inlining): Ignore edges with unknown
7098 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7100 * implicit-zee.c: New file.
7101 * tree-pass.h (pass_implicit_zee): Declare.
7102 * passes.c (init_optimization_passes): Add zee pass.
7103 * common.opt (fzee): New flag.
7104 * timevar.def (TV_ZEE): Define.
7105 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7107 * Makefile.in (implicit-zee.o): Add new build file.
7109 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7110 Nathan Froyd <froydnj@codesourcery.com>
7112 * c-common.c (sync_resolve_params): Remove write-only variable.
7114 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7116 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7117 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7118 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7119 * targhooks.c (default_mode_dependent_address_p): New function.
7120 * targhooks.h (default_mode_dependent_address_p): Declare function.
7121 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7122 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7123 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7124 target hook. Change return type to bool.
7125 * recog.h (mode_dependent_address_p): Change return type to bool.
7127 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7128 Nathan Froyd <froydnj@codesourcery.com>
7130 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7131 build_function_type_2, build_function_type_3): Remove.
7132 (mudflap_init): Use build_function_type_list.
7134 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7135 Nathan Froyd <froydnj@codesourcery.com>
7137 * coverage.c (build_fn_info_value): Call build_constructor instead of
7138 build_constructor_from_list.
7139 (build_ctr_info_value): Likewise.
7140 (build_gcov_info): Likewise.
7142 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7144 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7145 resultant constructor.
7146 (build_constructor_single): Don't set TREE_CONSTANT.
7147 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7149 2010-05-12 Jan Hubicka <jh@suse.cz>
7151 * cgraph.h (struct varpool_node): Add aux.
7152 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7153 * varpool.c (varpool_remove_node): Do not remove initializer.
7154 (varpool_reset_queue): Export.
7155 (varpool_finalize_decl): Volatile vars are forced to be output.
7156 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7158 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7159 process_references, varpool_can_remove_if_no_refs): New functions.
7160 (cgraph_remove_unreachable_nodes): Handle variables too.
7162 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7165 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7167 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7170 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7171 change value of ORT_TASK.
7172 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7173 (omp_notice_threadprivate_variable): New function.
7174 (omp_notice_variable): Call it for threadprivate variables.
7175 If enclosing ctx is a task, print enclosing task rather than
7176 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7177 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7178 if task has untied clause.
7181 * dwarf2out.c (base_type_die): Don't add name attribute here.
7182 (modified_type_die): Instead of sizetype use
7183 its underlying original type. If a DW_TAG_base_type doesn't
7184 have name added, add __unknown__.
7185 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7186 always call force_type_die instead.
7188 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7190 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7191 for __stack_chk_guard.
7193 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7195 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7196 don't call start_source_file debug hook here...
7197 (finish_options): ... but here, after outputting predefined and
7198 command line defines and undefs.
7201 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7203 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7204 optimizing away empty bb with no successors, move over its
7205 footer chain to fallthru predecessor.
7206 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7207 (rtl_split_edge): For asm goto call patch_jump_insn even if
7208 splitting fallthru edge.
7211 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7212 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7213 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7214 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7218 * c-parser.c (c_parser_expression): Mark LHS of a comma
7219 expression as read if it is a decl, handled component or
7220 COMPOUND_EXPR with that on the RHS.
7221 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7222 if it is a decl or handled component.
7224 2010-05-11 Jan Hubicka <jh@suse.cz>
7226 * lto-symtab.c (lto_symtab_free): New function.
7227 * lto-streamer.h (lto_symtab_free): Declare.
7229 2010-05-11 Jan Hubicka <jh@suse.cz>
7231 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7232 that if function is needed it is reachable.
7233 (lto_output_node): See if it the function is reachable or referenced.
7234 (output_cgraph): Update call of lto_output_node.
7235 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7237 2010-05-11 Jan Hubicka <jh@suse.cz>
7239 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7242 2010-05-11 Jan Hubicka <jh@suse.cz>
7244 PR tree-optimize/44063
7245 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7247 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7249 (estimate_function_body_sizes): Compute sizes even when disregarding.
7251 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7253 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7255 2010-05-11 Jan Hubicka <jh@suse.cz>
7257 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7258 into every boundary.
7260 2010-05-11 Jan Hubicka <jh@suse.cz>
7262 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7264 2010-05-11 Jan Hubicka <jh@suse.cz>
7266 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7267 lto_streamer_cache_delete): Put nodes into heap.
7268 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7271 2010-05-11 Jan Hubicka <jh@suse.cz>
7273 * cgraphbuild.c (cgraph_rebuild_references): New.
7274 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7276 * cgraph.h (cgraph_rebuild_references): Declare.
7277 * tree-inline.c (tree_function_versioning): Use it.
7278 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7280 2010-05-11 Jan Hubicka <jh@suse.cz>
7282 * cgraph.c: Include ipa-utils.h
7283 (cgraph_create_virtual_clone): Update references.
7284 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7286 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7288 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7289 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7292 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7294 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7296 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7298 * gcc.c (execute): For -### don't quote arguments that
7299 contain just alphanumerics and _/-. characters.
7300 * doc/invoke.texi: Document that change for -###.
7303 * df-problems.c (struct dead_debug): Add to_rescan field.
7304 (dead_debug_init): Clear to_rescan field.
7305 (dead_debug_finish): Rescan all debug insns in to_rescan
7306 bitmap and free the bitmap.
7307 (dead_debug_insert_before): Instead of rescanning debug insns
7308 immediately queue their rescanning until dead_debug_finish.
7309 (df_note_bb_compute): After dead_debug_add do continue instead
7312 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7315 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7316 clear also INSN_REG_USE_LIST.
7318 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7320 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7322 2010-05-10 Jan Hubicka <jh@suse.cz>
7324 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7327 2010-05-10 Jan Hubicka <jh@suse.cz>
7329 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7331 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7332 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7333 (lto_streamer_cache_create): Init alloc pool.
7334 (lto_streamer_cache_delete): Free alloc pool.
7335 * lto-streamer.h: Include alloc pool.
7336 (lto_streamer_cache_d): Use alloc pool.
7337 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7339 2010-05-10 Jan Hubicka <jh@suse.cz>
7341 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7342 * cgraphbuild.c: Include except.h
7343 (record_type_list, record_eh_tables): New function.
7344 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7346 2010-05-10 Jan Hubicka <jh@suse.cz>
7348 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7349 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7352 2010-05-10 Michael Matz <matz@suse.de>
7354 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7355 (can_reassociate_p): Use FLOAT_TYPE_P.
7356 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7357 (vect_force_simple_reduction): ... this.
7358 * tree-parloops.c (gather_scalar_reductions): Use
7359 vect_force_simple_reduction.
7360 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7361 vect_is_simple_reduction, add modify argument, if true rewrite
7362 "a-b" into "a+(-b)".
7363 (vect_is_simple_reduction, vect_force_simple_reduction): New
7365 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7367 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7368 Vladimir Makarov <vmakarov@redhat.com>
7370 PR rtl-optimization/44012
7371 * ira-build.c (remove_unnecessary_allocnos): Nullify
7372 regno_allocno_map of the removed allocno.
7374 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7376 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7378 * configure: Regenerate.
7380 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7382 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7384 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7385 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7387 * configure: Regenerate.
7389 2010-05-10 Richard Guenther <rguenther@suse.de>
7391 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7392 marked if the entry identifier is marked.
7394 2010-05-10 Richard Guenther <rguenther@suse.de>
7396 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7397 (handle_fnspec_attribute): New function.
7398 * gimple.h (gimple_call_return_flags): Declare.
7399 (gimple_call_arg_flags): Likewise.
7400 * gimple.c (gimple_call_arg_flags): New function.
7401 (gimple_call_return_flags): Likewise.
7402 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7404 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7406 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7407 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7409 (make_heapvar_for): ... this new function.
7410 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7411 (handle_lhs_call): Likewise.
7412 (find_func_aliases): Adjust.
7414 2010-05-10 Richard Guenther <rguenther@suse.de>
7416 PR tree-optimization/44050
7417 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7419 2010-05-10 Wei Guozhi <carrot@google.com>
7422 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7424 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7427 * c-typeck.c (lookup_field): Take a type directly. Update
7429 (build_component_ref): Update call to lookup_field.
7430 (set_init_label): Use lookup_field to find initialized field.
7431 Handle returned list of fields like a sequence of designators.
7433 2010-05-09 Richard Guenther <rguenther@suse.de>
7436 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7437 handle &FUNCTION_DECL.
7439 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7442 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7443 structures and unions recursively.
7444 (detect_field_duplicates): Move duplicate detection with a hash to
7445 detect_field_duplicates_hash. Always use a hash if anonymous
7446 structures or unions are present.
7447 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7450 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7453 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7454 detect Atom, Core 2 and Core i7.
7456 2010-05-09 Richard Guenther <rguenther@suse.de>
7458 * gcc.c (store_arg): Handle temporary file deletion for
7461 2010-05-09 Richard Guenther <rguenther@suse.de>
7464 * ipa-inline.c (estimate_function_body_sizes): Return after
7465 disregarding inline limits.
7467 2010-05-09 Richard Guenther <rguenther@suse.de>
7469 * gcc.c (store_arg): Revert last change.
7471 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7474 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7475 (optimize_ops_list): Call it.
7477 2010-05-08 Richard Guenther <rguenther@suse.de>
7479 PR tree-optimization/44030
7480 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7481 NECESSARY flag if we propagate from a inserted expression.
7483 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7485 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7486 domain types as equal if they are both PLACEHOLDER_EXPRs.
7488 2010-05-08 Richard Guenther <rguenther@suse.de>
7490 * lto-wrapper.c (run_gcc): Remove linker output from
7491 command line for LTRANS invocation.
7493 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7495 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7496 lto-macho as lto_binary_reader.
7497 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7498 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7499 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7500 in lto_start and lto_end calls.
7501 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7503 (scan_prog_file): Update is_elf_or_coff call.
7504 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7506 * collect2.c (main): Fix enum comparison.
7508 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7510 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7511 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7512 and TARGET_ASM_LTO_END.
7513 * darwin.c: Include obstack.h and lto-streamer.h.
7514 (lto_section_names_offset, lto_section_names_obstack,
7515 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7517 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7518 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7519 to a temporary file.
7520 (darwin_asm_lto_end): New function. Restore asm_out_file.
7521 (darwin_asm_named_section): For LTO sections, replace the name with
7522 the offset of the section name in a string table, and build this
7524 (darwin_file_start): Initialize global vars for LTO support.
7525 (darwin_file_end): If output to asm_out_file was redirected, append it
7526 to the proper asm_out_file here. Add the section names section.
7528 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7530 * c-pragma.c (pending_weak_d, pending_weak): New.
7531 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7532 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7533 handle_pragma_weak): Update the uses of pending_weaks.
7535 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7537 PR documentation/44016
7538 * doc/standards.texi (Standards): Link to unversioned
7539 cxx0x_status.html page.
7541 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7544 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7545 in addition to TREE_USED, to avoid "set but unused" warnings.
7547 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7549 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7550 (is_loop_prefetching_profitable): Do not insert prefetches
7551 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7552 times the prefetch ahead distance.
7554 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7556 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7557 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7558 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7561 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7563 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7564 a diagnostic info when the insn-to-mem ratio is too small.
7566 2010-05-07 Richard Guenther <rguenther@suse.de>
7568 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7570 (store_arg): Queue temp_filename for deletion instead of
7573 2010-05-07 Richard Guenther <rguenther@suse.de>
7575 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7576 (run_gcc): Handle LTRANS phase invocation.
7577 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7579 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7581 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7582 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7584 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7586 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7588 2010-05-07 Richard Guenther <rguenther@suse.de>
7590 PR tree-optimization/44020
7591 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7592 code when PRE is not yet initialized.
7594 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7596 * config/mips/dbxmdebug.h: Remove.
7597 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7599 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7601 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7602 with null pointer and also warn about ordered comparison of zero with
7605 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7607 * graphite-blocking.c
7608 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7609 * graphite-clast-to-gimple.c
7610 (clast_to_gcc_expression): Same.
7611 (precision_for_value): Same.
7612 (precision_for_interval): Same.
7613 (gcc_type_for_interval): Same.
7614 (graphite_create_new_guard): Same.
7615 (compute_bounds_for_level): Same.
7616 (graphite_create_new_loop_guard): Same.
7617 * graphite-interchange.c
7618 (build_linearized_memory_access): Same.
7619 (pdr_stride_in_loop): Same.
7620 (memory_strides_in_loop_1): Same.
7621 (memory_strides_in_loop): Same.
7622 (extend_scattering): Same.
7623 (psct_scattering_dim_for_loop_depth): Same.
7624 (pbb_number_of_iterations): Same.
7626 (debug_iteration_domains): Same.
7628 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7629 (ppl_set_inhomogeneous_gmp): Same.
7630 (ppl_strip_loop): Same.
7631 (ppl_lexico_compare_linear_expressions): Same.
7632 (ppl_read_polyhedron_matrix): Same.
7633 (ppl_max_for_le_pointset): Same.
7635 (ppl_read_polyhedron_matrix): Same.
7636 (tree_int_to_gmp): Same.
7637 (gmp_cst_to_tree): Same.
7638 (ppl_set_inhomogeneous): Same.
7639 (ppl_set_inhomogeneous_tree): Same.
7640 (ppl_set_coef): Same.
7641 (ppl_set_coef_tree): Same.
7642 * graphite-sese-to-poly.c
7643 (build_pbb_scattering_polyhedrons): Same.
7644 (build_scop_scattering): Same.
7645 (scan_tree_for_params_right_scev): Same.
7646 (scan_tree_for_params): Same.
7647 (find_params_in_bb): Same.
7648 (find_scop_parameters): Same.
7649 (add_upper_bounds_from_estimated_nit): Same.
7650 (build_loop_iteration_domains): Same.
7651 (add_condition_to_domain): Same.
7652 (pdr_add_memory_accesses): Same.
7654 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7656 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7657 CLooG's value_* macros to their respective mpz_* counterparts.
7658 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7659 (graphite_create_new_loop_guard): Same.
7660 * graphite-interchange.c (build_linearized_memory_access): Same.
7661 (pdr_stride_in_loop): Same.
7662 (memory_strides_in_loop_1): Same.
7663 (1st_interchange_profitable_p): Same.
7664 * graphite-poly.c (extend_scattering): Same.
7665 (psct_scattering_dim_for_loop_depth): Same.
7666 (pbb_number_of_iterations): Same.
7667 (pbb_number_of_iterations_at_time): Same.
7668 * graphite-poly.h (new_1st_loop): Same.
7669 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7670 (oppose_constraint): Same.
7671 (insert_constraint_into_matrix): Same.
7672 (ppl_set_inhomogeneous_gmp): Same.
7673 (ppl_set_coef_gmp): Same.
7674 (ppl_strip_loop): Same.
7675 (ppl_lexico_compare_linear_expressions): Same.
7676 (ppl_max_for_le_pointset): Same.
7677 (ppl_min_for_le_pointset): Same.
7678 (ppl_build_realtion): Same.
7679 * graphite-ppl.h (gmp_cst_to_tree): Same.
7680 (ppl_set_inhomogeneous): Same.
7681 (ppl_set_inhomogeneous_tree): Same.
7682 (ppl_set_coef): Same.
7683 (ppl_set_coef_tree): Same.
7684 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7685 (build_scop_scattering): Same.
7686 (add_value_to_dim): Same.
7687 (scan_tree_for_params_right_scev): Same.
7688 (scan_tree_for_params_int): Same.
7689 (scan_tree_for_params): Same.
7690 (find_params_in_bb): Same.
7691 (find_scop_parameters): Same.
7692 (add_upper_bounds_from_estimated_nit): Same.
7693 (build_loop_iteration_domains): Same.
7694 (create_linear_expr_from_tree): Same.
7695 (add_condition_to_domain): Same.
7696 (pdr_add_memory_accesses): Same.
7698 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7699 Jason Merrill <jason@redhat.com>
7701 * c-common.c (c_common_reswords): Add nullptr.
7702 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7703 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7704 (gen_type_die_with_usage): Likewise.
7705 * dbxout.c (dbxout_type): Likewise.
7706 * sdbout.c (plain_type_1): Likewise.
7708 2010-05-06 Jason Merrill <jason@redhat.com>
7710 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7711 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7713 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7715 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7716 stripping WITH_SIZE_EXPR.
7717 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7720 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7722 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7723 list of obsolete configurations.
7724 Disabled check for obsolete configurations.
7725 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7726 Removed support for previous versions.
7727 * config/mips/iris.h: Removed.
7728 * config/mips/iris5.h: Removed.
7729 * config/mips/iris6.h: Merged old iris.h contents.
7730 (TARGET_IRIX): Removed.
7731 (DRIVER_SELF_SPECS): Removed mabi=32.
7732 (IDENT_ASM_OP): Removed undef.
7733 (STARTFILE_SPEC): Removed mabi=32.
7734 (ENDFILE_SPEC): Likewise.
7735 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7736 (MACHINE_TYPE): Update for IRIX 6.5.
7737 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7738 TARGET_IRIX by TARGET_IRIX6.
7739 (mips_file_start): Likewise.
7740 (mips_output_external): Remove IRIX 5/6 O32 support.
7741 (mips_output_function_prologue): Likewise.
7742 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7744 (TARGET_CPU_CPP_BUILTINS): Likewise.
7745 (TARGET_IRIX): Removed.
7746 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7747 (MULTILIB_DIRNAMES): Removed 32.
7748 (MULTILIB_OSDIRNAMES): Removed ../lib.
7749 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7750 (Specific, mips-sgi-irix5): Document removal.
7751 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7752 Remove references to older IRIX 6 releases and the O32 ABI.
7754 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7757 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7758 instead of DF_REF_REAL_REG.
7760 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7763 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7764 handling to still return true for x64 targets.
7766 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7768 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7770 2010-05-06 Jan Hubicka <jh@suse.cz>
7772 PR tree-optimization/43791
7773 * ipa-inline.c (update_caller_keys): Remove bogus
7774 disregard_inline_limits check.
7776 2010-05-06 Michael Matz <matz@suse.de>
7778 PR tree-optimization/43984
7779 * tree-ssa-pre.c (inserted_phi_names): Remove.
7780 (inserted_exprs): Change to bitmap.
7781 (create_expression_by_pieces): Set bits, don't append to vector.
7782 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7783 (eliminate): Don't look at inserted_phi_names, remove deleted
7784 insns from inserted_exprs.
7785 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7786 (init_pre, fini_pre): Allocate and free bitmaps.
7787 (execute_pre): Insert insns on edges before elimination.
7789 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7791 * tree.c (initializer_zerop): Handle STRING_CST.
7793 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7796 * doc/invoke.texi (Wimplicit): Document as C only.
7797 * opts.c (common_handle_option): Add argument kind.
7798 (handle_option): Rename as read_cmdline_option. Factor out code to...
7799 (handle_option): ... here. New.
7800 (handle_options): Rename as read_cmdline_options.
7801 (decode_options): Update call.
7802 (set_option): Use option index instead of option pointer. Classify
7803 diagnostics correctly.
7804 (enable_warning_as_error): Call handle_option.
7805 * opts.h (set_option): Update declaration.
7806 (handle_option): Declare.
7807 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7808 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7809 * c-opts.c (set_Wimplicit): Delete.
7810 (c_family_lang_mask): New static constant.
7811 (c_common_handle_option): Add argument kind. Use handle_option
7812 instead of set_Wimplicit.
7813 (c_common_post_options): warn_implicit and warn_implicit_int
7814 are disabled by default.
7815 * c-common.c (warn_implicit): Do not define here.
7816 * c-common.h (warn_implicit): Do not declare here.
7817 (c_common_handle_option): Update declaration.
7818 * lto-opts.c (lto_reissue_options): Update call to set_option.
7820 2010-05-06 Richard Guenther <rguenther@suse.de>
7822 PR tree-optimization/43571
7823 * domwalk.c (walk_dominator_tree): Walk the dominator
7824 sons in more optimal order.
7826 2010-05-06 Richard Guenther <rguenther@suse.de>
7828 PR tree-optimization/43934
7829 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7830 (stmt_cost): Likewise.
7831 (extract_true_false_args_from_phi): New helper.
7832 (determine_max_movement): For PHI nodes verify we can hoist them
7833 and compute their cost.
7834 (determine_invariantness_stmt): Handle PHI nodes.
7835 (move_computations_stmt): Likewise. Hoist PHI nodes in
7836 if-converted form using COND_EXPRs.
7837 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7838 (tree_ssa_lim): Likewise.
7839 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7840 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7842 2010-05-06 Richard Guenther <rguenther@suse.de>
7844 PR tree-optimization/43987
7845 * tree-ssa-structalias.c (could_have_pointers): For possibly
7846 address-taken variables force pointers to be recorded.
7847 (create_variable_info_for_1): Likewise.
7848 (push_fields_onto_fieldstack): Pass in wheter all fields
7850 (find_func_aliases): Query types instead of vars whether
7851 they contain pointers where appropriate.
7853 2010-05-06 Jan Hubicka <jh@suse.cz>
7855 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7856 (record_reference, mark_address, mark_load, mark_store): Record
7858 (record_references_in_initializer): Update call of record_references.
7859 (rebuild_cgraph_edges): Remove all references before rebuiding.
7860 * cgraph.c (cgraph_create_node): Clear ref list.
7861 (cgraph_remove_node): Remove references.
7862 (dump_cgraph_node): Dump references.
7863 (cgraph_clone_node): Clone references.
7864 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7865 (struct cgraph_node, varpool_node): Add ref_lst.
7866 * ipa-ref.c: New file.
7867 * ipa-ref.h: New file.
7868 * ipa-ref-inline.h: New file.
7869 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7870 (referenced_from_other_partition_p): New function.
7871 (lto_output_varpool_node): Take set arugment; call
7872 referenced_from_other_partition.
7873 (lto_output_ref): New.
7874 (add_references): New.
7876 (output_cgraph): Compute boundary based on references; output refs.
7877 (output_varpool): Accept cgraph_node_set argument.
7880 (input_cgraph): Call input_refs.
7881 * lto-section-in.c (lto_section_name): Add refs.
7882 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7883 (ipa-ref.o): New file.
7884 * varpool.c (varpool_node): Clear ipa ref list.
7885 (varpool_remove_node): Remove references.
7886 (dump_varpool_node): Dump references.
7887 (varpool_assemble_decl): Only compile finalized ones.
7888 (varpool_extra_name_alias): Initialize ref list.
7889 * lto-streamer.c (lto-get_section_name): Add .refs section.
7890 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7891 (referenced_from_other_partition_p): Declared.
7893 2010-05-06 Ira Rosen <irar@il.ibm.com>
7895 PR tree-optimization/43901
7896 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7897 type is not NULL if it's transformation phase, and return
7898 FALSE if it's analysis.
7899 (vectorizable_conversion, vectorizable_operation,
7900 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7902 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7904 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7906 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7908 * config/mips/mips-protos.h
7909 (mips_small_register_classes_for_mode_p): Delete prototype.
7911 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7913 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7914 * config/arm/arm.c (multiple_operation_profitable_p,
7915 compute_offset_order): New static functions.
7916 (load_multiple_sequence, store_multiple_sequence): Use them.
7917 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7918 memory offsets, not register numbers.
7919 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7921 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7923 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7924 (get_pending_sizes, put_pending_size, put_pending_sizes):
7925 Update the uses of pending_sizes.
7926 * c-decl.c (store_parm_decls): Likewise.
7927 * c-tree.h (struct c_arg_info): Likewise.
7928 * tree.h: Update the prototype for get_pending_sizes and
7931 2010-05-05 Jason Merrill <jason@redhat.com>
7934 * c-common.c (handle_aligned_attribute): Respect
7935 ATTR_FLAG_TYPE_IN_PLACE.
7938 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7939 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7940 (TARGET_INITIALIZER): Use it.
7941 * c-common.c (attribute_takes_identifier_p): Call it.
7942 * c-common.h: Update prototype.
7943 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7944 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7946 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7949 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7950 DW_ID_down_case for Fortran compilation units.
7952 2010-05-05 Jan Hubicka <jh@suse.cz>
7954 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7957 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7959 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7960 a variable-sized RESULT_DECL.
7962 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7964 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7966 2010-05-05 Jason Merrill <jason@redhat.com>
7969 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7971 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7973 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7974 Jakub Jelinek <jakub@redhat.com>
7977 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7978 (dead_debug_init, dead_debug_finish): New functions.
7979 (dead_debug_add, dead_debug_insert_before): Likewise.
7980 (df_note_bb_compute): Initialize a dead_debug object, add dead
7981 debug uses to it, insert debug bind insns before death insns,
7982 reset debug insns that refer to pending uses at the end.
7983 * rtl.h (make_debug_expr_from_rtl): New prototype.
7984 * varasm.c (make_debug_expr_from_rtl): New function.
7986 2010-05-05 Jan Hubicka <jh@suse.cz>
7988 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7989 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7990 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7991 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7992 lto_varpool_encoder_encode_initializer_p,
7993 lto_set_varpool_encoder_encode_initializer): New functions.
7994 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7995 call output_varpool.
7996 (input_varpool_node): Do not always set analyzed.
7997 (input_cgraph_1): Return vector of cgraph nodes.
7998 (input_varpool_1): Return vector of varpools.
7999 (input_cgraph): Free the vectors.
8000 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8001 output only initializers needed.
8002 (lto_output): Only call output_cgraph.
8003 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8004 * lto-section-out.c (lto_new_out_decl_state): Initialize
8005 state->varpool_node_encoder.
8006 * lto-streamer.h (lto_varpool_encoder_d): New.
8007 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8008 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8009 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8010 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8011 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8013 (output_varpool, input_varpool): Remove declarations.
8015 2010-05-05 Jan Hubicka <jh@suse.cz>
8017 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8018 with body can prevail.
8020 2010-05-05 Jan Hubicka <jh@suse.cz>
8022 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8025 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8027 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8029 * gengtype.h (erro_at_line): Constify pos argument.
8031 * gengtype.c: Include hashtab.h.
8032 (enum gc_used): Document GC_MAYBE_POINTED_TO.
8033 (error_at_line): Constify pos argument.
8034 (do_typedef): Initialize p->opt field.
8035 (get_file_gtfilename): Fix comment typo.
8036 (struct walk_type_data): Constify line field.
8037 (get_output_file_for_structure): New function.
8038 (write_local_func_for_structure): Constify orig_s argument.
8039 Use get_output_file_for_structure.
8040 (write_func_for_structure): Use get_output_file_for_structure.
8041 (INDENT): New define.
8042 (dump_pair, dump_type, dump_type_list, dump_typekind)
8043 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8044 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8046 (seen_types): New variable.
8047 (main): New variable do_dump. Process "-d" command line option.
8048 Call dump_everything if dump requested.
8050 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8052 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8053 in a temporary instead of invoking the macro multiple times.
8054 (track_expr_p): Likewise.
8056 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8058 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8060 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8061 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8062 conditions for printing notes.
8063 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8064 true, update documentation.
8065 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8067 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8070 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8073 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8076 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8077 (*sse_prologue_save_insn1): Likewise.
8078 (SSE prologue save splitter): Likewise.
8080 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8082 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8083 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8084 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8085 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8086 all decls. Call it on DECL_FIELD_OFFSET of fields.
8087 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8088 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8090 2010-05-04 Martin Jambor <mjambor@suse.cz>
8092 * tree-sra.c (build_access_from_expr_1): The first parameter type
8093 changed to simple tree.
8094 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8095 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8097 (build_accesses_from_assign): Removed all parameters except for a
8098 simple gimple statement. Now returns a simple bool.
8099 (scan_function): All non-analysis parts moved to separate functions
8100 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8101 parameters and updated both callers.
8102 (sra_modify_expr): Removed parameter data.
8103 (sra_modify_function_body): New function.
8104 (perform_intra_sra): Call sra_modify_function_body to modify the
8106 (replace_removed_params_ssa_names): Parameter data changed into
8108 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8109 changed the parameter dont_convert to convert with the opposite
8111 (sra_ipa_modify_assign): Parameter data changed into adjustments
8112 vector, return value changed to bool.
8113 (ipa_sra_modify_function_body): New function.
8114 (sra_ipa_reset_debug_stmts): Updated a comment.
8115 (modify_function): Use ipa_sra_modify_function_body to modify function
8118 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8121 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8122 (canon_true_dependence): Likewise.
8123 (write_dependence_p): Likewise.
8125 2010-05-04 Jan Hubicka <jh@suse.cz>
8127 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8128 * cgraphbuild.c: Include ipa-utils.h
8129 (record_reference_ctx): New struct.
8130 (record_reference): Simplify to work on initializers; not statements.
8131 (mark_address, mark_load, mark_store): New.
8132 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8134 (record_references_in_initializer): Update use of record_reference.
8135 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8138 2010-05-04 Jan Hubicka <jh@suse.cz>
8140 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8141 node will be removed anyway.
8142 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8143 relink aliases of node into prevailing node.
8144 * varpool.c (varpool_remove_node): Remove aliases properly;
8145 when removing node, remove all its aliases too; remove DECL_INITIAL
8146 of removed node; ggc_free the varpool node.
8148 2010-05-04 Richard Guenther <rguenther@suse.de>
8150 PR tree-optimization/43879
8151 * tree-ssa-structalias.c (alias_get_name): Use
8152 DECL_ASSEMBLER_NAME if available.
8153 (create_function_info_for): Return the varinfo node.
8154 (ipa_pta_execute): Associate same-body aliases and extra names
8155 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8157 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8159 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8161 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8164 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8165 only if HONOR_REG_ALLOC_ORDER is not defined.
8167 2010-05-04 Richard Guenther <rguenther@suse.de>
8169 PR tree-optimization/43949
8170 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8173 2010-04-26 Jason Merrill <jason@redhat.com>
8175 * c.opt (-fstrict-enums): New.
8176 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8178 2010-05-03 David Ung <davidu@mips.com>
8179 James E. Wilson <wilson@codesourcery.com>
8181 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8182 emit the trap instruction before the divide for TUNE_74K.
8184 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8186 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8187 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8188 based on the above, for new target hook.
8190 * hooks.c (hook_bool_mode_true): New generic hook.
8191 * hooks.h (hook_bool_mode_true): Add prototype.
8193 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8195 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8196 target hook, set to hook_bool_mode_false.
8197 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8198 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8199 with targetm.small_register_classes_for_mode_p.
8200 (find_reusable_reload): Likewise.
8201 (combine_reloads): Likewise.
8202 * reload1.c (reload_as_needed): Likewise.
8203 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8204 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8205 dead_or_predicable): Likewise.
8206 * regmove.c (optimize_reg_copy_1): Likewise.
8207 * calls.c (prepare_call_address): Likewise.
8208 (precompute_register_parameters): Likewise.
8210 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8212 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8213 implementation of the hook that considers all register classes
8214 small except for SH64.
8215 (sh_override_options): Use the new hook.
8216 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8219 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8221 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8222 implementation of the hook that considers all register classes
8224 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8227 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8229 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8230 implementation of the hook that considers all register classes
8232 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8235 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8237 * config/m32c/m32c.h: Likewise.
8238 * config/pdp11/pdp11.h: Likewise.
8239 * config/avr/avr.h: Likewise.
8240 * config/xtensa/xtensa.h: Likewise.
8241 * config/m68hc11/m68hc11.h: Likewise.
8242 * config/mn10300/mn10300.h: Likewise.
8243 * config/mcore/mcore.h: Likewise.
8244 * config/h8300/h8300.h: Likewise.
8245 * config/bfin/bfin.h: Likewise.
8247 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8248 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8250 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8252 * double-int.h (tree_to_double_int): Remove macro.
8253 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8254 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8255 (tree_to_double_int): New function.
8256 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8258 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8260 2010-05-03 Richard Guenther <rguenther@suse.de>
8262 PR tree-optimization/43971
8263 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8264 constraints in the !flag_delete_null_pointer_checks case.
8266 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8269 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8270 result mode matches original rtl mode.
8272 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8275 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8277 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8279 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8280 when processing flag options.
8282 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8284 * gcov-iov.c (main): Change format string placeholder
8285 from %#08x to 0x%08x.
8286 * genchecksum.c (dosum): Change format string placeholder
8287 from %#02x to 0x%02x.
8289 2010-05-02 Richard Guenther <rguenther@suse.de>
8291 PR tree-optimization/43879
8292 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8294 2010-05-02 Bruno Haible <bruno@clisp.org>
8296 * doc/extend.texi (Function Attributes): Fix a typo.
8298 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8301 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8302 placeholder from 0x%x to %#x.
8303 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8304 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8305 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8306 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8307 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8308 * config/i386/i386.c (ix86_target_string): Ditto.
8309 * config/i386/i386.c (output_pic_addr_const): Ditto.
8310 (print_operand): Ditto.
8312 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8314 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8315 placeholder from 0x%x to %#x.
8316 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8317 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8318 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8319 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8320 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8321 * optc-gen.awk: Ditto.
8322 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8323 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8324 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8325 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8327 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8329 * target.h (struct calls): Add function_value_regno_p field.
8330 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8331 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8332 * targhooks.c (default_function_value_regno_p): New function.
8333 * targhooks.h (default_function_value_regno_p): Declare function.
8334 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8335 * builtins.c. (apply_result_size): (Ditto.).
8336 * combine.c. (likely_spilled_retval_p): (Ditto.).
8337 * mode-switching.c. Include 'target.h'.
8338 (create_pre_exit): Use function_value_regno_p hook.
8339 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8340 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8341 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8343 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8344 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8345 (ix86_function_value_regno_p): Declare as static, change argument
8346 type to const unsigned int.
8347 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8349 2010-05-01 Richard Guenther <rguenther@suse.de>
8351 PR tree-optimization/43949
8352 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8354 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8356 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8358 * rtl.h (CONST_DOUBLE_P): Define.
8359 (rtx_to_double_int): Declare.
8360 * emit-rtl.c (rtx_to_double_int): New function.
8361 * dwarf2out.c (insert_double): New function.
8362 (loc_descriptor, add_const_value_attribute): Clean up, use
8363 rtx_to_double_int and insert_double functions.
8365 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8367 * doc/extend.texi (Inline): Add missing return keyword to examples.
8368 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8371 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8373 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8374 the variable part of the offset as well. Use highest_pow2_factor for
8375 all alignment checks.
8377 2010-04-30 Richard Guenther <rguenther@suse.de>
8379 PR tree-optimization/43879
8380 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8383 2010-04-30 Jan Hubicka <jh@suse.cz>
8385 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8387 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8389 2010-04-30 Jan Hubicka <jh@suse.cz>
8391 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8393 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8394 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8395 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8396 cgraph_node_set_needs_ltrans_p): Remove.
8398 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8400 * sdbout.c: Include vec.h, do not include varray.h.
8401 (deferred_global_decls, sdbout_global_decl,
8402 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8403 * toplev.c: Do not include varray.h.
8404 (dump_memory_report): Do not dump VARRAY statistics.
8405 * gengtype.c (open_base_file): Ignore varray.h.
8406 * Makefile.in: Update for abovementioned changes.
8407 Remove all traces of varray.c and varray.h.
8408 * varray.c: Remove file.
8409 * varray.h: Remove file.
8411 2010-04-30 Jan Hubicka <jh@suse.cz>
8413 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8416 2010-04-30 Jan Hubicka <jh@suse.cz>
8418 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8421 2010-04-30 Richard Guenther <rguenther@suse.de>
8423 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8424 constraints for CONSTRUCTOR.
8426 2010-04-30 Richard Guenther <rguenther@suse.de>
8429 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8430 first after all lowering passes.
8432 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8434 * toplev.c: Include varray.h for statistics dumping.
8435 * tree.h: Do not declare varray_head_tag.
8436 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8437 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8438 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8439 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8440 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8441 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8442 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8443 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8445 * Makefile.in: Update for abovementioned changes.
8447 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8450 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8452 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8454 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8455 Use this function to do machine-specific conversion.
8456 (picochip_legitimize_reload_address): Likewise.
8457 (picochip_legitimate_address_p): Check valid base register only if
8459 (picochip_check_conditional_copy): Check for modw only if opnd is
8461 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8462 to call the function in c.
8463 * config/picochip/picochip-protos.h
8464 (picochip_legitimize_reload_address): Define.
8465 * config/picochip/picochip.md (supported_compare1): Define.
8467 2010-04-30 Jan Hubicka <jh@suse.cz>
8469 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8470 (cgraph_global_info): Remove inlined.
8471 (LTO_cgraph_tag_names): Remove.
8472 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8473 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8474 simplify cgraph tags and document.
8475 (lto_output_node): Use only LTO_cgraph_unavail_node and
8476 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8477 for_functions_valid, global info, process and output flags.
8478 (input_overwrite_node): Initialize estimated stack size and
8479 estimated growth. Do not read flags we no longer store.
8480 (input_node): Likewise do not read info no longer stored.
8481 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8484 2010-04-30 Richard Guenther <rguenther@suse.de>
8486 PR tree-optimization/43879
8487 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8488 handle non-zero initializers.
8490 2010-04-30 Richard Guenther <rguenther@suse.de>
8492 * builtins.c (fold_builtin_1): Delete free (0).
8494 2010-04-29 Jan Hubicka <jh@suse.cz>
8496 * gengtype.c (open_base_files): Add lto-streamer.h
8497 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8498 (pass_ipa_cp): GGC collect.
8499 * toplev. (compile_file): Do not output symbols.
8500 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8501 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8502 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8503 * lto-section-in.c: Include ggc.h
8504 (lto_new_in_decl_state): Alloc in GGC.
8505 (lto_delete_in_decl_state): Likewise.
8506 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8509 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8512 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8513 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8514 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8515 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8516 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8517 account only if HONOR_REG_ALLOC_ORDER is not defined.
8518 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8519 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8521 2010-04-29 Jon Grant <04@jguk.org>
8523 * collect2.c (vflag): Change type from int to bool.
8525 (helpflag): New global bool.
8526 (main): Set vflag and debug with boolean, not integer truth values.
8527 Accept new "--help" option and output usage text if found.
8528 * collect2.h (vflag): Update prototype.
8531 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8534 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8536 2010-04-29 Richard Guenther <rguenther@suse.de>
8539 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8540 with ATTRIBUTE_UNUSED.
8542 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8545 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8546 INSN_P with NONDEBUG_INSN_P.
8547 (distance_non_agu_define): Likewise.
8548 (distance_agu_use): Likewise.
8550 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8552 From Dominique d'Humieres <dominiq@lps.ens.fr>
8554 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8557 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8559 * plugin.h (invoke_plugin_callbacks): New inline function.
8560 * plugin.c (flag_plugin_added): New global flag.
8561 (add_new_plugin): Initialize above flag.
8562 (invoke_plugin_callbacks): Rename to ...
8563 (invoke_plugin_callbacks_full): ... this.
8565 2010-04-28 Jan Hubicka <jh@suse.cz>
8567 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8568 (lto_varpool_replace_node): New.
8569 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8570 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8571 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8572 * cgraph.h (varpool_node_ptr): New type.
8573 (varpool_node_ptr): New vector.
8574 (varpool_node_set_def): New structure.
8575 (varpool_node_set): New type.
8576 (varpool_node_set): New vector.
8577 (varpool_node_set_element_def): New structure.
8578 (varpool_node_set_element, const_varpool_node_set_element): New types.
8579 (varpool_node_set_iterator): New type.
8580 (varpool_node): Add prev pointers, add used_from_other_partition,
8582 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8583 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8584 varpool_get_node, varpool_remove_node): Declare.
8585 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8586 varpool_node_set_size): New inlines.
8587 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8588 * tree-pass.h (varpool_node_set_def): Forward declare.
8589 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8590 (ipa_write_optimization_summaries): Update prototype.
8591 * ipa-cp.c (ipcp_write_summary): Update.
8592 * ipa-reference.c (ipa_reference_write_summary): Update.
8593 * lto-cgraph.c (lto_output_varpool_node): New static function.
8594 (output_varpool): New function.
8595 (input_varpool_node): New static function.
8596 (input_varpool_1): New function.
8597 (input_cgraph): Input varpool.
8598 * ipa-pure-const.c (pure_const_write_summary): Update.
8599 * lto-streamer-out.c (lto_output): Update, output varpool too.
8600 (write_global_stream): Kill WPA hack.
8601 (produce_asm_for_decls): Update.
8602 (output_alias_pair_p): Handle variables.
8603 (output_unreferenced_globals): Output only needed partition of varpool.
8604 * ipa-inline.c (inline_write_summary): Update.
8605 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8607 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8608 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8609 varpool_node_set_new, varpool_node_set_add,
8610 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8611 debug_varpool_node_set): New functions.
8612 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8613 (execute_one_pass): Process new decls too.
8614 (ipa_write_summaries_2): Pass around vsets.
8615 (ipa_write_summaries_1): Likewise.
8616 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8618 (ipa_write_optimization_summaries_1): Pass around vsets.
8619 (ipa_write_optimization_summaries): Likewise.
8620 * varpool.c (varpool_get_node): New.
8621 (varpool_node): Update doubly linked lists.
8622 (varpool_remove_node): New.
8623 (dump_varpool_node): More dumping.
8624 (varpool_enqueue_needed_node): Update doubly linked lists.
8625 (decide_is_variable_needed): Kill ltrans hack.
8626 (varpool_finalize_decl): Kill lto hack.
8627 (varpool_assemble_decl): Skip decls in other partitions.
8628 (varpool_assemble_pending_decls): Update doubly linkes lists.
8629 (varpool_empty_needed_queue): Likewise.
8630 (varpool_extra_name_alias): Likewise.
8631 * lto-streamer.c (lto_get_section_name): Add vars section.
8632 * lto-streamer.h (lto_section_type): Update.
8633 (output_varpool, input_varpool): Declare.
8635 2010-04-28 Mike Stump <mikestump@comcast.net>
8637 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8639 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8641 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8642 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8643 (lto_input_ts_type_tree_pointers): Likewise.
8644 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8645 (lto_output_ts_type_tree_pointers): Likewise.
8647 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8649 Uniquization of constants at the Tree level
8650 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8651 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8653 (tree_output_constant_def): Declare.
8654 * gimplify.c (gimplify_init_constructor): When using block copy, first
8655 uniquize the constant constructor on the RHS.
8656 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8657 DECL_IN_CONSTANT_POOL flag.
8658 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8659 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8661 (assemble_variable): Deal with symbols belonging to the tree constant
8663 (get_constant_section): Add ALIGN parameter and simplify.
8664 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8665 (assemble_constant_contents): Use the expression of the VAR_DECL.
8666 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8667 (tree_output_constant_def): New global function.
8668 (mark_constant): Use the expression of the VAR_DECL.
8669 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8671 (output_object_block): Likewise and assemble the expression.
8673 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8675 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8676 hash_tree, eq_tree): New tree hash table.
8677 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8678 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8679 lto_orig_address_remove): Reimplement.
8681 2010-04-28 Xinliang David Li <davidxl@google.com>
8684 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8685 (compute_uninit_opnds_pos): New function.
8686 (is_non_loop_exit_postdominating): New function.
8687 (compute_control_dep_chain): New function.
8688 (find_pdom): New function.
8689 (convert_control_dep_chain_into_preds): New function.
8690 (find_predicates): New function.
8691 (find_control_equiv_block): New function.
8692 (collect_phi_def_edges): New function.
8693 (find_def_preds): New function.
8694 (find_dom): New function.
8695 (dump_predicates): New function.
8696 (get_cmp_code): New function.
8697 (is_value_included_in): New function.
8698 (find_matching_predicate_in_rest_chains): New function.
8699 (use_pred_not_overlap_with_undef_path_pred): New function.
8700 (is_use_properly_guarded): New function.
8701 (normalize_cond_1): New function.
8702 (is_and_or_or): New function.
8703 (normalize_cond): New function.
8704 (is_gcond_subset_of): New function.
8705 (is_subset_of_any): New function.
8706 (is_or_set_subset_of): New function.
8707 (is_and_set_subset_of): New function.
8708 (is_norm_cond_subset_of): New function.
8709 (is_pred_expr_subset_of): New function.
8710 (is_pred_chain_subset_of): New function.
8711 (is_included_in): New function.
8712 (is_superset_of): New function.
8713 (find_uninit_use): New function.
8714 (warn_uninitialized_phi): New function.
8715 (compute_possibly_undefined_names): New function.
8716 (ssa_undefined_value_p): New function.
8717 (execute_late_warn_uninitialized): New function.
8718 * tree-ssa.c (ssa_undefined_value_p): Removed.
8719 (warn_uninit): Changed to extern.
8720 (warn_uninitialized_phi): Removed.
8721 (warn_uninitialized_vars): Changed to extern.
8722 (execute_late_warn_uninitialized): Removed
8723 * tree-flow.h: Add new prototypes.
8724 * timevar.def: Add new time variable.
8725 * Makefile.in: Add new build file.
8727 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8729 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8732 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8735 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8737 2010-04-28 Martin Jambor <mjambor@suse.cz>
8739 * cgraph.h (struct cgraph_node): New field indirect_calls.
8740 (struct cgraph_indirect_call_info): New type.
8741 (struct cgraph_edge): Removed field indirect_call. New fields
8742 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8743 (cgraph_create_indirect_edge): Declare.
8744 (cgraph_make_edge_direct): Likewise.
8745 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8746 * ipa-prop.h (struct ipa_param_call_note): Removed.
8747 (struct ipa_node_params): Removed field param_calls.
8748 (ipa_create_all_structures_for_iinln): Declare.
8749 * cgraph.c: Described indirect edges and uids in initial comment.
8750 (cgraph_add_edge_to_call_site_hash): New function.
8751 (cgraph_edge): Search also among the indirect edges, use
8752 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8753 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8754 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8756 (initialize_inline_failed): Assign a reason to indirect edges.
8757 (cgraph_create_edge_1): New function.
8758 (cgraph_create_edge): Moved some functionality to
8759 cgraph_create_edge_1.
8760 (cgraph_create_indirect_edge): New function.
8761 (cgraph_edge_remove_callee): Add an assert checking for
8763 (cgraph_edge_remove_caller): Special-case indirect edges.
8764 (cgraph_remove_edge): Likewise.
8765 (cgraph_set_edge_callee): New function.
8766 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8767 (cgraph_make_edge_direct): New function.
8768 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8769 the declaration of the call statement matches.
8770 (cgraph_node_remove_callees): Special-case indirect edges.
8771 (cgraph_clone_edge): Likewise.
8772 (cgraph_clone_node): Clone also the indirect edges.
8773 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8774 indirect_call, dump count of indirect_calls edges.
8775 * ipa-prop.c (iinlining_processed_edges): New variable.
8776 (ipa_note_param_call): Create indirect edges instead of
8777 creating notes. New parameter node.
8778 (ipa_analyze_call_uses): New parameter node, pass it on to
8779 ipa_note_param_call.
8780 (ipa_analyze_stmt_uses): Likewise.
8781 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8782 (print_edge_addition_message): Work on edges rather than on notes.
8783 (update_call_notes_after_inlining): Likewise, renamed to
8784 update_indirect_edges_after_inlining.
8785 (ipa_create_all_structures_for_iinln): New function.
8786 (ipa_free_node_params_substructures): Do not free notes.
8787 (ipa_edge_duplication_hook): Propagate bits within
8788 iinlining_processed_edges bitmap.
8789 (ipa_node_duplication_hook): Do not duplicate notes.
8790 (free_all_ipa_structures_after_ipa_cp): Renamed to
8791 ipa_free_all_structures_after_ipa_cp.
8792 (free_all_ipa_structures_after_iinln): Renamed to
8793 ipa_free_all_structures_after_iinln.
8794 (ipa_write_param_call_note): Removed.
8795 (ipa_read_param_call_note): Removed.
8796 (ipa_write_indirect_edge_info): New function.
8797 (ipa_read_indirect_edge_info): Likewise.
8798 (ipa_write_node_info): Do not stream notes, do stream information
8800 (ipa_read_node_info): Likewise.
8801 (lto_ipa_fixup_call_notes): Removed.
8802 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8803 * ipa-inline.c (pass_ipa_inline): Likewise.
8804 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8805 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8806 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8808 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8810 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8811 (output_cgraph): Stream also indirect edges.
8812 (lto_output_edge): Added capability to stream indirect edges.
8813 (input_edge): Likewise.
8814 (input_cgraph_1): Likewise.
8815 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8818 2010-04-28 Richard Guenther <rguenther@suse.de>
8820 PR tree-optimization/43879
8821 PR tree-optimization/43909
8822 * tree-ssa-structalias.c (struct variable_info): Add
8823 only_restrict_pointers flag.
8824 (new_var_info): Initialize it. Increment stats.total_vars here.
8825 (create_function_info_for): Do not increment stats.total_vars here.
8826 (get_function_part_constraint): Fix build with C++.
8827 (insert_into_field_list): Remove.
8828 (push_fields_onto_fieldstack): Properly merge fields.
8829 (create_variable_info_for): Split and simplify.
8830 (create_variable_info_for_1): New piece.
8831 (intra_create_variable_infos): Properly make restrict constraints
8834 2010-04-28 Richard Guenther <rguenther@suse.de>
8837 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8839 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8840 Jan Hubicka <hubicka@ucw.cz>
8842 * doc/invoke.texi (-Wsuggest-attribute=const,
8843 -Wsuggest-attribute=pure): Document.
8844 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8845 (function_always_visible_to_compiler_p,
8846 suggest_attribute, warn_function_pure, warn_function_const):
8848 (check_call): Improve debug info.
8849 (analyze_function): Do not check availability.
8850 (add_new_function): Check availability.
8851 (propagate): Output warnings.
8852 (skip_function_for_local_pure_const): New function.
8853 (local_pure_const): Use it; output warnings.
8854 * common.opt (Wsuggest-attribute=const,
8855 Wsuggest-attribute=pure): New.
8857 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8859 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8860 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8861 or DW_CFA_def_cfa_offset{,_sf}.
8863 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8865 * tree.h: Fix truncated long macros.
8867 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8869 * collect2.c (TARGET_64BIT): Redefine to target's default.
8870 * tlink.c: Likewise.
8871 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8872 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8873 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8874 for underscoring __USER_LABEL_PREFIX__.
8875 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8876 (SUB_LINK_ENTRY32): New.
8877 (SUB_LINK_ENTRY64): New.
8878 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8879 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8880 (SUB_LINK_ENTRY64): New.
8881 (SUB_LINK_ENTRY): New.
8882 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8883 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8884 x64 target is choosen.
8885 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8886 * configure: Regenerated.
8887 * configure.ac (leading-mingw64-underscores): Option added.
8889 2010-04-27 Jan Hubicka <jh@suse.cz>
8891 * doc/invoke.texi (-fipa-profile): Document.
8892 * opts.c (decode_options): Enable ipa-profile at -O1.
8893 * timevar.def (TV_IPA_PROFILE): Define.
8894 * common.opt (fipa-profile): Add.
8895 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8897 (cgraph_propagate_frequency): Handle only local ones.
8898 * tree-pass.h (pass_ipa_profile): Declare.
8899 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8900 (pass_ipa_profile): Use TV_IPA_PROFILE.
8901 * ipa.c (ipa_profile): New function.
8902 (gate_ipa_profile): Likewise.
8903 (pass_ipa_profile): New global variable.
8904 * passes.c (pass_ipa_profile): New.
8906 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8908 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8910 2010-04-27 Martin Jambor <mjambor@suse.cz>
8913 * ipa.c (dissolve_same_comdat_group_list): New function.
8914 (function_and_variable_visibility): Call
8915 dissolve_same_comdat_group_list when comdat group contains external or
8917 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8918 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8920 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8922 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8923 (const_hash_1) <VECTOR_CST>: New case.
8924 (compare_constant) <VECTOR_CST>: Likewise.
8925 <ADDR_EXPR>: Deal with LABEL_REFs.
8926 (copy_constant) <VECTOR_CST>: New case.
8928 2010-04-27 Jan Hubicka <jh@suse.cz>
8930 * cgraph.c (cgraph_propagate_frequency): New function.
8931 * cgraph.h (cgraph_propagate_frequency): Declare.
8932 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8933 cgraph_propagate_frequency.
8935 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8937 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8939 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8942 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8943 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8944 here to determine which regs to push and how much stack to reserve.
8946 2010-04-27 Jie Zhang <jie@codesourcery.com>
8948 * doc/gimple.texi (gimple_statement_with_ops): Remove
8949 addresses_taken field.
8950 (gimple_statement_with_memory_ops): Likewise.
8952 2010-04-27 Jan Hubicka <jh@suse.cz>
8954 * tree-inline.c (eni_inlining_weights): Remove.
8955 (estimate_num_insns): Special case more builtins.
8957 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8960 * c-typeck.c (build_binary_op): Move forward check for comparison
8961 pointer with null pointer constant and adjust the diagnostic message.
8963 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8966 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8967 binutils supports extended .section directive needed by LTO, or
8968 warn if older binutils found.
8969 (LTO_BINARY_READER): New AC_SUBST'd variable.
8970 (LTO_USE_LIBELF): Likewise.
8971 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8973 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8974 (LTO_USE_LIBELF): Likewise.
8975 * configure: Regenerate.
8977 * collect2.c (is_elf): Rename from this ...
8978 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8979 object files in addition to ELF-formatted ones.
8980 (scan_prog_file): Caller updated. Also allow for LTO info marker
8981 symbol to be prefixed or not by an extra underscore.
8983 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8984 * config/i386/winnt.c: Also #include lto-streamer.h
8985 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8987 (i386_pe_asm_output_aligned_decl_common): Add comment.
8988 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8990 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8993 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8994 Add missing earlyclobber for second alternative.
8996 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8998 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8999 bits for artificial defs at the top of the block.
9000 * fwprop.c (single_def_use_enter_block): Don't call it.
9002 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
9005 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9006 instead of "$gcc_cv_objdump -T".
9007 Use "-undefined dynamic_lookup" on darwin.
9008 * gcc/configure: Regenerate.
9010 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9013 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9015 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9017 * c-parser.c (struct c_token): Move location field up.
9018 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9019 (struct c_declspecs): Convert typespec_word, storage_class, and
9020 default_int_p into bitfields.
9021 (struct c_declarator): Move loc field up.
9023 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9025 * cfgloop.h (struct loop): Move can_be_parallel field up.
9026 * ipa-prop.h (struct ip_node_params): Move bitfields up.
9027 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9029 (struct iv_cand): Convert pos field into a bitfield.
9030 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9032 (struct _stmt_vec_info): Shuffle fields for better packing.
9034 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9036 * varasm.c (IN_NAMED_SECTION): Remove guard.
9037 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9038 (IN_NAMED_SECTION_P): ...this.
9039 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9040 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9042 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9044 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9045 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
9046 of shadowing it. Fix comments.
9048 2010-04-26 Jan Hubicka <jh@suse.cz>
9050 * cgraph.c (cgraph_create_node): Set node frequency to normal.
9051 (cgraph_clone_node): Copy function frequency.
9052 * cgraph.h (node_frequency): New enum
9053 (struct cgraph_node): Add.
9054 * final.c (rest_of_clean_state): Update.
9055 * lto-cgraph.c (lto_output_node): Output node frequency.
9056 (input_overwrite_node): Input node frequency.
9057 * tre-ssa-loop-ivopts (computation_cost): Update.
9058 * lto-streamer-out.c (output_function): Do not output function
9060 * predict.c (maybe_hot_frequency_p): Update and handle functions
9062 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9064 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9065 (compute_function_frequency): Set noreturn functions to be executed
9067 (choose_function_section): Update.
9068 * lto-streamer-in.c (input_function): Do not input function frequency.
9069 * function.c (allocate_struct_function): Do not initialize function
9071 * function.h (function_frequency): Remove.
9072 (struct function): Remove function frequency.
9073 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9074 (try_update): Update.
9075 * tree-inline.c (initialize_cfun): Do not update function frequency.
9076 * passes.c (pass_init_dump_file): Update.
9077 * i386.c (ix86_compute_frame_layout): Update.
9078 (ix86_pad_returns): Update.
9080 2010-04-26 Jie Zhang <jie@codesourcery.com>
9082 PR tree-optimization/43833
9083 * tree-vrp.c (range_int_cst_p): New.
9084 (range_int_cst_singleton_p): New.
9085 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9086 when both operands are constants. Use range_int_cst_p in
9089 2010-04-26 Jan Hubicka <jh@suse.cz>
9091 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9093 2010-04-26 Richard Guenther <rguenther@suse.de>
9096 * gimple.c (gimple_decl_printable_name): Deal gracefully
9097 with a NULL DECL_NAME.
9099 2010-04-26 Richard Guenther <rguenther@suse.de>
9102 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9103 if emitting debug information and it is either a function
9104 or a namespace decl.
9106 2010-04-26 Ira Rosen <irar@il.ibm.com>
9108 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9109 determine if the statement is vectorizable, and a macro to access it.
9110 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9111 Skip statements that can't be vectorized. If the analysis fails,
9112 mark the statement as unvectorizable if vectorizing basic block.
9113 (vect_compute_data_refs_alignment): Likewise.
9114 (vect_verify_datarefs_alignment): Skip statements marked as
9115 unvectorizable. Add print.
9116 (vect_analyze_group_access): Skip statements that can't be
9117 vectorized. If the analysis fails, mark the statement as
9118 unvectorizable if vectorizing basic block.
9119 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9120 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9121 generated stmts for SLP.
9122 (new_stmt_vec_info): Initialize the new field.
9123 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9124 statements marked as unvectorizable.
9126 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9128 * c-common.c (flag_isoc1x): New.
9129 (flag_isoc99): Update comment.
9130 * c-common.h (flag_isoc1x): New.
9131 (flag_isoc99): Update comment.
9132 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9133 __<type>_DECIMAL_DIG__.
9134 * c-opts.c (set_std_c1x): New.
9135 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9136 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9137 * c.opt (-std=c1x, -std=gnu1x): New options.
9138 * doc/cpp.texi: Mention -std=c1x.
9139 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9140 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9141 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9142 * doc/standards.texi: Mention C1X.
9143 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9144 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9145 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9148 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9150 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9151 placeholder from 0x%x to %#x.
9152 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9153 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9154 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9155 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9156 * config/i386/i386.c (ix86_target_string): Ditto.
9157 (output_pic_addr_const): Ditto.
9158 (print_operand): Ditto.
9160 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9162 * combine.c (find_split_point): Add third argument. Use it
9163 to find nested multiply-accumulate instructions. Adjust calls.
9164 (try_combine): Adjust call to find_split_point.
9166 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9168 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9170 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9172 PR tree-optimization/41442
9173 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9174 (fold_binary_loc): Call it.
9176 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9178 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9179 * opts.c (common_handle_option): Allow disabling it.
9180 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9182 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9184 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9185 between modes if both types are integral.
9187 2010-04-23 Richard Guenther <rguenther@suse.de>
9189 PR tree-optimization/43572
9190 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9192 2010-04-23 Richard Guenther <rguenther@suse.de>
9195 * tree-inline.c (tree_can_inline_p): Also check compatibility
9198 2010-04-23 Martin Jambor <mjambor@suse.cz>
9200 PR tree-optimization/43846
9201 * tree-sra.c (struct access): New flag grp_assignment_read.
9202 (build_accesses_from_assign): Set grp_assignment_read.
9203 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9204 (enum mark_read_status): New type.
9205 (analyze_access_subtree): Propagate grp_assignment_read, create
9206 accesses also if both direct_read and root->grp_assignment_read.
9208 2010-04-23 Martin Jambor <mjambor@suse.cz>
9211 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9212 function does not have type attributes.
9214 2010-04-23 Richard Guenther <rguenther@suse.de>
9217 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9220 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9222 * sese.h (create_if_region_on_edge): Remove.
9224 * sese.c (create_if_region_on_edge): Make static.
9226 * tree-inline.c: Do not include ggc.h.
9228 * expr.c: Do not include ggc.h.
9230 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9233 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9236 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9237 in the middle of insns for casesi_worker_2.
9239 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9241 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9243 2010-04-22 Ira Rosen <irar@il.ibm.com>
9245 PR tree-optimization/43842
9246 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9247 loop unrolling in update of exit phis. Fix comment.
9248 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9249 least two reduction statements in the loop before starting SLP
9252 2010-04-22 Nick Clifton <nickc@redhat.com>
9254 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9256 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9258 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9261 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9263 * tree-parloops.c (loop_parallel_p): New argument
9264 parloop_obstack. Pass it down.
9265 (parallelize_loops): New variable parloop_obstack. Initialize it,
9266 pass it down, free it.
9268 * tree-loop-linear.c (linear_transform_loops): Pass down
9271 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9272 of type struct obstack *.
9274 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9275 scratch_obstack. Initialize it, pass down, free it.
9277 * lambda.h (lambda_loop_new): Remove.
9278 (lambda_matrix_new, lambda_matrix_inverse)
9279 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9280 argument of type struct obstack *.
9282 * lambda-trans.c (lambda_trans_matrix_new): New argument
9283 lambda_obstack. Pass it down, use obstack allocation for ret.
9284 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9287 * lambda-mat.c (lambda_matrix_get_column)
9288 (lambda_matrix_project_to_null): Remove.
9289 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9291 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9294 * lambda-code.c (lambda_loop_new): New function.
9295 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9296 (lambda_compute_auxillary_space, lambda_compute_target_space)
9297 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9298 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9299 (build_access_matrix): New argument lambda_obstack. Use obstack
9301 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9302 argument lambda_obstack. Pass it down.
9304 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9306 * optabs.h (expand_widening_mult): Declare.
9308 2010-04-22 Richard Guenther <rguenther@suse.de>
9310 PR tree-optimization/43845
9311 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9312 lookup the CALL_EXPR function and arguments.
9314 2010-04-22 Nick Clifton <nickc@redhat.com>
9316 * config/stormy16/stormy16.c
9317 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9318 * config/stormy16/stormy16.h: Tidy up formatting.
9319 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9320 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9321 (ineqbranchsi): Delete pattern.
9322 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9323 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9324 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9325 stormy16-lib2-ucmpsi2.c.
9327 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9329 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9330 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9331 extra set merge_set_noclobber, and use it to relax the final test
9333 * df.h (df_simulate_find_noclobber_defs): Declare.
9334 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9336 (df_simulate_find_noclobber_defs): New function.
9338 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9340 * config/i386/i386.md: Use {} around multi-line preparation statements.
9342 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9344 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9345 (process_init_element): New argument of type struct obstack *.
9347 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9348 (set_init_index, set_init_label, set_nonincremental_init)
9349 (set_nonincremental_init_from_string, find_init_member)
9350 (output_init_element, output_pending_init_elements)
9351 (process_init_element): New argument braced_init_obstack. Pass it
9353 (push_range_stack, add_pending_init): New argument
9354 braced_init_obstack. Use obstack allocation.
9356 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9357 braced_init_obstack. Pass it down.
9358 (c_parser_braced_init): New variables ret, braced_init_obstack.
9359 Initialize obstack, pass it down and finally free it.
9361 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9364 * tree-pass.h (pass_optimize_widening_mul): Declare.
9365 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9366 gate_optimize_widening_mul): New static functions.
9367 (pass_optimize_widening_mul): New.
9368 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9369 <case MULT_EXPR>: Remove support for widening multiplies.
9370 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9371 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9372 simplify_gen_unary rather than directly building extensions.
9373 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9375 * expmed.c (expand_widening_mult): New function.
9376 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9378 2010-04-21 Jan Hubicka <jh@suse.cz>
9380 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9381 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9382 * lto-wpa-fixup.c: Remove.
9383 * Makefile.in (lto-wpa-fixup.o): Remove.
9384 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9385 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9386 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9388 2010-04-21 Jan Hubicka <jh@suse.cz>
9390 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9391 add write_optimization_summary, read_optimization_summary.
9392 (ipa_write_summaries_of_cgraph_node_set): Remove.
9393 (ipa_write_optimization_summaries): Declare.
9394 (ipa_read_optimization_summaries): Declare.
9395 * ipa-cp.c (pass_ipa_cp): Update.
9396 * ipa-reference.c (pass_ipa_reference): Update.
9397 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9398 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9400 * ipa-inline.c (pass_ipa_inline): Update.
9401 * ipa.c (pass_ipa_whole_program): Update.
9402 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9403 * passes.c (ipa_write_summaries_1): Do not test wpa.
9404 (ipa_write_optimization_summaries_1): New.
9405 (ipa_write_optimization_summaries): New.
9406 (ipa_read_summaries): Do not test ltrans.
9407 (ipa_read_optimization_summaries_1): New.
9408 (ipa_read_optimization_summaries): New.
9410 2010-04-21 Jan Hubicka <jh@suse.cz>
9412 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9414 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9416 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9419 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9420 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9422 2010-04-21 Jan Hubicka <jh@suse.cz>
9424 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9426 2010-04-21 Jan Hubicka <jh@suse.cz>
9428 * varpool.c (decide_is_variable_needed): Variable is always needed
9431 2010-04-21 Jan Hubicka <jh@suse.cz>
9433 * opts.c (decode_options): Enable pure-const pass for whopr.
9435 2010-04-21 Jan Hubicka <jh@suse.cz>
9437 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9438 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9440 (cgraph_decide_inlining): Do not expect callee to be removed in all
9443 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9445 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9447 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9449 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9450 amdfam10_decode attributes.
9452 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9455 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9456 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9457 (lower_copyprivate_clauses): Use private var in outer
9458 context instead of original var. Make sure the types
9459 are correct for VLAs.
9461 2010-04-21 Richard Guenther <rguenther@suse.de>
9463 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9464 to non-pointer objects.
9466 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9468 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9469 last chain entry if it starts with the still current label.
9470 (add_location_or_const_value_attribute): Check that
9471 loc_list->first->next is NULL instead of comparing ->first with ->last.
9472 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9473 to add_var_loc_to_decl.
9475 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9476 >= 4 add also address size and segment size fields into CIE header.
9478 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9479 long as address size is the same as sizeof (void *) and
9481 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9482 address size or segment size is unexpected, return DW_EH_PE_omit.
9483 (classify_object_over_fdes): If get_cie_encoding returned
9484 DW_EH_PE_omit, return -1.
9485 (init_object): If classify_object_over_fdes returned -1,
9486 pretend there were no FDEs at all.
9488 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9490 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9491 bswap{si,di}2 using SWI48 mode iterator.
9492 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9493 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9494 set modrm attribute of bswap insn to 0 and remove length attribute.
9495 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9496 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9497 set mode attribute to <MODE> and remove length attribute.
9499 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9501 PR rtl-optimization/43520
9502 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9503 zero available registers.
9505 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9507 * builtins.c (fold_builtin_cproj): Fold more cases.
9509 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9511 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9512 (fold_builtin_1): Fold builtin cproj.
9513 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9514 Use ATTR_CONST_NOTHROW_LIST.
9516 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9518 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9519 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9520 ffsi2_no_cmove for !TARGET_CMOVE.
9521 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9522 (ffssi2): Remove expander.
9523 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9525 (ctz<mode>2): Ditto from ctz{si,di}2.
9526 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9528 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9531 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9533 * dwarf2out.c (AT_linkage_name): Define.
9534 (clone_as_declaration): Handle DW_AT_linkage_name.
9535 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9536 of DW_AT_MIPS_linkage_name.
9537 (move_linkage_attr): Likewise.
9538 (dwarf2out_finish): Likewise.
9540 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9543 * fold-const.c (fold_comparison): New folding rule.
9545 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9547 * double-int.h (double_int_setbit): Declare.
9548 * double-int.c (double_int_setbit): New function.
9549 * rtl.h (immed_double_int_const): Declare.
9550 * emit-rtl.c (immed_double_int_const): New function.
9551 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9552 and immed_double_int_const functions.
9553 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9554 expand_copysign_bit): (Ditto.).
9555 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9556 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9557 * dojump.c (prefer_and_bit_test): (Ditto.).
9558 * expr.c (convert_modes, reduce_to_bit_field_precision,
9559 const_vector_from_tree): (Ditto.).
9560 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9562 2010-04-20 Jan Hubicka <jh@suse.cz>
9564 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9565 (dump_cgraph_node): Dump new flags.
9566 * cgraph.h (struct cgraph_node): Add flags
9567 reachable_from_other_partition and in_other_partition.
9568 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9569 other partition can not be removed.
9570 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9571 the other partition must be output; silence sanity checking on
9572 leaking functions bodies from other paritition.
9573 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9574 (lto_output_node): Output new flags; do not sanity check that inline
9575 clones are output; drop lto_forced_extern_inline_p code; do not mock
9576 visibility flags at partition boundaries.
9577 (add_node_to): New function.
9578 (output_cgraph): Use it to sort functions so masters appear before
9580 (input_overwrite_node): Input new flags.
9581 * passes.c (ipa_write_summaries): Do not call
9582 lto_new_extern_inline_states.
9583 * lto-section-out.c (forced_extern_inline,
9584 lto_new_extern_inline_states lto_delete_extern_inline_states,
9585 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9586 * lto-streamer.h (lto_new_extern_inline_states,
9587 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9588 lto_forced_extern_inline_p): Kill.
9590 2010-04-20 Richard Guenther <rguenther@suse.de>
9592 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9593 from vars that can have pointers.
9594 (process_constraint): Dump useless constraints.
9596 2010-04-20 Richard Guenther <rguenther@suse.de>
9598 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9599 (dump_sa_points_to_info): Remove asserts.
9600 (init_base_vars): nothing_id isn't an escape point nor does it
9603 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9605 * tree.h (TYPE_REF_IS_RVALUE): Define.
9606 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9607 should_move_die_to_comdat, prune_unused_types_walk): Handle
9608 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9609 (modified_type_die, gen_reference_type_die): Emit
9610 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9611 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9613 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9616 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9617 calls for -fpic -m31 if they have been sibcall optimized.
9619 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9621 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9622 ar.lc fixed and call-used.
9624 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9626 2010-04-19 Jan Hubicka <jh@suse.cz>
9628 * opts.c (decode_options): Disable whpr incompatible passes.
9629 * lto/lto.c (lto_1_to_1_map): Skip clones.
9630 (read_cgraph_and_symbols): Do not mark everything as needed.
9631 (do_whole_program_analysis): Do map only after optimizing;
9632 set proper cgraph_state; use passmanager.
9634 2010-04-19 DJ Delorie <dj@redhat.com>
9636 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9637 POINTER_PLUS_EXPR and fix them.
9639 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9641 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9642 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9643 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9644 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9645 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9646 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9647 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9648 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9649 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9650 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9651 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9653 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9655 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9656 (check_cond_move_block): Likewise.
9657 (cond_move_process_if_block): Likewise.
9658 (noce_find_if_block): Improve formatting.
9659 (find_if_header): Pass 0 to memset and tweak conditions.
9660 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9662 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9664 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9668 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9669 with non-local decl doesn't need chain.
9671 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9673 * ira-color.c (allocno_reload_assign): Avoid accumulating
9674 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9676 2010-04-19 Martin Jambor <mjambor@suse.cz>
9678 * gimple.h (create_tmp_reg): Declare.
9679 * gimplify.c (create_tmp_reg): New function.
9680 (gimplify_return_expr): Use create_tmp_reg.
9681 (gimplify_omp_atomic): Likewise.
9682 (gimple_regimplify_operands): Likewise.
9683 * tree-dfa.c (make_rename_temp): Likewise.
9684 * tree-predcom.c (predcom_tmp_var): Likewise.
9685 (reassociate_to_the_same_stmt): Likewise.
9686 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9687 (get_replaced_param_substitute): Likewise.
9688 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9689 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9690 * tree-ssa-pre.c (get_representative_for): Likewise.
9691 (create_expression_by_pieces): Likewise.
9692 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9693 (create_tailcall_accumulator): Likewise.
9695 2010-04-19 Martin Jambor <mjambor@suse.cz>
9697 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9699 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9701 2010-04-19 Richard Guenther <rguenther@suse.de>
9703 PR tree-optimization/43796
9704 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9705 from SCEV in the lattice.
9706 (vrp_visit_phi_node): Dump change.
9708 2010-04-19 Richard Guenther <rguenther@suse.de>
9710 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9711 * configure: Re-generated.
9713 2010-04-19 Richard Guenther <rguenther@suse.de>
9715 PR tree-optimization/43783
9716 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9717 constant ARRAY_REF operands two and three if possible.
9719 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9722 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9724 2010-04-19 Jie Zhang <jie@codesourcery.com>
9727 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9729 2010-04-19 Ira Rosen <irar@il.ibm.com>
9731 PR tree-optimization/37027
9732 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9733 and macro to access it.
9734 (vectorizable_reduction): Add argument.
9735 (vect_get_slp_defs): Likewise.
9736 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9737 statements for possible use in SLP.
9738 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9739 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9740 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9742 (vectorizable_reduction): Likewise.
9743 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9745 (vectorizable_type_demotion, vectorizable_type_promotion,
9746 vectorizable_store): Likewise.
9747 (vect_analyze_stmt): Update call to vectorizable_reduction.
9748 (vect_transform_stmt): Likewise.
9749 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9750 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9751 from different interleaving chains in same node.
9752 (vect_slp_rearrange_stmts): New function.
9753 (vect_supported_load_permutation_p): Allow load permutations for
9754 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9755 inside SLP nodes if necessary.
9756 (vect_analyze_slp_instance): Handle reductions.
9757 (vect_analyze_slp): Try to build SLP instances originating from groups
9759 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9760 (vect_get_constant_vectors): Create initial vectors for reductions
9761 according to reduction code. Add new argument.
9762 (vect_get_slp_defs): Add new argument, pass it to
9763 vect_get_constant_vectors.
9764 (vect_schedule_slp_instance): Remove SLP tree root statements.
9766 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9768 * tree.h (ENUM_IS_SCOPED): Define.
9769 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9770 for ENUM_IS_SCOPED enums.
9772 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9774 * fold-const.c (fold_comparison): Use ssizetype.
9775 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9776 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9777 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9778 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9780 * tree.h (initialize_sizetypes): Remove parameter.
9781 (build_common_tree_nodes): Remove second parameter.
9782 * stor-layout.c (initialize_sizetypes): Remove parameter.
9783 Always create an unsigned type.
9784 (set_sizetype): Assert that the passed type is unsigned and simplify.
9785 * tree.c (build_common_tree_nodes): Remove second parameter.
9786 Adjust call to initialize_sizetypes.
9787 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9788 build_common_tree_nodes.
9790 2010-04-18 Matthias Klose <doko@ubuntu.com>
9792 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9794 2010-04-18 Ira Rosen <irar@il.ibm.com>
9796 PR tree-optimization/43771
9797 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9798 load permutation doesn't have gaps.
9800 2010-04-18 Jan Hubicka <jh@suse.cz>
9802 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9803 (sse_prologue_save_insn expander): Use new pattern.
9804 (sse_prologue_save_insn1): New pattern and splitter.
9805 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9807 * i386.c (setup_incoming_varargs_64): Do not compute jump
9809 (ix86_gimplify_va_arg): Update alignment needed.
9810 (ix86_local_alignment): Do not align all local arrays to 128bit.
9812 2010-04-17 Jan Hubicka <jh@suse.cz>
9814 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9816 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9818 * arm.md (negdi2): Remove redundant code to force values into a
9821 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9823 * arm/bpabi.S: Add EABI alignment attributes to objects.
9824 * arm/bpabi-v6m.S: Likewise.
9825 * arm/crti.asm: Likewise.
9826 * arm/crtn.asm: Likewise.
9827 * arm/lib1funcs.asm: Likewise.
9828 * arm/libunwind.S: Likewise.
9830 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9832 * arm-protos.h (tune_params): New structure.
9833 * arm.c (current_tune): New variable.
9834 (arm_constant_limit): Delete.
9835 (struct processors): Add pointer to the tune parameters.
9836 (arm_slowmul_tune): New tuning option.
9837 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9838 (all_cores): Adjust to pick up the tuning model.
9839 (arm_constant_limit): New function.
9840 (arm_override_options): Select the appropriate tuning model. Delete
9841 initialization of arm_const_limit.
9842 (arm_split_constant): Use the new constant-limit model.
9843 (arm_rtx_costs): Pick up the current tuning model.
9844 * arm.md (is_strongarm, is_xscale): Delete.
9845 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9846 for Xscale variant architectures.
9847 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9849 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9851 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9853 (arm_rtx_costs_1): Remove unused variable extra_cost.
9854 (arm_unwind_emit_set): Use variable offset.
9855 (thumb1_output_casesi): Remove unused variable flags.
9857 2010-04-16 Jeff Law <law@redhat.com>
9859 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9860 needing assignment rather than doing a two-phase assignment. Remove
9861 unused variable 'm'.
9863 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9866 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9868 2010-04-16 Doug Kwan <dougkwan@google.com>
9870 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9871 (next_operand_entry_id): New static variable.
9872 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9873 (add_to_ops_vec): Assigned unique ID to operand entry.
9874 (struct oecount_s): New field ID.
9875 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9876 (undistribute_ops_list): Assign unique IDs to oecounts.
9877 (init_reassoc): reset next_operand_entry_id.
9879 2010-04-16 Doug Kwan <dougkwan@google.com>
9881 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9882 missing left parenthesis.
9884 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9886 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9887 *btdi_rex64 using SWI48 mode iterator.
9888 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9889 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9890 *jcc_btdi_mask_rex64.
9892 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9894 * double-int.h (tree_to_double_int): Convert to macro.
9895 * double-int.c (tree_to_double_int): Remove.
9897 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9900 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9901 with want_address 2 and in case a single element list might be
9902 possible, call it again with want_address 0.
9904 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9906 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9907 case 'W' print operands for HI mode.
9908 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9909 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9910 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9911 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9913 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9915 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9916 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9917 #xx:3 and #xx:4 mode.
9919 * config/h8300/h8300.md (inverted load with HImode dest): Add
9920 support for H8300SX.
9922 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9923 satisfy 'U' constraint.
9925 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9927 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9928 * configure: Regenerate.
9929 * config.in: Regenerate.
9930 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9933 2010-04-16 Richard Guenther <rguenther@suse.de>
9935 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9936 (struct tree_decl_common): ... here.
9937 (DECL_PT_UID): Adjust.
9938 (SET_DECL_PT_UID): Likewise.
9939 (DECL_PT_UID_SET_P): Likewise.
9941 2010-04-16 Richard Guenther <rguenther@suse.de>
9943 PR tree-optimization/43572
9944 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9945 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9946 * tree-flow.h (is_call_clobbered): Remove.
9947 * tree-flow-inline.h (is_call_clobbered): Likewise.
9948 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9949 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9950 (execute_return_slot_opt): Adjust.
9951 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9952 check for call clobbered vars here.
9953 (find_tail_calls): Move tailcall verification to the
9956 2010-04-16 Diego Novillo <dnovillo@google.com>
9958 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9960 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9963 * config/arm/arm.md (cbranchqi4): New pattern.
9964 * config/arm/predicates.md (const0_operand,
9965 cbranchqi4_comparison_operator): New predicates.
9967 2010-04-16 Richard Guenther <rguenther@suse.de>
9969 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9970 (dump_gimple_stmt): Likewise.
9972 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9974 * recog.h (struct recog_data): New field is_operator.
9975 (struct insn_operand_data): New field is_operator.
9976 * recog.c (extract_insn): Set recog_data.is_operator.
9977 * genoutput.c (output_operand_data): Emit code to set the
9979 * reload.c (find_reloads): Use it rather than testing for an
9980 empty constraint string.
9983 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9984 If the previous insn is a cbranchsi4_insn with the same arguments,
9985 omit the compare instruction.
9987 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9988 register, inputs must be low registers and we need a low register
9989 scratch. Handle alternative 2 like alternative 3.
9991 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9993 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9994 don't call get_addr on both. If one expression is a VALUE and
9995 the other a REG, check VALUE's locs if the REG isn't among them.
9997 2010-04-16 Christian Bruel <christian.bruel@st.com>
9999 * config/sh/sh.h (sh_frame_pointer_required): New function.
10000 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10001 (flag_omit_frame_pointer) Set.
10002 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10003 (rounded_frame_size): Adjust size with outgoing_args_size.
10004 (sh_set_return_address): Must return from stack pointer.
10005 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10006 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10007 (ACCUMULATE_OUTGOING_ARGS): Define.
10008 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10009 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10011 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10014 * config/sh/sh.c (sh_legitimize_reload_address): Use
10015 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10016 Remove a unneeded check for offset_base.
10018 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
10020 * configure: Regenerated.
10022 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10024 * config/s390/s390.c (s390_call_save_register_used): Switch back
10025 to HARD_REGNO_NREGS.
10027 2010-04-15 Richard Guenther <rguenther@suse.de>
10029 * alias.c (alias_set_subset_of): Handle alias-set zero
10032 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
10033 Julian Brown <julian@codesourcery.com>
10035 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10036 alternatives according to use of high and low regs.
10037 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10038 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10039 optimizing for size on Thumb-2.
10041 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
10043 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10045 2010-04-15 Richard Guenther <rguenther@suse.de>
10047 * tree-ssa-structalias.c (struct variable_info): Add
10049 (new_var_info): Initialize it.
10050 (dump_constraints): Support printing last added constraints.
10051 (debug_constraints): Adjust.
10052 (dump_constraint_graph): Likewise.
10053 (make_heapvar_for): Check for NULL cfun.
10054 (get_function_part_constraint): New function.
10055 (get_fi_for_callee): Likewise.
10056 (find_func_aliases): Properly implement IPA PTA constraints.
10057 (process_ipa_clobber): New function.
10058 (find_func_clobbers): Likewise.
10059 (insert_into_field_list_sorted): Remove.
10060 (create_function_info_for): Properly allocate vars for IPA mode.
10061 Do not use insert_into_field_list_sorted.
10062 (create_variable_info_for): Properly generate constraints for
10063 global vars in IPA mode.
10064 (dump_solution_for_var): Always dump the solution.
10065 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10066 (find_what_var_points_to): Adjust.
10067 (pt_solution_set): Change.
10068 (pt_solution_ior_into): New function.
10069 (pt_solution_empty_p): Export.
10070 (pt_solution_includes_global): Adjust.
10071 (pt_solution_includes_1): Likewise.
10072 (pt_solutions_intersect_1): Likewise.
10073 (dump_sa_points_to_info): Check some invariants.
10074 (solve_constraints): Move constraint dumping ...
10075 (compute_points_to_sets): ... here.
10076 (ipa_pta_execute): ... and here.
10077 (compute_may_aliases): Do not re-compute points-to info
10078 locally if IPA info is available.
10079 (ipa_escaped_pt): New global var.
10080 (ipa_pta_execute): Properly implement IPA PTA.
10081 * tree-into-ssa.c (dump_decl_set): Support dumping
10082 decls not in referenced-vars.
10083 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10084 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10085 (dump_points_to_solution): Likewise.
10086 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10087 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10088 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10089 (copy_decl_to_var): Copy DECL_PT_UID.
10090 (copy_result_decl_to_var): Likewise.
10091 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10092 (copy_node_stat): Copy it.
10093 * tree.h (DECL_PT_UID): New macro.
10094 (SET_DECL_PT_UID): Likewise.
10095 (DECL_PT_UID_SET_P): Likewise.
10096 (struct tree_decl_minimal): Add pt_uid member.
10097 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10098 (pt_solution_empty_p): Declare.
10099 (pt_solution_set): Adjust.
10100 (ipa_escaped_pt): Declare.
10101 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10102 * gimple-pretty-print.c (pp_points_to_solution): New function.
10103 (dump_gimple_call): Dump call clobber/use information.
10104 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10105 * tree-pass.h (TDF_ALIAS): New dump option.
10106 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10107 * doc/invoke.texi (-fipa-pta): Update documentation.
10109 2010-04-15 Richard Guenther <rguenther@suse.de>
10111 * Makefile.in (OBJS-common): Add gimple-fold.o.
10112 (gimple-fold.o): New rule.
10113 * tree.h (maybe_fold_offset_to_reference,
10114 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10116 * gimple.h: ... here.
10117 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10118 may_propagate_address_into_dereference): Move prototypes ...
10119 * gimple.h: ... here.
10120 * tree-ssa-ccp.c (get_symbol_constant_value,
10121 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10122 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10123 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10124 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10125 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10126 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10127 gimplify_and_update_call_from_tree): Move ...
10128 * gimple-fold.c: ... here. New file.
10129 (ccp_fold_builtin): Rename to ...
10130 (gimple_fold_builtin): ... this.
10131 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10133 2010-04-15 Richard Guenther <rguenther@suse.de>
10135 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10136 fit_double_type, force_fit_type_double, add_double_with_sign,
10137 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10138 lrotate_double, rrotate_double, div_and_round_double): Move ...
10139 * double-int.c: ... here.
10140 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10141 add_double, neg_double, mul_double_with_sign, mul_double,
10142 lshift_double, rshift_double, lrotate_double, rrotate_double,
10143 div_and_round_double): Move prototypes ...
10144 * double-int.h: ... here.
10146 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10149 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10150 matching constraints to ensure inputs match the output.
10152 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10155 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10156 in an input-only operand.
10158 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10160 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10161 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10162 (double_int_negative_p): Convert to static inline function.
10163 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10164 (double_int_negative_p): Remove.
10165 * tree.h (lshift_double, rshift_double):
10166 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10167 * fold-const.c (fold_convert_const_int_from_real,
10168 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10169 (lshift_double): Change type of arith argument to bool.
10170 (rshift_double): Change type of arith argument to bool. Correct
10172 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10174 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10177 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10178 at the start and end of the then/else blocks, and omit them from the
10180 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10181 argument; all callers changed. Pass zero to old_insns_match_p instead.
10182 (flow_find_head_matching_sequence): New function.
10183 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10184 * basic-block.h (flow_find_cross_jump,
10185 flow_find_head_matching_sequence): Declare functions.
10187 2010-04-14 Jason Merrill <jason@redhat.com>
10190 * c-common.c (attribute_takes_identifier_p): New fn.
10191 * c-common.h: Declare it.
10193 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10195 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10196 splitter condition.
10197 (*udivmod<mode>4): Ditto.
10199 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10201 * config/i386/i386.md (maxmin_int): Rename code attribute from
10202 maxminiprefix and update all users.
10203 (maxmin_float): Ditto from maxminfprefix.
10204 (logic): Ditto from logicprefix.
10205 (absneg_mnemonic): Ditto from absnegprefix.
10206 * config/i386/mmx.md: Update all users of maxminiprefix,
10207 maxminfprefix and logicprefix for rename.
10208 * config/i386/sse.md: Ditto.
10209 * config/i386/sync.md (sync_<code><mode>): Update for
10210 logicprefix rename.
10212 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10215 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10216 warnings converted to errors.
10218 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10220 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10221 used insn_type variable.
10222 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10223 to avoid set-but-not-used warning.
10225 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10227 * df-core.c (df_ref_debug): Change format string placeholder
10229 * dwarf2asm.c (dw2_asm_output_data_raw,
10230 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10231 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10232 * dwarf2out.c (output_cfi, output_cfi_directive,
10233 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10234 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10236 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10237 * print-rtl.c (print_rtx): Ditto.
10239 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10241 PR middle-end/42694
10242 * builtins.c (expand_builtin_pow_root): New function to expand pow
10243 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10244 series of sqrt and cbrt calls under -ffast-math.
10245 (expand_builtin_pow): Call it.
10247 2010-04-14 Michael Matz <matz@suse.de>
10249 PR tree-optimization/42963
10250 * tree-cfg.c (touched_switch_bbs): New static variable.
10251 (group_case_labels_stmt): New function broken out from ...
10252 (group_case_labels): ... here, use the above.
10253 (start_recording_case_labels): Allocate touched_switch_bbs.
10254 (end_recording_case_labels): Deallocate it, call
10255 group_case_labels_stmt.
10256 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10258 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10260 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10261 from insn template.
10263 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10265 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10267 2010-04-13 Jan Hubicka <jh@suse.cz>
10269 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10270 of optimized out static functions.
10271 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10272 cost computation. Also sanity check for overflows.
10273 (update_caller_keys): Update cgraph_edge_badness call; properly
10274 update fibheap and sanity check that it is up to date.
10275 (add_new_edges_to_heap): Update cgraph_edge_badness.
10276 (cgraph_decide_inlining_of_small_function): Likewise;
10277 add sanity checking that badness in heap is up to date;
10278 improve dumping of reason; Update badness of calls to the
10279 offline copy of function currently inlined; dump badness
10280 of functions not inlined because of unit growth limits.
10282 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10284 PR middle-end/32628
10285 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10286 because of sign-extension change when converting to sizetype here...
10287 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10289 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10290 the folding to constants. Remove redundant final conversion.
10291 (fold_binary) <associate>: Do not associate if the re-association of
10292 constants alone overflows.
10293 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10294 to the end of the list.
10295 (multiple_of_p) <COND_EXPR>: New case.
10297 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10299 * opt-functions.awk (opt_sanitized_name): New.
10301 * optc-gen.awk: Use it
10302 * opth-gen.awk: Use it.
10304 2010-04-13 Martin Jambor <mjambor@suse.cz>
10306 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10307 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10308 children. Call replace_uses_with_default_def_ssa_name to handle
10311 2010-04-13 Michael Matz <matz@suse.de>
10313 PR middle-end/43730
10314 * builtins.c (expand_builtin_interclass_mathfn): Also create
10315 a register if the predicate doesn't match.
10317 2010-04-13 Diego Novillo <dnovillo@google.com>
10319 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10320 * c-pch.c: Include timevar.h.
10321 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10322 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10323 * ggc-common.c: Include timevar.h.
10324 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10325 * timevar.def (TV_PCH_SAVE): Define.
10326 (TV_PCH_CPP_SAVE): Define.
10327 (TV_PCH_PTR_REALLOC): Define.
10328 (TV_PCH_PTR_SORT): Define.
10329 (TV_PCH_RESTORE): Define.
10330 (TV_PCH_CPP_RESTORE): Define.
10332 2010-04-13 Michael Matz <matz@suse.de>
10334 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10336 (can_reassociate_p): New function.
10337 (break_up_subtract_bb, reassociate_bb): Use it.
10339 2010-04-13 Richard Guenther <rguenther@suse.de>
10342 * builtins.c (c_readstr): Fix assert.
10344 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10346 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10347 when generating cltd insn.
10349 (*ashl<mode>3_1): Remove special handling for register operand 2.
10350 (*ashlsi3_1_zext): Ditto.
10351 (*ashlhi3_1): Ditto.
10352 (*ashlhi3_1_lea): Ditto.
10353 (*ashlqi3_1): Ditto.
10354 (*ashlqi3_1_lea): Ditto.
10355 (*<shiftrt_insn><mode>3_1): Ditto.
10356 (*<shiftrt_insn>si3_1_zext): Ditto.
10357 (*<shiftrt_insn>qi3_1_slp): Ditto.
10358 (*<rotate_insn><mode>3_1): Ditto.
10359 (*<rotate_insn>si3_1_zext): Ditto.
10360 (*<rotate_insn>qi3_1_slp): Ditto.
10362 2010-04-13 Richard Guenther <rguenther@suse.de>
10364 * tree-ssa-structalias.c (callused_id): Remove.
10365 (call_stmt_vars): New.
10366 (get_call_vi): Likewise.
10367 (lookup_call_use_vi): Likewise.
10368 (lookup_call_clobber_vi): Likewise.
10369 (get_call_use_vi): Likewise.
10370 (get_call_clobber_vi): Likewise.
10371 (make_transitive_closure_constraints): Likewise.
10372 (handle_const_call): Adjust to do per-call call-used handling.
10373 (handle_pure_call): Likewise.
10374 (find_what_var_points_to): Remove general callused handling.
10375 (init_base_vars): Likewise.
10376 (init_alias_vars): Initialize call_stmt_vars.
10377 (compute_points_to_sets): Process call-used and call-clobbered
10378 vars for call statements.
10379 (delete_points_to_sets): Free call_stmt_vars.
10381 2010-04-13 Richard Guenther <rguenther@suse.de>
10383 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10384 Only add RW dependence for dependence distance zero.
10385 Adjust maximal vectorization factor according to dependences.
10386 Move alignment handling ...
10387 (vect_find_same_alignment_drs): ... here. New function.
10388 (vect_analyze_data_ref_dependences): Adjust.
10389 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10390 (vect_analyze_data_refs): Adjust minimal vectorization factor
10391 according to data references.
10392 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10393 dependences before determining the vectorization factor.
10394 Analyze alignment after determining the vectorization factor.
10395 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10396 dependences before alignment.
10397 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10399 (vect_analyze_data_refs): Likewise.
10400 (MAX_VECTORIZATION_FACTOR): New define.
10402 2010-04-13 Duncan Sands <baldrick@free.fr>
10404 * except.h (lang_eh_type_covers): Remove.
10405 * except.c (lang_eh_type_covers): Likewise.
10407 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10408 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10410 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10411 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10412 UNITS_PER_LONG where it is ABI relevant.
10413 (s390_return_addr_rtx): Likewise.
10414 (s390_back_chain_rtx): Likewise.
10415 (s390_frame_area): Likewise.
10416 (s390_frame_info): Likewise.
10417 (s390_initial_elimination_offset): Likewise.
10418 (save_gprs): Likewise.
10419 (s390_emit_prologue): Likewise.
10420 (s390_emit_epilogue): Likewise.
10421 (s390_function_arg_advance): Likewise.
10422 (s390_function_arg): Likewise.
10423 (s390_va_start): Likewise.
10424 (s390_gimplify_va_arg): Likewise.
10425 (s390_function_profiler): Likewise.
10426 (s390_optimize_prologue): Likewise.
10427 (s390_rtx_costs): Likewise.
10428 (s390_secondary_reload): Likewise.
10429 (s390_promote_function_mode): Likewise.
10430 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10431 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10432 registers available.
10433 (s390_unwind_word_mode): New function.
10434 (s390_function_value): Split 64 bit values into register pair if
10435 used as return value.
10436 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10437 function call parameters. Handle parallels.
10438 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10439 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10440 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10441 (s390_expand_setmem): Remove unused variable src_addr.
10442 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10443 deal with 64 bit registers.
10444 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10445 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10446 (UNITS_PER_LONG): New macro.
10447 * libjava/include/s390-signal.h: Define extended ucontext
10448 structure containing the upper halfs of the 64 bit registers.
10450 2010-04-13 Simon Baldwin <simonb@google.com>
10452 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10454 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10456 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10457 rvalue on the RHS if the LHS is of a non-renamable type.
10458 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10460 2010-04-13 Matthias Klose <doko@ubuntu.com>
10462 * gcc.c (cc1_options): Handle -iplugindir before processing
10463 the cc1 spec. Only add -iplugindir once.
10464 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10466 * common.opt (iplugindir): Remove `Separate' property, initialize.
10467 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10469 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10470 (distclean): Remove plugin dir.
10471 * doc/invoke.texi: Document -iplugindir.
10473 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10475 * doc/plugins.texi (Loading Plugins): Document short
10476 -fplugin=foo option.
10477 (Plugin API): Mention default_plugin_dir_name function.
10479 * gcc.c (find_file_spec_function): Add new declaration.
10480 (static_spec_func): Use it for "find-file".
10481 (find_file_spec_function): Add new function.
10482 (cc1_options): Add -iplugindir option if -fplugin* options found.
10484 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10486 * plugin.c (add_new_plugin): Updated comment, and handle short
10488 (default_plugin_dir_name): Added new function.
10490 * common.opt (iplugindir): New option to set the plugin directory.
10492 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10494 * config/i386/i386.md (any_rotate): New code iterator.
10495 (rotate_insn): New code attribute.
10497 (SWIM124): New mode iterator.
10498 (<rotate_insn>ti3): New expander.
10499 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10500 any_rotate code iterator.
10501 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10502 using any_rotate code iterator and SWIM124 mode iterator.
10503 (ix86_rotlti3): New insn_and_split pattern.
10504 (ix86_rotrti3): Ditto.
10505 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10506 ix86_rotl{di,ti}3 patterns.
10507 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10508 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10509 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10510 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10511 code iterator and SWI mode iterator.
10512 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10513 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10515 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10516 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10517 (bswap rotatert splitter): Add splitter.
10518 (bswap splitter): Macroize splitter using any_rotate code iterator.
10519 Add insn predicate to split only for TARGET_USE_XCHGB or when
10520 optimizing function for size.
10522 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10524 * config/pa/pa.c (emit_move_sequence): Remove use of
10525 deleted variable flag_argument_noalias.
10527 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10529 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10531 Add to unsupported targets list.
10532 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10533 sparc*-sun-solaris2.[567]* from target lists.
10534 * configure: Regenerate.
10535 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10537 Remove Solaris 7 patch references.
10538 (Specific, sparc-sun-solaris2.7): Removed.
10539 (sparc-sun-solaris2*): Update Solaris 7 example.
10540 (sparc64-*-solaris2*): Likewise.
10542 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10544 * config.build (alpha*-dec-osf4*): Remove.
10545 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10546 of obsolete configurations.
10547 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10549 * config/alpha/t-osf4: Renamed to ...
10550 * config/alpha/t-osf5: ... this.
10551 * config/alpha/osf.h: Renamed to ...
10552 * config/alpha/osf5.h: ... this.
10553 Merged old osf5.h contents.
10555 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10556 (EXTRA_SPECS): Removed.
10557 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10558 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10561 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10563 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10565 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10568 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10569 __thiscall convention.
10571 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10573 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10575 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10577 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10579 * function.c (assign_parms_initialize_all): Add unused attribute
10582 2010-04-12 Richard Guenther <rguenther@suse.de>
10584 * gsstruct.def (GSS_CALL): New.
10585 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10586 * gimple.h: Include tree-ssa-alias.h.
10587 (struct gimple_statement_call): New.
10588 (union gimple_statement_struct_d): Add gimple_call member.
10589 (gimple_call_reset_alias_info): Declare.
10590 (gimple_call_use_set): New function.
10591 (gimple_call_clobber_set): Likewise.
10592 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10593 * gimple.c (gimple_call_reset_alias_info): New function.
10594 (gimple_build_call_1): Call it.
10595 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10596 * tree-inline.c (remap_gimple_stmt): Likewise.
10597 (expand_call_inline): Remove callused handling.
10598 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10599 * tree-dfa.c (dump_variable): Likewise.
10600 * tree-parloops.c (parallelize_loops): Likewise.
10601 * tree-ssa.c (init_tree_ssa): Likewise.
10602 (delete_tree_ssa): Likewise.
10603 * tree-flow-inline.h (is_call_used): Remove.
10604 * tree-flow.h (struct gimple_df): Remove callused member.
10605 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10606 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10607 (ref_maybe_used_by_call_p_1): Simplify.
10608 (call_may_clobber_ref_p_1): Likewise.
10609 * tree-ssa-structalias.c (compute_points_to_sets): Set
10610 the call stmt used and clobbered sets.
10611 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10612 (find_tail_calls): Verify the tail call.
10614 2010-04-12 Richard Guenther <rguenther@suse.de>
10616 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10617 single-iteration always-inline inlining.
10618 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10619 (cgraph_decide_inlining): Do not handle always-inline specially.
10620 (try_inline): Remove always-inline cycle detection special case.
10621 Do not recurse on always-inlines.
10622 (cgraph_early_inlining): Do not iterate if not optimizing.
10623 (cgraph_gate_early_inlining): remove.
10624 (pass_early_inline): Run unconditionally.
10625 (gate_cgraph_decide_inlining): New function.
10626 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10627 not inlining or optimizing.
10628 (cgraph_decide_inlining_of_small_functions): Also consider
10629 always-inline functions.
10630 (cgraph_default_inline_p): Return true for nodes which should
10631 disregard inline limits.
10632 (estimate_function_body_sizes): Assume zero size and time for
10633 nodes which are marked as disregarding inline limits.
10634 (cgraph_decide_recursive_inlining): Do not perform recursive
10635 inlining on always-inline nodes.
10637 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10640 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10641 for exprs satisfying handled_component_p.
10643 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10645 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10646 non-constant aggregate elements.
10648 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10649 is a real initialization.
10651 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10654 * c-decl.c (start_function): Move forward check for nested function.
10656 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10658 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10659 * config/sh/sh.c: Include reload.h.
10660 (sh_legitimize_reload_address): New.
10661 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10662 sh_legitimize_reload_address.
10664 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10666 * config/sh/sh.md (*movqi_pop): New insn pattern.
10667 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10669 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10671 * config/i386/i386.md (any_shiftrt): New code iterator.
10672 (shiftrt_insn): New code attribute.
10674 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10675 using any_shiftrt code iterator.
10676 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10677 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10678 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10679 pattern from corresponding peephole2 patterns.
10680 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10681 using any_shiftrt code iterator.
10682 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10683 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10684 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10685 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10686 *{ashr,lshr}<mode>3_cmp_zext.
10687 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10689 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10691 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10693 (*lshr<mode>3_cconly): Ditto.
10695 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10697 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10698 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10699 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10700 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10702 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10703 from corresponding peephole2 patterns.
10704 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10705 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10706 and *lshrdi3_1_rex64 using SWI mode iterator.
10707 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10708 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10709 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10710 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10711 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10712 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10713 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10714 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10715 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10718 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10720 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10721 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10722 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10723 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10725 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10726 from corresponding peephole2 patterns.
10727 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10728 (ashrsi3_cvt): Rename from ashrsi3_31.
10729 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10730 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10731 and x86_64_shift_adj_3 using SWI48 mode iterator.
10732 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10733 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10734 and *ashrdi3_1_rex64 using SWI mode iterator.
10735 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10736 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10737 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10738 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10739 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10740 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10741 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10742 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10743 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10745 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10746 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10747 x86_shift<mode>_adj_3 expanders.
10749 2010-04-10 Wei Guozhi <carrot@google.com>
10752 * config/arm/arm.c (arm_pic_static_addr): New function.
10753 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10755 (arm_output_addr_const_extra): Output expression for new pattern.
10756 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10758 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10760 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10763 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10764 * web.c: Include "insn-config.h" and "recog.h".
10765 (union_match_dups): New function.
10766 (web_main): Call it.
10767 (union_defs): Don't try to recognize match_dups.
10769 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10770 if doing so would replace the entire pattern.
10772 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10776 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10777 and splitter pattern. Change splitter operand 1 predicate to
10780 2010-04-09 Martin Jambor <mjambor@suse.cz>
10782 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10783 lattices are addresses of CONST_DECLs with the same initial value.
10784 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10785 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10787 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10788 Bernd Schmidt <bernds@codesourcery.com>
10790 * loop-invariant.c (replace_uses): New static function.
10791 (move_invariant_reg): Use it to ensure we can replace the uses.
10793 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10795 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10797 (picochip_override_options): Enable section anchors only above -O1.
10798 (picochip_reorg): Fixed a couple of build warnings.
10800 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10802 * configure.ac (plugin -rdynamic test): Log result.
10803 * configure: Regenerate.
10804 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10805 (RDYNAMIC_SPEC): Define.
10806 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10808 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10810 * configure.ac: Determine Sun ld version numbers.
10811 (comdat_group): Restrict GNU ld version checks to gld.
10812 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10813 (enable_comdat): Support --enable-comdat.
10814 * configure: Regenerate.
10815 * doc/install.texi (Configuration): Document --enable-comdat.
10817 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10819 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10820 * config/sol2-gld.h: ... here.
10821 * config.gcc (sparc*-*-solaris2*): Reflect this.
10822 (i[34567]86-*-solaris2*): Use it.
10824 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10826 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10828 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10830 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10833 * diagnostic.c (diagnostic_initialize): Initialize
10834 some_warnings_are_errors.
10835 (diagnostic_finish): New.
10836 (diagnostic_action_after_output): Call it before exiting.
10837 (diagnostic_report_diagnostic): Do not print message here. Set
10838 some_warnings_are_errors.
10839 * diagnostic.h (diagnostic_context): Delete
10840 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10841 (diagnostic_finish): Declare.
10842 * toplev.c (toplev_main): Call it before exit.
10844 2010-04-09 Jason Merrill <jason@redhat.com>
10847 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10848 for incomplete type.
10851 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10852 based on a warning flag.
10854 2010-04-09 Richard Guenther <rguenther@suse.de>
10856 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10858 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10861 * varasm.c (default_assemble_visibility): Wrap vars that are
10862 set, but unused, by targets without GAS.
10863 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10864 Remove set, but unused, vars.
10865 (rs6000_legitimize_tls_address): Likewise.
10866 (altivec_expand_dst_builtin): Likewise.
10867 * config/darwin.c (machopic_classify_symbol): Likewise.
10868 (machopic_indirection_name): Likewise.
10870 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10872 * config/i386/i386.md (DWI): New mode iterator.
10873 (S): New mode attribute.
10874 (shift_operand): Ditto.
10875 (shift_immediate_operand): Ditto.
10876 (ashl_input_operand): Ditto.
10877 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10878 using SDWIM mode iterator.
10879 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10880 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10882 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10883 from corresponding peephole2 patterns.
10884 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10885 and x86_64_shift_adj_1 using SWI48 mode iterator.
10886 (x86_shift<mode>_adj_2): Ditto.
10887 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10888 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10889 using SWI48 mode iterator.
10890 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10891 *ashldi3_cmp_rex64 using SWI mode iterator.
10892 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10893 *ashldi3_cconly_rex64 using SWI mode iterator.
10894 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10895 x86_shift<mode>_adj_{1,2}.
10896 (ix86_split_ashr): Ditto.
10897 (ix86_split_lshr): Ditto.
10899 2010-04-09 Richard Guenther <rguenther@suse.de>
10901 * target.h (builtin_conversion): Pass in input and output types.
10902 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10903 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10904 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10905 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10907 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10909 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10911 2010-04-09 Richard Guenther <rguenther@suse.de>
10914 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10916 2010-04-09 Richard Guenther <rguenther@suse.de>
10918 * tree-vectorizer.h (struct _stmt_vec_info): Document
10919 that vectype is the type of the LHS.
10920 (supportable_widening_operation, supportable_narrowing_operation):
10921 Get both input and output vector types as arguments.
10922 (vect_is_simple_use_1): Declare.
10923 (get_same_sized_vectype): Likewise.
10924 * tree-vect-loop.c (vect_determine_vectorization_factor):
10925 Set STMT_VINFO_VECTYPE to the vector type of the def.
10926 (vectorizable_reduction): Adjust.
10927 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10928 Adjust. Specify the output vector type.
10929 (vect_pattern_recog_1): Adjust.
10930 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10931 (vectorizable_call): Adjust.
10932 (vectorizable_conversion): Likewise.
10933 (vectorizable_operation): Likewise.
10934 (vectorizable_type_demotion): Likewise.
10935 (vectorizable_type_promotion): Likewise.
10936 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10938 (vect_is_simple_use_1): New function.
10939 (supportable_widening_operation): Get both input and output
10941 (supportable_narrowing_operation): Likewise.
10942 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10944 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10946 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10947 __thiscall and _thiscall as predefined macros.
10948 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10949 thiscall attribute handling.
10950 (ix86_comp_type_attributes): Likewise.
10951 (ix86_function_regparm): Likewise.
10952 (ix86_return_pops_args): Likewise.
10953 (init_cumulative_args): Likewise.
10954 (find_drap_reg): Likewise.
10955 (ix86_static_chain): Likewise.
10956 (x86_this_parameter): Likewise.
10957 (x86_output_mi_thunk): Likewise.
10958 (ix86_attribute_table): Add description for thiscall attribute.
10959 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10960 * doc/extend.texi: Add documentation for thiscall.
10962 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10965 * c.opt (Wint-to-pointer-cast): Available in C++.
10966 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10968 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10970 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10971 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10972 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10973 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10974 function type instead. Reorder and simplify checks.
10976 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10978 2010-04-08 Jing Yu <jingyu@google.com>
10979 Zdenek Dvorak <ook@ucw.cz>
10981 PR tree-optimization/42720
10982 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10983 loop unswitch conditions here from ...
10984 (tree_unswitch_single_loop): ... here.
10986 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10988 * tree-if-conv.c: Fix comments and simplify logic.
10990 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10992 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10993 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10994 (main_tree_if_conversion): Update call to tree_if_conversion.
10996 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10999 * doc/invoke.texi (-b,-V): Delete.
11000 * doc/tm.texi: Do not mention -b.
11001 * gcc.c (display_help): Delete -b and -V.
11002 (process_command): Delete -b and -V.
11003 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11005 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
11006 Wolfgang Gellerich <gellerich@de.ibm.com>
11008 Implement target hook for loop unrolling
11009 * target.h (loop_unroll_adjust): Add a new target hook function.
11010 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11011 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11012 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11013 (s390_loop_unroll_adjust): Implement the new target hook for s390.
11014 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11016 (decide_unroll_stupid): Likewise.
11018 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11021 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11023 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11025 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11026 (Specific, *-*-solaris2*): Likewise.
11027 Don't prefer Sun as over GNU as.
11029 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
11031 * config/s390/s390.c (override_options): Adjust the z10 defaults
11032 for max-unroll-times, max-completely-peeled-insns
11033 and max-completely-peel-times.
11035 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11037 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11038 instructions for z10.
11039 (s390_expand_setmem): Likewise.
11040 (s390_expand_cmpmem): Likewise.
11042 2010-04-08 Richard Guenther <rguenther@suse.de>
11044 PR tree-optimization/43679
11045 * tree-ssa-pre.c (eliminate): Only propagate copies.
11047 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11050 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11051 set but not used variable warning.
11053 2010-04-08 Wei Guozhi <carrot@google.com>
11056 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11057 (arm_size_rtx_costs): Call the new function when optimized for size.
11059 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11062 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11063 op0 is not a MEM, just return NULL instead of assertion
11065 (discover_nonconstant_array_refs): Don't walk debug stmts.
11067 2010-04-08 Doug Kwan <dougkwan@google.com>
11069 * configure.ac: Recognize gold and do not use its version number
11070 to test ld features.
11071 * configure: Regenerate.
11073 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11075 PR middle-end/40815
11076 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11077 (negate_value): Move code to push elements to broken_up_substracts ...
11078 (eliminate_plus_minus_pair): ... here. Push operands that have no
11079 negative pair to plus_negates.
11080 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11082 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11084 * doc/install.texi (Configuration): Move description of
11085 --enable-lto, --with-libelf*, --enable-gold from Java section to
11088 * doc/generic.texi (Working with declarations)
11089 (Function Properties, C and C++ Trees): Fix typos.
11090 * doc/sourcebuild.texi (Top Level): Likewise.
11092 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11095 * tree.h (DECL_READ_P): Define.
11096 (struct tree_decl_common): Add decl_read_flag.
11097 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11098 a set but not used warning.
11099 (merge_decls): Merge DECL_READ_P flag.
11100 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11101 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11102 * c-common.c (handle_used_attribute, handle_unused_attribute):
11104 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11106 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11108 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11109 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11110 c_parser_binary_expression, c_parser_cast_expression,
11111 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11112 Call default_function_array_read_conversion instead of
11113 default_function_array_conversion where needed.
11114 (c_parser_unary_expression, c_parser_conditional_expression,
11115 c_parser_postfix_expression_after_primary, c_parser_initelt):
11116 Likewise. Call mark_exp_read where needed.
11117 (c_parser_statement_after_labels, c_parser_asm_operands,
11118 c_parser_typeof_specifier, c_parser_sizeof_expression,
11119 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11121 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11123 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11124 (warn_unused_but_set_parameter): Default to warn_unused
11126 * doc/invoke.texi: Document -Wunused-but-set-variable and
11127 -Wunused-but-set-parameter.
11129 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11130 used count variable.
11131 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11132 when operandN variables aren't used in the body of the expander
11134 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11135 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11136 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11137 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11138 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11139 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11140 * tree.c (PROCESS_ARG): Likewise.
11142 2010-04-07 Simon Baldwin <simonb@google.com>
11144 * diagnostic.h (diagnostic_override_option_index): New macro to
11145 set a diagnostic's option_index.
11146 * c-tree.h (c_cpp_error): Add warning reason argument.
11147 * opts.c (_warning_as_error_callback): New.
11148 (register_warning_as_error_callback): Store callback for
11149 warnings enabled via enable_warning_as_error.
11150 (enable_warning_as_error): Call callback, minor code tidy.
11151 * opts.h (register_warning_as_error_callback): Declare.
11152 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11153 response to -Werror=.
11154 (c_common_init_options): Register warning_as_error_callback in opts.c.
11155 * common.opt: Add -Wno-cpp option.
11156 * c-common.c (struct reason_option_codes_t): Map cpp warning
11157 reason codes to gcc option indexes.
11158 * (c_option_controlling_cpp_error): New function, lookup the gcc
11159 option index for a cpp warning reason code.
11160 * (c_cpp_error): Add warning reason argument, call
11161 c_option_controlling_cpp_error for diagnostic_override_option_index.
11162 * doc/invoke.texi: Document -Wno-cpp.
11164 2010-04-07 Richard Guenther <rguenther@suse.de>
11166 * ipa-reference.c (mark_load): Use get_base_address.
11167 (mark_store): Likewise.
11169 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11170 inserting GIMPLE_NOPs into the IL.
11171 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11172 Explicitly strip handled components and indirect references.
11174 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11175 folding address expressions.
11176 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11177 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11178 operand_equal_p to compare decls.
11179 (ptr_deref_may_alias_decl_p): Likewise.
11180 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11181 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11182 Handle reversed comparison ops.
11183 * tree-sra.c (asm_visit_addr): Use get_base_address.
11184 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11185 * ipa-reference.c (mark_address): Use get_base_address.
11187 2010-04-07 Richard Guenther <rguenther@suse.de>
11189 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11190 Propagate constants everywhere.
11192 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11195 * tree.c (MAX_INT_CACHED_PREC): Define.
11196 (nonstandard_integer_type_cache): New array.
11197 (build_nonstandard_integer_type): Cache results for precision
11198 <= MAX_INT_CACHED_PREC.
11200 2010-04-07 Richard Guenther <rguenther@suse.de>
11202 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11203 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11204 * common.opt: Likewise.
11205 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11206 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11207 (nonoverlapping_memrefs_p): Likewise.
11208 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11209 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11210 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11211 OPT_fargument_noalias_global for backward compatibility.
11213 2010-04-07 Richard Guenther <rguenther@suse.de>
11215 PR tree-optimization/43270
11216 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11217 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11218 * tree-ssa-pre.c (phi_translate_1): Adjust.
11219 (fully_constant_expression): Split out vn_reference handling to ...
11220 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11221 Fold reads from constant strings.
11222 (vn_reference_lookup): Handle fully constant references.
11223 (vn_reference_lookup_pieces): Likewise.
11224 * Makefile.in (expmed.o-warn): Add -Wno-error.
11226 2010-04-07 Martin Jambor <mjambor@suse.cz>
11228 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11230 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11233 * gcc.c: Add -static-libstdc++ to list of recognized options.
11235 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11237 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11239 2010-04-07 Richard Guenther <rguenther@suse.de>
11241 PR middle-end/42617
11242 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11243 bases build simple mem attributes to retain points-to information.
11245 2010-04-07 Richard Guenther <rguenther@suse.de>
11247 PR middle-end/42617
11248 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11249 preserve points-to related information.
11251 2010-04-07 Richard Guenther <rguenther@suse.de>
11253 PR middle-end/42617
11254 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11255 discard plain indirect references.
11256 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11257 * tree.c (tree_nop_conversion): Likewise.
11259 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11262 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11264 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11266 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11267 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11269 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11271 * tree-if-conv.c: Fix indentation and comments.
11273 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11275 * tree-if-conv.c: Sort static functions in topological order.
11277 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11279 * tree-if-conv.c: Fix indentation and comments.
11281 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11283 PR middle-end/43519
11284 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11285 lang_hooks.types.type_for_size instead of
11286 build_nonstandard_integer_type.
11287 When converting an unsigned type to signed, double its precision.
11288 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11289 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11290 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11293 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11295 PR middle-end/43519
11296 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11297 POINTER_PLUS_EXPR for pointer types.
11299 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11301 PR middle-end/43519
11302 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11303 * graphite-clast-to-gimple.c: Include langhooks.h.
11304 (max_signed_precision_type): New.
11305 (max_precision_type): Takes two types as arguments.
11306 (precision_for_value): New.
11307 (precision_for_interval): New.
11308 (gcc_type_for_interval): New.
11309 (gcc_type_for_value): New.
11310 (gcc_type_for_clast_term): New.
11311 (gcc_type_for_clast_red): New.
11312 (gcc_type_for_clast_bin): New.
11313 (gcc_type_for_clast_expr): Split up into several functions.
11314 (gcc_type_for_clast_eq): Rewritten.
11315 (compute_bounds_for_level): New.
11316 (compute_type_for_level_1): New.
11317 (compute_type_for_level): New.
11318 (gcc_type_for_cloog_iv): Removed.
11319 (gcc_type_for_iv_of_clast_loop): Rewritten.
11320 (graphite_create_new_loop): Compute the lower and upper bound types
11321 with gcc_type_for_clast_expr.
11322 (graphite_create_new_loop_guard): Same.
11323 (find_cloog_iv_in_expr): Removed.
11324 (compute_cloog_iv_types_1): Removed.
11325 (compute_cloog_iv_types): Removed.
11326 (gloog): Do not call compute_cloog_iv_types.
11327 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11328 GBB_CLOOG_IV_TYPES.
11329 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11330 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11331 (GBB_CLOOG_IV_TYPES): Removed.
11333 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11335 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11336 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11337 (detect_commutative_reduction): Same.
11339 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11341 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11342 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11344 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11345 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11346 (rewrite_commutative_reductions_out_of_ssa): Same.
11347 * passes.c (execute_function_todo): Call verify_ssa for every pass
11348 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11349 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11350 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11351 with an extra argument.
11352 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11353 verify_ssa only when the extra argument is true.
11354 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11355 with an extra argument.
11356 (tree_transform_and_unroll_loop): Same.
11358 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11360 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11361 for all the passes of the LNO having LOOP_CLOSED_SSA.
11362 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11363 * tree-loop-distribution.c (pass_loop_distribution): Same.
11364 * tree-pass.h (TODO_verify_loops): Removed.
11365 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11367 (pass_tree_unswitch): Same.
11368 (pass_predcom): Same.
11369 (pass_vectorize): Same.
11370 (pass_linear_transform): Same.
11371 (pass_graphite_transforms): Same.
11372 (pass_iv_canon): Same.
11373 (pass_complete_unroll): Same.
11374 (pass_complete_unrolli): Same.
11375 (pass_parallelize_loops): Same.
11376 (pass_loop_prefetch): Same.
11377 (pass_iv_optimize): Same.
11379 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11381 PR middle-end/32824
11382 * passes.c (init_optimization_passes): Move pass_lim before
11383 pass_copy_prop and pass_dce_loop.
11385 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11388 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11389 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11390 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11391 MULTI_* defines for 4 argument vpermil2p* builtins.
11393 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11395 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11396 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11397 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11398 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11399 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11400 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11401 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11402 Use x86_maybe_negate_const_int to output insn mnemonic.
11403 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11404 check from instruction predicate. Update comments.
11405 * config/i386/sync.md (sync_add<mode>): Use
11406 x86_maybe_negate_const_int to output insn mnemonic.
11408 2010-04-06 Jan Hubicka <jh@suse.cz>
11410 PR tree-optimization/42906
11411 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11412 IGNORE_SELF argument. Set visited_control_parents for fully
11414 (find_obviously_necessary_stmts): Update call of
11415 mark_control_dependent_edges_necessary.
11416 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11418 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11420 * config/i386/i386.md: Remove comment about 'e' and 'E'
11423 2010-04-06 Richard Guenther <rguenther@suse.de>
11425 PR tree-optimization/43627
11426 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11427 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11430 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11432 * BASE-VER: Change to 4.6.0.
11435 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11438 2010-04-06 Richard Guenther <rguenther@suse.de>
11440 PR middle-end/43661
11441 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11443 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11445 * doc/invoke.texi (Optimize Options): Document that LTO
11446 won't remove object access purely due to incompatible
11449 2010-04-04 Matthias Klose <doko@ubuntu.com>
11451 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11452 Initialize variable.
11454 2010-04-03 Richard Guenther <rguenther@suse.de>
11456 PR middle-end/42509
11457 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11458 require a non-NULL MEM_OFFSET.
11460 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11462 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11463 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11464 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11465 config/alpha/predicates.md, config/arm/arm.md,
11466 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11467 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11468 config/darwin9.h, config/darwin.c, config/darwin.h,
11469 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11470 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11471 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11472 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11473 config/mips/mips.md, config/mn10300/mn10300.c,
11474 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11475 config/rs6000/aix.h, config/rs6000/dfp.md,
11476 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11477 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11478 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11479 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11480 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11481 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11482 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11483 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11484 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11485 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11486 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11487 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11488 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11489 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11490 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11491 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11492 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11493 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11494 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11495 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11496 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11497 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11498 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11499 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11500 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11501 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11502 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11503 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11504 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11505 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11506 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11507 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11508 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11509 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11510 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11511 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11513 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11516 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11517 * aclocal.m4: Regenerate.
11519 2010-04-02 Richard Guenther <rguenther@suse.de>
11521 PR tree-optimization/43629
11522 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11523 if we have seen a constant value.
11525 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11527 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11529 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11532 * arm.c (legitimize_tls_address): Adjust call to
11533 gen_tls_load_dot_plus_four.
11534 (arm_note_pic_base): New function.
11535 (arm_cannot_copy_insn_p): Use it.
11536 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11539 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11544 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11546 * Makefile.in ($(out_object_file)): Depend on
11547 gt-$(basename $(notdir $(out_file))).h.
11549 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11551 * config.gcc (lm32-*-rtems*): Add t-lm32.
11553 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11555 * config.gcc: Add lm32-*-rtems*.
11556 * config/lm32/rtems.h: New file.
11558 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11561 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11563 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11565 * dwarf2out.c (output_compilation_unit_header): For
11566 -gdwarf-4 use version 4 instead of version 3.
11567 (output_line_info): For version 4 and above emit additional
11568 maximum ops per insn header field.
11569 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11571 * dwarf2out.c (is_c_family, is_java): Remove.
11572 (lower_bound_default): New function.
11573 (add_bound_info, gen_descr_array_type_die): Use it.
11575 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11578 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11579 re-declaration when it happens in a function.
11581 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11583 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11584 (cgraph_remove_function_insertion_hook): Same.
11585 (cgraph_call_function_insertion_hooks): Same.
11587 2010-04-01 Richard Guenther <rguenther@suse.de>
11589 PR middle-end/43614
11590 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11591 and TREE_THIS_VOLATILE.
11592 (copy_ref_info): Likewise.
11593 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11594 * tree.c (build6_stat): Ignore side-effects of all but arg5
11595 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11598 2010-04-01 Richard Guenther <rguenther@suse.de>
11600 PR tree-optimization/43607
11601 * ipa-type-escape.c (check_call): Do not access non-existing
11604 2010-04-01 Richard Guenther <rguenther@suse.de>
11606 PR middle-end/43602
11608 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11609 Jack Howarth <howarth@bromo.med.uc.edu>
11611 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11614 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11616 * doc/install.texi (Prerequisites): Document libelf usability on
11617 IRIX 5/6 and Solaris 2.
11618 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11619 Update GNU as, GNU ld requirements.
11620 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11621 Document Sun Studio compiler download.
11622 Update and simplify as, ld recommendations.
11623 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11625 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11627 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11628 with_tune_32 to pentium4.
11630 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11632 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11634 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11636 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11637 obsoletion, removal.
11639 Document GNU as requirement.
11640 Update configure requirements.
11641 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11642 Recomment IRIX 6.5.18+.
11643 Document IDF/IDL requirement.
11644 Document GNU as requirement.
11645 Document GNU ld bootstrap failure.
11646 Remove freeware.sgi.com reference.
11648 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11650 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11651 UNIX V4.0, V5.0 obsoletion, removal.
11652 Remove --with-gc=simple reference.
11653 Update VM requirements during bootstrap.
11654 Remove -oldas bootstrap description.
11655 Update binutils reference.
11656 Remove comparison failure note.
11658 2010-03-31 Richard Guenther <rguenther@suse.de>
11659 Zdenek Dvorak <ook@ucw.cz>
11660 Sebastian Pop <sebastian.pop@amd.com>
11662 PR middle-end/43464
11663 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11664 with multiple arguments.
11665 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11667 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11669 * graphite-dependences.c (print_pddr): Call print_pdr with an
11671 * graphite-poly.c (debug_pdr): Add an extra argument for the
11674 (print_pbb_domain): Same.
11676 (print_scop_context): Same.
11677 (print_scop): Same.
11678 (print_cloog): Same.
11679 (debug_pbb_domain): Same.
11681 (print_pdrs): Same.
11682 (debug_pdrs): Same.
11683 (debug_scop_context): Same.
11684 (debug_scop): Same.
11685 (debug_cloog): Same.
11686 (print_scop_params): Same.
11687 (debug_scop_params): Same.
11688 (print_iteration_domain): Same.
11689 (print_iteration_domains): Same.
11690 (debug_iteration_domain): Same.
11691 (debug_iteration_domains): Same.
11692 (print_scattering_function): Same.
11693 (print_scattering_functions): Same.
11694 (debug_scattering_function): Same.
11695 (debug_scattering_functions): Same.
11696 * graphite-poly.h (debug_pdr): Update declaration.
11698 (print_pbb_domain): Same.
11700 (print_scop_context): Same.
11701 (print_scop): Same.
11702 (print_cloog): Same.
11703 (debug_pbb_domain): Same.
11705 (print_pdrs): Same.
11706 (debug_pdrs): Same.
11707 (debug_scop_context): Same.
11708 (debug_scop): Same.
11709 (debug_cloog): Same.
11710 (print_scop_params): Same.
11711 (debug_scop_params): Same.
11712 (print_iteration_domain): Same.
11713 (print_iteration_domains): Same.
11714 (debug_iteration_domain): Same.
11715 (debug_iteration_domains): Same.
11716 (print_scattering_function): Same.
11717 (print_scattering_functions): Same.
11718 (debug_scattering_function): Same.
11719 (debug_scattering_functions): Same.
11721 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11723 * graphite-poly.c (print_scattering_function_1): New.
11724 (print_scattering_function): Call it.
11725 (print_scop_params): Remove spaces at the end of lines.
11726 (print_cloog): New.
11727 (debug_cloog): New.
11728 * graphite-poly.h (print_cloog): Declared.
11729 (debug_cloog): Declared.
11731 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11733 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11735 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11736 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11737 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11738 to switch between adding the IV bump in loop->latch or in loop->header.
11740 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11742 * graphite-poly.c (print_scattering_function): Pretty print following
11743 the scoplib format.
11745 (print_pbb_domain): Same.
11746 (dump_gbb_cases): Same.
11747 (dump_gbb_conditions): Same.
11748 (print_pdrs): Same.
11750 (print_scop_params): Same.
11751 (print_scop_context): Same.
11752 (print_scop): Same.
11753 (print_pbb_body): New.
11754 (lst_indent_to): New.
11755 (print_lst): Start new lines with a #.
11756 * graphite-poly.h (pbb_bb): New.
11757 (pbb_index): Use pbb_bb.
11758 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11760 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11762 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11764 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11765 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11766 and 0 instead of 1 for dw_val_class_flag.
11767 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11768 dw_val_class_range_list, dw_val_class_loc_list,
11769 dw_val_class_lineptr and dw_val_class_macptr, use
11770 DW_FORM_flag_present for dw_val_class_flag and
11771 DW_FORM_exprloc for dw_val_class_loc.
11772 (output_die): For -gdwarf-4 print dw_val_class_loc
11773 size as uleb128 instead of 1 or 2 bytes and don't print
11774 anything for dw_val_class_flag.
11776 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11777 instead of cselib_lookup following by tweaking locs->setting_insn.
11780 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11781 even before returning from label, setjmp call or volatile asm
11784 2010-03-31 Richard Guenther <rguenther@suse.de>
11786 PR middle-end/43600
11787 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11788 temporary data on stack.
11790 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11792 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11793 (PUSHSECTION_ASM_OP): Remove.
11794 (POPSECTION_ASM_OP): Remove.
11795 (PUSHSECTION_FORMAT): Remove.
11796 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11797 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11798 * config/sol2.c (solaris_output_init_fini): Use it.
11800 2010-03-31 Jie Zhang <jie@codesourcery.com>
11803 * opt-functions.awk (var_type_struct): Use signed char type
11804 for simple variables.
11806 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11808 * config/sol2.c: Include output.h.
11809 (solaris_assemble_visibility): New function.
11810 * config/t-sol2 (sol2.o): Add output.h dependency.
11811 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11812 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11815 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11818 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11819 V2SImode or XFmode on PRE_DEC.
11822 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11825 2010-03-31 Jie Zhang <jie@codesourcery.com>
11828 * reload.h (caller_save_initialized_p): Declare.
11829 * toplev.c (backend_init_target): Don't call
11830 init_caller_save but set caller_save_initialized_p to false.
11831 * caller-save.c (caller_save_initialized_p): Define.
11832 (init_caller_save): Check caller_save_initialized_p.
11833 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11835 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11838 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11839 and soft-fp/t-softfp to tmake_file.
11840 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11841 (LIBGCC2_TF_CEXT): Define.
11844 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11847 * cselib.c (n_useless_values): Document handling of debug locs.
11848 (n_useless_debug_values, n_debug_values): New variables.
11849 (new_elt_loc_list): Don't add to debug values, keep count.
11850 (promote_debug_loc): New.
11851 (cselib_reset_table): Zero new variables.
11852 (entry_and_rtx_equal_p): Promote debug locs.
11853 (discard_useless_locs): Increment n_useless_debug_values for
11855 (remove_useless_values): Adjust n_useless_values and n_debug_values
11856 with n_useless_debug_values.
11857 (add_mem_for_addr): Promote debug locs.
11858 (cselib_lookup_mem): Likewise.
11859 (cselib_lookup_addr): Renamed to...
11860 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11861 (cselib_log_lookup): ... this. Turn into...
11862 (cselib_lookup_addr): ... new wrapper.
11863 (cselib_lookup_from_insn): New.
11864 (cselib_invalidate_regno): Increment n_useless_debug_values for
11866 (cselib_invalidate_mem): Likewise.
11867 (cselib_process_insn): Take n_deleted and n_debug_values into
11868 account to guard remove_useless_value call.
11869 (cselib_finish): Zero n_useless_debug_values.
11870 * cselib.h (cselib_lookup_from_insn): Declare.
11871 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11872 (sched_analyze_2): Likewise.
11874 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11876 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11878 (adjust_mems): Replace narrowing SUBREG of expression containing
11879 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11880 with operations in the narrower mode.
11883 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11884 regs_invalidated_by_call instead all call_used_reg_set registers.
11886 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11888 PR middle-end/43430
11889 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11890 pointer comparisons with types_compatible_p.
11891 * tree-vect-stmts.c (vectorizable_call): Same.
11892 (vectorizable_condition): Same.
11894 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11896 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11897 stack check if the mask would be zero.
11899 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11900 Jack Howarth <howarth@bromo.med.uc.edu>
11902 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11905 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11908 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11910 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11911 Include ___unordxf2 and ___unordtf2.
11912 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11915 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11917 * config/lm32/t-lm32: New file.
11918 * config.gcc: Use the above file when targetting lm32.
11920 2010-03-28 Duncan Sands <baldrick@free.fr>
11922 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11924 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11926 PR middle-end/43431
11927 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11928 Improve vectorization cost model diagnostic.
11930 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11932 PR middle-end/43436
11933 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11934 compute_data_dependences_for_loop returns false, early exit
11935 and output an extra diagnostic for the failed data reference
11938 2010-03-29 Richard Guenther <rguenther@suse.de>
11940 PR tree-optimization/43560
11941 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11942 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11944 2010-03-29 Jie Zhang <jie@codesourcery.com>
11947 * toplev.c (process_options): Set optimization_default_node
11948 and optimization_current_node.
11949 * opts.c (decode_options): Don't set optimization_default_node
11950 and optimization_current_node.
11952 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11954 * config/rtems.h: Abandon -qrtems_debug.
11956 2010-03-28 Jan Hubicka <jh@suse.cz>
11958 PR tree-optimization/43505
11959 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11960 map should not be copied.
11962 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11964 PR middle-end/41674
11965 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11966 cdtors, set DECL_PRESERVE_P.
11967 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11968 should be preseved.
11970 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11972 PR tree-optimization/43528
11973 * stor-layout.c (place_field): Check that constant fits into
11974 unsigned HWI when skipping calculation of MS bitfield layout.
11976 2010-03-27 Jan Hubicka <jh@suse.cz>
11978 PR middle-end/43391
11979 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11980 notice_global_symbol work.
11982 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11984 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11985 instead of dwarf2out_decl.
11986 (struct var_loc_node): Remove section_label field.
11987 (dwarf2out_function_decl): New function.
11988 (dwarf2out_var_location): Don't set section_label field.
11989 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11991 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11993 PR tree-optimization/43544
11994 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11995 First argument for builtin vectorized function hook is now a
11996 tree to be able to distinguish between machine specific and
11998 * targhooks.c (default_builtin_vectorized_function): Ditto.
11999 * targhooks.h (default_builtin_vectorized_function): Ditto.
12000 * target.h (struct gcc_target): Ditto.
12001 * tree-vect-stmts.c (vectorizable_function): Ditto.
12002 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12003 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12006 2010-03-26 Joseph Myers <joseph@codesourcery.com>
12009 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12010 nested binding iff it is a FUNCTION_DECL.
12011 (store_parm_decls_newstyle): Pass nested=true to bind for
12012 FUNCTION_DECLs amongst parameters.
12014 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12016 * var-tracking.c (vt_expand_loc_callback): Don't run
12017 cselib_expand_value_rtx_cb in dummy mode if
12018 cselib_dummy_expand_value_rtx_cb returned false.
12020 * var-tracking.c (emit_note_insn_var_location): For one part
12021 notes with offset 0, don't add EXPR_LIST around the location.
12022 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12023 add_location_or_const_value_attribute): Adjust for that change.
12026 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12027 into first operand and location into second.
12028 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12029 dw_cfi_oprnd_loc for DW_CFA_expression.
12030 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12031 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12032 assume first argument is regnum and second argument is location.
12034 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12037 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12038 of scratch register to DImode. Split to DImode comparison operator.
12039 Use SImode subreg of scratch register in the multiplication.
12040 (*cmp_sadd_sidi): Ditto.
12041 (*cmp_ssub_si): Ditto.
12042 (*cmp_ssub_sidi): Ditto.
12044 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12047 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12048 Remove invalid assert and wrong comment.
12050 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12053 * flags.h (final_insns_dump_p): New extern.
12054 * final.c (final_insns_dump_p): New variable.
12055 (rest_of_clean_state): Set it before -fdump-final-insns=
12056 dumping, clear afterwards.
12057 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12058 MEM_ALIAS_SET on MEMs.
12060 2010-03-26 David S. Miller <davem@davemloft.net>
12062 * configure.ac: Fix sparc GOTDATA_OP bug check.
12063 * configure: Rebuild.
12065 2010-03-26 Alan Modra <amodra@gmail.com>
12067 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12069 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12071 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12072 TLS_SECTION_ASM_FLAG.
12074 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12077 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12078 Clear first_function_block_is_cold.
12081 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12082 argument if the argument is truth_value_p.
12084 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12086 * config/rs6000/constraints.md: Update copyright year for my changes.
12089 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12090 used in reg+reg addressing, swap registers.
12092 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12095 * target.h (struct gcc_target): Add code_end hook.
12096 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12097 if not yet defined.
12098 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12099 * toplev.c (compile_file): Call targetm.asm_out.code_end
12100 hook before unwind info/debug info output.
12101 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12102 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12103 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12104 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12105 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12106 * config/i386/i386.c (ix86_file_end): Renamed to...
12107 (ix86_code_end): ... this. Make static. Don't call
12108 file_end_indicate_exec_stack. Emit unwind info using
12109 final_start_function/final_end_function.
12110 (darwin_x86_file_end): Remove.
12111 (TARGET_ASM_CODE_END): Define.
12112 * config/i386/i386.h (TARGET_ASM_FILE_END,
12113 NEED_INDICATE_EXEC_STACK): Don't define.
12114 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12115 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12116 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12117 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12120 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12121 at the beginning and final_end_function at the end.
12122 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12124 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12126 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12127 and Sun as TLS syntax.
12128 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12129 * configure: Regenerate.
12130 * config.in: Regenerate.
12131 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12132 (default_elf_asm_named_section): Use it.
12133 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12134 (i386_output_dwarf_dtprel): Likewise.
12135 (output_addr_const_extra): Likewise.
12136 (output_pic_addr_const): Lowercase @GOTTPOFF.
12137 (output_addr_const_extra): Likewise.
12138 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12139 (output_addr_const_extra): Likewise.
12140 (output_pic_addr_const): Lowercase @INDNTPOFF.
12141 (output_addr_const_extra): Likewise.
12142 (output_pic_addr_const): Lowercase @NTPOFF.
12143 (output_addr_const_extra): Likewise.
12144 (output_pic_addr_const): Lowercase @TPOFF.
12145 (output_addr_const_extra): Likewise.
12146 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12147 (*tls_global_dynamic_64): Likewise.
12148 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12149 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12151 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12152 (ASM_OUTPUT_TLS_COMMON): Use it.
12153 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12156 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12157 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12158 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12159 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12160 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12161 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12163 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12165 * config/i386/i386.c (override_options): Don't accept
12166 -mtls-dialect=sun any longer.
12167 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12168 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12169 (*tls_local_dynamic_base_32_sun): Likewise.
12170 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12172 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12175 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12176 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12179 * ira.c (adjust_cleared_regs): New function.
12180 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12184 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12186 * expr.c (expand_expr_real): Restore previous
12187 curr_insn_source_location and curr_insn_block after
12188 expand_expr_real_1 call.
12189 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12190 instead of expand_expr_real_1.
12192 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12194 PR rtl-optimization/43413
12195 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12198 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12201 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12202 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12204 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12206 * config/i386/i386.c (ix86_target_string): Add -mfma.
12207 Fix a typo in comment.
12209 2010-03-22 Mike Stump <mikestump@comcast.net>
12212 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12213 Don't overly align based upon packed packed fields.
12215 2010-03-22 Jason Merrill <jason@redhat.com>
12217 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12218 Use () rather than [], and move before the element type.
12220 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12222 * doc/configfiles.texi (Configuration Files): Removed
12223 fixinc/Makefile*, intl/Makefile.*.
12224 * doc/makefile.texi: Fixed markup. Abstract from version
12225 control system used.
12226 (Makefile): Removed obsolete gcc/java/parse.y example.
12227 * doc/sourcebuild.texi: Likewise.
12228 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12229 libgomp, libssp. Removed fastjar.
12230 (Miscellaneous Docs): Clarify location.
12231 Added COPYING3, COPYING3.LIB.
12232 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12234 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12237 * config/i386/i386.c (x86_function_profiler)
12238 [!NO_PROFILE_COUNTERS]: Fix typo.
12239 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12242 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12243 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12245 * doc/sourcebuild.texi (Test Directives): Split into six
12246 subsections, with most of the current text in new subsections
12247 Directives, Selectors, and Final Actions.
12248 (Directives): Split list of test directives into multiple
12250 (Selectors): Describe use and syntax of selectors.
12251 (Effective-Target Keywords): Describe all existing keywords.
12252 (Add Options): Describe features for dg-add-options.
12253 (Require Support): Describe variants of dg-require-support.
12254 (Final Actions): Describe commands to use in dg-final.
12256 2010-03-22 Michael Matz <matz@suse.de>
12258 PR middle-end/43475
12259 * recog.c (validate_replace_rtx_group): Replace also in
12260 REG_EQUAL and REG_EQUIV notes.
12262 2010-03-22 Richard Guenther <rguenther@suse.de>
12264 PR tree-optimization/43390
12265 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12266 sure vector extracts are type correct.
12268 2010-03-22 Richard Guenther <rguenther@suse.de>
12270 PR middle-end/40106
12271 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12272 x * sqrt (x) even when optimizing for size if the target
12273 has native support for sqrt.
12275 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12277 * varasm.c (make_decl_rtl_for_debug): Also clear
12278 flag_mudflap for the duration of make_decl_rtl call.
12281 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12282 locs from preserved VALUEs.
12284 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12286 PR middle-end/42718
12287 * pa.md (movmemsi): Set align to one if zero.
12288 (movmemdi): Likewise.
12290 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12293 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12294 with their corresponding prologue pushes.
12296 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12299 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12300 at the begining or end.
12301 (spu_expand_epilogue): Likewise.
12303 2010-03-20 Richard Guenther <rguenther@suse.de>
12305 PR rtl-optimization/43438
12306 * combine.c (make_extraction): Properly zero-/sign-extend an
12307 extraction of the low part of a CONST_INT. Also handle
12310 2010-03-19 Mike Stump <mikestump@comcast.net>
12312 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12313 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12314 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12316 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12319 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12322 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12324 PR rtl-optimization/42258
12325 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12326 use that may match DEF.
12329 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12330 the cost of loading the constant rather than assuming
12332 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12333 outer code is AND, do the same tests as the andsi3 expander and
12334 return COSTS_N_INSNS (1) if and is cheap.
12336 * optabs.c (avoid_expensive_constant): Fix formatting.
12338 2010-03-19 Michael Matz <matz@suse.de>
12341 * attribs.c (decl_attributes): When rebuilding a function pointer
12342 type use the same qualifiers as the original pointer type.
12344 2010-03-19 Martin Jambor <mjambor@suse.cz>
12346 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12347 and is_gimple_ip_invariant_address.
12349 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12352 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12354 * config/arm/arm.c (arm_override_options): Turn off
12355 flag_dwarf2_cfi_asm for AAPCS variants.
12357 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12360 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12361 Use PRE_MODIFY instead of PRE_DEC.
12362 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12363 (vfp_emit_fstmd): Likewise.
12365 2010-03-19 Michael Matz <matz@suse.de>
12368 * builtins.c (expand_builtin_interclass_mathfn,
12369 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12372 2010-03-19 Richard Guenther <rguenther@suse.de>
12374 PR tree-optimization/43415
12375 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12376 (phi_translate_1): ... this.
12377 (phi_translate): Move all caching here. Cache all NARY
12378 and REFERENCE translations.
12380 2010-03-19 David S. Miller <davem@davemloft.net>
12382 With help from Eric Botcazou.
12383 * config/sparc/sparc.c: Include dwarf2out.h.
12384 (emit_pic_helper): Delete.
12385 (pic_helper_symbol_name): Delete.
12386 (pic_helper_emitted_p): Delete.
12387 (pic_helper_needed): New.
12388 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12389 (get_pc_thunk_name): New.
12390 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12391 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12392 Set pic_helper_needed to true. Don't call emit_pic_helper.
12393 (sparc_expand_prologue): Update load_pic_register call.
12394 (sparc_output_mi_thunk): Likewise.
12395 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12396 thunk if possible. Output CFI information as needed.
12398 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12399 Jack Howarth <howarth@bromo.med.uc.edu>
12402 * config/i386/i386.h: Fix ABI on darwin x86-32.
12404 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12406 * tree.h: Declare make_decl_rtl_for_debug.
12407 * varasm.c (make_decl_rtl_for_debug): New.
12408 * dwarf2out.c (rtl_for_decl_location): Call it.
12409 * cfgexpand.c (expand_debug_expr): Call it.
12411 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12414 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12418 * var-tracking.c (vt_init_cfa_base): Do nothing if
12419 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12421 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12424 * var-tracking.c (canonicalize_vars_star): New.
12425 (dataflow_post_merge_adjust): Use it.
12427 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12430 * var-tracking.c (non_suitable_const): New function.
12431 (add_uses): For DEBUG_INSNs with constants, don't record any
12432 value, instead just the constant value itself.
12433 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12434 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12435 (emit_notes_in_bb): Likewise.
12436 (emit_note_insn_var_location): For onepart variables if
12437 cur_loc is a VOIDmode constant, use DECL_MODE.
12439 2010-03-18 Martin Jambor <mjambor@suse.cz>
12441 PR middle-end/42450
12442 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12443 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12444 all non-clones. Moved call redirection...
12445 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12446 (cgraph_materialize_all_clones): Dispose of all
12447 combined_args_to_skip bitmaps.
12448 (verify_cgraph_node): Do not check for edges pointing to wrong
12449 nodes in inline clones.
12450 * tree-inline.c (copy_bb): Call
12451 cgraph_redirect_edge_call_stmt_to_callee.
12452 * ipa.c (cgraph_remove_unreachable_nodes): Call
12453 cgraph_node_remove_callees even when there are used clones.
12455 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12457 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12459 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12462 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12465 2010-03-18 Michael Matz <matz@suse.de>
12467 PR middle-end/43419
12468 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12469 into sqrt(x) if we need to preserve signed zeros.
12471 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12472 Eric Botcazou <ebotcazou@adacore.com>
12474 PR rtl-optimization/43360
12475 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12476 note if we don't know its invariant status.
12478 2010-03-18 Michael Matz <matz@suse.de>
12480 PR tree-optimization/43402
12481 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12482 PHI chains of ssa names registered for update.
12484 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12487 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12488 non-offsettable and pre_modify update addressing.
12489 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12490 and "2" alternatives "#".
12491 (*movdd_softfloat32): Make all alternatives "#";
12492 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12493 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12494 (*movdf_softfloat32): Make all alternatives "#";
12495 (movdi): Use the new DIFD mode iterator to create a common splitter
12496 for movdi, movdf and movdd patterns.
12498 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12500 * common.opt (dumpdir): Remove redundant tab.
12502 2010-03-17 Martin Jambor <mjambor@suse.cz>
12504 PR tree-optimization/43347
12505 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12506 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12508 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12510 PR rtl-optimization/42216
12511 * regrename.c (create_new_chain): New function, broken out from...
12512 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12513 appending a use to an empty chain.
12514 (build_def_use): Remove previous changes that convert OP_INOUT to
12515 OP_OUT operands; instead detect the case where an OP_INOUT operand
12516 uses a previously untracked register and create an empty chain for it.
12518 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12520 * doc/extend.texi (Function Attributes): Rewrite unfinished
12521 sentence in ms_abi documentation.
12523 2010-03-17 Alan Modra <amodra@gmail.com>
12525 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12526 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12527 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12528 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12530 2010-03-16 Richard Henderson <rth@redhat.com>
12532 PR middle-end/43365
12533 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12534 (lower_try_finally): Save and restore eh_seq around the expansion
12535 of the try-finally.
12537 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12539 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12540 statements before splitting block.
12542 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12544 * doc/sourcebuild.texi (Testsuites): Fix markup.
12545 Use pathnames relative to gcc/testsuite.
12546 (Test Directives): Move description of how timeout is determined.
12547 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12548 (C Tests): Correct gcc.misc-tests directory.
12549 Framework tests now live in gcc.test-framework.
12551 2010-03-16 Richard Guenther <rguenther@suse.de>
12553 PR middle-end/43379
12554 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12555 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12557 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12558 Alexandre Oliva <aoliva@redhat.com>
12560 PR tree-optimization/42917
12561 * lambda-code.c (remove_iv): Skip debug statements.
12562 (lambda_loopnest_to_gcc_loopnest): Likewise.
12563 (not_interesting_stmt): Debug statements are not interesting.
12565 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12569 * cselib.c (cselib_preserve_constants,
12570 cfa_base_preserved_val): New static variables.
12571 (preserve_only_constants): New function.
12572 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12573 clear its REG_VALUES. If cselib_preserve_constants, don't
12574 empty the whole hash table, but preserve there VALUEs with constants,
12575 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12576 (cselib_preserve_cfa_base_value): New function.
12577 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12578 (cselib_init): Change argument to int bitfield. Set
12579 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12581 (cselib_finish): Clear cselib_preserve_constants and
12582 cfa_base_preserved_val.
12583 * cselib.h (enum cselib_record_what): New enum.
12584 (cselib_init): Change argument to int.
12585 (cselib_preserve_cfa_base_value): New prototype.
12586 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12587 * dse.c (dse_step1): Likewise.
12588 * cfgcleanup.c (thread_jump): Likewise.
12589 * sched-deps.c (sched_analyze): Likewise.
12590 * gcse.c (local_cprop_pass): Likewise.
12591 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12592 If FN is non-NULL, call the callback always and whenever it returns
12593 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12594 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12595 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12596 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12597 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12598 * var-tracking.c: Include recog.h.
12599 (bb_stack_adjust_offset): Remove.
12600 (vt_stack_adjustments): Don't call it, instead just gather the
12601 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12602 (adjust_stack_reference): Remove.
12603 (compute_cfa_pointer): New function.
12604 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12605 (struct adjust_mem_data): New type.
12606 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12608 (get_address_mode): New function.
12609 (replace_expr_with_values): Use it.
12610 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12611 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12612 (adjust_sets): Remove.
12613 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12614 Use get_address_mode.
12615 (get_adjusted_src): Remove.
12616 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12617 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12618 (add_with_sets): Don't call adjust_sets.
12619 (fp_setter, vt_init_cfa_base): New functions.
12620 (vt_initialize): Change return type to bool. Move most of pool etc.
12621 initialization to the beginning of the function from end. Pass
12622 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12623 If !frame_pointer_needed, call vt_stack_adjustment before mos
12624 vector is filled, call vt_init_cfa_base if argp/framep has been
12625 eliminated to sp. If frame_pointer_needed and argp/framep has
12626 been eliminated to hard frame pointer, set
12627 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12628 encountering fp setter in the prologue. For MO_ADJUST, call
12629 log_op_type before pusing the op into mos vector, not afterwards.
12630 Call adjust_insn before cselib_process_insn/add_with_sets,
12631 call cancel_changes (0) afterwards.
12632 (variable_tracking_main_1): Adjust for vt_initialize calling
12633 vt_stack_adjustments and returning whether it succeeded or not.
12635 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12637 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12640 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12642 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12644 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12645 drap_reg has not been set.
12647 2010-03-15 Michael Matz <matz@suse.de>
12649 PR middle-end/43300
12650 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12651 use it to expand block copies.
12652 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12653 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12654 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12656 2010-03-15 Richard Guenther <rguenther@suse.de>
12658 PR tree-optimization/43367
12659 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12662 2010-03-15 Richard Guenther <rguenther@suse.de>
12664 PR tree-optimization/43317
12665 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12667 2010-03-15 Martin Jambor <mjambor@suse.cz>
12669 PR tree-optimization/43141
12670 * tree-sra.c (create_abstract_origin): New function.
12671 (modify_function): Call create_abstract_origin.
12673 2010-03-15 Chris Demetriou <cgd@google.com>
12675 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12678 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12680 PR middle-end/43354
12681 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12682 call insert_out_of_ssa_copy for default definitions.
12684 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12686 * graphite-clast-to-gimple.c (my_long_long): Defined.
12687 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12688 * graphite-sese-to-poly.c (my_long_long): Defined.
12689 (scop_ivs_can_be_represented): Use it.
12691 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12693 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12694 graphite-max-bbs-per-function, and loop-block-tile-size.
12695 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12697 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12699 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12701 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12702 forward declaration.
12703 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12704 (add_upper_bounds_from_estimated_nit): New.
12705 (build_loop_iteration_domains): Use it.
12707 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12709 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12711 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12713 PR middle-end/43306
12714 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12715 should be an INTEGER_CST. Also handle CASE_CONVERT.
12717 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12719 * graphite.c (graphite_initialize): To bound the number of bbs per
12720 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12721 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12722 * doc/invoke.texi: Document it.
12724 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12726 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12727 * graphite-sese-to-poly.h (build_poly_scop): Same.
12729 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12731 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12732 the number of parameters in the scop. Use as an upper bound
12733 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12734 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12735 * doc/invoke.texi: Document it.
12737 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12739 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12740 * doc/c-tree.texi: Remove.
12741 * doc/generic.texi: Merge c-tree.texi here.
12742 * doc/gccint.texi (Trees): Remove menu entry.
12743 (c-tree.texi): Remove @include.
12744 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12745 * doc/languages.texi (Reading RTL): Ditto.
12747 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12750 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12752 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12754 PR middle-end/42431
12755 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12756 code added to work around reload clobbering CONST insns.
12758 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12760 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12761 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12762 (cselib_preserve_only_values): Remove retain argument, don't
12763 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12764 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12765 * var-tracking.c (micro_operation): Move insn field before union.
12766 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12767 (struct variable_tracking_info_def): Remove n_mos field, change
12768 mos into a vector of micro_operations.
12769 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12770 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12771 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12772 changing into a vector.
12773 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12774 come before all other uops generated by add_stores.
12775 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12777 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12778 a vector. Run just one pass over the bbs instead of separate counting
12779 and computation phase.
12780 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12783 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12784 into *nonlocalized_list vector.
12785 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12786 even if origin is non-NULL.
12787 (gen_variable_die): Likewise.
12788 (process_scope_var): Don't change origin.
12789 (gen_decl_die): Likewise.
12790 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12791 before adding new edges instead of after it, fix moving over
12794 2010-03-11 David S. Miller <davem@davemloft.net>
12796 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12798 * configure: Rebuild.
12800 2010-03-11 Martin Jambor <mjambor@suse.cz>
12802 PR tree-optimization/43257
12803 * tree.c (assign_assembler_name_if_neeeded): New function.
12804 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12805 above new function.
12806 * tree.h (assign_assembler_name_if_neeeded): Declare.
12807 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12808 the function if needed.
12810 2010-03-11 Chris Demetriou <cgd@google.com>
12812 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12813 include/stdint-gcc.h, and include/stdint.h world-readable.
12815 2010-03-11 Richard Guenther <rguenther@suse.de>
12817 PR tree-optimization/43255
12818 * tree-vrp.c (process_assert_insertions_for): Do not insert
12819 asserts for trivial conditions.
12821 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12823 PR tree-optimization/43280
12824 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12825 generation. Move calculation of size out of the if branch.
12826 (find_bswap): Modify compare number generation.
12828 2010-03-11 Richard Guenther <rguenther@suse.de>
12831 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12832 (input_gimple_stmt): Fixup handled component types during
12833 operand read. Also fix up decls in ADDR_EXPRs.
12835 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12837 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12838 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12840 2010-03-10 Jan Hubicka <jh@suse.cz>
12843 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12844 * varasm.c (get_variable_section): Don't do that here...
12845 (make_decl_rtl): ... and here.
12846 (do_assemble_alias): Produce decl RTL.
12847 (assemble_alias): Likewise.
12849 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12852 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12853 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12855 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12856 (based_loc_descr): Only express drap or vdrap regno based expressions
12857 using DW_OP_fbreg when not optimizing.
12858 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12859 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12860 REG_CFA_SET_VDRAP note.
12862 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12864 PR tree-optimization/43236
12865 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12866 error in calculation of base address in reverse iteration case.
12867 (generate_builtin): Take number of latch executions if the statement
12870 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12872 PR middle-end/42859
12873 * tree-eh.c: Include pointer-set.h.
12874 (lower_eh_dispatch): Filter out duplicate case labels and
12875 remove the unneeded edge when the label is unused. Return
12876 true when some edges are removed.
12877 (execute_lower_eh_dispatch): When any lowering resulted in
12878 removing an edge, also delete unreachable blocks.
12880 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12883 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12884 UNSPEC_MACHOPIC_OFFSET.
12886 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12889 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12890 (m68k_delegitimize_address): New function.
12892 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12895 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12898 * var-tracking.c (adjust_sets): New function.
12899 (count_with_sets, add_with_sets): Use it.
12900 (get_adjusted_src): New inline function.
12901 (add_stores): Use it.
12904 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12905 call cselib_dummy_expand_value_rtx_cb instead of
12906 cselib_expand_value_rtx_cb.
12909 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12910 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12911 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12912 and .cfi_endproc around the pic thunks.
12913 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12914 all queued unwind info register saves are saved before the call.
12915 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12916 considered as sp-=4 for unwind info and the pop as sp+=4 which
12917 also clobbers dest, but doesn't actually restore it.
12920 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12921 RTX_FRAME_RELATED_P.
12923 2010-03-09 Jie Zhang <jie@codesourcery.com>
12925 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12926 whitespaces in output template.
12928 2010-03-09 Jie Zhang <jie@codesourcery.com>
12930 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12931 out array boundary.
12933 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12935 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12936 builtins.exp in a separate job.
12938 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12940 * graphite-sese-to-poly.c (add_param_constraints): Use
12941 lower_bound_in_type and upper_bound_in_type.
12943 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12945 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12946 instead of unsigned_type_node.
12948 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12949 Reza Yazdani <reza.yazdani@amd.com>
12951 PR middle-end/43065
12952 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12953 on pointer type parameters.
12955 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12957 PR middle-end/42644
12958 PR middle-end/42130
12959 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12960 handle conversions from pointer to integers.
12961 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12962 induction variable, to be able to work with code generated by CLooG.
12963 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12964 (build_poly_scop): Bail out if we cannot codegen a loop.
12966 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12968 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12969 code generation with gloog_error.
12971 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12973 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12974 Call fold_convert on all the returned values.
12975 (expand_scalar_variables_expr): Pass to
12976 expand_scalar_variables_ssa_name the type of the resulting expression.
12978 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12980 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12981 ppl_min_for_le_pointset.
12982 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12983 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12985 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12987 * graphite-dependences.c (map_into_dep_poly): Removed.
12988 (dependence_polyhedron_1): Use combine_context_id_scat.
12990 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12992 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12993 (struct poly_bb): Same.
12994 (combine_context_id_scat): New.
12996 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12998 PR middle-end/42326
12999 * sese.c (name_defined_in_loop_p): Return false for default
13002 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13004 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13005 and clean up the logic.
13007 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13009 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13012 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13014 * var-tracking.c (remove_cselib_value_chains): Define only for
13016 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13017 delete_slot_part, emit_notes_for_differences_1): Don't call
13018 remove_cselib_value_chains here.
13019 (set_slot_part, emit_notes_for_differences_2): Don't call
13020 add_cselib_value_chains here.
13021 (preserved_values): New vector.
13022 (preserve_value): New function.
13023 (add_uses, add_stores, vt_add_function_parameters): Use it
13024 instead of cselib_preserve_value.
13025 (changed_values_stack): New vector.
13026 (check_changed_vars_0): New function.
13027 (check_changed_vars_1, check_changed_vars_2): Use it.
13028 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13029 changed_values_stack VALUEs.
13030 (vt_emit_notes): For all preserved_values call
13031 add_cselib_value_chains. If ENABLE_CHECKING call
13032 remove_cselib_value_chains before verifying value_chains is empty.
13033 Initialize and free changed_values_stack.
13034 (vt_initialize): Initialize preserved_values.
13035 (vt_finalize): Free preserved_values.
13037 2010-03-08 Richard Guenther <rguenther@suse.de>
13039 PR tree-optimization/43269
13040 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13043 2010-03-08 Martin Jambor <mjambor@suse.cz>
13045 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13046 (ipa_is_param_called): Removed.
13047 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13048 (ipa_print_node_params): Do not print the called flag.
13049 (ipa_write_node_info): Do not stream the called flag.
13050 (ipa_read_node_info): Likewise.
13052 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13055 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13056 * cselib.c (struct expand_value_data): Add dummy field.
13057 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13059 (cselib_dummy_expand_value_rtx_cb): New function.
13060 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13062 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13063 * var-tracking.c: Include pointer-set.h.
13064 (variable): Change n_var_parts to char from int. Add
13065 cur_loc_changed and in_changed_variables fields.
13066 (variable_canonicalize): Remove.
13067 (shared_var_p): New inline function.
13068 (unshare_variable): Maintain cur_loc_changed and
13069 in_changed_variables fields. If var was in changed_variables,
13070 replace it there with new_var. Just copy cur_loc instead of
13071 resetting it to something else.
13072 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13073 (dataflow_set_union): Don't call variable_canonicalize.
13074 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13075 of their DEBUG_EXPR_TREE_DECLs.
13076 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13077 and in_changed_variables and cur_loc_changed is false.
13078 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13079 and cur_loc_changed. Don't update cur_loc here.
13080 (variable_merge_over_src): Don't call variable_canonicalize.
13081 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13082 removing loc that is equal to cur_loc, clear cur_loc,
13083 set cur_loc_changed and ensure variable_was_changed is called.
13084 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13085 compare pointers in cur_loc check, if it is equal to loc,
13086 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13087 (variable_different_p): Remove compare_current_location argument,
13088 don't compare cur_loc.
13089 (dataflow_set_different_1): Adjust variable_different_p caller.
13090 (variable_was_changed): If dv had some var in changed_variables
13091 already, reset in_changed_variables flag for it and propagate
13092 cur_loc_changed over to the new variable. On empty var
13093 always set cur_loc_changed. Set in_changed_variables on whatever
13094 var is added to changed_variables.
13095 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13096 Use shared_var_p. When removing loc that is equal to cur_loc,
13097 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13098 end, don't set it to something else, just call variable_was_changed.
13099 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13100 loc being removed, clear cur_loc and set cur_loc_changed.
13101 Set cur_loc_changed if all locations have been removed.
13102 (struct expand_loc_callback_data): New type.
13103 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13104 allocated. Always create SUBREGs if simplify_subreg failed.
13105 Prefer to use cur_loc, when that fails and still in
13106 changed_variables (and seen first time) recompute it. Set
13107 cur_loc_changed of variables which had to change cur_loc and
13108 compute elcd->cur_loc_changed if any of the subexpressions used
13109 had to change cur_loc.
13110 (vt_expand_loc): Adjust to pass arguments in
13111 expand_loc_callback_data structure.
13112 (vt_expand_loc_dummy): New function.
13113 (emitted_notes): New variable.
13114 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13115 that weren't used for any other decl in current
13116 emit_notes_for_changes call call vt_expand_loc_dummy to update
13117 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13118 first loc_chain location if NULL before. Always use just
13119 cur_loc instead of first loc_chain location. When cur_loc_changed
13120 is false, when not --enable-checking=rtl just don't emit any note.
13121 When rtl checking, compute the note and assert it is the same
13122 as previous note. Clear cur_loc_changed and in_changed_variables
13123 at the end before removing from changed_variables.
13124 (check_changed_vars_3): New function.
13125 (emit_notes_for_changes): Traverse changed_vars to call
13126 check_changed_vars_3 on each changed var.
13127 (emit_notes_for_differences_1): Clear cur_loc_changed and
13128 in_changed_variables. Recompute cur_loc of new_var.
13129 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13130 (vt_emit_notes): Initialize and destroy emitted_notes.
13132 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13134 PR rtl-optimization/42220
13135 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13136 Use verify_reg_tracked to determine if we should use OP_OUT rather
13138 (build_def_use): If we see an in-out operand for a register that we
13139 know nothing about, treat is an output if possible, fail the block if
13142 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13145 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13148 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13151 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13152 uses of relevant DEFs that are dead outside the loop too.
13154 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13156 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13158 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13160 * var-tracking.c (values_to_unmark): New variable.
13161 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13162 values_to_unmark vector. Moved body to...
13163 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13164 instead queue it into values_to_unmark vector.
13165 (vt_find_locations): Free values_to_unmark vector.
13167 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13169 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13170 (site.exp): Export them when plugins are enabled.
13172 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13174 PR middle-end/42326
13175 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13176 that contain scevs.
13177 (chrec_fold_multiply): Same.
13179 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13182 * c-decl.c (build_compound_literal): Return early if init is
13183 an error_mark_node.
13185 2010-03-04 Martin Jambor <mjambor@suse.cz>
13187 PR tree-optimization/43164
13188 PR tree-optimization/43191
13189 * tree-sra.c (type_consists_of_records_p): Reject records with
13190 zero-size bit-fields at the end.
13192 2010-03-04 Mike Stump <mikestump@comcast.net>
13194 * Makefile.in (TAGS): Remove *.y.
13196 2010-03-04 Richard Guenther <rguenther@suse.de>
13198 PR tree-optimization/40761
13199 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13201 (my_rev_post_order_compute): New function.
13202 (init_pre): Call it.
13204 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13206 PR middle-end/43209
13207 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13208 decrease the cost of an IV candidate when the cost is infinite.
13210 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13212 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13213 Use '3DNow!' for the extension of that name, ensure normal space
13215 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13217 2010-03-03 Jeff Law <law@redhat.com>
13219 * PR middle-end/32693
13220 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13221 than gen_rtx_SUBREG.
13222 (extract_bit_field_1): Likewise.
13224 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13226 * doc/sourcebuild.texi (Test directives): Document that arguments
13227 include-opts and exclude-opts are now optional for dg-skip-if,
13228 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13230 2010-03-03 Jason Merrill <jason@redhat.com>
13233 * cgraph.h (varpool_node): Add extra_name field.
13234 * varpool.c (varpool_extra_name_alias): New.
13235 (varpool_assemble_decl): Emit extra name aliases.
13236 (varpool_mark_needed_node): Look past an extra name alias.
13237 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13238 * lto-streamer-in.c (lto_input_tree): Read it.
13239 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13241 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13243 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13244 (sparc*-*-solaris2*): ...this.
13246 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13249 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13250 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13251 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13252 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13255 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13256 fallthrough to default handling, just with want_address 0 instead of 2.
13257 For single element lists, add_AT_loc directly, otherwise create an
13258 artificial variable DIE and stick location list to it.
13261 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13262 (VAL_EXPR_HAS_REVERSE): Define.
13263 (reverse_op): New function.
13264 (add_stores): For reversible operations add an extra MO_VAL_USE.
13266 2010-03-02 Jason Merrill <jason@redhat.com>
13268 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13270 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13272 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13273 (sparc64-*-linux*): Likewise.
13274 (sparc64-*-solaris2*): Include assembler files before linker ones.
13275 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13276 * config/sparc/gas.h: Delete.
13277 * config/sparc/sol2-64.h: Add copyright notice.
13278 * config/sparc/sol2-gas-bi.h: Likewise.
13279 * config/sparc/sol2-gld.h: Likewise.
13280 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13281 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13282 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13283 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13284 (sparc_elf_asm_named_section): Rename into...
13285 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13287 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13289 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13291 2010-03-02 Jeff Law <law@redhat.com>
13293 PR middle-end/42431
13294 * reload1.c (rtx_p, substitute_stack): Declare.
13295 (substitute): Record addresses of changed rtxs.
13296 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13297 Restore the original rtx when complete.
13298 (reload): Free subsitute_stack when complete.
13300 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13302 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13303 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13305 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13306 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13307 Torture Tests): Change from subsection to section.
13309 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13310 Steven Bosscher <steven@gcc.gnu.org>
13312 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13315 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13317 PR middle-end/42640
13318 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13319 the assignment from the new induction variable to the assignment
13320 of the value from the original loop PHI function.
13322 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13323 Daniel Jacobowitz <dan@codesourcery.com>
13325 * doc/sourcebuild.texi (Test directives): Clarify options to
13328 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13330 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13331 Disable cfi directives unless GCC and gas agree on using read-only
13332 .eh_frame sections for 64-bit.
13333 * configure: Regenerate.
13335 2010-03-01 Richard Guenther <rguenther@suse.de>
13337 PR tree-optimization/43220
13338 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13339 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13341 2010-03-01 Richard Guenther <rguenther@suse.de>
13342 Martin Jambor <mjambor@suse.cz>
13344 PR middle-end/41250
13345 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13346 gimplified parameters.
13348 2010-03-01 Christian Bruel <christian.bruel@st.com>
13350 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13352 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13354 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13356 2010-03-01 Richard Guenther <rguenther@suse.de>
13358 PR middle-end/43213
13359 * expr.c (expand_assignment): Use the alias-oracle to tell
13360 if the rhs aliases the result decl.
13362 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13365 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13366 to sol_gt_pch_get_address.
13367 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13368 64-bit, SPARC and x86.
13369 (sol_gt_pch_get_address): New function.
13371 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13373 * toplev.h (inform_n, error_n): Declare.
13374 * diagnostic.c (inform_n, error_n): New function.
13376 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13378 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13379 has no rtl yet when processing local_decls, queue it and recheck
13380 if deferred stack allocation hasn't assigned it rtl.
13382 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13384 * config/sh/sh.c (unspec_bbr_uid): New.
13385 (gen_block_redirect): Use it instead of INSN_UID.
13386 (gen_far_branch): Likewise.
13388 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13390 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13391 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13393 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13395 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13396 (Warning Options): -Wno-conversion-null is valid for
13397 Objective-C++ as well.
13398 * doc/tm.texi (Named Address Spaces): Likewise.
13399 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13400 * doc/tree-ssa.texi (Tree SSA): Likewise.
13402 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13405 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13406 by default. Don't set the default arch for
13407 i[34567]86-*-darwin*|x86_64-*-darwin*.
13409 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13412 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13413 default. Set the default 32bit/64bit archs with $with_arch
13414 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13416 2010-02-27 Richard Guenther <rguenther@suse.de>
13418 PR tree-optimization/43186
13419 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13420 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13421 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13422 unroller iterations.
13424 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13426 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13427 required and i[34567]86-*-* targets don't support 64bit ISA.
13429 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13432 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13433 the same alias set.
13435 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13437 * config.gcc: Set the default arch at least to Prescott for
13438 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13439 if SSE math is enabled.
13441 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13443 * diagnostic.c (diagnostic_initialize): Update.
13444 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13446 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13447 (diagnostic_inhibit_notes): New.
13448 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13450 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13453 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13454 * doc/standards.texi: Likewise.
13455 * doc/extend.texi: Likewise.
13456 * doc/trouble.texi: Likewise.
13457 * doc/cppopts.texi: Likewise.
13458 * doc/install.texi: Likewise.
13459 * c.opt (std=c90,std=gnu90): New options.
13460 * c-opts.c (c_common_handle_option): Handle them.
13462 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13465 * c-decl.c (undeclared_variable): Use an informative note.
13467 2010-02-26 Richard Guenther <rguenther@suse.de>
13469 PR tree-optimization/43186
13470 * gimple.h (gimple_fold): Remove.
13471 * gimple.c (gimple_fold): Remove. Inline into single user ...
13472 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13473 Try harder for conditions.
13475 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13478 * function.c (used_types_insert): Don't skip through named pointer
13479 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13480 and it is different from the main variant's type.
13482 2010-02-26 Nick Clifton <nickc@redhat.com>
13484 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13486 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13488 * config.gcc: Support --with-fpmath=sse for x86.
13490 * config/i386/ssemath.h: New.
13492 * doc/install.texi (--with-fpmath=sse): Documented.
13494 2010-02-26 Richard Guenther <rguenther@suse.de>
13496 PR tree-optimization/43188
13497 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13498 vector types of over-aligned element type.
13500 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13503 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13504 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13506 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13508 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13510 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13512 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13513 * var-tracking.c: Include diagnostic.h.
13514 (debug_dv): New function.
13515 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13518 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13519 (add_value_chain, add_value_chains, remove_value_chain,
13520 remove_value_chains): Handle DEBUG_EXPRs.
13521 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13524 * regcprop.c (struct queued_debug_insn_change): New type.
13525 (struct value_data_entry): Add debug_insn_changes field.
13526 (struct value_data): Add n_debug_insn_changes field.
13527 (debug_insn_changes_pool): New variable.
13528 (free_debug_insn_changes, apply_debug_insn_changes,
13529 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13530 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13531 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13533 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13535 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13536 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13537 changes, call cprop_find_used_regs via note_stores.
13538 (copyprop_hardreg_forward): When copying vd from predecessor
13539 which has any queued DEBUG_INSN changes, make sure the pointers are
13540 cleared. At the end call df_analyze and then if there are any
13541 DEBUG_INSN changes queued at the end of some basic block for still
13542 live registers, apply them.
13543 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13545 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13547 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13550 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13552 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13553 targets. Set the default with_cpu/with_arch from arch/cpu.
13554 Allow x86-64 and native for with_cpu/with_arch.
13556 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13558 * ebitmap.c: Change calls to verify_popcount with calls to
13559 sbitmap_verify_popcount.
13560 (ebitmap_clear_bit): Fixed map->cacheindex test and
13561 map>cache update when bit clearing results in an empty
13564 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13567 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13568 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13569 and support both V2DF and V2DI modes.
13570 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13571 support both V2DF and V2DI modes.
13572 (general): Delete trailing whitespace from a few patterns.
13574 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13575 V2DF/V2DI interleave high/low builtins.
13577 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13580 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13581 interleave high/low functions.
13583 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13585 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13586 #pragma extern_prefix.
13588 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13591 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13592 BLKmode, assert op0 is a MEM and just adjust its mode.
13595 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13596 if bitpos isn't multiple of mode's bitsize.
13598 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13600 * c.opt (-ftemplate-depth=): New.
13601 (-ftemplate-depth-): Deprecate.
13602 * optc-gen.awk: Handle -ftemplate-depth=.
13603 * opth-gen.awk: Likewise.
13604 * c-opts.c (c_common_handle_option): Likewise.
13605 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13607 2010-02-24 Jason Merrill <jason@redhat.com>
13609 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13611 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13613 * cfg.c (alloc_aux_for_block): Remove inline.
13614 (alloc_aux_for_edge): Likewise.
13616 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13618 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13620 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13622 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13623 * config/i386/sol2-gas.h: New file.
13624 * config.gcc (i[34567]86-*-solaris2*): Use it.
13626 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13629 * c-typeck.c (ep_convert_and_check): New.
13630 (build_conditional_expr): Use it.
13631 (build_binary_op): Likewise.
13633 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13635 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13638 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13639 bounds even for -O+.
13640 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13641 expr needs to have DECL_NAME set.
13643 2010-02-24 Nick Clifton <nickc@redhat.com>
13645 * config/mep/mep.c: Include gimple.h.
13646 (mep_function_uses_sp): Delete unused function.
13647 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13648 parameters. Use unsigned integers to count args. Return a
13649 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13651 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13654 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13655 greater or equal to nelt instead of 2 * nelt.
13656 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13659 2010-02-23 Jason Merrill <jason@redhat.com>
13662 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13663 in cfun->local_decls even if they have register types.
13666 * stor-layout.c (place_field): Don't warn about unnecessary
13667 DECL_PACKED if the type is packed.
13669 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13672 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13673 GOTOFF relocs, even when the base reg isn't pic pointer.
13675 2010-02-23 Michael Matz <matz@suse.de>
13678 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13679 (expand_gimple_basic_block): Generate and use debug temps if there
13680 are debug uses left after the last real use of TERed ssa names.
13681 Unlink debug immediate uses when they are expanded.
13683 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13686 * config/i386/i386.c (override_options): Reorganise to provide
13687 better error messages.
13689 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13691 PR middle-end/43083
13692 * graphite-scop-detection.c (create_single_exit_edge): Move
13693 the call to find_single_exit_edge to....
13694 (create_sese_edges): ...here. Don't handle multiple edges
13695 exiting the function.
13696 (build_graphite_scops): Don't handle multiple edges
13697 exiting the function.
13699 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13701 PR middle-end/43097
13702 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13703 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13705 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13707 PR middle-end/43026
13708 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13710 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13713 * c-typeck.c (convert_arguments): Print declaration location.
13714 * c-common.c (validate_nargs): Rename as
13715 builtin_function_validate_nargs.
13716 (check_builtin_function_arguments): Update.
13718 2010-02-22 Richard Guenther <rguenther@suse.de>
13721 * tree-inline.c (declare_return_variable): Use the type of
13722 the call stmt lhs if available.
13724 2010-02-22 Duncan Sands <baldrick@free.fr>
13726 * passes.c (register_pass): Always consider all pass lists when
13727 ref_pass_instance_number is zero.
13729 2010-02-22 Richard Guenther <rguenther@suse.de>
13731 PR tree-optimization/42749
13732 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13733 parameter. Do arithmetic in the original type.
13734 (update_accumulator_with_ops): Likewise.
13735 (adjust_accumulator_values): Adjust.
13737 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13739 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13740 (QI to BLKmode splitter): New splitter.
13742 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13744 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13745 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13747 2010-02-22 Richard Guenther <rguenther@suse.de>
13749 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13751 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13753 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13754 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13755 ($(T)crti.o, $(T)crtn.o): Remove rules.
13757 2010-02-21 Tobias Burnus <burnus@net-b.de>
13760 * doc/invoke.texi (-fassociative-math): Document that this
13761 option is automatically enabled for Fortran.
13763 2010-02-20 David S. Miller <davem@davemloft.net>
13765 * configure.ac: Test if linker and assembler properly support
13766 GOTDATA_OP relocations.
13767 * configure: Rebuild.
13768 * config.in: Likewise.
13769 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13770 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13771 (movsi_high_pic): Likewise.
13772 (movdi_lo_sum_pic): Likewise.
13773 (movdi_high_pic): Likewise.
13774 (movsi_pic_gotdata_op): New pattern.
13775 (movdi_pic_gotdata_op): Likewise.
13776 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13777 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13779 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13782 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13783 attribute to ssemul.
13784 (xop_mulv2div2di3_high): Ditto.
13786 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13789 * c.opt (Wconversion-null): New option.
13790 * doc/invoke.texi (Wconversion-null): Document.
13792 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13794 * common.opt (Wlarger-than-): Add Undocumented.
13796 2010-02-19 Mike Stump <mikestump@comcast.net>
13798 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13800 2010-02-19 Jason Merrill <jason@redhat.com>
13803 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13804 * configure: Likewise.
13806 2010-02-20 Alan Modra <amodra@gmail.com>
13808 PR middle-end/42344
13809 * cgraph.h (cgraph_make_decl_local): Declare.
13810 * cgraph.c (cgraph_make_decl_local): New function.
13811 (cgraph_make_node_local): Use it.
13812 * cgraphunit.c (cgraph_function_versioning): Likewise.
13813 * ipa.c (function_and_variable_visibility): Likewise.
13815 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13818 * except.c (sjlj_emit_function_enter): Don't call
13819 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13821 * rtl.h (add_reg_br_prob_note): Remove prototype.
13823 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13826 * c-common.c (conversion_warning): Remove widening conversions
13827 before checking the conversion of integers to reals.
13829 2010-02-19 Mike Stump <mikestump@comcast.net>
13831 PR middle-end/43125
13832 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13835 * cgraphunit.c (process_function_and_variable_attributes): Check
13836 DECL_PRESERVE_P instead of looking up attribute "used".
13837 * ipa-pure-const.c (check_decl): Likewise.
13838 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13839 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13840 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13841 instead of attribute "used".
13842 * config/sol2-c.c (solaris_pragma_init): Likewise.
13843 (solaris_pragma_fini): Likewise.
13845 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13847 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13848 Use XCNEW instead of xcalloc.
13849 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13850 XNEW instead of xmalloc.
13851 (get_fields): Use XNEWVEC instead of xmalloc.
13854 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13855 populate vars array.
13856 (create_new_general_access): For debug stmts just reset value.
13857 (get_stmt_accesses): For accesses within debug stmts just record them
13858 using add_access_to_acc_sites instead of preventing the peeling or
13859 counting them as accesses.
13861 PR middle-end/42233
13862 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13864 2010-02-19 Richard Guenther <rguenther@suse.de>
13866 PR tree-optimization/42916
13867 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13870 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13872 * configure.ac: Replace all uses of changequote in macro arguments
13873 with proper quoting.
13875 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13877 PR middle-end/42233
13878 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13880 2010-02-19 Richard Guenther <rguenther@suse.de>
13882 PR tree-optimization/42944
13883 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13884 test for aliasing with errno.
13886 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13888 PR middle-end/42233
13889 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13890 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13891 * dojump.c: Include output.h.
13892 (inv): New inline function.
13893 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13894 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13895 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13896 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13897 argument, pass it down to other calls.
13898 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13899 add REG_BR_PROB note to the conditional jump.
13900 * cfgexpand.c (add_reg_br_prob_note): Removed.
13901 (expand_gimple_cond): Don't call it, add the probability
13902 as last argument to jumpif_1/jumpifnot_1.
13903 * Makefile.in (dojump.o): Depend on output.h.
13904 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13906 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13907 * stmt.c (do_jump_if_equal): Likewise.
13908 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13909 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13910 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13912 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13913 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13914 jumpifnot_1 callers.
13915 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13917 (store_expr): Adjust jumpifnot caller.
13918 (store_constructor): Adjust jumpif caller.
13920 PR middle-end/42233
13921 * gimplify.c (gimple_boolify): For __builtin_expect call
13922 gimple_boolify also on its first argument.
13924 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13926 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13928 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13929 * configure: Regenerated.
13931 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13933 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13934 lang_hooks.types_compatible_p instead of comptypes.
13936 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13938 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13939 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13940 if __prefer_thumb__ is defined.
13942 2010-02-18 Martin Jambor <mjambor@suse.cz>
13944 PR tree-optimization/43066
13945 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13946 array with zero-sized element type.
13948 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13950 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13951 rtx, allocate struct var_loc_node here and return it to the
13952 caller, and only if it is actually needed.
13953 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13954 move it earlier and return immediately if it returns NULL.
13956 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13958 * config/sparc/gas.h: New file. Restore
13959 TARGET_ASM_NAMED_SECTION to its ELF default.
13960 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13961 check !HAVE_GNU_AS.
13962 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13963 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13964 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13965 after sparc/sysv4.h.
13967 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13969 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13971 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13973 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13974 patterns from predicated pattern.
13976 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13979 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13980 for insn mnemonic suffix.
13982 2010-02-17 Richard Guenther <rguenther@suse.de>
13984 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13987 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13990 * caller-save.c (save_call_clobbered_regs): If BB ends with
13991 a DEBUG_INSN, move any notes in between last real insn and the last
13992 DEBUG_INSN after the last DEBUG_INSN.
13994 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13996 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13997 Fix return type. Fix argument type. Explain meaning of return value.
13999 2010-02-16 Richard Guenther <rguenther@suse.de>
14001 PR tree-optimization/41043
14002 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
14003 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14005 (vrp_visit_phi_node): ... but only for loop PHI nodes.
14007 2010-02-16 Ira Rosen <irar@il.ibm.com>
14009 PR tree-optimization/43074
14010 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14011 * tree-vect-loop.c (vect_analyze_loop_operations): Add
14012 vectorizable cycles in hybrid SLP check.
14013 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14015 2010-02-16 Richard Guenther <rguenther@suse.de>
14017 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14018 (true_dependence): If memrefs_conflict_p computes must-alias
14019 trust it. Move TBAA check after offset-based disambiguation.
14020 (canon_true_dependence): Likewise.
14022 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
14024 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14025 * doc/invoke.texi: Document it.
14026 * var-tracking.c: Include toplev.h and params.h.
14027 (vt_find_locations): Return bool indicating success. Compute
14028 hash sizes unconditionally. Check new parameter, report.
14029 (variable_tracking_main_1): Check vt_find_locations results and
14030 retry. Renamed from...
14031 (variable_tracking_main): ... this. New wrapper to preserve
14032 flag_var_tracking_assignments.
14033 * Makefile.in (var-tracking.o): Adjust dependencies.
14035 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
14036 Jakub Jelinek <jakub@redhat.com>
14039 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14040 if weak_import attribute is present.
14041 * config/darwin.c (machopic_select_section): Likewise.
14043 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
14045 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14046 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14047 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14048 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14050 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14053 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14054 Fix argument types.
14056 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14057 Rewrite text to refer to the names.
14059 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14061 * config/i386/i386-builtin-types.def
14062 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14063 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14064 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14065 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14066 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14067 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14068 IX86_BUILTIN_VPERMIL2PS256.
14069 (MULTI_ARG_4_DF2_DI_I): Defined.
14070 (MULTI_ARG_4_DF2_DI_I1): Defined.
14071 (MULTI_ARG_4_SF2_SI_I): Defined.
14072 (MULTI_ARG_4_SF2_SI_I1): Defined.
14073 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14074 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14075 __builtin_ia32_vpermil2ps256.
14076 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14077 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14078 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14079 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14080 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14081 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14082 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14083 CODE_FOR_xop_vpermil2v8sf3.
14084 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14085 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14086 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14087 (_mm256_permute2_pd): New.
14088 (_mm_permute2_ps): New.
14089 (_mm256_permute2_ps): New.
14091 2010-02-15 Nick Clifton <nickc@redhat.com>
14093 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14094 boolean parameters. Use emit_jump_insn when emitting a pop
14095 instruction containing a return insn.
14096 (push): Use 'true' rather than '1' as second parameter to F.
14097 (h8300_expand_prologue): Likewise.
14098 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14099 (h8300_expand_epilogue): Likewise.
14101 2010-02-15 Richard Guenther <rguenther@suse.de>
14103 PR middle-end/43068
14104 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14107 2010-02-15 Nick Clifton <nickc@redhat.com>
14109 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14112 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14114 * intl.c (fake_ngettext): New function.
14115 * intl.h (fake_ngettext): Declare.
14116 (ngettext): Define macro.
14117 * collect2.c (notice_translated): New function.
14118 (main): Use notice_translated and ngettext.
14119 * collect2.h (notice_translated): Declare.
14121 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14123 * reorg.c (delete_computation): Comment fixes.
14124 * caller-save.c (setup_save_areas): Idem.
14125 * sel-sched-dump.c (dump_lv_set): Idem.
14128 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14130 * config/s390/s390.c (s390_sched_init): New function.
14131 (TARGET_SCHED_INIT): Target hook defined.
14133 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14134 Jack Howarth <howarth@bromo.med.uc.edu>
14135 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14138 Partial revert of unintended change in fix for PR41605.
14139 * config/darwin.h: Fix typo.
14140 * config/darwin9.h: Same.
14142 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14144 * c-pch.c (pch_init): Clear v.
14146 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14148 PR middle-end/42930
14149 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14150 graphite_can_represent_init for MULT_EXPR.
14152 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14154 PR middle-end/42914
14155 PR middle-end/42530
14156 * graphite-sese-to-poly.c (remove_phi): New.
14157 (translate_scalar_reduction_to_array): Call remove_phi.
14159 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14161 PR middle-end/42771
14162 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14163 * graphite-clast-to-gimple.h (gloog): Update declaration.
14164 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14165 * graphite-poly.h (struct poly_bb): Add missing comments.
14166 (struct scop): Add poly_scop_p field.
14167 (POLY_SCOP_P): New.
14168 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14169 * graphite.c (graphite_transform_loops): Build the polyhedral
14170 representation for each scop before code generation.
14171 * sese.c (rename_variables_in_operand): Removed.
14172 (rename_variables_in_expr): Return the renamed expression.
14173 (rename_sese_parameters): New.
14174 * sese.h (rename_sese_parameters): Declared.
14176 2010-02-11 Richard Guenther <rguenther@suse.de>
14178 PR tree-optimization/42998
14179 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14180 POINTER_PLUS_EXPR properly.
14182 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14183 Changpeng Fang <changpeng.fang@amd.com>
14185 PR middle-end/40886
14186 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14187 the cost of an IV candidate when the IV is used in a test against zero.
14189 * gcc.dg/tree-ssa/ivopts-3.c: New.
14191 2010-02-11 Richard Guenther <rguenther@suse.de>
14194 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14195 pointer-vs-decl case by swapping refs. Handle some cases
14196 of pointer-vs-decl disambiguations more conservatively.
14197 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14198 to false after expanding.
14200 2010-02-11 Richard Guenther <rguenther@suse.de>
14203 * gcc.c (process_command): Handle LTO file@offset case more
14206 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14208 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14209 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14211 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14213 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14214 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14215 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14216 Optimize eq/ne comparisons when both arguments are known to be
14218 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14219 Don't mask operands unnecessarily if they are known to be already
14222 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14224 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14227 2010-02-10 Richard Guenther <rguenther@suse.de>
14229 PR tree-optimization/43017
14230 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14231 for wrapping signed arithmetic.
14233 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14236 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14237 if no debug info should be emitted for it.
14239 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14241 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14242 note when flag_exceptions is set.
14244 2010-02-10 Duncan Sands <baldrick@free.fr>
14246 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14248 2010-02-10 Richard Guenther <rguenther@suse.de>
14251 * tree.c (get_unwidened): Handle constants.
14252 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14254 2010-02-10 Martin Jambor <mjambor@suse.cz>
14257 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14258 check for variable argument counts independently.
14260 2010-02-10 Christian Bruel <christian.bruel@st.com>
14263 * config/sh/sh.c (find_barrier): Increase length for non delayed
14264 conditional branches.
14266 2010-02-10 Christian Bruel <christian.bruel@st.com>
14268 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14270 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14272 * builtins.c (set_builtin_user_assembler_name): Also handle
14273 ffs if int is smaller than word.
14275 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14277 PR middle-end/42973
14278 * ira-conflicts.c (get_dup): Remove.
14279 (process_reg_shuffles): Add new parameter. Use it as an
14280 additional guard for copy generation.
14281 (add_insn_allocno_copies): Rewrite.
14283 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14285 * common.opt (fsched2-use-traces): Preserved for backward
14287 * doc/invoke.texi: Remove the documentation about option
14288 -fsched2-use-traces.
14289 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14290 flag_sched2_use_traces.
14291 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14292 the backward compatibility flag section.
14294 2010-02-09 Richard Guenther <rguenther@suse.de>
14296 PR tree-optimization/43008
14297 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14298 make HEAP variables initialized from global memory if they
14299 are not known builtin functions.
14300 (find_func_aliases): Adjust.
14302 2010-02-09 Richard Guenther <rguenther@suse.de>
14304 PR tree-optimization/43000
14305 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14306 arithmetic manually.
14308 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14310 PR tree-optimization/42931
14311 * tree-loop-linear.c (try_interchange_loops): Don't call
14312 double_int_mul if estimated_loop_iterations failed.
14314 2010-02-08 Martin Jambor <mjambor@suse.cz>
14316 PR middle-end/42898
14317 * tree-sra.c (build_accesses_from_assign): Do not mark in
14318 should_scalarize_away_bitmap if stmt has volatile ops.
14319 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14322 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14324 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14326 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14328 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14329 before the pattern.
14331 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14333 PR middle-end/42946
14334 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14336 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14338 PR middle-end/42988
14339 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14340 to unknown_dependence.
14341 (graphite_legal_transform_dr): Handle the unknown_dependence.
14342 (graphite_carried_dependence_level_k): Same.
14344 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14346 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14348 2010-02-07 Richard Guenther <rguenther@suse.de>
14350 PR middle-end/42991
14351 * expr.c (get_inner_reference): Always initialize *pbitsize.
14353 2010-02-07 Richard Guenther <rguenther@suse.de>
14355 PR middle-end/42956
14356 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14357 new ARRAY_REFs on variable size element or minimal index arrays.
14359 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14360 gimple_fold_indirect_ref.
14362 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14365 * arm.c (arm_override_options): Just return if the user has specified
14366 an invalid fpu name.
14368 2010-02-03 Jason Merrill <jason@redhat.com>
14371 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14372 i386_pe_maybe_record_exported_symbol.
14374 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14377 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14378 (pa_delegitimize_address): New function.
14380 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14382 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14383 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14385 2010-02-05 Richard Guenther <rguenther@suse.de>
14388 * lto-streamer-in.c (get_resolution): Deal with references
14389 to undefined functions.
14391 2010-02-05 Richard Guenther <rguenther@suse.de>
14393 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14394 (fold_const_aggregate_ref): Likewise.
14395 (ccp_fold_stmt): Substitute loads.
14396 (maybe_fold_reference): Verify types before substituting.
14398 (fold_gimple_assign): Unshare properly.
14399 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14401 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14403 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14404 for rs6000_gen_cell_microcode.
14406 2010-02-04 Richard Guenther <rguenther@suse.de>
14408 PR rtl-optimization/42952
14409 * dse.c (const_or_frame_p): Remove MEM handling.
14411 2010-02-04 Nick Clifton <nickc@redhat.com>
14413 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14414 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14415 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14416 (mn10300_asm_output_mi_thunk): New function.
14417 (mn10300_can_output_mu_thunk): New function.
14418 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14419 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14420 (FUNCTION_ARG): Delete incorrect comment.
14422 2010-02-03 Jason Merrill <jason@redhat.com>
14425 * fold-const.c (operand_equal_p): Handle erroneous types.
14427 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14429 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14431 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14433 PR rtl-optimization/42941
14434 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14437 2010-02-03 Jason Merrill <jason@redhat.com>
14440 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14442 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14445 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14446 (cselib_reset_table): Renamed from...
14447 (cselib_reset_table_with_next_value): ... this.
14448 (cselib_get_next_uid): Renamed from...
14449 (cselib_get_next_unknown_value): ... this.
14450 * cselib.c (next_uid): Renamed from...
14451 (next_unknown_value): ... this.
14452 (cselib_clear_table): Adjust.
14453 (cselib_reset_table): Adjust. Renamed from...
14454 (cselib_reset_table_with_next_value): ... this.
14455 (cselib_get_next_uid): Adjust. Renamed from...
14456 (cselib_get_next_unknown_value): ... this.
14457 (get_value_hash): Use hash.
14458 (cselib_hash_rtx): Likewise.
14459 (new_cselib_val): Adjust. Set and dump uid.
14460 (cselib_lookup_mem): Pass next_uid as hash.
14461 (cselib_subst_to_values): Likewise.
14462 (cselib_log_lookup): Dump uid.
14463 (cselib_lookup): Pass next_uid as hash. Adjust.
14464 (cselib_process_insn): Adjust.
14465 (cselib_init): Initialize next_uid.
14466 (cselib_finish): Adjust.
14467 (dump_cselib_table): Likewise.
14468 * dse.c (canon_address): Dump value uid.
14469 * print-rtl.c (print_rtx): Print value uid.
14470 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14472 (dv_uid): New function, sort of renamed from...
14473 (dv_htab_hash): ... this, reimplemented in terms of it and...
14474 (dv_uid2hash): ... this. New.
14475 (variable_htab_eq): Drop excess assertions.
14476 (tie_break_pointers): Removed.
14477 (canon_value_cmp): Compare uids.
14478 (variable_post_merge_New_vals): Print uids.
14479 (vt_add_function_parameters): Adjust.
14480 (vt_initialize): Reset table. Adjust.
14482 2010-02-03 Richard Guenther <rguenther@suse.de>
14484 PR tree-optimization/42944
14485 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14486 (call_may_clobber_ref_p_1): Likewise. Properly handle
14487 malloc and calloc clobbering errno.
14489 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14491 * doc/invoke.texi: Fix name of sched1 dump.
14493 * opts.c (decode_options): Set flag_tree_switch_conversion
14494 only conditionally on optimize >= 2.
14496 * gcse.c: Assorted comment fixes in pass description.
14498 2010-02-03 Anthony Green <green@moxielogic.com>
14500 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14501 nop padding in order to maintain alignment of storage location of
14502 target function address.
14503 (moxie_trampoline_init): Store target function address at newly
14505 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14507 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14509 2010-02-03 Richard Guenther <rguenther@suse.de>
14511 PR middle-end/42927
14512 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14514 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14516 * config.gcc: Reenable check for obsolete targets.
14517 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14518 mips-sgi-irix6.[0-4]*.
14520 2010-02-02 Nick Clifton <nickc@redhat.com>
14522 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14523 constant size of 4 as being the same as 0.
14524 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14525 can take values in the range 0..4.
14527 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14530 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14531 as _darwin10_Unwind_FindEnclosingFunction().
14532 * libgcc-libsystem.ver: New.
14534 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14537 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14538 implicitly set registers.
14540 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14542 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14543 (arm_override_options): Allow automatic selection of the thread
14544 pointer register if thumb2.
14545 (legitimize_pic_address): Improve code sequences for Thumb2.
14546 (arm_call_tls_get_addr): Likewise.
14547 (legitimize_tls_address): Likewise.
14548 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14549 (pic_load_addr_32bit): ... this. New named pattern.
14550 * thumb2.md (pic_load_addr_thumb2): Delete.
14551 (pic_load_dot_plus_four): Delete.
14552 (tls_load_dot_plus_four): New named pattern.
14554 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14557 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14558 Document fix for TLS bug.
14560 2010-01-31 Richard Guenther <rguenther@suse.de>
14562 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14563 conservatively correct.
14565 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14569 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14571 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14573 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14575 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14577 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14579 * config.gcc: Adjust order of makefile fragments for mingw targets.
14581 2010-01-31 Richard Guenther <rguenther@suse.de>
14583 PR middle-end/42898
14584 * gimplify.c (gimplify_init_constructor): For volatile LHS
14585 initialize a temporary.
14587 2010-01-31 Matthias Klose <doko@ubuntu.com>
14589 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14591 * configure: Regenerate.
14593 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14595 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14596 the same alias set and their sizes different constantness.
14597 (aliasing_component_refs_p): Revert 2009-10-24 change.
14599 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14601 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14604 2010-01-29 Richard Guenther <rguenther@suse.de>
14606 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14607 Assert we successfully updated the call.
14609 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14611 PR rtl-optimization/42889
14612 * df.h (df_set_bb_dirty_nonlr): New prototype.
14613 * df-core.c (df_set_bb_dirty_nonlr): New function.
14614 * df-scan.c (df_insn_rescan): Call it instead of
14615 df_set_bb_dirty for DEBUG_INSNs.
14617 2010-01-29 Richard Guenther <rguenther@suse.de>
14619 PR middle-end/37448
14620 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14621 quadratic behavior in most cases.
14623 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14626 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14627 in the call to gen_x86_movsicc_0_m1.
14629 2010-01-28 Richard Guenther <rguenther@suse.de>
14631 PR tree-optimization/42871
14632 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14634 2010-01-28 Richard Guenther <rguenther@suse.de>
14636 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14637 into call arguments.
14639 2010-01-28 Richard Guenther <rguenther@suse.de>
14641 PR middle-end/42883
14642 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14643 the forwarder if the destination is an EH landing pad.
14645 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14647 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14648 block list passed to gimple_duplicate_sese_tail.
14649 (parallelize_loops): Avoid parallelization when the function
14650 has_nonlocal_label.
14651 Avoid parallelization when the preheader is IRREDUCIBLE.
14652 Try to optimize when estimated_loop_iterations_int is unresolved.
14653 Add the loop's location to the dump file.
14654 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14655 (gimple_duplicate_sese_tail): Remove the check for the latch.
14656 Redirect nexits to the exit block.
14657 Remove handling of the incoming edges to the latch.
14658 Redirect the backedge from the copied latch to the exit bb.
14660 2010-01-28 Michael Matz <matz@suse.de>
14663 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14664 Wrap force_reg into a sequence, emit it before user.
14666 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14668 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14670 (arm_legacy_rev): Likewise.
14671 (thumb_legacy_rev): Likewise.
14673 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14675 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14676 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14677 on MEM's address failed, try avoid_constant_pool_reference and
14678 recurse if it returned something different.
14679 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14680 address, try avoid_constant_pool_reference and recurse if it
14681 returned something different.
14682 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14683 address and avoid_constant_pool_reference returned something
14684 different, don't set have_address.
14686 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14689 * var-tracking.c (val_store): Add modified argument, obey it.
14691 (count_uses): Move down logging of main.
14692 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14693 don't need resolution.
14694 (emit_notes_in_bb): Likewise.
14696 2010-01-27 Richard Guenther <rguenther@suse.de>
14698 PR middle-end/42878
14699 * tree-inline.c (remap_decl): Delay remapping of SSA name
14700 default definitions until we need them.
14702 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14704 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14705 (rs6000_delegitimize_address): New function.
14707 * config/s390/s390.c (s390_delegitimize_address): Call
14708 delegitimize_mem_from_attrs.
14710 PR middle-end/42874
14711 * tree-inline.c (cannot_copy_type_1): Removed.
14712 (copy_forbidden): Don't forbid copying of functions containing
14713 records/unions with variable length fields.
14715 2010-01-27 Christian Bruel <christian.bruel@st.com>
14719 * config/sh/sh.c (find_barrier): Increase length for non delayed
14720 conditional branches.
14722 2010-01-27 Matthias Klose <doko@ubuntu.com>
14724 * configure.ac (gnu-unique-object): Fix ldd version check.
14725 * configure: Regenerate.
14727 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14729 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14731 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14732 Test for HAVE_GNU_AS value.
14734 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14736 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14737 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14738 INT64_TYPE): Define.
14739 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14740 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14741 INT_LEAST64_TYPE): Define.
14742 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14743 UINT_LEAST64_TYPE): Define.
14744 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14745 INT_FAST64_TYPE): Define.
14746 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14747 UINT_FAST64_TYPE): Define.
14748 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14749 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14750 (SIG_ATOMIC_TYPE): Define.
14752 2010-01-26 Richard Guenther <rguenther@suse.de>
14754 * df-scan.c (df_scan_set_bb_info): Remove assert.
14755 (df_insn_rescan_debug_internal): Merge asserts.
14756 (df_install_ref): Likewise.
14757 (df_mark_reg): Use bitmap_set_range.
14758 (df_hard_reg_used_p): Remove assert.
14759 (df_hard_reg_used_count): Likewise.
14761 2010-01-26 Richard Guenther <rguenther@suse.de>
14763 PR rtl-optimization/42685
14764 * web.c (web_main): Ignore DEBUG_INSNs.
14766 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14768 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14770 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14771 Fix types of fndecl and arglist parameters.
14773 2010-01-26 Richard Guenther <rguenther@suse.de>
14775 PR middle-end/42806
14776 * tree-eh.c (unsplit_eh): Skip debug insns.
14778 2010-01-26 Richard Guenther <rguenther@suse.de>
14780 PR tree-optimization/42250
14781 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14783 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14786 * omp-low.c (expand_omp_sections): Only use single_pred if
14787 l2_bb is single_pred_p.
14789 2010-01-25 Christian Bruel <christian.bruel@st.com>
14792 * config/sh/sh.c (find_barrier): Increase length for non delayed
14793 conditional branches.
14794 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14796 2010-01-24 David S. Miller <davem@davemloft.net>
14798 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14799 define if not using GAS.
14800 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14801 Likewise. Delete SECTION_MERGE code, which is only applicable
14804 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14807 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14808 mangling of va_list in system headers.
14810 2010-01-23 Toon Moene <toon@moene.org>
14812 * tree-predcom.c (combine_chains): Return NULL, not false.
14814 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14816 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14817 initialization of variable res to agree with return type.
14819 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14821 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14822 * tree-sra.c: Add include of expr.h.
14824 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14826 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14827 insert the debug stmt on the single non-EH edge from the stmt.
14829 2010-01-22 Richard Henderson <rth@redhat.com>
14832 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14833 the RHS until after generate_subtree_copies has insertted its
14834 code before the current statement.
14836 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14838 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14840 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14842 2010-01-21 Martin Jambor <mjambor@suse.cz>
14844 PR tree-optimization/42585
14845 * tree-sra.c (struct access): New field grp_total_scalarization.
14846 (dump_access): Dump the new field.
14847 (should_scalarize_away_bitmap): New variable.
14848 (cannot_scalarize_away_bitmap): Likewise.
14849 (sra_initialize): Allocate new bitmaps.
14850 (sra_deinitialize): Free new bitmaps.
14851 (create_access_1): New function.
14852 (create_access): Parts moved to create_access_1.
14853 (type_consists_of_records_p): New function.
14854 (completely_scalarize_record): Likewise.
14855 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14856 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14857 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14859 (analyze_all_variable_accesses): Completely scalarize small eligible
14862 2010-01-21 Martin Jambor <mjambor@suse.cz>
14864 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14866 2010-01-21 Andrew Haley <aph@redhat.com>
14868 * gcc.c (process_command): Move lang_specific_driver before
14869 setting cc_libexec_prefix.
14871 2010-01-21 Richard Guenther <rguenther@suse.de>
14873 PR middle-end/19988
14874 * fold-const.c (negate_expr_p): Pretend only negative
14875 real constants are easily negatable.
14877 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14878 Jason Merrill <jason@redhat.com>
14880 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14881 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14882 * calls.c (initialize argument_information): Handle it.
14883 * c-common.c (handle_transparent_union_attribute): Use new name.
14884 * c-decl.c (finish_struct): Ditto.
14885 * c-typeck.c (type_lists_compatible_p): Ditto.
14886 (convert_for_assignment): Use new name and also handle record.
14887 * function.c (aggregate_value_p): Handle it.
14888 (pass_by_reference): Ditto.
14889 (assign_parm_data_types): Ditto.
14890 * print-tree.c (print_node): Ditto.
14891 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14892 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14893 * tree.c (first_field): New fn.
14895 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14898 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14899 even when linking statically, for now.
14901 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14904 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14905 without a cselib val.
14906 (count_uses): Accept MO_VAL_SET with no val on stores.
14907 (add_stores): Likewise.
14909 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14911 * var-tracking.c (check_value_val): Add a compile time assertion.
14912 (dv_is_decl_p): Simplify.
14913 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14914 gcc_assert if ENABLE_CHECKING.
14916 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14919 * var-tracking.c: Include tree-flow.h.
14920 (mem_dies_at_call): New.
14921 (dataflow_set_preserve_mem_locs): Use it.
14922 (dataflow_set_remove_mem_locs): Likewise.
14923 (dump_var): Renamed from dump_variable. Adjust all callers.
14924 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14925 * Makefile.in (var-tracking.o): Adjust deps.
14927 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14929 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14931 2010-01-20 Richard Guenther <rguenther@suse.de>
14933 PR tree-optimization/42717
14934 * tree-ssa-dce.c (get_live_post_dom): Remove.
14935 (forward_edge_to_pdom): Take an arbitrary edge to copy
14936 degenerate PHI args from.
14937 (remove_dead_stmt): Use the first post-dominator even if it
14938 does not contain live statements as redirection destination.
14940 2010-01-20 Richard Guenther <rguenther@suse.de>
14942 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14944 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14946 * sel-sched.c (create_speculation_check): Remove set but not used
14948 (try_transformation_cache): Remove set but not used variable ds.
14949 (calculate_privileged_insns): Remove set but not used variables
14950 cur_insn and min_spec_insn.
14951 (find_best_expr): Remove set but not used variable avail_n.
14952 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14954 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14956 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14957 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14958 new_scop_exit_edge.
14960 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14963 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14964 cpu types. Add support for *-sse3 cpu types.
14965 (x86_64-*-*): Ditto.
14967 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14969 PR middle-end/42803
14970 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14971 argument, call initializer_constant_valid_p_1 instead of
14972 initializer_constant_valid_p, pass CACHE to it, return NULL
14973 immediately if first call returns NULL.
14974 (initializer_constant_valid_p_1): New function.
14975 (initializer_constant_valid_p): Use it.
14977 2010-01-20 Thomas Quinot <quinot@adacore.com>
14979 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14981 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14983 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14984 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14985 (loc_list_from_tree): Don't handle unsigned division. Handle
14986 signed modulo using DW_OP_{over,over,div,mul,minus}.
14987 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14988 modulo instead of signed.
14990 2010-01-20 DJ Delorie <dj@redhat.com>
14992 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14994 (h8300_emit_stack_adjustment): Propogate it.
14996 (h8300_expand_prologue): Likewise.
14997 (h8300_expand_epilogue): Likewise.
14999 2010-01-19 Michael Matz <matz@suse.de>
15001 PR tree-optimization/41783
15002 * tree-data-ref.c (toplevel): Include flags.h.
15003 (dump_data_dependence_relation): Also dump the inputs if the
15004 result will be unknown.
15005 (split_constant_offset_1): Look through some conversions.
15006 * tree-predcom.c (determine_roots_comp): Restart a new chain if
15007 the offset from last element is too large.
15008 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15009 (reassociate_to_the_same_stmt): Handle vector registers.
15010 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15011 (e.g. conversions).
15012 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15013 wide_prolog_niters argument, emit widening instructions.
15014 (vect_do_peeling_for_alignment): Adjust caller, use widened
15015 variant of the iteration cound.
15016 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15018 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15021 * config/arm/neon-testgen.m (emit_automatics): New parameter
15022 features. Adjust for Fixed_return_reg feature.
15023 (test_intrinsic): Call emit_automatics with new feature.
15024 * config/arm/neon.ml: Update copyright years.
15025 (features): New Fixed_return_reg feature.
15026 (ops): Update feature for Vget_low.
15028 2010-01-19 Jakub Jelinek <jakub@redhat.com>
15030 PR tree-optimization/42719
15031 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15035 * fwprop.c (all_uses_available_at): Return false if def_set dest
15036 is a REG that is used in def_insn.
15038 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
15040 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15042 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15043 Add argument names.
15045 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15047 * target.h (struct gcc_target) <secondary_reload>: Change type
15048 of last argument to secondary_reload_info *.
15050 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
15053 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15054 memory references with unaligned offsets. Remove CQImode handling.
15055 (unaligned_memory_operand): Return 1 for memory references with
15056 unaligned offsets. Remove CQImode handling.
15058 2010-01-18 Richard Guenther <rguenther@suse.de>
15060 PR middle-end/39954
15061 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15064 2010-01-18 Richard Guenther <rguenther@suse.de>
15066 PR tree-optimization/42781
15067 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15068 restrict processing only if the original variable was artificial.
15070 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15072 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15073 find number of popped argument bytes.
15075 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15076 Fix the text that describes the return value for invalid insns.
15078 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15080 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15081 Clarify what 'cost of the -dependence' is. Fix quoting.
15083 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15084 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15086 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15088 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15089 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15091 2010-01-17 Richard Guenther <rguenther@suse.de>
15093 PR middle-end/42248
15094 * function.c (split_complex_args): Take a VEC to modify.
15095 (assign_parms_augmented_arg_list): Build a VEC instead of
15096 a chain of PARM_DECLs.
15097 (assign_parms_unsplit_complex): Take a VEC of arguments.
15098 Do not fixup unmodified parms.
15099 (assign_parms): Deal with the VEC.
15100 (gimplify_parameters): Likewise.
15102 2010-01-17 Richard Guenther <rguenther@suse.de>
15104 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15105 node existence check.
15106 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15107 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15108 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15109 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15110 (gimple_execute_on_growing_pred): Likewise.
15112 2010-01-17 Richard Guenther <rguenther@suse.de>
15114 PR tree-optimization/42773
15115 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15116 (compute_antic_aux): Likewise.
15117 (compute_partial_antic_aux): Likewise.
15119 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15122 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15125 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15127 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15130 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15131 Fix markup for strict argument.
15133 (TARGET_SCHED_REORDER2): Fix argument types.
15135 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15136 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15138 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15139 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15141 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15144 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15145 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15146 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15147 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15148 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15150 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15152 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15154 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15155 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15157 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15159 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15162 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15164 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15165 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15167 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15169 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15171 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15172 referring to it. Fix language.
15174 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15176 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15178 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15180 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15182 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15183 '@var{stream}. Remove stray 'and'.
15185 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15187 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15189 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15191 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15192 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15194 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15195 Fix description of return value.
15196 Rename argument "sz" to "len."
15198 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15199 Clarify meaning of 'true' return value.
15201 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15203 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15204 rep_mode versus mode_rep.
15206 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15208 (TARGET_BUILTIN_DECL): Fix name.
15210 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15212 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15214 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15216 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15218 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15220 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15223 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15224 Rename argument tm_fn to md_fn.
15226 (TARGET_OPTION_PRINT): Fix argument list.
15228 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15231 * config/i386/i386.c (ix86_fixup_binary_operands):
15232 Revert FMA4 fixup of operands.
15234 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15237 * Makefile.in (write_entries_to_file, install-plugin):
15238 Use \012 instead of \n with tr.
15240 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15242 * configure.ac (HAVE_AS_REF): New C macro.
15243 * configure: Regenerate.
15244 * config.in: Likewise.
15245 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15247 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15250 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15252 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15254 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15256 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15258 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15260 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15262 (TARGET_BINDS_LOCAL_P): Fix argument type.
15264 (TARGET_ASM_FILE_END): Use prototype.
15266 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15268 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15270 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15272 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15274 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15275 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15277 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15278 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15280 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15281 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15282 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15283 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15285 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15287 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15289 (TARGET_INIT_BUILTINS): Use prototype.
15291 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15292 Put 'const char *' in braces. Fix parameter types.
15293 (TARGET_INVALID_CONVERSION): Fix parameter types.
15294 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15295 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15297 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15300 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15302 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15304 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15306 * doc/tm.texi (TARGET_HELP): Fix return type.
15308 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15309 in braces. Fix argument types.
15311 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15313 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15315 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15317 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15318 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15320 (TARGET_MANGLE_TYPE): Fix argument types.
15322 (TARGET_IRA_COVER_CLASSES): Use prototype.
15324 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15326 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15328 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15330 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15332 (TARGET_CALLEE_COPIES): Fix argument types.
15334 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15336 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15338 (TARGET_FUNCTION_VALUE): Fix argument types.
15340 (TARGET_RETURN_IN_MSB): Fix argument type.
15342 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15344 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15346 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15348 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15349 agree with return type.
15351 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15353 2010-01-15 Jing Yu <jingyu@google.com>
15355 PR rtl-optimization/42691
15356 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15357 a pseudo to a constant and are merged, and adjust comments.
15359 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15361 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15363 2010-01-15 Richard Guenther <rguenther@suse.de>
15365 PR middle-end/42739
15366 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15367 labels of computed or non-local gotos to the destination.
15368 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15369 landing pad label is the first label.
15371 2010-01-15 Richard Guenther <rguenther@suse.de>
15373 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15375 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15378 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15379 to allow generation of the xssqrtdp instruction on power7.
15380 (sqrtdf2_fpr): Ditto.
15382 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15384 PR middle-end/42674
15385 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15386 functions with noreturn attribute.
15389 * varasm.c (declare_weak): Add weak attribute to decl if it
15390 doesn't have one already.
15391 (assemble_external): Only add decls to weak_decls if they also
15392 have weak attribute.
15394 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15396 * var-tracking.c (var_reg_delete): Don't delete the association
15397 between REGs and values or one-part variables if the register
15400 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15403 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15404 because its first operand is a non-localized variable.
15406 2010-01-14 Martin Jambor <mjambor@suse.cz>
15408 PR tree-optimization/42706
15409 * tree-sra.c (encountered_recursive_call): New variable.
15410 (encountered_unchangable_recursive_call): Likewise.
15411 (sra_initialize): Initialize both new variables.
15412 (callsite_has_enough_arguments_p): New function.
15413 (scan_function): Call decl and flags check only for IPA-SRA, check
15414 whether there is a recursive call and whether it has enough arguments.
15415 (all_callers_have_enough_arguments_p): New function.
15416 (convert_callers): Look for recursive calls only when
15417 encountered_recursive_call is set.
15418 (ipa_early_sra): Bail out either if
15419 !all_callers_have_enough_arguments_p or
15420 encountered_unchangable_recursive_call.
15422 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15424 * sel-sched.c: Add 2010 to copyright years.
15425 * sel-sched-ir.c: Likewise.
15426 * sel-sched-ir.h: Likewise.
15428 2010-01-14 Martin Jambor <mjambor@suse.cz>
15430 PR tree-optimization/42714
15431 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15432 constructors specially.
15434 2010-01-14 Andi Kleen <ak@linux.intel.com>
15436 * config/i386/drivers-i386.c (detect_caches_intel):
15437 Add l2sizekb parameter and fill in.
15438 (host_detect_local_cpu): Add l2sizekb, fill in.
15439 Add Atom small cache heuristic.
15441 2010-01-14 Andi Kleen <ak@linux.intel.com>
15443 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15444 Add level3 parameter and fill in.
15445 (detect_caches_intel): Handle level3 cache.
15447 2010-01-14 Andi Kleen <ak@linux.intel.com>
15449 * config/i386/drivers-i386.c (host_detect_local_cpu):
15450 Fix core duo detection.
15452 2010-01-14 Andi Kleen <ak@linux.intel.com>
15454 * config/i386/drivers-i386.c (host_detect_local_cpu):
15455 Fix Atom detection.
15457 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15459 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15460 (rs6000_variable_issue_1): this. Use...
15461 (rs6000_variable_issue): here. Reimplement. Print debug info.
15463 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15465 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15466 sel_restore_notes. Update all callers. Call reemit_notes
15469 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15471 PR rtl-optimization/42246
15472 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15475 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15477 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15478 all successors is the same as number of successors in current region.
15480 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15482 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15483 to rename is not separable. Otherwise check that its LHS is not NULL.
15485 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15487 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15489 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15491 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15492 available registers when failed to discover LHS register class.
15493 Fix indentation. Update comment.
15495 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15496 Alexander Monakov <amonakov@ispras.ru>
15498 PR rtl-optimization/42389
15499 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15501 (advance_state_on_fence): Likewise.
15502 (sel_target_adjust_priority): Print debug output only when
15503 sched_verbose >= 4, not 2.
15504 (get_expr_cost): Do not issue all unique insns on the next cycle.
15505 (fill_insns): Initialize can_issue_more from the value saved
15507 * sel-sched-ir.c (flist_add): New parameter issue_more.
15508 Init FENCE_ISSUE_MORE with it.
15509 (merge_fences): Likewise.
15510 (init_fences): Update call to flist_add.
15511 (add_to_fences, add_clean_fence_to_fences)
15512 (add_dirty_fence_to_fences): Likewise.
15513 (move_fence_to_fences): Update call to merge_fences.
15514 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15516 * sel-sched-ir.h (struct _fence): New field issue_more.
15517 (FENCE_ISSUE_MORE): New accessor macro.
15519 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15521 PR rtl-optimization/42388
15522 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15523 that have no predecessors nor successors. Do not call move_bb_info
15524 for empty blocks outside of current region.
15526 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15528 PR rtl-optimization/42294
15529 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15530 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15531 originators' originators.
15533 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15535 PR rtl-optimization/39453
15536 PR rtl-optimization/42246
15537 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15539 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15541 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15542 Alexander Monakov <amonakov@ispras.ru>
15544 PR middle-end/42245
15545 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15546 (maybe_tidy_empty_bb): ... here. Make static. Add new
15547 argument. Update all callers.
15548 (tidy_control_flow): ... and here. Recompute topological order
15549 of basic blocks in region if necessary.
15550 (sel_redirect_edge_and_branch): Change return type. Return true
15551 if topological order might have been invalidated.
15552 (purge_empty_blocks): Export and move from...
15553 * sel-sched.c (purge_empty_blocks): ... here.
15554 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15555 (maybe_tidy_empty_bb): Delete prototype.
15556 (purge_empty_blocks): Declare.
15558 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15560 PR rtl-optimization/42249
15561 * sel-sched.c (try_replace_dest_reg): When chosen register
15562 and original register is the same, do not bail out early, but
15563 still check all original insns for validity of replacing destination
15564 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15567 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15570 Port from no-undefined-overflow branch:
15571 2009-03-09 Richard Guenther <rguenther@suse.de>
15573 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15575 2010-01-14 Richard Guenther <rguenther@suse.de>
15578 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15580 2010-01-14 Ira Rosen <irar@il.ibm.com>
15582 PR tree-optimization/42709
15583 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15584 as scalar type in creation of constant vector operand.
15586 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15589 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15590 (check-parallel-%): Match `testsuite' directory component only
15593 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15595 PR translation/39521
15596 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15599 2010-01-13 Richard Guenther <rguenther@suse.de>
15601 PR tree-optimization/42730
15602 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15605 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15608 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15609 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15612 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15614 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15615 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15616 ___umulsi3_highpart.
15618 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15619 rather than schedule_insns if the pass is enabled.
15621 2010-01-13 Martin Jambor <mjambor@suse.cz>
15623 PR tree-optimization/42704
15624 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15627 2010-01-13 Martin Jambor <mjambor@suse.cz>
15629 PR tree-optimization/42703
15630 * tree-sra.c (analyze_access_subtree): Check that we can build a
15631 reference to the original data within the aggregate.
15633 2010-01-13 Richard Guenther <rguenther@suse.de>
15635 PR tree-optimization/42705
15636 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15638 2010-01-13 Richard Guenther <rguenther@suse.de>
15640 PR middle-end/42716
15641 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15643 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15646 * var-tracking.c (values_to_unmark): New variable.
15647 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15648 values_to_unmark vector. Moved body to...
15649 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15650 instead queue it into values_to_unmark vector.
15651 (vt_find_locations): Free values_to_unmark vector.
15653 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15655 * config/s390/s390.c (override_options): Set
15656 default of max-pending-list-length to 256
15658 2010-01-13 Richard Guenther <rguenther@suse.de>
15661 * tree-pass.h (PROP_gimple_lcx): New.
15662 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15663 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15664 before the final cleanup_eh.
15665 (dump_properties): Dump PROP_gimple_lcx.
15666 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15667 (tree_lower_complex_O0): Remove.
15668 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15669 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15670 tree_lower_complex, schedule TODO_update_ssa.
15671 * lto-streamer-out.c (output_function): Stream the functions
15673 * lto-streamer-in.c (input_function): Likewise.
15674 (lto_read_body): Do not override them here.
15676 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15679 * c-typeck.c (build_c_cast): Fold value cast to union type before
15680 wrapping it in a CONSTRUCTOR.
15682 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15684 PR rtl-optimization/42699
15685 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15688 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15690 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15691 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15692 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15693 SUBTARGET_WARN_UNUSED_SPEC): ... here
15694 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15696 2010-01-12 Julian Brown <julian@codesourcery.com>
15698 * config/arm/neon-schedgen.ml (Utils): Don't try to
15699 open missing module.
15700 (find_with_result): New.
15702 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15705 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15706 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15708 PR tree-optimization/42645
15709 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15710 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15711 decl_map, set processing_debug_stmt to -1 and return name without
15714 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15716 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15717 binutils version, and reword target configuration description.
15719 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15721 * config/avr/avr.h (LINKER_NAME): Remove.
15723 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15726 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15727 that support VSX, warn for -mno-altivec if vsx is not disabled,
15730 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15731 Shujing Zhao <pearly.zhao@oracle.com>
15733 PR translation/42469
15734 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15735 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15736 character between option name and help text.
15737 * c.opt (imultilib): Likewise.
15739 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15741 * lto-streamer-out.c (output_unreferenced_globals): Output static
15744 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15746 PR rtl-optimization/42621
15747 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15748 optimizing for size.
15749 (duplicate_computed_gotos): Remove now-redundant check.
15751 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15754 * configure.ac: Save and restore LDFLAGS and LIBS
15755 * configure: Regenerate.
15757 2010-01-10 Richard Guenther <rguenther@suse.de>
15759 PR middle-end/42667
15760 * builtins.c (fold_builtin_strlen): Add type argument and
15761 convert the resulting length to it.
15762 (fold_builtin_1): Adjust.
15764 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15766 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15767 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15769 (num_insns_constant_wide): Adjust for that change.
15771 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15774 * web.c (union_defs): Add used argument, to combine uses of
15775 uninitialized regs.
15776 (entry_register): Adjust type and tests of used argument.
15777 (web_main): Widen used for new use. Pass it to union_defs.
15778 * df.h (union_defs): Adjust prototype.
15780 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15783 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15784 uses in new incoming argument. Free body.
15785 (reset_debug_uses_in_loop): New.
15786 (analyze_insn_to_expand_var): Call the latter if the former found
15787 anything. Fix whitespace. Reject invalid dest overlaps before
15788 going through all insns in the loop.
15790 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15793 * haifa-sched.c (dying_use_p): Debug insns don't count.
15795 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15797 PR middle-end/42363
15798 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15799 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15800 (verify_gimple_call): Reject LHS in noreturn calls.
15802 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15806 * tree-vect-loop-manip.c (adjust_info): New type.
15807 (adjust_vec): New pointer to vector.
15808 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15809 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15810 (slpeel_update_phis_for_duplicate_loop): Use them.
15811 (slpeel_update_phi_nodes_for_guard1): Likewise.
15812 (slpeel_update_phi_nodes_for_guard2): Likewise.
15813 (slpeel_tree_peel_loop_to_edge): Likewise.
15814 (vect_update_ivs_after_vectorizer): Likewise.
15816 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15818 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15819 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15821 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15823 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15824 bogus uninitialized warning.
15826 2010-01-09 Richard Guenther <rguenther@suse.de>
15828 PR middle-end/42512
15829 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15830 the evolution is compatible with the initial condition.
15832 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15834 * gcc.c (process_command): Update copyright notice dates.
15835 * gcov.c (print_version): Likewise.
15836 * gcov-dump.c (print_version): Likewise.
15837 * mips-tfile.c (main): Likewise.
15838 * mips-tdump.c (main): Likewise.
15840 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15843 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15845 (rotlhi3_8): Delete.
15847 (rotlsi3_8): Delete.
15848 (rotlsi3_16): Delete.
15849 (rotlsi3_24): Delete.
15850 (rotl<mode>3): New.
15851 (*rotw<mode>3): New.
15852 (*rotb<mode>3): New.
15853 * config/avr/avr.c (avr_rotate_bytes): New function.
15854 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15856 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15859 * configure.ac: Modify -rdynamic check.
15860 * configure: Regenerate.
15862 2010-01-08 DJ Delorie <dj@redhat.com>
15864 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15865 register popping order.
15867 2010-01-08 Richard Guenther <rguenther@suse.de>
15870 * c.opt (fsigned-char): Also let LTO handle this option.
15871 (funsigned-char): Likewise.
15873 2010-01-07 Richard Guenther <rguenther@suse.de>
15875 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15876 (gimple_op): Likewise.
15877 (gimple_op_ptr): Likewise.
15878 (gimple_assign_set_lhs): Remove gcc_assert.
15879 (gimple_assign_set_rhs1): Likewise.
15880 (gimple_assign_set_rhs2): Likewise.
15881 (gimple_call_set_lhs): Likewise.
15882 (gimple_call_set_fn): Likewise.
15883 (gimple_call_set_fndecl): Likewise.
15884 (gimple_call_fndecl): Likewise.
15885 (gimple_call_return_type): Likewise.
15886 (gimple_call_set_chain): Likewise.
15887 (gimple_call_num_args): Likewise.
15888 (gimple_call_set_arg): Likewise.
15889 (gimple_cond_set_code): Likewise.
15890 (gimple_cond_set_lhs): Likewise.
15891 (gimple_cond_set_rhs): Likewise.
15892 (gimple_cond_set_true_label): Likewise.
15893 (gimple_cond_set_false_label): Likewise.
15894 (gimple_label_set_label): Likewise.
15895 (gimple_goto_set_dest): Likewise.
15896 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15897 (gimple_debug_bind_get_value): Likewise.
15898 (gimple_debug_bind_get_value_ptr): Likewise.
15899 (gimple_debug_bind_set_var): Likewise.
15900 (gimple_debug_bind_set_value): Likewise.
15901 (gimple_debug_bind_reset_value): Likewise.
15902 (gimple_debug_bind_has_value_p): Likewise.
15903 (gimple_return_retval_ptr): Remove gcc_assert.
15904 (gimple_return_retval): Likewise.
15905 (gimple_return_set_retval): Likewise.
15906 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15907 (safe_referenced_var_iterator): Remove.
15908 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15909 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15910 (fill_referenced_var_vec): Remove.
15911 (first_readonly_imm_use): Remove redundant gcc_assert.
15912 (phi_arg_index_from_use): Combine gcc_asserts.
15913 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15914 (first_imm_use_stmt): Remove redundant gcc_assert.
15915 * tree-cfg.c (verify_gimple_call): Verify function and chain
15916 operands. Verify arguments.
15917 (verify_types_in_gimple_stmt): Verify condition code and labels.
15919 2010-01-07 Richard Guenther <rguenther@suse.de>
15921 PR tree-optimization/42641
15922 * sese.c (rename_map_elt_info): Use the SSA name version, do
15925 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15927 PR tree-optimization/42625
15928 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15929 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15931 2010-01-07 Duncan Sands <baldrick@free.fr>
15933 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15935 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15938 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15939 note itself is not function_invariant_p.
15941 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15943 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15944 Do not add the DF_NOTE problem.
15945 * store-motion.c (execute_rtl_store_motion): Likewise.
15947 2010-01-07 Martin Jambor <mjambor@suse.cz>
15949 PR tree-optimization/42157
15950 * tree-sra.c (compare_access_positions): Stabilize sort if both
15951 accesses have integer types, return zero immediately if they are the
15954 2010-01-06 Richard Henderson <rth@redhat.com>
15956 PR middle-end/41883
15957 * haifa-sched.c (add_to_note_list): Merge into ...
15958 (concat_note_lists): ... here, and ...
15959 (unlink_other_notes, rm_other_notes): Merge into...
15960 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15961 NOTE_INSN_EPILOGUE_BEG.
15963 2010-01-06 Richard Guenther <rguenther@suse.de>
15965 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15966 not inline regular functions into always-inline functions.
15968 2010-01-06 Nick Clifton <nickc@redhat.com>
15970 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15971 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15973 (OVERRIDE_OPTIONS): Delete.
15974 (OPTIMIZATION_OPTIONS): Define.
15975 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15976 * config/rx/rx.c (rx_handle_option): Issue an error message if
15977 -mcpu=rx200 and -fpu are used together.
15978 (rx_set_optimization_options): New function. Issue an error
15979 message if an optimization attribute attempts to reset the FPU/
15980 math optimization pairing.
15981 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15982 * config/rx/rx.opt: Set the default to 32-bit doubles.
15983 * config/rx/t-rx: Add multilibs for -nofpu option.
15984 * doc/invoke.texi: Update documentation of RX options.
15986 2010-01-06 Richard Guenther <rguenther@suse.de>
15988 * tree-ssa-pre.c (name_to_id): New global.
15989 (alloc_expression_id): Simplify SSA name handling.
15990 (lookup_expression_id): Likewise.
15991 (init_pre): Zero name_to_id.
15992 (fini_pre): Free it.
15994 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15996 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15998 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
16001 * config/i386/sse.md (smaxv2di3): New.
16002 (umaxv2di3): Likewise.
16003 (sminv2di3): Likewise.
16004 (uminv2di3): Likewise.
16006 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
16009 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16010 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16011 (legitimize_tls_address): Likewise.
16012 (sparc_tls_referenced_p): Likewise.
16013 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16014 and adjust calls to legitimize_pic_address.
16015 (legitimate_constant_p) Use sparc_tls_referenced_p.
16016 (legitimate_pic_operand_p): Likewise.
16017 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16018 (sparc_tls_symbol_ref_1): Delete.
16019 (sparc_tls_referenced_p): Make static, recognize specific patterns.
16020 (legitimize_tls_address): Make static, handle CONST patterns.
16021 (legitimize_pic_address): Make static, remove unused parameter and
16022 adjust recursive calls.
16023 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16024 and adjust call to legitimize_pic_address.
16025 (sparc_output_mi_thunk): Likewise.
16027 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
16028 H.J. Lu <hongjiu.lu@intel.com>
16031 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16032 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16033 operands to make them signed.
16036 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16039 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16040 GTU to GT for V4SI and V2DI.
16042 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16043 (umin<mode>3): Removed.
16045 (uminv4si3): Likewise.
16047 2010-01-05 Martin Jambor <mjambor@suse.cz>
16049 PR tree-optimization/42462
16050 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16051 current_function_decl to helper functions and macros.
16053 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16056 * flags.h: Don't include real.h.
16057 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16058 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16059 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16060 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16061 * dominance.c: Update copyright.
16062 * gimple.c (walk_gimple_op): Remove inline.
16063 * tree-ssa-reassoc.c: Include real.h.
16064 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16065 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16067 2010-01-05 Nick Clifton <nickc@redhat.com>
16069 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16070 register to push into the stack frame when the accumulator has to
16071 be saved during interrupts.
16073 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16075 * doc/invoke.texi: Remove the documentation about option
16076 -Wunreachable-code.
16077 * common.opt (Wunreachable-code): Preserved for backward
16079 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16080 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16081 the backward compatibility flag section.
16083 2010-01-05 Richard Guenther <rguenther@suse.de>
16085 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16087 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16090 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16092 PR tree-optimization/42508
16093 * tree-sra.c (convert_callers): Check for recursive call
16094 by comparing cgraph nodes instead of decls.
16095 (modify_function): Call ipa_modify_formal_parameters also
16096 on all same_body aliases.
16098 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16099 cgraph nodes when checking for same_body aliases.
16101 2010-01-05 Richard Guenther <rguenther@suse.de>
16103 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16104 allocation and lookup.
16105 (get_or_alloc_expr_for_constant): Likewise.
16106 (phi_translate): Sink allocation.
16108 2010-01-04 Richard Guenther <rguenther@suse.de>
16110 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16111 a new entry only if needed.
16112 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16113 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16115 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16117 (phi_translate): Handle CONSTANTs early.
16119 2010-01-04 Martin Jambor <mjambor@suse.cz>
16121 PR tree-optimization/42398
16122 * tree-sra.c (struct access): Removed flag grp_different_types.
16123 (dump_access): Do not dump the removed flag.
16124 (sort_and_splice_var_accesses): Do not set the removed flag.
16125 (sra_modify_expr): Check for type compatibility directly.
16127 2010-01-04 Martin Jambor <mjambor@suse.cz>
16129 PR tree-optimization/42366
16130 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16131 edges with variable number of parameters.
16132 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16133 flag instead of asserting it.
16134 (ipa_read_node_info): Read uses_analysis_done flag.
16136 2010-01-04 Richard Guenther <rguenther@suse.de>
16138 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16139 iterative_hash_* as intended.
16140 (vn_reference_compute_hash): Likewise. Simplify hashing
16142 (vn_reference_lookup_2): Likewise.
16143 (vn_nary_op_compute_hash): Likewise.
16144 (vn_phi_compute_hash): Likewise.
16145 (expressions_equal_p): Remove strange code.
16146 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16147 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16148 (bitmap_insert_into_set_1): Take value-id as parameter.
16149 (add_to_value): Pass it.
16150 (bitmap_insert_into_set): Likewise.
16151 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16153 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16156 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16157 (do_self_spec): For switches with SWITCH_IGNORE set set also
16158 SWITCH_IGNORE_PERMANENTLY.
16159 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16162 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16164 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16165 tree of an unreferenced global var.
16167 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16170 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16171 GTU to GT for V4SI and V2DI.
16173 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16174 (umin<mode>3): Removed.
16176 (uminv4si3): Likewise.
16178 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16181 * collect2.c (main): Turn on trace in collect2 if -v is passed
16184 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16186 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16187 description of expression operand.
16189 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16191 * configure.ac: Add install-html to target_list for Make-hooks.
16192 * configure: Regenerate.
16193 * fortran/Make-lang.in (F95_HTMLFILES): New.
16194 (fortran.html): Use it.
16195 (fortran.install-html): New.
16196 * Makefile.in (install-html): Add lang.install-html.
16197 * java/Make-lang.in (JAVA_HTMLFILES): New.
16198 (java.html): Use it.
16199 (java.install-html): New.
16200 * objc/Make-lang.in (objc.install-html): New.
16201 * objcp/Make-lang.in (obj-c++.install-html): New.
16202 * cp/Make-lang.in (c++.install-html): New.
16203 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16204 * lto/Make-lang.in (lto.install-html): New.
16206 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16209 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16211 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16213 PR rtl-optimization/41862
16214 * store-motion.c (store_killed_in_insn, compute_store_table,
16215 remove_reachable_equiv_notes, replace_store_insn,
16216 build_store_vectors): Ignore all DEBUG_INSNs.
16218 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16221 * common.opt: Add dumpdir.
16223 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16225 (option_map): Add --dumpdir.
16227 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16229 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16231 * opts.c (decode_options): Try dump_dir_name first if
16232 dump_base_name isn't an absolute path.
16233 (common_handle_option): Handle OPT_dumpdir.
16235 * toplev.c (dump_dir_name): New.
16236 (print_switch_values): Also ignore -dumpdir.
16238 * toplev.h (dump_dir_name): New.
16240 2010-01-03 Richard Guenther <rguenther@suse.de>
16242 PR tree-optimization/42589
16243 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16244 double-word expansion of bswap32.
16246 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16248 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16249 with BLOCK_FOR_INSN.
16250 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16251 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16252 noce_process_if_block): Likewise.
16253 * gcse.c (compute_local_properties, insert_expr_in_table,
16254 insert_set_in_table, canon_list_insert, find_avail_set,
16255 pre_insert_copy_insn): Likewise.
16257 * basic-block.h (BLOCK_NUM): Move from here...
16258 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16260 2010-01-03 Richard Guenther <rguenther@suse.de>
16262 PR tree-optimization/42438
16263 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16264 contains_may_not_return_call flag.
16265 (BB_MAY_NOTRETURN): New.
16266 (valid_in_sets): Trapping nary operations are not valid
16267 in blocks that may not return.
16268 (insert_into_preds_of_block): Remove check for trapping expressions.
16269 (compute_avail): Compute also BB_MAY_NOTRETURN.
16271 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16273 * doc/invoke.texi: Add 2010 to copyright years.
16275 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16277 * config/sparc/sparc.c: Fix formatting nits.
16279 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16280 Alexander Monakov <amonakov@ispras.ru>
16282 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16284 2010-01-02 Richard Guenther <rguenther@suse.de>
16286 PR middle-end/42577
16287 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16288 (simplify_switch_using_ranges): Mark to be removed edges
16291 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16293 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16295 * collect2.c (scan_libraries): Add missing argument in call to
16298 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16301 * config/alpha/predicates.md (aligned_memory_operand): Return false
16303 (unaligned_memory_operand): Return true for CQImode.
16304 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16305 doesn not cross aligned SImode word boundary.
16307 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16309 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16311 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16312 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16314 2010-01-02 Richard Guenther <rguenther@suse.de>
16317 * toplev.c (compile_file): Emit LTO marker properly. Change
16318 it to __gnu_lto_v1.
16319 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16321 2010-01-01 Richard Guenther <rguenther@suse.de>
16324 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16326 2010-01-01 Richard Guenther <rguenther@suse.de>
16329 * c-decl.c (grokdeclarator): For zero-size arrays force
16330 structural equality checks as layout_type does.
16332 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16334 * builtins.c: Update copyright to 2010.
16336 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16339 * lto-streamer-out.c (produce_asm): Revert the last change.
16340 (copy_function): Likewise.
16342 * lto-streamer.c (lto_get_section_name): Skip any leading
16345 2010-01-01 Richard Guenther <rguenther@suse.de>
16347 PR middle-end/42559
16348 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16352 Copyright (C) 2010 Free Software Foundation, Inc.
16354 Copying and distribution of this file, with or without modification,
16355 are permitted in any medium without royalty provided the copyright
16356 notice and this notice are preserved.