1 2010-06-28 Martin Jambor <mjambor@suse.cz>
3 * tree-sra.c (convert_callers): New parameter, change fndecls of
5 (modify_function): Pass the old decl to convert_callers.
7 2010-06-28 Martin Jambor <mjambor@suse.cz>
9 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
10 ipa_check_create_node_params and ipa_initialize_node_params with
11 checking asserts they are not necessary.
13 2010-06-28 Jan Hubicka <jh@suse.cz>
15 PR tree-optimization/44687
16 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
18 2010-06-28 Martin Jambor <mjambor@suse.cz>
21 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
22 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
23 instead of BINFO_BASE_BINFO.
25 2010-06-28 Michael Matz <matz@suse.de>
28 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
29 proper VDEF chain for intermediate stores in the sequence.
31 2010-06-28 Jan Hubicka <jh@suse.cz>
33 PR tree-optimization/44357
34 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
37 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
39 * config.gcc (powerpc*-*-*): Handle titan.
40 * config/rs6000/rs6000.c (titan_cost): New costs.
41 (rs6000_override_options): Add "titan" to processor_target_table.
42 Add Titan to branch alignment logic.
43 Correctly set rs6000_cost for titan.
44 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
45 * config/rs6000/titan.md: New file.
46 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
48 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
50 * tree-browser.c (TB_history_stack): Convert to a VEC.
51 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
52 (TB_history_prev): Likewise.
54 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
56 * vec.h (vec_heap_free): Add parentheses around free.
58 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
60 * system.h: Poison GCC_EXCEPT_H for front-end files.
62 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
64 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
65 Define to NULL by default.
66 * except.h: Define GCC_EXCEPT_H.
67 (doing_eh): Remove prototype.
68 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
69 (lang_protect_cleanup_actions): Remove.
70 * except.c (lang_protect_cleanup_actions): Remove.
72 (gen_eh_region): Don't check doing_eh here.
73 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
74 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
75 instead of lang_protect_cleanup_actions.
76 * omp-low.c (maybe_catch_exception): Likewise.
77 * Makefile.in: Update dependencies.
79 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
81 * cgraph.h (struct varpool_node): new used_from_object_file flag.
82 (struct cgraph_local_info): new used_from_object_file flag.
83 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
84 (cgraph_clone_node): initialize used_from_object_file.
85 (cgraph_create_virtual_clone): initialize used_from_object_file.
86 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
87 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
88 when compiling with -fwhole-program.
89 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
91 * ipa.c (function_and_variable_visibility): Set externally_visible
92 flag of varpool_node if used_from_object_file flag is set.
93 (cgraph_externally_visible_p): check used_from_object_file flag.
94 * doc/invoke.texi (-fwhole-program option): Change description of
95 externally_visible attribute accordingly.
96 * doc/extend.texi (externally_visible): Ditto.
98 2010-06-27 Jan Hubicka <jh@suse.cz>
100 * params.def (max-inline-insns-auto): Default to 40.
101 * doc/invoke.texi (max-inline-insns-auto): Document the change.
103 2010-06-27 Jan Hubicka <jh@suse.cz>
107 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on signature
109 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
110 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
112 2010-06-27 Anatoly Sokolov <aesok@post.ru>
114 * target.h (struct gcc_target): Add register_move_cost field.
115 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
116 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
117 * targhooks.c (default_register_move_cost): New function.
118 * targhooks.h (default_register_move_cost): Declare function.
119 * defaults.h (REGISTER_MOVE_COST): Delete.
120 * ira-int.h (ira_register_move_cost): Update comment.
121 * ira.c: (ira_register_move_cost): Update comment.
122 * reload.h (register_move_cost): Declare.
123 * reginfo.c (register_move_cost): New function.
124 (move_cost): Update comment.
125 (init_move_cost, memory_move_secondary_cost): Replace
126 REGISTER_MOVE_COST with register_move_cost.
127 * postreload.c (reload_cse_simplify_set): (Ditto.).
128 * reload.c (find_valid_class, find_reloads): (Ditto.).
129 * reload1.c (choose_reload_regs): (Ditto.).
130 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
131 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
132 * doc/md.texi (can_create_pseudo_p): Update documentation.
134 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
135 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
136 * config/i386/i386.h (ix86_memory_move_cost): Make static.
137 (TARGET_MEMORY_MOVE_COST): Define.
139 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
140 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
141 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
142 (TARGET_MEMORY_MOVE_COST): Define.
144 2010-06-27 Richard Guenther <rguenther@suse.de>
146 PR tree-optimization/44683
147 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
148 false edge from the inverted condition.
150 2010-06-27 Richard Guenther <rguenther@suse.de>
153 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
154 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
155 for register LHS. Or non-store assignments.
157 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
159 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
160 (sparc_emit_set_const64): Likewise. Remove disabled code.
161 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
162 (sparc_emit_set_const64): Likewise.
164 2010-06-26 Catherine Moore <clm@codesourcery.com>
166 * config/mips/mips.md (alu_type): New attribute.
167 (type): Infer type from alu_type.
168 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
169 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
170 *subsi3_extended, negsi2, negdi2, *low<mode>,
171 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
172 xor<mode>3, *nor<mode>3,
173 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
174 *zero_extendhi_truncqi): Set alu_type instead of type.
176 2010-06-26 Douglas B Rupp <rupp@gnat.com>
178 * config/alpha/alpha.c (alpha_need_linkage): Adjust
179 splay_tree_new_ggc call.
180 (alpha_use_linkage): Likewise.
182 2010-06-26 Joseph Myers <joseph@codesourcery.com>
184 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
185 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
186 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
187 (static_specs): Remove switches_need_spaces.
188 (process_command, do_self_spec): Hardcode handling "-o" instead of
189 checking switches_need_spaces.
190 * system.h (SWITCHES_NEED_SPACES): Poison.
192 2010-06-26 Richard Guenther <rguenther@suse.de>
194 PR tree-optimization/44393
195 * tree-loop-distribution.c (generate_loops_for_partition): Fix
196 stmt removal and VOP renaming.
197 (generate_memset_zero): Remove redundant stmt updating.
198 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
199 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
201 2010-06-26 Jan Hubicka <jh@suse.cz>
203 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
204 edges comming from header are equivalent.
205 (visit_bb): Handle PHIs correctly.
206 * tree-inline.c (copy_phis_for_bb): Be able to copy
208 (copy_cfg_body): Produce edge from entry BB before copying
211 2010-06-26 Richard Guenther <rguenther@suse.de>
214 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
215 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
217 2010-06-26 Joseph Myers <joseph@codesourcery.com>
219 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
220 add_infile, alloc_switch): New.
221 (process_command): Remove variable lang_n_infiles. Process
222 options in a single pass. Use new functions for allocating
223 infiles and switches arrays. Properly skip operands of
224 -Xpreprocessor and -Xassembler.
226 2010-06-26 Jan Hubicka <jh@suse.cz>
229 * cgraphunit.c (cgraph_function_versioning): Remove wrong
230 cgraph_make_decl_local call; fix typo copying RTL data.
232 2010-06-25 DJ Delorie <dj@redhat.com>
234 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
235 (m32c_output_aligned_common): Likewise.
236 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
237 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
238 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
239 (m32c_register_pragmas): Register it.
240 * config/m32c/m32c.c (m32c_get_pragma_address): New.
241 (m32c_insert_attributes): Set #pragma address decls volatile.
242 (pragma_entry_eq): New.
243 (pragma_entry_hash): New.
244 (m32c_note_pragma_address): New.
245 (m32c_get_pragma_address): New.
246 (m32c_output_aligned_common): New.
247 * doc/extend.texi: Document the new pragma.
249 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
251 * config/m32c/predicates.md (m32c_any_operand): Check the code
252 instead of memory_operand so as to allow matching volatile MEMs.
253 (m32c_nonimmediate_operand): Likewise.
254 (mra_operand): Allow volatiles.
256 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
259 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
260 address if the offset is unknown.
262 2010-06-25 Douglas B Rupp <rupp@gnat.com>
264 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
265 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
266 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
267 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
268 to ia64_start_function. Invoke it.
269 * config/ia64/ia64.c (ia64_start_function): Call new function
270 dwarf2out_vms_debug_main_pointer.
272 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
274 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
275 statements computing the true predicate.
277 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
279 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
280 to boolean_true_node.
281 (reset_bb_predicate): New.
282 (predicate_bbs): Call reset_bb_predicate.
284 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
286 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
287 (tree_if_conversion): Returns true when something has been changed.
288 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
291 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
293 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
294 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
295 * tree-if-conv.c: Include dbgcnt.h.
296 (tree_if_conversion): Use if_conversion_tree to count the number of
297 if-convertible loops.
299 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
301 * common.opt (fprefetch-loop-arrays): Re-define
302 -fprefetch-loop-arrays as a tri-state option with the initial
304 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
305 pass only when flag_prefetch_loop_arrays > 0.
306 * toplev.c (process_options): Note that, with tri-states,
307 flag_prefetch_loop_arrays>0 means prefetching is enabled.
308 * config/i386/i386.c (override_options): Enable prefetching at -O3
309 for a set of CPUs that sw prefetching is helpful.
310 (software_prefetching_beneficial_p): New. Return TRUE if software
311 prefetching is beneficial for the given CPU.
313 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
315 PR rtl-optimization/44326
316 * implicit-zee.c (find_removable_zero_extends): Replace
317 INSN_P with NONDEBUG_INSN_P.
319 2010-06-25 Martin Jambor <mjambor@suse.cz>
321 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
322 (struct ipa_node_params): Removed the modification_analysis_done flag.
323 (ipa_is_param_modified): Removed.
324 (ipa_analyze_node): Declare.
325 (ipa_compute_jump_functions): Remove declaration.
326 (ipa_count_arguments): Likewise.
327 (ipa_detect_param_modifications): Likewise.
328 (ipa_analyze_params_uses): Likewise.
329 * ipa-prop.c (struct param_analysis_info): New type.
330 (visit_store_addr_for_mod_analysis): Removed.
331 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
332 moved down in the file.
333 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
334 (ipa_count_arguments): Made static.
335 (mark_modified): New function.
336 (is_parm_modified_before_call): New function.
337 (compute_pass_through_member_ptrs): New parameter parms_info, call
338 is_parm_modified_before_call instead of ipa_is_param_modified.
339 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
340 it to compute_pass_through_member_ptrs.
341 (ipa_compute_jump_functions): New parameter parms_info, pass it to
342 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
343 on the callee if it is analyzed. Made static.
344 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
345 is_parm_modified_before_call instead of ipa_is_param_modified.
346 (ipa_analyze_call_uses): New parameter parms_info, pass it to
347 ipa_analyze_indirect_call_uses.
348 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
349 ipa_analyze_call_uses.
350 (ipa_analyze_params_uses): New parameter parms_info, pass it to
351 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
352 (ipa_analyze_node): New function.
353 (ipa_print_node_params): Do not dump the modified flag.
354 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
355 it. Do not stream the modified parameter flag.
356 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
357 it. Do not stream the modified parameter flag.
358 * ipa-cp.c (ipcp_analyze_node): Removed.
359 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
360 with only a call to ipa_analyze_node.
361 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
362 node with only a call to ipa_analyze_node.
364 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
366 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
368 2010-06-25 Jan Hubicka <jh@suse.cz>
370 * tree-pass.h (pass_split_functions): Declare.
371 * opts.c (decode_options): Enable function splitting at -O2
372 * timevar.def (TV_IPA_FNSPLIT): New macro.
373 * ipa-split.c: New file.
374 * common.opt (-fpartial-inlining): New flag.
375 * Makefile.in (ipa-split.o): New object file.
376 * passes.c (init_optimization_passes): Add ipa-split.
377 * params.def (partial-inlining-entry-probability): New parameters.
378 * doc/invoke.texi (-fpartial-inlining): New.
380 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
383 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
384 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
385 (gimplify_expr): Likewise.
387 2010-06-25 Martin Jambor <mjambor@suse.cz>
389 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
390 statements instead of bailing out on them.
391 (ipa_analyze_indirect_call_uses): Do not require that loads from the
392 parameter are in the same BB as the condition. Update comments.
394 2010-06-25 Jakub Jelinek <jakub@redhat.com>
397 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
398 true or always false, return NULL_TREE.
399 (tree_unswitch_single_loop): Optimize conditions even when reaching
400 max-unswitch-level parameter. If num > 0, optimize first all conditions
401 using entry checks, then do still reachable block discovery and consider
402 only conditions in still reachable basic blocks in the loop.
404 PR tree-optimization/44539
405 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
406 the call doesn't have LHS, but has VDEF.
408 2010-06-25 Joseph Myers <joseph@codesourcery.com>
410 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
411 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
412 * gcc.c (enum add_del, struct modify_target, modify_target):
414 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
415 * system.h (MODIFY_TARGET_NAME): Poison.
417 2010-06-25 Alan Modra <amodra@gmail.com>
419 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
420 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
421 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
422 CMODEL_LARGE as default.
423 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
424 (offsettable_ok_by_alignment): Delete.
425 (rs6000_emit_move): Remove mcmodel=medium optimization.
427 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
429 With large parts from Jim Wilson:
431 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
432 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
433 * optabs.c (optab_for_tree_code): Likewise.
434 (expand_widen_pattern_expr): Likewise.
435 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
436 out of execute_optimize_widening_mul.
437 (convert_plusminus_to_widen): New function.
438 (execute_optimize_widening_mul): Use the two new functions.
439 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
440 Remove code to generate widening multiply-accumulate. Add support
441 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
442 * gimple-pretty-print.c (dump_ternary_rhs): New function.
443 (dump_gimple_assign): Call it when appropriate.
444 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
445 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
446 (expand_gimple_stmt_1): Likewise.
447 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
448 WIDEN_MULT_MINUS_EXPR.
449 * tree-ssa-operands.c (get_expr_operands): Likewise.
450 * tree-inline.c (estimate_operator_cost): Likewise.
451 * gimple.c (extract_ops_from_tree_1): Renamed from
452 extract_ops_from_tree. Add new arg for a third operand; fill it.
453 (gimple_build_assign_stat): Support operations with three operands.
454 (gimple_build_assign_with_ops_stat): Likewise.
455 (gimple_assign_set_rhs_from_tree): Likewise.
456 (gimple_assign_set_rhs_with_ops_1): Renamed from
457 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
458 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
459 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
460 WIDEN_MULT_MINUS_EXPR.
461 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
462 (extract_ops_from_tree_1): Adjust declaration.
463 (gimple_assign_set_rhs_with_ops_1): Likewise.
464 (gimple_build_assign_with_ops): Pass NULL for last operand.
465 (gimple_build_assign_with_ops3): New macro.
466 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
467 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
469 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
470 (verify_gimple_assign): Call it.
471 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
472 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
473 functions for dealing with three-operand statements.
474 * tree.c (commutative_ternary_tree_code): New function.
475 * tree.h (commutative_ternary_tree_code): Declare it.
476 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
478 (gimple_assign_nonzero_warnv_p): Likewise.
479 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
480 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
481 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
482 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
483 (struct hashtable_expr): New member ternary in the union.
484 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
485 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
486 (iterative_hash_hashable_expr): Likewise.
487 (print_expr_hash_elt): Handle EXPR_TERNARY.
488 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
489 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
490 statements. Handle GIMPLE_TERNARY_RHS.
492 2010-06-25 Jan Hubicka <jh@suse.cz>
494 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
496 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
499 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
500 parameters are not good.
501 (c_parser_parameter_declaration): Error unknown type name if the type
502 name can't start declaration specifiers.
504 2010-06-25 Joseph Myers <joseph@codesourcery.com>
506 * gcc.c (translate_options): Don't mention +e in comment.
507 (process_command): Don't handle +e specially.
509 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
511 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
513 * ira-build.c (merge_hard_reg_conflicts): New function.
514 (create_cap_allocno, copy_info_to_removed_store_destinations,
515 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
516 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
517 (remove_unnecessary_allocnos, remove_low_level_allocnos)
518 copy_nifo_to_removed_store_destination): Use them.
519 * ira-lives.c (make_hard_regno_born): New function, split out of
521 (make_allocno_born): Likewise.
522 (make_hard_regno_dead): New function, split out of make_regno_dead.
523 (make_allocno_dead): Likewise.
524 (inc_register_pressure): New function, split out of set_allocno_live.
525 (dec_register_pressure): New function, split out of clear_allocno_live.
526 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
527 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
528 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
529 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
530 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
531 mark_pseudo_regno_live.
532 (process_bb_node_lives): Use mark_pseudo_regno_live,
533 make_hard_regno_born and make_allocno_dead.
534 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
535 set_allocno_live, clear_allocno_live): Delete functions.
537 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
538 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
540 (ira_flattening): Use ira_parent_allocno.
541 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
542 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
544 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
547 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
548 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
549 minmax_set_iter_cond, minmax_set_iter_next,
550 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
551 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
552 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
553 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
556 * ira-int.h (struct live_range, live_range_t): Renamed from struct
557 ira_allocno_live_range and allocno_live_range_t; all uses changed.
558 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
561 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
563 * thumb2.md (thumb2_tlobits_cbranch): Delete.
564 (peephole2 to convert zero_extract/compare of single bit to
565 lshift/compare): New.
567 2010-06-24 Anatoly Sokolov <aesok@post.ru>
569 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
570 recursive call and call to 'int_const_binop'.
571 (build_range_check, fold_cond_expr_with_comparison, unextend,
572 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
573 multiple_of_p): Adjust call to const_binop.
575 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
577 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
578 determine size of XFmode operand.
579 (XFmode extended DFmode push splitter): Ditto.
580 (XFmode extended SFmode push splitter): Ditto.
582 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
585 * config/i386/i386.md (extract_code): New.
586 (<u>divmodqi4): Likewise.
587 (divmodhiqi3): Likewise.
588 (udivmodhiqi3): Likewise.
589 (<u>divqi3): Remvoved.
591 2010-06-24 Jakub Jelinek <jakub@redhat.com>
594 * recog.h (struct recog_data): Add is_asm field.
595 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
596 present in constraints of inline-asm operand and memory operand
597 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
598 (extract_insn): Initialize recog_data.is_asm.
599 * doc/md.texi (Constraints): Document operand side-effect rules.
601 2010-06-24 Andi Kleen <ak@linux.intel.com>
603 * c-parser.c (c_parser_conditional_expression): Call
604 warn_for_omitted_condop.
605 * doc/invoke.texi: Document omitted condop warning.
607 2010-06-24 Nick Clifton<nickc@redhat.com>
609 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
610 insn in the sequence is a jump insn before setting its label.
612 2010-06-24 Alan Modra <amodra@gmail.com>
614 * collect2.c (main): Match exactly --version and --help.
616 2010-06-24 DJ Delorie <dj@redhat.com>
618 * config/m32c/m32c-pragma.c: Don't include rtl.h.
620 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
622 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
623 using X87MODEF mode iterator.
624 (pushsf splitter): Macroize splitter using P mode iterator.
625 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
628 (*movxf_internal): Rename from *movxf_integer.
629 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
630 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
631 (*movdf_internal): Rename from *movdf_integer.
632 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
633 (*movsf_internal): Rename from *movdf_1.
635 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
637 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
638 (const_gimple_seq_node): Removed typedefs.
640 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
641 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
643 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
645 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
646 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
647 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
648 and CODE_FOR_vec_extract_lo_v4df.
650 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
651 Changed to define_insn_and_split.
652 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
653 (vec_extract_lo_v16hi): Likewise.
654 (vec_extract_lo_v32qi): Likewise.
655 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
656 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
658 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
661 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
662 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
663 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
664 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
665 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
668 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
671 * df-core.c (struct df): Rename to df_d.
672 * df.h (struct df): Likewise.
673 * dse.h (struct df): Remove forward declaration.
674 * recog.h (struct insn_data): Rename to:
675 (struct_insn_data_d). Adjusted all users.
677 2010-06-23 Arnaud Charlet <charlet@adacore.com
680 * doc/install.texi: Update requirements to build GNAT.
682 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
684 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
686 (m68k_sched_attr_opx_type): Remove unreachable return.
687 (m68k_sched_attr_opy_type): Likewise.
688 (m68k_sched_attr_size): Likewise.
689 (sched_get_opxy_mem_type): Likewise.
690 (m68k_sched_attr_op_mem): Likewise.
692 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
694 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
695 new statement and adjust VDEF only if necessary. Remove superfluous
696 call to maybe_clean_or_replace_eh_stmt.
697 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
699 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
700 * tree-inline.c (copy_bb): ...and not there.
702 2010-06-22 Cary Coutant <ccoutant@google.com>
704 * dwarf2out.c (is_nested_in_subprogram): New function.
705 (should_move_die_to_comdat): Use it.
706 (copy_ancestor_tree): Don't mark DIEs here.
707 (copy_decls_walk): Start walk from root of newly-added tree;
708 mark DIEs here instead.
710 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
712 * config/i386/i386.md (unit): Also check sseishft1.
714 2010-06-22 Jan Hubicka <jh@suse.cz>
716 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
719 2010-06-22 Jan Hubicka <jh@suse.cz>
721 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
722 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
723 Return true if something changed.
724 * df.h (df_confluence_function_n): Return bool.
725 * df-core.c (df_worklist_propagate_forward,
726 df_worklist_propagate_backward): Track changes and ages.
727 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
729 * dse.c (dse_confluence_n): Return always true.
731 2010-06-22 Jan Hubicka <jh@suse.cz>
733 * bitmap.c (bitmap_clear_bit): Micro optimize.
735 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
737 * config/i386/i386.md (SWI1248x): New mode iterator.
742 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
743 SWI1248x mode iterator.
744 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
745 using SWI124 mode iterator.
746 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
748 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
749 *pushdi2_prologue_rex64 using P mode iterator.
750 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
751 using SWI48 mode iterator.
752 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
753 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
754 using SWI1248x mode iterator.
755 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
756 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
758 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
760 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
761 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
763 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
765 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
766 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
768 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
770 (mov<mode>_insn_1): New expander.
771 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
772 using SWI48x mode iterator.
774 (*movoi_internal_avx): Rename from *movoi_internal.
775 (*movti_internal_rex64): Rename from *movti_rex64.
776 (*movti_internal_sse): Rename from *movti_sse.
777 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
778 (*movdi_internal): Rename from *movdi_2.
779 (*movsi_internal): Rename from *movsi_1.
780 (*movhi_internal): Rename from *movhi_1.
781 (*movqi_internal): Rename from *movqi_1.
783 (insv): Update the call to gen_movsi_insv_1 for rename.
784 * config/i386/i386.c (promote_duplicated_reg): Ditto.
786 2010-06-22 Jan Hubicka <jh@suse.cz>
788 * passes.c (execute_function_todo): Move call of statistics_fini_pass
790 (execute_todo) ... this one.
792 2010-06-22 Alan Modra <amodra@gmail.com>
795 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
796 * caller-save.c (insert_restore, insert_save): Use non-validate
797 form of adjust_address.
799 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
802 * config/pa/pa.c (override_options): Disable
803 -freorder-blocks-and-partition.
805 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
808 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
810 * config/i386/i386.md (type): Add sseishft1
812 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
813 (ppro_insn_load): Likewise.
814 (ppro_insn_store): Likewise.
815 (ppro_insn_both): Likewise.
817 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
818 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
820 (*vec_extractv2di_1_avx): Likewise.
821 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
822 type. Remove atom_unit.
823 (*vec_extractv2di_1_sse2): Likewise.
825 2010-06-21 DJ Delorie <dj@redhat.com>
827 * diagnostic.h (diagnostic_classification_change_t): New.
828 (diagnostic_context): Add history and push/pop list.
829 (diagnostic_push_diagnostics): Declare.
830 (diagnostic_pop_diagnostics): Declare.
831 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
832 from pragmas in a history chain instead of the global table.
833 (diagnostic_push_diagnostics): New.
834 (diagnostic_pop_diagnostics): New.
835 (diagnostic_report_diagnostic): Scan history chain to find state
836 of diagnostics as of the diagnostic location.
837 * opts.c (set_option): Pass UNKNOWN_LOCATION to
838 diagnostic_classify_diagnostic.
839 (enable_warning_as_error): Likewise.
840 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
841 use in the history chain.
842 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
843 allow these pragmas anywhere.
844 * doc/extend.texi: Document pragma GCC diagnostic changes.
846 2010-06-21 Jakub Jelinek <jakub@redhat.com>
848 * dwarf2out.c (add_linkage_name): New function. Don't add
849 anything to DW_TAG_member DIEs.
850 (add_name_and_src_coords_attributes): Use it.
851 (gen_variable_die): Call it for C++ static data members if
852 specification is DW_TAG_member.
854 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
855 C++ char16_t and char32_t.
857 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
858 * genattrtab.c: Include vecprim.h.
859 (cached_attrs, cached_attr_count, attrs_seen_once,
860 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
861 attrs_cached_after): New variables.
862 (find_attrs_to_cache): New function.
863 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
864 (write_test_expr): Add attrs_cached argument, return it too,
865 attempt to cache non-const attributes used more than once in
866 a single case handling.
867 (write_attr_get): Use find_attrs_to_cache, for caching candidates
868 emit cached_* variables. Adjust write_attr_set callers.
869 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
870 to find attributes that should be cached in this block. Adjust
871 write_test_expr callers.
872 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
874 (make_automaton_attrs): Adjust write_test_expr caller.
876 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
877 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
878 (make_automaton_attrs): If find_tune_attr returns non-NULL,
879 write separate internal_dfa_insn_code_* and insn_default_latency_*
880 functions for each attribute's value and emit init_sched_attrs
881 function and function pointers.
882 * genattr.c (const_attrs, reservations): New variables.
883 (gen_attr): Add const attributes to const_attrs vector.
884 (check_tune_attr, find_tune_attr): New functions.
885 (main): Add reservations to reservations vector. If find_tune_attr
886 returns true, add prototype for init_sched_attrs and make
887 internal_dfa_insn_code and insn_default_latency function pointers,
888 otherwise define init_sched_attrs as dummy macro.
889 * cfgexpand.c: Include insn-attr.h.
890 (gimple_expand_cfg): Call init_sched_attrs.
892 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
895 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
896 va_arg from a set of register save slots into a temporary,
897 if the container is bigger than type size, do the copying
898 using smaller mode or using memcpy.
901 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
903 (sel_print_to_dot): Remove macro.
904 (sel_print): Likewise. New prototype.
905 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
906 (sel_print): New function.
908 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
910 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
911 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
913 2010-06-21 Nick Clifton <nickc@redhat.com>
915 * config/rx/rx.h (PTRDIFF_TYPE): Define.
916 (SMALL_REGISTER_CLASS): Define (to zero).
917 (PRINT_OPERAND): Delete.
918 (PRINT_OPERAND_ADDRESS): Delete.
919 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
920 (rx_print_operand_address): Delete prototype.
921 * config/rx/rx.c (rx_print_operand): Make static.
922 Allow %H and %L to handle CONST_DOUBLEs.
923 (rx_print_operand_address): Make static.
924 (rx_gen_move_template): Rename local variable 'template' to
926 (rx_function_arg): Do not pass unknown sized objects in registers.
927 (TARGET_PRINT_OPERAND): Define.
928 (TARGET_PRINT_OPERAND_ADDRESS): Define.
930 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
932 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
934 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
936 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
937 stack-alignment for simple leaf-functions.
939 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
941 * doc/install.texi: Document bootstrap-lto.
943 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
946 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
947 (input_function): Drop them here, if VTA is disabled.
949 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
952 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
954 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
955 ix86_swapped_fp_comparsion_operator instead of
956 ix86_fp_comparison_operator.
958 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
959 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
960 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
961 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
962 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
963 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
965 2010-06-20 Joseph Myers <joseph@codesourcery.com>
968 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
969 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
970 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
971 (decode_cmdline_option): Update for this return value. Set
972 orig_option_with_args_text field. Set arg field for unknown
973 options. Make static.
974 (decode_cmdline_options_to_array): New.
975 (prune_options): Update handling of find_opt return value.
976 * opts.c (read_cmdline_option): Take decoded option. Return void.
977 (read_cmdline_options): Take decoded options.
978 (decode_options): Add parameters for decoded options. Use
979 decode_cmdline_options_to_array. Use decoded options for -O
980 scan. Use integral_argument for -O parameters. Update call to
981 read_cmdline_options.
982 (enable_warning_as_error): Update handling of find_opt return value.
983 * opts.h: Update comment on unknown options.
984 (struct cl_decoded_option): Update comments on opt_index and arg.
985 Add orig_option_with_args_text.
986 (decode_cmdline_option): Remove.
987 (decode_cmdline_options_to_array): Declare.
988 (decode_options): Update prototype.
989 * toplev.c (save_argv): Remove.
990 (save_decoded_options, save_decoded_options_count): New.
991 (read_integral_parameter): Remove.
992 (print_switch_values): Use decoded options.
993 (toplev_main): Don't set save_argv. Update call to decode_options.
994 * toplev.h (read_integral_parameter): Remove.
995 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
997 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
1000 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
1002 * constraints.md (Pw, Px): New constraints.
1003 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
1005 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
1007 * config/i386/sse.md (fma4modesuffixf4): Removed.
1008 (ssemodesuffixf2s): Likewise.
1009 (ssemodesuffixf4): Likewise.
1010 (ssemodesuffixf2c): Likewise.
1011 (ssescalarmodesuffix2s): Likewise.
1012 (avxmodesuffixf2c): Likewise.
1013 (ssemodesuffix): New.
1014 (ssescalarmodesuffix): Likewise.
1015 Update patterns with ssemodesuffix and ssescalarmodesuffix.
1017 2010-06-19 Philip Herron <herron.philip@googlemail.com>
1019 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
1021 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
1023 * stor-layout.c (debug_rli): Remove unused local variables.
1025 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1027 PR rtl-optimization/40900
1028 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
1029 original expression for later reuse.
1030 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
1031 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
1033 2010-06-18 Anatoly Sokolov <aesok@post.ru>
1035 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
1036 double_int_fits_in_uhwi_p): Implement as static inline.
1037 (double_int_xor): New inline function.
1038 (double_int_lrotate, double_int_rrotate, double_int_max,
1039 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1040 double_int_smin): Declare.
1041 (lrotate_double, rrotate_double): Remove declaration.
1042 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
1043 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
1044 (double_int_lrotate, double_int_rrotate, double_int_max,
1045 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1046 double_int_smin): New function.
1047 * fold-const.c (int_const_binop): Clean up, use double_int_*
1049 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
1050 double_int_* and immed_double_int_const functions.
1052 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1054 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
1055 * function.c (types_used_by_cur_var_decl): Likewise.
1056 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
1058 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1060 * tree.h (record_layout_info): Change type of pending_statics field
1062 * stor-layout.c (start_record_layout): Store NULL into
1064 (debug_rli): Call debug_vec_tree instead of debug_tree.
1065 (place_field): Likewise.
1066 (finish_record_layout): Likewise.
1068 2010-06-18 Alan Modra <amodra@gmail.com>
1070 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
1072 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1075 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
1076 for SET source operand from SET destination operand.
1078 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
1080 PR rtl-optimization/39871
1081 * reload1.c (init_eliminable_invariants): For flag_pic, disable
1082 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
1083 (function_invariant_p): Rule out a plus of frame or arg pointer with
1085 * ira.c (find_reg_equiv_invariant_const): Likewise.
1087 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
1089 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
1090 print_operand_address and puts to output the operand for CONST.
1092 2010-06-17 Jakub Jelinek <jakub@redhat.com>
1095 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
1098 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1100 * v850-protos.h (print_operand): Delete.
1101 (print_operand_address): Delete.
1102 * v850.h (PRINT_OPERAND): Delete.
1103 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1104 (PRINT_OPERAND_ADDRESS): Delete.
1105 * v850.c (print_operand_address): Rename to...
1106 (v850_print_operand_address): ...this. Make static. Call
1108 (print_operand): Rename to...
1109 (v850_print_operand): ...this. Make static. Call
1110 v850_print_operand_address.
1111 (v850_print_operand_punct_valid_p): New function.
1112 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1113 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1115 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1117 * config/sh/sh-protos.h (print_operand): Delete.
1118 (print_operand_address): Delete.
1119 * config/sh/sh.h (PRINT_OPERAND): Delete.
1120 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1121 (PRINT_OPERAND_ADDRESS): Delete.
1122 * config/sh/sh.c (sh_print_operand_address): Make static.
1123 (sh_print_operand): Make static. Call sh_print_operand_address
1124 and sh_print_operand.
1125 (sh_print_operand_punct_valid_p): New function.
1126 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1127 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1129 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1131 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
1132 (mcore_print_operand_address): Delete.
1133 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
1134 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1135 (PRINT_OPERAND_ADDRESS): Delete.
1136 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
1137 (mcore_print_operand): Make static.
1138 (mcore_print_operand_punct_valid_p): New function.
1139 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
1140 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1142 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1144 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
1145 (print_operand_address): Delete.
1146 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
1147 (PRINT_OPERAND_ADDRESS): Delete.
1148 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
1150 (m68hc11_print_operand): Make static.
1151 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1153 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1155 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1156 (m32r_print_operand_address): Delete.
1157 * config/m32r/m32r.h (m32r_punct_chars): Delete.
1158 (PRINT_OPERAND): Delete.
1159 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1160 (PRINT_OPERAND_ADDRESS): Delete.
1161 * config/m32r/m32r.c (m32r_punct_chars): Make static.
1162 (m32r_print_operand_address): Make static.
1163 (m32r_print_operand): Make static.
1164 (m32r_print_operand_punct_valid_p): New function.
1165 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1166 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1168 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1170 * config/iq2000/iq2000-protos.h (print_operand): Delete.
1171 (print_operand_address): Delete.
1172 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1173 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1174 (PRINT_OPERAND_ADDRESS): Delete.
1175 (iq2000_print_operand_punct): Delete.
1176 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1177 (iq2000_print_operand_address): Make static.
1178 (iq2000_print_operand): Make static.
1179 (iq2000_print_operand_punct_valid_p): New function.
1180 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1181 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1183 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1185 * config/frv/frv-protos.h (frv_print_operand): Delete.
1186 (frv_print_operand_address): Delete.
1187 * config/frv/frv.h (PRINT_OPERAND): Delete.
1188 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1189 (PRINT_OPERAND_ADDRESS): Delete.
1190 * config/frv/frv.c (frv_print_operand_address): Make static.
1191 (frv_print_operand): Make static.
1192 (frv_print_operand_punct_valid_p): New function.
1193 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1194 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1196 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1198 * tree.h (vec_member): Declare.
1199 * tree.c (vec_member): Define.
1201 2010-06-17 Richard Guenther <rguenther@suse.de>
1203 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1204 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1206 2010-06-17 Richard Guenther <rguenther@suse.de>
1208 * tree-inline.c (declare_return_variable): Remove bogus code.
1210 2010-06-17 Richard Guenther <rguenther@suse.de>
1212 * gimplify.c (gimplify_bind_expr): Always promote complex
1213 and vector variables to registers if possible.
1215 2010-06-17 Richard Guenther <rguenther@suse.de>
1217 * expr.c (get_inner_reference): Use double_int for bit_offset
1220 2010-06-16 DJ Delorie <dj@redhat.com>
1222 * common.opt (-fstrict-volatile-bitfields): new.
1223 * doc/invoke.texi: Document it.
1224 * fold-const.c (optimize_bit_field_compare): For volatile
1225 bitfields, use the field's type to determine the mode, not the
1227 * expr.c (expand_assignment): Likewise.
1228 (get_inner_reference): Likewise.
1229 (expand_expr_real_1): Likewise.
1230 * expmed.c (store_fixed_bit_field): Likewise.
1231 (extract_bit_field_1): Likewise.
1232 (extract_fixed_bit_field): Likewise.
1234 2010-06-16 Richard Guenther <rguenther@suse.de>
1236 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1238 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1240 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1241 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1242 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1243 * debug.c: Likewise.
1244 * sdbout.c: Likewise.
1245 * vmsdbgout.c: Likewise.
1246 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1247 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1248 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1249 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1250 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1251 * dwarf2out.c (dw_fde_struct): New fields
1252 dw_fde_vms_{end,begin}_prologue.
1253 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1254 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1255 (dwarf2out_vms_end_prologue): New function.
1256 (dwarf2out_vms_begin_epilogue): New function.
1257 (dw_val_struct): New value dw_val_class_vms_delta.
1258 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1259 begin_epilogue for VMS.
1260 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1261 new static functions.
1262 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1263 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1265 (print_die): New case dw_val_class_vms_delta.
1266 (attr_checksum): Likewise.
1267 (same_dw_val_p: Likewise.
1268 (size_of_die): Likewise.
1269 (value_format): Likewise.
1270 (output_die): Likewise.
1271 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1272 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1273 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1274 dwarf2out_cfi_begin_epilogue
1275 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1277 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1279 * config/cris/cris-protos.h (cris_print_operand): Delete.
1280 (cris_print_operand_address): Delete.
1281 * config/cris/cris.h (PRINT_OPERAND): Delete.
1282 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1283 (PRINT_OPERAND_ADDRESS): Delete.
1284 * config/cris/cris.c (cris_print_operand_address): Make static.
1285 (cris_print_operand): Make static.
1286 (cris_print_operand_punct_valid_p): New function.
1287 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1288 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1290 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1292 * config/arm/arm-protos.h (arm_print_operand): Delete.
1293 (arm_print_operand_address): Delete.
1294 * config/arm/arm.h (PRINT_OPERAND): Delete.
1295 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1296 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1297 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1298 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1299 (arm_print_operand): Make static.
1300 (arm_print_operand_punct_valid_p): New function.
1301 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1302 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1304 2010-06-16 Nick Clifton <nickc@redhat.com>
1306 * config/rx/constraints.md (NEGint4): New constraint.
1307 * config/rx/rx.md (attr cc): Add set_zsc.
1308 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1311 (call_internal): Clobber the cc0 register.
1312 (call_value_internal): Likewise.
1313 (cstoresi4): Likewise.
1314 (movsieq): Likewise.
1315 (movsine): Likewise.
1316 (addsi3): Add alternative to handle small negative constants.
1318 (addsi3): Do not set the O bit in the cc0 register.
1322 (andsi3): Reorder alternatives to prefer shorter forms.
1325 (negsi2): Note that the cc0 flags are set.
1326 (rotlsi3): Note that only the Z and S bits are set in cc0.
1327 (lshrsi3): Likewise.
1328 (ashlsi3): Likewise.
1329 (subsf3): Use %Q for the MEM operand.
1330 (fix_truncsfsi2): Likewise.
1331 (floatsisf2): Likewise.
1332 (bitset): Remove early clobber from destination.
1333 (bitset_in_memory): Likewise.
1334 (lrintsf2): Clobber the cc0 register.
1335 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1336 (rx_print_operand): Handle %N.
1338 2010-06-16 Jan Hubicka <jh@suse.cz>
1340 * df-core.c (df_compact_blocks): Free problem_temps vector.
1342 2010-06-16 Martin Jambor <mjambor@suse.cz>
1344 PR tree-optimization/43905
1345 * tree-sra.c: Include tree-inline.h.
1346 (create_abstract_origin): Removed.
1347 (modify_function): Version the call graph node instead of creating
1348 abstract origins and dealing with same_body aliases.
1349 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1350 function is versionable.
1351 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1353 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1355 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1356 (CHOOSE_DYNAMIC_LINKER): Update.
1358 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1360 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1361 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1362 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1363 *prefetch_3dnow_rex.
1365 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1367 * target.h (struct asm_out):Add declare_constant_name field.
1368 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1369 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1370 * output.h (default_asm_declare_constant_name): Declare.
1371 (assemble_label): Update prototype.
1372 * varasm.c (assemble_constant_contents): Use
1373 targetm.asm_out.declare_constant_name target hook.
1374 (assemble_label): Add 'file' argument.
1375 (default_asm_declare_constant_name): New function.
1376 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1377 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1378 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1380 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1381 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1382 (machopic_output_indirection): Update assemble_label argument list.
1383 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1384 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1386 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1389 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1390 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1392 2010-06-15 Richard Guenther <rguenther@suse.de>
1394 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1396 2010-06-15 Paul Brook <paul@codesourcery.com>
1398 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1401 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1403 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1404 don't get a vector type for output.
1406 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1409 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1410 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1411 (LANG_HOOKS_DECLS): Add it.
1412 * gimplify.c (omp_notice_variable): Call
1413 lang_hooks.decls.omp_report_decl.
1415 2010-06-15 Martin Jambor <mjambor@suse.cz>
1418 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1419 on the newly dead SSA name.
1421 2010-06-15 Alan Modra <amodra@gmail.com>
1423 * doc/invoke.texi: Add mcmodel to powerpc options.
1424 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1425 * configure: Regenerate.
1426 * config.in: Regenerate.
1427 * config/rs6000/linux64.opt (mcmodel): New.
1428 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1429 (TARGET_CMODEL, SET_CMODEL): Define.
1430 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1431 select CMODEL_MEDIUM default.
1432 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1433 (TARGET_CMODEL): Define default.
1434 * config/rs6000/rs6000.c (cmodel): New variable.
1435 (rs6000_explicit_options): Add cmodel field.
1436 (rs6000_handle_option): Handle -mcmodel.
1437 (create_TOC_reference): Add largetoc_reg param. Generate high,
1438 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1439 (rs6000_delegitimize_address): Recognise new toc reference rtl
1440 and minimal-toc rtl.
1441 (rs6000_legitimize_reload_address): Handle new toc references.
1442 (print_operand_address): Handle legitimate_constant_pool_address_p
1443 match before lo_sum.
1444 (rs6000_eliminate_indexed_memrefs): Tidy.
1445 (rs6000_emit_move): Tweak threshold for inlining constants.
1446 Keep rs6000_emit_allocate_stack large stack frame offsets
1447 loaded into r0 inline.
1448 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1449 (tocrel_base, tocrel_offset): New variables.
1450 (toc_relative_expr_p): Set them here.
1451 (print_operand_address): Skip over any offset on constant pool address.
1452 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1453 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1454 (offsettable_ok_by_alignment): New function.
1455 (rs6000_emit_move): Address suitably aligned local symbol_refs
1456 relative to the toc pointer for -mcmodel=medium.
1457 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1458 strict param. Allow lo_sum version of addressing. Verify reg
1459 used for -mminimal-toc and -mcmodel != small. Update all callers.
1460 * config/rs6000/constraints.md: Update for above change.
1461 * config/rs6000/predicates.md: Likewise.
1462 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1464 (tls_gd): Split for -mcmodel=medium/large.
1465 (tls_gd_high, tls_gd_low): New.
1466 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1467 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1468 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1469 (largetoc_high, largetoc_low): New.
1470 (cmptf_internal2): Add clobber.
1471 * config/rs6000/rs6000-protos.h: Update.
1473 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1475 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1476 true if no prefetch is going to be generated for a given group.
1477 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1478 estimate the prefetch_count.
1479 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1480 prefetch count by considering the unroll_factor and prefetch_mod
1481 for is_loop_prefetching_profitable.
1483 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1485 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1486 anything if the argument is not a MEM.
1488 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1493 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1495 (canonicalize_loop_ivs): Likewise.
1497 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1500 * haifa-sched.c (setup_insn_reg_pressure_info,
1501 update_register_pressure): Reject debug insns.
1502 (ready_sort): Don't setup reg pressure for debug insns.
1503 (schedule_insn): Don't update reg pressure for debug insns.
1505 2010-06-14 Richard Guenther <rguenther@suse.de>
1507 * lto-streamer.c (cached_bp): Remove.
1508 (bitpack_delete): Likewise.
1509 (bitpack_create): Likewise.
1510 (bp_get_next_word): Likewise.
1511 (bp_pack_value, bp_unpack_value): Move ...
1512 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1514 (struct bitpack_d): Likewise.
1515 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1516 New inline functions.
1517 * lto-streamer-out.c (lto_output_bitpack): Remove.
1518 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1519 (pack_value_fields): Adjust.
1520 (lto_write_tree): Likewise.
1521 (output_gimple_stmt): Likewise.
1522 (output_function): Likewise.
1523 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1524 (input_function): Likewise.
1525 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1526 (lto_input_bitpack): Remove.
1527 (lto_materialize_tree): Adjust.
1528 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1529 * lto-cgraph.c (lto_output_edge): Adjust.
1530 (lto_output_node): Likewise.
1531 (lto_output_varpool_node): Likewise.
1532 (lto_output_ref): Likewise.
1533 (input_node): Likewise.
1534 (input_varpool_node): Likewise.
1535 (input_ref): Likewise.
1536 (input_edge): Likewise.
1537 (output_node_opt_summary): Likewise.
1538 (input_node_opt_summary): Likewise.
1539 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1540 (pure_const_read_summary): Likewise.
1541 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1542 (ipa_read_indirect_edge_info): Likewise.
1543 (ipa_write_node_info): Likewise.
1544 (ipa_read_node_info): Likewise.
1546 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1549 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1550 (vec_extract_lo_v16hi): Likewise.
1551 (vec_extract_lo_v32qi): Likewise.
1553 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1556 * tree.h (build_call_expr): Don't define as vararg macro, instead
1558 * builtins.c (build_call_nofold): Remove.
1559 (expand_builtin_int_roundingfn, expand_builtin_pow,
1560 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1561 expand_builtin_memset_args, expand_builtin_strcmp,
1562 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1563 build_call_nofold_loc instead of build_call_nofold.
1564 (build_call_expr): New function.
1566 PR tree-optimization/44508
1567 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1568 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1569 don't eliminate trivially dead stmts.
1570 * tree-vrp.c (vrp_finalize): Pass false as last argument
1571 to substitute_and_fold.
1572 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1573 to substitute_and_fold.
1574 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1577 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1578 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1579 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1580 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1581 ggc_strdup instead of xstrdup.
1583 2010-06-14 Ira Rosen <irar@il.ibm.com>
1585 PR tree-optimization/44507
1586 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1587 to build initial vector for BIT_AND_EXPR.
1588 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1590 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1592 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1593 adjust z10prop set_attr.
1595 2010-06-13 Jan Hubicka <jh@suse.cz>
1597 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1598 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1599 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1600 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1601 datastructure checks into checking asserts.
1602 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1603 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1604 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1605 df_ref_create_structure): Likewise.
1606 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1607 pool_free): Use gcc_checking_assert.
1608 * alias.c (get_alias_set): Likewise.
1609 * var-tracking.c (variable_htab_free, shared_hash_copy,
1610 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1611 * lto-streamer.c (bp_unpack_value): Likewise.
1613 2010-06-13 Richard Guenther <rguenther@suse.de>
1615 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1616 Do not stream but initialize TYPE_CANONICAL to NULL.
1617 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1618 * gimple.c (gimple_types_compatible_p): Disregard
1619 TYPE_STRUCTURAL_EQUALITY_P.
1620 (gimple_register_type): Use TYPE_CANONICAL as cache.
1621 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1622 before registering common types.
1623 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1624 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1625 * tree.h (TYPE_CANONICAL): Clarify documentation.
1627 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1629 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1630 LIBCALL_VALUE): Remove macros.
1631 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1632 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1633 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1634 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1635 (ia64_function_value): Make static. Handle receiving the function
1636 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1638 2010-06-12 Jan Hubicka <jh@suse.cz>
1640 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1643 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1645 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1647 2010-06-12 Jan Hubicka <jh@suse.cz>
1649 * df-core.c (df_clear_bb_info): New function.
1650 (df_set_blocks): bb_info is always allocated.
1651 (df_get_bb_info): Use block_info_elt_size.
1652 (df_set_bb_info): Likewise.
1653 (df_compact_blocks): Update for new block_info.
1654 (grow_bb_info): New function.
1655 * df-problems.c (df_grow_bb_info): Move to df-core.c
1656 (df_rd_set_bb_info): Remove.
1657 (df_rd_free_bb_info): Do not free block pool.
1658 (df_rd_alloc): Do not create pool, use check for
1659 obstack presence instead of NULL pointer for new blocks.
1660 (df_rd_free): DO not free alloc pool; clear block_info.
1661 (problem_RD): Add size of block info structure.
1662 (df_lr_set_bb_info): Remove.
1663 (df_lr_free_bb_info): Do not free block pool.
1664 (df_lr_alloc): Do not create pool, use check for
1665 obstack presence instead of NULL pointer for new blocks.
1666 (df_lr_free): DO not free alloc pool; clear block_info.
1667 (problem_LR): Add size of block info structure.
1668 (df_live_set_bb_info): Remove.
1669 (df_live_free_bb_info): Do not free block pool.
1670 (df_live_alloc): Do not create pool, use check for
1671 obstack presence instead of NULL pointer for new blocks.
1672 (df_live_free): DO not free alloc pool; clear block_info.
1673 (problem_LIVE): Add size of block info structure.
1674 (problem_CHAIN): Add size of block info structure.
1675 (df_byte_lr_set_bb_info): Remove.
1676 (df_byte_lr_free_bb_info): Do not free block pool.
1677 (df_byte_lr_alloc): Do not create pool, use check for
1678 obstack presence instead of NULL pointer for new blocks.
1679 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1680 (problem_BYTE_LR): Add size of block info structure.
1681 (problem_NOTE): Add size of block info structure.
1682 (df_byte_MD_set_bb_info): Remove.
1683 (df_byte_MD_free_bb_info): Do not free block pool.
1684 (df_byte_MD_alloc): Do not create pool, use check for
1685 obstack presence instead of NULL pointer for new blocks.
1686 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1687 (problem_BD): Add size of block info structure.
1688 * df-scan.c (df_scan_free_internal): Free block pool.
1689 (df_scan_set_bb_info): Remove.
1690 (df_scan_free_bb_info): Check for artificial_defs instead
1691 of bb_info being non-NULL.
1692 (df_scan_alloc): DO not create df_scan_block pool.
1693 (problem_SCAN): Set size of block info.
1694 (df_bb_refs_record): Do not allocate bb_info.
1695 * df.h (df_problem): Add block_info_elt_size.
1696 (struct dataflow): Change block_info to void *.
1697 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1698 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1701 2010-06-12 Jan Hubicka <jh@suse.cz>
1703 PR tree-optimize/44485
1704 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1705 containing use of return value of noreturn function.
1707 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1709 * targhooks.c (default_function_value): Don't use
1710 FUNCTION_OUTGOING_VALUE.
1711 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1712 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1714 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1716 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1717 Add crtfastmath.o to extra_parts.
1718 * config/mips/crtfastmath.c: New.
1719 * config/mips/linux.h (ENDFILE_SPEC): New.
1721 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1723 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1724 old_type in parameter.
1725 (gcc_type_for_value): Update call to gcc_type_for_interval.
1726 (compute_type_for_level_1): Renamed compute_type_for_level.
1727 Update call to gcc_type_for_interval.
1729 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1731 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1732 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1734 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1736 * opts-common.c: Include options.h.
1737 (integral_argument): Move from opts.c.
1738 (decode_cmdline_option): New. Based on read_cmdline_option.
1739 * opts.c (integral_argument): Move to opts-common.c.
1740 (read_cmdline_option): Move most contents to
1741 decode_cmdline_option. Use %qs in diagnostics.
1742 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1743 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1744 decode_cmdline_option): New.
1746 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1749 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1750 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1751 (partiysi2_cmp): Ditto.
1752 (*partiyhi2_cmp): Ditto.
1753 (*parityqi2_cmp): Remove.
1755 2010-06-11 Jan Hubicka <jh@suse.cz>
1757 * bitmap.h (bmp_iter_next_bit): New.
1758 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1760 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1761 Eric Botcazou <ebotcazou@adacore.com>
1763 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1766 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1768 * config/i386/i386.md (unspec): New define_c_enum.
1771 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1773 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1774 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1775 (lazy_hex_fp_value): New function.
1776 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1777 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1779 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1782 * tree-if-conv.c (bb_predicate_s): New struct.
1783 (bb_predicate_p): New.
1784 (bb_has_predicate): New.
1785 (bb_predicate): New.
1786 (set_bb_predicate): New.
1787 (bb_predicate_gimplified_stmts): New.
1788 (set_bb_predicate_gimplified_stmts): New.
1789 (add_bb_predicate_gimplified_stmts): New.
1790 (init_bb_predicate): New.
1791 (free_bb_predicate): New.
1792 (is_predicated): Use bb_predicate.
1793 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1794 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1795 before processing their successors.
1796 (clean_predicate_lists): Removed.
1797 (find_phi_replacement_condition): Use bb_predicate.
1798 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1800 (insert_gimplified_predicates): New.
1801 (combine_blocks): Call insert_gimplified_predicates.
1802 (tree_if_conversion): Call free_bb_predicate instead of
1803 clean_predicate_lists.
1805 2010-10-11 Paul Brook <paul@codesourcery.com>
1807 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1808 * config/arm/arm.c (all_architectures): Change v7e-m default to
1810 * config/arm/arm-cores.def: Add cortex-m4.
1811 * config/arm/arm-tune.md: Regenerate.
1813 2010-06-11 Jan Hubicka <jh@suse.cz>
1815 * ipa-pure-const.c (special_builtlin_state): New function.
1816 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1817 (propagate_pure_const): Use it.
1819 2010-06-11 Jan Hubicka <jh@suse.cz>
1821 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1822 (df_live_alloc): Initialize df_live_scratch when initializing
1824 (df_live_transfer_function): Update uses of df_live_scratch.
1825 (df_live_free): Free problem_data; clear df_live_scratch before
1826 releasing the obstack.
1827 (df_md_free): Free problem data.
1829 2010-06-11 Jan Hubicka <jh@suse.cz>
1831 * doc/invoke.texi (Wsuggest-attribute): Document.
1832 (Wmissing-noreturn): Remove.
1833 * ipa-pure-const.c (warn_function_noreturn): New function.
1834 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1835 warn_missing_noreturn.
1836 * common.opt (Wsuggest-attribute=noreturn): New.
1837 * tree-flow.h (warn_function_noreturn): Declare.
1838 * tree-cfg.c (execute_warn_function_noreturn): Use
1839 warn_function_noreturn.
1840 (gate_warn_function_noreturn): New.
1841 (pass_warn_function_noreturn): Update.
1843 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1845 * c-typeck.c (handle_warn_cast_qual): Add loc
1846 parameter. Improve warning message.
1847 (build_c_cast): Pass location to handle_warn_cast_qual.
1849 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1851 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1852 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1854 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1856 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1858 Fix bootstap on mips
1859 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1862 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1864 * system.h (helper_const_non_const_cast): New inline for
1866 (CONST_CAST2): For gcc version <= 4.0 use
1867 new helper to do const/non-const casting.
1869 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1871 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1872 * Makefile.in (OBJS-common): Include insn-enums.o.
1873 (insn-enums.o): New rule.
1874 (simple_generated_c): Add insn-enums.c.
1875 (build/genenums.o): New rule.
1876 (genprogmd): Add "enums".
1877 * genconstants.c (print_enum_type): Declare a C string array
1879 * genenums.c: New file.
1880 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1881 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1882 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1884 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1886 * doc/md.texi (define_enum_attr): Document.
1887 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1888 * read-md.h (lookup_enum_type): Declare.
1889 * read-md.c (lookup_enum_type): New function.
1890 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1891 * genattrtab.c (attr_desc): Add an enum_name field.
1892 (evaluate_eq_attr): Take the associated attribute as argument.
1893 Get the enum prefix from the enum_name field, if defined.
1894 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1895 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1896 (add_attr_value): New function, split out from...
1897 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1898 (write_test_expr): Pass attr to evaluate_eq_attr.
1899 (write_attr_get): Use the enum_name as the enum tag, if defined.
1900 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1901 (find_attr): Initialize enum_name.
1902 (main): Handle DEFINE_ENUM_ATTR.
1903 * gensupport.c (process_rtx): Likewise.
1904 * config/mips/mips.h (mips_tune_attr): Delete.
1905 * config/mips/mips.md (cpu): Use define_attr_enum.
1907 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1909 * doc/md.texi (define_c_enum, define_enum): Document.
1910 * read-md.h (md_constant): Add a parent_enum field.
1911 (enum_value, enum_type): New structures.
1912 (upcase_string, traverse_enum_types): Declare.
1913 * read-md.c (enum_types): New variable.
1914 (upcase_string, add_constant): New functions.
1915 (handle_constants): Don't create the hash table here.
1917 (traverse_md_constants): Don't check for a null md_constants.
1918 (decimal_string, handle_enum, traverse_enum_types): New functions.
1919 (read_md_files): Initialize md_constants and md_enums.
1920 * genconstants.c (print_md_constant): Ignore info argument.
1921 Only print constants that belong to no enum.
1922 (print_enum_type): New function.
1923 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1924 for each defined enum type.
1925 * config/mips/mips.md (processor): New define_enum.
1926 (unspec): New define_c_enum.
1927 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1928 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1929 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1930 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1931 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1932 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1933 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1934 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1935 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1936 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1937 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1938 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1939 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1940 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1941 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1942 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1943 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1944 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1945 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1946 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1947 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1948 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1949 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1950 (UNSPEC_RDDSP): Move to mips-dsp.md.
1951 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1952 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1953 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1954 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1955 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1956 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1957 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1958 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1959 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1960 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1961 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1962 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1963 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1964 Moved to mips-dspr2.md.
1965 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1966 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1967 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1968 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1969 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1970 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1971 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1972 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1973 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1974 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1975 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1976 UNSPEC_LOONGSON_PSADBH)
1977 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1978 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1979 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1980 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1981 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1982 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1983 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1984 (cpu): Update comment.
1985 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1986 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1987 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1988 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1989 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1990 UNSPEC_LOONGSON_PCMPEQ)
1991 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1992 UNSPEC_LOONGSON_PINSR_0)
1993 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1994 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1995 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1996 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1997 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1998 UNSPEC_LOONGSON_PSADBH)
1999 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2000 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2001 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
2002 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2003 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2004 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2005 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
2006 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
2007 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
2008 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
2009 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
2010 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
2011 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
2012 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
2013 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
2014 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
2015 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
2016 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
2017 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
2018 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
2019 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
2020 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
2021 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
2022 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
2023 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
2024 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
2025 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2026 (UNSPEC_RDDSP): Moved from mips.md.
2027 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
2028 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
2029 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
2030 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
2031 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
2032 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
2033 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
2034 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
2035 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
2036 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
2037 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
2038 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
2039 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
2040 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
2041 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
2042 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
2043 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
2044 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
2045 (UNSPEC_SCC): Moved from mips.md.
2046 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
2047 "processor_type" to "processor".
2048 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
2049 * config/mips/mips.h (processor_type): Delete.
2050 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
2051 "processor_type" to "processor".
2053 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2055 * configure.ac (tm_include_list): Add insn-constants.h.
2056 * configure: Regenerate.
2057 * Makefile.in (GTM_H): Move insn-constants.h here from...
2059 * mkconfig.sh: Remove special handling for insn-constants.h.
2061 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2063 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
2064 (BUILD_MD): ...this new variable.
2065 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
2066 that include the old contents of simple_generated_h and
2068 (simple_generated_h, simple_generated_c): Include them. Add
2070 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
2071 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
2072 Remove these dependencies from the main rule and include
2073 insn-conditions.md in the command line only if it appears
2074 in the dependency list.
2075 (insn-constants.h, s-constants): Delete.
2076 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
2078 (build/genmddeps.o): Likewise.
2079 (genprogrtl): New variable that contains everything from genprogmd
2080 except mddeps and constants.
2081 (genprogmd): Redefine in terms of genprogrtl. Make these programs
2082 depend on $(BUILD_MD)
2083 (genprog): New variable. Make these programs depend on
2085 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
2086 (main): Use read_md_files instead of init_rtx_reader_args.
2087 * genconstants.c: As for genmddeps.c.
2088 * read-md.h (read_skip_construct): Declare.
2089 * read-md.c (read_skip_construct): New function.
2090 (handle_file): Allow a null handle_directive, skipping the
2092 (parse_include): Update the comment accordingly.
2094 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2096 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
2097 * genmddeps.c: Include read-md.h.
2098 (main): Call init_rtx_reader_args instead of init_md_reader_args.
2099 * genattr.c (main): Likewise.
2100 * genattrtab.c (main): Likewise.
2101 * genautomata.c (main): Likewise.
2102 * gencodes.c (main): Likewise.
2103 * genconditions.c (main): Likewise.
2104 * genconfig.c (main): Likewise.
2105 * genconstants.c (main): Likewise.
2106 * genemit.c (main): Likewise.
2107 * genextract.c (main): Likewise.
2108 * genflags.c (main): Likewise.
2109 * genopinit.c (main): Likewise.
2110 * genoutput.c (main): Likewise.
2111 * genpeep.c (main): Likewise.
2112 * genrecog.c (main): Likewise.
2113 * genpreds.c (main): Likewise.
2114 * gensupport.h (in_fname): Move to read-md.h.
2115 (init_md_reader_args_cb): Rename to...
2116 (init_rtx_reader_args_cb): ...this and return a bool.
2117 (init_md_reader_args): Rename to...
2118 (init_rtx_reader_args): ...this and return a bool.
2119 (include_callback): Move to read-md.h.
2120 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
2121 (file_name_list, first_dir_md_include): Move to read-md.c
2122 (first_bracket_include): Delete unused variable.
2123 (last_dir_md_include): Move to read-md.c.
2124 (process_include): Delete, moving code to read-md.c:handle_include.
2125 (process_rtx): Don't handle INCLUDE.
2126 (save_string): Delete.
2127 (rtx_handle_directive): New function.
2128 (init_md_reader_args_cb): Rename to...
2129 (init_rtx_reader_args_cb): ...this and return a boolean success value.
2131 (init_md_reader_args): Rename to...
2132 (init_rtx_reader_args): ...this and return a boolean success value.
2133 * rtl.def (INCLUDE): Delete.
2134 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
2136 * read-rtl.c (read_conditions): Don't gobble ')' here.
2137 (read_mapping): Likewise.
2138 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
2139 Handle top-level non-rtx constructs here rather than in read_rtx_1.
2140 Store the whole queue in *X. Remove call to init_md_reader.
2141 (read_rtx_1): Rename to...
2142 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
2143 Don't handle top-level non-rtx constructs here. Don't handle (nil)
2145 (read_nested_rtx): New function. Handle (nil) here rather than
2147 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
2149 * read-md.h (directive_handler_t): New type.
2150 (in_fname, include_callback): Moved from read-md.h.
2151 (read_constants, init_md_reader): Delete.
2152 (read_md_files): Declare.
2153 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
2154 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2156 (read_constants): Rename to...
2157 (handle_constants): ...this. Don't gobble ')' here.
2158 (handle_include, handle_file, handle_toplevel_file)
2159 (parse_include): New functions, mostly taken from gensupport.c.
2160 (init_md_reader): Subsume into...
2161 (read_md_files): ...this new function.
2163 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2165 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2166 (unread_char): Decrement read_md_lineno after putting back '\n'.
2167 * read-md.c (fatal_with_file_and_line): Push back any characters
2168 that we decide not to add to the context.
2169 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
2170 fatal_expected_char in cases where '/' ends a line (for example).
2171 (read_name): Don't increment read_md_lineno here.
2172 (read_escape): Likewise.
2173 (read_quoted_string): Likewise.
2174 (read_braced_string): Likewise.
2176 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2178 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2179 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2180 * genconstants.c: Include read-md.h.
2181 * read-rtl.c (md_constants): Move to read-md.c.
2182 (md_name): Move to read-md.h.
2183 (initialize_iterators): Use leading_string_hash instead of def_hash
2184 and leading_string_eq_p instead of def_name_eq_p.
2185 (read_name): Move to read-md.c.
2186 (def_hash, def_name_eq_p): Delete.
2187 (read_constants, traverse_md_constants): Move to read-md.c.
2188 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2189 * read-md.h: Include hashtab.h.
2190 (md_name): Moved from read-rtl.c.
2191 (md_constant): Moved from read-md.h.
2192 (leading_string_hash, leading_string_eq_p, read_name)
2193 (read_constants, traverse_md_constants): Declare.
2194 * read-md.c (md_constants): Moved from read-rtl.c.
2195 (leading_string_hash, leading_string_eq_p): New functions.
2196 (read_name, read_constants, traverse_md_constants): Moved from
2199 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2201 * read-rtl.c (md_name): New structure.
2202 (read_name): Take an md_name instead of a buffer pointer.
2203 Use the "string" field instead of strcpy when expanding constants.
2204 (read_constants): Remove the tmp_char argument. Update the calls
2205 to read_name, using two local name buffers instead of the tmp_char
2206 argument. Merge the constant-creation code.
2207 (read_conditions): Remove the tmp_char argument. Update the calls
2208 to read_name, using a local name buffer instead of the tmp_char
2210 (read_mapping): Replace tmp_char variable with a local name buffer.
2211 Update the calls to read_name.
2212 (read_rtx_1): Likewise. Update the calls to read_constants and
2215 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2217 * Makefile.in (build/read-md.o): Depend on errors.h.
2218 * read-md.h (error_with_line): Declare.
2219 * read-md.c: Include errors.h.
2220 (message_with_line_1): New function, extracted from...
2221 (message_with_line): ...here.
2222 (error_with_line): New function.
2223 * genattrtab.c: If a call to message_with_line is followed by
2224 "have_error = 1;", replace both statements with a call to
2226 * genoutput.c: Likewise.
2227 * genpreds.c: Likewise.
2228 * genrecog.c: If a call to message_with_line is followed by
2229 "error_count++;", replace both statements with a call to
2231 (errorcount): Delete.
2232 (main): Don't check it.
2233 * gensupport.c: If a call to message_with_line is followed by
2234 "errors = 1;", replace both statements with a call to error_with_line.
2236 (process_define_cond_exec): Check have_error instead of errors.
2237 (init_md_reader_args_cb): Likewise. Don't set errors.
2239 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2241 * read-md.h (read_md_file): Declare.
2242 (read_char, unread_char): New functions.
2243 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2244 (read_quoted_string, read_string): Remove FILE * argument.
2245 * read-md.c (read_md_file): New variable.
2246 (read_md_filename, read_md_lineno): Update comments and remove
2247 unnecessary initialization.
2248 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2249 (read_escape, read_quoted_string, read_braced_string, read_string):
2250 Remove FILE * argument. Update calls accordingly, using read_char
2251 and unread_char instead of getc and ungetc.
2252 * rtl.h (read_rtx): Remove FILE * argument.
2253 * read-rtl.c (iterator_group): Remove FILE * argument from
2255 (iterator_traverse_data): Remove "infile" field.
2256 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2257 (add_mapping, read_name, read_constants, read_conditions)
2258 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2259 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2260 Remove file arguments from all calls, using read_char and unread_char
2261 instead of getc and ungetc.
2262 * gensupport.c (process_include): Preserve read_md_file around
2263 the include. Set read_md_file to the handle of the included file.
2264 Update call to read_rtx.
2265 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2266 and remove local FILE *. Update calls to read_rtx.
2268 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2270 * read-md.h (read_rtx_lineno): Rename to...
2271 (read_md_lineno): ...this.
2272 (read_rtx_filename): Rename to...
2273 (read_md_filename): ...this.
2274 (copy_rtx_ptr_loc): Rename to...
2275 (copy_md_ptr_loc): ...this.
2276 (print_rtx_ptr_loc): Rename to...
2277 (print_md_ptr_loc): ...this.
2278 * read-md.c: Likewise. Update references after renaming.
2279 (string_obstack): Replace RTL with MD in comment.
2280 (set_rtx_ptr_loc): Rename to...
2281 (set_md_ptr_loc): ...this.
2282 (get_rtx_ptr_loc): Rename to...
2283 (get_md_ptr_loc): ...this.
2284 * genconditions.c: Update references after renaming.
2285 * genemit.c: Likewise.
2286 * genoutput.c: Likewise.
2287 * genpreds.c: Likewise.
2288 * gensupport.c: Likewise.
2289 * read-rtl.c: Likewise.
2291 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2293 * Makefile.in (READ_MD_H): New variable.
2294 (BUILD_RTL): Add build/read-md.o.
2295 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2296 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2297 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2298 (build/genextract.o, build/genflags.o, build/genoutput.o)
2299 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2300 (build/read-md.o): New rule.
2301 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2302 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2303 * coretypes.h: ...here.
2304 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2305 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2306 * genattr.c: Include read-md.h.
2307 * genattrtab.c: Likewise.
2308 * genconditions.c: Likewise.
2309 * genemit.c: Likewise.
2310 * genextract.c: Likewise.
2311 * genflags.c: Likewise.
2312 * genoutput.c: Likewise.
2313 * genpreds.c: Likewise.
2314 * genrecog.c: Likewise.
2315 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2316 (join_c_conditions, print_c_condition, read_rtx_filename)
2317 (read_rtx_lineno): Move to read-md.h.
2318 * read-rtl.c: Include read-md.h.
2319 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2320 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2321 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2322 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2323 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2324 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2325 (read_braced_string, read_string): Move to read-md.c.
2326 (read_rtx): Move some initialization to init_md_reader and call
2327 init_md_reader here.
2328 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2330 * gensupport.c: Include read-md.h.
2331 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2332 * read-md.h, read-md.c: New files.
2334 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2336 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2337 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2338 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2339 * config/moxie/moxie.c (moxie_function_value): Make static.
2340 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2341 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2343 2010-06-10 Martin Jambor <mjambor@suse.cz>
2345 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2346 * dbgcnt.def (tree_sra): New counter.
2347 * tree-sra.c: Include dbgcnt.h.
2348 (gate_intra_sra): Check tree_sra debug counter.
2350 2010-06-10 Martin Jambor <mjambor@suse.cz>
2352 PR tree-optimization/44258
2353 * tree-sra.c (build_access_subtree): Return false iff there is a
2355 (build_access_trees): Likewise.
2356 (analyze_all_variable_accesses): Disqualify candidates if
2357 build_access_trees returns true for them.
2359 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2362 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2363 tail-recurse into canonical node. Fast-forward over
2364 non-canonical VALUEs.
2366 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2369 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2370 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2371 (add lea splitter): Likewise.
2372 (add_zext lea splitter): Likewise.
2374 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2376 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2378 2010-06-10 Jan Hubicka <jh@suse.cz>
2380 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2381 (df_live_alloc): Initialize problem data and live_osbtacks.
2382 (df_live_finalize): Remove obstack, problem data; do not
2384 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2385 data when not allocated.
2386 (df_live_verify_solution_start): Do not allocate problem data.
2387 (df_live_verify_solution_end): Check if out is allocated.
2388 (struct df_md_problem_data): New structure.
2389 (df_md_alloc): Allocate problem data.
2390 (df_md_free): Free problem data; do not clear bitmaps.
2392 2010-06-10 Jan Beulich <jbeulich@novell.com>
2395 * configure.ac: Replace $() with ${} when intending to expand
2396 variables rather than invoking commands.
2397 * configure: Re-generate.
2399 2010-06-10 Jan Hubicka <jh@suse.cz>
2401 PR rtl-optimization/44460
2402 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2403 TYPE_NEEDS_CONSTRUCTING sanity check.
2405 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2407 * doc/include/fdl.texi: Move to GFDL version 1.3.
2409 * doc/cpp.texi: Move to GFDL version 1.3.
2410 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2411 * doc/gccint.texi: Move to GFDL version 1.3.
2412 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2413 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2414 * doc/invoke.texi: Move to GFDL version 1.3.
2416 2010-06-09 Jan Hubicka <jh@suse.cz>
2418 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2420 (propagate) ... here; swap the order.
2422 2010-06-09 Jan Hubicka <jh@suse.cz>
2424 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2425 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2426 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2427 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2429 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2431 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2432 Do not the gather memory reference in the outer loop if the step
2435 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2437 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2438 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2439 8 to 4. Minor change of the related comments.
2441 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2443 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2444 the scev analysis when the variable is not used outside the loop
2445 in a close phi node: call compute_overall_effect_of_inner_loop.
2447 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2449 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2450 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2451 (build_sese_conditions_before): Renamed call to single_pred_cond.
2452 (build_sese_conditions_after): Same.
2454 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2456 * graphite-poly.h: Fix comments and indentation.
2457 * graphite-sese-to-poly.c: Same.
2458 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2459 * tree-chrec.c: Fix comments and indentation.
2460 (tree-ssa-loop-niter.c): Same.
2462 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2464 PR rtl-optimization/42461
2465 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2466 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2468 2010-06-09 Jan Hubicka <jh@suse.cz>
2470 * bitmap.c (bitmap_and): Walk array forward.
2471 (bitmap_and_compl_into): Likewise.
2472 (bitmap_xor): Likewise.
2473 (bitmap_xor_into): Likewise.
2474 (bitmap_equal_p): Likewise.
2475 (bitmap_intersect_p): Likewise.
2476 (bitmap_intersect_compl_p): Likewise.
2477 (bitmap_ior_and_into): Likewise.
2478 (bitmap_elt_copy): Likewise.
2479 (bitmap_and_compl): Likewise.
2480 (bitmap_elt_ior): Likewise.
2482 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2484 * opts-common.c (prune_options): Ensure replacement argv array
2485 is correctly terminated by a NULL entry.
2487 2010-06-09 Jan Hubicka <jh@suse.cz>
2489 * cgraph.h (varpool_first_static_initializer,
2490 varpool_next_static_initializer): Make checking only when
2492 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2493 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2494 gcc_assert to gcc_checking_assert.
2495 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2496 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2497 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2498 op_iter_init_phiuse, op_iter_init_phidef,
2499 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2500 gcc_checking_assert.
2501 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2502 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2503 partition_is_global, live_on_entry, live_on_exit,
2504 live_merge_and_clear): Likewise.
2505 * system.h (gcc_checking_assert): New macro.
2506 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2508 2010-06-09 Jason Merrill <jason@redhat.com>
2510 * Makefile.in (TAGS): Collect tags info from c-family.
2512 2010-06-09 Jan Hubicka <jh@suse.cz>
2514 * gimple.h (gcc_gimple_checking_assert): New macro.
2515 (gimple_set_def_ops, gimple_set_use_ops,
2516 gimple_set_vuse, gimple_set_vdef,
2517 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2518 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2519 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2520 gimple_asm_output_op, gimple_asm_output_op_ptr,
2521 gimple_asm_set_output_op, gimple_asm_clobber_op,
2522 gimple_asm_set_clobber_op, gimple_asm_label_op,
2523 gimple_asm_set_label_op, gimple_try_set_kind,
2524 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2525 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2526 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2527 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2528 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2529 gimple_omp_for_set_initial, gimple_omp_for_final,
2530 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2531 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2532 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2533 conditional with ENABLE_GIMPLE_CHECKING.
2534 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2536 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2538 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2539 (get_computation_cost_at): Use it.
2540 (determine_use_iv_cost_condition): Likewise.
2541 (determine_iv_cost): Likewise.
2543 2010-06-09 Richard Guenther <rguenther@suse.de>
2545 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2548 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2550 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2552 2010-06-09 Martin Jambor <mjambor@suse.cz>
2554 PR tree-optimization/44423
2555 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2556 (analyze_access_subtree): Pass negative allow_replacements to children
2557 if the current type is scalar.
2559 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2562 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2563 * doc/plugins.texi (Plugin license check): Update information
2564 on type of plugin_is_GPL_compatible.
2565 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2566 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2568 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2570 * config/arm/arm.c (thumb2_reorg): New function.
2571 (arm_reorg): Call it.
2572 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2573 arithmetic operations): Delete.
2575 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2578 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2581 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2584 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2586 2010-06-08 Jan Hubicka <jh@suse.cz>
2588 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2589 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2591 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2593 PR tree-optimization/39874
2595 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2597 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2598 same_bool_result_p): New.
2599 (and_var_with_comparison, and_var_with_comparison_1,
2600 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2601 (or_var_with_comparison, or_var_with_comparison_1,
2602 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2603 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2604 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2605 of combine_comparisons.
2606 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2608 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2610 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2611 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2612 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2613 pdp11_function_value_regno_p): New functions.
2614 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2615 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2617 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2619 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2620 Thumb-2 in the MINUS case.
2622 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2624 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2626 * doc/gty.texi (GTY Options): Document typed GC allocation and
2627 variable_size GTY option.
2629 * ggc-internal.h: New.
2631 * ggc.h: Update copyright year.
2632 (digit_string): Move to stringpool.c.
2633 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2634 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2635 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2636 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2637 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2638 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2639 (ggc_force_collect, ggc_get_size, ggc_statistics)
2640 (ggc_print_common_statistics): Move to ggc-internal.h.
2641 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2642 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2643 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2644 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2645 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2646 (ggc_alloc_zone_pass_stat): Remove.
2647 (ggc_internal_alloc_stat, ggc_internal_alloc)
2648 (ggc_internal_cleared_alloc_stat): New.
2649 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2650 (ggc_internal_vec_alloc_stat)
2651 (ggc_internal_cleared_vec_alloc_stat)
2652 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2653 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2654 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2655 (ggc_cleared_alloc_ptr_array_two_args): New.
2656 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2657 (ggc_splay_alloc): Change the type of the first argument to
2659 (ggc_alloc_string): Make macro.
2660 (ggc_alloc_string_stat): New.
2661 (ggc_strdup): Redefine.
2662 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2663 (ggc_alloc_rtvec_sized): New.
2664 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2665 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2666 (ggc_internal_cleared_alloc_zone_stat)
2667 (ggc_internal_zone_alloc_stat)
2668 (ggc_internal_zone_cleared_alloc_stat)
2669 (ggc_internal_zone_vec_alloc_stat)
2670 (ggc_alloc_zone_rtx_def_stat)
2671 (ggc_alloc_zone_tree_node_stat)
2672 (ggc_alloc_zone_cleared_tree_node_stat)
2673 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2675 * ggc-common.c: Include ggc-internal.h.
2676 (ggc_internal_cleared_alloc_stat): Rename from
2677 ggc_alloc_cleared_stat.
2678 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2679 (ggc_calloc): Remove.
2680 (ggc_cleared_alloc_htab_ignore_args): New.
2681 (ggc_cleared_alloc_ptr_array_two_args): New.
2682 (ggc_splay_alloc): Add obj_type parameter.
2683 (init_ggc_heuristics): Formatting fixes.
2685 * ggc-none.c: Update copyright year.
2686 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2687 (ggc_alloc_cleared_stat): Rename to
2688 ggc_internal_cleared_alloc_stat.
2689 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2691 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2692 Remove references to ggc_alloc in comments.
2693 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2694 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2695 (new_ggc_zone, destroy_ggc_zone): Remove.
2696 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2698 * ggc-zone.c: Include ggc-internal.h. Remove references to
2699 ggc_alloc in comments.
2700 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2701 (ggc_internal_alloc_zone_pass_stat): New.
2702 (ggc_internal_cleared_alloc_zone_stat): New.
2703 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2704 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2705 (new_ggc_zone, destroy_ggc_zone): Remove.
2707 * stringpool.c: Update copyright year. Include ggc-internal.h
2708 (digit_vector): Make static.
2709 (digit_string): Moved from ggc.h.
2710 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2711 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2713 * Makefile.in (GGC_INTERNAL_H): New.
2714 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2715 $(GGC_INTERNAL_H) to dependencies.
2717 * gentype.c: Update copyright year.
2718 (walk_type): Accept variable_size GTY option.
2719 (USED_BY_TYPED_GC_P): New macro.
2720 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2721 whitespace at the end of strings.
2722 (get_type_specifier, variable_size_p): New functions.
2723 (alloc_quantity, alloc_zone): New enums.
2724 (write_typed_alloc_def): New function.
2725 (write_typed_struct_alloc_def): Likewise.
2726 (write_typed_typed_typedef_alloc_def): Likewise.
2727 (write_typed_alloc_defns): Likewise.
2728 (output_typename, write_splay_tree_allocator_def): Likewise.
2729 (write_splay_tree_allocators): Likewise.
2730 (main): Call write_typed_alloc_defns and
2731 write_splay_tree_allocators.
2733 * lto-streamer.h (lto_file_decl_data_ptr): New.
2735 * passes.c (order): Define using cgraph_node_ptr.
2737 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2740 * gimple.h (union gimple_statement_d): Likewise.
2742 * rtl.h (struct rtx_def): Likewise.
2743 (struct rtvec_def): Likewise.
2745 * tree.h (union tree_node): Likewise.
2747 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2749 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2751 * tree-scalar-evolution.c (scev_initialize): Likewise.
2753 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2755 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2757 * omp-low.c (lower_omp_critical): Likewise.
2759 * bitmap.h (struct bitmap_head_def): Update comment to not
2760 reference ggc_alloc.
2762 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2764 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2766 * ipa-prop.c (duplicate_ggc_array): Rename to
2767 duplicate_ipa_jump_func_array. Use typed GC allocation.
2768 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2770 * gimple.c (gimple_alloc_stat): Use
2771 ggc_alloc_cleared_gimple_statement_d_stat.
2773 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2775 * tree.c (make_node_stat): Use
2776 ggc_alloc_zone_cleared_tree_node_stat.
2777 (make_tree_vec_stat): Likewise.
2778 (build_vl_exp_stat): Likewise.
2779 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2780 (make_tree_binfo_stat): Likewise.
2781 (tree_cons_stat): Likewise.
2783 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2784 (shallow_copy_rtx_stat): Likewise.
2785 (make_node_stat): Likewise.
2787 * lto-symtab.c: Fix comment.
2789 * tree-cfg.c (create_bb): Update comment to not reference
2791 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2793 * varpool.c (varpool_node): Use typed GC allocation.
2794 (varpool_extra_name_alias): Likewise.
2796 * varasm.c (emutls_decl): Likewise.
2797 (get_unnamed_section): Likewise.
2798 (get_noswitch_section): Likewise.
2799 (get_section): Likewise.
2800 (get_block_for_section): Likewise.
2801 (build_constant_desc): Likewise.
2802 (create_constant_pool): Likewise.
2803 (force_const_mem): Likewise.
2805 * tree.c (build_vl_exp_stat): Likewise.
2806 (build_real): Likewise.
2807 (build_string): Likewise.
2808 (decl_debug_expr_insert): Likewise.
2809 (decl_value_expr_insert): Likewise.
2810 (type_hash_add): Likewise.
2811 (build_omp_clause): Likewise.
2813 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2815 * tree-ssa.c (init_tree_ssa): Likewise.
2817 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2819 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2821 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2823 * tree-ssa-alias.c (get_ptr_info): Likewise.
2825 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2827 * tree-phinodes.c (allocate_phi_node): Likewise.
2829 * tree-iterator.c (tsi_link_before): Likewise.
2830 (tsi_link_after): Likewise.
2832 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2834 * tree-dfa.c (create_var_ann): Likewise.
2836 * tree-cfg.c (create_bb): Likewise.
2838 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2839 (general_init): Likewise.
2841 * stringpool.c (stringpool_ggc_alloc): Likewise.
2842 (gt_pch_save_stringpool): Likewise.
2844 * sese.c (if_region_set_false_region): Likewise.
2846 * passes.c (do_per_function_toporder): Likewise.
2848 * optabs.c (set_optab_libfunc): Likewise.
2849 (set_conv_libfunc): Likewise.
2851 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2853 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2854 (input_eh_region): Likewise.
2855 (input_eh_lp): Likewise.
2856 (make_new_block): Likewise.
2857 (unpack_ts_real_cst_value_fields): Likewise.
2859 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2861 * lto-cgraph.c (input_node_opt_summary): Likewise.
2863 * loop-init.c (loop_optimizer_init): Likewise.
2865 * lambda.h (lambda_vector_new): Likewise.
2867 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2869 * ira.c (update_equiv_regs): Likewise.
2871 * ipa.c (cgraph_node_set_new): Likewise.
2872 (cgraph_node_set_add): Likewise.
2873 (varpool_node_set_new): Likewise.
2874 (varpool_node_set_add): Likewise.
2876 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2877 (duplicate_ipa_jump_func_array): Likewise.
2878 (ipa_read_node_info): Likewise.
2880 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2882 * integrate.c (get_hard_reg_initial_val): Likewise.
2884 * gimple.c (gimple_alloc_stat): Likewise.
2885 (gimple_build_omp_for): Likewise.
2886 (gimple_seq_alloc): Likewise.
2887 (gimple_copy): Likewise.
2889 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2890 (gsi_insert_after_without_update): Likewise.
2892 * function.c (add_frame_space): Likewise.
2893 (insert_temp_slot_address): Likewise.
2894 (assign_stack_temp_for_type): Likewise.
2895 (allocate_struct_function): Likewise.
2896 (types_used_by_var_decl_insert): Likewise.
2898 * except.c (init_eh_for_function): Likewise.
2899 (gen_eh_region): Likewise.
2900 (gen_eh_region_catch): Likewise.
2901 (gen_eh_landing_pad): Likewise.
2902 (add_call_site): Likewise.
2904 * emit-rtl.c (get_mem_attrs): Likewise.
2905 (get_reg_attrs): Likewise.
2906 (start_sequence): Likewise.
2907 (init_emit): Likewise.
2909 * dwarf2out.c (new_cfi): Likewise.
2910 (queue_reg_save): Likewise.
2911 (dwarf2out_frame_init): Likewise.
2912 (new_loc_descr): Likewise.
2913 (find_AT_string): Likewise.
2914 (new_die): Likewise.
2915 (add_var_loc_to_decl): Likewise.
2916 (clone_die): Likewise.
2917 (clone_as_declaration): Likewise.
2918 (break_out_comdat_types): Likewise.
2919 (new_loc_list): Likewise.
2920 (loc_descriptor): Likewise.
2921 (add_loc_descr_to_each): Likewise.
2922 (add_const_value_attribute): Likewise.
2923 (tree_add_const_value_attribute): Likewise.
2924 (add_comp_dir_attribute): Likewise.
2925 (add_name_and_src_coords_attributes): Likewise.
2926 (lookup_filename): Likewise.
2927 (store_vcall_insn): Likewise.
2928 (dwarf2out_init): Likewise.
2930 * dbxout.c (dbxout_init): Likewise.
2932 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2934 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2936 * config/score/score7.c (score7_output_external): Likewise.
2938 * config/score/score3.c (score3_output_external): Likewise.
2940 * config/s390/s390.c (s390_init_machine_status): Likewise.
2942 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2943 (rs6000_init_machine_status): Likewise.
2944 (output_toc): Likewise.
2946 * config/pa/pa.c (pa_init_machine_status): Likewise.
2947 (get_deferred_plabel): Likewise.
2949 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2951 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2953 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2955 * config/mep/mep.c (mep_init_machine_status): Likewise.
2956 (mep_note_pragma_flag): Likewise.
2958 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2960 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2962 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2964 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2965 (i386_pe_maybe_record_exported_symbol): Likewise.
2967 * config/i386/i386.c (get_dllimport_decl): Likewise.
2968 (ix86_init_machine_status): Likewise.
2969 (assign_386_stack_local): Likewise.
2971 * config/frv/frv.c (frv_init_machine_status): Likewise.
2973 * config/darwin.c (machopic_indirection_name): Likewise.
2975 * config/cris/cris.c (cris_init_machine_status): Likewise.
2977 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2979 * config/avr/avr.c (avr_init_machine_status): Likewise.
2981 * config/arm/arm.c (arm_init_machine_status): Likewise.
2983 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2984 (alpha_need_linkage): Likewise.
2985 (alpha_use_linkage): Likewise.
2987 * cgraph.c (cgraph_allocate_node): Likewise.
2988 (cgraph_create_edge_1): Likewise.
2989 (cgraph_create_indirect_edge): Likewise.
2990 (cgraph_add_asm_node): Likewise.
2992 * cfgrtl.c (init_rtl_bb_info): Likewise.
2994 * cfgloop.c (alloc_loop): Likewise.
2995 (rescan_loop_exit): Likewise.
2997 * cfg.c (init_flow): Likewise.
2998 (alloc_block): Likewise.
2999 (unchecked_make_edge): Likewise.
3001 * c-parser.c (c_parse_init): Likewise.
3002 (c_parse_file): Likewise.
3004 * c-decl.c (bind): Likewise.
3005 (record_inline_static): Likewise.
3006 (push_scope): Likewise.
3007 (make_label): Likewise.
3008 (lookup_label_for_goto): Likewise.
3009 (finish_struct): Likewise.
3010 (finish_enum): Likewise.
3011 (c_push_function_context): Likewise.
3013 * bitmap.c (bitmap_element_allocate): Likewise.
3014 (bitmap_gc_alloc_stat): Likewise.
3016 * alias.c (record_alias_subset): Likewise.
3017 (init_alias_analysis): Likewise.
3019 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
3021 * fold-const.c (fold_comparison): Remove redundant parenthesis.
3022 * tree-inline.c (expand_call_inline): Pass translated return value of
3023 cgraph_inline_failed_string to diagnostic function.
3025 2010-06-08 Andrew Pinski <pinskia@gmail.com>
3026 Shujing Zhao <pearly.zhao@oracle.com>
3029 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
3030 implicit bad conversions is initialization.
3031 (error_init): Use gmsgid instead of msgid for argument name and change
3033 (pedwarn_init): Use gmsgid instead of msgid for argument name and
3034 change the call for pedwarn.
3035 (warning_init): Use gmsgid instead of msgid for argument name and
3036 change the call for warning.
3038 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
3040 * config/mips/mips-protos.h (mips_print_operand): Delete.
3041 (mips_print_operand_address): Delete.
3042 * config/mips/mips.h (mips_print_operand_punct): Delete.
3043 (PRINT_OPERAND): Delete.
3044 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3045 (PRINT_OPERAND_ADDRESS): Delete.
3046 * config/mips/mips.c (mips_print_operand_punct): Make static.
3047 (mips_print_operand_address): Make static.
3048 (mips_print_operand): Make static. Call
3049 mips_print_operand_punct_valid_p.
3050 (mips_print_operand_punct_valid_p): New function.
3051 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3052 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3054 2010-06-07 Jan Hubicka <jh@suse.cz>
3057 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
3060 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
3062 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
3065 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3067 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3068 attributes): Document gas.
3070 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
3072 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
3073 <TYPE_LEA>: Split instruction.
3074 <default>: Remove alternative 2 handling.
3075 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
3076 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
3077 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
3079 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
3080 (ashift_zext lea splitter): Use DImode for multiplication.
3082 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
3083 to generate addition.
3085 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3087 * common.opt (fira-verbose): Use Var.
3088 (fpcc-struct-return): Use Init instead of VarExists.
3089 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
3091 * flags.h (flag_signed_char, flag_short_enums,
3092 flag_pcc_struct_return, flag_ira_verbose,
3093 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
3094 * toplev.c (flag_detailed_statistics, flag_signed_char,
3095 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
3096 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
3097 * toplev.h (flag_crossjumping, flag_if_conversion,
3098 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
3099 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
3100 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
3101 flag_cprop_registers, time_report, flag_ira_loop_pressure,
3102 flag_ira_coalesce, flag_ira_move_spills,
3103 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
3105 2010-06-07 Jan Hubicka <jh@suse.cz>
3107 * df-core.c (df_analyze_problem): Do verification after allocation.
3109 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
3110 (df_lr_alloc): Initialize problem data; move bitmaps to
3112 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
3113 (df_lr_verify_solution_start): Do not initialize problem data;
3114 allocate bitmaps in lr_bitmaps.
3115 (df_lr_verify_solution_end): Do not free problem data.
3117 2010-06-07 Jan Hubicka <jh@suse.cz>
3119 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
3120 if caller is noreturn.
3121 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
3122 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
3123 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
3124 * ipa-pure-const.c (check_decl): Add IPA parameter.
3125 (state_from_flags): New function.
3126 (better_state, worse_state): New functions.
3127 (check_call): When in IPA mode, do not care about callees.
3128 (check_load, check_store): Update.
3129 (check_ipa_load, check_ipa_store): New.
3130 (check_stmt): When in IPA mode, use IPA checkers.
3131 (analyze_function): Use state_from_flags.
3132 (propagate): Check indirect edges and references.
3134 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
3136 PR rtl-optimization/44404
3137 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
3138 of count_occurrences to see if it's safe to modify mem_insn.
3140 2010-06-07 Richard Guenther <rguenther@suse.de>
3142 * gimplify.c (gimplify_cleanup_point_expr): For empty body
3143 and EH-only cleanup drop the cleanup instead of inserting it
3146 2010-06-07 Ira Rosen <irar@il.ibm.com>
3148 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
3150 * targhooks.c (default_builtin_vectorization_cost): New function.
3151 * targhooks.h (default_builtin_vectorization_cost): Declare.
3152 * target.h (enum vect_cost_for_stmt): Define.
3153 (builtin_vectorization_cost): Change argument and comment.
3154 * tree-vectorizer.h: Remove cost model macros.
3155 * tree-vect-loop.c: Include target.h.
3156 (vect_get_cost): New function.
3157 (vect_estimate_min_profitable_iters): Replace cost model macros with
3158 calls to vect_get_cost.
3159 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3160 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3161 default implementation.
3162 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3163 calls to target hook builtin_vectorization_cost.
3164 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3166 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3167 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3168 implementation to return costs.
3169 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3170 * config/spu/spu.h: Remove vectorizer cost model macros.
3171 * config/i386/i386.h: Likewise.
3172 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3173 a call to target hook builtin_vectorization_cost.
3175 2010-06-06 Sriraman Tallam <tmsriram@google.com>
3178 * config/i386/i386.c (override_options): Turn zee pass on for level 2
3179 and above and defer till target is known.
3180 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3183 2010-05-25 Jan Hubicka <jh@suse.cz>
3185 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3186 (df_compact_blocks): Likewise.
3187 * df.h (struct df): Turn hardware_regs_used,
3188 regular_block_artificial_uses, eh_block_artificial_uses,
3189 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3191 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3192 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3193 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3194 df_scan_blocks, df_insn_delete, df_insn_rescan,
3195 df_insn_rescan_debug_internal, df_insn_rescan_all,
3196 df_process_deferred_rescans, df_process_deferred_rescans,
3197 df_notes_rescan, df_get_call_refs, df_get_call_refs,
3198 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3199 df_record_entry_block_defs, df_record_exit_block_uses,
3200 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3201 df_scan_verify): Update.
3203 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3206 * c-common.c (is_typedef_decl): Move this definition ...
3207 * tree.c (is_typedef_decl): ... here.
3208 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3209 * c-common.h (is_typedef_decl): Move this declaration ...
3210 * tree.h (is_typedef_decl): ... here.
3211 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3212 * dwarf2out.c (is_naming_typedef_decl): New function.
3213 (gen_tagged_type_die): Split out of ...
3214 (gen_type_die_with_usage): ... this function. When an anonymous
3215 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3216 is emitted for the typedef.
3217 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3218 anonymous tagged types.
3220 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3223 * c-decl.c (grokdeclarator): Delete warning.
3225 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3227 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3228 newly built CALL_EXPR.
3229 * tree-profile.c (tree_profiling): Don't profile functions produced
3232 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3236 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3237 endianness-independent.
3239 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3241 * c-common.c: Move to c-family/.
3242 * c-common.def: Likewise.
3243 * c-common.h: Likewise.
3244 * c-cppbuiltin.c: Likewise.
3245 * c-dump.c: Likewise.
3246 * c-format.c: Likewise.
3247 * c-format.h : Likewise.
3248 * c-gimplify.c: Likewise.
3249 * c-lex.c: Likewise.
3250 * c-omp.c: Likewise.
3252 * c-opts.c: Likewise.
3253 * c-pch.c: Likewise.
3254 * c-ppoutput.c: Likewise.
3255 * c-pragma.c: Likewise.
3256 * c-pragma.h: Likewise.
3257 * c-pretty-print.c: Likewise.
3258 * c-pretty-print.h: Likewise.
3259 * c-semantics.c: Likewise.
3260 * stub-objc.c: Likewise.
3262 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3263 (get_output_file_with_visibility): Fix name for c-common.h.
3264 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3266 * c-tree.h: Update include path for moved files.
3267 * c-lang.c: Likewise.
3268 * c-lang.h: Likewise.
3269 * c-parser.c: Likewise.
3270 * c-convert.c: Likewise.
3271 * c-decl.c: Likewise.
3272 * c-objc-common.c: Likewise.
3273 * configure.ac: Make sure c-family/ exists in the build directory.
3274 * configure: Regenerate.
3275 * Makefile.in: Update paths for moved files. Regroup files per
3276 location and update dependencies. Move generated_files down after
3279 * config/spu/spu-c.c: Update paths for moved files.
3280 * config/mep/mep-pragma.c: Likewise.
3281 * config/darwin-c.c: Likewise.
3282 * config/i386/msformat-c.c: Likewise.
3283 * config/i386/i386-c.c: Likewise.
3284 * config/avr/avr-c.c: Likewise.
3285 * config/sol2-c.c: Likewise.
3286 * config/ia64/ia64-c.c: Likewise.
3287 * config/rs6000/rs6000-c.c: Likewise.
3288 * config/arm/arm.c: Likewise.
3289 * config/arm/arm-c.c: Likewise.
3290 * config/h8300/h8300.c: Likewise.
3291 * config/v850/v850-c.c: Likewise.
3293 * config/t-darwin: Fix dependencies for moved files.
3294 * config/t-sol2: Fix dependencies for moved files.
3295 * config/mep/t-mep: Fix dependencies for moved files.
3296 * config/ia64/t-ia64: Fix dependencies for moved files.
3297 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3298 * config/v850/t-v850: Fix dependencies for moved files.
3299 * config/v850/t-v850e: Fix dependencies for moved files.
3301 * config/m32c/m32c-pragma.c
3303 * po/exgettext: Look in c-family/ also.
3305 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3307 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3308 (mark_control_dependent_edges_necessary): Call it instead of marking
3309 the last statement manually.
3310 (propagate_necessity): Likewise.
3312 2010-06-05 Jan Hubicka <jh@suse.cz>
3314 * basic-block.h (compute_dominance_frontiers): Updated.
3315 (compute_idf): Likewise.
3317 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3318 for dominance frontiers.
3319 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3320 (insert_updated_phi_nodes_for): Likewise.
3321 (update_ssa): Likewise.
3322 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3323 (compute_dominance_frontiers): Likewise.
3324 (compute_idf): Likewise.
3325 * df-problems.c (df_md_local_compute): Likewise.
3327 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3329 * target.h (struct gcc_target): Add memory_move_cost field.
3330 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3331 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3332 * targhooks.c (default_memory_move_cost): New function.
3333 * targhooks.h (default_memory_move_cost): Declare function.
3334 * reload.h (memory_move_cost): Declare.
3335 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3336 * reginfo.c (memory_move_cost): New function.
3337 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3338 * ira.h (ira_memory_move_cost): Update comment.
3339 * ira.c: (ira_memory_move_cost): Update comment.
3340 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3341 with memory_move_cost.
3342 * postreload.c (reload_cse_simplify_set): (Ditto.).
3343 * reload1.c (choose_reload_regs): (Ditto.).
3344 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3345 (MEMORY_MOVE_COST): Revise documentation.
3347 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3348 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3349 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3350 type of 'in' argument to bool.
3351 (TARGET_MEMORY_MOVE_COST): Define.
3353 2010-06-05 Jan Hubicka <jh@suse.cz>
3355 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3356 that cannot return. Be more careful when merging the results with
3357 previously known ones.
3359 2010-06-05 Matthias Klose <doko@ubuntu.com>
3361 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3362 function to add the -iplugindir option.
3363 (find_plugindir_spec_function): Add new declaration and function.
3364 (static_spec_func): Use it for "find-plugindir".
3366 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3369 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3370 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3371 statement expression.
3373 2010-06-05 Jan Hubicka <jh@suse.cz>
3375 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3376 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3377 dense_invalidated_by_call to bitmap head.
3378 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3379 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3380 df_rd_start_dump, df_lr_verify_transfer_functions,
3381 df_live_verify_transfer_functions, df_chain_create_bb,
3382 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3383 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3384 df_simulate_one_insn_forwards, df_md_alloc,
3385 df_md_bb_local_compute_process_def,
3386 df_md_bb_local_compute_process_def, df_md_local_compute,
3387 df_md_transfer_function df_md_free): Update.
3389 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3392 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3393 target type for ADDR_EXPR; require no changes to qualifiers except
3395 * c-tree.h (c_build_type_variant): Remove.
3397 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3399 * genautomata.c (get_excl_set): Do work per element, not per char.
3400 (check_presence_pattern_sets): Similar.
3401 (check_absence_pattern_sets): Similar.
3403 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3405 * genautomata.c (curr_state_pass_num): Delete.
3406 (min_issue_delay_pass_states): Delete.
3407 (min_issue_delay): Delete.
3408 (initiate_min_issue_delay_pass_states): Delete.
3409 (output_min_issue_delay_table): Compute min_issue_delay_vect
3410 using a breadth-first search variant.
3411 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3413 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3416 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3417 (df_byte_lr_bb_local_compute): Likewise.
3419 2010-06-03 Jason Merrill <jason@redhat.com>
3421 Implement noexcept operator (5.3.7)
3422 * c-common.c (c_common_reswords): Add noexcept.
3423 * c-common.h (enum rid): Add RID_NOEXCEPT.
3425 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3427 * config/darwin-driver.c (darwin_default_min_version): Use
3428 GCC-specific formats in diagnostics.
3429 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3431 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3432 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3433 eval_spec_function, handle_braces, process_brace_body, main,
3434 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3435 getenv_spec_function, compare_version_strings,
3436 version_compare_spec_function): Use GCC-specific formats in
3439 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3441 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3442 that operand 0 and operand 1 are equal.
3443 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3444 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3445 and operand 1 are equal.
3446 <default>: Ditto. Remove ??? comment.
3447 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3448 and operand 1 are equal.
3449 <default>: Ditto. Remove ??? comment.
3450 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3452 (*add<mode>_4) <default>: Ditto.
3453 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3455 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3457 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3458 * config/i386/i386.c (ix86_print_operand): Make non-static.
3459 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3460 * output.h (output_operand): Declare.
3461 * final.c (output_operand): Make non-static.
3463 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3465 PR rtl-optimization/44013
3466 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3467 when processing debug insns.
3470 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3471 recursing. Check that recursion is bounded. Rename inner var
3472 to avoid hiding incoming argument.
3474 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3476 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3481 (*addqi_ext_1_rex64): Ditto.
3482 (*addqi_ext_1): Ditto.
3484 (*addqi_4): Check for incdec_operand in QImode.
3486 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3487 using SWI mode iterator.
3488 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3489 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3491 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3492 using SWI mode iterator.
3494 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3497 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3498 * c-format.c (gcc_diag_flag_specs): Add hash.
3499 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3500 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3501 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3502 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3503 (pp_c_type_qualifier_list): Call the function above.
3504 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3505 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3506 (WARN_FOR_QUALIFIERS): New macro.
3507 (convert_for_assignment): Use it.
3509 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3511 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3513 2010-06-04 Jan Hubicka <jh@suse.cz>
3515 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3516 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3517 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3518 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3519 * fwprop.c (single_def_use_enter_block): Likewise.
3520 * ddg.c (create_ddg_dep_from_intra_loop_link,
3521 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3522 * loop-iv.c (latch_dominating_def): Likewise.
3523 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3524 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3525 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3526 df_rd_transfer_function, df_rd_top_dump,
3527 df_rd_bottom_dump): Update.
3528 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3529 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3530 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3531 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3532 df_lr_verify_solution_start, df_lr_verify_solution_end,
3533 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3534 df_live_free_bb_info, df_live_alloc, df_live_reset,
3535 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3536 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3537 df_live_verify_solution_start, df_live_verify_solution_end,
3538 df_live_verify_transfer_functions, df_chain_create_bb,
3539 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3540 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3541 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3542 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3543 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3544 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3545 df_byte_lr_bottom_dump, df_create_unused_note,
3546 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3547 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3548 df_md_transfer_function, df_md_init, df_md_confluence_0,
3550 df_md_top_dump, df_md_bottom_dump): Update.
3551 (struct df_lr_problem_data): Embedd bitmap headers.
3553 2010-06-04 Jan Hubicka <jh@suse.cz>
3555 * dce.c (dce_process_block): Do not re-scan already marked
3558 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3560 PR rtl-optimization/39871
3561 PR rtl-optimization/40615
3562 PR rtl-optimization/42500
3563 PR rtl-optimization/42502
3564 * ira.c (init_reg_equiv_memory_loc: New function.
3565 (ira): Call it twice.
3566 * reload.h (calculate_elim_costs_all_insns): Declare.
3567 * ira-costs.c: Include "reload.h".
3568 (regno_equiv_gains): New static variable.
3569 (init_costs): Allocate it.
3570 (finish_costs): Free it.
3571 (ira_costs): Call calculate_elim_costs_all_insns.
3572 (find_costs_and_classes): Take estimated elimination costs
3574 (ira_adjust_equiv_reg_cost): New function.
3575 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3576 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3577 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3578 (elim_bb): New static variable.
3579 (reload): Move code out of here into init_eliminable_invariants and
3580 free_reg_equiv. Call them.
3581 (calculate_elim_costs_all_insns): New function.
3582 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3583 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3584 but call note_reg_elim_costly if we turned a valid memory address
3585 into an invalid one.
3586 * Makefile.in (ira-costs.o): Depend on reload.h.
3588 2010-06-04 Julian Brown <julian@codesourcery.com>
3590 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3593 2010-06-04 Richard Guenther <rguenther@suse.de>
3596 * cgraph.h (struct varpool_node): Add lto_file_data field.
3597 * lto-cgraph.c (input_varpool_node): Initialize it.
3599 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3601 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3602 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3603 predicate in "type" attribute calculation.
3604 (*addsi_1_zext): Ditto.
3605 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3606 (*addsi_2_zext): Ditto.
3607 (*add<mode>_3): Ditto.
3608 (*addsi_3_zext): Ditto.
3609 (*add<mode>_5): Ditto.
3611 2010-06-03 Jan Hubicka <jh@suse.cz>
3613 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3615 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3617 2010-06-03 Jan Hubicka <jh@suse.cz>
3619 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3620 micro-optimize the checks when to add new note.
3622 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3624 * final.c (output_asm_insn): Call
3625 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3626 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3627 (output_address): Call targetm.asm_out.print_operand_address.
3629 * target.h (struct gcc_target): Add print_operand,
3630 print_operand_address, and print_operand_punct_valid_p fields.
3631 * targhooks.h (default_print_operand): Declare.
3632 (default_print_operand_address): Declare.
3633 (default_print_operand_punct_valid_p): Declare.
3634 * targhooks.c (default_print_operand): Define.
3635 (default_print_operand_address): Define.
3636 (default_print_operand_punct_valid_p): Define.
3637 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3638 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3639 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3640 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3641 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3642 * vmsdbgout.c (addr_const_to_string): Update comment.
3643 * config/i386/i386.c (print_operand): Rename to...
3644 (ix86_print_operand): ...this. Make static.
3645 (print_operand_address): Rename to...
3646 (ix86_print_operand_address): ...this. Make static. Call
3647 ix86_print_operand instead of PRINT_OPERAND.
3648 (ix86_print_operand_punct_valid_p): New function.
3649 (TARGET_PRINT_OPERAND): Define.
3650 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3651 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3652 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3653 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3654 (PRINT_OPERAND): Delete.
3655 (PRINT_OPERAND_ADDRESS): Delete.
3656 * config/i386/i386-protos.h (print_operand): Delete prototype.
3657 (print_operand_address): Delete prototype.
3659 2010-06-03 Richard Guenther <rguenther@suse.de>
3661 PR tree-optimization/44403
3662 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3663 Preserve pointer qualifiers.
3664 (vect_create_data_ref_ptr): Likewise.
3666 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3669 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3671 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3673 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3676 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3677 return false if merging the bbs would lead to goto_locus
3678 location being lost from the IL.
3680 2010-06-03 Jan Hubicka <jh@suse.cz>
3681 Jakub Jelinek <jakub@redhat.com>
3683 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3684 set->regs[i] is NULL or has just one entry.
3686 2010-06-03 Jan Hubicka <jh@suse.cz>
3688 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3689 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3691 2010-06-03 Paul Brook <paul@codesourcery.com>
3693 * config/arm/arm.c (FL_TUNE): Define.
3694 (arm_default_cpu, arm_cpu_select): Remove.
3695 (all_cores): Populate core field.
3696 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3697 (arm_find_cpu): New function.
3698 (arm_handle_option): Lookup cpu/architecture names.
3699 (arm_override_options): Cleanup mcpu/march/mtune handling.
3700 (arm_file_start): Ditto.
3702 2010-06-03 Alan Modra <amodra@gmail.com>
3705 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3706 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3707 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3708 (rs6000_emit_load_toc_table): Likewise.
3710 2010-06-02 Jan Hubicka <jh@suse.cz>
3712 * passes.c (init_optimization_passes): Put ipa reference
3713 after ipa pure-const.
3715 2010-06-02 Jan Hubicka <jh@suse.cz>
3717 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3718 calls_read_all and calls_write_all.
3719 (get_reference_optimization_summary): Fix formatting.
3720 (is_proper_for_analysis): Check that decl is not readonly.
3721 (propagate_bits): Check CONST/PURE/noreturn flags.
3722 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3723 (analyze_function): Ignore indirect edges.
3724 (copy_global_bitmap): For all module statics, do nothing.
3725 (generate_summary): Do not print calls_read_all/calls_write_all.
3726 (read_write_all_from_decl): Take node as argument; check
3727 cgraph_node_cannot_return.
3728 (propagate): Reorganize read_all/write_all computation;
3729 check indirect edges; check ecf flags; use all_module_statics
3730 in the results; do not free all_module_statics.
3731 (stream_out_bitmap): Handle all_module_statics.
3732 (ipa_reference_write_optimization_summary): Likewise; use
3733 varpool/cgraph encoders to get boundaries.
3734 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3735 use it when possible.
3737 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3740 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3741 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3743 * doc/extend.texi (powerpc builtins): Document vec_recip,
3744 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3746 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3747 (rs6000_emit_swrsqrt): Ditto.
3748 (rs6000_emit_swdivsf): Delete.
3749 (rs6000_emit_swdivdf): Ditto.
3750 (rs6000_emit_swrsqrtsf): Ditto.
3752 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3753 describe the reciprocal estimate support for each type.
3754 (recip_options): Map -mrecip=<opt> into option bits.
3755 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3756 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3757 reciprocal estimate instructions.
3758 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3759 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3760 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3761 cost information if -mdebug=cost or -mdebug=reg.
3762 (rs6000_override_options): Set -mrecip-precision for power6, and
3763 power7 machines. If -mvsx or -mdfp, enable various options that
3764 came in previous instruction set ISAs, unless the option was
3765 explicitly disabled by the command line option. Parse
3766 -mrecip=<opt> options.
3767 (rs6000_builtin_vectorized_function): Add support for vectorizing
3768 the reciprocal estimate builtins and expansions.
3769 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3770 (bdesc_2arg): Add reciprocal estimate builtins.
3771 (bdesc_1arg): Add reciprocal square root estimate builtins.
3772 (rs6000_expand_builtin): Rewrite to use a switch statement,
3773 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3774 (rs6000_init_builtins): Create declarations for reciprocal
3776 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3777 sized, prefer traditional floating point registers, if integer
3778 vector types, prefer altivec registers. Don't actually look at
3779 the memory address any more.
3780 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3782 (rs6000_load_constant_and_splat): New helper function to load up
3783 the constant for reciprocal estimate instructions.
3784 (rs6000_emit_madd): New helper function for generating
3785 multiply/add type instructions, based on the current switches.
3786 (rs6000_emit_msub): Ditto.
3787 (rs6000_emit_mnsub): Ditto.
3788 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3789 replace a divide with a reciprocal estimate and fixup, adding
3790 support for machines with high precision and vectors.
3791 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3792 low precision machines.
3793 (rs6000_emit_swdiv): New common function to be called to replace a
3794 division with reciprocal estimate and fixup.
3795 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3796 for double and vector types. Add support for high precision machines.
3798 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3799 the reciprocal estimate instructions can be generated.
3800 (TARGET_FRE): Ditto.
3801 (TARGET_FRSQRTES): Ditto.
3802 (TARGET_FRSQRTE): Ditto.
3803 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3805 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3806 square root estimate on vectors.
3807 (re<mode>2): New insn for reciprocal division estimate on vectors.
3809 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3811 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3812 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3813 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3814 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3815 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3816 (RS6000_BUILTIN_RSQRT): Ditto.
3817 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3818 floating point builtin.
3820 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3821 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3822 __RECIP_PRECISION__ based on the command line switches.
3823 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3825 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3826 replacing division instructions with reciprocal estimate and fixup.
3827 (-mrecip=<opt>): New option.
3828 (-mrecip-precision): Ditto.
3830 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3831 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3832 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3835 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3836 (UNSPEC_VREFP): Ditto.
3837 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3838 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3839 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3840 reciprocal estimate instructions to be generated.
3841 (altivec_vrefp): Ditto.
3843 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3845 (rreg): New mode attribute for reciprocal estimate support.
3846 (recip<mode>3): New insn for division using reciprocal estimate
3848 (divide define_split): New define_split to convert floating point
3849 division to use reciprocal estimate if the user used the
3850 appropriate options and the split is run when we can add new
3851 pseudo registers for the fixup.
3852 (rsqrt<mode>2): New insn for reciprocal square root support.
3853 (recipsf3): Move into recip<mode>3.
3855 (fres): Use TARGET_FRES.
3856 (rsqrtsf2): Move into rsqrt<mode>2.
3857 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3858 (copysignsf3): Add support for VSX.
3859 (fred): Use TARGET_FRE.
3861 (rsqrtdf_internal1): New function for frsqrte instruciton.
3863 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3866 2010-06-03 Richard Guenther <rguenther@suse.de>
3869 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3870 (set_user_assembler_libfunc): Likewise.
3872 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3874 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3876 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3878 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3879 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3880 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3881 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3882 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3883 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3884 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3885 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3886 * defaults.h: Updated for above mentioned changes.
3888 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3890 * c-common.c: Remove header include of tm_p.h.
3891 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3893 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3895 * tree.h (struct tree_decl_map): New type.
3896 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3897 (tree_decl_map_hash): New prototype.
3898 (debug_expr_for_decl, value_expr_for_decl): Change into
3899 tree_decl_map hashtab from tree_map.
3900 (init_ttree): Adjust initialization.
3901 (tree_decl_map_hash): New function.
3902 (decl_debug_expr_lookup, decl_debug_expr_insert,
3903 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3905 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3907 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3909 * configure: Regenerate.
3910 * config.in: Regenerate.
3912 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3913 (X86_64_EMULATION): Define.
3914 (TARGET_LD_EMULATION): Use them.
3916 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3917 (SPARC64_EMULATION): Define.
3918 (LINK_ARCH_SPEC): Use them.
3920 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3922 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3923 smallest_mode_for_size for computing the precision types of new
3924 graphite IVs. Do not call lang_hooks.types.type_for_size.
3926 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3928 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3930 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3932 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3935 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3936 return false instead.
3938 2010-06-02 Jan Hubicka <jh@suse.cz>
3941 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3942 create new cgraph node to check callee.
3944 2010-06-02 Richard Guenther <rguenther@suse.de>
3946 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3948 2010-06-02 Richard Guenther <rguenther@suse.de>
3950 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3951 (lto_wrapper_cleanup): ... this. Do not exit.
3952 (fatal): Adjust. Exit here.
3953 (fatal_perror): Likewise.
3954 (fatal_signal): New function.
3955 (main): Set up signal handlers to cleanup temporary files.
3956 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3958 2010-06-02 Richard Guenther <rguenther@suse.de>
3960 PR tree-optimization/44377
3961 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3963 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3965 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3966 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3967 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3968 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3970 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3972 2010-06-02 Jan Hubicka <jh@suse.cz>
3974 * bitmap.c (bitmap_descriptor): Add search_iter.
3975 (bitmap_find_bit): Increment it.
3976 (print_statistics): Print it.
3978 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3980 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3981 instead of gimple_build_call_vec. Delete unnecessary local variable.
3983 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3985 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3986 change from yesterday.
3988 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3990 * c-ada-spec.c: Clean up redundant includes.
3992 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3994 * gimplify.c: Do not include except.h and optabs.h.
3995 (gimplify_body): Do not initialize RTL profiling.
3996 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3997 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3998 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3999 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
4002 * tree-pretty-print.h: Include pretty-print.h.
4003 * gimple-pretty-print.h: Include pretty-print.h.
4005 * tree-pretty-print.c: Do not include diagnostic.h.
4006 * tree-vrp.c: Likewise.
4007 * tree-tailcall.c: Likewise
4008 * tree-scalar-evolution.c: Likewise
4009 * tree-ssa-dse.c: Likewise
4010 * tree-chrec.c: Likewise
4011 * tree-ssa-sccvn.c: Likewise
4012 * tree-ssa-copyrename.c: Likewise
4013 * tree-nomudflap.c: Likewise
4014 * tree-call-cdce.c: Likewise
4015 * tree-stdarg.c: Likewise
4016 * tree-ssa-math-opts.c: Likewise
4017 * tree-nrv.c: Likewise
4018 * tree-ssa-sink.c: Likewise
4019 * tree-browser.c: Likewise
4020 * tree-ssa-loop-ivcanon.c: Likewise
4021 * tree-ssa-loop.c: Likewise
4022 * tree-parloops.c: Likewise
4023 * tree-ssa-address.c: Likewise
4024 * tree-ssa-ifcombine.c: Likewise
4025 * tree-if-conv.c: Likewise
4026 * tree-data-ref.c: Likewise
4027 * tree-affine.c: Likewise
4028 * tree-ssa-phiopt.c: Likewise
4029 * tree-ssa-coalesce.c: Likewise
4030 * tree-ssa-pre.c: Likewise
4031 * tree-ssa-live.c: Likewise
4032 * tree-predcom.c: Likewise
4033 * tree-ssa-forwprop.c: Likewise
4034 * tree-ssa-dce.c: Likewise
4035 * tree-ssa-ter.c: Likewise
4036 * tree-ssa-loop-prefetch.c: Likewise
4037 * tree-optimize.c: Likewise
4038 * tree-ssa-phiprop.c: Likewise
4039 * tree-object-size.c: Likewise
4040 * tree-outof-ssa.c: Likewise
4041 * tree-ssa-structalias.c: Likewise
4042 * tree-switch-conversion.c: Likewise
4043 * tree-ssa-reassoc.c: Likewise
4044 * tree-ssa-operands.c: Likewise
4045 * tree-vectorizer.c: Likewise
4046 * tree-vect-data-refs.c: Likewise
4047 * tree-vect-generic.c: Likewise
4048 * tree-vect-stmts.c: Likewise
4049 * tree-vect-patterns.c: Likewise
4050 * tree-vect-slp.c: Likewise
4051 * tree-vect-loop.c: Likewise
4052 * tree-ssa-loop-ivopts.c: Likewise
4053 * tree-ssa-loop-im.c: Likewise
4054 * tree-ssa-loop-niter.c: Likewise
4055 * tree-ssa-loop-unswitch.c: Likewise
4056 * tree-ssa-loop-manip.c: Likewise
4057 * tree-ssa-loop-ch.c: Likewise
4058 * tree-dump.c: Likewise
4059 * tree-complex.c: Likewise
4061 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
4062 * tree-ssa-uninit.c: Likewise
4063 * tree-ssa-threadupdate.c: Likewise
4064 * tree-ssa-uncprop.c: Likewise
4065 * tree-ssa-ccp.c: Likewise
4066 * tree-ssa-dom.c: Likewise
4067 * tree-ssa-propagate.c: Likewise
4068 * tree-ssa-alias.c: Likewise
4069 * tree-dfa.c: Likewise
4070 * tree-cfgcleanup.c: Likewise
4071 * tree-sra.c: Likewise
4072 * tree-ssa-copy.c: Likewise
4073 * tree-ssa.c: Likewise
4074 * tree-profile.c: Likewise
4075 * tree-cfg.c: Likewise
4076 * tree-ssa-threadedge.c: Likewise
4077 * tree-vect-loop-manip.c: Likewise
4079 * tree-inline.c: Do not include diagnostic.h and expr.h.
4081 (copy_decl_for_dup_finish): Do not use NULL_RTX.
4083 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
4084 * tree-loop-distribution.c: Likewise.
4086 2010-06-01 Jan Hubicka <jh@suse.cz>
4088 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4090 2010-06-01 Jan Hubicka <jh@suse.cz>
4092 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
4093 remove return value.
4094 (split_bbs_on_noreturn_calls) .... here.
4095 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
4096 * tree-flow.h (fixup_noreturn_call): New.
4098 2010-06-01 Jan Hubicka <jh@suse.cz>
4100 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
4102 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
4104 * tree.h (build_nt_call_list): Delete.
4105 * tree.c (build_nt_call_list): Delete.
4107 2010-06-01 Jan Hubicka <jh@suse.cz>
4109 * fwprop.c: Make emit-rtl.h include last.
4110 * rtlanal.c: Include emit-rtl.h.
4111 * genautomata.c: Output emit-rtl include into insn-automata.c
4112 * df-scan.c: Include emit-rtl.h.
4113 * haifa-sched.c: Indlude emit-rtl.h.
4114 * mode-switching.c: Indlude emit-rtl.h.
4115 * graph.c: Indlude emit-rtl.h.
4116 * sel-sched.c: Include emit-rtl.h.
4117 * sel-sched-ir.c: Include emit-rtl.h.
4118 * ira-build.c: Include emit-rtl.h.
4119 * emit-rtl.c: (first_insn, last_insn): Remove defines.
4120 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
4122 (set_new_first_and_last_insn, get_last_insn_anywhere,
4123 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
4124 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
4125 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
4126 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
4127 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
4128 Use accessor functions.
4129 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4130 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4131 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4132 mem_expr_equal_p): Move here from rtl.h.
4133 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
4134 Move here from emit-rtl.c; make inline.
4135 * cfglayout.h: Include emit-rtl.h.
4136 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4137 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4138 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4139 mem_expr_equal_p, get_insns, set_first-insn,
4140 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
4141 * reg-stack.c: Include emit-rtl.h.
4144 2010-06-01 Jan Hubicka <jh@suse.cz>
4146 * cgraph.h (tree_function_versioning): Update prototype.
4147 (cgraph_function_versioning): Update prototype.
4148 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
4150 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
4151 (cgraph_materialize_clone, save_inline_function_body): Update use of
4152 tree_function_versioning.
4153 * tree-inline.c (copy_bb): Look for previous copied block to link
4154 after; fix debug output.
4155 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4156 (copy_body): Likewise.
4157 (expand_call_inline): Update use of copy_body.
4158 (tree_function_versioning): Update use of copy body; accept
4159 blocks_to_copy and new_entry.
4161 2010-06-01 Jan Hubicka <jh@suse.cz>
4163 * gegenrtl.c: Remove unnecesary prototypes.
4165 (gendef): Produce static inline.
4167 (main): Do not decode parameters; generate header only.
4168 * Makefile.in (genrtl.c): Remove.
4170 2010-06-01 Jan Hubicka <jh@suse.cz>
4172 * tree-switch-conversion.c (build_one_array): Make it readonly.
4174 2010-06-01 Richard Guenther <rguenther@suse.de>
4176 * optabs.c (init_optabs): Guard all accesses to reinit.
4177 * ipa-pure-const.c (propagate): Fix another typo.
4178 * opts.c (common_handle_option): Split assignment to bool.
4179 * c-opts.c (c_common_handle_option): Likewise.
4181 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4182 Matthew Gingell <gingell@adacore.com>
4184 * doc/invoke.texi: Mention -fdump-ada-spec.
4185 * tree-dump.c (dump_files): Add ada-spec.
4186 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4187 * tree-pass.h (tree_dump_index): Add TDI_ada.
4188 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4189 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4190 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4191 * c-decl.c: Include c-ada-spec.h.
4192 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4194 (c_write_global_declarations): Add handling of -fdump-ada-spec.
4195 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4196 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4197 * c-ada-spec.h, c-ada-spec.c: New files.
4199 2010-06-01 Richard Guenther <rguenther@suse.de>
4202 * ipa-pure-const.c (get_function_state): Hand back varying state
4203 if we do not have one.
4204 (has_function_state): New function.
4205 (duplicate_node_data): Adjust.
4206 (remove_node_data): Likewise.
4207 (pure_const_write_summary): Likewise.
4208 (propagate): Likewise. Fix typo.
4210 2010-06-01 Jan Hubicka <jh@suse.cz>
4212 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4213 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4214 (execute_all_ipa_transforms): Do not play with the states.
4216 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4218 * config/arm/t-linux-androideabi: New.
4219 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4221 2010-06-01 Jan Hubicka <jh@suse.cz>
4223 * tree-inline.c (estimate_num_insns): For stdarg functions look
4224 into call statement to count cost of argument passing.
4226 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4228 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4229 argument for fprintf.
4230 (ix86_output_addr_diff_elt): Likewise.
4231 (x86_function_profiler): Likewise.
4232 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4233 (LPREFIX): Likewise.
4234 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4236 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4239 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4240 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4241 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4242 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4243 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4244 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4245 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4246 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4249 2010-05-31 Jan Hubicka <jh@suse.cz>
4251 * tree.h (tree_range_check_failed): Declare noreturn.
4253 2010-05-31 Jan Hubicka <jh@suse.cz>
4255 * gimple.c (gimple_call_builtin_p): New function.
4256 * gimple.h (gimple_call_builtin_p): Declare.
4257 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4259 (execute_warn_function_return): BUILT_IN_RETURN is return.
4260 (split_critical_edges): Return edges are not critical.
4261 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4262 (gimple_verify_flow_info): Handle built_in_return.
4263 (execute_warn_function_return): Handle built_in_return.
4264 * ipa-pure-const.c (check_call): Ignore builtin_return.
4266 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4269 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4270 array accesses with non-MEM.
4272 PR tree-optimization/44182
4273 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4274 newly needs to end a bb is followed by debug stmts, instead return
4275 true from the function at the end.
4276 (maybe_move_debug_stmts_to_successors): New function.
4277 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4279 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4282 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4284 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4286 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4287 for nested functions in non-optimized compilation.
4289 2010-05-31 Richard Guenther <rguenther@suse.de>
4291 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4293 2010-05-30 Jan Hubicka <jh@suse.cz>
4295 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4297 2010-05-30 Richard Guenther <rguenther@suse.de>
4300 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4301 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4304 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4306 * config/darwin.c (output_objc_section_asm_op): Add comment.
4307 (name_needs_quotes): Add '_' to list of valid comment chars.
4308 (machopic_output_function_base_name): Remove unneeded quotes.
4309 (darwin_encode_section_info): Adjust asm whitespace.
4310 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4311 (ASM_OUTPUT_LOCAL): Ditto.
4312 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4313 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4314 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4316 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4318 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4319 RS6000_OUTPUT_BASENAME unconditionally.
4320 (rs6000_output_function_epilogue): Likewise.
4322 2010-05-30 Jan Hubicka <jh@suse.cz>
4324 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4327 2010-05-30 Richard Guenther <rguenther@suse.de>
4329 * tree-cfg.c (verify_gimple_assign_single): Implement
4330 verification for COND_EXPR rhs.
4332 2010-05-30 Jan Hubicka <jh@suse.cz>
4334 * cgraph.h (cgraph_dump_file): Declare.
4335 * cgraphunit.c (cgraph_dump_file): Export.
4336 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4338 2010-05-30 Jan Hubicka <jh@suse.cz>
4340 * dwarf2out.c (reference_to_unused,
4341 premark_types_used_by_global_vars_helper): Avoid creation of new
4344 2010-05-30 Jan Hubicka <jh@suse.cz>
4346 * cgraph.h (cgraph_node_cannot_return,
4347 cgraph_edge_cannot_lead_to_return): New functions.
4348 * cgraph.c (cgraph_node_cannot_return,
4349 cgraph_edge_cannot_lead_to_return): Use them.
4350 * ipa-pure-const.c (pure_const_names): New static var.
4351 (check_call): Handle calls not leading to return.
4352 (pure_const_read_summary): Dump info read.
4353 (propagate): Dump info about propagation process; ignore side effects
4354 of functions not leading to exit; fix handling of pure functions.
4356 2010-05-30 Jan Hubicka <jh@suse.cz>
4358 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4359 for tail call epilogues.
4361 2010-05-30 Jan Hubicka <jh@suse.cz>
4363 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4364 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4367 2010-05-29 Jan Hubicka <jh@suse.cz>
4369 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4370 node; remove references in node we no longer keep in cgrpah but need
4373 2010-05-29 Jan Hubicka <jh@suse.cz>
4375 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4377 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4380 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4382 2010-05-29 Jan Hubicka <jh@suse.cz>
4384 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4385 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4386 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4387 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4388 debug_names_replaced_by, debug_update_ssa): Likewise.
4389 * sbitmap.c (debug_sbitmap): Likewise.
4390 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4391 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4392 debug_tree_chain): Likewise.
4393 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4394 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4395 * optabs.c (debug_optab_libfuncs): Likewise.
4396 (verify_loop_closed_ssa): Likewise.
4397 * value-prof.c (verify_histograms): Likewise.
4398 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4399 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4400 * cfghooks.c (verify_flow_info): Likewise.
4401 * fold-const.c (debug_fold_checksum): Likewise.
4402 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4403 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4405 * omega.c (debug_omega_problem): Likewise.
4406 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4407 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4408 * dominance.c (verify_dominators, debug_dominance_info,
4409 debug_dominance_tree): Likewise.
4410 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4411 * df_regno_debug, df_ref_debug,
4412 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4413 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4414 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4415 * sel-sched.c (debug_state): Likewise.
4416 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4418 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4419 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4420 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4421 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4423 * c-pretty-print.c (debug_c_tree): Likewise.
4424 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4425 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4426 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4427 * ebitmap.c (debug_ebitmap): Likewise.
4428 * function.c (debug_find_var_in_block_tree): Likewise.
4429 * print-rtl.c (debug_rtx): Likewise.
4430 (debug_rtx_count): Likewise.
4431 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4432 * stor-layout.c (debug_rli): Likewise.
4433 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4434 * tree-data-ref.c (debug_data_references,
4435 debug_data_dependence_relations, debug_data_reference,
4436 debug_data_dependence_relation, debug_rdg_vertex,
4437 debug_rdg_component, debug_rdg): Likewise.
4438 * tree-affine.c (debug_aff): Likewise.
4439 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4441 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4442 * emit-rtl.c (verify_rtl_sharing): Likewise.
4443 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4444 debug_value_expressions): Likewise.
4445 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4446 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4447 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4448 * cfglayout.c (verify_insn_chain): Likewise.
4449 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4450 debug_clast_stmt, debug_generated_program): Likewise.
4451 * ggc-page.c (debug_print_page_list): Likewise.
4452 * tree-ssa-ter.c (debug_ter): Likewise.
4453 * graphite-dependences.c (debug_pddr): Likewise.
4454 * sched-deps.c (debug_ds): Likewise.
4455 * tree-ssa.c (verify_ssa): Likewise.
4456 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4457 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4458 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4459 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4460 * tree-inline.c (debug_find_tree): Likewise.
4461 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4462 debug_ppl_powerset_matrix): Likewise.
4463 * var-tracking.c (debug_dv): Likewise.
4464 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4465 * cfgloop.c (verify_loop_structure): Likewise.
4466 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4467 * c-common.c (verify_sequence_points): Likewise.
4468 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4469 debug_candidates, debug_rgn_dependencies): Likewise.
4470 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4471 * debug_constraint_graph, debug_solution_for_var,
4472 debug_sa_points_to_info): Likewise.
4473 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4475 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4476 debug_loops, debug_loop, debug_loop_num): Likewise.
4477 * passes.c (debug_pass): Likewise.
4478 (dump_properties): Likewise; add cfglayout property.
4479 (debug_properties): Likewise.
4480 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4481 * varpool.c (debug_varpool): Likewise.
4482 * regcprop.c (debug_value_data): Likewise.
4483 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4484 debug_immediate_uses_for): Likewise.
4486 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4489 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4490 Filter out insn-flags.h.
4492 2010-05-29 Jan Hubicka <jh@suse.cz>
4494 * cgraph.h (struct varpool_node_set_def,
4495 struct cgraph_node_set_def): Remove unused AUX pointer.
4496 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4499 2010-05-29 Jan Hubicka <jh@suse.cz>
4502 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4504 2010-05-29 Richard Guenther <rguenther@suse.de>
4506 * lto-streamer.c (cached_bp): New global variable.
4507 (bitpack_create): Return the cached bitpack, if available.
4508 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4509 (bp_pack_value): Remove redundant asserts.
4511 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4514 * tree-if-conv.c (is_true_predicate): New.
4515 (is_predicated): Use is_true_predicate.
4516 (add_to_predicate_list): Same. Do not use unshare_expr.
4517 (add_to_dst_predicate_list): Same.
4519 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4521 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4523 (predicate_bbs): Same.
4524 (clean_predicate_lists): Same.
4525 (find_phi_replacement_condition): Do not AND the predicate from
4528 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4531 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4533 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4536 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4537 (negdf2): Adjust expander pattern and use negdf2_slow.
4540 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4542 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4544 * df.h (struct df_base_ref): Move regno field up.
4545 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4546 * expr.h (struct separate_ops): Move location field up.
4547 * optabs.h (struct optab_d): Move libcall_basename field down.
4548 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4549 * config/i386/i386.h (struct machine_function): Convert call_abi field
4550 into a bitfield. Move cfa field to the end of the structure.
4552 2010-05-29 Jan Hubicka <jh@suse.cz>
4554 * varpool.c (varpool_get_node): Fix lookup.
4556 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4558 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4559 RTL specific prototypes with #ifdef RTX_CODE.
4560 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4561 * config/spu/t-spu-elf: Fix dependencies.
4563 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4565 2010-05-29 Mike Stump <mikestump@comcast.net>
4568 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4569 TM_H when building to avoid dependency loops.
4571 2010-05-29 Jan Hubicka <jh@suse.cz>
4573 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4574 refs and body; not the whole node for masters of materialized clones.
4576 2010-05-29 Mike Stump <mikestump@comcast.net>
4578 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4580 2010-05-29 Jan Hubicka <jh@suse.cz>
4582 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4583 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4584 use of clone_function_name.
4585 * cgraph.h (cgraph_create_virtual_clone,
4586 cgraph_function_versioning): update prototypes.
4587 (clone_function_name): Declare.
4588 * ipa-cp.c (ipcp_insert_stage): Update call of
4589 cgraph_create_virtual_clone.
4590 * omp-low.c (create_omp_child_function_name): Use
4591 cgraph_create_virtual_clone.
4592 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4593 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4594 and make decl local.
4596 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4598 * vec.h: Include statistics.h
4599 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4602 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4604 * c-lex.c: Do not include c-tree.h.
4605 * c-pretty-print.c: Likewise.
4606 * c-opts.c: Likewise.
4607 * c-gimplify.c: Likewise.
4608 * c-common.c: Likewise.
4609 * c-dump.c: Likewise. Include c-common.h.
4611 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4613 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4614 before including diagnostic-core.h.
4615 (c_cpp_error): New prototype moved from c-tree.h.
4616 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4617 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4618 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4619 (c_cpp_error): Prototype moved to c-common.h.
4620 * Makefile.in: Update dependency for C_COMMON_H.
4622 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4624 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4625 * c-common.c (c_register_addr_space): Remove here.
4626 * c-decl.c (c_register_addr_space): Re-add here.
4628 2010-05-28 Mike Stump <mikestump@comcast.net>
4630 * config/darwin-c.c: Remove c-tree.h include.
4632 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4634 * gcc.c: Include diagnostic.h.
4635 (error_count): Remove. All users changed to use errorcount.
4636 (programname): Remove. All users changed to use progname.
4637 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4639 (execute): Don't include "Internal error" and bug reporting
4640 information in argument of internal_error call.
4641 (process_command): Don't increment error_count after calling
4643 (input_filename): Rename to gcc_input_filename. All users
4645 (main): Call diagnostic_initialize. Register delete_temp_files
4646 with atexit. Use seen_error to test for errors.
4647 * gcc.h: Include diagnostic-core.h.
4648 (fatal_error, error, warning): Remove.
4649 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4650 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4651 (gcc.o): Update dependencies.
4653 2010-05-28 Jeff Law <law@redhat.com>
4655 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4657 * ira.h (ira_bad_reload_regno): Declare
4658 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4660 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4661 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4662 (allocno_reload_assign): Likewise.
4664 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4666 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4669 2010-05-28 Richard Guenther <rguenther@suse.de>
4672 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4673 Stream fixed-point constants mode.
4674 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4676 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4677 Stream fixed-point constants mode.
4678 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4681 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4683 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4684 only place it was called from.
4685 (number_of_latch_executions): Do not return chrec_dont_know when the
4686 may_be_zero is a runtime condition: instead, return a COND_EXPR
4687 including the may_be_zero condition.
4688 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4690 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4693 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4695 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4696 generate COND_EXPRs for degenerate_phi_result.
4698 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4701 * tree-if-conv.c (if_convertible_loop_p): Check the
4702 if-convertibility of phi nodes in non predicated BBs.
4704 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4706 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4708 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4711 * gcc.c (inform, warning, inform): New functions.
4712 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4713 gmsgid. All callers changed.
4714 (notice): Rename to fnotice; add parameter fp. All callers changed.
4715 (fatal_error): Rename to fatal_signal. All users changed.
4716 (fatal): Rename to fatal_error; change cmsgid parameter to
4717 gmsgid. All callers changed.
4718 (process_command): Use warning instead of error for warnings.
4719 (end_going_arg): Don't use _() around argument of error.
4720 (do_spec_1): Use inform for message from %n specs. Use warning
4721 instead of error for warnings.
4722 (main): Use inform for comparison messages. Use warning for
4723 message about unused linker input.
4724 (error): Increment error_count. Print "error: ".
4725 * gcc.h (fatal): Change to fatal_error.
4727 * config/darwin-driver.c (darwin_default_min_version): Use warning
4728 instead of fprintf for warnings.
4729 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4731 2010-05-28 Julian Brown <julian@codesourcery.com>
4733 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4734 (*thumb2_addsi3_compare0_scratch): New.
4735 * config/arm/constraints.md (Pv): New.
4736 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4738 (*addsi3_compare0_scratch): Likewise.
4740 2010-05-28 Jan Hubicka <jh@suse.cz>
4742 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4744 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4745 only on local statics.
4747 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4749 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4751 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4754 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4755 (OPTION_GLIBC): Define.
4757 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4760 * dwarf2out.c (double_int_type_size_in_bits): New function.
4761 (round_up_to_align): Change first argument and return value to
4763 (field_byte_offset): Work internally on double_ints.
4766 * builtins.c (expand_movstr): Use a temporary pseudo instead
4767 of target even when target is not NULL and not const0_rtx, but
4768 fails movstr predicate.
4769 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4771 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4773 * final.c (rest_of_clean_state): Use %m in errors instead of
4775 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4776 instead of strerror.
4777 * toplev.c (process_options): Use %m in errors instead of strerror
4779 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4782 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4784 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4785 (ix86_canonical_va_list_type): Make static. Add declaration.
4786 (ix86_enum_va_list): Make static. Reindent.
4787 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4788 (ix86_canonical_va_list_type): Ditto.
4789 (ix86_enum_va_list): Ditto.
4791 2010-05-28 Richard Guenther <rguenther@suse.de>
4793 * lto-wrapper.c (run_gcc): With -save-temps generate a
4794 user-visible ltrans filename. Fixup ltrans unit numbering.
4796 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4798 * c-common.c (c_common_nodes_and_builtins): Replace use
4799 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4800 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4801 to ix86_enum_va_list.
4802 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4803 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4804 (TARGET_ENUM_VA_LIST_P): Add hook description.
4805 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4806 * target.h (gcc_target): Add enum_va_list hook.
4809 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4810 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4811 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4813 2010-05-28 Alan Modra <amodra@gmail.com>
4816 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4817 emit_library_call machinery to set up __tls_get_addr calls.
4819 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4821 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4823 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4825 Revert fix for PR c++/44188
4826 * c-common.c (is_typedef_decl): Revert the moving of this
4828 * tree.c (is_typedef_decl): ... here.
4829 (typdef_variant_p): Revert the moving of this definition
4830 here from gcc/cp/tree.c.
4831 * c-common.h (is_typedef_decl): Revert the moving of this
4833 * tree.h (is_typedef_decl): ... here.
4834 (typedef_variant_p): Revert the moving of this declaration here
4835 from gcc/cp/cp-tree.h
4836 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4837 (gen_tagged_type_die): Revert the splitting out of ...
4838 (gen_type_die_with_usage): ... this function. Revert the anonymous
4839 tagged type handling.
4840 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4841 typedefs naming anonymous tagged types.
4843 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4845 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4847 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4849 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4850 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4852 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4854 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4855 XER_REGS to CA_REGS throughout.
4856 * config/rs6000/rs6000.h: Same.
4857 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4858 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4859 that mode_iterator "P" is the size for arithmetic carries as well.
4860 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4862 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4865 * combine.c (struct rtx_subst_pair): Define unconditionally.
4866 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4867 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4868 Call make_compound_operation on pair->to.
4869 (propagate_for_debug): Don't call make_compound_operation here.
4870 Always use simplify_replace_fn_rtx.
4872 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4874 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4875 * config/xtensa/xtensa.c (override_options): Check
4876 TARGET_FORCE_NO_PIC and set flag_pic.
4877 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4879 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4882 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4883 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4885 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4887 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4889 * diagnostic.c: Don't include toplev.h.
4890 (progname): Define. Moved from toplev.c.
4891 (seen_error): New function.
4892 * diagnostic.h: Include diagnostic-core.h.
4893 (diagnostic_t, emit_diagnostic): Don't declare here.
4894 * toplev.c (progname): Move to toplev.c.
4895 (emit_debug_global_declarations, compile_file, finalize,
4896 do_compile, toplev_main): Use seen_error.
4897 * toplev.h: Include diagnostic-core.h.
4898 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4899 internal_error, warning, warning_at, error, error_n, error_at,
4900 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4901 verbatim, fnotice, progname): Move to diagnostic-core.h.
4902 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4903 (expand_builtin_expect): Use seen_error.
4904 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4905 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4906 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4907 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4908 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4909 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4910 errorcount for errors.
4911 * c-opts.c (c_common_finish): Use seen_error.
4912 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4913 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4914 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4915 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4916 (get_coverage_counts): Use seen_error.
4917 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4918 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4919 gimplify_body): Use seen_error.
4920 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4921 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4922 * ipa-reference.c (gate_reference): Use seen_error.
4923 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4924 * lambda-code.c: Include diagnostic-core.h instead of
4926 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4927 * lto-compress.c: Include diagnostic-core.h instead of
4929 * lto-section-in.c: Include diagnostic-core.h instead of
4931 * lto-streamer-out.c: Include diagnostic-core.h instead of
4933 * lto-streamer.c: Include diagnostic-core.h instead of
4935 (gate_lto_out): Use seen_error.
4936 * matrix-reorg.c: Include diagnostic-core.h instead of
4938 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4939 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4940 (gate_expand_omp, lower_omp_1): Use seen_error.
4941 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4942 (rest_of_decl_compilation, rest_of_type_compilation,
4943 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4944 * tree-cfg.c (label_to_block_fn): Use seen_error.
4945 * tree-inline.c (optimize_inline_calls): Use seen_error.
4946 * tree-mudflap.c (mudflap_finish_file): Use
4948 * tree-optimize.c (gate_all_optimizations,
4949 gate_all_early_local_passes, gate_all_early_optimizations): Use
4951 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4952 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4953 (varpool_remove_unreferenced_decls,
4954 varpool_assemble_pending_decls): Use seen_error.
4955 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4956 (TOPLEV_H, DIAGNOSTIC_H): Update.
4957 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4958 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4959 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4960 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4961 coverage.o, lambda-code.o): Update dependencies.
4963 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4966 * c-common.c (is_typedef_decl): Move this definition ...
4967 * tree.c (is_typedef_decl): ... here.
4968 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4969 * c-common.h (is_typedef_decl): Move this declaration ...
4970 * tree.h (is_typedef_decl): ... here.
4971 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4972 * dwarf2out.c (is_naming_typedef_decl): New function.
4973 (gen_tagged_type_die): Split out of ...
4974 (gen_type_die_with_usage): ... this function. When an anonymous
4975 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4976 is emitted for the typedef.
4977 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4978 anonymous tagged types.
4980 2010-05-27 Jason Merrill <jason@redhat.com>
4982 * print-tree.c (debug_vec_tree): New fn.
4983 (print_vec_tree): New fn.
4984 * tree.h: Declare them.
4985 * gdbinit.in (pvt): New command.
4987 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4989 * gdbinit.in (pdd): New command.
4991 2010-05-27 Jan Hubicka <jh@suse.cz>
4993 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4994 (update_caller_keys): Return early if there are no callers;
4995 only update fibheap when decresing the key.
4996 (update_callee_keys): Avoid recursion.
4997 (decide_inlining_of_small_functions): When badness does not match;
4998 re-insert into fibheap.
5000 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5002 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
5003 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
5004 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
5005 (ALL_HOST_OBJS): Now a union of the above two.
5006 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
5007 all files in ALL_HOST_FRONTEND_OBJS.
5008 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
5010 * c-common.c: Pretend to be a backend file by undefining
5011 IN_GCC_FRONTEND (still need rtl.h here).
5013 2010-05-27 Jan Hubicka <jh@suse.cz>
5015 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
5016 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
5018 2010-05-27 Jan Hubicka <jh@suse.cz>
5020 * sched-ebb.c: Rename struct deps to struct deps_desc.
5022 * sel-sched-ir.c: Likewise.
5023 * sched-deps.c: Likewise.
5024 * sched-int.h: Likewise.
5025 * sched-rgn.c: Likewise.
5027 2010-05-27 Jon Beniston <jon@beniston.com>
5030 * config/lm32/lm32.h: Remove definition of
5031 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
5033 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
5036 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
5038 2010-05-27 Richard Guenther <rguenther@suse.de>
5040 PR tree-optimization/44284
5041 * tree-vect-stmts.c (vectorizable_assignment): Handle
5042 sign-changing conversions as simple copy.
5044 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5046 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
5048 (__gthread_active_p): Check for pthread_create if compiling against
5051 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5053 Support compilation for Android platform. Reimplement -mandroid.
5055 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
5056 (*android*): Set ANDROID_DEFAULT.
5057 (arm*-*-linux*): Include linux-android.h.
5058 (arm*-*-eabi*): Don't include previous -mandroid implementation.
5059 * config/arm/eabi.h: Remove, move Android-specific parts ...
5060 * config/linux-android.h: ... here. New file.
5061 * config/arm/eabi.opt: Rename to ...
5062 * config/linux-android.opt: ... this.
5063 (mandroid): Allow -mno-android option. Initialize based on
5065 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
5066 Move logic to corresponding LINUX_TARGET_* macros.
5067 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
5068 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
5069 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
5070 Android definitions.
5071 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
5072 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
5075 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5077 Add support for Bionic C library
5079 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
5081 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
5082 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
5084 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
5085 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
5086 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
5087 to support multiple C libraries. Handle Bionic.
5088 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
5089 (BIONIC_DYNAMIC_LINKER64): Define.
5090 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
5092 (TARGET_HAS_SINCOS): Enable for Bionic.
5094 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
5095 the last option specified on command line take effect.
5096 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
5098 (mglibc, muclibc): Update.
5100 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
5101 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
5104 * doc/invoke.texi (-mglibc, -muclibc): Update.
5105 (-mbionic): Document.
5107 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5109 * c-common.h (c_register_addr_space): Add prototype.
5110 (ADDR_SPACE_KEYWORD): Remove.
5111 * c-common.c (c_register_addr_space): New function.
5112 (c_addr_space_name): Reimplement.
5113 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
5115 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
5116 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
5118 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
5119 Remove TARGET_ADDR_SPACE_KEYWORDS.
5121 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5123 * input.c: New file.
5124 * input.h (main_input_filename): Move declaration to toplev.h.
5125 * toplev.c (input_location, line_table): Move to input.c
5126 * toplev.h (main_input_filename): Move declaration from input.h.
5127 * tree.c (expand_location): Move to input.c.
5128 * Makefile.in (OBJS-common): Add input.o.
5129 (input.o): Add dependencies.
5131 2010-05-27 Richard Guenther <rguenther@suse.de>
5133 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
5134 for non-existant files.
5135 (fork_execute): Mark args_name file as deleted.
5137 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5140 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
5141 (narrow_signed_type): Likewise.
5143 2010-05-26 Jan Hubicka <jh@suse.cz>
5145 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
5146 edge only when checking is enabled; check using former_clone_of;
5147 check inline clones too.
5148 (cgraph_materialize_clone): Record former_clone_of pointer.
5149 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
5150 combining redirections; dump args_to_skip bitmap
5151 (cgraph_materialize_all_clones): Do no redirection here.
5152 * ipa-inline.c (inline_transform): Do redirection here.
5153 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5156 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5158 * config/avr/avr-c.c: Do not include regs.h.
5159 Include cpplib.h for cpp_define and tree.h for c-common.h.
5160 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5161 * config/avr/t-avr: Fix dependencies for avr-c.o.
5163 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5165 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5166 string instead of SYMBOL_REF rtx.
5167 * rtl.h (set_stack_check_libfunc): Move prototype from here...
5168 * libfuncs.h: ...to here. Adjust for explow.c change.
5170 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5172 * pretty-print.c: Don't include ggc.h.
5173 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5174 (identifier_to_locale): Use them for allocation.
5175 * pretty-print.h (identifier_to_locale_alloc,
5176 identifier_to_locale_free): Declare.
5177 * toplev.c (alloc_for_identifier_to_locale): New.
5178 (general_init): Set identifier_to_locale_alloc and
5179 identifier_to_locale_free.
5180 * Makefile.in (pretty-print.o): Update dependencies.
5182 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5184 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5185 pointer types if they have different alignment or mode.
5187 2010-05-26 Anatoly Sokolov <aesok@post.ru>
5189 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5190 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5191 * config/sparc/sparc-protos.h (function_value): Remove declaration.
5192 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5193 sparc_function_value_regno_p): New functions.
5194 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5195 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5196 (function_value): Rename to...
5197 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5198 argument to 'outgoing'.
5199 (function_arg_record_value, function_arg_union_value,
5200 function_arg_vector_value): Update comment.
5202 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5204 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5205 (fde_needed_for_eh_p): New predicate.
5206 (output_call_frame_info): Use it throughout to decide whether FDEs
5207 are needed for EH purpose.
5208 (dwarf2out_begin_prologue): Reorder assignments.
5210 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5212 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5213 special case loop->header.
5214 (is_predicated): New.
5215 (if_convertible_loop_p): Call it.
5217 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5219 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5220 iterator in parameter. Do not generate code during the analysis.
5221 (tree_if_convert_cond_stmt): Removed.
5222 (tree_if_convert_stmt): Removed.
5223 (predicate_bbs): New.
5224 (if_convertible_loop_p): Call predicate_bbs.
5225 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5226 now contains all the analysis part.
5228 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5230 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5231 statements in the analysis part.
5232 (tree_if_convert_stmt): Update comment.
5233 (remove_conditions_and_labels): New.
5234 (combine_blocks): Call remove_conditions_and_labels.
5235 (tree_if_conversion): Update comment.
5237 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5239 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5240 than 2 predecessors or more than 2 successors.
5242 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5244 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5245 of loops in which the data dependence analysis fails.
5247 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5249 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5250 CDI_POST_DOMINATORS.
5251 (tree_if_conversion): Same.
5253 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5255 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5257 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5259 * tree-if-conv.c: Update copyright years. Fix comments.
5262 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5264 * builtin-types.def (BT_INT128): New primitive type.
5265 (BT_UINT128): Likewise.
5266 * c-common.c (c_common_r): Add __int128 keyword.
5267 (c_common_type_for_size): Handle __int128.
5268 (c_common_type_for_mode): Likewise.
5269 (c_common_signed_or_unsigned_type): Likewise.
5270 (c_common_nodes_and_builtins): Add builtin type
5271 if target supports 128-bit integer scalar.
5272 * c-common.h (enum rid): Add RID_INT128.
5273 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5274 if target supports 128-bit integer scalar.
5275 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5276 (finish_declspecs): Likewise.
5277 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5278 (c_token_starts_declspecs): Likewise.
5279 (c_parser_declspecs): Likewise.
5280 (c_parser_attributes): Likewise.
5281 (c_parser_objc_selector): Likewise.
5282 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5283 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5284 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5285 * tree.c (make_or_reuse_type): Likewise.
5286 (make_unsigned_type): Likewise.
5287 (build_common_tree_nodes_2): Likewise.
5288 * tree.h (enum integer_type_kind): Add itk_int128 and
5289 itk_unsigned_int128.
5290 (int128_integer_type_node): New define.
5291 (int128_unsigned_type_node): New define.
5292 * doc/extend.texi: Add documentation about __int128 type.
5294 2010-05-26 Richard Guenther <rguenther@suse.de>
5296 * tree-ssa-sccvn.c (copy_nary): Adjust.
5297 (copy_phis): Rename to ...
5298 (copy_phi): ... this. Adjust.
5299 (copy_references): Rename to ...
5300 (copy_reference): ... this. Adjust.
5301 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5302 result into the valid table.
5304 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5306 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5307 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5309 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5311 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5313 2010-05-26 Richard Guenther <rguenther@suse.de>
5315 * opts.c (common_handle_option): Handle OPT_Ofast.
5317 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5319 * diagnostic.c: Don't include opts.h.
5320 (permissive_error_option): Define.
5321 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5322 for classify_diagnostic. Don't use memset for
5323 classify_diagnostic. Initialize new and recently added fields.
5324 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5326 (diagnostic_report_diagnostic): Pass context parameter to
5327 diagnostic_report_warnings_p. Use option_enabled and option_name
5329 (emit_diagnostic): Use permissive_error_option.
5330 (permerror): Likewise.
5331 * diagnostic.h: Don't include options.h.
5332 (struct diagnostic_context): Add n_opts, opt_permissive,
5333 inhibit_warnings, warn_system_headers, option_enabled and
5334 option_name fields. Change classify_diagnostic to a pointer.
5335 * opts-diagnostic.h: New file.
5336 * opts.c: Include opts-diagnostic.h.
5337 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5338 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5339 (option_name): New function.
5340 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5341 (c_common_handle_option): Set global_dc->permissive for
5343 * c-common.c (c_cpp_error): Save and restore
5344 global_dc->warn_system_headers, not variable warn_system_headers.
5345 * toplev.c: Include opts-diagnostic.h.
5346 (general_init): Update call to diagnostic_initialize. Set
5347 global_dc->show_column, global_dc->option_enabled and
5348 global_dc->option_name.
5349 (process_options): Don't set global_dc fields here.
5350 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5351 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5353 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5355 * config/picochip/picochip.md (movsi): Split a movsi from a
5358 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5360 * ggc-zone.c: Update copyright year.
5361 (poison_region): Mark memory for Valgrind as undefined before
5362 memset () call and inaccessible afterwards.
5363 (ggc_pch_total_size): Change type of i to int.
5365 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5367 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5369 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5371 * ggc-common.c: Update copyright year.
5372 (ggc_rlimit_bound): Remove prototype. Compile only if
5373 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5374 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5375 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5376 (ggc_min_heapsize_heuristic): Likewise.
5378 2010-05-26 Richard Guenther <rguenther@suse.de>
5380 PR rtl-optimization/44164
5381 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5382 no-common access-path disambiguation.
5383 (indirect_ref_may_alias_decl_p): Adjust.
5384 (indirect_refs_may_alias_p): Likewise.
5385 (refs_may_alias_p_1): Likewise.
5387 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5389 * c-typeck.c: Do not include expr.h.
5391 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5393 * rtl.h (decl_default_tls_model): Move prototype from here...
5394 * output.h: ...to here.
5395 * c-decl.c: Do not include rtl.h.
5396 * c-pragma.c: Likewise.
5397 * c-parser.c: Likewise.
5398 * c-gimplify.c: Likewise. And also not hard-reg-set.
5399 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5400 FIXME note for it. Add a FIXME note for expr.h.
5401 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5402 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5405 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5408 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5409 or total_size is larger than red zone size for non-V4 ABI, emit a
5410 stack_tie resp. frame_tie insn before stack pointer restore.
5411 * config/rs6000/rs6000.md (frame_tie): New insn.
5413 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5415 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5416 * lto-streamer-in.c (input_function): Stream it in.
5417 * lto-streamer-out.c (output_function): Stream it out.
5418 * function.c (allocate_struct_function): Set it.
5419 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5420 for flag_non_call_exceptions.
5421 * cfgbuild.c (control_flow_insn_p): Likewise.
5422 (make_edges): Likewise.
5423 * cfgexpand.c (expand_stack_alignment): Likewise.
5424 * combine.c (distribute_notes): Likewise.
5425 * cse.c (cse_extended_basic_block): Likewise.
5426 * except.c (insn_could_throw_p): Likewise.
5427 * gcse.c (simple_mem): Likewise.
5428 * ipa-pure-const.c (check_call): Likewise.
5429 (check_stmt ): Likewise.
5430 * lower-subreg.c (lower-subreg.c): Likewise.
5431 * optabs.c (emit_libcall_block): Likewise.
5432 (prepare_cmp_insn): Likewise.
5433 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5434 * postreload.c (rest_of_handle_postreload): Likewise.
5435 * reload1.c (reload_as_needed): Likewise.
5436 (emit_input_reload_insns): Likewise.
5437 (emit_output_reload_insns): Likewise.
5438 (fixup_abnormal_edges): Likewise.
5439 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5440 * store-motion.c (find_moveable_store): Likewise.
5441 * tree-eh.c (stmt_could_throw_p): Likewise.
5442 (tree_could_throw_p): Likewise.
5443 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5444 * config/arm/arm.c (arm_expand_prologue): Likewise.
5445 (thumb1_expand_prologue): Likewise.
5446 * config/rx/rx.md (cbranchsf4): Likewise.
5448 * config/s390/s390.c (s390_emit_prologue): Likewise.
5449 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5450 (inline_forbidden_into_p): New predicate.
5451 (expand_call_inline): Use it to forbid inlining.
5452 (tree_can_inline_p): Likewise.
5454 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5456 * config/i386/i386-c.c: Do not include rtl.h.
5457 * config/i386/t-i386: Update dependencies.
5459 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5461 * attribs.c: Do not include rtl.h.
5462 * Makefile.in: Update dependencies.
5464 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5466 * double-int.h (double_int_and): New.
5467 * combine.c (try_combine): Clean up, use double_int_* and
5468 immed_double_int_const functions.
5470 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5472 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5473 stderr to /dev/null instead of grep -q.
5474 * configure: Regenerate.
5476 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5478 * Makefile.in (EXCEPT_H): Fix typo.
5480 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5482 * ira-build.c (update_conflict_hard_reg_costs): New.
5483 (ira_build): Call update_conflict_hard_reg_costs.
5485 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5488 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5490 (intersect_loc_chains): Walk the s2var's loc_chain together
5491 with s1node chain as long as the locations are equal, don't
5492 call find_loc_in_1pdv in that case.
5495 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5496 (copy_bind_expr): ... instead of here.
5497 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5498 if the block hasn't been remapped.
5499 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5500 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5502 2010-05-25 Richard Guenther <rguenther@suse.de>
5505 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5506 out-of-bounds array accesses.
5508 2010-05-25 Richard Guenther <rguenther@suse.de>
5510 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5511 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5512 (run_gcc): Re-organize to make cleanup easier.
5514 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5516 * config/s390/s390.c (optimization_options): Fix and move the
5517 flag_prefetch_loop_arrays override ...
5518 (override_options): ... here.
5520 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5522 * diagnostic.c: Don't include plugin.h.
5523 (diagnostic_report_diagnostic): Don't handle plugins specially
5524 here. Pass context to internal_error callback.
5525 * diagnostic.h (struct diagnostic_context): Add context parameter
5526 to internal_error callback.
5527 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5528 * plugin.h (struct diagnostic_context): Declare.
5529 (warn_if_plugins, plugins_internal_error_function): Declare.
5530 * toplev.c (general_init): Set global_dc->internal_error.
5531 * Makefile.in (diagnostic.o): Update dependencies.
5533 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5535 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5536 * config/rs6000/t-darwin64: New.
5537 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5540 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5543 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5544 match the original (and intended) behaviour before r159557. This
5545 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5548 2010-05-25 Richard Guenther <rguenther@suse.de>
5550 * doc/invoke.texi: Document -Ofast.
5551 * target.h (struct gcc_target): Add handle_ofast.
5552 * target-def.h (TARGET_HANDLE_OFAST): Add.
5553 (TARGET_INITIALIZER): Adjust.
5554 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5555 * common.opt (Ofast): Add.
5557 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5559 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5560 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5562 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5565 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5566 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5567 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5568 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5570 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5572 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5573 DW_OP_minus with negated offset instead of DW_OP_plus.
5574 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5576 2010-05-25 Wei Guozhi <carrot@google.com>
5578 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5579 tst instruction and a new alternative.
5580 * config/arm/constraints.md (Pu): New constraint.
5582 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5584 * function.c (assign_stack_local_1): Initialize variable
5585 to avoid warning when bootstrapping at -O3.
5587 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5589 * configure.ac (all_lang_makefiles): Remove everything related to it.
5590 * configure: Regenerate.
5591 * Makefile.in: Fix reference to ada Make-lang.in.
5592 Remove support for LANG_MAKEFILES.
5594 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5595 Sandra Loosemore <sandra@codesourcery.com>
5597 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5598 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5599 description. Add arm_neon_fp16_ok.
5600 (Add Options): Add arm_neon and arm_neon_fp16.
5602 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5604 * diagnostic.c: Don't include flags.h.
5605 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5606 context parameters. Check flags in the context passed as a parameter.
5607 (diagnostic_build_prefix): Add context parameter. Check
5608 show_column flag in context.
5609 (diagnostic_action_after_output): Check fatal_errors flag in context.
5610 (diagnostic_report_current_module): Check show_column flag in context.
5611 (default_diagnostic_starter): Update call to
5612 diagnostic_build_prefix.
5613 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5614 (emit_diagnostic): Pass context to permissive_error_kind.
5615 (permerror): Pass context to permissive_error_kind.
5616 * diagnostic.h (struct diagnostic_context): Add show_column,
5617 pedantic_errors, permissive and fatal_errors fields.
5618 (diagnostic_build_prefix): Update prototype.
5620 * toplev.c (process_options): Set flags in global_dc from
5621 flag_show_column, flag_pedantic_errors, flag_permissive,
5623 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5624 to diagnostic_build_prefix.
5625 * Makefile.in (diagnostic.o): Update dependencies.
5627 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5629 * config/i386/ia32intrin.h (__crc32q): Define only if
5630 __SSE4_2__ is defined.
5632 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5636 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5637 DECL_VISIBILITY_SPECIFIED.
5638 (emutls_decl): Set DECL_PRESERVE_P and copy
5639 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5640 (emutls_finalize_control_var): New callback.
5641 (emutls_finish): Finalize emutls control variables.
5642 * toplev.c (compile_file): Move the call to emutls_finish ()
5643 before varpool_assemble_pending_decls ().
5645 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5647 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5648 added to the preprocessor condition.
5650 2010-05-24 Paul Brook <paul@codesourcery.com>
5652 * gengtype-lex.l: Add HARD_REG_SET.
5653 * expr.c (expand_expr_real_1): Record writes to hard registers.
5654 * function.c (rtl_data): Add asm_clobbers.
5655 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5656 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5657 Use crtl->asm_clobbers.
5659 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5661 * doc/makefile.texi (Makefile): Mention stages 'profile'
5662 and 'feedback' for profiledbootstrap.
5664 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5667 * config/i386/i386.c (def_builtin): Properly check
5668 OPTION_MASK_ISA_64BIT.
5670 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5672 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5673 typedefs with different but compatible types. Allow duplicate
5674 typedefs with the same type except for pedantic non-C1X, but give
5675 warning for variably modified types.
5676 * c-typeck.c (tagged_types_tu_compatible_p,
5677 function_types_compatible_p, type_lists_compatible_p,
5678 comptypes_internal): Add parameter different_types_p; set
5679 *different_types_p for different but compatible types. All
5681 (comptypes_check_different_types): New.
5682 * c-tree.h (comptypes_check_different_types): Declare.
5684 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5686 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5687 * jump.c: Include basic-block.h.
5688 * profile.c: Likewise.
5689 * tree-profile.c: Likewise.
5690 * coverage.c: Likewise.
5691 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5692 (optimize_function_for_speed_p): Likewise.
5693 * function.h (optimize_function_for_size_p,
5694 optimize_function_for_speed_p): Moved here from basic-block.h.
5695 * Makefile.in: Update dependencies.
5697 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5699 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5700 before calling make; allow override through $MAKE.
5701 * doc/invoke.texi (Optimize Options): Document override.
5703 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5705 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5706 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5707 (rs6000_mode_dependent_address_ptr): Make static.
5708 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5709 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5712 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5715 * config/i386/i386.c: Make sure that the correct regparm is passed.
5717 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5719 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5720 * sbitmap.c: ...to here to internalize sbitmap element access.
5721 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5722 Explain why basic-block.h is included.
5723 * function.h: Include tm.h for CUMULATIVE_ARGS.
5724 * Makefile.in: Update dependencies.
5726 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5728 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5730 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5731 * sbitmap.c: Include sbitmap.h.
5732 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5733 hard-reg-set.h. Split everything related to regsets out from here...
5734 * regset.h: ...to here. New file.
5735 * df.h: Include regset.h and sbitmap.h.
5736 * tree-flow.h: Likewise.
5737 * cfgloop.h: Likewise.
5738 * except.h: Do not include sbitmap.h. Include hashtab.h.
5739 * cgraph.h: Include vec.h and function.h.
5740 * reload.h (struct insn_chain): Change types of live_throughout
5741 and dead_or_set from regset_head to bitmap_head.
5742 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5743 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5744 spilled_regs from regset_head to bitmap_head to avoid dependency
5746 * sel-sched-ir.h: Include regset.h.
5747 * reload.c: Include df.h before reload.h.
5748 * caller-save.c: Likewise.
5749 * reload1.c: Likewise.
5751 (mark_elimination): Update type of r to bitmap, consistent with
5753 * dominance.c: Include bitmap.h.
5754 * modulo-sched.c: Include df.h.
5755 * cfganal.c: Include bitmap.h and sbitmap.h.
5756 * cfgbuild.c: Include sbitmap.h.
5757 * lcm.c: Include sbitmap.h.
5758 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5759 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5760 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5761 * cselib.c: Include bitmap.h.
5762 * tree-optimize.c: Include regset.h.
5763 * stmt.c: Include bitmap.h.
5764 * Makefile.in: Update dependencies.
5766 2010-05-22 Jan Hubicka <jh@suse.cz>
5768 * cgraph.h (struct varpool_node): Add same_comdat_group.
5769 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5771 (output_varpool): Update call of lto_output_varpool_node.
5772 (input_varpool): Read same_comdat_group pointer.
5773 (input_varpool_1): Fixup same_comdat_group pointer.
5774 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5775 group is needed, all are.
5776 * varpool.c (varpool_remove_node): Remove node from same comdat group
5778 (varpool_analyze_pending_decls): Walk same comdat groups.
5780 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5782 * rtl.h (union rtunion_def): Remove rt_bit member.
5783 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5784 * print-rtl (print_rtx): Do not print the member.
5785 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5786 * gengenrtl.c (type_from_format): Likewise.
5787 (accessor_from_format): Likewise.
5789 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5791 * dbgcnt.c: Include toplev.h instead of errors.h.
5792 * ira-emit.c: Don't include errors.h.
5793 * ira.c: Include toplev.h instead of errors.h.
5794 * lto-compress.c: Include toplev.h instead of errors.h.
5795 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5796 ira.o, dbgcnt.o): Update dependencies.
5798 2010-05-22 Richard Guenther <rguenther@suse.de>
5800 * gimple.c (gimple_types_compatible_p): Check type qualifications
5801 before merging pointer to complete and pointer to incomplete type.
5802 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5803 we use our own resolution algorithm. The gold linker plugin
5804 doesn't do the job we want it to do here.
5806 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5808 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5809 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5810 (sparc_mode_dependent_address_p): New function.
5812 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5814 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5816 * timevar.c: Do not include any core headers.
5817 (timevar_print): De-i18n-ize.
5818 (print_time): Likewise.
5819 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5821 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5823 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5825 (diagnostic_initialize): Initialize x_data not last_function.
5826 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5827 (default_diagnostic_starter): Call
5828 diagnostic_report_current_module not
5829 diagnostic_report_current_function.
5830 (diagnostic_report_diagnostic): Initialize x_data not
5832 (verbatim): Likewise.
5833 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5835 (struct diagnostic_context): Change last_function to x_data.
5836 (diagnostic_auxiliary_data): Replace with
5837 diagnostic_context_auxiliary_data and
5838 diagnostic_info_auxiliary_data.
5839 (diagnostic_last_function_changed, diagnostic_set_last_function,
5840 diagnostic_report_current_function): Move to tree-diagnostic.h.
5841 (print_declaration, dump_generic_node, print_generic_stmt,
5842 print_generic_stmt_indented, print_generic_expr,
5843 print_generic_decl, debug_c_tree, dump_omp_clauses,
5844 print_call_name, debug_generic_expr, debug_generic_stmt,
5845 debug_tree_chain, default_tree_printer): Move to
5846 tree-pretty-print.h.
5847 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5848 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5849 gimple-pretty-print.h.
5850 * pretty-print.c: Don't include tree.h
5851 (pp_base_format): Don't handle %K here.
5852 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5853 * pretty-print.h (text_info): Change abstract_origin to x_data.
5854 (pp_tree_identifier, pp_unsupported_tree,
5855 pp_base_tree_identifier): Move to tree-pretty-print.h.
5856 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5857 tree-pretty-print.h: New files.
5858 * tree-pretty-print.c: Include tree-pretty-print.h.
5859 (percent_K_format): New. Moved from pretty-print.c.
5860 (pp_base_tree_identifier): Move from pretty-print.c.
5861 * c-objc-common.c: Include tree-pretty-print.h.
5862 (c_tree_printer): Handle %K here.
5863 * langhooks.c: Include tree-diagnostic.h.
5864 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5865 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5866 (default_tree_printer): Handle %K using percent_K_format.
5867 (general_init): Use default_tree_diagnostic_starter.
5868 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5869 (free_lang_data): Use default_tree_diagnostic_starter.
5870 * c-pretty-print.c: Include tree-pretty-print.h.
5871 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5872 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5873 * dwarf2out.c: Include tree-pretty-print.h.
5874 * except.c: Include tree-pretty-print.h.
5875 * gimple-pretty-print.c: Include tree-pretty-print.h and
5876 gimple-pretty-print.h.
5877 * gimplify.c: Include tree-pretty-print.h.
5878 * graphite-poly.c: Include tree-pretty-print.h and
5879 gimple-pretty-print.h.
5880 * ipa-cp.c: Include tree-pretty-print.h.
5881 * ipa-inline.c: Include gimple-pretty-print.h.
5882 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5883 * ipa-pure-const.c: Include gimple-pretty-print.h.
5884 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5885 gimple-pretty-print.h.
5886 * ipa-type-escape.c: Include tree-pretty-print.h.
5887 * print-rtl.c: Include tree-pretty-print.h.
5888 * print-tree.c: Include gimple-pretty-print.h.
5889 * sese.c: Include tree-pretty-print.h.
5890 * tree-affine.c: Include tree-pretty-print.h.
5891 * tree-browser.c: Include tree-pretty-print.h.
5892 * tree-call-cdce.c: Include gimple-pretty-print.h.
5893 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5894 * tree-chrec.c: Include tree-pretty-print.h.
5895 * tree-data-ref.c: Include tree-pretty-print.h and
5896 gimple-pretty-print.h.
5897 * tree-dfa.c: Include tree-pretty-print.h.
5898 * tree-if-conv.c: Include tree-pretty-print.h and
5899 gimple-pretty-print.h.
5900 * tree-inline.c: Include tree-pretty-print.h.
5901 * tree-into-ssa.c: Include tree-pretty-print.h and
5902 gimple-pretty-print.h.
5903 * tree-nrv.c: Include tree-pretty-print.h.
5904 * tree-object-size.c: Include tree-pretty-print.h and
5905 gimple-pretty-print.h.
5906 * tree-outof-ssa.c: Include tree-pretty-print.h and
5907 gimple-pretty-print.h.
5908 * tree-parloops.c: Include tree-pretty-print.h and
5909 gimple-pretty-print.h.
5910 * tree-predcom.c: Include tree-pretty-print.h and
5911 gimple-pretty-print.h.
5912 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5913 gimple-pretty-print.h.
5914 * tree-sra.c: Include tree-pretty-print.h.
5915 * tree-ssa-address.c: Include tree-pretty-print.h.
5916 * tree-ssa-alias.c: Include tree-pretty-print.h.
5917 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5918 gimple-pretty-print.h.
5919 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5920 * tree-ssa-copy.c: Include tree-pretty-print.h and
5921 gimple-pretty-print.h.
5922 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5923 * tree-ssa-dce.c: Include tree-pretty-print.h and
5924 gimple-pretty-print.h.
5925 * tree-ssa-dom.c: Include tree-pretty-print.h and
5926 gimple-pretty-print.h.
5927 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5928 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5929 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5930 * tree-ssa-live.c: Include tree-pretty-print.h and
5931 gimple-pretty-print.h.
5932 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5933 gimple-pretty-print.h.
5934 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5935 gimple-pretty-print.h.
5936 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5937 gimple-pretty-print.h.
5938 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5939 gimple-pretty-print.h.
5940 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5941 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5942 * tree-ssa-operands.c: Include tree-pretty-print.h and
5943 gimple-pretty-print.h.
5944 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5945 gimple-pretty-print.h.
5946 * tree-ssa-pre.c: Include tree-pretty-print.h and
5947 gimple-pretty-print.h.
5948 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5949 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5950 gimple-pretty-print.h.
5951 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5952 gimple-pretty-print.h.
5953 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5954 * tree-ssa-ter.c: Include tree-pretty-print.h and
5955 gimple-pretty-print.h.
5956 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5957 * tree-ssa.c: Include tree-pretty-print.h and
5958 gimple-pretty-print.h.
5959 * tree-stdarg.c: Include gimple-pretty-print.h.
5960 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5961 * tree-tailcall.c: Include tree-pretty-print.h and
5962 gimple-pretty-print.h.
5963 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5964 gimple-pretty-print.h.
5965 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5966 gimple-pretty-print.h.
5967 * tree-vect-loop.c: Include tree-pretty-print.h and
5968 gimple-pretty-print.h.
5969 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5970 * tree-vect-slp.c: Include tree-pretty-print.h and
5971 gimple-pretty-print.h.
5972 * tree-vect-stmts.c: Include tree-pretty-print.h and
5973 gimple-pretty-print.h.
5974 * tree-vectorizer.c: Include tree-pretty-print.h.
5975 * tree-vrp.c: Include tree-pretty-print.h and
5976 gimple-pretty-print.h.
5977 * value-prof.c: Include tree-pretty-print.h and
5978 gimple-pretty-print.h.
5979 * var-tracking.c: Include tree-pretty-print.h.
5980 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5981 (tree-diagnostic.o): New dependencies.
5982 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5983 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5984 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5985 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5986 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5987 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5988 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5989 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5990 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5991 tree-ssa-address.o, tree-ssa-loop-niter.o,
5992 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5993 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5994 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5995 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5996 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5997 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5998 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5999 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
6000 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
6001 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
6002 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
6003 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
6004 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
6005 tree-switch-conversion.o, var-tracking.o, value-prof.o,
6006 cfgexpand.o, pretty-print.o): Update dependencies.
6008 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
6010 * tree-ssa-structalias.c: Remove tm_p.h from include.
6012 2010-05-21 Jeff Law <law@redhat.com>
6014 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
6016 2010-05-21 Jason Merrill <jason@redhat.com>
6018 * tree-eh.c (cleanup_is_dead_in): New.
6019 (lower_try_finally): Don't generate a dead cleanup region.
6020 (lower_cleanup): Likewise.
6022 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6025 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
6026 unchain each use from the cyclic next_regno_use chain first.
6028 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6030 * real: Do not include gmp.h, mpfr.h, and mpc.h.
6031 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
6032 (real_value_negate, real_value_abs): New prototypes.
6033 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
6034 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
6035 new include file for interface between MPFR and REAL_VALUE_TYPE.
6036 * real.c: Include realmpfr.h.
6037 (real_arithmetic2): Remove legacy function.
6038 (real_value_negate): New.
6039 (real_value_abs): New.
6040 (mfpr_from_real, real_from_mpfr): Move from here...
6041 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
6042 * builtins.c: Include realmpfr.h.
6043 * fold-const.c: Include realmpfr.h.
6044 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
6045 (fold_negate_const): Likewise.
6046 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
6047 * toplev.c: Include realmpfr.h.
6048 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
6049 and real_value_negate.
6050 * fixed-value.c (check_real_for_fixed_mode): Likewise.
6051 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
6052 (vfp3_const_double_index): Likewise.
6053 (arm_print_operand): Likewise.
6054 * Makefile.in: Update dependencies.
6056 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6058 * config/s390/s390.c (override_options): Increase the default
6059 of max-completely-peel-times.
6061 2010-05-21 Julian Brown <julian@codesourcery.com>
6062 Mark Mitchell <mark@codesourcery.com>
6064 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
6065 sibling calls for Thumb-1.
6066 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
6067 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
6069 (*call_insn, *call_value_insn): Don't use for Thumb-2.
6070 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
6072 (return): New expander.
6073 (*arm_return): New name for ARM return insn.
6074 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
6076 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
6078 * config.gcc (sparc64-*-rtems*): New target.
6080 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6082 * tree.c (build_function_decl_skip_args): Fix grammar.
6083 (build_function_type_list_1): Fix typos, adjust formatting.
6085 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6087 * tree.h: Include real.h and fixed-value.h as basic datatypes.
6088 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
6089 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
6090 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
6091 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
6092 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
6093 tree-pretty-print.c, tree-loop-distribution.c,
6094 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
6095 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
6096 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
6097 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
6098 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
6099 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
6100 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
6101 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
6102 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
6103 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
6104 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
6105 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
6106 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
6107 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
6108 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
6109 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
6110 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
6111 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
6112 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
6113 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
6114 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
6115 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
6116 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
6117 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
6118 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
6119 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
6120 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
6121 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
6122 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
6123 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
6124 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
6125 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
6126 config/score/score7.c, config/score/score.c, config/arm/arm.c,
6127 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
6128 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
6129 config/bfin/bfin.c: Clean up redundant includes.
6130 * Makefile.in: Update accordingly.
6132 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6135 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
6136 statement has no arguments.
6138 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
6141 * varasm.c (emutls_decl): Merge attributes to new decl.
6143 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
6146 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
6147 around the uniquized constructor if its type requires a conversion.
6149 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6152 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
6153 at -O0 goto_locus of any of the incoming edges differs from
6154 goto_locus of outgoing edge, or gimple_location of any of the
6157 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
6159 * ira.c (ira_non_ordered_class_hard_regs): Define.
6160 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6161 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6162 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6163 cost of unaligned hard regs when allocating multi-reg pseudos.
6165 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
6167 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6168 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6169 for TARGET_NO_FLOAT.
6170 * config/mips/mips.c (mips_file_start): Expand conditional expression
6171 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6172 (mips_override_options): Move -mno-float override -msoft-float and
6174 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6175 Condition(TARGET_SUPPORTS_NO_FLOAT).
6176 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6177 __mips_no_float here.
6178 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6179 (TARGET_SUPPORTS_NO_FLOAT): Define.
6180 * config/mips/sdemtk.opt: Delete.
6182 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6184 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6186 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
6189 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6190 * configure: Regenerate.
6191 * config.in: Regenerate.
6192 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6193 instead of sahf only for 64bit targets.
6195 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6198 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6199 setup_ref_regs for DEBUG_INSNs.
6201 2010-05-20 Jan Hubicka <jh@suse.cz>
6204 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6206 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6209 * df-scan.c (df_ref_compare): Stabilize sort.
6211 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6213 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6214 argument. Don't use DW_OP_piece if offset is non-zero,
6215 put offset into second DW_OP_bit_piece argument.
6216 (dw_sra_loc_expr): Adjust callers. For memory expressions
6219 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6222 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6223 settings for 16-bit-constant "addo" alternative.
6225 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6227 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6228 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6231 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6232 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6235 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6237 * diagnostic.c (FLOAT, FFS): Don't undefine.
6238 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6239 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6242 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6244 * combine.c (propagate_for_debug): Call make_compound_operation
6245 on the source value.
6246 (try_combine): When implementing a split chosen by find_split_point,
6247 either copy i2src or set it to null. Assert that i2src is not null
6248 before substituting into CALL_INSN_FUNCTION_USAGE.
6250 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6252 * double-int.h (double_int_ior): New function.
6253 * tree.h (build_int_cst_wide_type): Remove.
6254 * tree.c (build_int_cst_wide_type): Remove.
6255 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6256 of build_int_cst_wide_type.
6257 * stor-layout.c (set_sizetype): (Ditto.).
6258 * dojump.c (do_jump): Use build_int_cstu instead of
6259 build_int_cst_wide_type.
6261 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6263 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6264 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6265 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6266 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6267 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6268 propagate the 'data' argument to copy_tree_r.
6269 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6270 Propagate 'data' argument to walk_tree.
6271 (copy_if_shared): New function.
6272 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6273 (unmark_visited): New function.
6274 (unshare_body): Call copy_if_shared instead of doing it manually.
6275 (unvisit_body): Call unmark_visited instead of doing it manually.
6277 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6279 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6280 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6281 * hooks.c: Likewise.
6282 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6283 hook_tree_tree_int_treep_bool_null.
6284 * target.h (struct gcc_target): Update signature of fold_builtin
6286 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6287 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6288 instead of the call expression.
6289 (fold_builtin_call_array): Pass n and argarray directly.
6290 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6292 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6293 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6294 `i' and use it in place of `arity'.
6295 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6296 Dereference `args' directly.
6297 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6299 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6301 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6303 (Directives): Document optional dg-require-effective-target
6306 2010-05-19 Richard Guenther <rguenther@suse.de>
6309 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6311 2010-05-19 Richard Guenther <rguenther@suse.de>
6313 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6314 * common.opt (fwhopr=): New.
6315 * opts.c (common_handle_option): Handle OPT_fwhopr.
6316 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6317 * collect2.c (main): Match -fwhopr*.
6318 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6319 Execute ltrans stage in parallel when jobs is bigger than 1.
6321 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6323 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6324 pentiumpro on Solaris 8/x86 with Sun as.
6325 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6327 (gcc_cv_as_ix86_quad): Check for .quad directive.
6328 * configure: Regenerate.
6329 * config.in: Regenerate.
6330 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6332 2010-05-19 Martin Jambor <mjambor@suse.cz>
6334 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6335 also for indirect edges. Actual printing moved...
6336 (ipa_print_node_jump_functions_for_edge): ...here.
6337 (ipa_compute_jump_functions): Renamed to
6338 ipa_compute_jump_functions_for_edge and made static.
6339 (ipa_compute_jump_functions): New function.
6340 (make_edge_direct_to_target): Check if the number of arguments on
6341 the newly direct edge is the same as the number of parametrs of
6343 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6344 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6345 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6346 analysis functions unconditionally, call the new
6347 ipa_analyze_params_uses on the node instead of every edge.
6349 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6351 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6353 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6354 also checks for a constant int vs. non-constant but
6355 loop-invariant steps.
6356 (find_or_create_group): Change the sort algorithm to only consider
6357 steps that are constant ints.
6358 (idx_analyze_ref): Adopt code to handle a tree instead of a
6359 HOST_WIDE_INT for step.
6360 (gather_memory_references_ref): Handle tree instead of int and be
6361 prepared to see a NULL_TREE.
6362 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6363 prefetches if the step cannot be calculated at compile time.
6364 (issue_prefetch_ref): Issue prefetches for non-constant but
6365 loop-invariant steps.
6367 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6370 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6372 * tree.h (build_call_list): Remove.
6373 * tree.c (build_call_list): Remove.
6375 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6377 * tree.h (build_call_list): Remove.
6378 * tree.c (build_call_list): Remove.
6380 2010-05-18 Jan Hubicka <jh@suse.cz>
6382 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6384 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6386 PR rtl-optimization/43332
6387 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6389 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6391 * tree.h (build_int_cstu): Implement as static inline.
6392 * tree.c (build_int_cstu): Remove function.
6393 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6396 2010-05-18 Richard Guenther <rguenther@suse.de>
6399 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6400 (debug): Initialize from -save-temps.
6401 (collect_execute): Print command-line when verbose.
6402 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6403 for ltrans invocation. Produce -dumpbase flag again.
6404 (process_args): Remove.
6406 * collect2.c (maybe_run_lto_and_relink): Only pass object
6407 files to lto-wrapper.
6408 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6410 2010-05-18 Jan Hubicka <jh@suse.cz>
6412 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6413 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6415 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6418 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6420 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6423 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6426 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6429 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6431 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6432 lto-macho as lto_binary_reader.
6434 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6435 after .section directive; just print it before the directive instead.
6437 2010-05-17 Jan Hubicka <jh@suse.cz>
6439 * cgraph.c (cgraph_create_virtual_clone): Only check
6440 versionable_function_p when not in wpa and checking is enabled.
6441 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6442 there are no more functions to materialize.
6444 2010-05-17 Jan Hubicka <jh@suse.cz>
6446 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6447 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6449 (output_cgraph): Call output_cgraph_opt_summary.
6450 (input_cgrpah): Call input_cgraph_opt_summary.
6451 (output_cgraph_opt_summary_p, output_node_opt_summary,
6452 input_node_opt_summary, input_cgraph_opt_section): New functions.
6453 * lto-section-in.c (lto_section_name): Add cgraphopt.
6454 * tree-inline.c (tree_function_versioning): Handle parm_num.
6455 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6456 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6458 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6460 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6461 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6462 the insn to prefetch ratio heuristic to loops with known trip count.
6464 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6466 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6467 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6468 is far from what is required by the prefetch.
6470 2010-05-17 Jan Hubicka <jh@suse.cz>
6472 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6473 (ipcp_estimate_growth): Likewise.
6474 (ipcp_const_param_count): Likewise.
6475 (ipcp_insert_stage): Likewise.
6476 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6477 (visit_store_addr_for_mod_analysis): Set used flag.
6478 (ipa_detect_param_modifications): Set used flag for SSE params;
6479 update use of walk_stmt_load_store_addr_ops.
6480 (ipa_print_node_params): Print used flag.
6481 (ipa_write_node_info): Stream used flag.
6482 (ipa_read_node_info): Likewise.
6483 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6484 (ipa_is_param_used): New function.
6485 (lto_ipa_fixup_call_notes): Remove unused declaration.
6487 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6490 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6491 * configure: Regenerate.
6492 * config.in: Regenerate.
6493 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6494 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6495 Don't emit whitespace.
6496 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6497 (*rep_movsi): Likewise.
6498 (*rep_movsi_rex64): Likewise.
6499 (*rep_movqi): Likewise.
6500 (*rep_movqi_rex64): Likewise.
6501 (*rep_stosdi_rex64): Likewise.
6502 (*rep_stossi): Likewise.
6503 (*rep_stossi_rex64): Likewise.
6504 (*rep_stosqi): Likewise.
6505 (*rep_stosqi_rex64): Likewise.
6506 (*cmpstrnqi_nz_1): Use {%;} after repz.
6507 (*cmpstrnqi_nz_rex_1): Likewise.
6508 (*cmpstrnqi_1): Likewise.
6509 (*cmpstrnqi_rex_1): Likewise.
6510 (*strlenqi_1): Use {%;} after repnz.
6511 (*strlenqi_rex_1): Likewise.
6512 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6513 (*sync_compare_and_swap<mode>): Likewise.
6514 (sync_double_compare_and_swap<mode>): Likewise.
6515 (*sync_double_compare_and_swapdi_pic): Likewise.
6516 (sync_old_add<mode>): Likewise.
6517 (sync_add<mode>): Likewise.
6518 (sync_sub<mode>): Likewise.
6519 (sync_<code><mode>): Likewise.
6521 2010-05-17 Martin Jambor <mjambor@suse.cz>
6523 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6524 otr_token and polymorphic.
6525 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6526 (cgraph_clone_edge): Copy the above fields.
6527 * tree.c (get_binfo_at_offset): New function.
6528 * tree.h (get_binfo_at_offset): Declare.
6529 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6530 type, reordered items, updated comments.
6531 (union jump_func_value): Added base_type field, reordered fields.
6532 (enum ipa_lattice_type): Moved down in the file.
6533 (struct ipa_param_descriptor): New field polymorphic.
6534 (ipa_is_param_polymorphic): New function.
6535 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6536 (ipa_print_node_jump_functions): Print known type jump functions.
6537 (compute_complex_pass_through): Renamed to...
6538 (compute_complex_assign_jump_func): this.
6539 (compute_complex_ancestor_jump_func): New function.
6540 (compute_known_type_jump_func): Likewise.
6541 (compute_scalar_jump_functions): Create known type and complex ancestor
6543 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6544 flag in the call note accordingly.
6545 (ipa_analyze_call_uses): Renamed to...
6546 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6547 variable var only in the block where it is used.
6548 (ipa_analyze_virtual_call_uses): New function.
6549 (ipa_analyze_call_uses): Likewise.
6550 (combine_known_type_and_ancestor_jfs): Likewise.
6551 (update_jump_functions_after_inlining): Implemented handling of a
6552 number of new jump function types combination.
6553 (print_edge_addition_message): Removed.
6554 (make_edge_direct_to_target): New function.
6555 (try_make_edge_direct_simple_call): Likewise.
6556 (try_make_edge_direct_virtual_call): Likewise.
6557 (update_call_notes_after_inlining): Renamed to...
6558 (update_indirect_edges_after_inlining): this. Moved edge creation for
6559 indirect calls to try_make_edge_direct_simple_call, also calls
6560 try_make_edge_direct_virtual_call for virtual calls.
6561 (ipa_print_node_params): Changed the header message.
6562 (ipa_write_jump_function): Stream also known type jump functions.
6563 (ipa_read_jump_function): Likewise.
6564 (ipa_write_indirect_edge_info): Stream new fields in
6565 cgraph_indirect_call_info.
6566 (ipa_read_indirect_edge_info): Likewise.
6567 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6570 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6572 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6574 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6576 * tree.h (CALL_EXPR_ARGS): Delete.
6577 (call_expr_arglist): Delete.
6578 * tree.c (call_expr_arglist): Delete.
6579 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6580 targetm.fold_builtin.
6581 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6582 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6583 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6584 arglist parameter. Use CALL_EXPR_ARG.
6585 (picochip_expand_builtin_3op): Likewise.
6586 (picochip_expand_builtin_2opvoid): Likewise.
6587 (picochip_expand_array_get): Likewise.
6588 (picochip_expand_array_put): Likewise.
6589 (picochip_expand_array_testport): Likewise.
6590 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6591 rather than arglist.
6592 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6594 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6595 than TREE_VALUE and TREE_CHAIN.
6596 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6597 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6600 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6603 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6604 to have no fallthru edge.
6607 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6608 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6609 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6610 add BARRIER after previous bb if needed.
6612 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6614 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6616 2010-05-17 Alan Modra <amodra@gmail.com>
6618 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6619 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6620 with copy_reg rtx param.
6621 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6622 Correct cases where code for ABI_V4 did not initialise the reg
6623 used to access frame. Also leave frame_reg_rtx as sp for large
6624 frames that save no regs.
6626 2010-05-17 Martin Jambor <mjambor@suse.cz>
6629 * tree-sra.c (create_access_replacement): New parameter rename, mark
6630 the replaement for renaming only when it is true.
6631 (get_access_replacement): Pass true in the rename parameter of
6632 create_access_replacement.
6633 (get_unrenamed_access_replacement): New function.
6634 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6635 replacement declaration from it.
6637 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6639 * function.c (try_fit_stack_local, add_frame_space): New static
6641 (assign_stack_local_1): Use them. Look for opportunities to use
6642 space previously wasted on alignment.
6643 * function.h (struct frame_space): New.
6644 (struct rtl_data): Add FRAME_SPACE_LIST member.
6645 * reload1.c (something_was_spilled): New static variable.
6646 (alter_reg): Set it.
6647 (reload): Test it in addition to testing if the frame size changed.
6649 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6651 * config/s390/s390.c: Define sane prefetch settings and activate
6652 flag_prefetch_loop_arrays on -O3.
6653 * config/s390/s390.h: Declare that read can use write prefetch.
6655 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6657 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6660 2010-05-16 Jan Hubicka <jh@suse.cz>
6662 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6663 function body; do not check stdarg field of struct function.
6665 2010-05-16 Jan Hubicka <jh@suse.cz>
6667 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6668 * cgraph.h (cgraph_local_info): Add versionable flag.
6669 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6670 (ipcp_versionable_function_p): Use it.
6671 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6674 2010-05-16 Jan Hubicka <jh@suse.cz>
6676 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6677 clone into hash when it is different from orig.
6678 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6679 * cgraph.h (cgraph_clone_node): Update prototype.
6680 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6681 (lto_cgraph_encoder_delete): Delete body map.
6682 (lto_cgraph_encoder_size): Move to header.
6683 (lto_cgraph_encoder_encode_body_p,
6684 lto_set_cgraph_encoder_encode_body): New.
6685 (lto_output_node): Do not take written_decls argument; output clone_of
6687 (add_node_to): Add include_body_argument; call
6688 lto_set_cgraph_encoder_encode_body on master of the clone.
6689 (add_references): Update use of add_node_to.
6690 (compute_ltrans_boundary): Likewise.
6691 (output_cgraph): Do not create written_decls bitmap.
6692 (input_node): Take nodes argument; stream in clone_of correctly.
6693 (input_cgraph_1): Update use of input_node.
6694 * lto-streamer-out.c (lto_output): Use encoder info to decide
6695 what bodies to output.
6696 * ipa-inline.c (cgraph_clone_inlined_nodes,
6697 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6698 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6699 (lto_cgraph_encoder_size): Define here.
6700 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6703 2010-05-16 Richard Guenther <rguenther@suse.de>
6705 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6707 * ipa-type-escape.c (gate_type_escape_vars): Run when
6708 -fipa-struct-reorg runs.
6709 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6710 * common.opt (fipa-type-escape): Remove.
6712 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6714 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6715 (decode_options): Likewise.
6716 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6718 2010-05-16 Jan Hubicka <jh@suse.cz>
6720 * ipa.c (function_and_variable_visibility): Also bring local all
6723 2010-05-16 Richard Guenther <rguenther@suse.de>
6725 * alias.c (nonoverlapping_memrefs_p): Remove use of
6726 IPA type-escape information.
6728 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6730 * c-common.c (c_common_reswords): Add _Static_assert for C.
6731 * c-parser.c (c_token_starts_declaration,
6732 c_parser_next_token_starts_declaration,
6733 c_parser_static_assert_declaration_no_semi,
6734 c_parser_static_assert_declaration): New.
6735 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6736 Handle static assertions if static_assert_ok.
6737 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6738 c_parser_compound_statement_nostart, c_parser_label,
6739 c_parser_for_statement, c_parser_objc_methodprotolist,
6740 c_parser_omp_for_loop): All callers of
6741 c_parser_declaration_or_fndef changed.
6742 (c_parser_struct_declaration): Handle static assertions.
6743 (c_parser_compound_statement_nostart): Use
6744 c_parser_next_token_starts_declaration and
6745 c_token_starts_declaration to detect start of declarations.
6746 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6749 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6751 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6752 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6753 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6754 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6755 (mmix_function_outgoing_value): Rename to...
6756 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6757 (mmix_function_value_regno_p): Make static.
6758 (mmix_libcall_value): New function.
6759 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6760 mmix_function_value_regno_p): Remove declaration.
6762 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6764 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6765 BUILT_IN_ALLOCA if stack checking is enabled.
6767 2010-05-16 Richard Guenther <rguenther@suse.de>
6769 * var-tracking.c (vars_copy_1): Inline ...
6770 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6771 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6772 (variable_merge_over_cur): Adjust. Merge asserts.
6773 (variable_merge_over_src): Likewise.
6774 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6775 (variable_post_merge_new_vals): Merge asserts.
6776 (variable_post_merge_perm_vals): Likewise.
6777 (find_mem_expr_in_1pdv): Likewise.
6778 (dataflow_set_different_value): Remove.
6779 (onepart_variable_different_p): Merge asserts.
6780 (variable_different_p): Likewise.
6781 (dataflow_set_different_1): Inline ...
6782 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6783 (emit_notes_for_differences_1): Merge asserts.
6785 2010-05-16 Richard Guenther <rguenther@suse.de>
6787 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6788 * optabs.c (libfunc_decl_hash): Likewise.
6789 * varasm.c (emutls_decl): Likewise.
6791 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6793 * c-decl.c: Don't include gimple.h.
6794 (merge_decls): Do not copy gimple_body.
6796 2010-05-15 Jason Merrill <jason@redhat.com>
6798 * c.opt: Add -fnothrow-opt.
6800 2010-05-15 Jan Hubicka <jh@suse.cz>
6802 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6804 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6806 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6808 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6809 * Makefile.in: Add it.
6810 Fix all other Makefile dependencies for changes below.
6811 * tree.h: Include it instead of defining VEC primitives here.
6812 * gimple.h: Likewise.
6814 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6815 * except.h: Include vecir.h, break dependence on tree.h.
6817 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6819 * tree-iterator.c: ...to here.
6820 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6822 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6824 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6825 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6826 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6827 tree-mudflap.h, and target.h.
6828 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6829 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6830 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6831 Add FIXME for why gimple.h is still included (should be unnecessary
6832 since GCC 4.5 gimplification unit-at-a-time).
6833 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6834 * c-pragma.c: Add FIXME for why function.h needs to be included just
6835 for cfun, at front-end level.
6836 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6837 Do not include ggc.h, but include vecprim.h for VEC(char).
6838 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6839 Explain why target.h is included.
6840 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6841 Explain why gimple.h is included.
6842 * c-ppoutput.c: Do not include tm.h.
6843 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6844 * c-parses.c: Explain why rtl.h is included, and that this (and only
6845 this) is also why tm.h must be included.
6846 Do not include except.h.
6847 * c-lang.c: Do not include ggc.h.
6849 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6851 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6853 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6855 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6856 unions by default if those structs and unions have no tags. Do
6857 not condition anonymous struct and unions handling on flag_iso.
6858 Allow anonymous structs and unions for C1X.
6859 (finish_struct): Do not diagnose lack of named fields when
6860 anonymous structs and unions present for C1X. Accept flexible
6861 array members in structure with anonymous structs or unions but no
6862 directly named fields.
6863 * doc/extend.texi (Unnamed Fields): Update.
6865 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6867 * gimple.h (compare_field_offset): Rename into...
6868 (gimple_compare_field_offset): ...this.
6869 * gimple.c (compare_field_offset): Rename into...
6870 (gimple_compare_field_offset): ...this. Compare the full access if
6871 the offset is self-referential.
6872 (gimple_types_compatible_p): Adjust for above renaming.
6873 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6874 DECL_NONADDRESSABLE_P flag of fields before merging them.
6876 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6878 * tree.h (ctor_to_list): Delete.
6879 * tree.c (ctor_to_list): Delete.
6881 2010-05-15 Jan Hubicka <jh@suse.cz>
6883 * ipa-reference.c: Include toplev.h
6884 (is_proper_for_analysis): Only add to all_module_statics
6886 (write_node_summary_p, stream_out_bitmap,
6887 ipa_reference_write_optimization_summary,
6888 ipa_reference_read_optimization_summary): New.
6889 (struct ipa_opt_pass_d pass_ipa_reference): Add
6890 optimization summary streaming.
6891 * lto-cgraph.c (referenced_from_this_partition_p,
6892 reachable_from_this_partition_p): New functions.
6893 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6894 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6895 * opts.c (decode_options): Enable ipa_reference.
6896 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6897 * lto-streamer.h (referenced_from_this_partition_p,
6898 reachable_from_this_partition_p): Declare.
6900 2010-05-15 Richard Guenther <rguenther@suse.de>
6902 PR tree-optimization/44038
6903 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6904 taking the address of a V_C_E of a constant.
6906 2010-05-14 Jan Hubicka <jh@suse.cz>
6908 * tree.h (memory_identifier_string): Remove.
6909 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6910 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6911 statics_not_written.
6912 (ipa_reference_optimization_summary_d): New structure.
6913 (ipa_reference_optimization_summary_t): New type and vector.
6914 (ipa_reference_vars_info_d): Embedd structures instead of using
6916 (reference_vars_to_consider): Remove out of GGC space.
6917 (module_statics_escape): Remove.
6918 (global_info_obstack): Rename to ...
6919 (optimization_summary_obstack): ... this one.
6920 (initialization_status_t): Remove.
6921 (memory_identifier_string): Remove.
6922 (get_reference_vars_info): Fix indenting.
6923 (set_reference_vars_info): Likewise.
6924 (get_reference_optimization_summary): New.
6925 (set_reference_optimization_summary): New.
6926 (get_global_reference_vars_info): Remove.
6927 (ipa_reference_get_read_global): Remove.
6928 (ipa_reference_get_written_global): Remove.
6929 (ipa_reference_get_not_read_global): Update.
6930 (ipa_reference_get_not_written_global): Update.
6931 (is_proper_for_analysis): Outlaw addressable.
6932 (propagate_bits): Update for new datastructures.
6933 (analyze_variable): Remove.
6934 (init_function_info): Update for new datastructures.
6935 (clean_function_local_data): Remove.
6936 (clean_function): Remove.
6937 (copy_global_bitmap): Use optimizations_summary_obstack.
6938 (duplicate_node_data): Duplicate optimization summary only.
6939 (remove_node_data): Remove optimization summary only.
6940 (generate_summary): Do not analyze variables; do not compute
6941 module_statics_escape; do not prune solutions by it.
6942 (read_write_all_from_decl): Fix typos in comments.
6943 (propagate): Doscover readonly and nonaddressable first;
6944 update for new datastructures; share global bitmaps.
6945 * ipa-reference.h (ipa_reference_get_read_global,
6946 ipa_reference_get_written_global): Remove.
6947 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6948 * Makefile.in: Remove ipa-refereference from GT files.
6950 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6953 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6954 for all SYMBOL_REF_DECLs.
6956 2010-05-14 Jan Hubicka <jh@suse.cz>
6958 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6959 (varpool_all_refs_explicit_p): New inline function.
6960 * ipa-reference.c: Update comment.
6961 (module_statics_written): Remove.
6962 (get_static_decl): Remove.
6963 (ipa_init): Do not initialize module_statics_written.
6964 (analyze_function): Likewise.
6965 (generate_summary): Likewise; do not compute module_statics_readonly
6966 and do not update variable flags.
6967 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6968 * ipa.c: Inlucde flags.h
6969 (cgraph_local_node_p): New.
6970 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6971 promote functions to local.
6972 (ipa_discover_readonly_nonaddressable_vars): New function.
6973 (function_and_variable_visibility): Use cgraph_local_node_p.
6974 * varpool.c (varpool_finalize_decl): Set force_output for
6975 DECL_PRESERVE_P vars.
6977 2010-05-14 Jan Hubicka <jh@suse.cz>
6979 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6981 2010-05-14 Richard Guenther <rguenther@suse.de>
6983 PR tree-optimization/44119
6984 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6985 a PHI node necessary.
6987 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6989 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6991 2010-05-14 Jason Merrill <jason@redhat.com>
6994 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6995 (gimple_call_set_nothrow): New.
6996 * gimple.c (gimple_build_call_from_tree): Call it.
6997 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
7000 * gimplify.c (gimplify_seq_add_stmt): No longer static.
7001 * gimple.h: Declare it.
7002 * gimple.c (gimple_build_eh_filter): No ops.
7004 2010-05-14 Jan Hubicka <jh@suse.cz>
7006 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
7007 nodes already in queue.
7008 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
7011 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7014 * cfgexpand.c (expand_debug_expr): If non-memory op0
7015 has BLKmode, return NULL.
7017 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
7019 * config.gcc: Add support for --with-cpu option for bdver1.
7020 * config/i386/i386.h (TARGET_BDVER1): New macro.
7021 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
7022 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7023 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
7024 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7025 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
7026 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
7027 (processor_type): Add PROCESSOR_BDVER1.
7028 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
7029 processor_type in config/i386/i386.h.
7030 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
7031 movaps <reg, reg> instead of movapd <reg, reg> when replacing
7032 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
7033 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7034 to emit packed xor instead of packed double/packed integer
7035 xor for SSE and AVX when moving a zero value.
7036 * config/i386/sse.md: Add check for
7037 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
7038 movapd/movdqa for SSE and AVX.
7039 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
7040 single logical operations i.e and, or and xor instead of packed double
7041 logical operations for SSE and AVX.
7042 * config/i386/i386-c.c (ix86_target_macros_internal):
7043 Add PROCESSOR_BDVER1.
7044 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
7045 (has_fma4, has_xop): New.
7046 * config/i386/i386.c (bdver1_cost): New variable.
7047 (m_BDVER1): New macro.
7048 (m_AMD_MULTIPLE): Add m_BDVER1.
7049 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
7050 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
7051 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
7052 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
7053 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
7054 x86_tune_sse_partial_reg_dependency,
7055 x86_tune_sse_unaligned_load_optimal,
7056 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
7057 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
7058 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
7059 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
7060 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
7061 Enable/disable for bdver1.
7062 (processor_target_table): Add bdver1_cost.
7063 (cpu_names): Add bdver1.
7064 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
7065 processor_alias_table.
7066 (ix86_expand_vector_move_misalign): Change.
7067 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
7068 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
7069 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
7070 of movupd/movdqu for SSE and AVX.
7071 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
7072 (ix86_tune_adjust_cost): Add code for bdver1.
7073 (standard_sse_constant_opcode): Add check for
7074 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
7075 of packed double xor for SSE and AVX.
7077 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
7079 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
7082 2010-05-14 Tristan Gingold <gingold@adacore.com>
7084 * toplev.c (default_debug_hooks): Remove this variable.
7085 (process_options): Remove assignments to default_debug_hooks.
7087 2010-05-14 Martin Jambor <mjambor@suse.cz>
7089 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
7090 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
7091 * langhooks.h (struct lang_hooks_for_decls): Removed field
7093 * tree.c (free_lang_data): Remove assignment to
7094 lang_hooks.fold_obj_type_ref.
7095 * tree.def (OBJ_TYPE_REF): Update comment.
7097 2010-05-14 Richard Guenther <rguenther@suse.de>
7099 PR tree-optimization/44124
7100 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
7102 2010-05-14 Alan Modra <amodra@gmail.com>
7105 * config/rs6000/rs6000.c (struct machine_function): Reorder
7106 fields for better packing. Add lr_save_state.
7107 (rs6000_ra_ever_killed): Return lr_save_state if set.
7108 (rs6000_emit_eh_reg_restore): Set lr_save_state.
7110 2010-05-13 Jan Hubicka <jh@suse.cz>
7112 * varpool.c (decide_is_variable_needed): Drop code checking
7113 TREE_SYMBOL_REFERENCED.
7115 2010-05-13 Jan Hubicka <jh@suse.cz>
7117 * final.c (output_addr_const): Do not call mark_decl_referenced.
7118 * cgraphunit.c (process_function_and_variable_attributes): Use
7119 mark_needed_node dirrectly.
7120 (assemble_thunk): Do not call mark_decl_referenced.
7122 2010-05-13 Anatoly Sokolov <aesok@post.ru>
7124 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
7126 2010-05-13 Jeff Law <law@redhat.com>
7128 * ira-conflicts.c (print_allocno_conflicts): New function broken out
7130 (print_conflicts): Call print_allocno_conflicts.
7132 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7135 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
7138 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
7140 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
7141 t-mingw-w64 or t-mingw-w32 for multilib configuration.
7142 * config/i386/t-mingw-w32: New.
7143 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
7145 2010-05-13 Martin Jambor <mjambor@suse.cz>
7147 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
7149 * gimple-fold.c (get_base_binfo_for_type): New function.
7150 (gimple_get_relevant_ref_binfo): Likewise.
7151 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7152 (gimple_fold_obj_type_ref): Likewise.
7153 (fold_gimple_call): Simplify condition for folding virtual calls
7154 and call gimple_fold_obj_type_ref.
7155 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7156 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7158 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7160 * config/rs6000/rs6000-protos.h
7161 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7162 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7163 (rs6000_debug_mode_dependent_address)
7164 (rs6000_mode_dependent_address_ptr): Likewise.
7166 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7169 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7171 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7172 * tree-sra.c (create_access_replacement): Call unshare_expr before
7173 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7174 * dwarf2out.c: Include tree-flow.h.
7175 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7176 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7177 Handle DW_OP_bit_piece.
7178 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7179 construct_piece_list, adjust_piece_list): New functions.
7180 (add_var_loc_to_decl): Handle SRA optimized variables.
7181 Adjust for var_loc_note to loc field renaming.
7182 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7183 in VAR_LOCATION note.
7184 (new_loc_descr_op_bit_piece): New function.
7185 (dw_sra_loc_expr): New function.
7186 (dw_loc_list): Use it. Don't handle the last range after the
7187 loop, handle it inside of the loop. Adjust for var_loc_note
7188 to loc field renaming.
7189 (add_location_or_const_value_attribute): Only special case
7190 single entry loc lists if loc is NOTE_P. Adjust for
7191 var_loc_note to loc field renaming.
7192 (dwarf2out_var_location): Don't set newloc->var_loc_note
7193 and newloc->next here.
7195 2010-05-12 Jan Hubicka <jh@suse.cz>
7197 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7199 * cgraph.h (cgraph_only_called_directly_p,
7200 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7201 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7202 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7204 * ipa.c (cgraph_remove_unreachable_nodes): Use
7205 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7207 * tree-inline.c (copy_bb): Check address_taken flag.
7208 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7209 externally_visible flag.
7211 2010-05-12 Jason Merrill <jason@redhat.com>
7215 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7216 * sdbout.c (plain_type_1): Likewise.
7217 * dwarf2out.c (is_base_type): Likewise.
7218 (gen_type_die_with_usage): Likewise. Generate
7219 DW_TAG_unspecified_type for any LANG_TYPE.
7221 2010-05-12 Jan Hubicka <jh@suse.cz>
7223 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7225 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7226 (cgraph_clone_edge): Update.
7227 (cgraph_node_remove_callees): Remove indirect calls too.
7228 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7229 (cgraph_create_indirect_edge): Update prototype.
7230 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7231 is_proper_for_analysis.
7232 (add_new_function, visited_nodes, function_insertion_hook_holder,
7233 get_local_reference_vars_info, mark_address_taken, mark_address,
7234 mark_load, mark_store, check_asm_memory_clobber, check_call,
7235 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7236 (ipa_init): Do not initialize visited_nodes;
7237 function_insertion_hook_holder.
7238 (analyze_variable): Rewrite.
7239 (analyze_function): Rewrite.
7240 (copy_local_bitmap): Remove.
7241 (duplicate_node_dat): Do not duplicate local info.
7242 (generate_summary): Simplify to only walk cgraph.
7243 (write_node_summary_p, ipa_reference_write_summary,
7244 ipa_reference_read_summary): Remove.
7245 (propagate): Do not remove function insertion;
7247 (pass_ipa_reference): NULLify summary handling fields.
7248 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7249 (input_edge): Input ecf_flags.
7250 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7251 (update_indirect_edges_after_inlining): Ignore edges with unknown
7254 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7256 * implicit-zee.c: New file.
7257 * tree-pass.h (pass_implicit_zee): Declare.
7258 * passes.c (init_optimization_passes): Add zee pass.
7259 * common.opt (fzee): New flag.
7260 * timevar.def (TV_ZEE): Define.
7261 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7263 * Makefile.in (implicit-zee.o): Add new build file.
7265 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7266 Nathan Froyd <froydnj@codesourcery.com>
7268 * c-common.c (sync_resolve_params): Remove write-only variable.
7270 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7272 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7273 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7274 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7275 * targhooks.c (default_mode_dependent_address_p): New function.
7276 * targhooks.h (default_mode_dependent_address_p): Declare function.
7277 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7278 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7279 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7280 target hook. Change return type to bool.
7281 * recog.h (mode_dependent_address_p): Change return type to bool.
7283 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7284 Nathan Froyd <froydnj@codesourcery.com>
7286 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7287 build_function_type_2, build_function_type_3): Remove.
7288 (mudflap_init): Use build_function_type_list.
7290 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7291 Nathan Froyd <froydnj@codesourcery.com>
7293 * coverage.c (build_fn_info_value): Call build_constructor instead of
7294 build_constructor_from_list.
7295 (build_ctr_info_value): Likewise.
7296 (build_gcov_info): Likewise.
7298 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7300 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7301 resultant constructor.
7302 (build_constructor_single): Don't set TREE_CONSTANT.
7303 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7305 2010-05-12 Jan Hubicka <jh@suse.cz>
7307 * cgraph.h (struct varpool_node): Add aux.
7308 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7309 * varpool.c (varpool_remove_node): Do not remove initializer.
7310 (varpool_reset_queue): Export.
7311 (varpool_finalize_decl): Volatile vars are forced to be output.
7312 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7314 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7315 process_references, varpool_can_remove_if_no_refs): New functions.
7316 (cgraph_remove_unreachable_nodes): Handle variables too.
7318 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7321 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7323 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7326 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7327 change value of ORT_TASK.
7328 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7329 (omp_notice_threadprivate_variable): New function.
7330 (omp_notice_variable): Call it for threadprivate variables.
7331 If enclosing ctx is a task, print enclosing task rather than
7332 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7333 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7334 if task has untied clause.
7337 * dwarf2out.c (base_type_die): Don't add name attribute here.
7338 (modified_type_die): Instead of sizetype use
7339 its underlying original type. If a DW_TAG_base_type doesn't
7340 have name added, add __unknown__.
7341 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7342 always call force_type_die instead.
7344 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7346 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7347 for __stack_chk_guard.
7349 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7351 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7352 don't call start_source_file debug hook here...
7353 (finish_options): ... but here, after outputting predefined and
7354 command line defines and undefs.
7357 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7359 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7360 optimizing away empty bb with no successors, move over its
7361 footer chain to fallthru predecessor.
7362 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7363 (rtl_split_edge): For asm goto call patch_jump_insn even if
7364 splitting fallthru edge.
7367 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7368 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7369 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7370 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7374 * c-parser.c (c_parser_expression): Mark LHS of a comma
7375 expression as read if it is a decl, handled component or
7376 COMPOUND_EXPR with that on the RHS.
7377 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7378 if it is a decl or handled component.
7380 2010-05-11 Jan Hubicka <jh@suse.cz>
7382 * lto-symtab.c (lto_symtab_free): New function.
7383 * lto-streamer.h (lto_symtab_free): Declare.
7385 2010-05-11 Jan Hubicka <jh@suse.cz>
7387 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7388 that if function is needed it is reachable.
7389 (lto_output_node): See if it the function is reachable or referenced.
7390 (output_cgraph): Update call of lto_output_node.
7391 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7393 2010-05-11 Jan Hubicka <jh@suse.cz>
7395 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7398 2010-05-11 Jan Hubicka <jh@suse.cz>
7400 PR tree-optimize/44063
7401 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7403 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7405 (estimate_function_body_sizes): Compute sizes even when disregarding.
7407 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7409 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7411 2010-05-11 Jan Hubicka <jh@suse.cz>
7413 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7414 into every boundary.
7416 2010-05-11 Jan Hubicka <jh@suse.cz>
7418 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7420 2010-05-11 Jan Hubicka <jh@suse.cz>
7422 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7423 lto_streamer_cache_delete): Put nodes into heap.
7424 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7427 2010-05-11 Jan Hubicka <jh@suse.cz>
7429 * cgraphbuild.c (cgraph_rebuild_references): New.
7430 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7432 * cgraph.h (cgraph_rebuild_references): Declare.
7433 * tree-inline.c (tree_function_versioning): Use it.
7434 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7436 2010-05-11 Jan Hubicka <jh@suse.cz>
7438 * cgraph.c: Include ipa-utils.h
7439 (cgraph_create_virtual_clone): Update references.
7440 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7442 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7444 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7445 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7448 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7450 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7452 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7454 * gcc.c (execute): For -### don't quote arguments that
7455 contain just alphanumerics and _/-. characters.
7456 * doc/invoke.texi: Document that change for -###.
7459 * df-problems.c (struct dead_debug): Add to_rescan field.
7460 (dead_debug_init): Clear to_rescan field.
7461 (dead_debug_finish): Rescan all debug insns in to_rescan
7462 bitmap and free the bitmap.
7463 (dead_debug_insert_before): Instead of rescanning debug insns
7464 immediately queue their rescanning until dead_debug_finish.
7465 (df_note_bb_compute): After dead_debug_add do continue instead
7468 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7471 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7472 clear also INSN_REG_USE_LIST.
7474 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7476 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7478 2010-05-10 Jan Hubicka <jh@suse.cz>
7480 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7483 2010-05-10 Jan Hubicka <jh@suse.cz>
7485 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7487 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7488 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7489 (lto_streamer_cache_create): Init alloc pool.
7490 (lto_streamer_cache_delete): Free alloc pool.
7491 * lto-streamer.h: Include alloc pool.
7492 (lto_streamer_cache_d): Use alloc pool.
7493 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7495 2010-05-10 Jan Hubicka <jh@suse.cz>
7497 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7498 * cgraphbuild.c: Include except.h
7499 (record_type_list, record_eh_tables): New function.
7500 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7502 2010-05-10 Jan Hubicka <jh@suse.cz>
7504 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7505 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7508 2010-05-10 Michael Matz <matz@suse.de>
7510 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7511 (can_reassociate_p): Use FLOAT_TYPE_P.
7512 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7513 (vect_force_simple_reduction): ... this.
7514 * tree-parloops.c (gather_scalar_reductions): Use
7515 vect_force_simple_reduction.
7516 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7517 vect_is_simple_reduction, add modify argument, if true rewrite
7518 "a-b" into "a+(-b)".
7519 (vect_is_simple_reduction, vect_force_simple_reduction): New
7521 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7523 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7524 Vladimir Makarov <vmakarov@redhat.com>
7526 PR rtl-optimization/44012
7527 * ira-build.c (remove_unnecessary_allocnos): Nullify
7528 regno_allocno_map of the removed allocno.
7530 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7532 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7534 * configure: Regenerate.
7536 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7538 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7540 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7541 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7543 * configure: Regenerate.
7545 2010-05-10 Richard Guenther <rguenther@suse.de>
7547 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7548 marked if the entry identifier is marked.
7550 2010-05-10 Richard Guenther <rguenther@suse.de>
7552 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7553 (handle_fnspec_attribute): New function.
7554 * gimple.h (gimple_call_return_flags): Declare.
7555 (gimple_call_arg_flags): Likewise.
7556 * gimple.c (gimple_call_arg_flags): New function.
7557 (gimple_call_return_flags): Likewise.
7558 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7560 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7562 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7563 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7565 (make_heapvar_for): ... this new function.
7566 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7567 (handle_lhs_call): Likewise.
7568 (find_func_aliases): Adjust.
7570 2010-05-10 Richard Guenther <rguenther@suse.de>
7572 PR tree-optimization/44050
7573 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7575 2010-05-10 Wei Guozhi <carrot@google.com>
7578 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7580 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7583 * c-typeck.c (lookup_field): Take a type directly. Update
7585 (build_component_ref): Update call to lookup_field.
7586 (set_init_label): Use lookup_field to find initialized field.
7587 Handle returned list of fields like a sequence of designators.
7589 2010-05-09 Richard Guenther <rguenther@suse.de>
7592 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7593 handle &FUNCTION_DECL.
7595 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7598 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7599 structures and unions recursively.
7600 (detect_field_duplicates): Move duplicate detection with a hash to
7601 detect_field_duplicates_hash. Always use a hash if anonymous
7602 structures or unions are present.
7603 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7606 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7609 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7610 detect Atom, Core 2 and Core i7.
7612 2010-05-09 Richard Guenther <rguenther@suse.de>
7614 * gcc.c (store_arg): Handle temporary file deletion for
7617 2010-05-09 Richard Guenther <rguenther@suse.de>
7620 * ipa-inline.c (estimate_function_body_sizes): Return after
7621 disregarding inline limits.
7623 2010-05-09 Richard Guenther <rguenther@suse.de>
7625 * gcc.c (store_arg): Revert last change.
7627 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7630 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7631 (optimize_ops_list): Call it.
7633 2010-05-08 Richard Guenther <rguenther@suse.de>
7635 PR tree-optimization/44030
7636 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7637 NECESSARY flag if we propagate from a inserted expression.
7639 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7641 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7642 domain types as equal if they are both PLACEHOLDER_EXPRs.
7644 2010-05-08 Richard Guenther <rguenther@suse.de>
7646 * lto-wrapper.c (run_gcc): Remove linker output from
7647 command line for LTRANS invocation.
7649 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7651 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7652 lto-macho as lto_binary_reader.
7653 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7654 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7655 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7656 in lto_start and lto_end calls.
7657 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7659 (scan_prog_file): Update is_elf_or_coff call.
7660 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7662 * collect2.c (main): Fix enum comparison.
7664 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7666 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7667 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7668 and TARGET_ASM_LTO_END.
7669 * darwin.c: Include obstack.h and lto-streamer.h.
7670 (lto_section_names_offset, lto_section_names_obstack,
7671 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7673 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7674 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7675 to a temporary file.
7676 (darwin_asm_lto_end): New function. Restore asm_out_file.
7677 (darwin_asm_named_section): For LTO sections, replace the name with
7678 the offset of the section name in a string table, and build this
7680 (darwin_file_start): Initialize global vars for LTO support.
7681 (darwin_file_end): If output to asm_out_file was redirected, append it
7682 to the proper asm_out_file here. Add the section names section.
7684 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7686 * c-pragma.c (pending_weak_d, pending_weak): New.
7687 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7688 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7689 handle_pragma_weak): Update the uses of pending_weaks.
7691 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7693 PR documentation/44016
7694 * doc/standards.texi (Standards): Link to unversioned
7695 cxx0x_status.html page.
7697 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7700 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7701 in addition to TREE_USED, to avoid "set but unused" warnings.
7703 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7705 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7706 (is_loop_prefetching_profitable): Do not insert prefetches
7707 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7708 times the prefetch ahead distance.
7710 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7712 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7713 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7714 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7717 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7719 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7720 a diagnostic info when the insn-to-mem ratio is too small.
7722 2010-05-07 Richard Guenther <rguenther@suse.de>
7724 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7726 (store_arg): Queue temp_filename for deletion instead of
7729 2010-05-07 Richard Guenther <rguenther@suse.de>
7731 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7732 (run_gcc): Handle LTRANS phase invocation.
7733 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7735 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7737 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7738 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7740 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7742 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7744 2010-05-07 Richard Guenther <rguenther@suse.de>
7746 PR tree-optimization/44020
7747 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7748 code when PRE is not yet initialized.
7750 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7752 * config/mips/dbxmdebug.h: Remove.
7753 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7755 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7757 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7758 with null pointer and also warn about ordered comparison of zero with
7761 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7763 * graphite-blocking.c
7764 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7765 * graphite-clast-to-gimple.c
7766 (clast_to_gcc_expression): Same.
7767 (precision_for_value): Same.
7768 (precision_for_interval): Same.
7769 (gcc_type_for_interval): Same.
7770 (graphite_create_new_guard): Same.
7771 (compute_bounds_for_level): Same.
7772 (graphite_create_new_loop_guard): Same.
7773 * graphite-interchange.c
7774 (build_linearized_memory_access): Same.
7775 (pdr_stride_in_loop): Same.
7776 (memory_strides_in_loop_1): Same.
7777 (memory_strides_in_loop): Same.
7778 (extend_scattering): Same.
7779 (psct_scattering_dim_for_loop_depth): Same.
7780 (pbb_number_of_iterations): Same.
7782 (debug_iteration_domains): Same.
7784 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7785 (ppl_set_inhomogeneous_gmp): Same.
7786 (ppl_strip_loop): Same.
7787 (ppl_lexico_compare_linear_expressions): Same.
7788 (ppl_read_polyhedron_matrix): Same.
7789 (ppl_max_for_le_pointset): Same.
7791 (ppl_read_polyhedron_matrix): Same.
7792 (tree_int_to_gmp): Same.
7793 (gmp_cst_to_tree): Same.
7794 (ppl_set_inhomogeneous): Same.
7795 (ppl_set_inhomogeneous_tree): Same.
7796 (ppl_set_coef): Same.
7797 (ppl_set_coef_tree): Same.
7798 * graphite-sese-to-poly.c
7799 (build_pbb_scattering_polyhedrons): Same.
7800 (build_scop_scattering): Same.
7801 (scan_tree_for_params_right_scev): Same.
7802 (scan_tree_for_params): Same.
7803 (find_params_in_bb): Same.
7804 (find_scop_parameters): Same.
7805 (add_upper_bounds_from_estimated_nit): Same.
7806 (build_loop_iteration_domains): Same.
7807 (add_condition_to_domain): Same.
7808 (pdr_add_memory_accesses): Same.
7810 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7812 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7813 CLooG's value_* macros to their respective mpz_* counterparts.
7814 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7815 (graphite_create_new_loop_guard): Same.
7816 * graphite-interchange.c (build_linearized_memory_access): Same.
7817 (pdr_stride_in_loop): Same.
7818 (memory_strides_in_loop_1): Same.
7819 (1st_interchange_profitable_p): Same.
7820 * graphite-poly.c (extend_scattering): Same.
7821 (psct_scattering_dim_for_loop_depth): Same.
7822 (pbb_number_of_iterations): Same.
7823 (pbb_number_of_iterations_at_time): Same.
7824 * graphite-poly.h (new_1st_loop): Same.
7825 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7826 (oppose_constraint): Same.
7827 (insert_constraint_into_matrix): Same.
7828 (ppl_set_inhomogeneous_gmp): Same.
7829 (ppl_set_coef_gmp): Same.
7830 (ppl_strip_loop): Same.
7831 (ppl_lexico_compare_linear_expressions): Same.
7832 (ppl_max_for_le_pointset): Same.
7833 (ppl_min_for_le_pointset): Same.
7834 (ppl_build_realtion): Same.
7835 * graphite-ppl.h (gmp_cst_to_tree): Same.
7836 (ppl_set_inhomogeneous): Same.
7837 (ppl_set_inhomogeneous_tree): Same.
7838 (ppl_set_coef): Same.
7839 (ppl_set_coef_tree): Same.
7840 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7841 (build_scop_scattering): Same.
7842 (add_value_to_dim): Same.
7843 (scan_tree_for_params_right_scev): Same.
7844 (scan_tree_for_params_int): Same.
7845 (scan_tree_for_params): Same.
7846 (find_params_in_bb): Same.
7847 (find_scop_parameters): Same.
7848 (add_upper_bounds_from_estimated_nit): Same.
7849 (build_loop_iteration_domains): Same.
7850 (create_linear_expr_from_tree): Same.
7851 (add_condition_to_domain): Same.
7852 (pdr_add_memory_accesses): Same.
7854 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7855 Jason Merrill <jason@redhat.com>
7857 * c-common.c (c_common_reswords): Add nullptr.
7858 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7859 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7860 (gen_type_die_with_usage): Likewise.
7861 * dbxout.c (dbxout_type): Likewise.
7862 * sdbout.c (plain_type_1): Likewise.
7864 2010-05-06 Jason Merrill <jason@redhat.com>
7866 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7867 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7869 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7871 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7872 stripping WITH_SIZE_EXPR.
7873 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7876 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7878 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7879 list of obsolete configurations.
7880 Disabled check for obsolete configurations.
7881 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7882 Removed support for previous versions.
7883 * config/mips/iris.h: Removed.
7884 * config/mips/iris5.h: Removed.
7885 * config/mips/iris6.h: Merged old iris.h contents.
7886 (TARGET_IRIX): Removed.
7887 (DRIVER_SELF_SPECS): Removed mabi=32.
7888 (IDENT_ASM_OP): Removed undef.
7889 (STARTFILE_SPEC): Removed mabi=32.
7890 (ENDFILE_SPEC): Likewise.
7891 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7892 (MACHINE_TYPE): Update for IRIX 6.5.
7893 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7894 TARGET_IRIX by TARGET_IRIX6.
7895 (mips_file_start): Likewise.
7896 (mips_output_external): Remove IRIX 5/6 O32 support.
7897 (mips_output_function_prologue): Likewise.
7898 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7900 (TARGET_CPU_CPP_BUILTINS): Likewise.
7901 (TARGET_IRIX): Removed.
7902 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7903 (MULTILIB_DIRNAMES): Removed 32.
7904 (MULTILIB_OSDIRNAMES): Removed ../lib.
7905 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7906 (Specific, mips-sgi-irix5): Document removal.
7907 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7908 Remove references to older IRIX 6 releases and the O32 ABI.
7910 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7913 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7914 instead of DF_REF_REAL_REG.
7916 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7919 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7920 handling to still return true for x64 targets.
7922 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7924 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7926 2010-05-06 Jan Hubicka <jh@suse.cz>
7928 PR tree-optimization/43791
7929 * ipa-inline.c (update_caller_keys): Remove bogus
7930 disregard_inline_limits check.
7932 2010-05-06 Michael Matz <matz@suse.de>
7934 PR tree-optimization/43984
7935 * tree-ssa-pre.c (inserted_phi_names): Remove.
7936 (inserted_exprs): Change to bitmap.
7937 (create_expression_by_pieces): Set bits, don't append to vector.
7938 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7939 (eliminate): Don't look at inserted_phi_names, remove deleted
7940 insns from inserted_exprs.
7941 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7942 (init_pre, fini_pre): Allocate and free bitmaps.
7943 (execute_pre): Insert insns on edges before elimination.
7945 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7947 * tree.c (initializer_zerop): Handle STRING_CST.
7949 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7952 * doc/invoke.texi (Wimplicit): Document as C only.
7953 * opts.c (common_handle_option): Add argument kind.
7954 (handle_option): Rename as read_cmdline_option. Factor out code to...
7955 (handle_option): ... here. New.
7956 (handle_options): Rename as read_cmdline_options.
7957 (decode_options): Update call.
7958 (set_option): Use option index instead of option pointer. Classify
7959 diagnostics correctly.
7960 (enable_warning_as_error): Call handle_option.
7961 * opts.h (set_option): Update declaration.
7962 (handle_option): Declare.
7963 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7964 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7965 * c-opts.c (set_Wimplicit): Delete.
7966 (c_family_lang_mask): New static constant.
7967 (c_common_handle_option): Add argument kind. Use handle_option
7968 instead of set_Wimplicit.
7969 (c_common_post_options): warn_implicit and warn_implicit_int
7970 are disabled by default.
7971 * c-common.c (warn_implicit): Do not define here.
7972 * c-common.h (warn_implicit): Do not declare here.
7973 (c_common_handle_option): Update declaration.
7974 * lto-opts.c (lto_reissue_options): Update call to set_option.
7976 2010-05-06 Richard Guenther <rguenther@suse.de>
7978 PR tree-optimization/43571
7979 * domwalk.c (walk_dominator_tree): Walk the dominator
7980 sons in more optimal order.
7982 2010-05-06 Richard Guenther <rguenther@suse.de>
7984 PR tree-optimization/43934
7985 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7986 (stmt_cost): Likewise.
7987 (extract_true_false_args_from_phi): New helper.
7988 (determine_max_movement): For PHI nodes verify we can hoist them
7989 and compute their cost.
7990 (determine_invariantness_stmt): Handle PHI nodes.
7991 (move_computations_stmt): Likewise. Hoist PHI nodes in
7992 if-converted form using COND_EXPRs.
7993 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7994 (tree_ssa_lim): Likewise.
7995 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7996 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7998 2010-05-06 Richard Guenther <rguenther@suse.de>
8000 PR tree-optimization/43987
8001 * tree-ssa-structalias.c (could_have_pointers): For possibly
8002 address-taken variables force pointers to be recorded.
8003 (create_variable_info_for_1): Likewise.
8004 (push_fields_onto_fieldstack): Pass in wheter all fields
8006 (find_func_aliases): Query types instead of vars whether
8007 they contain pointers where appropriate.
8009 2010-05-06 Jan Hubicka <jh@suse.cz>
8011 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
8012 (record_reference, mark_address, mark_load, mark_store): Record
8014 (record_references_in_initializer): Update call of record_references.
8015 (rebuild_cgraph_edges): Remove all references before rebuiding.
8016 * cgraph.c (cgraph_create_node): Clear ref list.
8017 (cgraph_remove_node): Remove references.
8018 (dump_cgraph_node): Dump references.
8019 (cgraph_clone_node): Clone references.
8020 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
8021 (struct cgraph_node, varpool_node): Add ref_lst.
8022 * ipa-ref.c: New file.
8023 * ipa-ref.h: New file.
8024 * ipa-ref-inline.h: New file.
8025 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
8026 (referenced_from_other_partition_p): New function.
8027 (lto_output_varpool_node): Take set arugment; call
8028 referenced_from_other_partition.
8029 (lto_output_ref): New.
8030 (add_references): New.
8032 (output_cgraph): Compute boundary based on references; output refs.
8033 (output_varpool): Accept cgraph_node_set argument.
8036 (input_cgraph): Call input_refs.
8037 * lto-section-in.c (lto_section_name): Add refs.
8038 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
8039 (ipa-ref.o): New file.
8040 * varpool.c (varpool_node): Clear ipa ref list.
8041 (varpool_remove_node): Remove references.
8042 (dump_varpool_node): Dump references.
8043 (varpool_assemble_decl): Only compile finalized ones.
8044 (varpool_extra_name_alias): Initialize ref list.
8045 * lto-streamer.c (lto-get_section_name): Add .refs section.
8046 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
8047 (referenced_from_other_partition_p): Declared.
8049 2010-05-06 Ira Rosen <irar@il.ibm.com>
8051 PR tree-optimization/43901
8052 * tree-vect-stmts.c (vectorizable_call): Assert that vector
8053 type is not NULL if it's transformation phase, and return
8054 FALSE if it's analysis.
8055 (vectorizable_conversion, vectorizable_operation,
8056 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
8058 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8060 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8062 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8064 * config/mips/mips-protos.h
8065 (mips_small_register_classes_for_mode_p): Delete prototype.
8067 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
8069 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
8070 * config/arm/arm.c (multiple_operation_profitable_p,
8071 compute_offset_order): New static functions.
8072 (load_multiple_sequence, store_multiple_sequence): Use them.
8073 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
8074 memory offsets, not register numbers.
8075 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
8077 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
8079 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
8080 (get_pending_sizes, put_pending_size, put_pending_sizes):
8081 Update the uses of pending_sizes.
8082 * c-decl.c (store_parm_decls): Likewise.
8083 * c-tree.h (struct c_arg_info): Likewise.
8084 * tree.h: Update the prototype for get_pending_sizes and
8087 2010-05-05 Jason Merrill <jason@redhat.com>
8090 * c-common.c (handle_aligned_attribute): Respect
8091 ATTR_FLAG_TYPE_IN_PLACE.
8094 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
8095 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8096 (TARGET_INITIALIZER): Use it.
8097 * c-common.c (attribute_takes_identifier_p): Call it.
8098 * c-common.h: Update prototype.
8099 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
8100 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8102 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8105 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
8106 DW_ID_down_case for Fortran compilation units.
8108 2010-05-05 Jan Hubicka <jh@suse.cz>
8110 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
8113 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
8115 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
8116 a variable-sized RESULT_DECL.
8118 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
8120 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
8122 2010-05-05 Jason Merrill <jason@redhat.com>
8125 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
8127 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
8129 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
8130 Jakub Jelinek <jakub@redhat.com>
8133 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
8134 (dead_debug_init, dead_debug_finish): New functions.
8135 (dead_debug_add, dead_debug_insert_before): Likewise.
8136 (df_note_bb_compute): Initialize a dead_debug object, add dead
8137 debug uses to it, insert debug bind insns before death insns,
8138 reset debug insns that refer to pending uses at the end.
8139 * rtl.h (make_debug_expr_from_rtl): New prototype.
8140 * varasm.c (make_debug_expr_from_rtl): New function.
8142 2010-05-05 Jan Hubicka <jh@suse.cz>
8144 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
8145 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
8146 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
8147 lto_varpool_encoder_deref, lto_varpool_encoder_size,
8148 lto_varpool_encoder_encode_initializer_p,
8149 lto_set_varpool_encoder_encode_initializer): New functions.
8150 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
8151 call output_varpool.
8152 (input_varpool_node): Do not always set analyzed.
8153 (input_cgraph_1): Return vector of cgraph nodes.
8154 (input_varpool_1): Return vector of varpools.
8155 (input_cgraph): Free the vectors.
8156 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8157 output only initializers needed.
8158 (lto_output): Only call output_cgraph.
8159 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8160 * lto-section-out.c (lto_new_out_decl_state): Initialize
8161 state->varpool_node_encoder.
8162 * lto-streamer.h (lto_varpool_encoder_d): New.
8163 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8164 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8165 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8166 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8167 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8169 (output_varpool, input_varpool): Remove declarations.
8171 2010-05-05 Jan Hubicka <jh@suse.cz>
8173 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8174 with body can prevail.
8176 2010-05-05 Jan Hubicka <jh@suse.cz>
8178 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8181 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8183 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8185 * gengtype.h (erro_at_line): Constify pos argument.
8187 * gengtype.c: Include hashtab.h.
8188 (enum gc_used): Document GC_MAYBE_POINTED_TO.
8189 (error_at_line): Constify pos argument.
8190 (do_typedef): Initialize p->opt field.
8191 (get_file_gtfilename): Fix comment typo.
8192 (struct walk_type_data): Constify line field.
8193 (get_output_file_for_structure): New function.
8194 (write_local_func_for_structure): Constify orig_s argument.
8195 Use get_output_file_for_structure.
8196 (write_func_for_structure): Use get_output_file_for_structure.
8197 (INDENT): New define.
8198 (dump_pair, dump_type, dump_type_list, dump_typekind)
8199 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8200 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8202 (seen_types): New variable.
8203 (main): New variable do_dump. Process "-d" command line option.
8204 Call dump_everything if dump requested.
8206 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8208 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8209 in a temporary instead of invoking the macro multiple times.
8210 (track_expr_p): Likewise.
8212 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8214 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8216 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8217 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8218 conditions for printing notes.
8219 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8220 true, update documentation.
8221 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8223 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8226 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8229 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8232 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8233 (*sse_prologue_save_insn1): Likewise.
8234 (SSE prologue save splitter): Likewise.
8236 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8238 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8239 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8240 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8241 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8242 all decls. Call it on DECL_FIELD_OFFSET of fields.
8243 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8244 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8246 2010-05-04 Martin Jambor <mjambor@suse.cz>
8248 * tree-sra.c (build_access_from_expr_1): The first parameter type
8249 changed to simple tree.
8250 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8251 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8253 (build_accesses_from_assign): Removed all parameters except for a
8254 simple gimple statement. Now returns a simple bool.
8255 (scan_function): All non-analysis parts moved to separate functions
8256 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8257 parameters and updated both callers.
8258 (sra_modify_expr): Removed parameter data.
8259 (sra_modify_function_body): New function.
8260 (perform_intra_sra): Call sra_modify_function_body to modify the
8262 (replace_removed_params_ssa_names): Parameter data changed into
8264 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8265 changed the parameter dont_convert to convert with the opposite
8267 (sra_ipa_modify_assign): Parameter data changed into adjustments
8268 vector, return value changed to bool.
8269 (ipa_sra_modify_function_body): New function.
8270 (sra_ipa_reset_debug_stmts): Updated a comment.
8271 (modify_function): Use ipa_sra_modify_function_body to modify function
8274 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8277 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8278 (canon_true_dependence): Likewise.
8279 (write_dependence_p): Likewise.
8281 2010-05-04 Jan Hubicka <jh@suse.cz>
8283 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8284 * cgraphbuild.c: Include ipa-utils.h
8285 (record_reference_ctx): New struct.
8286 (record_reference): Simplify to work on initializers; not statements.
8287 (mark_address, mark_load, mark_store): New.
8288 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8290 (record_references_in_initializer): Update use of record_reference.
8291 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8294 2010-05-04 Jan Hubicka <jh@suse.cz>
8296 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8297 node will be removed anyway.
8298 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8299 relink aliases of node into prevailing node.
8300 * varpool.c (varpool_remove_node): Remove aliases properly;
8301 when removing node, remove all its aliases too; remove DECL_INITIAL
8302 of removed node; ggc_free the varpool node.
8304 2010-05-04 Richard Guenther <rguenther@suse.de>
8306 PR tree-optimization/43879
8307 * tree-ssa-structalias.c (alias_get_name): Use
8308 DECL_ASSEMBLER_NAME if available.
8309 (create_function_info_for): Return the varinfo node.
8310 (ipa_pta_execute): Associate same-body aliases and extra names
8311 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8313 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8315 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8317 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8320 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8321 only if HONOR_REG_ALLOC_ORDER is not defined.
8323 2010-05-04 Richard Guenther <rguenther@suse.de>
8325 PR tree-optimization/43949
8326 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8329 2010-04-26 Jason Merrill <jason@redhat.com>
8331 * c.opt (-fstrict-enums): New.
8332 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8334 2010-05-03 David Ung <davidu@mips.com>
8335 James E. Wilson <wilson@codesourcery.com>
8337 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8338 emit the trap instruction before the divide for TUNE_74K.
8340 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8342 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8343 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8344 based on the above, for new target hook.
8346 * hooks.c (hook_bool_mode_true): New generic hook.
8347 * hooks.h (hook_bool_mode_true): Add prototype.
8349 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8351 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8352 target hook, set to hook_bool_mode_false.
8353 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8354 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8355 with targetm.small_register_classes_for_mode_p.
8356 (find_reusable_reload): Likewise.
8357 (combine_reloads): Likewise.
8358 * reload1.c (reload_as_needed): Likewise.
8359 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8360 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8361 dead_or_predicable): Likewise.
8362 * regmove.c (optimize_reg_copy_1): Likewise.
8363 * calls.c (prepare_call_address): Likewise.
8364 (precompute_register_parameters): Likewise.
8366 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8368 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8369 implementation of the hook that considers all register classes
8370 small except for SH64.
8371 (sh_override_options): Use the new hook.
8372 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8375 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8377 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8378 implementation of the hook that considers all register classes
8380 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8383 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8385 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8386 implementation of the hook that considers all register classes
8388 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8391 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8393 * config/m32c/m32c.h: Likewise.
8394 * config/pdp11/pdp11.h: Likewise.
8395 * config/avr/avr.h: Likewise.
8396 * config/xtensa/xtensa.h: Likewise.
8397 * config/m68hc11/m68hc11.h: Likewise.
8398 * config/mn10300/mn10300.h: Likewise.
8399 * config/mcore/mcore.h: Likewise.
8400 * config/h8300/h8300.h: Likewise.
8401 * config/bfin/bfin.h: Likewise.
8403 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8404 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8406 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8408 * double-int.h (tree_to_double_int): Remove macro.
8409 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8410 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8411 (tree_to_double_int): New function.
8412 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8414 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8416 2010-05-03 Richard Guenther <rguenther@suse.de>
8418 PR tree-optimization/43971
8419 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8420 constraints in the !flag_delete_null_pointer_checks case.
8422 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8425 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8426 result mode matches original rtl mode.
8428 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8431 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8433 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8435 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8436 when processing flag options.
8438 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8440 * gcov-iov.c (main): Change format string placeholder
8441 from %#08x to 0x%08x.
8442 * genchecksum.c (dosum): Change format string placeholder
8443 from %#02x to 0x%02x.
8445 2010-05-02 Richard Guenther <rguenther@suse.de>
8447 PR tree-optimization/43879
8448 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8450 2010-05-02 Bruno Haible <bruno@clisp.org>
8452 * doc/extend.texi (Function Attributes): Fix a typo.
8454 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8457 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8458 placeholder from 0x%x to %#x.
8459 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8460 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8461 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8462 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8463 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8464 * config/i386/i386.c (ix86_target_string): Ditto.
8465 * config/i386/i386.c (output_pic_addr_const): Ditto.
8466 (print_operand): Ditto.
8468 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8470 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8471 placeholder from 0x%x to %#x.
8472 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8473 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8474 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8475 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8476 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8477 * optc-gen.awk: Ditto.
8478 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8479 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8480 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8481 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8483 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8485 * target.h (struct calls): Add function_value_regno_p field.
8486 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8487 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8488 * targhooks.c (default_function_value_regno_p): New function.
8489 * targhooks.h (default_function_value_regno_p): Declare function.
8490 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8491 * builtins.c. (apply_result_size): (Ditto.).
8492 * combine.c. (likely_spilled_retval_p): (Ditto.).
8493 * mode-switching.c. Include 'target.h'.
8494 (create_pre_exit): Use function_value_regno_p hook.
8495 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8496 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8497 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8499 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8500 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8501 (ix86_function_value_regno_p): Declare as static, change argument
8502 type to const unsigned int.
8503 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8505 2010-05-01 Richard Guenther <rguenther@suse.de>
8507 PR tree-optimization/43949
8508 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8510 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8512 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8514 * rtl.h (CONST_DOUBLE_P): Define.
8515 (rtx_to_double_int): Declare.
8516 * emit-rtl.c (rtx_to_double_int): New function.
8517 * dwarf2out.c (insert_double): New function.
8518 (loc_descriptor, add_const_value_attribute): Clean up, use
8519 rtx_to_double_int and insert_double functions.
8521 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8523 * doc/extend.texi (Inline): Add missing return keyword to examples.
8524 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8527 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8529 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8530 the variable part of the offset as well. Use highest_pow2_factor for
8531 all alignment checks.
8533 2010-04-30 Richard Guenther <rguenther@suse.de>
8535 PR tree-optimization/43879
8536 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8539 2010-04-30 Jan Hubicka <jh@suse.cz>
8541 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8543 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8545 2010-04-30 Jan Hubicka <jh@suse.cz>
8547 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8549 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8550 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8551 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8552 cgraph_node_set_needs_ltrans_p): Remove.
8554 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8556 * sdbout.c: Include vec.h, do not include varray.h.
8557 (deferred_global_decls, sdbout_global_decl,
8558 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8559 * toplev.c: Do not include varray.h.
8560 (dump_memory_report): Do not dump VARRAY statistics.
8561 * gengtype.c (open_base_file): Ignore varray.h.
8562 * Makefile.in: Update for abovementioned changes.
8563 Remove all traces of varray.c and varray.h.
8564 * varray.c: Remove file.
8565 * varray.h: Remove file.
8567 2010-04-30 Jan Hubicka <jh@suse.cz>
8569 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8572 2010-04-30 Jan Hubicka <jh@suse.cz>
8574 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8577 2010-04-30 Richard Guenther <rguenther@suse.de>
8579 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8580 constraints for CONSTRUCTOR.
8582 2010-04-30 Richard Guenther <rguenther@suse.de>
8585 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8586 first after all lowering passes.
8588 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8590 * toplev.c: Include varray.h for statistics dumping.
8591 * tree.h: Do not declare varray_head_tag.
8592 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8593 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8594 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8595 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8596 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8597 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8598 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8599 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8601 * Makefile.in: Update for abovementioned changes.
8603 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8606 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8608 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8610 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8611 Use this function to do machine-specific conversion.
8612 (picochip_legitimize_reload_address): Likewise.
8613 (picochip_legitimate_address_p): Check valid base register only if
8615 (picochip_check_conditional_copy): Check for modw only if opnd is
8617 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8618 to call the function in c.
8619 * config/picochip/picochip-protos.h
8620 (picochip_legitimize_reload_address): Define.
8621 * config/picochip/picochip.md (supported_compare1): Define.
8623 2010-04-30 Jan Hubicka <jh@suse.cz>
8625 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8626 (cgraph_global_info): Remove inlined.
8627 (LTO_cgraph_tag_names): Remove.
8628 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8629 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8630 simplify cgraph tags and document.
8631 (lto_output_node): Use only LTO_cgraph_unavail_node and
8632 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8633 for_functions_valid, global info, process and output flags.
8634 (input_overwrite_node): Initialize estimated stack size and
8635 estimated growth. Do not read flags we no longer store.
8636 (input_node): Likewise do not read info no longer stored.
8637 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8640 2010-04-30 Richard Guenther <rguenther@suse.de>
8642 PR tree-optimization/43879
8643 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8644 handle non-zero initializers.
8646 2010-04-30 Richard Guenther <rguenther@suse.de>
8648 * builtins.c (fold_builtin_1): Delete free (0).
8650 2010-04-29 Jan Hubicka <jh@suse.cz>
8652 * gengtype.c (open_base_files): Add lto-streamer.h
8653 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8654 (pass_ipa_cp): GGC collect.
8655 * toplev. (compile_file): Do not output symbols.
8656 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8657 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8658 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8659 * lto-section-in.c: Include ggc.h
8660 (lto_new_in_decl_state): Alloc in GGC.
8661 (lto_delete_in_decl_state): Likewise.
8662 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8665 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8668 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8669 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8670 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8671 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8672 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8673 account only if HONOR_REG_ALLOC_ORDER is not defined.
8674 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8675 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8677 2010-04-29 Jon Grant <04@jguk.org>
8679 * collect2.c (vflag): Change type from int to bool.
8681 (helpflag): New global bool.
8682 (main): Set vflag and debug with boolean, not integer truth values.
8683 Accept new "--help" option and output usage text if found.
8684 * collect2.h (vflag): Update prototype.
8687 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8690 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8692 2010-04-29 Richard Guenther <rguenther@suse.de>
8695 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8696 with ATTRIBUTE_UNUSED.
8698 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8701 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8702 INSN_P with NONDEBUG_INSN_P.
8703 (distance_non_agu_define): Likewise.
8704 (distance_agu_use): Likewise.
8706 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8708 From Dominique d'Humieres <dominiq@lps.ens.fr>
8710 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8713 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8715 * plugin.h (invoke_plugin_callbacks): New inline function.
8716 * plugin.c (flag_plugin_added): New global flag.
8717 (add_new_plugin): Initialize above flag.
8718 (invoke_plugin_callbacks): Rename to ...
8719 (invoke_plugin_callbacks_full): ... this.
8721 2010-04-28 Jan Hubicka <jh@suse.cz>
8723 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8724 (lto_varpool_replace_node): New.
8725 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8726 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8727 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8728 * cgraph.h (varpool_node_ptr): New type.
8729 (varpool_node_ptr): New vector.
8730 (varpool_node_set_def): New structure.
8731 (varpool_node_set): New type.
8732 (varpool_node_set): New vector.
8733 (varpool_node_set_element_def): New structure.
8734 (varpool_node_set_element, const_varpool_node_set_element): New types.
8735 (varpool_node_set_iterator): New type.
8736 (varpool_node): Add prev pointers, add used_from_other_partition,
8738 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8739 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8740 varpool_get_node, varpool_remove_node): Declare.
8741 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8742 varpool_node_set_size): New inlines.
8743 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8744 * tree-pass.h (varpool_node_set_def): Forward declare.
8745 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8746 (ipa_write_optimization_summaries): Update prototype.
8747 * ipa-cp.c (ipcp_write_summary): Update.
8748 * ipa-reference.c (ipa_reference_write_summary): Update.
8749 * lto-cgraph.c (lto_output_varpool_node): New static function.
8750 (output_varpool): New function.
8751 (input_varpool_node): New static function.
8752 (input_varpool_1): New function.
8753 (input_cgraph): Input varpool.
8754 * ipa-pure-const.c (pure_const_write_summary): Update.
8755 * lto-streamer-out.c (lto_output): Update, output varpool too.
8756 (write_global_stream): Kill WPA hack.
8757 (produce_asm_for_decls): Update.
8758 (output_alias_pair_p): Handle variables.
8759 (output_unreferenced_globals): Output only needed partition of varpool.
8760 * ipa-inline.c (inline_write_summary): Update.
8761 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8763 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8764 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8765 varpool_node_set_new, varpool_node_set_add,
8766 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8767 debug_varpool_node_set): New functions.
8768 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8769 (execute_one_pass): Process new decls too.
8770 (ipa_write_summaries_2): Pass around vsets.
8771 (ipa_write_summaries_1): Likewise.
8772 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8774 (ipa_write_optimization_summaries_1): Pass around vsets.
8775 (ipa_write_optimization_summaries): Likewise.
8776 * varpool.c (varpool_get_node): New.
8777 (varpool_node): Update doubly linked lists.
8778 (varpool_remove_node): New.
8779 (dump_varpool_node): More dumping.
8780 (varpool_enqueue_needed_node): Update doubly linked lists.
8781 (decide_is_variable_needed): Kill ltrans hack.
8782 (varpool_finalize_decl): Kill lto hack.
8783 (varpool_assemble_decl): Skip decls in other partitions.
8784 (varpool_assemble_pending_decls): Update doubly linkes lists.
8785 (varpool_empty_needed_queue): Likewise.
8786 (varpool_extra_name_alias): Likewise.
8787 * lto-streamer.c (lto_get_section_name): Add vars section.
8788 * lto-streamer.h (lto_section_type): Update.
8789 (output_varpool, input_varpool): Declare.
8791 2010-04-28 Mike Stump <mikestump@comcast.net>
8793 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8795 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8797 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8798 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8799 (lto_input_ts_type_tree_pointers): Likewise.
8800 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8801 (lto_output_ts_type_tree_pointers): Likewise.
8803 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8805 Uniquization of constants at the Tree level
8806 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8807 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8809 (tree_output_constant_def): Declare.
8810 * gimplify.c (gimplify_init_constructor): When using block copy, first
8811 uniquize the constant constructor on the RHS.
8812 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8813 DECL_IN_CONSTANT_POOL flag.
8814 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8815 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8817 (assemble_variable): Deal with symbols belonging to the tree constant
8819 (get_constant_section): Add ALIGN parameter and simplify.
8820 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8821 (assemble_constant_contents): Use the expression of the VAR_DECL.
8822 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8823 (tree_output_constant_def): New global function.
8824 (mark_constant): Use the expression of the VAR_DECL.
8825 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8827 (output_object_block): Likewise and assemble the expression.
8829 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8831 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8832 hash_tree, eq_tree): New tree hash table.
8833 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8834 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8835 lto_orig_address_remove): Reimplement.
8837 2010-04-28 Xinliang David Li <davidxl@google.com>
8840 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8841 (compute_uninit_opnds_pos): New function.
8842 (is_non_loop_exit_postdominating): New function.
8843 (compute_control_dep_chain): New function.
8844 (find_pdom): New function.
8845 (convert_control_dep_chain_into_preds): New function.
8846 (find_predicates): New function.
8847 (find_control_equiv_block): New function.
8848 (collect_phi_def_edges): New function.
8849 (find_def_preds): New function.
8850 (find_dom): New function.
8851 (dump_predicates): New function.
8852 (get_cmp_code): New function.
8853 (is_value_included_in): New function.
8854 (find_matching_predicate_in_rest_chains): New function.
8855 (use_pred_not_overlap_with_undef_path_pred): New function.
8856 (is_use_properly_guarded): New function.
8857 (normalize_cond_1): New function.
8858 (is_and_or_or): New function.
8859 (normalize_cond): New function.
8860 (is_gcond_subset_of): New function.
8861 (is_subset_of_any): New function.
8862 (is_or_set_subset_of): New function.
8863 (is_and_set_subset_of): New function.
8864 (is_norm_cond_subset_of): New function.
8865 (is_pred_expr_subset_of): New function.
8866 (is_pred_chain_subset_of): New function.
8867 (is_included_in): New function.
8868 (is_superset_of): New function.
8869 (find_uninit_use): New function.
8870 (warn_uninitialized_phi): New function.
8871 (compute_possibly_undefined_names): New function.
8872 (ssa_undefined_value_p): New function.
8873 (execute_late_warn_uninitialized): New function.
8874 * tree-ssa.c (ssa_undefined_value_p): Removed.
8875 (warn_uninit): Changed to extern.
8876 (warn_uninitialized_phi): Removed.
8877 (warn_uninitialized_vars): Changed to extern.
8878 (execute_late_warn_uninitialized): Removed
8879 * tree-flow.h: Add new prototypes.
8880 * timevar.def: Add new time variable.
8881 * Makefile.in: Add new build file.
8883 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8885 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8888 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8891 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8893 2010-04-28 Martin Jambor <mjambor@suse.cz>
8895 * cgraph.h (struct cgraph_node): New field indirect_calls.
8896 (struct cgraph_indirect_call_info): New type.
8897 (struct cgraph_edge): Removed field indirect_call. New fields
8898 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8899 (cgraph_create_indirect_edge): Declare.
8900 (cgraph_make_edge_direct): Likewise.
8901 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8902 * ipa-prop.h (struct ipa_param_call_note): Removed.
8903 (struct ipa_node_params): Removed field param_calls.
8904 (ipa_create_all_structures_for_iinln): Declare.
8905 * cgraph.c: Described indirect edges and uids in initial comment.
8906 (cgraph_add_edge_to_call_site_hash): New function.
8907 (cgraph_edge): Search also among the indirect edges, use
8908 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8909 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8910 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8912 (initialize_inline_failed): Assign a reason to indirect edges.
8913 (cgraph_create_edge_1): New function.
8914 (cgraph_create_edge): Moved some functionality to
8915 cgraph_create_edge_1.
8916 (cgraph_create_indirect_edge): New function.
8917 (cgraph_edge_remove_callee): Add an assert checking for
8919 (cgraph_edge_remove_caller): Special-case indirect edges.
8920 (cgraph_remove_edge): Likewise.
8921 (cgraph_set_edge_callee): New function.
8922 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8923 (cgraph_make_edge_direct): New function.
8924 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8925 the declaration of the call statement matches.
8926 (cgraph_node_remove_callees): Special-case indirect edges.
8927 (cgraph_clone_edge): Likewise.
8928 (cgraph_clone_node): Clone also the indirect edges.
8929 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8930 indirect_call, dump count of indirect_calls edges.
8931 * ipa-prop.c (iinlining_processed_edges): New variable.
8932 (ipa_note_param_call): Create indirect edges instead of
8933 creating notes. New parameter node.
8934 (ipa_analyze_call_uses): New parameter node, pass it on to
8935 ipa_note_param_call.
8936 (ipa_analyze_stmt_uses): Likewise.
8937 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8938 (print_edge_addition_message): Work on edges rather than on notes.
8939 (update_call_notes_after_inlining): Likewise, renamed to
8940 update_indirect_edges_after_inlining.
8941 (ipa_create_all_structures_for_iinln): New function.
8942 (ipa_free_node_params_substructures): Do not free notes.
8943 (ipa_edge_duplication_hook): Propagate bits within
8944 iinlining_processed_edges bitmap.
8945 (ipa_node_duplication_hook): Do not duplicate notes.
8946 (free_all_ipa_structures_after_ipa_cp): Renamed to
8947 ipa_free_all_structures_after_ipa_cp.
8948 (free_all_ipa_structures_after_iinln): Renamed to
8949 ipa_free_all_structures_after_iinln.
8950 (ipa_write_param_call_note): Removed.
8951 (ipa_read_param_call_note): Removed.
8952 (ipa_write_indirect_edge_info): New function.
8953 (ipa_read_indirect_edge_info): Likewise.
8954 (ipa_write_node_info): Do not stream notes, do stream information
8956 (ipa_read_node_info): Likewise.
8957 (lto_ipa_fixup_call_notes): Removed.
8958 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8959 * ipa-inline.c (pass_ipa_inline): Likewise.
8960 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8961 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8962 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8964 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8966 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8967 (output_cgraph): Stream also indirect edges.
8968 (lto_output_edge): Added capability to stream indirect edges.
8969 (input_edge): Likewise.
8970 (input_cgraph_1): Likewise.
8971 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8974 2010-04-28 Richard Guenther <rguenther@suse.de>
8976 PR tree-optimization/43879
8977 PR tree-optimization/43909
8978 * tree-ssa-structalias.c (struct variable_info): Add
8979 only_restrict_pointers flag.
8980 (new_var_info): Initialize it. Increment stats.total_vars here.
8981 (create_function_info_for): Do not increment stats.total_vars here.
8982 (get_function_part_constraint): Fix build with C++.
8983 (insert_into_field_list): Remove.
8984 (push_fields_onto_fieldstack): Properly merge fields.
8985 (create_variable_info_for): Split and simplify.
8986 (create_variable_info_for_1): New piece.
8987 (intra_create_variable_infos): Properly make restrict constraints
8990 2010-04-28 Richard Guenther <rguenther@suse.de>
8993 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8995 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8996 Jan Hubicka <hubicka@ucw.cz>
8998 * doc/invoke.texi (-Wsuggest-attribute=const,
8999 -Wsuggest-attribute=pure): Document.
9000 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
9001 (function_always_visible_to_compiler_p,
9002 suggest_attribute, warn_function_pure, warn_function_const):
9004 (check_call): Improve debug info.
9005 (analyze_function): Do not check availability.
9006 (add_new_function): Check availability.
9007 (propagate): Output warnings.
9008 (skip_function_for_local_pure_const): New function.
9009 (local_pure_const): Use it; output warnings.
9010 * common.opt (Wsuggest-attribute=const,
9011 Wsuggest-attribute=pure): New.
9013 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9015 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
9016 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
9017 or DW_CFA_def_cfa_offset{,_sf}.
9019 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9021 * tree.h: Fix truncated long macros.
9023 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
9025 * collect2.c (TARGET_64BIT): Redefine to target's default.
9026 * tlink.c: Likewise.
9027 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
9028 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
9029 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
9030 for underscoring __USER_LABEL_PREFIX__.
9031 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
9032 (SUB_LINK_ENTRY32): New.
9033 (SUB_LINK_ENTRY64): New.
9034 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
9035 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
9036 (SUB_LINK_ENTRY64): New.
9037 (SUB_LINK_ENTRY): New.
9038 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
9039 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
9040 x64 target is choosen.
9041 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
9042 * configure: Regenerated.
9043 * configure.ac (leading-mingw64-underscores): Option added.
9045 2010-04-27 Jan Hubicka <jh@suse.cz>
9047 * doc/invoke.texi (-fipa-profile): Document.
9048 * opts.c (decode_options): Enable ipa-profile at -O1.
9049 * timevar.def (TV_IPA_PROFILE): Define.
9050 * common.opt (fipa-profile): Add.
9051 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
9053 (cgraph_propagate_frequency): Handle only local ones.
9054 * tree-pass.h (pass_ipa_profile): Declare.
9055 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
9056 (pass_ipa_profile): Use TV_IPA_PROFILE.
9057 * ipa.c (ipa_profile): New function.
9058 (gate_ipa_profile): Likewise.
9059 (pass_ipa_profile): New global variable.
9060 * passes.c (pass_ipa_profile): New.
9062 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
9064 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
9066 2010-04-27 Martin Jambor <mjambor@suse.cz>
9069 * ipa.c (dissolve_same_comdat_group_list): New function.
9070 (function_and_variable_visibility): Call
9071 dissolve_same_comdat_group_list when comdat group contains external or
9073 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
9074 lists are circular and that they contain only DECL_ONE_ONLY nodes.
9076 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9078 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
9079 (const_hash_1) <VECTOR_CST>: New case.
9080 (compare_constant) <VECTOR_CST>: Likewise.
9081 <ADDR_EXPR>: Deal with LABEL_REFs.
9082 (copy_constant) <VECTOR_CST>: New case.
9084 2010-04-27 Jan Hubicka <jh@suse.cz>
9086 * cgraph.c (cgraph_propagate_frequency): New function.
9087 * cgraph.h (cgraph_propagate_frequency): Declare.
9088 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
9089 cgraph_propagate_frequency.
9091 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9093 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
9095 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
9098 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
9099 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
9100 here to determine which regs to push and how much stack to reserve.
9102 2010-04-27 Jie Zhang <jie@codesourcery.com>
9104 * doc/gimple.texi (gimple_statement_with_ops): Remove
9105 addresses_taken field.
9106 (gimple_statement_with_memory_ops): Likewise.
9108 2010-04-27 Jan Hubicka <jh@suse.cz>
9110 * tree-inline.c (eni_inlining_weights): Remove.
9111 (estimate_num_insns): Special case more builtins.
9113 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
9116 * c-typeck.c (build_binary_op): Move forward check for comparison
9117 pointer with null pointer constant and adjust the diagnostic message.
9119 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
9122 * configure.ac (gcc_cv_as_section_has_align): Set if installed
9123 binutils supports extended .section directive needed by LTO, or
9124 warn if older binutils found.
9125 (LTO_BINARY_READER): New AC_SUBST'd variable.
9126 (LTO_USE_LIBELF): Likewise.
9127 * gcc/config.gcc (lto_binary_reader): New target-specific configure
9129 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
9130 (LTO_USE_LIBELF): Likewise.
9131 * configure: Regenerate.
9133 * collect2.c (is_elf): Rename from this ...
9134 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
9135 object files in addition to ELF-formatted ones.
9136 (scan_prog_file): Caller updated. Also allow for LTO info marker
9137 symbol to be prefixed or not by an extra underscore.
9139 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
9140 * config/i386/winnt.c: Also #include lto-streamer.h
9141 (i386_pe_asm_named_section): Specify 1-byte section alignment for
9143 (i386_pe_asm_output_aligned_decl_common): Add comment.
9144 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
9146 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
9149 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
9150 Add missing earlyclobber for second alternative.
9152 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
9154 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
9155 bits for artificial defs at the top of the block.
9156 * fwprop.c (single_def_use_enter_block): Don't call it.
9158 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
9161 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9162 instead of "$gcc_cv_objdump -T".
9163 Use "-undefined dynamic_lookup" on darwin.
9164 * gcc/configure: Regenerate.
9166 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9169 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9171 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9173 * c-parser.c (struct c_token): Move location field up.
9174 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9175 (struct c_declspecs): Convert typespec_word, storage_class, and
9176 default_int_p into bitfields.
9177 (struct c_declarator): Move loc field up.
9179 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9181 * cfgloop.h (struct loop): Move can_be_parallel field up.
9182 * ipa-prop.h (struct ip_node_params): Move bitfields up.
9183 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9185 (struct iv_cand): Convert pos field into a bitfield.
9186 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9188 (struct _stmt_vec_info): Shuffle fields for better packing.
9190 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9192 * varasm.c (IN_NAMED_SECTION): Remove guard.
9193 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9194 (IN_NAMED_SECTION_P): ...this.
9195 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9196 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9198 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9200 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9201 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
9202 of shadowing it. Fix comments.
9204 2010-04-26 Jan Hubicka <jh@suse.cz>
9206 * cgraph.c (cgraph_create_node): Set node frequency to normal.
9207 (cgraph_clone_node): Copy function frequency.
9208 * cgraph.h (node_frequency): New enum
9209 (struct cgraph_node): Add.
9210 * final.c (rest_of_clean_state): Update.
9211 * lto-cgraph.c (lto_output_node): Output node frequency.
9212 (input_overwrite_node): Input node frequency.
9213 * tre-ssa-loop-ivopts (computation_cost): Update.
9214 * lto-streamer-out.c (output_function): Do not output function
9216 * predict.c (maybe_hot_frequency_p): Update and handle functions
9218 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9220 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9221 (compute_function_frequency): Set noreturn functions to be executed
9223 (choose_function_section): Update.
9224 * lto-streamer-in.c (input_function): Do not input function frequency.
9225 * function.c (allocate_struct_function): Do not initialize function
9227 * function.h (function_frequency): Remove.
9228 (struct function): Remove function frequency.
9229 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9230 (try_update): Update.
9231 * tree-inline.c (initialize_cfun): Do not update function frequency.
9232 * passes.c (pass_init_dump_file): Update.
9233 * i386.c (ix86_compute_frame_layout): Update.
9234 (ix86_pad_returns): Update.
9236 2010-04-26 Jie Zhang <jie@codesourcery.com>
9238 PR tree-optimization/43833
9239 * tree-vrp.c (range_int_cst_p): New.
9240 (range_int_cst_singleton_p): New.
9241 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9242 when both operands are constants. Use range_int_cst_p in
9245 2010-04-26 Jan Hubicka <jh@suse.cz>
9247 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9249 2010-04-26 Richard Guenther <rguenther@suse.de>
9252 * gimple.c (gimple_decl_printable_name): Deal gracefully
9253 with a NULL DECL_NAME.
9255 2010-04-26 Richard Guenther <rguenther@suse.de>
9258 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9259 if emitting debug information and it is either a function
9260 or a namespace decl.
9262 2010-04-26 Ira Rosen <irar@il.ibm.com>
9264 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9265 determine if the statement is vectorizable, and a macro to access it.
9266 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9267 Skip statements that can't be vectorized. If the analysis fails,
9268 mark the statement as unvectorizable if vectorizing basic block.
9269 (vect_compute_data_refs_alignment): Likewise.
9270 (vect_verify_datarefs_alignment): Skip statements marked as
9271 unvectorizable. Add print.
9272 (vect_analyze_group_access): Skip statements that can't be
9273 vectorized. If the analysis fails, mark the statement as
9274 unvectorizable if vectorizing basic block.
9275 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9276 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9277 generated stmts for SLP.
9278 (new_stmt_vec_info): Initialize the new field.
9279 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9280 statements marked as unvectorizable.
9282 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9284 * c-common.c (flag_isoc1x): New.
9285 (flag_isoc99): Update comment.
9286 * c-common.h (flag_isoc1x): New.
9287 (flag_isoc99): Update comment.
9288 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9289 __<type>_DECIMAL_DIG__.
9290 * c-opts.c (set_std_c1x): New.
9291 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9292 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9293 * c.opt (-std=c1x, -std=gnu1x): New options.
9294 * doc/cpp.texi: Mention -std=c1x.
9295 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9296 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9297 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9298 * doc/standards.texi: Mention C1X.
9299 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9300 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9301 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9304 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9306 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9307 placeholder from 0x%x to %#x.
9308 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9309 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9310 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9311 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9312 * config/i386/i386.c (ix86_target_string): Ditto.
9313 (output_pic_addr_const): Ditto.
9314 (print_operand): Ditto.
9316 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9318 * combine.c (find_split_point): Add third argument. Use it
9319 to find nested multiply-accumulate instructions. Adjust calls.
9320 (try_combine): Adjust call to find_split_point.
9322 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9324 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9326 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9328 PR tree-optimization/41442
9329 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9330 (fold_binary_loc): Call it.
9332 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9334 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9335 * opts.c (common_handle_option): Allow disabling it.
9336 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9338 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9340 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9341 between modes if both types are integral.
9343 2010-04-23 Richard Guenther <rguenther@suse.de>
9345 PR tree-optimization/43572
9346 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9348 2010-04-23 Richard Guenther <rguenther@suse.de>
9351 * tree-inline.c (tree_can_inline_p): Also check compatibility
9354 2010-04-23 Martin Jambor <mjambor@suse.cz>
9356 PR tree-optimization/43846
9357 * tree-sra.c (struct access): New flag grp_assignment_read.
9358 (build_accesses_from_assign): Set grp_assignment_read.
9359 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9360 (enum mark_read_status): New type.
9361 (analyze_access_subtree): Propagate grp_assignment_read, create
9362 accesses also if both direct_read and root->grp_assignment_read.
9364 2010-04-23 Martin Jambor <mjambor@suse.cz>
9367 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9368 function does not have type attributes.
9370 2010-04-23 Richard Guenther <rguenther@suse.de>
9373 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9376 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9378 * sese.h (create_if_region_on_edge): Remove.
9380 * sese.c (create_if_region_on_edge): Make static.
9382 * tree-inline.c: Do not include ggc.h.
9384 * expr.c: Do not include ggc.h.
9386 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9389 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9392 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9393 in the middle of insns for casesi_worker_2.
9395 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9397 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9399 2010-04-22 Ira Rosen <irar@il.ibm.com>
9401 PR tree-optimization/43842
9402 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9403 loop unrolling in update of exit phis. Fix comment.
9404 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9405 least two reduction statements in the loop before starting SLP
9408 2010-04-22 Nick Clifton <nickc@redhat.com>
9410 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9412 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9414 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9417 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9419 * tree-parloops.c (loop_parallel_p): New argument
9420 parloop_obstack. Pass it down.
9421 (parallelize_loops): New variable parloop_obstack. Initialize it,
9422 pass it down, free it.
9424 * tree-loop-linear.c (linear_transform_loops): Pass down
9427 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9428 of type struct obstack *.
9430 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9431 scratch_obstack. Initialize it, pass down, free it.
9433 * lambda.h (lambda_loop_new): Remove.
9434 (lambda_matrix_new, lambda_matrix_inverse)
9435 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9436 argument of type struct obstack *.
9438 * lambda-trans.c (lambda_trans_matrix_new): New argument
9439 lambda_obstack. Pass it down, use obstack allocation for ret.
9440 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9443 * lambda-mat.c (lambda_matrix_get_column)
9444 (lambda_matrix_project_to_null): Remove.
9445 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9447 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9450 * lambda-code.c (lambda_loop_new): New function.
9451 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9452 (lambda_compute_auxillary_space, lambda_compute_target_space)
9453 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9454 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9455 (build_access_matrix): New argument lambda_obstack. Use obstack
9457 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9458 argument lambda_obstack. Pass it down.
9460 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9462 * optabs.h (expand_widening_mult): Declare.
9464 2010-04-22 Richard Guenther <rguenther@suse.de>
9466 PR tree-optimization/43845
9467 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9468 lookup the CALL_EXPR function and arguments.
9470 2010-04-22 Nick Clifton <nickc@redhat.com>
9472 * config/stormy16/stormy16.c
9473 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9474 * config/stormy16/stormy16.h: Tidy up formatting.
9475 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9476 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9477 (ineqbranchsi): Delete pattern.
9478 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9479 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9480 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9481 stormy16-lib2-ucmpsi2.c.
9483 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9485 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9486 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9487 extra set merge_set_noclobber, and use it to relax the final test
9489 * df.h (df_simulate_find_noclobber_defs): Declare.
9490 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9492 (df_simulate_find_noclobber_defs): New function.
9494 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9496 * config/i386/i386.md: Use {} around multi-line preparation statements.
9498 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9500 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9501 (process_init_element): New argument of type struct obstack *.
9503 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9504 (set_init_index, set_init_label, set_nonincremental_init)
9505 (set_nonincremental_init_from_string, find_init_member)
9506 (output_init_element, output_pending_init_elements)
9507 (process_init_element): New argument braced_init_obstack. Pass it
9509 (push_range_stack, add_pending_init): New argument
9510 braced_init_obstack. Use obstack allocation.
9512 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9513 braced_init_obstack. Pass it down.
9514 (c_parser_braced_init): New variables ret, braced_init_obstack.
9515 Initialize obstack, pass it down and finally free it.
9517 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9520 * tree-pass.h (pass_optimize_widening_mul): Declare.
9521 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9522 gate_optimize_widening_mul): New static functions.
9523 (pass_optimize_widening_mul): New.
9524 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9525 <case MULT_EXPR>: Remove support for widening multiplies.
9526 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9527 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9528 simplify_gen_unary rather than directly building extensions.
9529 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9531 * expmed.c (expand_widening_mult): New function.
9532 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9534 2010-04-21 Jan Hubicka <jh@suse.cz>
9536 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9537 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9538 * lto-wpa-fixup.c: Remove.
9539 * Makefile.in (lto-wpa-fixup.o): Remove.
9540 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9541 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9542 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9544 2010-04-21 Jan Hubicka <jh@suse.cz>
9546 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9547 add write_optimization_summary, read_optimization_summary.
9548 (ipa_write_summaries_of_cgraph_node_set): Remove.
9549 (ipa_write_optimization_summaries): Declare.
9550 (ipa_read_optimization_summaries): Declare.
9551 * ipa-cp.c (pass_ipa_cp): Update.
9552 * ipa-reference.c (pass_ipa_reference): Update.
9553 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9554 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9556 * ipa-inline.c (pass_ipa_inline): Update.
9557 * ipa.c (pass_ipa_whole_program): Update.
9558 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9559 * passes.c (ipa_write_summaries_1): Do not test wpa.
9560 (ipa_write_optimization_summaries_1): New.
9561 (ipa_write_optimization_summaries): New.
9562 (ipa_read_summaries): Do not test ltrans.
9563 (ipa_read_optimization_summaries_1): New.
9564 (ipa_read_optimization_summaries): New.
9566 2010-04-21 Jan Hubicka <jh@suse.cz>
9568 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9570 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9572 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9575 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9576 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9578 2010-04-21 Jan Hubicka <jh@suse.cz>
9580 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9582 2010-04-21 Jan Hubicka <jh@suse.cz>
9584 * varpool.c (decide_is_variable_needed): Variable is always needed
9587 2010-04-21 Jan Hubicka <jh@suse.cz>
9589 * opts.c (decode_options): Enable pure-const pass for whopr.
9591 2010-04-21 Jan Hubicka <jh@suse.cz>
9593 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9594 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9596 (cgraph_decide_inlining): Do not expect callee to be removed in all
9599 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9601 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9603 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9605 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9606 amdfam10_decode attributes.
9608 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9611 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9612 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9613 (lower_copyprivate_clauses): Use private var in outer
9614 context instead of original var. Make sure the types
9615 are correct for VLAs.
9617 2010-04-21 Richard Guenther <rguenther@suse.de>
9619 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9620 to non-pointer objects.
9622 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9624 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9625 last chain entry if it starts with the still current label.
9626 (add_location_or_const_value_attribute): Check that
9627 loc_list->first->next is NULL instead of comparing ->first with ->last.
9628 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9629 to add_var_loc_to_decl.
9631 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9632 >= 4 add also address size and segment size fields into CIE header.
9634 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9635 long as address size is the same as sizeof (void *) and
9637 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9638 address size or segment size is unexpected, return DW_EH_PE_omit.
9639 (classify_object_over_fdes): If get_cie_encoding returned
9640 DW_EH_PE_omit, return -1.
9641 (init_object): If classify_object_over_fdes returned -1,
9642 pretend there were no FDEs at all.
9644 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9646 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9647 bswap{si,di}2 using SWI48 mode iterator.
9648 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9649 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9650 set modrm attribute of bswap insn to 0 and remove length attribute.
9651 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9652 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9653 set mode attribute to <MODE> and remove length attribute.
9655 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9657 PR rtl-optimization/43520
9658 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9659 zero available registers.
9661 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9663 * builtins.c (fold_builtin_cproj): Fold more cases.
9665 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9667 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9668 (fold_builtin_1): Fold builtin cproj.
9669 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9670 Use ATTR_CONST_NOTHROW_LIST.
9672 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9674 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9675 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9676 ffsi2_no_cmove for !TARGET_CMOVE.
9677 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9678 (ffssi2): Remove expander.
9679 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9681 (ctz<mode>2): Ditto from ctz{si,di}2.
9682 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9684 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9687 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9689 * dwarf2out.c (AT_linkage_name): Define.
9690 (clone_as_declaration): Handle DW_AT_linkage_name.
9691 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9692 of DW_AT_MIPS_linkage_name.
9693 (move_linkage_attr): Likewise.
9694 (dwarf2out_finish): Likewise.
9696 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9699 * fold-const.c (fold_comparison): New folding rule.
9701 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9703 * double-int.h (double_int_setbit): Declare.
9704 * double-int.c (double_int_setbit): New function.
9705 * rtl.h (immed_double_int_const): Declare.
9706 * emit-rtl.c (immed_double_int_const): New function.
9707 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9708 and immed_double_int_const functions.
9709 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9710 expand_copysign_bit): (Ditto.).
9711 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9712 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9713 * dojump.c (prefer_and_bit_test): (Ditto.).
9714 * expr.c (convert_modes, reduce_to_bit_field_precision,
9715 const_vector_from_tree): (Ditto.).
9716 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9718 2010-04-20 Jan Hubicka <jh@suse.cz>
9720 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9721 (dump_cgraph_node): Dump new flags.
9722 * cgraph.h (struct cgraph_node): Add flags
9723 reachable_from_other_partition and in_other_partition.
9724 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9725 other partition can not be removed.
9726 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9727 the other partition must be output; silence sanity checking on
9728 leaking functions bodies from other paritition.
9729 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9730 (lto_output_node): Output new flags; do not sanity check that inline
9731 clones are output; drop lto_forced_extern_inline_p code; do not mock
9732 visibility flags at partition boundaries.
9733 (add_node_to): New function.
9734 (output_cgraph): Use it to sort functions so masters appear before
9736 (input_overwrite_node): Input new flags.
9737 * passes.c (ipa_write_summaries): Do not call
9738 lto_new_extern_inline_states.
9739 * lto-section-out.c (forced_extern_inline,
9740 lto_new_extern_inline_states lto_delete_extern_inline_states,
9741 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9742 * lto-streamer.h (lto_new_extern_inline_states,
9743 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9744 lto_forced_extern_inline_p): Kill.
9746 2010-04-20 Richard Guenther <rguenther@suse.de>
9748 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9749 from vars that can have pointers.
9750 (process_constraint): Dump useless constraints.
9752 2010-04-20 Richard Guenther <rguenther@suse.de>
9754 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9755 (dump_sa_points_to_info): Remove asserts.
9756 (init_base_vars): nothing_id isn't an escape point nor does it
9759 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9761 * tree.h (TYPE_REF_IS_RVALUE): Define.
9762 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9763 should_move_die_to_comdat, prune_unused_types_walk): Handle
9764 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9765 (modified_type_die, gen_reference_type_die): Emit
9766 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9767 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9769 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9772 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9773 calls for -fpic -m31 if they have been sibcall optimized.
9775 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9777 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9778 ar.lc fixed and call-used.
9780 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9782 2010-04-19 Jan Hubicka <jh@suse.cz>
9784 * opts.c (decode_options): Disable whpr incompatible passes.
9785 * lto/lto.c (lto_1_to_1_map): Skip clones.
9786 (read_cgraph_and_symbols): Do not mark everything as needed.
9787 (do_whole_program_analysis): Do map only after optimizing;
9788 set proper cgraph_state; use passmanager.
9790 2010-04-19 DJ Delorie <dj@redhat.com>
9792 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9793 POINTER_PLUS_EXPR and fix them.
9795 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9797 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9798 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9799 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9800 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9801 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9802 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9803 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9804 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9805 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9806 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9807 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9809 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9811 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9812 (check_cond_move_block): Likewise.
9813 (cond_move_process_if_block): Likewise.
9814 (noce_find_if_block): Improve formatting.
9815 (find_if_header): Pass 0 to memset and tweak conditions.
9816 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9818 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9820 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9824 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9825 with non-local decl doesn't need chain.
9827 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9829 * ira-color.c (allocno_reload_assign): Avoid accumulating
9830 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9832 2010-04-19 Martin Jambor <mjambor@suse.cz>
9834 * gimple.h (create_tmp_reg): Declare.
9835 * gimplify.c (create_tmp_reg): New function.
9836 (gimplify_return_expr): Use create_tmp_reg.
9837 (gimplify_omp_atomic): Likewise.
9838 (gimple_regimplify_operands): Likewise.
9839 * tree-dfa.c (make_rename_temp): Likewise.
9840 * tree-predcom.c (predcom_tmp_var): Likewise.
9841 (reassociate_to_the_same_stmt): Likewise.
9842 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9843 (get_replaced_param_substitute): Likewise.
9844 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9845 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9846 * tree-ssa-pre.c (get_representative_for): Likewise.
9847 (create_expression_by_pieces): Likewise.
9848 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9849 (create_tailcall_accumulator): Likewise.
9851 2010-04-19 Martin Jambor <mjambor@suse.cz>
9853 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9855 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9857 2010-04-19 Richard Guenther <rguenther@suse.de>
9859 PR tree-optimization/43796
9860 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9861 from SCEV in the lattice.
9862 (vrp_visit_phi_node): Dump change.
9864 2010-04-19 Richard Guenther <rguenther@suse.de>
9866 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9867 * configure: Re-generated.
9869 2010-04-19 Richard Guenther <rguenther@suse.de>
9871 PR tree-optimization/43783
9872 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9873 constant ARRAY_REF operands two and three if possible.
9875 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9878 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9880 2010-04-19 Jie Zhang <jie@codesourcery.com>
9883 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9885 2010-04-19 Ira Rosen <irar@il.ibm.com>
9887 PR tree-optimization/37027
9888 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9889 and macro to access it.
9890 (vectorizable_reduction): Add argument.
9891 (vect_get_slp_defs): Likewise.
9892 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9893 statements for possible use in SLP.
9894 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9895 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9896 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9898 (vectorizable_reduction): Likewise.
9899 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9901 (vectorizable_type_demotion, vectorizable_type_promotion,
9902 vectorizable_store): Likewise.
9903 (vect_analyze_stmt): Update call to vectorizable_reduction.
9904 (vect_transform_stmt): Likewise.
9905 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9906 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9907 from different interleaving chains in same node.
9908 (vect_slp_rearrange_stmts): New function.
9909 (vect_supported_load_permutation_p): Allow load permutations for
9910 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9911 inside SLP nodes if necessary.
9912 (vect_analyze_slp_instance): Handle reductions.
9913 (vect_analyze_slp): Try to build SLP instances originating from groups
9915 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9916 (vect_get_constant_vectors): Create initial vectors for reductions
9917 according to reduction code. Add new argument.
9918 (vect_get_slp_defs): Add new argument, pass it to
9919 vect_get_constant_vectors.
9920 (vect_schedule_slp_instance): Remove SLP tree root statements.
9922 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9924 * tree.h (ENUM_IS_SCOPED): Define.
9925 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9926 for ENUM_IS_SCOPED enums.
9928 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9930 * fold-const.c (fold_comparison): Use ssizetype.
9931 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9932 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9933 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9934 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9936 * tree.h (initialize_sizetypes): Remove parameter.
9937 (build_common_tree_nodes): Remove second parameter.
9938 * stor-layout.c (initialize_sizetypes): Remove parameter.
9939 Always create an unsigned type.
9940 (set_sizetype): Assert that the passed type is unsigned and simplify.
9941 * tree.c (build_common_tree_nodes): Remove second parameter.
9942 Adjust call to initialize_sizetypes.
9943 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9944 build_common_tree_nodes.
9946 2010-04-18 Matthias Klose <doko@ubuntu.com>
9948 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9950 2010-04-18 Ira Rosen <irar@il.ibm.com>
9952 PR tree-optimization/43771
9953 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9954 load permutation doesn't have gaps.
9956 2010-04-18 Jan Hubicka <jh@suse.cz>
9958 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9959 (sse_prologue_save_insn expander): Use new pattern.
9960 (sse_prologue_save_insn1): New pattern and splitter.
9961 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9963 * i386.c (setup_incoming_varargs_64): Do not compute jump
9965 (ix86_gimplify_va_arg): Update alignment needed.
9966 (ix86_local_alignment): Do not align all local arrays to 128bit.
9968 2010-04-17 Jan Hubicka <jh@suse.cz>
9970 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9972 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9974 * arm.md (negdi2): Remove redundant code to force values into a
9977 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9979 * arm/bpabi.S: Add EABI alignment attributes to objects.
9980 * arm/bpabi-v6m.S: Likewise.
9981 * arm/crti.asm: Likewise.
9982 * arm/crtn.asm: Likewise.
9983 * arm/lib1funcs.asm: Likewise.
9984 * arm/libunwind.S: Likewise.
9986 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9988 * arm-protos.h (tune_params): New structure.
9989 * arm.c (current_tune): New variable.
9990 (arm_constant_limit): Delete.
9991 (struct processors): Add pointer to the tune parameters.
9992 (arm_slowmul_tune): New tuning option.
9993 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9994 (all_cores): Adjust to pick up the tuning model.
9995 (arm_constant_limit): New function.
9996 (arm_override_options): Select the appropriate tuning model. Delete
9997 initialization of arm_const_limit.
9998 (arm_split_constant): Use the new constant-limit model.
9999 (arm_rtx_costs): Pick up the current tuning model.
10000 * arm.md (is_strongarm, is_xscale): Delete.
10001 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
10002 for Xscale variant architectures.
10003 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
10005 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10007 * config/arm/arm.c (arm_gen_constant): Remove unused variable
10009 (arm_rtx_costs_1): Remove unused variable extra_cost.
10010 (arm_unwind_emit_set): Use variable offset.
10011 (thumb1_output_casesi): Remove unused variable flags.
10013 2010-04-16 Jeff Law <law@redhat.com>
10015 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
10016 needing assignment rather than doing a two-phase assignment. Remove
10017 unused variable 'm'.
10019 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10022 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
10024 2010-04-16 Doug Kwan <dougkwan@google.com>
10026 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
10027 (next_operand_entry_id): New static variable.
10028 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
10029 (add_to_ops_vec): Assigned unique ID to operand entry.
10030 (struct oecount_s): New field ID.
10031 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
10032 (undistribute_ops_list): Assign unique IDs to oecounts.
10033 (init_reassoc): reset next_operand_entry_id.
10035 2010-04-16 Doug Kwan <dougkwan@google.com>
10037 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
10038 missing left parenthesis.
10040 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
10042 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
10043 *btdi_rex64 using SWI48 mode iterator.
10044 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
10045 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
10046 *jcc_btdi_mask_rex64.
10048 2010-04-16 Anatoly Sokolov <aesok@post.ru>
10050 * double-int.h (tree_to_double_int): Convert to macro.
10051 * double-int.c (tree_to_double_int): Remove.
10053 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10056 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
10057 with want_address 2 and in case a single element list might be
10058 possible, call it again with want_address 0.
10060 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10062 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
10063 case 'W' print operands for HI mode.
10064 * config/h8300/h8300.h (Y0, Y2) : New constraints.
10065 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
10066 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
10067 * config/h8300/predicate.md (bit_register_indirect_operand): New.
10069 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
10071 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
10072 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
10073 #xx:3 and #xx:4 mode.
10075 * config/h8300/h8300.md (inverted load with HImode dest): Add
10076 support for H8300SX.
10078 * config/h8300/predicate.md (bit_operand): Allow immediate values that
10079 satisfy 'U' constraint.
10081 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10083 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
10084 * configure: Regenerate.
10085 * config.in: Regenerate.
10086 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
10089 2010-04-16 Richard Guenther <rguenther@suse.de>
10091 * tree.h (struct tree_decl_minimal): Move pt_uid ...
10092 (struct tree_decl_common): ... here.
10093 (DECL_PT_UID): Adjust.
10094 (SET_DECL_PT_UID): Likewise.
10095 (DECL_PT_UID_SET_P): Likewise.
10097 2010-04-16 Richard Guenther <rguenther@suse.de>
10099 PR tree-optimization/43572
10100 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
10101 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
10102 * tree-flow.h (is_call_clobbered): Remove.
10103 * tree-flow-inline.h (is_call_clobbered): Likewise.
10104 * tree-dfa.c (dump_variable): Do not dump call clobber state.
10105 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
10106 (execute_return_slot_opt): Adjust.
10107 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
10108 check for call clobbered vars here.
10109 (find_tail_calls): Move tailcall verification to the
10112 2010-04-16 Diego Novillo <dnovillo@google.com>
10114 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
10116 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10119 * config/arm/arm.md (cbranchqi4): New pattern.
10120 * config/arm/predicates.md (const0_operand,
10121 cbranchqi4_comparison_operator): New predicates.
10123 2010-04-16 Richard Guenther <rguenther@suse.de>
10125 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
10126 (dump_gimple_stmt): Likewise.
10128 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10130 * recog.h (struct recog_data): New field is_operator.
10131 (struct insn_operand_data): New field is_operator.
10132 * recog.c (extract_insn): Set recog_data.is_operator.
10133 * genoutput.c (output_operand_data): Emit code to set the
10135 * reload.c (find_reloads): Use it rather than testing for an
10136 empty constraint string.
10139 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
10140 If the previous insn is a cbranchsi4_insn with the same arguments,
10141 omit the compare instruction.
10143 * config/arm/arm.md (addsi3_cbranch): If destination is a high
10144 register, inputs must be low registers and we need a low register
10145 scratch. Handle alternative 2 like alternative 3.
10147 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10149 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
10150 don't call get_addr on both. If one expression is a VALUE and
10151 the other a REG, check VALUE's locs if the REG isn't among them.
10153 2010-04-16 Christian Bruel <christian.bruel@st.com>
10155 * config/sh/sh.h (sh_frame_pointer_required): New function.
10156 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10157 (flag_omit_frame_pointer) Set.
10158 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10159 (rounded_frame_size): Adjust size with outgoing_args_size.
10160 (sh_set_return_address): Must return from stack pointer.
10161 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10162 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10163 (ACCUMULATE_OUTGOING_ARGS): Define.
10164 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10165 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10167 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10170 * config/sh/sh.c (sh_legitimize_reload_address): Use
10171 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10172 Remove a unneeded check for offset_base.
10174 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
10176 * configure: Regenerated.
10178 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10180 * config/s390/s390.c (s390_call_save_register_used): Switch back
10181 to HARD_REGNO_NREGS.
10183 2010-04-15 Richard Guenther <rguenther@suse.de>
10185 * alias.c (alias_set_subset_of): Handle alias-set zero
10188 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
10189 Julian Brown <julian@codesourcery.com>
10191 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10192 alternatives according to use of high and low regs.
10193 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10194 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10195 optimizing for size on Thumb-2.
10197 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
10199 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10201 2010-04-15 Richard Guenther <rguenther@suse.de>
10203 * tree-ssa-structalias.c (struct variable_info): Add
10205 (new_var_info): Initialize it.
10206 (dump_constraints): Support printing last added constraints.
10207 (debug_constraints): Adjust.
10208 (dump_constraint_graph): Likewise.
10209 (make_heapvar_for): Check for NULL cfun.
10210 (get_function_part_constraint): New function.
10211 (get_fi_for_callee): Likewise.
10212 (find_func_aliases): Properly implement IPA PTA constraints.
10213 (process_ipa_clobber): New function.
10214 (find_func_clobbers): Likewise.
10215 (insert_into_field_list_sorted): Remove.
10216 (create_function_info_for): Properly allocate vars for IPA mode.
10217 Do not use insert_into_field_list_sorted.
10218 (create_variable_info_for): Properly generate constraints for
10219 global vars in IPA mode.
10220 (dump_solution_for_var): Always dump the solution.
10221 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10222 (find_what_var_points_to): Adjust.
10223 (pt_solution_set): Change.
10224 (pt_solution_ior_into): New function.
10225 (pt_solution_empty_p): Export.
10226 (pt_solution_includes_global): Adjust.
10227 (pt_solution_includes_1): Likewise.
10228 (pt_solutions_intersect_1): Likewise.
10229 (dump_sa_points_to_info): Check some invariants.
10230 (solve_constraints): Move constraint dumping ...
10231 (compute_points_to_sets): ... here.
10232 (ipa_pta_execute): ... and here.
10233 (compute_may_aliases): Do not re-compute points-to info
10234 locally if IPA info is available.
10235 (ipa_escaped_pt): New global var.
10236 (ipa_pta_execute): Properly implement IPA PTA.
10237 * tree-into-ssa.c (dump_decl_set): Support dumping
10238 decls not in referenced-vars.
10239 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10240 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10241 (dump_points_to_solution): Likewise.
10242 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10243 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10244 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10245 (copy_decl_to_var): Copy DECL_PT_UID.
10246 (copy_result_decl_to_var): Likewise.
10247 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10248 (copy_node_stat): Copy it.
10249 * tree.h (DECL_PT_UID): New macro.
10250 (SET_DECL_PT_UID): Likewise.
10251 (DECL_PT_UID_SET_P): Likewise.
10252 (struct tree_decl_minimal): Add pt_uid member.
10253 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10254 (pt_solution_empty_p): Declare.
10255 (pt_solution_set): Adjust.
10256 (ipa_escaped_pt): Declare.
10257 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10258 * gimple-pretty-print.c (pp_points_to_solution): New function.
10259 (dump_gimple_call): Dump call clobber/use information.
10260 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10261 * tree-pass.h (TDF_ALIAS): New dump option.
10262 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10263 * doc/invoke.texi (-fipa-pta): Update documentation.
10265 2010-04-15 Richard Guenther <rguenther@suse.de>
10267 * Makefile.in (OBJS-common): Add gimple-fold.o.
10268 (gimple-fold.o): New rule.
10269 * tree.h (maybe_fold_offset_to_reference,
10270 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10272 * gimple.h: ... here.
10273 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10274 may_propagate_address_into_dereference): Move prototypes ...
10275 * gimple.h: ... here.
10276 * tree-ssa-ccp.c (get_symbol_constant_value,
10277 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10278 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10279 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10280 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10281 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10282 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10283 gimplify_and_update_call_from_tree): Move ...
10284 * gimple-fold.c: ... here. New file.
10285 (ccp_fold_builtin): Rename to ...
10286 (gimple_fold_builtin): ... this.
10287 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10289 2010-04-15 Richard Guenther <rguenther@suse.de>
10291 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10292 fit_double_type, force_fit_type_double, add_double_with_sign,
10293 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10294 lrotate_double, rrotate_double, div_and_round_double): Move ...
10295 * double-int.c: ... here.
10296 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10297 add_double, neg_double, mul_double_with_sign, mul_double,
10298 lshift_double, rshift_double, lrotate_double, rrotate_double,
10299 div_and_round_double): Move prototypes ...
10300 * double-int.h: ... here.
10302 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10305 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10306 matching constraints to ensure inputs match the output.
10308 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10311 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10312 in an input-only operand.
10314 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10316 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10317 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10318 (double_int_negative_p): Convert to static inline function.
10319 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10320 (double_int_negative_p): Remove.
10321 * tree.h (lshift_double, rshift_double):
10322 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10323 * fold-const.c (fold_convert_const_int_from_real,
10324 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10325 (lshift_double): Change type of arith argument to bool.
10326 (rshift_double): Change type of arith argument to bool. Correct
10328 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10330 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10333 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10334 at the start and end of the then/else blocks, and omit them from the
10336 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10337 argument; all callers changed. Pass zero to old_insns_match_p instead.
10338 (flow_find_head_matching_sequence): New function.
10339 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10340 * basic-block.h (flow_find_cross_jump,
10341 flow_find_head_matching_sequence): Declare functions.
10343 2010-04-14 Jason Merrill <jason@redhat.com>
10346 * c-common.c (attribute_takes_identifier_p): New fn.
10347 * c-common.h: Declare it.
10349 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10351 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10352 splitter condition.
10353 (*udivmod<mode>4): Ditto.
10355 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10357 * config/i386/i386.md (maxmin_int): Rename code attribute from
10358 maxminiprefix and update all users.
10359 (maxmin_float): Ditto from maxminfprefix.
10360 (logic): Ditto from logicprefix.
10361 (absneg_mnemonic): Ditto from absnegprefix.
10362 * config/i386/mmx.md: Update all users of maxminiprefix,
10363 maxminfprefix and logicprefix for rename.
10364 * config/i386/sse.md: Ditto.
10365 * config/i386/sync.md (sync_<code><mode>): Update for
10366 logicprefix rename.
10368 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10371 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10372 warnings converted to errors.
10374 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10376 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10377 used insn_type variable.
10378 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10379 to avoid set-but-not-used warning.
10381 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10383 * df-core.c (df_ref_debug): Change format string placeholder
10385 * dwarf2asm.c (dw2_asm_output_data_raw,
10386 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10387 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10388 * dwarf2out.c (output_cfi, output_cfi_directive,
10389 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10390 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10392 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10393 * print-rtl.c (print_rtx): Ditto.
10395 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10397 PR middle-end/42694
10398 * builtins.c (expand_builtin_pow_root): New function to expand pow
10399 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10400 series of sqrt and cbrt calls under -ffast-math.
10401 (expand_builtin_pow): Call it.
10403 2010-04-14 Michael Matz <matz@suse.de>
10405 PR tree-optimization/42963
10406 * tree-cfg.c (touched_switch_bbs): New static variable.
10407 (group_case_labels_stmt): New function broken out from ...
10408 (group_case_labels): ... here, use the above.
10409 (start_recording_case_labels): Allocate touched_switch_bbs.
10410 (end_recording_case_labels): Deallocate it, call
10411 group_case_labels_stmt.
10412 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10414 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10416 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10417 from insn template.
10419 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10421 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10423 2010-04-13 Jan Hubicka <jh@suse.cz>
10425 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10426 of optimized out static functions.
10427 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10428 cost computation. Also sanity check for overflows.
10429 (update_caller_keys): Update cgraph_edge_badness call; properly
10430 update fibheap and sanity check that it is up to date.
10431 (add_new_edges_to_heap): Update cgraph_edge_badness.
10432 (cgraph_decide_inlining_of_small_function): Likewise;
10433 add sanity checking that badness in heap is up to date;
10434 improve dumping of reason; Update badness of calls to the
10435 offline copy of function currently inlined; dump badness
10436 of functions not inlined because of unit growth limits.
10438 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10440 PR middle-end/32628
10441 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10442 because of sign-extension change when converting to sizetype here...
10443 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10445 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10446 the folding to constants. Remove redundant final conversion.
10447 (fold_binary) <associate>: Do not associate if the re-association of
10448 constants alone overflows.
10449 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10450 to the end of the list.
10451 (multiple_of_p) <COND_EXPR>: New case.
10453 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10455 * opt-functions.awk (opt_sanitized_name): New.
10457 * optc-gen.awk: Use it
10458 * opth-gen.awk: Use it.
10460 2010-04-13 Martin Jambor <mjambor@suse.cz>
10462 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10463 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10464 children. Call replace_uses_with_default_def_ssa_name to handle
10467 2010-04-13 Michael Matz <matz@suse.de>
10469 PR middle-end/43730
10470 * builtins.c (expand_builtin_interclass_mathfn): Also create
10471 a register if the predicate doesn't match.
10473 2010-04-13 Diego Novillo <dnovillo@google.com>
10475 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10476 * c-pch.c: Include timevar.h.
10477 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10478 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10479 * ggc-common.c: Include timevar.h.
10480 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10481 * timevar.def (TV_PCH_SAVE): Define.
10482 (TV_PCH_CPP_SAVE): Define.
10483 (TV_PCH_PTR_REALLOC): Define.
10484 (TV_PCH_PTR_SORT): Define.
10485 (TV_PCH_RESTORE): Define.
10486 (TV_PCH_CPP_RESTORE): Define.
10488 2010-04-13 Michael Matz <matz@suse.de>
10490 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10492 (can_reassociate_p): New function.
10493 (break_up_subtract_bb, reassociate_bb): Use it.
10495 2010-04-13 Richard Guenther <rguenther@suse.de>
10498 * builtins.c (c_readstr): Fix assert.
10500 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10502 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10503 when generating cltd insn.
10505 (*ashl<mode>3_1): Remove special handling for register operand 2.
10506 (*ashlsi3_1_zext): Ditto.
10507 (*ashlhi3_1): Ditto.
10508 (*ashlhi3_1_lea): Ditto.
10509 (*ashlqi3_1): Ditto.
10510 (*ashlqi3_1_lea): Ditto.
10511 (*<shiftrt_insn><mode>3_1): Ditto.
10512 (*<shiftrt_insn>si3_1_zext): Ditto.
10513 (*<shiftrt_insn>qi3_1_slp): Ditto.
10514 (*<rotate_insn><mode>3_1): Ditto.
10515 (*<rotate_insn>si3_1_zext): Ditto.
10516 (*<rotate_insn>qi3_1_slp): Ditto.
10518 2010-04-13 Richard Guenther <rguenther@suse.de>
10520 * tree-ssa-structalias.c (callused_id): Remove.
10521 (call_stmt_vars): New.
10522 (get_call_vi): Likewise.
10523 (lookup_call_use_vi): Likewise.
10524 (lookup_call_clobber_vi): Likewise.
10525 (get_call_use_vi): Likewise.
10526 (get_call_clobber_vi): Likewise.
10527 (make_transitive_closure_constraints): Likewise.
10528 (handle_const_call): Adjust to do per-call call-used handling.
10529 (handle_pure_call): Likewise.
10530 (find_what_var_points_to): Remove general callused handling.
10531 (init_base_vars): Likewise.
10532 (init_alias_vars): Initialize call_stmt_vars.
10533 (compute_points_to_sets): Process call-used and call-clobbered
10534 vars for call statements.
10535 (delete_points_to_sets): Free call_stmt_vars.
10537 2010-04-13 Richard Guenther <rguenther@suse.de>
10539 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10540 Only add RW dependence for dependence distance zero.
10541 Adjust maximal vectorization factor according to dependences.
10542 Move alignment handling ...
10543 (vect_find_same_alignment_drs): ... here. New function.
10544 (vect_analyze_data_ref_dependences): Adjust.
10545 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10546 (vect_analyze_data_refs): Adjust minimal vectorization factor
10547 according to data references.
10548 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10549 dependences before determining the vectorization factor.
10550 Analyze alignment after determining the vectorization factor.
10551 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10552 dependences before alignment.
10553 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10555 (vect_analyze_data_refs): Likewise.
10556 (MAX_VECTORIZATION_FACTOR): New define.
10558 2010-04-13 Duncan Sands <baldrick@free.fr>
10560 * except.h (lang_eh_type_covers): Remove.
10561 * except.c (lang_eh_type_covers): Likewise.
10563 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10564 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10566 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10567 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10568 UNITS_PER_LONG where it is ABI relevant.
10569 (s390_return_addr_rtx): Likewise.
10570 (s390_back_chain_rtx): Likewise.
10571 (s390_frame_area): Likewise.
10572 (s390_frame_info): Likewise.
10573 (s390_initial_elimination_offset): Likewise.
10574 (save_gprs): Likewise.
10575 (s390_emit_prologue): Likewise.
10576 (s390_emit_epilogue): Likewise.
10577 (s390_function_arg_advance): Likewise.
10578 (s390_function_arg): Likewise.
10579 (s390_va_start): Likewise.
10580 (s390_gimplify_va_arg): Likewise.
10581 (s390_function_profiler): Likewise.
10582 (s390_optimize_prologue): Likewise.
10583 (s390_rtx_costs): Likewise.
10584 (s390_secondary_reload): Likewise.
10585 (s390_promote_function_mode): Likewise.
10586 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10587 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10588 registers available.
10589 (s390_unwind_word_mode): New function.
10590 (s390_function_value): Split 64 bit values into register pair if
10591 used as return value.
10592 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10593 function call parameters. Handle parallels.
10594 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10595 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10596 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10597 (s390_expand_setmem): Remove unused variable src_addr.
10598 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10599 deal with 64 bit registers.
10600 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10601 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10602 (UNITS_PER_LONG): New macro.
10603 * libjava/include/s390-signal.h: Define extended ucontext
10604 structure containing the upper halfs of the 64 bit registers.
10606 2010-04-13 Simon Baldwin <simonb@google.com>
10608 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10610 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10612 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10613 rvalue on the RHS if the LHS is of a non-renamable type.
10614 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10616 2010-04-13 Matthias Klose <doko@ubuntu.com>
10618 * gcc.c (cc1_options): Handle -iplugindir before processing
10619 the cc1 spec. Only add -iplugindir once.
10620 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10622 * common.opt (iplugindir): Remove `Separate' property, initialize.
10623 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10625 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10626 (distclean): Remove plugin dir.
10627 * doc/invoke.texi: Document -iplugindir.
10629 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10631 * doc/plugins.texi (Loading Plugins): Document short
10632 -fplugin=foo option.
10633 (Plugin API): Mention default_plugin_dir_name function.
10635 * gcc.c (find_file_spec_function): Add new declaration.
10636 (static_spec_func): Use it for "find-file".
10637 (find_file_spec_function): Add new function.
10638 (cc1_options): Add -iplugindir option if -fplugin* options found.
10640 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10642 * plugin.c (add_new_plugin): Updated comment, and handle short
10644 (default_plugin_dir_name): Added new function.
10646 * common.opt (iplugindir): New option to set the plugin directory.
10648 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10650 * config/i386/i386.md (any_rotate): New code iterator.
10651 (rotate_insn): New code attribute.
10653 (SWIM124): New mode iterator.
10654 (<rotate_insn>ti3): New expander.
10655 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10656 any_rotate code iterator.
10657 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10658 using any_rotate code iterator and SWIM124 mode iterator.
10659 (ix86_rotlti3): New insn_and_split pattern.
10660 (ix86_rotrti3): Ditto.
10661 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10662 ix86_rotl{di,ti}3 patterns.
10663 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10664 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10665 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10666 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10667 code iterator and SWI mode iterator.
10668 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10669 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10671 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10672 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10673 (bswap rotatert splitter): Add splitter.
10674 (bswap splitter): Macroize splitter using any_rotate code iterator.
10675 Add insn predicate to split only for TARGET_USE_XCHGB or when
10676 optimizing function for size.
10678 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10680 * config/pa/pa.c (emit_move_sequence): Remove use of
10681 deleted variable flag_argument_noalias.
10683 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10685 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10687 Add to unsupported targets list.
10688 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10689 sparc*-sun-solaris2.[567]* from target lists.
10690 * configure: Regenerate.
10691 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10693 Remove Solaris 7 patch references.
10694 (Specific, sparc-sun-solaris2.7): Removed.
10695 (sparc-sun-solaris2*): Update Solaris 7 example.
10696 (sparc64-*-solaris2*): Likewise.
10698 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10700 * config.build (alpha*-dec-osf4*): Remove.
10701 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10702 of obsolete configurations.
10703 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10705 * config/alpha/t-osf4: Renamed to ...
10706 * config/alpha/t-osf5: ... this.
10707 * config/alpha/osf.h: Renamed to ...
10708 * config/alpha/osf5.h: ... this.
10709 Merged old osf5.h contents.
10711 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10712 (EXTRA_SPECS): Removed.
10713 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10714 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10717 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10719 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10721 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10724 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10725 __thiscall convention.
10727 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10729 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10731 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10733 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10735 * function.c (assign_parms_initialize_all): Add unused attribute
10738 2010-04-12 Richard Guenther <rguenther@suse.de>
10740 * gsstruct.def (GSS_CALL): New.
10741 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10742 * gimple.h: Include tree-ssa-alias.h.
10743 (struct gimple_statement_call): New.
10744 (union gimple_statement_struct_d): Add gimple_call member.
10745 (gimple_call_reset_alias_info): Declare.
10746 (gimple_call_use_set): New function.
10747 (gimple_call_clobber_set): Likewise.
10748 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10749 * gimple.c (gimple_call_reset_alias_info): New function.
10750 (gimple_build_call_1): Call it.
10751 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10752 * tree-inline.c (remap_gimple_stmt): Likewise.
10753 (expand_call_inline): Remove callused handling.
10754 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10755 * tree-dfa.c (dump_variable): Likewise.
10756 * tree-parloops.c (parallelize_loops): Likewise.
10757 * tree-ssa.c (init_tree_ssa): Likewise.
10758 (delete_tree_ssa): Likewise.
10759 * tree-flow-inline.h (is_call_used): Remove.
10760 * tree-flow.h (struct gimple_df): Remove callused member.
10761 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10762 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10763 (ref_maybe_used_by_call_p_1): Simplify.
10764 (call_may_clobber_ref_p_1): Likewise.
10765 * tree-ssa-structalias.c (compute_points_to_sets): Set
10766 the call stmt used and clobbered sets.
10767 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10768 (find_tail_calls): Verify the tail call.
10770 2010-04-12 Richard Guenther <rguenther@suse.de>
10772 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10773 single-iteration always-inline inlining.
10774 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10775 (cgraph_decide_inlining): Do not handle always-inline specially.
10776 (try_inline): Remove always-inline cycle detection special case.
10777 Do not recurse on always-inlines.
10778 (cgraph_early_inlining): Do not iterate if not optimizing.
10779 (cgraph_gate_early_inlining): remove.
10780 (pass_early_inline): Run unconditionally.
10781 (gate_cgraph_decide_inlining): New function.
10782 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10783 not inlining or optimizing.
10784 (cgraph_decide_inlining_of_small_functions): Also consider
10785 always-inline functions.
10786 (cgraph_default_inline_p): Return true for nodes which should
10787 disregard inline limits.
10788 (estimate_function_body_sizes): Assume zero size and time for
10789 nodes which are marked as disregarding inline limits.
10790 (cgraph_decide_recursive_inlining): Do not perform recursive
10791 inlining on always-inline nodes.
10793 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10796 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10797 for exprs satisfying handled_component_p.
10799 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10801 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10802 non-constant aggregate elements.
10804 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10805 is a real initialization.
10807 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10810 * c-decl.c (start_function): Move forward check for nested function.
10812 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10814 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10815 * config/sh/sh.c: Include reload.h.
10816 (sh_legitimize_reload_address): New.
10817 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10818 sh_legitimize_reload_address.
10820 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10822 * config/sh/sh.md (*movqi_pop): New insn pattern.
10823 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10825 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10827 * config/i386/i386.md (any_shiftrt): New code iterator.
10828 (shiftrt_insn): New code attribute.
10830 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10831 using any_shiftrt code iterator.
10832 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10833 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10834 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10835 pattern from corresponding peephole2 patterns.
10836 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10837 using any_shiftrt code iterator.
10838 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10839 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10840 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10841 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10842 *{ashr,lshr}<mode>3_cmp_zext.
10843 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10845 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10847 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10849 (*lshr<mode>3_cconly): Ditto.
10851 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10853 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10854 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10855 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10856 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10858 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10859 from corresponding peephole2 patterns.
10860 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10861 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10862 and *lshrdi3_1_rex64 using SWI mode iterator.
10863 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10864 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10865 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10866 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10867 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10868 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10869 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10870 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10871 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10874 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10876 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10877 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10878 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10879 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10881 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10882 from corresponding peephole2 patterns.
10883 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10884 (ashrsi3_cvt): Rename from ashrsi3_31.
10885 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10886 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10887 and x86_64_shift_adj_3 using SWI48 mode iterator.
10888 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10889 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10890 and *ashrdi3_1_rex64 using SWI mode iterator.
10891 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10892 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10893 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10894 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10895 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10896 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10897 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10898 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10899 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10901 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10902 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10903 x86_shift<mode>_adj_3 expanders.
10905 2010-04-10 Wei Guozhi <carrot@google.com>
10908 * config/arm/arm.c (arm_pic_static_addr): New function.
10909 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10911 (arm_output_addr_const_extra): Output expression for new pattern.
10912 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10914 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10916 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10919 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10920 * web.c: Include "insn-config.h" and "recog.h".
10921 (union_match_dups): New function.
10922 (web_main): Call it.
10923 (union_defs): Don't try to recognize match_dups.
10925 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10926 if doing so would replace the entire pattern.
10928 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10932 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10933 and splitter pattern. Change splitter operand 1 predicate to
10936 2010-04-09 Martin Jambor <mjambor@suse.cz>
10938 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10939 lattices are addresses of CONST_DECLs with the same initial value.
10940 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10941 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10943 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10944 Bernd Schmidt <bernds@codesourcery.com>
10946 * loop-invariant.c (replace_uses): New static function.
10947 (move_invariant_reg): Use it to ensure we can replace the uses.
10949 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10951 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10953 (picochip_override_options): Enable section anchors only above -O1.
10954 (picochip_reorg): Fixed a couple of build warnings.
10956 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10958 * configure.ac (plugin -rdynamic test): Log result.
10959 * configure: Regenerate.
10960 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10961 (RDYNAMIC_SPEC): Define.
10962 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10964 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10966 * configure.ac: Determine Sun ld version numbers.
10967 (comdat_group): Restrict GNU ld version checks to gld.
10968 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10969 (enable_comdat): Support --enable-comdat.
10970 * configure: Regenerate.
10971 * doc/install.texi (Configuration): Document --enable-comdat.
10973 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10975 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10976 * config/sol2-gld.h: ... here.
10977 * config.gcc (sparc*-*-solaris2*): Reflect this.
10978 (i[34567]86-*-solaris2*): Use it.
10980 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10982 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10984 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10986 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10989 * diagnostic.c (diagnostic_initialize): Initialize
10990 some_warnings_are_errors.
10991 (diagnostic_finish): New.
10992 (diagnostic_action_after_output): Call it before exiting.
10993 (diagnostic_report_diagnostic): Do not print message here. Set
10994 some_warnings_are_errors.
10995 * diagnostic.h (diagnostic_context): Delete
10996 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10997 (diagnostic_finish): Declare.
10998 * toplev.c (toplev_main): Call it before exit.
11000 2010-04-09 Jason Merrill <jason@redhat.com>
11003 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
11004 for incomplete type.
11007 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
11008 based on a warning flag.
11010 2010-04-09 Richard Guenther <rguenther@suse.de>
11012 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
11014 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
11017 * varasm.c (default_assemble_visibility): Wrap vars that are
11018 set, but unused, by targets without GAS.
11019 * config/rs6000/rs6000.c (paired_emit_vector_compare):
11020 Remove set, but unused, vars.
11021 (rs6000_legitimize_tls_address): Likewise.
11022 (altivec_expand_dst_builtin): Likewise.
11023 * config/darwin.c (machopic_classify_symbol): Likewise.
11024 (machopic_indirection_name): Likewise.
11026 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11028 * config/i386/i386.md (DWI): New mode iterator.
11029 (S): New mode attribute.
11030 (shift_operand): Ditto.
11031 (shift_immediate_operand): Ditto.
11032 (ashl_input_operand): Ditto.
11033 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
11034 using SDWIM mode iterator.
11035 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
11036 pattern from *ashl{di,ti}3_1 and corresponding splitters using
11038 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
11039 from corresponding peephole2 patterns.
11040 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
11041 and x86_64_shift_adj_1 using SWI48 mode iterator.
11042 (x86_shift<mode>_adj_2): Ditto.
11043 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
11044 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
11045 using SWI48 mode iterator.
11046 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
11047 *ashldi3_cmp_rex64 using SWI mode iterator.
11048 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
11049 *ashldi3_cconly_rex64 using SWI mode iterator.
11050 * config/i386/i386.c (ix86_split_ashl): Update for renamed
11051 x86_shift<mode>_adj_{1,2}.
11052 (ix86_split_ashr): Ditto.
11053 (ix86_split_lshr): Ditto.
11055 2010-04-09 Richard Guenther <rguenther@suse.de>
11057 * target.h (builtin_conversion): Pass in input and output types.
11058 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
11059 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
11060 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
11061 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
11063 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
11065 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
11067 2010-04-09 Richard Guenther <rguenther@suse.de>
11070 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
11072 2010-04-09 Richard Guenther <rguenther@suse.de>
11074 * tree-vectorizer.h (struct _stmt_vec_info): Document
11075 that vectype is the type of the LHS.
11076 (supportable_widening_operation, supportable_narrowing_operation):
11077 Get both input and output vector types as arguments.
11078 (vect_is_simple_use_1): Declare.
11079 (get_same_sized_vectype): Likewise.
11080 * tree-vect-loop.c (vect_determine_vectorization_factor):
11081 Set STMT_VINFO_VECTYPE to the vector type of the def.
11082 (vectorizable_reduction): Adjust.
11083 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
11084 Adjust. Specify the output vector type.
11085 (vect_pattern_recog_1): Adjust.
11086 * tree-vect-stmts.c (get_same_sized_vectype): New function.
11087 (vectorizable_call): Adjust.
11088 (vectorizable_conversion): Likewise.
11089 (vectorizable_operation): Likewise.
11090 (vectorizable_type_demotion): Likewise.
11091 (vectorizable_type_promotion): Likewise.
11092 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
11094 (vect_is_simple_use_1): New function.
11095 (supportable_widening_operation): Get both input and output
11097 (supportable_narrowing_operation): Likewise.
11098 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
11100 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
11102 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
11103 __thiscall and _thiscall as predefined macros.
11104 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
11105 thiscall attribute handling.
11106 (ix86_comp_type_attributes): Likewise.
11107 (ix86_function_regparm): Likewise.
11108 (ix86_return_pops_args): Likewise.
11109 (init_cumulative_args): Likewise.
11110 (find_drap_reg): Likewise.
11111 (ix86_static_chain): Likewise.
11112 (x86_this_parameter): Likewise.
11113 (x86_output_mi_thunk): Likewise.
11114 (ix86_attribute_table): Add description for thiscall attribute.
11115 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
11116 * doc/extend.texi: Add documentation for thiscall.
11118 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11121 * c.opt (Wint-to-pointer-cast): Available in C++.
11122 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
11124 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
11126 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
11127 * calls.c (expand_call): Pass the function type to aggregate_value_p.
11128 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
11129 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
11130 function type instead. Reorder and simplify checks.
11132 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
11134 2010-04-08 Jing Yu <jingyu@google.com>
11135 Zdenek Dvorak <ook@ucw.cz>
11137 PR tree-optimization/42720
11138 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
11139 loop unswitch conditions here from ...
11140 (tree_unswitch_single_loop): ... here.
11142 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11144 * tree-if-conv.c: Fix comments and simplify logic.
11146 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11148 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
11149 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
11150 (main_tree_if_conversion): Update call to tree_if_conversion.
11152 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11155 * doc/invoke.texi (-b,-V): Delete.
11156 * doc/tm.texi: Do not mention -b.
11157 * gcc.c (display_help): Delete -b and -V.
11158 (process_command): Delete -b and -V.
11159 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11161 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
11162 Wolfgang Gellerich <gellerich@de.ibm.com>
11164 Implement target hook for loop unrolling
11165 * target.h (loop_unroll_adjust): Add a new target hook function.
11166 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11167 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11168 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11169 (s390_loop_unroll_adjust): Implement the new target hook for s390.
11170 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11172 (decide_unroll_stupid): Likewise.
11174 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11177 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11179 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11181 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11182 (Specific, *-*-solaris2*): Likewise.
11183 Don't prefer Sun as over GNU as.
11185 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
11187 * config/s390/s390.c (override_options): Adjust the z10 defaults
11188 for max-unroll-times, max-completely-peeled-insns
11189 and max-completely-peel-times.
11191 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11193 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11194 instructions for z10.
11195 (s390_expand_setmem): Likewise.
11196 (s390_expand_cmpmem): Likewise.
11198 2010-04-08 Richard Guenther <rguenther@suse.de>
11200 PR tree-optimization/43679
11201 * tree-ssa-pre.c (eliminate): Only propagate copies.
11203 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11206 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11207 set but not used variable warning.
11209 2010-04-08 Wei Guozhi <carrot@google.com>
11212 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11213 (arm_size_rtx_costs): Call the new function when optimized for size.
11215 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11218 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11219 op0 is not a MEM, just return NULL instead of assertion
11221 (discover_nonconstant_array_refs): Don't walk debug stmts.
11223 2010-04-08 Doug Kwan <dougkwan@google.com>
11225 * configure.ac: Recognize gold and do not use its version number
11226 to test ld features.
11227 * configure: Regenerate.
11229 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11231 PR middle-end/40815
11232 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11233 (negate_value): Move code to push elements to broken_up_substracts ...
11234 (eliminate_plus_minus_pair): ... here. Push operands that have no
11235 negative pair to plus_negates.
11236 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11238 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11240 * doc/install.texi (Configuration): Move description of
11241 --enable-lto, --with-libelf*, --enable-gold from Java section to
11244 * doc/generic.texi (Working with declarations)
11245 (Function Properties, C and C++ Trees): Fix typos.
11246 * doc/sourcebuild.texi (Top Level): Likewise.
11248 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11251 * tree.h (DECL_READ_P): Define.
11252 (struct tree_decl_common): Add decl_read_flag.
11253 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11254 a set but not used warning.
11255 (merge_decls): Merge DECL_READ_P flag.
11256 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11257 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11258 * c-common.c (handle_used_attribute, handle_unused_attribute):
11260 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11262 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11264 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11265 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11266 c_parser_binary_expression, c_parser_cast_expression,
11267 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11268 Call default_function_array_read_conversion instead of
11269 default_function_array_conversion where needed.
11270 (c_parser_unary_expression, c_parser_conditional_expression,
11271 c_parser_postfix_expression_after_primary, c_parser_initelt):
11272 Likewise. Call mark_exp_read where needed.
11273 (c_parser_statement_after_labels, c_parser_asm_operands,
11274 c_parser_typeof_specifier, c_parser_sizeof_expression,
11275 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11277 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11279 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11280 (warn_unused_but_set_parameter): Default to warn_unused
11282 * doc/invoke.texi: Document -Wunused-but-set-variable and
11283 -Wunused-but-set-parameter.
11285 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11286 used count variable.
11287 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11288 when operandN variables aren't used in the body of the expander
11290 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11291 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11292 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11293 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11294 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11295 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11296 * tree.c (PROCESS_ARG): Likewise.
11298 2010-04-07 Simon Baldwin <simonb@google.com>
11300 * diagnostic.h (diagnostic_override_option_index): New macro to
11301 set a diagnostic's option_index.
11302 * c-tree.h (c_cpp_error): Add warning reason argument.
11303 * opts.c (_warning_as_error_callback): New.
11304 (register_warning_as_error_callback): Store callback for
11305 warnings enabled via enable_warning_as_error.
11306 (enable_warning_as_error): Call callback, minor code tidy.
11307 * opts.h (register_warning_as_error_callback): Declare.
11308 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11309 response to -Werror=.
11310 (c_common_init_options): Register warning_as_error_callback in opts.c.
11311 * common.opt: Add -Wno-cpp option.
11312 * c-common.c (struct reason_option_codes_t): Map cpp warning
11313 reason codes to gcc option indexes.
11314 * (c_option_controlling_cpp_error): New function, lookup the gcc
11315 option index for a cpp warning reason code.
11316 * (c_cpp_error): Add warning reason argument, call
11317 c_option_controlling_cpp_error for diagnostic_override_option_index.
11318 * doc/invoke.texi: Document -Wno-cpp.
11320 2010-04-07 Richard Guenther <rguenther@suse.de>
11322 * ipa-reference.c (mark_load): Use get_base_address.
11323 (mark_store): Likewise.
11325 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11326 inserting GIMPLE_NOPs into the IL.
11327 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11328 Explicitly strip handled components and indirect references.
11330 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11331 folding address expressions.
11332 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11333 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11334 operand_equal_p to compare decls.
11335 (ptr_deref_may_alias_decl_p): Likewise.
11336 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11337 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11338 Handle reversed comparison ops.
11339 * tree-sra.c (asm_visit_addr): Use get_base_address.
11340 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11341 * ipa-reference.c (mark_address): Use get_base_address.
11343 2010-04-07 Richard Guenther <rguenther@suse.de>
11345 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11346 Propagate constants everywhere.
11348 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11351 * tree.c (MAX_INT_CACHED_PREC): Define.
11352 (nonstandard_integer_type_cache): New array.
11353 (build_nonstandard_integer_type): Cache results for precision
11354 <= MAX_INT_CACHED_PREC.
11356 2010-04-07 Richard Guenther <rguenther@suse.de>
11358 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11359 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11360 * common.opt: Likewise.
11361 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11362 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11363 (nonoverlapping_memrefs_p): Likewise.
11364 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11365 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11366 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11367 OPT_fargument_noalias_global for backward compatibility.
11369 2010-04-07 Richard Guenther <rguenther@suse.de>
11371 PR tree-optimization/43270
11372 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11373 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11374 * tree-ssa-pre.c (phi_translate_1): Adjust.
11375 (fully_constant_expression): Split out vn_reference handling to ...
11376 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11377 Fold reads from constant strings.
11378 (vn_reference_lookup): Handle fully constant references.
11379 (vn_reference_lookup_pieces): Likewise.
11380 * Makefile.in (expmed.o-warn): Add -Wno-error.
11382 2010-04-07 Martin Jambor <mjambor@suse.cz>
11384 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11386 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11389 * gcc.c: Add -static-libstdc++ to list of recognized options.
11391 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11393 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11395 2010-04-07 Richard Guenther <rguenther@suse.de>
11397 PR middle-end/42617
11398 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11399 bases build simple mem attributes to retain points-to information.
11401 2010-04-07 Richard Guenther <rguenther@suse.de>
11403 PR middle-end/42617
11404 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11405 preserve points-to related information.
11407 2010-04-07 Richard Guenther <rguenther@suse.de>
11409 PR middle-end/42617
11410 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11411 discard plain indirect references.
11412 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11413 * tree.c (tree_nop_conversion): Likewise.
11415 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11418 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11420 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11422 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11423 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11425 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11427 * tree-if-conv.c: Fix indentation and comments.
11429 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11431 * tree-if-conv.c: Sort static functions in topological order.
11433 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11435 * tree-if-conv.c: Fix indentation and comments.
11437 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11439 PR middle-end/43519
11440 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11441 lang_hooks.types.type_for_size instead of
11442 build_nonstandard_integer_type.
11443 When converting an unsigned type to signed, double its precision.
11444 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11445 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11446 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11449 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11451 PR middle-end/43519
11452 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11453 POINTER_PLUS_EXPR for pointer types.
11455 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11457 PR middle-end/43519
11458 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11459 * graphite-clast-to-gimple.c: Include langhooks.h.
11460 (max_signed_precision_type): New.
11461 (max_precision_type): Takes two types as arguments.
11462 (precision_for_value): New.
11463 (precision_for_interval): New.
11464 (gcc_type_for_interval): New.
11465 (gcc_type_for_value): New.
11466 (gcc_type_for_clast_term): New.
11467 (gcc_type_for_clast_red): New.
11468 (gcc_type_for_clast_bin): New.
11469 (gcc_type_for_clast_expr): Split up into several functions.
11470 (gcc_type_for_clast_eq): Rewritten.
11471 (compute_bounds_for_level): New.
11472 (compute_type_for_level_1): New.
11473 (compute_type_for_level): New.
11474 (gcc_type_for_cloog_iv): Removed.
11475 (gcc_type_for_iv_of_clast_loop): Rewritten.
11476 (graphite_create_new_loop): Compute the lower and upper bound types
11477 with gcc_type_for_clast_expr.
11478 (graphite_create_new_loop_guard): Same.
11479 (find_cloog_iv_in_expr): Removed.
11480 (compute_cloog_iv_types_1): Removed.
11481 (compute_cloog_iv_types): Removed.
11482 (gloog): Do not call compute_cloog_iv_types.
11483 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11484 GBB_CLOOG_IV_TYPES.
11485 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11486 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11487 (GBB_CLOOG_IV_TYPES): Removed.
11489 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11491 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11492 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11493 (detect_commutative_reduction): Same.
11495 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11497 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11498 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11500 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11501 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11502 (rewrite_commutative_reductions_out_of_ssa): Same.
11503 * passes.c (execute_function_todo): Call verify_ssa for every pass
11504 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11505 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11506 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11507 with an extra argument.
11508 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11509 verify_ssa only when the extra argument is true.
11510 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11511 with an extra argument.
11512 (tree_transform_and_unroll_loop): Same.
11514 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11516 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11517 for all the passes of the LNO having LOOP_CLOSED_SSA.
11518 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11519 * tree-loop-distribution.c (pass_loop_distribution): Same.
11520 * tree-pass.h (TODO_verify_loops): Removed.
11521 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11523 (pass_tree_unswitch): Same.
11524 (pass_predcom): Same.
11525 (pass_vectorize): Same.
11526 (pass_linear_transform): Same.
11527 (pass_graphite_transforms): Same.
11528 (pass_iv_canon): Same.
11529 (pass_complete_unroll): Same.
11530 (pass_complete_unrolli): Same.
11531 (pass_parallelize_loops): Same.
11532 (pass_loop_prefetch): Same.
11533 (pass_iv_optimize): Same.
11535 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11537 PR middle-end/32824
11538 * passes.c (init_optimization_passes): Move pass_lim before
11539 pass_copy_prop and pass_dce_loop.
11541 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11544 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11545 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11546 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11547 MULTI_* defines for 4 argument vpermil2p* builtins.
11549 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11551 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11552 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11553 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11554 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11555 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11556 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11557 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11558 Use x86_maybe_negate_const_int to output insn mnemonic.
11559 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11560 check from instruction predicate. Update comments.
11561 * config/i386/sync.md (sync_add<mode>): Use
11562 x86_maybe_negate_const_int to output insn mnemonic.
11564 2010-04-06 Jan Hubicka <jh@suse.cz>
11566 PR tree-optimization/42906
11567 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11568 IGNORE_SELF argument. Set visited_control_parents for fully
11570 (find_obviously_necessary_stmts): Update call of
11571 mark_control_dependent_edges_necessary.
11572 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11574 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11576 * config/i386/i386.md: Remove comment about 'e' and 'E'
11579 2010-04-06 Richard Guenther <rguenther@suse.de>
11581 PR tree-optimization/43627
11582 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11583 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11586 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11588 * BASE-VER: Change to 4.6.0.
11591 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11594 2010-04-06 Richard Guenther <rguenther@suse.de>
11596 PR middle-end/43661
11597 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11599 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11601 * doc/invoke.texi (Optimize Options): Document that LTO
11602 won't remove object access purely due to incompatible
11605 2010-04-04 Matthias Klose <doko@ubuntu.com>
11607 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11608 Initialize variable.
11610 2010-04-03 Richard Guenther <rguenther@suse.de>
11612 PR middle-end/42509
11613 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11614 require a non-NULL MEM_OFFSET.
11616 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11618 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11619 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11620 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11621 config/alpha/predicates.md, config/arm/arm.md,
11622 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11623 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11624 config/darwin9.h, config/darwin.c, config/darwin.h,
11625 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11626 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11627 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11628 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11629 config/mips/mips.md, config/mn10300/mn10300.c,
11630 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11631 config/rs6000/aix.h, config/rs6000/dfp.md,
11632 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11633 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11634 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11635 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11636 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11637 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11638 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11639 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11640 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11641 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11642 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11643 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11644 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11645 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11646 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11647 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11648 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11649 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11650 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11651 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11652 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11653 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11654 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11655 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11656 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11657 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11658 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11659 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11660 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11661 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11662 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11663 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11664 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11665 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11666 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11667 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11669 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11672 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11673 * aclocal.m4: Regenerate.
11675 2010-04-02 Richard Guenther <rguenther@suse.de>
11677 PR tree-optimization/43629
11678 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11679 if we have seen a constant value.
11681 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11683 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11685 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11688 * arm.c (legitimize_tls_address): Adjust call to
11689 gen_tls_load_dot_plus_four.
11690 (arm_note_pic_base): New function.
11691 (arm_cannot_copy_insn_p): Use it.
11692 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11695 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11700 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11702 * Makefile.in ($(out_object_file)): Depend on
11703 gt-$(basename $(notdir $(out_file))).h.
11705 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11707 * config.gcc (lm32-*-rtems*): Add t-lm32.
11709 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11711 * config.gcc: Add lm32-*-rtems*.
11712 * config/lm32/rtems.h: New file.
11714 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11717 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11719 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11721 * dwarf2out.c (output_compilation_unit_header): For
11722 -gdwarf-4 use version 4 instead of version 3.
11723 (output_line_info): For version 4 and above emit additional
11724 maximum ops per insn header field.
11725 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11727 * dwarf2out.c (is_c_family, is_java): Remove.
11728 (lower_bound_default): New function.
11729 (add_bound_info, gen_descr_array_type_die): Use it.
11731 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11734 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11735 re-declaration when it happens in a function.
11737 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11739 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11740 (cgraph_remove_function_insertion_hook): Same.
11741 (cgraph_call_function_insertion_hooks): Same.
11743 2010-04-01 Richard Guenther <rguenther@suse.de>
11745 PR middle-end/43614
11746 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11747 and TREE_THIS_VOLATILE.
11748 (copy_ref_info): Likewise.
11749 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11750 * tree.c (build6_stat): Ignore side-effects of all but arg5
11751 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11754 2010-04-01 Richard Guenther <rguenther@suse.de>
11756 PR tree-optimization/43607
11757 * ipa-type-escape.c (check_call): Do not access non-existing
11760 2010-04-01 Richard Guenther <rguenther@suse.de>
11762 PR middle-end/43602
11764 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11765 Jack Howarth <howarth@bromo.med.uc.edu>
11767 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11770 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11772 * doc/install.texi (Prerequisites): Document libelf usability on
11773 IRIX 5/6 and Solaris 2.
11774 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11775 Update GNU as, GNU ld requirements.
11776 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11777 Document Sun Studio compiler download.
11778 Update and simplify as, ld recommendations.
11779 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11781 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11783 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11784 with_tune_32 to pentium4.
11786 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11788 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11790 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11792 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11793 obsoletion, removal.
11795 Document GNU as requirement.
11796 Update configure requirements.
11797 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11798 Recomment IRIX 6.5.18+.
11799 Document IDF/IDL requirement.
11800 Document GNU as requirement.
11801 Document GNU ld bootstrap failure.
11802 Remove freeware.sgi.com reference.
11804 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11806 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11807 UNIX V4.0, V5.0 obsoletion, removal.
11808 Remove --with-gc=simple reference.
11809 Update VM requirements during bootstrap.
11810 Remove -oldas bootstrap description.
11811 Update binutils reference.
11812 Remove comparison failure note.
11814 2010-03-31 Richard Guenther <rguenther@suse.de>
11815 Zdenek Dvorak <ook@ucw.cz>
11816 Sebastian Pop <sebastian.pop@amd.com>
11818 PR middle-end/43464
11819 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11820 with multiple arguments.
11821 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11823 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11825 * graphite-dependences.c (print_pddr): Call print_pdr with an
11827 * graphite-poly.c (debug_pdr): Add an extra argument for the
11830 (print_pbb_domain): Same.
11832 (print_scop_context): Same.
11833 (print_scop): Same.
11834 (print_cloog): Same.
11835 (debug_pbb_domain): Same.
11837 (print_pdrs): Same.
11838 (debug_pdrs): Same.
11839 (debug_scop_context): Same.
11840 (debug_scop): Same.
11841 (debug_cloog): Same.
11842 (print_scop_params): Same.
11843 (debug_scop_params): Same.
11844 (print_iteration_domain): Same.
11845 (print_iteration_domains): Same.
11846 (debug_iteration_domain): Same.
11847 (debug_iteration_domains): Same.
11848 (print_scattering_function): Same.
11849 (print_scattering_functions): Same.
11850 (debug_scattering_function): Same.
11851 (debug_scattering_functions): Same.
11852 * graphite-poly.h (debug_pdr): Update declaration.
11854 (print_pbb_domain): Same.
11856 (print_scop_context): Same.
11857 (print_scop): Same.
11858 (print_cloog): Same.
11859 (debug_pbb_domain): Same.
11861 (print_pdrs): Same.
11862 (debug_pdrs): Same.
11863 (debug_scop_context): Same.
11864 (debug_scop): Same.
11865 (debug_cloog): Same.
11866 (print_scop_params): Same.
11867 (debug_scop_params): Same.
11868 (print_iteration_domain): Same.
11869 (print_iteration_domains): Same.
11870 (debug_iteration_domain): Same.
11871 (debug_iteration_domains): Same.
11872 (print_scattering_function): Same.
11873 (print_scattering_functions): Same.
11874 (debug_scattering_function): Same.
11875 (debug_scattering_functions): Same.
11877 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11879 * graphite-poly.c (print_scattering_function_1): New.
11880 (print_scattering_function): Call it.
11881 (print_scop_params): Remove spaces at the end of lines.
11882 (print_cloog): New.
11883 (debug_cloog): New.
11884 * graphite-poly.h (print_cloog): Declared.
11885 (debug_cloog): Declared.
11887 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11889 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11891 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11892 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11893 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11894 to switch between adding the IV bump in loop->latch or in loop->header.
11896 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11898 * graphite-poly.c (print_scattering_function): Pretty print following
11899 the scoplib format.
11901 (print_pbb_domain): Same.
11902 (dump_gbb_cases): Same.
11903 (dump_gbb_conditions): Same.
11904 (print_pdrs): Same.
11906 (print_scop_params): Same.
11907 (print_scop_context): Same.
11908 (print_scop): Same.
11909 (print_pbb_body): New.
11910 (lst_indent_to): New.
11911 (print_lst): Start new lines with a #.
11912 * graphite-poly.h (pbb_bb): New.
11913 (pbb_index): Use pbb_bb.
11914 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11916 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11918 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11920 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11921 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11922 and 0 instead of 1 for dw_val_class_flag.
11923 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11924 dw_val_class_range_list, dw_val_class_loc_list,
11925 dw_val_class_lineptr and dw_val_class_macptr, use
11926 DW_FORM_flag_present for dw_val_class_flag and
11927 DW_FORM_exprloc for dw_val_class_loc.
11928 (output_die): For -gdwarf-4 print dw_val_class_loc
11929 size as uleb128 instead of 1 or 2 bytes and don't print
11930 anything for dw_val_class_flag.
11932 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11933 instead of cselib_lookup following by tweaking locs->setting_insn.
11936 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11937 even before returning from label, setjmp call or volatile asm
11940 2010-03-31 Richard Guenther <rguenther@suse.de>
11942 PR middle-end/43600
11943 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11944 temporary data on stack.
11946 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11948 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11949 (PUSHSECTION_ASM_OP): Remove.
11950 (POPSECTION_ASM_OP): Remove.
11951 (PUSHSECTION_FORMAT): Remove.
11952 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11953 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11954 * config/sol2.c (solaris_output_init_fini): Use it.
11956 2010-03-31 Jie Zhang <jie@codesourcery.com>
11959 * opt-functions.awk (var_type_struct): Use signed char type
11960 for simple variables.
11962 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11964 * config/sol2.c: Include output.h.
11965 (solaris_assemble_visibility): New function.
11966 * config/t-sol2 (sol2.o): Add output.h dependency.
11967 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11968 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11971 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11974 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11975 V2SImode or XFmode on PRE_DEC.
11978 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11981 2010-03-31 Jie Zhang <jie@codesourcery.com>
11984 * reload.h (caller_save_initialized_p): Declare.
11985 * toplev.c (backend_init_target): Don't call
11986 init_caller_save but set caller_save_initialized_p to false.
11987 * caller-save.c (caller_save_initialized_p): Define.
11988 (init_caller_save): Check caller_save_initialized_p.
11989 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11991 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11994 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11995 and soft-fp/t-softfp to tmake_file.
11996 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11997 (LIBGCC2_TF_CEXT): Define.
12000 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
12003 * cselib.c (n_useless_values): Document handling of debug locs.
12004 (n_useless_debug_values, n_debug_values): New variables.
12005 (new_elt_loc_list): Don't add to debug values, keep count.
12006 (promote_debug_loc): New.
12007 (cselib_reset_table): Zero new variables.
12008 (entry_and_rtx_equal_p): Promote debug locs.
12009 (discard_useless_locs): Increment n_useless_debug_values for
12011 (remove_useless_values): Adjust n_useless_values and n_debug_values
12012 with n_useless_debug_values.
12013 (add_mem_for_addr): Promote debug locs.
12014 (cselib_lookup_mem): Likewise.
12015 (cselib_lookup_addr): Renamed to...
12016 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
12017 (cselib_log_lookup): ... this. Turn into...
12018 (cselib_lookup_addr): ... new wrapper.
12019 (cselib_lookup_from_insn): New.
12020 (cselib_invalidate_regno): Increment n_useless_debug_values for
12022 (cselib_invalidate_mem): Likewise.
12023 (cselib_process_insn): Take n_deleted and n_debug_values into
12024 account to guard remove_useless_value call.
12025 (cselib_finish): Zero n_useless_debug_values.
12026 * cselib.h (cselib_lookup_from_insn): Declare.
12027 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
12028 (sched_analyze_2): Likewise.
12030 2010-03-30 Jakub Jelinek <jakub@redhat.com>
12032 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
12034 (adjust_mems): Replace narrowing SUBREG of expression containing
12035 just PLUS, MINUS, MULT and ASHIFT of registers and constants
12036 with operations in the narrower mode.
12039 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
12040 regs_invalidated_by_call instead all call_used_reg_set registers.
12042 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
12044 PR middle-end/43430
12045 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
12046 pointer comparisons with types_compatible_p.
12047 * tree-vect-stmts.c (vectorizable_call): Same.
12048 (vectorizable_condition): Same.
12050 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12052 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
12053 stack check if the mask would be zero.
12055 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12056 Jack Howarth <howarth@bromo.med.uc.edu>
12058 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12061 2010-03-30 Joseph Myers <joseph@codesourcery.com>
12064 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
12066 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
12067 Include ___unordxf2 and ___unordtf2.
12068 * config/i386/libgcc-glibc.ver: Do not define inheritance from
12071 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
12073 * config/lm32/t-lm32: New file.
12074 * config.gcc: Use the above file when targetting lm32.
12076 2010-03-28 Duncan Sands <baldrick@free.fr>
12078 * Makefile.in (PLUGIN_HEADERS): Add except.h.
12080 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12082 PR middle-end/43431
12083 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12084 Improve vectorization cost model diagnostic.
12086 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12088 PR middle-end/43436
12089 * tree-vect-data-refs.c (vect_analyze_data_refs): When
12090 compute_data_dependences_for_loop returns false, early exit
12091 and output an extra diagnostic for the failed data reference
12094 2010-03-29 Richard Guenther <rguenther@suse.de>
12096 PR tree-optimization/43560
12097 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
12098 (can_sm_ref_p): Treat stores to readonly locations as trapping.
12100 2010-03-29 Jie Zhang <jie@codesourcery.com>
12103 * toplev.c (process_options): Set optimization_default_node
12104 and optimization_current_node.
12105 * opts.c (decode_options): Don't set optimization_default_node
12106 and optimization_current_node.
12108 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
12110 * config/rtems.h: Abandon -qrtems_debug.
12112 2010-03-28 Jan Hubicka <jh@suse.cz>
12114 PR tree-optimization/43505
12115 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
12116 map should not be copied.
12118 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12120 PR middle-end/41674
12121 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
12122 cdtors, set DECL_PRESERVE_P.
12123 * ipa.c (cgraph_externally_visible_p): Return true if declaration
12124 should be preseved.
12126 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
12128 PR tree-optimization/43528
12129 * stor-layout.c (place_field): Check that constant fits into
12130 unsigned HWI when skipping calculation of MS bitfield layout.
12132 2010-03-27 Jan Hubicka <jh@suse.cz>
12134 PR middle-end/43391
12135 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
12136 notice_global_symbol work.
12138 2010-03-27 Jakub Jelinek <jakub@redhat.com>
12140 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
12141 instead of dwarf2out_decl.
12142 (struct var_loc_node): Remove section_label field.
12143 (dwarf2out_function_decl): New function.
12144 (dwarf2out_var_location): Don't set section_label field.
12145 (dwarf2out_begin_function): Don't empty decl_loc_table here.
12147 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12149 PR tree-optimization/43544
12150 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12151 First argument for builtin vectorized function hook is now a
12152 tree to be able to distinguish between machine specific and
12154 * targhooks.c (default_builtin_vectorized_function): Ditto.
12155 * targhooks.h (default_builtin_vectorized_function): Ditto.
12156 * target.h (struct gcc_target): Ditto.
12157 * tree-vect-stmts.c (vectorizable_function): Ditto.
12158 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12159 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12162 2010-03-26 Joseph Myers <joseph@codesourcery.com>
12165 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12166 nested binding iff it is a FUNCTION_DECL.
12167 (store_parm_decls_newstyle): Pass nested=true to bind for
12168 FUNCTION_DECLs amongst parameters.
12170 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12172 * var-tracking.c (vt_expand_loc_callback): Don't run
12173 cselib_expand_value_rtx_cb in dummy mode if
12174 cselib_dummy_expand_value_rtx_cb returned false.
12176 * var-tracking.c (emit_note_insn_var_location): For one part
12177 notes with offset 0, don't add EXPR_LIST around the location.
12178 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12179 add_location_or_const_value_attribute): Adjust for that change.
12182 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12183 into first operand and location into second.
12184 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12185 dw_cfi_oprnd_loc for DW_CFA_expression.
12186 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12187 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12188 assume first argument is regnum and second argument is location.
12190 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12193 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12194 of scratch register to DImode. Split to DImode comparison operator.
12195 Use SImode subreg of scratch register in the multiplication.
12196 (*cmp_sadd_sidi): Ditto.
12197 (*cmp_ssub_si): Ditto.
12198 (*cmp_ssub_sidi): Ditto.
12200 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12203 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12204 Remove invalid assert and wrong comment.
12206 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12209 * flags.h (final_insns_dump_p): New extern.
12210 * final.c (final_insns_dump_p): New variable.
12211 (rest_of_clean_state): Set it before -fdump-final-insns=
12212 dumping, clear afterwards.
12213 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12214 MEM_ALIAS_SET on MEMs.
12216 2010-03-26 David S. Miller <davem@davemloft.net>
12218 * configure.ac: Fix sparc GOTDATA_OP bug check.
12219 * configure: Rebuild.
12221 2010-03-26 Alan Modra <amodra@gmail.com>
12223 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12225 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12227 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12228 TLS_SECTION_ASM_FLAG.
12230 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12233 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12234 Clear first_function_block_is_cold.
12237 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12238 argument if the argument is truth_value_p.
12240 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12242 * config/rs6000/constraints.md: Update copyright year for my changes.
12245 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12246 used in reg+reg addressing, swap registers.
12248 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12251 * target.h (struct gcc_target): Add code_end hook.
12252 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12253 if not yet defined.
12254 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12255 * toplev.c (compile_file): Call targetm.asm_out.code_end
12256 hook before unwind info/debug info output.
12257 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12258 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12259 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12260 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12261 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12262 * config/i386/i386.c (ix86_file_end): Renamed to...
12263 (ix86_code_end): ... this. Make static. Don't call
12264 file_end_indicate_exec_stack. Emit unwind info using
12265 final_start_function/final_end_function.
12266 (darwin_x86_file_end): Remove.
12267 (TARGET_ASM_CODE_END): Define.
12268 * config/i386/i386.h (TARGET_ASM_FILE_END,
12269 NEED_INDICATE_EXEC_STACK): Don't define.
12270 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12271 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12272 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12273 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12276 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12277 at the beginning and final_end_function at the end.
12278 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12280 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12282 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12283 and Sun as TLS syntax.
12284 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12285 * configure: Regenerate.
12286 * config.in: Regenerate.
12287 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12288 (default_elf_asm_named_section): Use it.
12289 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12290 (i386_output_dwarf_dtprel): Likewise.
12291 (output_addr_const_extra): Likewise.
12292 (output_pic_addr_const): Lowercase @GOTTPOFF.
12293 (output_addr_const_extra): Likewise.
12294 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12295 (output_addr_const_extra): Likewise.
12296 (output_pic_addr_const): Lowercase @INDNTPOFF.
12297 (output_addr_const_extra): Likewise.
12298 (output_pic_addr_const): Lowercase @NTPOFF.
12299 (output_addr_const_extra): Likewise.
12300 (output_pic_addr_const): Lowercase @TPOFF.
12301 (output_addr_const_extra): Likewise.
12302 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12303 (*tls_global_dynamic_64): Likewise.
12304 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12305 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12307 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12308 (ASM_OUTPUT_TLS_COMMON): Use it.
12309 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12312 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12313 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12314 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12315 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12316 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12317 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12319 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12321 * config/i386/i386.c (override_options): Don't accept
12322 -mtls-dialect=sun any longer.
12323 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12324 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12325 (*tls_local_dynamic_base_32_sun): Likewise.
12326 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12328 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12331 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12332 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12335 * ira.c (adjust_cleared_regs): New function.
12336 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12340 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12342 * expr.c (expand_expr_real): Restore previous
12343 curr_insn_source_location and curr_insn_block after
12344 expand_expr_real_1 call.
12345 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12346 instead of expand_expr_real_1.
12348 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12350 PR rtl-optimization/43413
12351 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12354 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12357 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12358 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12360 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12362 * config/i386/i386.c (ix86_target_string): Add -mfma.
12363 Fix a typo in comment.
12365 2010-03-22 Mike Stump <mikestump@comcast.net>
12368 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12369 Don't overly align based upon packed packed fields.
12371 2010-03-22 Jason Merrill <jason@redhat.com>
12373 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12374 Use () rather than [], and move before the element type.
12376 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12378 * doc/configfiles.texi (Configuration Files): Removed
12379 fixinc/Makefile*, intl/Makefile.*.
12380 * doc/makefile.texi: Fixed markup. Abstract from version
12381 control system used.
12382 (Makefile): Removed obsolete gcc/java/parse.y example.
12383 * doc/sourcebuild.texi: Likewise.
12384 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12385 libgomp, libssp. Removed fastjar.
12386 (Miscellaneous Docs): Clarify location.
12387 Added COPYING3, COPYING3.LIB.
12388 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12390 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12393 * config/i386/i386.c (x86_function_profiler)
12394 [!NO_PROFILE_COUNTERS]: Fix typo.
12395 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12398 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12399 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12401 * doc/sourcebuild.texi (Test Directives): Split into six
12402 subsections, with most of the current text in new subsections
12403 Directives, Selectors, and Final Actions.
12404 (Directives): Split list of test directives into multiple
12406 (Selectors): Describe use and syntax of selectors.
12407 (Effective-Target Keywords): Describe all existing keywords.
12408 (Add Options): Describe features for dg-add-options.
12409 (Require Support): Describe variants of dg-require-support.
12410 (Final Actions): Describe commands to use in dg-final.
12412 2010-03-22 Michael Matz <matz@suse.de>
12414 PR middle-end/43475
12415 * recog.c (validate_replace_rtx_group): Replace also in
12416 REG_EQUAL and REG_EQUIV notes.
12418 2010-03-22 Richard Guenther <rguenther@suse.de>
12420 PR tree-optimization/43390
12421 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12422 sure vector extracts are type correct.
12424 2010-03-22 Richard Guenther <rguenther@suse.de>
12426 PR middle-end/40106
12427 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12428 x * sqrt (x) even when optimizing for size if the target
12429 has native support for sqrt.
12431 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12433 * varasm.c (make_decl_rtl_for_debug): Also clear
12434 flag_mudflap for the duration of make_decl_rtl call.
12437 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12438 locs from preserved VALUEs.
12440 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12442 PR middle-end/42718
12443 * pa.md (movmemsi): Set align to one if zero.
12444 (movmemdi): Likewise.
12446 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12449 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12450 with their corresponding prologue pushes.
12452 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12455 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12456 at the begining or end.
12457 (spu_expand_epilogue): Likewise.
12459 2010-03-20 Richard Guenther <rguenther@suse.de>
12461 PR rtl-optimization/43438
12462 * combine.c (make_extraction): Properly zero-/sign-extend an
12463 extraction of the low part of a CONST_INT. Also handle
12466 2010-03-19 Mike Stump <mikestump@comcast.net>
12468 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12469 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12470 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12472 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12475 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12478 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12480 PR rtl-optimization/42258
12481 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12482 use that may match DEF.
12485 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12486 the cost of loading the constant rather than assuming
12488 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12489 outer code is AND, do the same tests as the andsi3 expander and
12490 return COSTS_N_INSNS (1) if and is cheap.
12492 * optabs.c (avoid_expensive_constant): Fix formatting.
12494 2010-03-19 Michael Matz <matz@suse.de>
12497 * attribs.c (decl_attributes): When rebuilding a function pointer
12498 type use the same qualifiers as the original pointer type.
12500 2010-03-19 Martin Jambor <mjambor@suse.cz>
12502 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12503 and is_gimple_ip_invariant_address.
12505 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12508 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12510 * config/arm/arm.c (arm_override_options): Turn off
12511 flag_dwarf2_cfi_asm for AAPCS variants.
12513 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12516 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12517 Use PRE_MODIFY instead of PRE_DEC.
12518 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12519 (vfp_emit_fstmd): Likewise.
12521 2010-03-19 Michael Matz <matz@suse.de>
12524 * builtins.c (expand_builtin_interclass_mathfn,
12525 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12528 2010-03-19 Richard Guenther <rguenther@suse.de>
12530 PR tree-optimization/43415
12531 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12532 (phi_translate_1): ... this.
12533 (phi_translate): Move all caching here. Cache all NARY
12534 and REFERENCE translations.
12536 2010-03-19 David S. Miller <davem@davemloft.net>
12538 With help from Eric Botcazou.
12539 * config/sparc/sparc.c: Include dwarf2out.h.
12540 (emit_pic_helper): Delete.
12541 (pic_helper_symbol_name): Delete.
12542 (pic_helper_emitted_p): Delete.
12543 (pic_helper_needed): New.
12544 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12545 (get_pc_thunk_name): New.
12546 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12547 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12548 Set pic_helper_needed to true. Don't call emit_pic_helper.
12549 (sparc_expand_prologue): Update load_pic_register call.
12550 (sparc_output_mi_thunk): Likewise.
12551 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12552 thunk if possible. Output CFI information as needed.
12554 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12555 Jack Howarth <howarth@bromo.med.uc.edu>
12558 * config/i386/i386.h: Fix ABI on darwin x86-32.
12560 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12562 * tree.h: Declare make_decl_rtl_for_debug.
12563 * varasm.c (make_decl_rtl_for_debug): New.
12564 * dwarf2out.c (rtl_for_decl_location): Call it.
12565 * cfgexpand.c (expand_debug_expr): Call it.
12567 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12570 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12574 * var-tracking.c (vt_init_cfa_base): Do nothing if
12575 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12577 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12580 * var-tracking.c (canonicalize_vars_star): New.
12581 (dataflow_post_merge_adjust): Use it.
12583 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12586 * var-tracking.c (non_suitable_const): New function.
12587 (add_uses): For DEBUG_INSNs with constants, don't record any
12588 value, instead just the constant value itself.
12589 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12590 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12591 (emit_notes_in_bb): Likewise.
12592 (emit_note_insn_var_location): For onepart variables if
12593 cur_loc is a VOIDmode constant, use DECL_MODE.
12595 2010-03-18 Martin Jambor <mjambor@suse.cz>
12597 PR middle-end/42450
12598 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12599 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12600 all non-clones. Moved call redirection...
12601 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12602 (cgraph_materialize_all_clones): Dispose of all
12603 combined_args_to_skip bitmaps.
12604 (verify_cgraph_node): Do not check for edges pointing to wrong
12605 nodes in inline clones.
12606 * tree-inline.c (copy_bb): Call
12607 cgraph_redirect_edge_call_stmt_to_callee.
12608 * ipa.c (cgraph_remove_unreachable_nodes): Call
12609 cgraph_node_remove_callees even when there are used clones.
12611 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12613 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12615 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12618 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12621 2010-03-18 Michael Matz <matz@suse.de>
12623 PR middle-end/43419
12624 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12625 into sqrt(x) if we need to preserve signed zeros.
12627 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12628 Eric Botcazou <ebotcazou@adacore.com>
12630 PR rtl-optimization/43360
12631 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12632 note if we don't know its invariant status.
12634 2010-03-18 Michael Matz <matz@suse.de>
12636 PR tree-optimization/43402
12637 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12638 PHI chains of ssa names registered for update.
12640 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12643 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12644 non-offsettable and pre_modify update addressing.
12645 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12646 and "2" alternatives "#".
12647 (*movdd_softfloat32): Make all alternatives "#";
12648 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12649 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12650 (*movdf_softfloat32): Make all alternatives "#";
12651 (movdi): Use the new DIFD mode iterator to create a common splitter
12652 for movdi, movdf and movdd patterns.
12654 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12656 * common.opt (dumpdir): Remove redundant tab.
12658 2010-03-17 Martin Jambor <mjambor@suse.cz>
12660 PR tree-optimization/43347
12661 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12662 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12664 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12666 PR rtl-optimization/42216
12667 * regrename.c (create_new_chain): New function, broken out from...
12668 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12669 appending a use to an empty chain.
12670 (build_def_use): Remove previous changes that convert OP_INOUT to
12671 OP_OUT operands; instead detect the case where an OP_INOUT operand
12672 uses a previously untracked register and create an empty chain for it.
12674 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12676 * doc/extend.texi (Function Attributes): Rewrite unfinished
12677 sentence in ms_abi documentation.
12679 2010-03-17 Alan Modra <amodra@gmail.com>
12681 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12682 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12683 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12684 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12686 2010-03-16 Richard Henderson <rth@redhat.com>
12688 PR middle-end/43365
12689 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12690 (lower_try_finally): Save and restore eh_seq around the expansion
12691 of the try-finally.
12693 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12695 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12696 statements before splitting block.
12698 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12700 * doc/sourcebuild.texi (Testsuites): Fix markup.
12701 Use pathnames relative to gcc/testsuite.
12702 (Test Directives): Move description of how timeout is determined.
12703 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12704 (C Tests): Correct gcc.misc-tests directory.
12705 Framework tests now live in gcc.test-framework.
12707 2010-03-16 Richard Guenther <rguenther@suse.de>
12709 PR middle-end/43379
12710 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12711 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12713 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12714 Alexandre Oliva <aoliva@redhat.com>
12716 PR tree-optimization/42917
12717 * lambda-code.c (remove_iv): Skip debug statements.
12718 (lambda_loopnest_to_gcc_loopnest): Likewise.
12719 (not_interesting_stmt): Debug statements are not interesting.
12721 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12725 * cselib.c (cselib_preserve_constants,
12726 cfa_base_preserved_val): New static variables.
12727 (preserve_only_constants): New function.
12728 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12729 clear its REG_VALUES. If cselib_preserve_constants, don't
12730 empty the whole hash table, but preserve there VALUEs with constants,
12731 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12732 (cselib_preserve_cfa_base_value): New function.
12733 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12734 (cselib_init): Change argument to int bitfield. Set
12735 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12737 (cselib_finish): Clear cselib_preserve_constants and
12738 cfa_base_preserved_val.
12739 * cselib.h (enum cselib_record_what): New enum.
12740 (cselib_init): Change argument to int.
12741 (cselib_preserve_cfa_base_value): New prototype.
12742 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12743 * dse.c (dse_step1): Likewise.
12744 * cfgcleanup.c (thread_jump): Likewise.
12745 * sched-deps.c (sched_analyze): Likewise.
12746 * gcse.c (local_cprop_pass): Likewise.
12747 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12748 If FN is non-NULL, call the callback always and whenever it returns
12749 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12750 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12751 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12752 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12753 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12754 * var-tracking.c: Include recog.h.
12755 (bb_stack_adjust_offset): Remove.
12756 (vt_stack_adjustments): Don't call it, instead just gather the
12757 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12758 (adjust_stack_reference): Remove.
12759 (compute_cfa_pointer): New function.
12760 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12761 (struct adjust_mem_data): New type.
12762 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12764 (get_address_mode): New function.
12765 (replace_expr_with_values): Use it.
12766 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12767 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12768 (adjust_sets): Remove.
12769 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12770 Use get_address_mode.
12771 (get_adjusted_src): Remove.
12772 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12773 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12774 (add_with_sets): Don't call adjust_sets.
12775 (fp_setter, vt_init_cfa_base): New functions.
12776 (vt_initialize): Change return type to bool. Move most of pool etc.
12777 initialization to the beginning of the function from end. Pass
12778 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12779 If !frame_pointer_needed, call vt_stack_adjustment before mos
12780 vector is filled, call vt_init_cfa_base if argp/framep has been
12781 eliminated to sp. If frame_pointer_needed and argp/framep has
12782 been eliminated to hard frame pointer, set
12783 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12784 encountering fp setter in the prologue. For MO_ADJUST, call
12785 log_op_type before pusing the op into mos vector, not afterwards.
12786 Call adjust_insn before cselib_process_insn/add_with_sets,
12787 call cancel_changes (0) afterwards.
12788 (variable_tracking_main_1): Adjust for vt_initialize calling
12789 vt_stack_adjustments and returning whether it succeeded or not.
12791 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12793 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12796 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12798 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12800 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12801 drap_reg has not been set.
12803 2010-03-15 Michael Matz <matz@suse.de>
12805 PR middle-end/43300
12806 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12807 use it to expand block copies.
12808 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12809 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12810 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12812 2010-03-15 Richard Guenther <rguenther@suse.de>
12814 PR tree-optimization/43367
12815 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12818 2010-03-15 Richard Guenther <rguenther@suse.de>
12820 PR tree-optimization/43317
12821 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12823 2010-03-15 Martin Jambor <mjambor@suse.cz>
12825 PR tree-optimization/43141
12826 * tree-sra.c (create_abstract_origin): New function.
12827 (modify_function): Call create_abstract_origin.
12829 2010-03-15 Chris Demetriou <cgd@google.com>
12831 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12834 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12836 PR middle-end/43354
12837 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12838 call insert_out_of_ssa_copy for default definitions.
12840 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12842 * graphite-clast-to-gimple.c (my_long_long): Defined.
12843 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12844 * graphite-sese-to-poly.c (my_long_long): Defined.
12845 (scop_ivs_can_be_represented): Use it.
12847 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12849 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12850 graphite-max-bbs-per-function, and loop-block-tile-size.
12851 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12853 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12855 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12857 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12858 forward declaration.
12859 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12860 (add_upper_bounds_from_estimated_nit): New.
12861 (build_loop_iteration_domains): Use it.
12863 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12865 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12867 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12869 PR middle-end/43306
12870 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12871 should be an INTEGER_CST. Also handle CASE_CONVERT.
12873 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12875 * graphite.c (graphite_initialize): To bound the number of bbs per
12876 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12877 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12878 * doc/invoke.texi: Document it.
12880 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12882 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12883 * graphite-sese-to-poly.h (build_poly_scop): Same.
12885 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12887 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12888 the number of parameters in the scop. Use as an upper bound
12889 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12890 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12891 * doc/invoke.texi: Document it.
12893 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12895 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12896 * doc/c-tree.texi: Remove.
12897 * doc/generic.texi: Merge c-tree.texi here.
12898 * doc/gccint.texi (Trees): Remove menu entry.
12899 (c-tree.texi): Remove @include.
12900 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12901 * doc/languages.texi (Reading RTL): Ditto.
12903 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12906 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12908 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12910 PR middle-end/42431
12911 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12912 code added to work around reload clobbering CONST insns.
12914 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12916 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12917 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12918 (cselib_preserve_only_values): Remove retain argument, don't
12919 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12920 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12921 * var-tracking.c (micro_operation): Move insn field before union.
12922 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12923 (struct variable_tracking_info_def): Remove n_mos field, change
12924 mos into a vector of micro_operations.
12925 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12926 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12927 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12928 changing into a vector.
12929 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12930 come before all other uops generated by add_stores.
12931 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12933 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12934 a vector. Run just one pass over the bbs instead of separate counting
12935 and computation phase.
12936 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12939 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12940 into *nonlocalized_list vector.
12941 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12942 even if origin is non-NULL.
12943 (gen_variable_die): Likewise.
12944 (process_scope_var): Don't change origin.
12945 (gen_decl_die): Likewise.
12946 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12947 before adding new edges instead of after it, fix moving over
12950 2010-03-11 David S. Miller <davem@davemloft.net>
12952 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12954 * configure: Rebuild.
12956 2010-03-11 Martin Jambor <mjambor@suse.cz>
12958 PR tree-optimization/43257
12959 * tree.c (assign_assembler_name_if_neeeded): New function.
12960 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12961 above new function.
12962 * tree.h (assign_assembler_name_if_neeeded): Declare.
12963 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12964 the function if needed.
12966 2010-03-11 Chris Demetriou <cgd@google.com>
12968 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12969 include/stdint-gcc.h, and include/stdint.h world-readable.
12971 2010-03-11 Richard Guenther <rguenther@suse.de>
12973 PR tree-optimization/43255
12974 * tree-vrp.c (process_assert_insertions_for): Do not insert
12975 asserts for trivial conditions.
12977 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12979 PR tree-optimization/43280
12980 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12981 generation. Move calculation of size out of the if branch.
12982 (find_bswap): Modify compare number generation.
12984 2010-03-11 Richard Guenther <rguenther@suse.de>
12987 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12988 (input_gimple_stmt): Fixup handled component types during
12989 operand read. Also fix up decls in ADDR_EXPRs.
12991 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12993 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12994 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12996 2010-03-10 Jan Hubicka <jh@suse.cz>
12999 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
13000 * varasm.c (get_variable_section): Don't do that here...
13001 (make_decl_rtl): ... and here.
13002 (do_assemble_alias): Produce decl RTL.
13003 (assemble_alias): Likewise.
13005 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13008 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
13009 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
13011 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
13012 (based_loc_descr): Only express drap or vdrap regno based expressions
13013 using DW_OP_fbreg when not optimizing.
13014 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
13015 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
13016 REG_CFA_SET_VDRAP note.
13018 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
13020 PR tree-optimization/43236
13021 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
13022 error in calculation of base address in reverse iteration case.
13023 (generate_builtin): Take number of latch executions if the statement
13026 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
13028 PR middle-end/42859
13029 * tree-eh.c: Include pointer-set.h.
13030 (lower_eh_dispatch): Filter out duplicate case labels and
13031 remove the unneeded edge when the label is unused. Return
13032 true when some edges are removed.
13033 (execute_lower_eh_dispatch): When any lowering resulted in
13034 removing an edge, also delete unreachable blocks.
13036 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13039 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13040 UNSPEC_MACHOPIC_OFFSET.
13042 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
13045 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
13046 (m68k_delegitimize_address): New function.
13048 2010-03-09 Jakub Jelinek <jakub@redhat.com>
13051 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
13054 * var-tracking.c (adjust_sets): New function.
13055 (count_with_sets, add_with_sets): Use it.
13056 (get_adjusted_src): New inline function.
13057 (add_stores): Use it.
13060 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
13061 call cselib_dummy_expand_value_rtx_cb instead of
13062 cselib_expand_value_rtx_cb.
13065 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
13066 * config/i386/i386.c: Include debug.h and dwarf2out.h.
13067 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
13068 and .cfi_endproc around the pic thunks.
13069 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
13070 all queued unwind info register saves are saved before the call.
13071 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
13072 considered as sp-=4 for unwind info and the pop as sp+=4 which
13073 also clobbers dest, but doesn't actually restore it.
13076 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
13077 RTX_FRAME_RELATED_P.
13079 2010-03-09 Jie Zhang <jie@codesourcery.com>
13081 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
13082 whitespaces in output template.
13084 2010-03-09 Jie Zhang <jie@codesourcery.com>
13086 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
13087 out array boundary.
13089 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13091 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
13092 builtins.exp in a separate job.
13094 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13096 * graphite-sese-to-poly.c (add_param_constraints): Use
13097 lower_bound_in_type and upper_bound_in_type.
13099 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13101 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
13102 instead of unsigned_type_node.
13104 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13105 Reza Yazdani <reza.yazdani@amd.com>
13107 PR middle-end/43065
13108 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
13109 on pointer type parameters.
13111 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13113 PR middle-end/42644
13114 PR middle-end/42130
13115 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
13116 handle conversions from pointer to integers.
13117 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
13118 induction variable, to be able to work with code generated by CLooG.
13119 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
13120 (build_poly_scop): Bail out if we cannot codegen a loop.
13122 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13124 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
13125 code generation with gloog_error.
13127 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13129 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
13130 Call fold_convert on all the returned values.
13131 (expand_scalar_variables_expr): Pass to
13132 expand_scalar_variables_ssa_name the type of the resulting expression.
13134 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13136 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
13137 ppl_min_for_le_pointset.
13138 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
13139 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
13141 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13143 * graphite-dependences.c (map_into_dep_poly): Removed.
13144 (dependence_polyhedron_1): Use combine_context_id_scat.
13146 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13148 * graphite-poly.h (struct poly_scattering): Add layout documentation.
13149 (struct poly_bb): Same.
13150 (combine_context_id_scat): New.
13152 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13154 PR middle-end/42326
13155 * sese.c (name_defined_in_loop_p): Return false for default
13158 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13160 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13161 and clean up the logic.
13163 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13165 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13168 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13170 * var-tracking.c (remove_cselib_value_chains): Define only for
13172 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13173 delete_slot_part, emit_notes_for_differences_1): Don't call
13174 remove_cselib_value_chains here.
13175 (set_slot_part, emit_notes_for_differences_2): Don't call
13176 add_cselib_value_chains here.
13177 (preserved_values): New vector.
13178 (preserve_value): New function.
13179 (add_uses, add_stores, vt_add_function_parameters): Use it
13180 instead of cselib_preserve_value.
13181 (changed_values_stack): New vector.
13182 (check_changed_vars_0): New function.
13183 (check_changed_vars_1, check_changed_vars_2): Use it.
13184 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13185 changed_values_stack VALUEs.
13186 (vt_emit_notes): For all preserved_values call
13187 add_cselib_value_chains. If ENABLE_CHECKING call
13188 remove_cselib_value_chains before verifying value_chains is empty.
13189 Initialize and free changed_values_stack.
13190 (vt_initialize): Initialize preserved_values.
13191 (vt_finalize): Free preserved_values.
13193 2010-03-08 Richard Guenther <rguenther@suse.de>
13195 PR tree-optimization/43269
13196 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13199 2010-03-08 Martin Jambor <mjambor@suse.cz>
13201 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13202 (ipa_is_param_called): Removed.
13203 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13204 (ipa_print_node_params): Do not print the called flag.
13205 (ipa_write_node_info): Do not stream the called flag.
13206 (ipa_read_node_info): Likewise.
13208 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13211 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13212 * cselib.c (struct expand_value_data): Add dummy field.
13213 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13215 (cselib_dummy_expand_value_rtx_cb): New function.
13216 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13218 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13219 * var-tracking.c: Include pointer-set.h.
13220 (variable): Change n_var_parts to char from int. Add
13221 cur_loc_changed and in_changed_variables fields.
13222 (variable_canonicalize): Remove.
13223 (shared_var_p): New inline function.
13224 (unshare_variable): Maintain cur_loc_changed and
13225 in_changed_variables fields. If var was in changed_variables,
13226 replace it there with new_var. Just copy cur_loc instead of
13227 resetting it to something else.
13228 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13229 (dataflow_set_union): Don't call variable_canonicalize.
13230 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13231 of their DEBUG_EXPR_TREE_DECLs.
13232 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13233 and in_changed_variables and cur_loc_changed is false.
13234 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13235 and cur_loc_changed. Don't update cur_loc here.
13236 (variable_merge_over_src): Don't call variable_canonicalize.
13237 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13238 removing loc that is equal to cur_loc, clear cur_loc,
13239 set cur_loc_changed and ensure variable_was_changed is called.
13240 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13241 compare pointers in cur_loc check, if it is equal to loc,
13242 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13243 (variable_different_p): Remove compare_current_location argument,
13244 don't compare cur_loc.
13245 (dataflow_set_different_1): Adjust variable_different_p caller.
13246 (variable_was_changed): If dv had some var in changed_variables
13247 already, reset in_changed_variables flag for it and propagate
13248 cur_loc_changed over to the new variable. On empty var
13249 always set cur_loc_changed. Set in_changed_variables on whatever
13250 var is added to changed_variables.
13251 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13252 Use shared_var_p. When removing loc that is equal to cur_loc,
13253 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13254 end, don't set it to something else, just call variable_was_changed.
13255 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13256 loc being removed, clear cur_loc and set cur_loc_changed.
13257 Set cur_loc_changed if all locations have been removed.
13258 (struct expand_loc_callback_data): New type.
13259 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13260 allocated. Always create SUBREGs if simplify_subreg failed.
13261 Prefer to use cur_loc, when that fails and still in
13262 changed_variables (and seen first time) recompute it. Set
13263 cur_loc_changed of variables which had to change cur_loc and
13264 compute elcd->cur_loc_changed if any of the subexpressions used
13265 had to change cur_loc.
13266 (vt_expand_loc): Adjust to pass arguments in
13267 expand_loc_callback_data structure.
13268 (vt_expand_loc_dummy): New function.
13269 (emitted_notes): New variable.
13270 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13271 that weren't used for any other decl in current
13272 emit_notes_for_changes call call vt_expand_loc_dummy to update
13273 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13274 first loc_chain location if NULL before. Always use just
13275 cur_loc instead of first loc_chain location. When cur_loc_changed
13276 is false, when not --enable-checking=rtl just don't emit any note.
13277 When rtl checking, compute the note and assert it is the same
13278 as previous note. Clear cur_loc_changed and in_changed_variables
13279 at the end before removing from changed_variables.
13280 (check_changed_vars_3): New function.
13281 (emit_notes_for_changes): Traverse changed_vars to call
13282 check_changed_vars_3 on each changed var.
13283 (emit_notes_for_differences_1): Clear cur_loc_changed and
13284 in_changed_variables. Recompute cur_loc of new_var.
13285 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13286 (vt_emit_notes): Initialize and destroy emitted_notes.
13288 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13290 PR rtl-optimization/42220
13291 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13292 Use verify_reg_tracked to determine if we should use OP_OUT rather
13294 (build_def_use): If we see an in-out operand for a register that we
13295 know nothing about, treat is an output if possible, fail the block if
13298 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13301 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13304 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13307 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13308 uses of relevant DEFs that are dead outside the loop too.
13310 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13312 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13314 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13316 * var-tracking.c (values_to_unmark): New variable.
13317 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13318 values_to_unmark vector. Moved body to...
13319 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13320 instead queue it into values_to_unmark vector.
13321 (vt_find_locations): Free values_to_unmark vector.
13323 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13325 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13326 (site.exp): Export them when plugins are enabled.
13328 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13330 PR middle-end/42326
13331 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13332 that contain scevs.
13333 (chrec_fold_multiply): Same.
13335 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13338 * c-decl.c (build_compound_literal): Return early if init is
13339 an error_mark_node.
13341 2010-03-04 Martin Jambor <mjambor@suse.cz>
13343 PR tree-optimization/43164
13344 PR tree-optimization/43191
13345 * tree-sra.c (type_consists_of_records_p): Reject records with
13346 zero-size bit-fields at the end.
13348 2010-03-04 Mike Stump <mikestump@comcast.net>
13350 * Makefile.in (TAGS): Remove *.y.
13352 2010-03-04 Richard Guenther <rguenther@suse.de>
13354 PR tree-optimization/40761
13355 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13357 (my_rev_post_order_compute): New function.
13358 (init_pre): Call it.
13360 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13362 PR middle-end/43209
13363 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13364 decrease the cost of an IV candidate when the cost is infinite.
13366 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13368 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13369 Use '3DNow!' for the extension of that name, ensure normal space
13371 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13373 2010-03-03 Jeff Law <law@redhat.com>
13375 * PR middle-end/32693
13376 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13377 than gen_rtx_SUBREG.
13378 (extract_bit_field_1): Likewise.
13380 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13382 * doc/sourcebuild.texi (Test directives): Document that arguments
13383 include-opts and exclude-opts are now optional for dg-skip-if,
13384 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13386 2010-03-03 Jason Merrill <jason@redhat.com>
13389 * cgraph.h (varpool_node): Add extra_name field.
13390 * varpool.c (varpool_extra_name_alias): New.
13391 (varpool_assemble_decl): Emit extra name aliases.
13392 (varpool_mark_needed_node): Look past an extra name alias.
13393 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13394 * lto-streamer-in.c (lto_input_tree): Read it.
13395 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13397 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13399 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13400 (sparc*-*-solaris2*): ...this.
13402 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13405 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13406 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13407 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13408 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13411 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13412 fallthrough to default handling, just with want_address 0 instead of 2.
13413 For single element lists, add_AT_loc directly, otherwise create an
13414 artificial variable DIE and stick location list to it.
13417 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13418 (VAL_EXPR_HAS_REVERSE): Define.
13419 (reverse_op): New function.
13420 (add_stores): For reversible operations add an extra MO_VAL_USE.
13422 2010-03-02 Jason Merrill <jason@redhat.com>
13424 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13426 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13428 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13429 (sparc64-*-linux*): Likewise.
13430 (sparc64-*-solaris2*): Include assembler files before linker ones.
13431 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13432 * config/sparc/gas.h: Delete.
13433 * config/sparc/sol2-64.h: Add copyright notice.
13434 * config/sparc/sol2-gas-bi.h: Likewise.
13435 * config/sparc/sol2-gld.h: Likewise.
13436 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13437 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13438 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13439 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13440 (sparc_elf_asm_named_section): Rename into...
13441 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13443 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13445 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13447 2010-03-02 Jeff Law <law@redhat.com>
13449 PR middle-end/42431
13450 * reload1.c (rtx_p, substitute_stack): Declare.
13451 (substitute): Record addresses of changed rtxs.
13452 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13453 Restore the original rtx when complete.
13454 (reload): Free subsitute_stack when complete.
13456 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13458 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13459 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13461 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13462 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13463 Torture Tests): Change from subsection to section.
13465 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13466 Steven Bosscher <steven@gcc.gnu.org>
13468 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13471 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13473 PR middle-end/42640
13474 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13475 the assignment from the new induction variable to the assignment
13476 of the value from the original loop PHI function.
13478 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13479 Daniel Jacobowitz <dan@codesourcery.com>
13481 * doc/sourcebuild.texi (Test directives): Clarify options to
13484 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13486 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13487 Disable cfi directives unless GCC and gas agree on using read-only
13488 .eh_frame sections for 64-bit.
13489 * configure: Regenerate.
13491 2010-03-01 Richard Guenther <rguenther@suse.de>
13493 PR tree-optimization/43220
13494 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13495 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13497 2010-03-01 Richard Guenther <rguenther@suse.de>
13498 Martin Jambor <mjambor@suse.cz>
13500 PR middle-end/41250
13501 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13502 gimplified parameters.
13504 2010-03-01 Christian Bruel <christian.bruel@st.com>
13506 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13508 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13510 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13512 2010-03-01 Richard Guenther <rguenther@suse.de>
13514 PR middle-end/43213
13515 * expr.c (expand_assignment): Use the alias-oracle to tell
13516 if the rhs aliases the result decl.
13518 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13521 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13522 to sol_gt_pch_get_address.
13523 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13524 64-bit, SPARC and x86.
13525 (sol_gt_pch_get_address): New function.
13527 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13529 * toplev.h (inform_n, error_n): Declare.
13530 * diagnostic.c (inform_n, error_n): New function.
13532 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13534 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13535 has no rtl yet when processing local_decls, queue it and recheck
13536 if deferred stack allocation hasn't assigned it rtl.
13538 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13540 * config/sh/sh.c (unspec_bbr_uid): New.
13541 (gen_block_redirect): Use it instead of INSN_UID.
13542 (gen_far_branch): Likewise.
13544 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13546 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13547 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13549 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13551 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13552 (Warning Options): -Wno-conversion-null is valid for
13553 Objective-C++ as well.
13554 * doc/tm.texi (Named Address Spaces): Likewise.
13555 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13556 * doc/tree-ssa.texi (Tree SSA): Likewise.
13558 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13561 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13562 by default. Don't set the default arch for
13563 i[34567]86-*-darwin*|x86_64-*-darwin*.
13565 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13568 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13569 default. Set the default 32bit/64bit archs with $with_arch
13570 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13572 2010-02-27 Richard Guenther <rguenther@suse.de>
13574 PR tree-optimization/43186
13575 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13576 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13577 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13578 unroller iterations.
13580 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13582 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13583 required and i[34567]86-*-* targets don't support 64bit ISA.
13585 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13588 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13589 the same alias set.
13591 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13593 * config.gcc: Set the default arch at least to Prescott for
13594 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13595 if SSE math is enabled.
13597 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13599 * diagnostic.c (diagnostic_initialize): Update.
13600 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13602 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13603 (diagnostic_inhibit_notes): New.
13604 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13606 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13609 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13610 * doc/standards.texi: Likewise.
13611 * doc/extend.texi: Likewise.
13612 * doc/trouble.texi: Likewise.
13613 * doc/cppopts.texi: Likewise.
13614 * doc/install.texi: Likewise.
13615 * c.opt (std=c90,std=gnu90): New options.
13616 * c-opts.c (c_common_handle_option): Handle them.
13618 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13621 * c-decl.c (undeclared_variable): Use an informative note.
13623 2010-02-26 Richard Guenther <rguenther@suse.de>
13625 PR tree-optimization/43186
13626 * gimple.h (gimple_fold): Remove.
13627 * gimple.c (gimple_fold): Remove. Inline into single user ...
13628 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13629 Try harder for conditions.
13631 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13634 * function.c (used_types_insert): Don't skip through named pointer
13635 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13636 and it is different from the main variant's type.
13638 2010-02-26 Nick Clifton <nickc@redhat.com>
13640 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13642 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13644 * config.gcc: Support --with-fpmath=sse for x86.
13646 * config/i386/ssemath.h: New.
13648 * doc/install.texi (--with-fpmath=sse): Documented.
13650 2010-02-26 Richard Guenther <rguenther@suse.de>
13652 PR tree-optimization/43188
13653 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13654 vector types of over-aligned element type.
13656 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13659 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13660 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13662 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13664 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13666 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13668 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13669 * var-tracking.c: Include diagnostic.h.
13670 (debug_dv): New function.
13671 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13674 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13675 (add_value_chain, add_value_chains, remove_value_chain,
13676 remove_value_chains): Handle DEBUG_EXPRs.
13677 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13680 * regcprop.c (struct queued_debug_insn_change): New type.
13681 (struct value_data_entry): Add debug_insn_changes field.
13682 (struct value_data): Add n_debug_insn_changes field.
13683 (debug_insn_changes_pool): New variable.
13684 (free_debug_insn_changes, apply_debug_insn_changes,
13685 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13686 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13687 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13689 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13691 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13692 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13693 changes, call cprop_find_used_regs via note_stores.
13694 (copyprop_hardreg_forward): When copying vd from predecessor
13695 which has any queued DEBUG_INSN changes, make sure the pointers are
13696 cleared. At the end call df_analyze and then if there are any
13697 DEBUG_INSN changes queued at the end of some basic block for still
13698 live registers, apply them.
13699 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13701 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13703 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13706 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13708 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13709 targets. Set the default with_cpu/with_arch from arch/cpu.
13710 Allow x86-64 and native for with_cpu/with_arch.
13712 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13714 * ebitmap.c: Change calls to verify_popcount with calls to
13715 sbitmap_verify_popcount.
13716 (ebitmap_clear_bit): Fixed map->cacheindex test and
13717 map>cache update when bit clearing results in an empty
13720 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13723 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13724 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13725 and support both V2DF and V2DI modes.
13726 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13727 support both V2DF and V2DI modes.
13728 (general): Delete trailing whitespace from a few patterns.
13730 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13731 V2DF/V2DI interleave high/low builtins.
13733 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13736 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13737 interleave high/low functions.
13739 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13741 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13742 #pragma extern_prefix.
13744 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13747 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13748 BLKmode, assert op0 is a MEM and just adjust its mode.
13751 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13752 if bitpos isn't multiple of mode's bitsize.
13754 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13756 * c.opt (-ftemplate-depth=): New.
13757 (-ftemplate-depth-): Deprecate.
13758 * optc-gen.awk: Handle -ftemplate-depth=.
13759 * opth-gen.awk: Likewise.
13760 * c-opts.c (c_common_handle_option): Likewise.
13761 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13763 2010-02-24 Jason Merrill <jason@redhat.com>
13765 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13767 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13769 * cfg.c (alloc_aux_for_block): Remove inline.
13770 (alloc_aux_for_edge): Likewise.
13772 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13774 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13776 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13778 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13779 * config/i386/sol2-gas.h: New file.
13780 * config.gcc (i[34567]86-*-solaris2*): Use it.
13782 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13785 * c-typeck.c (ep_convert_and_check): New.
13786 (build_conditional_expr): Use it.
13787 (build_binary_op): Likewise.
13789 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13791 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13794 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13795 bounds even for -O+.
13796 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13797 expr needs to have DECL_NAME set.
13799 2010-02-24 Nick Clifton <nickc@redhat.com>
13801 * config/mep/mep.c: Include gimple.h.
13802 (mep_function_uses_sp): Delete unused function.
13803 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13804 parameters. Use unsigned integers to count args. Return a
13805 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13807 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13810 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13811 greater or equal to nelt instead of 2 * nelt.
13812 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13815 2010-02-23 Jason Merrill <jason@redhat.com>
13818 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13819 in cfun->local_decls even if they have register types.
13822 * stor-layout.c (place_field): Don't warn about unnecessary
13823 DECL_PACKED if the type is packed.
13825 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13828 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13829 GOTOFF relocs, even when the base reg isn't pic pointer.
13831 2010-02-23 Michael Matz <matz@suse.de>
13834 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13835 (expand_gimple_basic_block): Generate and use debug temps if there
13836 are debug uses left after the last real use of TERed ssa names.
13837 Unlink debug immediate uses when they are expanded.
13839 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13842 * config/i386/i386.c (override_options): Reorganise to provide
13843 better error messages.
13845 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13847 PR middle-end/43083
13848 * graphite-scop-detection.c (create_single_exit_edge): Move
13849 the call to find_single_exit_edge to....
13850 (create_sese_edges): ...here. Don't handle multiple edges
13851 exiting the function.
13852 (build_graphite_scops): Don't handle multiple edges
13853 exiting the function.
13855 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13857 PR middle-end/43097
13858 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13859 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13861 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13863 PR middle-end/43026
13864 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13866 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13869 * c-typeck.c (convert_arguments): Print declaration location.
13870 * c-common.c (validate_nargs): Rename as
13871 builtin_function_validate_nargs.
13872 (check_builtin_function_arguments): Update.
13874 2010-02-22 Richard Guenther <rguenther@suse.de>
13877 * tree-inline.c (declare_return_variable): Use the type of
13878 the call stmt lhs if available.
13880 2010-02-22 Duncan Sands <baldrick@free.fr>
13882 * passes.c (register_pass): Always consider all pass lists when
13883 ref_pass_instance_number is zero.
13885 2010-02-22 Richard Guenther <rguenther@suse.de>
13887 PR tree-optimization/42749
13888 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13889 parameter. Do arithmetic in the original type.
13890 (update_accumulator_with_ops): Likewise.
13891 (adjust_accumulator_values): Adjust.
13893 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13895 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13896 (QI to BLKmode splitter): New splitter.
13898 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13900 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13901 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13903 2010-02-22 Richard Guenther <rguenther@suse.de>
13905 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13907 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13909 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13910 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13911 ($(T)crti.o, $(T)crtn.o): Remove rules.
13913 2010-02-21 Tobias Burnus <burnus@net-b.de>
13916 * doc/invoke.texi (-fassociative-math): Document that this
13917 option is automatically enabled for Fortran.
13919 2010-02-20 David S. Miller <davem@davemloft.net>
13921 * configure.ac: Test if linker and assembler properly support
13922 GOTDATA_OP relocations.
13923 * configure: Rebuild.
13924 * config.in: Likewise.
13925 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13926 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13927 (movsi_high_pic): Likewise.
13928 (movdi_lo_sum_pic): Likewise.
13929 (movdi_high_pic): Likewise.
13930 (movsi_pic_gotdata_op): New pattern.
13931 (movdi_pic_gotdata_op): Likewise.
13932 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13933 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13935 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13938 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13939 attribute to ssemul.
13940 (xop_mulv2div2di3_high): Ditto.
13942 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13945 * c.opt (Wconversion-null): New option.
13946 * doc/invoke.texi (Wconversion-null): Document.
13948 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13950 * common.opt (Wlarger-than-): Add Undocumented.
13952 2010-02-19 Mike Stump <mikestump@comcast.net>
13954 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13956 2010-02-19 Jason Merrill <jason@redhat.com>
13959 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13960 * configure: Likewise.
13962 2010-02-20 Alan Modra <amodra@gmail.com>
13964 PR middle-end/42344
13965 * cgraph.h (cgraph_make_decl_local): Declare.
13966 * cgraph.c (cgraph_make_decl_local): New function.
13967 (cgraph_make_node_local): Use it.
13968 * cgraphunit.c (cgraph_function_versioning): Likewise.
13969 * ipa.c (function_and_variable_visibility): Likewise.
13971 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13974 * except.c (sjlj_emit_function_enter): Don't call
13975 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13977 * rtl.h (add_reg_br_prob_note): Remove prototype.
13979 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13982 * c-common.c (conversion_warning): Remove widening conversions
13983 before checking the conversion of integers to reals.
13985 2010-02-19 Mike Stump <mikestump@comcast.net>
13987 PR middle-end/43125
13988 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13991 * cgraphunit.c (process_function_and_variable_attributes): Check
13992 DECL_PRESERVE_P instead of looking up attribute "used".
13993 * ipa-pure-const.c (check_decl): Likewise.
13994 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13995 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13996 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13997 instead of attribute "used".
13998 * config/sol2-c.c (solaris_pragma_init): Likewise.
13999 (solaris_pragma_fini): Likewise.
14001 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14003 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
14004 Use XCNEW instead of xcalloc.
14005 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
14006 XNEW instead of xmalloc.
14007 (get_fields): Use XNEWVEC instead of xmalloc.
14010 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
14011 populate vars array.
14012 (create_new_general_access): For debug stmts just reset value.
14013 (get_stmt_accesses): For accesses within debug stmts just record them
14014 using add_access_to_acc_sites instead of preventing the peeling or
14015 counting them as accesses.
14017 PR middle-end/42233
14018 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
14020 2010-02-19 Richard Guenther <rguenther@suse.de>
14022 PR tree-optimization/42916
14023 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
14026 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
14028 * configure.ac: Replace all uses of changequote in macro arguments
14029 with proper quoting.
14031 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14033 PR middle-end/42233
14034 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
14036 2010-02-19 Richard Guenther <rguenther@suse.de>
14038 PR tree-optimization/42944
14039 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
14040 test for aliasing with errno.
14042 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14044 PR middle-end/42233
14045 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
14046 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
14047 * dojump.c: Include output.h.
14048 (inv): New inline function.
14049 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
14050 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
14051 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
14052 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
14053 argument, pass it down to other calls.
14054 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
14055 add REG_BR_PROB note to the conditional jump.
14056 * cfgexpand.c (add_reg_br_prob_note): Removed.
14057 (expand_gimple_cond): Don't call it, add the probability
14058 as last argument to jumpif_1/jumpifnot_1.
14059 * Makefile.in (dojump.o): Depend on output.h.
14060 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
14062 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
14063 * stmt.c (do_jump_if_equal): Likewise.
14064 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
14065 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14066 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
14068 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
14069 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
14070 jumpifnot_1 callers.
14071 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
14073 (store_expr): Adjust jumpifnot caller.
14074 (store_constructor): Adjust jumpif caller.
14076 PR middle-end/42233
14077 * gimplify.c (gimple_boolify): For __builtin_expect call
14078 gimple_boolify also on its first argument.
14080 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
14082 * configure.ac (gnu-unique-object): Wrap regexps using [] in
14084 (__stack_chk_fail): Ditto. Remove quadrigraphs.
14085 * configure: Regenerated.
14087 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14089 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
14090 lang_hooks.types_compatible_p instead of comptypes.
14092 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14094 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
14095 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
14096 if __prefer_thumb__ is defined.
14098 2010-02-18 Martin Jambor <mjambor@suse.cz>
14100 PR tree-optimization/43066
14101 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
14102 array with zero-sized element type.
14104 2010-02-18 Jakub Jelinek <jakub@redhat.com>
14106 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
14107 rtx, allocate struct var_loc_node here and return it to the
14108 caller, and only if it is actually needed.
14109 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
14110 move it earlier and return immediately if it returns NULL.
14112 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
14114 * config/sparc/gas.h: New file. Restore
14115 TARGET_ASM_NAMED_SECTION to its ELF default.
14116 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
14117 check !HAVE_GNU_AS.
14118 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14119 Likewise. Add ATTRIBUTE_UNUSED to prototype.
14120 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
14121 after sparc/sysv4.h.
14123 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
14125 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
14127 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
14129 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
14130 patterns from predicated pattern.
14132 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
14135 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
14136 for insn mnemonic suffix.
14138 2010-02-17 Richard Guenther <rguenther@suse.de>
14140 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
14143 2010-02-17 Jakub Jelinek <jakub@redhat.com>
14146 * caller-save.c (save_call_clobbered_regs): If BB ends with
14147 a DEBUG_INSN, move any notes in between last real insn and the last
14148 DEBUG_INSN after the last DEBUG_INSN.
14150 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
14152 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
14153 Fix return type. Fix argument type. Explain meaning of return value.
14155 2010-02-16 Richard Guenther <rguenther@suse.de>
14157 PR tree-optimization/41043
14158 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
14159 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14161 (vrp_visit_phi_node): ... but only for loop PHI nodes.
14163 2010-02-16 Ira Rosen <irar@il.ibm.com>
14165 PR tree-optimization/43074
14166 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14167 * tree-vect-loop.c (vect_analyze_loop_operations): Add
14168 vectorizable cycles in hybrid SLP check.
14169 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14171 2010-02-16 Richard Guenther <rguenther@suse.de>
14173 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14174 (true_dependence): If memrefs_conflict_p computes must-alias
14175 trust it. Move TBAA check after offset-based disambiguation.
14176 (canon_true_dependence): Likewise.
14178 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
14180 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14181 * doc/invoke.texi: Document it.
14182 * var-tracking.c: Include toplev.h and params.h.
14183 (vt_find_locations): Return bool indicating success. Compute
14184 hash sizes unconditionally. Check new parameter, report.
14185 (variable_tracking_main_1): Check vt_find_locations results and
14186 retry. Renamed from...
14187 (variable_tracking_main): ... this. New wrapper to preserve
14188 flag_var_tracking_assignments.
14189 * Makefile.in (var-tracking.o): Adjust dependencies.
14191 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
14192 Jakub Jelinek <jakub@redhat.com>
14195 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14196 if weak_import attribute is present.
14197 * config/darwin.c (machopic_select_section): Likewise.
14199 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
14201 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14202 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14203 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14204 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14206 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14209 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14210 Fix argument types.
14212 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14213 Rewrite text to refer to the names.
14215 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14217 * config/i386/i386-builtin-types.def
14218 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14219 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14220 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14221 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14222 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14223 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14224 IX86_BUILTIN_VPERMIL2PS256.
14225 (MULTI_ARG_4_DF2_DI_I): Defined.
14226 (MULTI_ARG_4_DF2_DI_I1): Defined.
14227 (MULTI_ARG_4_SF2_SI_I): Defined.
14228 (MULTI_ARG_4_SF2_SI_I1): Defined.
14229 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14230 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14231 __builtin_ia32_vpermil2ps256.
14232 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14233 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14234 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14235 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14236 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14237 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14238 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14239 CODE_FOR_xop_vpermil2v8sf3.
14240 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14241 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14242 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14243 (_mm256_permute2_pd): New.
14244 (_mm_permute2_ps): New.
14245 (_mm256_permute2_ps): New.
14247 2010-02-15 Nick Clifton <nickc@redhat.com>
14249 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14250 boolean parameters. Use emit_jump_insn when emitting a pop
14251 instruction containing a return insn.
14252 (push): Use 'true' rather than '1' as second parameter to F.
14253 (h8300_expand_prologue): Likewise.
14254 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14255 (h8300_expand_epilogue): Likewise.
14257 2010-02-15 Richard Guenther <rguenther@suse.de>
14259 PR middle-end/43068
14260 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14263 2010-02-15 Nick Clifton <nickc@redhat.com>
14265 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14268 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14270 * intl.c (fake_ngettext): New function.
14271 * intl.h (fake_ngettext): Declare.
14272 (ngettext): Define macro.
14273 * collect2.c (notice_translated): New function.
14274 (main): Use notice_translated and ngettext.
14275 * collect2.h (notice_translated): Declare.
14277 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14279 * reorg.c (delete_computation): Comment fixes.
14280 * caller-save.c (setup_save_areas): Idem.
14281 * sel-sched-dump.c (dump_lv_set): Idem.
14284 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14286 * config/s390/s390.c (s390_sched_init): New function.
14287 (TARGET_SCHED_INIT): Target hook defined.
14289 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14290 Jack Howarth <howarth@bromo.med.uc.edu>
14291 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14294 Partial revert of unintended change in fix for PR41605.
14295 * config/darwin.h: Fix typo.
14296 * config/darwin9.h: Same.
14298 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14300 * c-pch.c (pch_init): Clear v.
14302 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14304 PR middle-end/42930
14305 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14306 graphite_can_represent_init for MULT_EXPR.
14308 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14310 PR middle-end/42914
14311 PR middle-end/42530
14312 * graphite-sese-to-poly.c (remove_phi): New.
14313 (translate_scalar_reduction_to_array): Call remove_phi.
14315 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14317 PR middle-end/42771
14318 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14319 * graphite-clast-to-gimple.h (gloog): Update declaration.
14320 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14321 * graphite-poly.h (struct poly_bb): Add missing comments.
14322 (struct scop): Add poly_scop_p field.
14323 (POLY_SCOP_P): New.
14324 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14325 * graphite.c (graphite_transform_loops): Build the polyhedral
14326 representation for each scop before code generation.
14327 * sese.c (rename_variables_in_operand): Removed.
14328 (rename_variables_in_expr): Return the renamed expression.
14329 (rename_sese_parameters): New.
14330 * sese.h (rename_sese_parameters): Declared.
14332 2010-02-11 Richard Guenther <rguenther@suse.de>
14334 PR tree-optimization/42998
14335 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14336 POINTER_PLUS_EXPR properly.
14338 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14339 Changpeng Fang <changpeng.fang@amd.com>
14341 PR middle-end/40886
14342 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14343 the cost of an IV candidate when the IV is used in a test against zero.
14345 * gcc.dg/tree-ssa/ivopts-3.c: New.
14347 2010-02-11 Richard Guenther <rguenther@suse.de>
14350 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14351 pointer-vs-decl case by swapping refs. Handle some cases
14352 of pointer-vs-decl disambiguations more conservatively.
14353 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14354 to false after expanding.
14356 2010-02-11 Richard Guenther <rguenther@suse.de>
14359 * gcc.c (process_command): Handle LTO file@offset case more
14362 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14364 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14365 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14367 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14369 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14370 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14371 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14372 Optimize eq/ne comparisons when both arguments are known to be
14374 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14375 Don't mask operands unnecessarily if they are known to be already
14378 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14380 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14383 2010-02-10 Richard Guenther <rguenther@suse.de>
14385 PR tree-optimization/43017
14386 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14387 for wrapping signed arithmetic.
14389 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14392 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14393 if no debug info should be emitted for it.
14395 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14397 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14398 note when flag_exceptions is set.
14400 2010-02-10 Duncan Sands <baldrick@free.fr>
14402 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14404 2010-02-10 Richard Guenther <rguenther@suse.de>
14407 * tree.c (get_unwidened): Handle constants.
14408 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14410 2010-02-10 Martin Jambor <mjambor@suse.cz>
14413 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14414 check for variable argument counts independently.
14416 2010-02-10 Christian Bruel <christian.bruel@st.com>
14419 * config/sh/sh.c (find_barrier): Increase length for non delayed
14420 conditional branches.
14422 2010-02-10 Christian Bruel <christian.bruel@st.com>
14424 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14426 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14428 * builtins.c (set_builtin_user_assembler_name): Also handle
14429 ffs if int is smaller than word.
14431 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14433 PR middle-end/42973
14434 * ira-conflicts.c (get_dup): Remove.
14435 (process_reg_shuffles): Add new parameter. Use it as an
14436 additional guard for copy generation.
14437 (add_insn_allocno_copies): Rewrite.
14439 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14441 * common.opt (fsched2-use-traces): Preserved for backward
14443 * doc/invoke.texi: Remove the documentation about option
14444 -fsched2-use-traces.
14445 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14446 flag_sched2_use_traces.
14447 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14448 the backward compatibility flag section.
14450 2010-02-09 Richard Guenther <rguenther@suse.de>
14452 PR tree-optimization/43008
14453 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14454 make HEAP variables initialized from global memory if they
14455 are not known builtin functions.
14456 (find_func_aliases): Adjust.
14458 2010-02-09 Richard Guenther <rguenther@suse.de>
14460 PR tree-optimization/43000
14461 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14462 arithmetic manually.
14464 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14466 PR tree-optimization/42931
14467 * tree-loop-linear.c (try_interchange_loops): Don't call
14468 double_int_mul if estimated_loop_iterations failed.
14470 2010-02-08 Martin Jambor <mjambor@suse.cz>
14472 PR middle-end/42898
14473 * tree-sra.c (build_accesses_from_assign): Do not mark in
14474 should_scalarize_away_bitmap if stmt has volatile ops.
14475 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14478 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14480 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14482 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14484 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14485 before the pattern.
14487 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14489 PR middle-end/42946
14490 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14492 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14494 PR middle-end/42988
14495 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14496 to unknown_dependence.
14497 (graphite_legal_transform_dr): Handle the unknown_dependence.
14498 (graphite_carried_dependence_level_k): Same.
14500 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14502 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14504 2010-02-07 Richard Guenther <rguenther@suse.de>
14506 PR middle-end/42991
14507 * expr.c (get_inner_reference): Always initialize *pbitsize.
14509 2010-02-07 Richard Guenther <rguenther@suse.de>
14511 PR middle-end/42956
14512 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14513 new ARRAY_REFs on variable size element or minimal index arrays.
14515 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14516 gimple_fold_indirect_ref.
14518 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14521 * arm.c (arm_override_options): Just return if the user has specified
14522 an invalid fpu name.
14524 2010-02-03 Jason Merrill <jason@redhat.com>
14527 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14528 i386_pe_maybe_record_exported_symbol.
14530 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14533 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14534 (pa_delegitimize_address): New function.
14536 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14538 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14539 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14541 2010-02-05 Richard Guenther <rguenther@suse.de>
14544 * lto-streamer-in.c (get_resolution): Deal with references
14545 to undefined functions.
14547 2010-02-05 Richard Guenther <rguenther@suse.de>
14549 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14550 (fold_const_aggregate_ref): Likewise.
14551 (ccp_fold_stmt): Substitute loads.
14552 (maybe_fold_reference): Verify types before substituting.
14554 (fold_gimple_assign): Unshare properly.
14555 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14557 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14559 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14560 for rs6000_gen_cell_microcode.
14562 2010-02-04 Richard Guenther <rguenther@suse.de>
14564 PR rtl-optimization/42952
14565 * dse.c (const_or_frame_p): Remove MEM handling.
14567 2010-02-04 Nick Clifton <nickc@redhat.com>
14569 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14570 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14571 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14572 (mn10300_asm_output_mi_thunk): New function.
14573 (mn10300_can_output_mu_thunk): New function.
14574 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14575 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14576 (FUNCTION_ARG): Delete incorrect comment.
14578 2010-02-03 Jason Merrill <jason@redhat.com>
14581 * fold-const.c (operand_equal_p): Handle erroneous types.
14583 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14585 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14587 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14589 PR rtl-optimization/42941
14590 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14593 2010-02-03 Jason Merrill <jason@redhat.com>
14596 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14598 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14601 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14602 (cselib_reset_table): Renamed from...
14603 (cselib_reset_table_with_next_value): ... this.
14604 (cselib_get_next_uid): Renamed from...
14605 (cselib_get_next_unknown_value): ... this.
14606 * cselib.c (next_uid): Renamed from...
14607 (next_unknown_value): ... this.
14608 (cselib_clear_table): Adjust.
14609 (cselib_reset_table): Adjust. Renamed from...
14610 (cselib_reset_table_with_next_value): ... this.
14611 (cselib_get_next_uid): Adjust. Renamed from...
14612 (cselib_get_next_unknown_value): ... this.
14613 (get_value_hash): Use hash.
14614 (cselib_hash_rtx): Likewise.
14615 (new_cselib_val): Adjust. Set and dump uid.
14616 (cselib_lookup_mem): Pass next_uid as hash.
14617 (cselib_subst_to_values): Likewise.
14618 (cselib_log_lookup): Dump uid.
14619 (cselib_lookup): Pass next_uid as hash. Adjust.
14620 (cselib_process_insn): Adjust.
14621 (cselib_init): Initialize next_uid.
14622 (cselib_finish): Adjust.
14623 (dump_cselib_table): Likewise.
14624 * dse.c (canon_address): Dump value uid.
14625 * print-rtl.c (print_rtx): Print value uid.
14626 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14628 (dv_uid): New function, sort of renamed from...
14629 (dv_htab_hash): ... this, reimplemented in terms of it and...
14630 (dv_uid2hash): ... this. New.
14631 (variable_htab_eq): Drop excess assertions.
14632 (tie_break_pointers): Removed.
14633 (canon_value_cmp): Compare uids.
14634 (variable_post_merge_New_vals): Print uids.
14635 (vt_add_function_parameters): Adjust.
14636 (vt_initialize): Reset table. Adjust.
14638 2010-02-03 Richard Guenther <rguenther@suse.de>
14640 PR tree-optimization/42944
14641 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14642 (call_may_clobber_ref_p_1): Likewise. Properly handle
14643 malloc and calloc clobbering errno.
14645 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14647 * doc/invoke.texi: Fix name of sched1 dump.
14649 * opts.c (decode_options): Set flag_tree_switch_conversion
14650 only conditionally on optimize >= 2.
14652 * gcse.c: Assorted comment fixes in pass description.
14654 2010-02-03 Anthony Green <green@moxielogic.com>
14656 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14657 nop padding in order to maintain alignment of storage location of
14658 target function address.
14659 (moxie_trampoline_init): Store target function address at newly
14661 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14663 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14665 2010-02-03 Richard Guenther <rguenther@suse.de>
14667 PR middle-end/42927
14668 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14670 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14672 * config.gcc: Reenable check for obsolete targets.
14673 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14674 mips-sgi-irix6.[0-4]*.
14676 2010-02-02 Nick Clifton <nickc@redhat.com>
14678 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14679 constant size of 4 as being the same as 0.
14680 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14681 can take values in the range 0..4.
14683 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14686 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14687 as _darwin10_Unwind_FindEnclosingFunction().
14688 * libgcc-libsystem.ver: New.
14690 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14693 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14694 implicitly set registers.
14696 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14698 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14699 (arm_override_options): Allow automatic selection of the thread
14700 pointer register if thumb2.
14701 (legitimize_pic_address): Improve code sequences for Thumb2.
14702 (arm_call_tls_get_addr): Likewise.
14703 (legitimize_tls_address): Likewise.
14704 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14705 (pic_load_addr_32bit): ... this. New named pattern.
14706 * thumb2.md (pic_load_addr_thumb2): Delete.
14707 (pic_load_dot_plus_four): Delete.
14708 (tls_load_dot_plus_four): New named pattern.
14710 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14713 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14714 Document fix for TLS bug.
14716 2010-01-31 Richard Guenther <rguenther@suse.de>
14718 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14719 conservatively correct.
14721 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14725 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14727 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14729 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14731 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14733 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14735 * config.gcc: Adjust order of makefile fragments for mingw targets.
14737 2010-01-31 Richard Guenther <rguenther@suse.de>
14739 PR middle-end/42898
14740 * gimplify.c (gimplify_init_constructor): For volatile LHS
14741 initialize a temporary.
14743 2010-01-31 Matthias Klose <doko@ubuntu.com>
14745 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14747 * configure: Regenerate.
14749 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14751 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14752 the same alias set and their sizes different constantness.
14753 (aliasing_component_refs_p): Revert 2009-10-24 change.
14755 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14757 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14760 2010-01-29 Richard Guenther <rguenther@suse.de>
14762 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14763 Assert we successfully updated the call.
14765 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14767 PR rtl-optimization/42889
14768 * df.h (df_set_bb_dirty_nonlr): New prototype.
14769 * df-core.c (df_set_bb_dirty_nonlr): New function.
14770 * df-scan.c (df_insn_rescan): Call it instead of
14771 df_set_bb_dirty for DEBUG_INSNs.
14773 2010-01-29 Richard Guenther <rguenther@suse.de>
14775 PR middle-end/37448
14776 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14777 quadratic behavior in most cases.
14779 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14782 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14783 in the call to gen_x86_movsicc_0_m1.
14785 2010-01-28 Richard Guenther <rguenther@suse.de>
14787 PR tree-optimization/42871
14788 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14790 2010-01-28 Richard Guenther <rguenther@suse.de>
14792 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14793 into call arguments.
14795 2010-01-28 Richard Guenther <rguenther@suse.de>
14797 PR middle-end/42883
14798 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14799 the forwarder if the destination is an EH landing pad.
14801 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14803 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14804 block list passed to gimple_duplicate_sese_tail.
14805 (parallelize_loops): Avoid parallelization when the function
14806 has_nonlocal_label.
14807 Avoid parallelization when the preheader is IRREDUCIBLE.
14808 Try to optimize when estimated_loop_iterations_int is unresolved.
14809 Add the loop's location to the dump file.
14810 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14811 (gimple_duplicate_sese_tail): Remove the check for the latch.
14812 Redirect nexits to the exit block.
14813 Remove handling of the incoming edges to the latch.
14814 Redirect the backedge from the copied latch to the exit bb.
14816 2010-01-28 Michael Matz <matz@suse.de>
14819 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14820 Wrap force_reg into a sequence, emit it before user.
14822 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14824 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14826 (arm_legacy_rev): Likewise.
14827 (thumb_legacy_rev): Likewise.
14829 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14831 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14832 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14833 on MEM's address failed, try avoid_constant_pool_reference and
14834 recurse if it returned something different.
14835 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14836 address, try avoid_constant_pool_reference and recurse if it
14837 returned something different.
14838 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14839 address and avoid_constant_pool_reference returned something
14840 different, don't set have_address.
14842 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14845 * var-tracking.c (val_store): Add modified argument, obey it.
14847 (count_uses): Move down logging of main.
14848 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14849 don't need resolution.
14850 (emit_notes_in_bb): Likewise.
14852 2010-01-27 Richard Guenther <rguenther@suse.de>
14854 PR middle-end/42878
14855 * tree-inline.c (remap_decl): Delay remapping of SSA name
14856 default definitions until we need them.
14858 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14860 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14861 (rs6000_delegitimize_address): New function.
14863 * config/s390/s390.c (s390_delegitimize_address): Call
14864 delegitimize_mem_from_attrs.
14866 PR middle-end/42874
14867 * tree-inline.c (cannot_copy_type_1): Removed.
14868 (copy_forbidden): Don't forbid copying of functions containing
14869 records/unions with variable length fields.
14871 2010-01-27 Christian Bruel <christian.bruel@st.com>
14875 * config/sh/sh.c (find_barrier): Increase length for non delayed
14876 conditional branches.
14878 2010-01-27 Matthias Klose <doko@ubuntu.com>
14880 * configure.ac (gnu-unique-object): Fix ldd version check.
14881 * configure: Regenerate.
14883 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14885 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14887 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14888 Test for HAVE_GNU_AS value.
14890 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14892 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14893 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14894 INT64_TYPE): Define.
14895 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14896 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14897 INT_LEAST64_TYPE): Define.
14898 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14899 UINT_LEAST64_TYPE): Define.
14900 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14901 INT_FAST64_TYPE): Define.
14902 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14903 UINT_FAST64_TYPE): Define.
14904 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14905 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14906 (SIG_ATOMIC_TYPE): Define.
14908 2010-01-26 Richard Guenther <rguenther@suse.de>
14910 * df-scan.c (df_scan_set_bb_info): Remove assert.
14911 (df_insn_rescan_debug_internal): Merge asserts.
14912 (df_install_ref): Likewise.
14913 (df_mark_reg): Use bitmap_set_range.
14914 (df_hard_reg_used_p): Remove assert.
14915 (df_hard_reg_used_count): Likewise.
14917 2010-01-26 Richard Guenther <rguenther@suse.de>
14919 PR rtl-optimization/42685
14920 * web.c (web_main): Ignore DEBUG_INSNs.
14922 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14924 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14926 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14927 Fix types of fndecl and arglist parameters.
14929 2010-01-26 Richard Guenther <rguenther@suse.de>
14931 PR middle-end/42806
14932 * tree-eh.c (unsplit_eh): Skip debug insns.
14934 2010-01-26 Richard Guenther <rguenther@suse.de>
14936 PR tree-optimization/42250
14937 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14939 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14942 * omp-low.c (expand_omp_sections): Only use single_pred if
14943 l2_bb is single_pred_p.
14945 2010-01-25 Christian Bruel <christian.bruel@st.com>
14948 * config/sh/sh.c (find_barrier): Increase length for non delayed
14949 conditional branches.
14950 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14952 2010-01-24 David S. Miller <davem@davemloft.net>
14954 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14955 define if not using GAS.
14956 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14957 Likewise. Delete SECTION_MERGE code, which is only applicable
14960 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14963 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14964 mangling of va_list in system headers.
14966 2010-01-23 Toon Moene <toon@moene.org>
14968 * tree-predcom.c (combine_chains): Return NULL, not false.
14970 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14972 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14973 initialization of variable res to agree with return type.
14975 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14977 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14978 * tree-sra.c: Add include of expr.h.
14980 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14982 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14983 insert the debug stmt on the single non-EH edge from the stmt.
14985 2010-01-22 Richard Henderson <rth@redhat.com>
14988 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14989 the RHS until after generate_subtree_copies has insertted its
14990 code before the current statement.
14992 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14994 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14996 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14998 2010-01-21 Martin Jambor <mjambor@suse.cz>
15000 PR tree-optimization/42585
15001 * tree-sra.c (struct access): New field grp_total_scalarization.
15002 (dump_access): Dump the new field.
15003 (should_scalarize_away_bitmap): New variable.
15004 (cannot_scalarize_away_bitmap): Likewise.
15005 (sra_initialize): Allocate new bitmaps.
15006 (sra_deinitialize): Free new bitmaps.
15007 (create_access_1): New function.
15008 (create_access): Parts moved to create_access_1.
15009 (type_consists_of_records_p): New function.
15010 (completely_scalarize_record): Likewise.
15011 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
15012 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
15013 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
15015 (analyze_all_variable_accesses): Completely scalarize small eligible
15018 2010-01-21 Martin Jambor <mjambor@suse.cz>
15020 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
15022 2010-01-21 Andrew Haley <aph@redhat.com>
15024 * gcc.c (process_command): Move lang_specific_driver before
15025 setting cc_libexec_prefix.
15027 2010-01-21 Richard Guenther <rguenther@suse.de>
15029 PR middle-end/19988
15030 * fold-const.c (negate_expr_p): Pretend only negative
15031 real constants are easily negatable.
15033 2010-01-20 Janis Johnson <janis187@us.ibm.com>
15034 Jason Merrill <jason@redhat.com>
15036 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
15037 (TYPE_TRANSPARENT_AGGR): this, for union and record.
15038 * calls.c (initialize argument_information): Handle it.
15039 * c-common.c (handle_transparent_union_attribute): Use new name.
15040 * c-decl.c (finish_struct): Ditto.
15041 * c-typeck.c (type_lists_compatible_p): Ditto.
15042 (convert_for_assignment): Use new name and also handle record.
15043 * function.c (aggregate_value_p): Handle it.
15044 (pass_by_reference): Ditto.
15045 (assign_parm_data_types): Ditto.
15046 * print-tree.c (print_node): Ditto.
15047 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
15048 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
15049 * tree.c (first_field): New fn.
15051 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
15054 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
15055 even when linking statically, for now.
15057 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15060 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
15061 without a cselib val.
15062 (count_uses): Accept MO_VAL_SET with no val on stores.
15063 (add_stores): Likewise.
15065 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15067 * var-tracking.c (check_value_val): Add a compile time assertion.
15068 (dv_is_decl_p): Simplify.
15069 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
15070 gcc_assert if ENABLE_CHECKING.
15072 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15075 * var-tracking.c: Include tree-flow.h.
15076 (mem_dies_at_call): New.
15077 (dataflow_set_preserve_mem_locs): Use it.
15078 (dataflow_set_remove_mem_locs): Likewise.
15079 (dump_var): Renamed from dump_variable. Adjust all callers.
15080 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
15081 * Makefile.in (var-tracking.o): Adjust deps.
15083 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
15085 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
15087 2010-01-20 Richard Guenther <rguenther@suse.de>
15089 PR tree-optimization/42717
15090 * tree-ssa-dce.c (get_live_post_dom): Remove.
15091 (forward_edge_to_pdom): Take an arbitrary edge to copy
15092 degenerate PHI args from.
15093 (remove_dead_stmt): Use the first post-dominator even if it
15094 does not contain live statements as redirection destination.
15096 2010-01-20 Richard Guenther <rguenther@suse.de>
15098 * tree-inline.c (estimate_num_insns): Handle EH builtins.
15100 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15102 * sel-sched.c (create_speculation_check): Remove set but not used
15104 (try_transformation_cache): Remove set but not used variable ds.
15105 (calculate_privileged_insns): Remove set but not used variables
15106 cur_insn and min_spec_insn.
15107 (find_best_expr): Remove set but not used variable avail_n.
15108 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
15110 * cgraphunit.c (assemble_thunk): Remove set but not used variable
15112 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
15113 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
15114 new_scop_exit_edge.
15116 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
15119 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
15120 cpu types. Add support for *-sse3 cpu types.
15121 (x86_64-*-*): Ditto.
15123 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15125 PR middle-end/42803
15126 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
15127 argument, call initializer_constant_valid_p_1 instead of
15128 initializer_constant_valid_p, pass CACHE to it, return NULL
15129 immediately if first call returns NULL.
15130 (initializer_constant_valid_p_1): New function.
15131 (initializer_constant_valid_p): Use it.
15133 2010-01-20 Thomas Quinot <quinot@adacore.com>
15135 * tree.def (PLACEHOLDER_EXPR): Fix comment.
15137 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15139 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
15140 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
15141 (loc_list_from_tree): Don't handle unsigned division. Handle
15142 signed modulo using DW_OP_{over,over,div,mul,minus}.
15143 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
15144 modulo instead of signed.
15146 2010-01-20 DJ Delorie <dj@redhat.com>
15148 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
15150 (h8300_emit_stack_adjustment): Propogate it.
15152 (h8300_expand_prologue): Likewise.
15153 (h8300_expand_epilogue): Likewise.
15155 2010-01-19 Michael Matz <matz@suse.de>
15157 PR tree-optimization/41783
15158 * tree-data-ref.c (toplevel): Include flags.h.
15159 (dump_data_dependence_relation): Also dump the inputs if the
15160 result will be unknown.
15161 (split_constant_offset_1): Look through some conversions.
15162 * tree-predcom.c (determine_roots_comp): Restart a new chain if
15163 the offset from last element is too large.
15164 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15165 (reassociate_to_the_same_stmt): Handle vector registers.
15166 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15167 (e.g. conversions).
15168 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15169 wide_prolog_niters argument, emit widening instructions.
15170 (vect_do_peeling_for_alignment): Adjust caller, use widened
15171 variant of the iteration cound.
15172 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15174 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15177 * config/arm/neon-testgen.m (emit_automatics): New parameter
15178 features. Adjust for Fixed_return_reg feature.
15179 (test_intrinsic): Call emit_automatics with new feature.
15180 * config/arm/neon.ml: Update copyright years.
15181 (features): New Fixed_return_reg feature.
15182 (ops): Update feature for Vget_low.
15184 2010-01-19 Jakub Jelinek <jakub@redhat.com>
15186 PR tree-optimization/42719
15187 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15191 * fwprop.c (all_uses_available_at): Return false if def_set dest
15192 is a REG that is used in def_insn.
15194 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
15196 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15198 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15199 Add argument names.
15201 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15203 * target.h (struct gcc_target) <secondary_reload>: Change type
15204 of last argument to secondary_reload_info *.
15206 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
15209 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15210 memory references with unaligned offsets. Remove CQImode handling.
15211 (unaligned_memory_operand): Return 1 for memory references with
15212 unaligned offsets. Remove CQImode handling.
15214 2010-01-18 Richard Guenther <rguenther@suse.de>
15216 PR middle-end/39954
15217 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15220 2010-01-18 Richard Guenther <rguenther@suse.de>
15222 PR tree-optimization/42781
15223 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15224 restrict processing only if the original variable was artificial.
15226 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15228 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15229 find number of popped argument bytes.
15231 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15232 Fix the text that describes the return value for invalid insns.
15234 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15236 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15237 Clarify what 'cost of the -dependence' is. Fix quoting.
15239 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15240 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15242 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15244 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15245 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15247 2010-01-17 Richard Guenther <rguenther@suse.de>
15249 PR middle-end/42248
15250 * function.c (split_complex_args): Take a VEC to modify.
15251 (assign_parms_augmented_arg_list): Build a VEC instead of
15252 a chain of PARM_DECLs.
15253 (assign_parms_unsplit_complex): Take a VEC of arguments.
15254 Do not fixup unmodified parms.
15255 (assign_parms): Deal with the VEC.
15256 (gimplify_parameters): Likewise.
15258 2010-01-17 Richard Guenther <rguenther@suse.de>
15260 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15261 node existence check.
15262 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15263 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15264 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15265 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15266 (gimple_execute_on_growing_pred): Likewise.
15268 2010-01-17 Richard Guenther <rguenther@suse.de>
15270 PR tree-optimization/42773
15271 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15272 (compute_antic_aux): Likewise.
15273 (compute_partial_antic_aux): Likewise.
15275 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15278 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15281 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15283 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15286 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15287 Fix markup for strict argument.
15289 (TARGET_SCHED_REORDER2): Fix argument types.
15291 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15292 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15294 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15295 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15297 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15300 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15301 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15302 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15303 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15304 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15306 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15308 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15310 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15311 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15313 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15315 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15318 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15320 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15321 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15323 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15325 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15327 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15328 referring to it. Fix language.
15330 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15332 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15334 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15336 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15338 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15339 '@var{stream}. Remove stray 'and'.
15341 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15343 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15345 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15347 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15348 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15350 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15351 Fix description of return value.
15352 Rename argument "sz" to "len."
15354 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15355 Clarify meaning of 'true' return value.
15357 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15359 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15360 rep_mode versus mode_rep.
15362 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15364 (TARGET_BUILTIN_DECL): Fix name.
15366 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15368 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15370 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15372 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15374 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15376 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15379 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15380 Rename argument tm_fn to md_fn.
15382 (TARGET_OPTION_PRINT): Fix argument list.
15384 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15387 * config/i386/i386.c (ix86_fixup_binary_operands):
15388 Revert FMA4 fixup of operands.
15390 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15393 * Makefile.in (write_entries_to_file, install-plugin):
15394 Use \012 instead of \n with tr.
15396 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15398 * configure.ac (HAVE_AS_REF): New C macro.
15399 * configure: Regenerate.
15400 * config.in: Likewise.
15401 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15403 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15406 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15408 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15410 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15412 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15414 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15416 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15418 (TARGET_BINDS_LOCAL_P): Fix argument type.
15420 (TARGET_ASM_FILE_END): Use prototype.
15422 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15424 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15426 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15428 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15430 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15431 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15433 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15434 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15436 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15437 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15438 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15439 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15441 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15443 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15445 (TARGET_INIT_BUILTINS): Use prototype.
15447 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15448 Put 'const char *' in braces. Fix parameter types.
15449 (TARGET_INVALID_CONVERSION): Fix parameter types.
15450 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15451 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15453 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15456 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15458 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15460 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15462 * doc/tm.texi (TARGET_HELP): Fix return type.
15464 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15465 in braces. Fix argument types.
15467 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15469 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15471 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15473 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15474 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15476 (TARGET_MANGLE_TYPE): Fix argument types.
15478 (TARGET_IRA_COVER_CLASSES): Use prototype.
15480 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15482 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15484 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15486 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15488 (TARGET_CALLEE_COPIES): Fix argument types.
15490 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15492 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15494 (TARGET_FUNCTION_VALUE): Fix argument types.
15496 (TARGET_RETURN_IN_MSB): Fix argument type.
15498 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15500 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15502 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15504 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15505 agree with return type.
15507 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15509 2010-01-15 Jing Yu <jingyu@google.com>
15511 PR rtl-optimization/42691
15512 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15513 a pseudo to a constant and are merged, and adjust comments.
15515 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15517 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15519 2010-01-15 Richard Guenther <rguenther@suse.de>
15521 PR middle-end/42739
15522 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15523 labels of computed or non-local gotos to the destination.
15524 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15525 landing pad label is the first label.
15527 2010-01-15 Richard Guenther <rguenther@suse.de>
15529 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15531 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15534 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15535 to allow generation of the xssqrtdp instruction on power7.
15536 (sqrtdf2_fpr): Ditto.
15538 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15540 PR middle-end/42674
15541 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15542 functions with noreturn attribute.
15545 * varasm.c (declare_weak): Add weak attribute to decl if it
15546 doesn't have one already.
15547 (assemble_external): Only add decls to weak_decls if they also
15548 have weak attribute.
15550 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15552 * var-tracking.c (var_reg_delete): Don't delete the association
15553 between REGs and values or one-part variables if the register
15556 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15559 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15560 because its first operand is a non-localized variable.
15562 2010-01-14 Martin Jambor <mjambor@suse.cz>
15564 PR tree-optimization/42706
15565 * tree-sra.c (encountered_recursive_call): New variable.
15566 (encountered_unchangable_recursive_call): Likewise.
15567 (sra_initialize): Initialize both new variables.
15568 (callsite_has_enough_arguments_p): New function.
15569 (scan_function): Call decl and flags check only for IPA-SRA, check
15570 whether there is a recursive call and whether it has enough arguments.
15571 (all_callers_have_enough_arguments_p): New function.
15572 (convert_callers): Look for recursive calls only when
15573 encountered_recursive_call is set.
15574 (ipa_early_sra): Bail out either if
15575 !all_callers_have_enough_arguments_p or
15576 encountered_unchangable_recursive_call.
15578 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15580 * sel-sched.c: Add 2010 to copyright years.
15581 * sel-sched-ir.c: Likewise.
15582 * sel-sched-ir.h: Likewise.
15584 2010-01-14 Martin Jambor <mjambor@suse.cz>
15586 PR tree-optimization/42714
15587 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15588 constructors specially.
15590 2010-01-14 Andi Kleen <ak@linux.intel.com>
15592 * config/i386/drivers-i386.c (detect_caches_intel):
15593 Add l2sizekb parameter and fill in.
15594 (host_detect_local_cpu): Add l2sizekb, fill in.
15595 Add Atom small cache heuristic.
15597 2010-01-14 Andi Kleen <ak@linux.intel.com>
15599 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15600 Add level3 parameter and fill in.
15601 (detect_caches_intel): Handle level3 cache.
15603 2010-01-14 Andi Kleen <ak@linux.intel.com>
15605 * config/i386/drivers-i386.c (host_detect_local_cpu):
15606 Fix core duo detection.
15608 2010-01-14 Andi Kleen <ak@linux.intel.com>
15610 * config/i386/drivers-i386.c (host_detect_local_cpu):
15611 Fix Atom detection.
15613 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15615 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15616 (rs6000_variable_issue_1): this. Use...
15617 (rs6000_variable_issue): here. Reimplement. Print debug info.
15619 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15621 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15622 sel_restore_notes. Update all callers. Call reemit_notes
15625 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15627 PR rtl-optimization/42246
15628 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15631 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15633 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15634 all successors is the same as number of successors in current region.
15636 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15638 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15639 to rename is not separable. Otherwise check that its LHS is not NULL.
15641 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15643 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15645 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15647 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15648 available registers when failed to discover LHS register class.
15649 Fix indentation. Update comment.
15651 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15652 Alexander Monakov <amonakov@ispras.ru>
15654 PR rtl-optimization/42389
15655 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15657 (advance_state_on_fence): Likewise.
15658 (sel_target_adjust_priority): Print debug output only when
15659 sched_verbose >= 4, not 2.
15660 (get_expr_cost): Do not issue all unique insns on the next cycle.
15661 (fill_insns): Initialize can_issue_more from the value saved
15663 * sel-sched-ir.c (flist_add): New parameter issue_more.
15664 Init FENCE_ISSUE_MORE with it.
15665 (merge_fences): Likewise.
15666 (init_fences): Update call to flist_add.
15667 (add_to_fences, add_clean_fence_to_fences)
15668 (add_dirty_fence_to_fences): Likewise.
15669 (move_fence_to_fences): Update call to merge_fences.
15670 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15672 * sel-sched-ir.h (struct _fence): New field issue_more.
15673 (FENCE_ISSUE_MORE): New accessor macro.
15675 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15677 PR rtl-optimization/42388
15678 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15679 that have no predecessors nor successors. Do not call move_bb_info
15680 for empty blocks outside of current region.
15682 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15684 PR rtl-optimization/42294
15685 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15686 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15687 originators' originators.
15689 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15691 PR rtl-optimization/39453
15692 PR rtl-optimization/42246
15693 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15695 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15697 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15698 Alexander Monakov <amonakov@ispras.ru>
15700 PR middle-end/42245
15701 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15702 (maybe_tidy_empty_bb): ... here. Make static. Add new
15703 argument. Update all callers.
15704 (tidy_control_flow): ... and here. Recompute topological order
15705 of basic blocks in region if necessary.
15706 (sel_redirect_edge_and_branch): Change return type. Return true
15707 if topological order might have been invalidated.
15708 (purge_empty_blocks): Export and move from...
15709 * sel-sched.c (purge_empty_blocks): ... here.
15710 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15711 (maybe_tidy_empty_bb): Delete prototype.
15712 (purge_empty_blocks): Declare.
15714 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15716 PR rtl-optimization/42249
15717 * sel-sched.c (try_replace_dest_reg): When chosen register
15718 and original register is the same, do not bail out early, but
15719 still check all original insns for validity of replacing destination
15720 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15723 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15726 Port from no-undefined-overflow branch:
15727 2009-03-09 Richard Guenther <rguenther@suse.de>
15729 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15731 2010-01-14 Richard Guenther <rguenther@suse.de>
15734 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15736 2010-01-14 Ira Rosen <irar@il.ibm.com>
15738 PR tree-optimization/42709
15739 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15740 as scalar type in creation of constant vector operand.
15742 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15745 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15746 (check-parallel-%): Match `testsuite' directory component only
15749 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15751 PR translation/39521
15752 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15755 2010-01-13 Richard Guenther <rguenther@suse.de>
15757 PR tree-optimization/42730
15758 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15761 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15764 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15765 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15768 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15770 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15771 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15772 ___umulsi3_highpart.
15774 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15775 rather than schedule_insns if the pass is enabled.
15777 2010-01-13 Martin Jambor <mjambor@suse.cz>
15779 PR tree-optimization/42704
15780 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15783 2010-01-13 Martin Jambor <mjambor@suse.cz>
15785 PR tree-optimization/42703
15786 * tree-sra.c (analyze_access_subtree): Check that we can build a
15787 reference to the original data within the aggregate.
15789 2010-01-13 Richard Guenther <rguenther@suse.de>
15791 PR tree-optimization/42705
15792 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15794 2010-01-13 Richard Guenther <rguenther@suse.de>
15796 PR middle-end/42716
15797 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15799 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15802 * var-tracking.c (values_to_unmark): New variable.
15803 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15804 values_to_unmark vector. Moved body to...
15805 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15806 instead queue it into values_to_unmark vector.
15807 (vt_find_locations): Free values_to_unmark vector.
15809 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15811 * config/s390/s390.c (override_options): Set
15812 default of max-pending-list-length to 256
15814 2010-01-13 Richard Guenther <rguenther@suse.de>
15817 * tree-pass.h (PROP_gimple_lcx): New.
15818 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15819 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15820 before the final cleanup_eh.
15821 (dump_properties): Dump PROP_gimple_lcx.
15822 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15823 (tree_lower_complex_O0): Remove.
15824 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15825 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15826 tree_lower_complex, schedule TODO_update_ssa.
15827 * lto-streamer-out.c (output_function): Stream the functions
15829 * lto-streamer-in.c (input_function): Likewise.
15830 (lto_read_body): Do not override them here.
15832 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15835 * c-typeck.c (build_c_cast): Fold value cast to union type before
15836 wrapping it in a CONSTRUCTOR.
15838 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15840 PR rtl-optimization/42699
15841 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15844 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15846 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15847 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15848 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15849 SUBTARGET_WARN_UNUSED_SPEC): ... here
15850 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15852 2010-01-12 Julian Brown <julian@codesourcery.com>
15854 * config/arm/neon-schedgen.ml (Utils): Don't try to
15855 open missing module.
15856 (find_with_result): New.
15858 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15861 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15862 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15864 PR tree-optimization/42645
15865 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15866 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15867 decl_map, set processing_debug_stmt to -1 and return name without
15870 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15872 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15873 binutils version, and reword target configuration description.
15875 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15877 * config/avr/avr.h (LINKER_NAME): Remove.
15879 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15882 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15883 that support VSX, warn for -mno-altivec if vsx is not disabled,
15886 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15887 Shujing Zhao <pearly.zhao@oracle.com>
15889 PR translation/42469
15890 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15891 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15892 character between option name and help text.
15893 * c.opt (imultilib): Likewise.
15895 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15897 * lto-streamer-out.c (output_unreferenced_globals): Output static
15900 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15902 PR rtl-optimization/42621
15903 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15904 optimizing for size.
15905 (duplicate_computed_gotos): Remove now-redundant check.
15907 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15910 * configure.ac: Save and restore LDFLAGS and LIBS
15911 * configure: Regenerate.
15913 2010-01-10 Richard Guenther <rguenther@suse.de>
15915 PR middle-end/42667
15916 * builtins.c (fold_builtin_strlen): Add type argument and
15917 convert the resulting length to it.
15918 (fold_builtin_1): Adjust.
15920 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15922 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15923 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15925 (num_insns_constant_wide): Adjust for that change.
15927 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15930 * web.c (union_defs): Add used argument, to combine uses of
15931 uninitialized regs.
15932 (entry_register): Adjust type and tests of used argument.
15933 (web_main): Widen used for new use. Pass it to union_defs.
15934 * df.h (union_defs): Adjust prototype.
15936 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15939 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15940 uses in new incoming argument. Free body.
15941 (reset_debug_uses_in_loop): New.
15942 (analyze_insn_to_expand_var): Call the latter if the former found
15943 anything. Fix whitespace. Reject invalid dest overlaps before
15944 going through all insns in the loop.
15946 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15949 * haifa-sched.c (dying_use_p): Debug insns don't count.
15951 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15953 PR middle-end/42363
15954 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15955 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15956 (verify_gimple_call): Reject LHS in noreturn calls.
15958 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15962 * tree-vect-loop-manip.c (adjust_info): New type.
15963 (adjust_vec): New pointer to vector.
15964 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15965 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15966 (slpeel_update_phis_for_duplicate_loop): Use them.
15967 (slpeel_update_phi_nodes_for_guard1): Likewise.
15968 (slpeel_update_phi_nodes_for_guard2): Likewise.
15969 (slpeel_tree_peel_loop_to_edge): Likewise.
15970 (vect_update_ivs_after_vectorizer): Likewise.
15972 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15974 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15975 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15977 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15979 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15980 bogus uninitialized warning.
15982 2010-01-09 Richard Guenther <rguenther@suse.de>
15984 PR middle-end/42512
15985 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15986 the evolution is compatible with the initial condition.
15988 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15990 * gcc.c (process_command): Update copyright notice dates.
15991 * gcov.c (print_version): Likewise.
15992 * gcov-dump.c (print_version): Likewise.
15993 * mips-tfile.c (main): Likewise.
15994 * mips-tdump.c (main): Likewise.
15996 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15999 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
16001 (rotlhi3_8): Delete.
16003 (rotlsi3_8): Delete.
16004 (rotlsi3_16): Delete.
16005 (rotlsi3_24): Delete.
16006 (rotl<mode>3): New.
16007 (*rotw<mode>3): New.
16008 (*rotb<mode>3): New.
16009 * config/avr/avr.c (avr_rotate_bytes): New function.
16010 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
16012 2010-01-08 Steve Ellcey <sje@cup.hp.com>
16015 * configure.ac: Modify -rdynamic check.
16016 * configure: Regenerate.
16018 2010-01-08 DJ Delorie <dj@redhat.com>
16020 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
16021 register popping order.
16023 2010-01-08 Richard Guenther <rguenther@suse.de>
16026 * c.opt (fsigned-char): Also let LTO handle this option.
16027 (funsigned-char): Likewise.
16029 2010-01-07 Richard Guenther <rguenther@suse.de>
16031 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
16032 (gimple_op): Likewise.
16033 (gimple_op_ptr): Likewise.
16034 (gimple_assign_set_lhs): Remove gcc_assert.
16035 (gimple_assign_set_rhs1): Likewise.
16036 (gimple_assign_set_rhs2): Likewise.
16037 (gimple_call_set_lhs): Likewise.
16038 (gimple_call_set_fn): Likewise.
16039 (gimple_call_set_fndecl): Likewise.
16040 (gimple_call_fndecl): Likewise.
16041 (gimple_call_return_type): Likewise.
16042 (gimple_call_set_chain): Likewise.
16043 (gimple_call_num_args): Likewise.
16044 (gimple_call_set_arg): Likewise.
16045 (gimple_cond_set_code): Likewise.
16046 (gimple_cond_set_lhs): Likewise.
16047 (gimple_cond_set_rhs): Likewise.
16048 (gimple_cond_set_true_label): Likewise.
16049 (gimple_cond_set_false_label): Likewise.
16050 (gimple_label_set_label): Likewise.
16051 (gimple_goto_set_dest): Likewise.
16052 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
16053 (gimple_debug_bind_get_value): Likewise.
16054 (gimple_debug_bind_get_value_ptr): Likewise.
16055 (gimple_debug_bind_set_var): Likewise.
16056 (gimple_debug_bind_set_value): Likewise.
16057 (gimple_debug_bind_reset_value): Likewise.
16058 (gimple_debug_bind_has_value_p): Likewise.
16059 (gimple_return_retval_ptr): Remove gcc_assert.
16060 (gimple_return_retval): Likewise.
16061 (gimple_return_set_retval): Likewise.
16062 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
16063 (safe_referenced_var_iterator): Remove.
16064 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
16065 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
16066 (fill_referenced_var_vec): Remove.
16067 (first_readonly_imm_use): Remove redundant gcc_assert.
16068 (phi_arg_index_from_use): Combine gcc_asserts.
16069 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
16070 (first_imm_use_stmt): Remove redundant gcc_assert.
16071 * tree-cfg.c (verify_gimple_call): Verify function and chain
16072 operands. Verify arguments.
16073 (verify_types_in_gimple_stmt): Verify condition code and labels.
16075 2010-01-07 Richard Guenther <rguenther@suse.de>
16077 PR tree-optimization/42641
16078 * sese.c (rename_map_elt_info): Use the SSA name version, do
16081 2010-01-07 Jakub Jelinek <jakub@redhat.com>
16083 PR tree-optimization/42625
16084 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
16085 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
16087 2010-01-07 Duncan Sands <baldrick@free.fr>
16089 * Makefile.in (PLUGIN_HEADERS): Add version.h.
16091 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
16094 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
16095 note itself is not function_invariant_p.
16097 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
16099 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
16100 Do not add the DF_NOTE problem.
16101 * store-motion.c (execute_rtl_store_motion): Likewise.
16103 2010-01-07 Martin Jambor <mjambor@suse.cz>
16105 PR tree-optimization/42157
16106 * tree-sra.c (compare_access_positions): Stabilize sort if both
16107 accesses have integer types, return zero immediately if they are the
16110 2010-01-06 Richard Henderson <rth@redhat.com>
16112 PR middle-end/41883
16113 * haifa-sched.c (add_to_note_list): Merge into ...
16114 (concat_note_lists): ... here, and ...
16115 (unlink_other_notes, rm_other_notes): Merge into...
16116 (remove_notes): ... here. Create REG_SAVE_NOTEs for
16117 NOTE_INSN_EPILOGUE_BEG.
16119 2010-01-06 Richard Guenther <rguenther@suse.de>
16121 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
16122 not inline regular functions into always-inline functions.
16124 2010-01-06 Nick Clifton <nickc@redhat.com>
16126 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
16127 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
16129 (OVERRIDE_OPTIONS): Delete.
16130 (OPTIMIZATION_OPTIONS): Define.
16131 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
16132 * config/rx/rx.c (rx_handle_option): Issue an error message if
16133 -mcpu=rx200 and -fpu are used together.
16134 (rx_set_optimization_options): New function. Issue an error
16135 message if an optimization attribute attempts to reset the FPU/
16136 math optimization pairing.
16137 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
16138 * config/rx/rx.opt: Set the default to 32-bit doubles.
16139 * config/rx/t-rx: Add multilibs for -nofpu option.
16140 * doc/invoke.texi: Update documentation of RX options.
16142 2010-01-06 Richard Guenther <rguenther@suse.de>
16144 * tree-ssa-pre.c (name_to_id): New global.
16145 (alloc_expression_id): Simplify SSA name handling.
16146 (lookup_expression_id): Likewise.
16147 (init_pre): Zero name_to_id.
16148 (fini_pre): Free it.
16150 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
16152 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
16154 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
16157 * config/i386/sse.md (smaxv2di3): New.
16158 (umaxv2di3): Likewise.
16159 (sminv2di3): Likewise.
16160 (uminv2di3): Likewise.
16162 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
16165 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16166 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16167 (legitimize_tls_address): Likewise.
16168 (sparc_tls_referenced_p): Likewise.
16169 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16170 and adjust calls to legitimize_pic_address.
16171 (legitimate_constant_p) Use sparc_tls_referenced_p.
16172 (legitimate_pic_operand_p): Likewise.
16173 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16174 (sparc_tls_symbol_ref_1): Delete.
16175 (sparc_tls_referenced_p): Make static, recognize specific patterns.
16176 (legitimize_tls_address): Make static, handle CONST patterns.
16177 (legitimize_pic_address): Make static, remove unused parameter and
16178 adjust recursive calls.
16179 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16180 and adjust call to legitimize_pic_address.
16181 (sparc_output_mi_thunk): Likewise.
16183 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
16184 H.J. Lu <hongjiu.lu@intel.com>
16187 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16188 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16189 operands to make them signed.
16192 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16195 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16196 GTU to GT for V4SI and V2DI.
16198 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16199 (umin<mode>3): Removed.
16201 (uminv4si3): Likewise.
16203 2010-01-05 Martin Jambor <mjambor@suse.cz>
16205 PR tree-optimization/42462
16206 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16207 current_function_decl to helper functions and macros.
16209 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16212 * flags.h: Don't include real.h.
16213 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16214 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16215 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16216 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16217 * dominance.c: Update copyright.
16218 * gimple.c (walk_gimple_op): Remove inline.
16219 * tree-ssa-reassoc.c: Include real.h.
16220 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16221 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16223 2010-01-05 Nick Clifton <nickc@redhat.com>
16225 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16226 register to push into the stack frame when the accumulator has to
16227 be saved during interrupts.
16229 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16231 * doc/invoke.texi: Remove the documentation about option
16232 -Wunreachable-code.
16233 * common.opt (Wunreachable-code): Preserved for backward
16235 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16236 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16237 the backward compatibility flag section.
16239 2010-01-05 Richard Guenther <rguenther@suse.de>
16241 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16243 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16246 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16248 PR tree-optimization/42508
16249 * tree-sra.c (convert_callers): Check for recursive call
16250 by comparing cgraph nodes instead of decls.
16251 (modify_function): Call ipa_modify_formal_parameters also
16252 on all same_body aliases.
16254 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16255 cgraph nodes when checking for same_body aliases.
16257 2010-01-05 Richard Guenther <rguenther@suse.de>
16259 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16260 allocation and lookup.
16261 (get_or_alloc_expr_for_constant): Likewise.
16262 (phi_translate): Sink allocation.
16264 2010-01-04 Richard Guenther <rguenther@suse.de>
16266 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16267 a new entry only if needed.
16268 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16269 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16271 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16273 (phi_translate): Handle CONSTANTs early.
16275 2010-01-04 Martin Jambor <mjambor@suse.cz>
16277 PR tree-optimization/42398
16278 * tree-sra.c (struct access): Removed flag grp_different_types.
16279 (dump_access): Do not dump the removed flag.
16280 (sort_and_splice_var_accesses): Do not set the removed flag.
16281 (sra_modify_expr): Check for type compatibility directly.
16283 2010-01-04 Martin Jambor <mjambor@suse.cz>
16285 PR tree-optimization/42366
16286 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16287 edges with variable number of parameters.
16288 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16289 flag instead of asserting it.
16290 (ipa_read_node_info): Read uses_analysis_done flag.
16292 2010-01-04 Richard Guenther <rguenther@suse.de>
16294 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16295 iterative_hash_* as intended.
16296 (vn_reference_compute_hash): Likewise. Simplify hashing
16298 (vn_reference_lookup_2): Likewise.
16299 (vn_nary_op_compute_hash): Likewise.
16300 (vn_phi_compute_hash): Likewise.
16301 (expressions_equal_p): Remove strange code.
16302 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16303 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16304 (bitmap_insert_into_set_1): Take value-id as parameter.
16305 (add_to_value): Pass it.
16306 (bitmap_insert_into_set): Likewise.
16307 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16309 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16312 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16313 (do_self_spec): For switches with SWITCH_IGNORE set set also
16314 SWITCH_IGNORE_PERMANENTLY.
16315 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16318 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16320 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16321 tree of an unreferenced global var.
16323 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16326 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16327 GTU to GT for V4SI and V2DI.
16329 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16330 (umin<mode>3): Removed.
16332 (uminv4si3): Likewise.
16334 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16337 * collect2.c (main): Turn on trace in collect2 if -v is passed
16340 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16342 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16343 description of expression operand.
16345 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16347 * configure.ac: Add install-html to target_list for Make-hooks.
16348 * configure: Regenerate.
16349 * fortran/Make-lang.in (F95_HTMLFILES): New.
16350 (fortran.html): Use it.
16351 (fortran.install-html): New.
16352 * Makefile.in (install-html): Add lang.install-html.
16353 * java/Make-lang.in (JAVA_HTMLFILES): New.
16354 (java.html): Use it.
16355 (java.install-html): New.
16356 * objc/Make-lang.in (objc.install-html): New.
16357 * objcp/Make-lang.in (obj-c++.install-html): New.
16358 * cp/Make-lang.in (c++.install-html): New.
16359 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16360 * lto/Make-lang.in (lto.install-html): New.
16362 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16365 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16367 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16369 PR rtl-optimization/41862
16370 * store-motion.c (store_killed_in_insn, compute_store_table,
16371 remove_reachable_equiv_notes, replace_store_insn,
16372 build_store_vectors): Ignore all DEBUG_INSNs.
16374 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16377 * common.opt: Add dumpdir.
16379 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16381 (option_map): Add --dumpdir.
16383 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16385 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16387 * opts.c (decode_options): Try dump_dir_name first if
16388 dump_base_name isn't an absolute path.
16389 (common_handle_option): Handle OPT_dumpdir.
16391 * toplev.c (dump_dir_name): New.
16392 (print_switch_values): Also ignore -dumpdir.
16394 * toplev.h (dump_dir_name): New.
16396 2010-01-03 Richard Guenther <rguenther@suse.de>
16398 PR tree-optimization/42589
16399 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16400 double-word expansion of bswap32.
16402 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16404 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16405 with BLOCK_FOR_INSN.
16406 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16407 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16408 noce_process_if_block): Likewise.
16409 * gcse.c (compute_local_properties, insert_expr_in_table,
16410 insert_set_in_table, canon_list_insert, find_avail_set,
16411 pre_insert_copy_insn): Likewise.
16413 * basic-block.h (BLOCK_NUM): Move from here...
16414 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16416 2010-01-03 Richard Guenther <rguenther@suse.de>
16418 PR tree-optimization/42438
16419 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16420 contains_may_not_return_call flag.
16421 (BB_MAY_NOTRETURN): New.
16422 (valid_in_sets): Trapping nary operations are not valid
16423 in blocks that may not return.
16424 (insert_into_preds_of_block): Remove check for trapping expressions.
16425 (compute_avail): Compute also BB_MAY_NOTRETURN.
16427 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16429 * doc/invoke.texi: Add 2010 to copyright years.
16431 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16433 * config/sparc/sparc.c: Fix formatting nits.
16435 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16436 Alexander Monakov <amonakov@ispras.ru>
16438 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16440 2010-01-02 Richard Guenther <rguenther@suse.de>
16442 PR middle-end/42577
16443 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16444 (simplify_switch_using_ranges): Mark to be removed edges
16447 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16449 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16451 * collect2.c (scan_libraries): Add missing argument in call to
16454 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16457 * config/alpha/predicates.md (aligned_memory_operand): Return false
16459 (unaligned_memory_operand): Return true for CQImode.
16460 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16461 doesn not cross aligned SImode word boundary.
16463 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16465 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16467 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16468 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16470 2010-01-02 Richard Guenther <rguenther@suse.de>
16473 * toplev.c (compile_file): Emit LTO marker properly. Change
16474 it to __gnu_lto_v1.
16475 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16477 2010-01-01 Richard Guenther <rguenther@suse.de>
16480 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16482 2010-01-01 Richard Guenther <rguenther@suse.de>
16485 * c-decl.c (grokdeclarator): For zero-size arrays force
16486 structural equality checks as layout_type does.
16488 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16490 * builtins.c: Update copyright to 2010.
16492 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16495 * lto-streamer-out.c (produce_asm): Revert the last change.
16496 (copy_function): Likewise.
16498 * lto-streamer.c (lto_get_section_name): Skip any leading
16501 2010-01-01 Richard Guenther <rguenther@suse.de>
16503 PR middle-end/42559
16504 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16508 Copyright (C) 2010 Free Software Foundation, Inc.
16510 Copying and distribution of this file, with or without modification,
16511 are permitted in any medium without royalty provided the copyright
16512 notice and this notice are preserved.