1 2010-06-26 Richard Guenther <rguenther@suse.de>
4 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
5 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
7 2010-06-26 Joseph Myers <joseph@codesourcery.com>
9 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
10 add_infile, alloc_switch): New.
11 (process_command): Remove variable lang_n_infiles. Process
12 options in a single pass. Use new functions for allocating
13 infiles and switches arrays. Properly skip operands of
14 -Xpreprocessor and -Xassembler.
16 2010-06-26 Jan Hubicka <jh@suse.cz>
19 * cgraphunit.c (cgraph_function_versioning): Remove wrong
20 cgraph_make_decl_local call; fix typo copying RTL data.
22 2010-06-25 DJ Delorie <dj@redhat.com>
24 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
25 (m32c_output_aligned_common): Likewise.
26 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
27 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
28 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
29 (m32c_register_pragmas): Register it.
30 * config/m32c/m32c.c (m32c_get_pragma_address): New.
31 (m32c_insert_attributes): Set #pragma address decls volatile.
32 (pragma_entry_eq): New.
33 (pragma_entry_hash): New.
34 (m32c_note_pragma_address): New.
35 (m32c_get_pragma_address): New.
36 (m32c_output_aligned_common): New.
37 * doc/extend.texi: Document the new pragma.
39 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
41 * config/m32c/predicates.md (m32c_any_operand): Check the code
42 instead of memory_operand so as to allow matching volatile MEMs.
43 (m32c_nonimmediate_operand): Likewise.
44 (mra_operand): Allow volatiles.
46 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
49 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
50 address if the offset is unknown.
52 2010-06-25 Douglas B Rupp <rupp@gnat.com>
54 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
55 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
56 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
57 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
58 to ia64_start_function. Invoke it.
59 * config/ia64/ia64.c (ia64_start_function): Call new function
60 dwarf2out_vms_debug_main_pointer.
62 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
64 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
65 statements computing the true predicate.
67 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
69 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
71 (reset_bb_predicate): New.
72 (predicate_bbs): Call reset_bb_predicate.
74 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
76 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
77 (tree_if_conversion): Returns true when something has been changed.
78 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
81 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
83 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
84 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
85 * tree-if-conv.c: Include dbgcnt.h.
86 (tree_if_conversion): Use if_conversion_tree to count the number of
89 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
91 * common.opt (fprefetch-loop-arrays): Re-define
92 -fprefetch-loop-arrays as a tri-state option with the initial
94 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
95 pass only when flag_prefetch_loop_arrays > 0.
96 * toplev.c (process_options): Note that, with tri-states,
97 flag_prefetch_loop_arrays>0 means prefetching is enabled.
98 * config/i386/i386.c (override_options): Enable prefetching at -O3
99 for a set of CPUs that sw prefetching is helpful.
100 (software_prefetching_beneficial_p): New. Return TRUE if software
101 prefetching is beneficial for the given CPU.
103 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
105 PR rtl-optimization/44326
106 * implicit-zee.c (find_removable_zero_extends): Replace
107 INSN_P with NONDEBUG_INSN_P.
109 2010-06-25 Martin Jambor <mjambor@suse.cz>
111 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
112 (struct ipa_node_params): Removed the modification_analysis_done flag.
113 (ipa_is_param_modified): Removed.
114 (ipa_analyze_node): Declare.
115 (ipa_compute_jump_functions): Remove declaration.
116 (ipa_count_arguments): Likewise.
117 (ipa_detect_param_modifications): Likewise.
118 (ipa_analyze_params_uses): Likewise.
119 * ipa-prop.c (struct param_analysis_info): New type.
120 (visit_store_addr_for_mod_analysis): Removed.
121 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
122 moved down in the file.
123 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
124 (ipa_count_arguments): Made static.
125 (mark_modified): New function.
126 (is_parm_modified_before_call): New function.
127 (compute_pass_through_member_ptrs): New parameter parms_info, call
128 is_parm_modified_before_call instead of ipa_is_param_modified.
129 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
130 it to compute_pass_through_member_ptrs.
131 (ipa_compute_jump_functions): New parameter parms_info, pass it to
132 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
133 on the callee if it is analyzed. Made static.
134 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
135 is_parm_modified_before_call instead of ipa_is_param_modified.
136 (ipa_analyze_call_uses): New parameter parms_info, pass it to
137 ipa_analyze_indirect_call_uses.
138 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
139 ipa_analyze_call_uses.
140 (ipa_analyze_params_uses): New parameter parms_info, pass it to
141 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
142 (ipa_analyze_node): New function.
143 (ipa_print_node_params): Do not dump the modified flag.
144 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
145 it. Do not stream the modified parameter flag.
146 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
147 it. Do not stream the modified parameter flag.
148 * ipa-cp.c (ipcp_analyze_node): Removed.
149 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
150 with only a call to ipa_analyze_node.
151 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
152 node with only a call to ipa_analyze_node.
154 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
156 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
158 2010-06-25 Jan Hubicka <jh@suse.cz>
160 * tree-pass.h (pass_split_functions): Declare.
161 * opts.c (decode_options): Enable function splitting at -O2
162 * timevar.def (TV_IPA_FNSPLIT): New macro.
163 * ipa-split.c: New file.
164 * common.opt (-fpartial-inlining): New flag.
165 * Makefile.in (ipa-split.o): New object file.
166 * passes.c (init_optimization_passes): Add ipa-split.
167 * params.def (partial-inlining-entry-probability): New parameters.
168 * doc/invoke.texi (-fpartial-inlining): New.
170 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
173 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
174 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
175 (gimplify_expr): Likewise.
177 2010-06-25 Martin Jambor <mjambor@suse.cz>
179 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
180 statements instead of bailing out on them.
181 (ipa_analyze_indirect_call_uses): Do not require that loads from the
182 parameter are in the same BB as the condition. Update comments.
184 2010-06-25 Jakub Jelinek <jakub@redhat.com>
187 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
188 true or always false, return NULL_TREE.
189 (tree_unswitch_single_loop): Optimize conditions even when reaching
190 max-unswitch-level parameter. If num > 0, optimize first all conditions
191 using entry checks, then do still reachable block discovery and consider
192 only conditions in still reachable basic blocks in the loop.
194 PR tree-optimization/44539
195 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
196 the call doesn't have LHS, but has VDEF.
198 2010-06-25 Joseph Myers <joseph@codesourcery.com>
200 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
201 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
202 * gcc.c (enum add_del, struct modify_target, modify_target):
204 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
205 * system.h (MODIFY_TARGET_NAME): Poison.
207 2010-06-25 Alan Modra <amodra@gmail.com>
209 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
210 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
211 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
212 CMODEL_LARGE as default.
213 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
214 (offsettable_ok_by_alignment): Delete.
215 (rs6000_emit_move): Remove mcmodel=medium optimization.
217 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
219 With large parts from Jim Wilson:
221 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
222 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
223 * optabs.c (optab_for_tree_code): Likewise.
224 (expand_widen_pattern_expr): Likewise.
225 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
226 out of execute_optimize_widening_mul.
227 (convert_plusminus_to_widen): New function.
228 (execute_optimize_widening_mul): Use the two new functions.
229 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
230 Remove code to generate widening multiply-accumulate. Add support
231 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
232 * gimple-pretty-print.c (dump_ternary_rhs): New function.
233 (dump_gimple_assign): Call it when appropriate.
234 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
235 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
236 (expand_gimple_stmt_1): Likewise.
237 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
238 WIDEN_MULT_MINUS_EXPR.
239 * tree-ssa-operands.c (get_expr_operands): Likewise.
240 * tree-inline.c (estimate_operator_cost): Likewise.
241 * gimple.c (extract_ops_from_tree_1): Renamed from
242 extract_ops_from_tree. Add new arg for a third operand; fill it.
243 (gimple_build_assign_stat): Support operations with three operands.
244 (gimple_build_assign_with_ops_stat): Likewise.
245 (gimple_assign_set_rhs_from_tree): Likewise.
246 (gimple_assign_set_rhs_with_ops_1): Renamed from
247 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
248 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
249 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
250 WIDEN_MULT_MINUS_EXPR.
251 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
252 (extract_ops_from_tree_1): Adjust declaration.
253 (gimple_assign_set_rhs_with_ops_1): Likewise.
254 (gimple_build_assign_with_ops): Pass NULL for last operand.
255 (gimple_build_assign_with_ops3): New macro.
256 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
257 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
259 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
260 (verify_gimple_assign): Call it.
261 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
262 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
263 functions for dealing with three-operand statements.
264 * tree.c (commutative_ternary_tree_code): New function.
265 * tree.h (commutative_ternary_tree_code): Declare it.
266 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
268 (gimple_assign_nonzero_warnv_p): Likewise.
269 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
270 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
271 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
272 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
273 (struct hashtable_expr): New member ternary in the union.
274 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
275 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
276 (iterative_hash_hashable_expr): Likewise.
277 (print_expr_hash_elt): Handle EXPR_TERNARY.
278 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
279 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
280 statements. Handle GIMPLE_TERNARY_RHS.
282 2010-06-25 Jan Hubicka <jh@suse.cz>
284 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
286 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
289 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
290 parameters are not good.
291 (c_parser_parameter_declaration): Error unknown type name if the type
292 name can't start declaration specifiers.
294 2010-06-25 Joseph Myers <joseph@codesourcery.com>
296 * gcc.c (translate_options): Don't mention +e in comment.
297 (process_command): Don't handle +e specially.
299 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
301 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
303 * ira-build.c (merge_hard_reg_conflicts): New function.
304 (create_cap_allocno, copy_info_to_removed_store_destinations,
305 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
306 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
307 (remove_unnecessary_allocnos, remove_low_level_allocnos)
308 copy_nifo_to_removed_store_destination): Use them.
309 * ira-lives.c (make_hard_regno_born): New function, split out of
311 (make_allocno_born): Likewise.
312 (make_hard_regno_dead): New function, split out of make_regno_dead.
313 (make_allocno_dead): Likewise.
314 (inc_register_pressure): New function, split out of set_allocno_live.
315 (dec_register_pressure): New function, split out of clear_allocno_live.
316 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
317 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
318 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
319 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
320 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
321 mark_pseudo_regno_live.
322 (process_bb_node_lives): Use mark_pseudo_regno_live,
323 make_hard_regno_born and make_allocno_dead.
324 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
325 set_allocno_live, clear_allocno_live): Delete functions.
327 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
328 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
330 (ira_flattening): Use ira_parent_allocno.
331 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
332 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
334 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
337 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
338 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
339 minmax_set_iter_cond, minmax_set_iter_next,
340 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
341 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
342 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
343 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
346 * ira-int.h (struct live_range, live_range_t): Renamed from struct
347 ira_allocno_live_range and allocno_live_range_t; all uses changed.
348 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
351 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
353 * thumb2.md (thumb2_tlobits_cbranch): Delete.
354 (peephole2 to convert zero_extract/compare of single bit to
355 lshift/compare): New.
357 2010-06-24 Anatoly Sokolov <aesok@post.ru>
359 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
360 recursive call and call to 'int_const_binop'.
361 (build_range_check, fold_cond_expr_with_comparison, unextend,
362 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
363 multiple_of_p): Adjust call to const_binop.
365 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
367 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
368 determine size of XFmode operand.
369 (XFmode extended DFmode push splitter): Ditto.
370 (XFmode extended SFmode push splitter): Ditto.
372 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
375 * config/i386/i386.md (extract_code): New.
376 (<u>divmodqi4): Likewise.
377 (divmodhiqi3): Likewise.
378 (udivmodhiqi3): Likewise.
379 (<u>divqi3): Remvoved.
381 2010-06-24 Jakub Jelinek <jakub@redhat.com>
384 * recog.h (struct recog_data): Add is_asm field.
385 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
386 present in constraints of inline-asm operand and memory operand
387 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
388 (extract_insn): Initialize recog_data.is_asm.
389 * doc/md.texi (Constraints): Document operand side-effect rules.
391 2010-06-24 Andi Kleen <ak@linux.intel.com>
393 * c-parser.c (c_parser_conditional_expression): Call
394 warn_for_omitted_condop.
395 * doc/invoke.texi: Document omitted condop warning.
397 2010-06-24 Nick Clifton<nickc@redhat.com>
399 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
400 insn in the sequence is a jump insn before setting its label.
402 2010-06-24 Alan Modra <amodra@gmail.com>
404 * collect2.c (main): Match exactly --version and --help.
406 2010-06-24 DJ Delorie <dj@redhat.com>
408 * config/m32c/m32c-pragma.c: Don't include rtl.h.
410 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
412 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
413 using X87MODEF mode iterator.
414 (pushsf splitter): Macroize splitter using P mode iterator.
415 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
418 (*movxf_internal): Rename from *movxf_integer.
419 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
420 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
421 (*movdf_internal): Rename from *movdf_integer.
422 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
423 (*movsf_internal): Rename from *movdf_1.
425 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
427 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
428 (const_gimple_seq_node): Removed typedefs.
430 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
431 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
433 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
435 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
436 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
437 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
438 and CODE_FOR_vec_extract_lo_v4df.
440 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
441 Changed to define_insn_and_split.
442 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
443 (vec_extract_lo_v16hi): Likewise.
444 (vec_extract_lo_v32qi): Likewise.
445 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
446 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
448 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
451 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
452 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
453 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
454 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
455 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
458 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
461 * df-core.c (struct df): Rename to df_d.
462 * df.h (struct df): Likewise.
463 * dse.h (struct df): Remove forward declaration.
464 * recog.h (struct insn_data): Rename to:
465 (struct_insn_data_d). Adjusted all users.
467 2010-06-23 Arnaud Charlet <charlet@adacore.com
470 * doc/install.texi: Update requirements to build GNAT.
472 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
474 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
476 (m68k_sched_attr_opx_type): Remove unreachable return.
477 (m68k_sched_attr_opy_type): Likewise.
478 (m68k_sched_attr_size): Likewise.
479 (sched_get_opxy_mem_type): Likewise.
480 (m68k_sched_attr_op_mem): Likewise.
482 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
484 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
485 new statement and adjust VDEF only if necessary. Remove superfluous
486 call to maybe_clean_or_replace_eh_stmt.
487 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
489 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
490 * tree-inline.c (copy_bb): ...and not there.
492 2010-06-22 Cary Coutant <ccoutant@google.com>
494 * dwarf2out.c (is_nested_in_subprogram): New function.
495 (should_move_die_to_comdat): Use it.
496 (copy_ancestor_tree): Don't mark DIEs here.
497 (copy_decls_walk): Start walk from root of newly-added tree;
498 mark DIEs here instead.
500 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
502 * config/i386/i386.md (unit): Also check sseishft1.
504 2010-06-22 Jan Hubicka <jh@suse.cz>
506 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
509 2010-06-22 Jan Hubicka <jh@suse.cz>
511 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
512 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
513 Return true if something changed.
514 * df.h (df_confluence_function_n): Return bool.
515 * df-core.c (df_worklist_propagate_forward,
516 df_worklist_propagate_backward): Track changes and ages.
517 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
519 * dse.c (dse_confluence_n): Return always true.
521 2010-06-22 Jan Hubicka <jh@suse.cz>
523 * bitmap.c (bitmap_clear_bit): Micro optimize.
525 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
527 * config/i386/i386.md (SWI1248x): New mode iterator.
532 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
533 SWI1248x mode iterator.
534 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
535 using SWI124 mode iterator.
536 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
538 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
539 *pushdi2_prologue_rex64 using P mode iterator.
540 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
541 using SWI48 mode iterator.
542 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
543 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
544 using SWI1248x mode iterator.
545 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
546 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
548 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
550 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
551 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
553 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
555 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
556 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
558 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
560 (mov<mode>_insn_1): New expander.
561 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
562 using SWI48x mode iterator.
564 (*movoi_internal_avx): Rename from *movoi_internal.
565 (*movti_internal_rex64): Rename from *movti_rex64.
566 (*movti_internal_sse): Rename from *movti_sse.
567 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
568 (*movdi_internal): Rename from *movdi_2.
569 (*movsi_internal): Rename from *movsi_1.
570 (*movhi_internal): Rename from *movhi_1.
571 (*movqi_internal): Rename from *movqi_1.
573 (insv): Update the call to gen_movsi_insv_1 for rename.
574 * config/i386/i386.c (promote_duplicated_reg): Ditto.
576 2010-06-22 Jan Hubicka <jh@suse.cz>
578 * passes.c (execute_function_todo): Move call of statistics_fini_pass
580 (execute_todo) ... this one.
582 2010-06-22 Alan Modra <amodra@gmail.com>
585 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
586 * caller-save.c (insert_restore, insert_save): Use non-validate
587 form of adjust_address.
589 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
592 * config/pa/pa.c (override_options): Disable
593 -freorder-blocks-and-partition.
595 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
598 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
600 * config/i386/i386.md (type): Add sseishft1
602 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
603 (ppro_insn_load): Likewise.
604 (ppro_insn_store): Likewise.
605 (ppro_insn_both): Likewise.
607 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
608 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
610 (*vec_extractv2di_1_avx): Likewise.
611 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
612 type. Remove atom_unit.
613 (*vec_extractv2di_1_sse2): Likewise.
615 2010-06-21 DJ Delorie <dj@redhat.com>
617 * diagnostic.h (diagnostic_classification_change_t): New.
618 (diagnostic_context): Add history and push/pop list.
619 (diagnostic_push_diagnostics): Declare.
620 (diagnostic_pop_diagnostics): Declare.
621 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
622 from pragmas in a history chain instead of the global table.
623 (diagnostic_push_diagnostics): New.
624 (diagnostic_pop_diagnostics): New.
625 (diagnostic_report_diagnostic): Scan history chain to find state
626 of diagnostics as of the diagnostic location.
627 * opts.c (set_option): Pass UNKNOWN_LOCATION to
628 diagnostic_classify_diagnostic.
629 (enable_warning_as_error): Likewise.
630 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
631 use in the history chain.
632 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
633 allow these pragmas anywhere.
634 * doc/extend.texi: Document pragma GCC diagnostic changes.
636 2010-06-21 Jakub Jelinek <jakub@redhat.com>
638 * dwarf2out.c (add_linkage_name): New function. Don't add
639 anything to DW_TAG_member DIEs.
640 (add_name_and_src_coords_attributes): Use it.
641 (gen_variable_die): Call it for C++ static data members if
642 specification is DW_TAG_member.
644 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
645 C++ char16_t and char32_t.
647 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
648 * genattrtab.c: Include vecprim.h.
649 (cached_attrs, cached_attr_count, attrs_seen_once,
650 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
651 attrs_cached_after): New variables.
652 (find_attrs_to_cache): New function.
653 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
654 (write_test_expr): Add attrs_cached argument, return it too,
655 attempt to cache non-const attributes used more than once in
656 a single case handling.
657 (write_attr_get): Use find_attrs_to_cache, for caching candidates
658 emit cached_* variables. Adjust write_attr_set callers.
659 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
660 to find attributes that should be cached in this block. Adjust
661 write_test_expr callers.
662 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
664 (make_automaton_attrs): Adjust write_test_expr caller.
666 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
667 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
668 (make_automaton_attrs): If find_tune_attr returns non-NULL,
669 write separate internal_dfa_insn_code_* and insn_default_latency_*
670 functions for each attribute's value and emit init_sched_attrs
671 function and function pointers.
672 * genattr.c (const_attrs, reservations): New variables.
673 (gen_attr): Add const attributes to const_attrs vector.
674 (check_tune_attr, find_tune_attr): New functions.
675 (main): Add reservations to reservations vector. If find_tune_attr
676 returns true, add prototype for init_sched_attrs and make
677 internal_dfa_insn_code and insn_default_latency function pointers,
678 otherwise define init_sched_attrs as dummy macro.
679 * cfgexpand.c: Include insn-attr.h.
680 (gimple_expand_cfg): Call init_sched_attrs.
682 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
685 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
686 va_arg from a set of register save slots into a temporary,
687 if the container is bigger than type size, do the copying
688 using smaller mode or using memcpy.
691 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
693 (sel_print_to_dot): Remove macro.
694 (sel_print): Likewise. New prototype.
695 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
696 (sel_print): New function.
698 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
700 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
701 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
703 2010-06-21 Nick Clifton <nickc@redhat.com>
705 * config/rx/rx.h (PTRDIFF_TYPE): Define.
706 (SMALL_REGISTER_CLASS): Define (to zero).
707 (PRINT_OPERAND): Delete.
708 (PRINT_OPERAND_ADDRESS): Delete.
709 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
710 (rx_print_operand_address): Delete prototype.
711 * config/rx/rx.c (rx_print_operand): Make static.
712 Allow %H and %L to handle CONST_DOUBLEs.
713 (rx_print_operand_address): Make static.
714 (rx_gen_move_template): Rename local variable 'template' to
716 (rx_function_arg): Do not pass unknown sized objects in registers.
717 (TARGET_PRINT_OPERAND): Define.
718 (TARGET_PRINT_OPERAND_ADDRESS): Define.
720 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
724 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
726 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
727 stack-alignment for simple leaf-functions.
729 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
731 * doc/install.texi: Document bootstrap-lto.
733 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
736 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
737 (input_function): Drop them here, if VTA is disabled.
739 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
742 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
744 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
745 ix86_swapped_fp_comparsion_operator instead of
746 ix86_fp_comparison_operator.
748 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
749 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
750 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
751 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
752 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
753 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
755 2010-06-20 Joseph Myers <joseph@codesourcery.com>
758 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
759 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
760 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
761 (decode_cmdline_option): Update for this return value. Set
762 orig_option_with_args_text field. Set arg field for unknown
763 options. Make static.
764 (decode_cmdline_options_to_array): New.
765 (prune_options): Update handling of find_opt return value.
766 * opts.c (read_cmdline_option): Take decoded option. Return void.
767 (read_cmdline_options): Take decoded options.
768 (decode_options): Add parameters for decoded options. Use
769 decode_cmdline_options_to_array. Use decoded options for -O
770 scan. Use integral_argument for -O parameters. Update call to
771 read_cmdline_options.
772 (enable_warning_as_error): Update handling of find_opt return value.
773 * opts.h: Update comment on unknown options.
774 (struct cl_decoded_option): Update comments on opt_index and arg.
775 Add orig_option_with_args_text.
776 (decode_cmdline_option): Remove.
777 (decode_cmdline_options_to_array): Declare.
778 (decode_options): Update prototype.
779 * toplev.c (save_argv): Remove.
780 (save_decoded_options, save_decoded_options_count): New.
781 (read_integral_parameter): Remove.
782 (print_switch_values): Use decoded options.
783 (toplev_main): Don't set save_argv. Update call to decode_options.
784 * toplev.h (read_integral_parameter): Remove.
785 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
787 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
790 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
792 * constraints.md (Pw, Px): New constraints.
793 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
795 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
797 * config/i386/sse.md (fma4modesuffixf4): Removed.
798 (ssemodesuffixf2s): Likewise.
799 (ssemodesuffixf4): Likewise.
800 (ssemodesuffixf2c): Likewise.
801 (ssescalarmodesuffix2s): Likewise.
802 (avxmodesuffixf2c): Likewise.
803 (ssemodesuffix): New.
804 (ssescalarmodesuffix): Likewise.
805 Update patterns with ssemodesuffix and ssescalarmodesuffix.
807 2010-06-19 Philip Herron <herron.philip@googlemail.com>
809 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
811 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
813 * stor-layout.c (debug_rli): Remove unused local variables.
815 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
817 PR rtl-optimization/40900
818 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
819 original expression for later reuse.
820 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
821 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
823 2010-06-18 Anatoly Sokolov <aesok@post.ru>
825 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
826 double_int_fits_in_uhwi_p): Implement as static inline.
827 (double_int_xor): New inline function.
828 (double_int_lrotate, double_int_rrotate, double_int_max,
829 double_int_umax, double_int_smax, double_int_min, double_int_umin,
830 double_int_smin): Declare.
831 (lrotate_double, rrotate_double): Remove declaration.
832 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
833 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
834 (double_int_lrotate, double_int_rrotate, double_int_max,
835 double_int_umax, double_int_smax, double_int_min, double_int_umin,
836 double_int_smin): New function.
837 * fold-const.c (int_const_binop): Clean up, use double_int_*
839 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
840 double_int_* and immed_double_int_const functions.
842 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
844 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
845 * function.c (types_used_by_cur_var_decl): Likewise.
846 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
848 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
850 * tree.h (record_layout_info): Change type of pending_statics field
852 * stor-layout.c (start_record_layout): Store NULL into
854 (debug_rli): Call debug_vec_tree instead of debug_tree.
855 (place_field): Likewise.
856 (finish_record_layout): Likewise.
858 2010-06-18 Alan Modra <amodra@gmail.com>
860 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
862 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
865 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
866 for SET source operand from SET destination operand.
868 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
870 PR rtl-optimization/39871
871 * reload1.c (init_eliminable_invariants): For flag_pic, disable
872 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
873 (function_invariant_p): Rule out a plus of frame or arg pointer with
875 * ira.c (find_reg_equiv_invariant_const): Likewise.
877 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
879 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
880 print_operand_address and puts to output the operand for CONST.
882 2010-06-17 Jakub Jelinek <jakub@redhat.com>
885 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
888 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
890 * v850-protos.h (print_operand): Delete.
891 (print_operand_address): Delete.
892 * v850.h (PRINT_OPERAND): Delete.
893 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
894 (PRINT_OPERAND_ADDRESS): Delete.
895 * v850.c (print_operand_address): Rename to...
896 (v850_print_operand_address): ...this. Make static. Call
898 (print_operand): Rename to...
899 (v850_print_operand): ...this. Make static. Call
900 v850_print_operand_address.
901 (v850_print_operand_punct_valid_p): New function.
902 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
903 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
905 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
907 * config/sh/sh-protos.h (print_operand): Delete.
908 (print_operand_address): Delete.
909 * config/sh/sh.h (PRINT_OPERAND): Delete.
910 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
911 (PRINT_OPERAND_ADDRESS): Delete.
912 * config/sh/sh.c (sh_print_operand_address): Make static.
913 (sh_print_operand): Make static. Call sh_print_operand_address
914 and sh_print_operand.
915 (sh_print_operand_punct_valid_p): New function.
916 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
917 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
919 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
921 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
922 (mcore_print_operand_address): Delete.
923 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
924 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
925 (PRINT_OPERAND_ADDRESS): Delete.
926 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
927 (mcore_print_operand): Make static.
928 (mcore_print_operand_punct_valid_p): New function.
929 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
930 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
932 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
934 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
935 (print_operand_address): Delete.
936 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
937 (PRINT_OPERAND_ADDRESS): Delete.
938 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
940 (m68hc11_print_operand): Make static.
941 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
943 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
945 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
946 (m32r_print_operand_address): Delete.
947 * config/m32r/m32r.h (m32r_punct_chars): Delete.
948 (PRINT_OPERAND): Delete.
949 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
950 (PRINT_OPERAND_ADDRESS): Delete.
951 * config/m32r/m32r.c (m32r_punct_chars): Make static.
952 (m32r_print_operand_address): Make static.
953 (m32r_print_operand): Make static.
954 (m32r_print_operand_punct_valid_p): New function.
955 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
956 (TARGET_PRINT_OPERAND_ADDRESS): Define.
958 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
960 * config/iq2000/iq2000-protos.h (print_operand): Delete.
961 (print_operand_address): Delete.
962 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
963 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
964 (PRINT_OPERAND_ADDRESS): Delete.
965 (iq2000_print_operand_punct): Delete.
966 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
967 (iq2000_print_operand_address): Make static.
968 (iq2000_print_operand): Make static.
969 (iq2000_print_operand_punct_valid_p): New function.
970 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
971 (TARGET_PRINT_OPERAND_ADDRESS): Define.
973 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
975 * config/frv/frv-protos.h (frv_print_operand): Delete.
976 (frv_print_operand_address): Delete.
977 * config/frv/frv.h (PRINT_OPERAND): Delete.
978 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
979 (PRINT_OPERAND_ADDRESS): Delete.
980 * config/frv/frv.c (frv_print_operand_address): Make static.
981 (frv_print_operand): Make static.
982 (frv_print_operand_punct_valid_p): New function.
983 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
984 (TARGET_PRINT_OPERAND_ADDRESS): Define.
986 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
988 * tree.h (vec_member): Declare.
989 * tree.c (vec_member): Define.
991 2010-06-17 Richard Guenther <rguenther@suse.de>
993 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
994 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
996 2010-06-17 Richard Guenther <rguenther@suse.de>
998 * tree-inline.c (declare_return_variable): Remove bogus code.
1000 2010-06-17 Richard Guenther <rguenther@suse.de>
1002 * gimplify.c (gimplify_bind_expr): Always promote complex
1003 and vector variables to registers if possible.
1005 2010-06-17 Richard Guenther <rguenther@suse.de>
1007 * expr.c (get_inner_reference): Use double_int for bit_offset
1010 2010-06-16 DJ Delorie <dj@redhat.com>
1012 * common.opt (-fstrict-volatile-bitfields): new.
1013 * doc/invoke.texi: Document it.
1014 * fold-const.c (optimize_bit_field_compare): For volatile
1015 bitfields, use the field's type to determine the mode, not the
1017 * expr.c (expand_assignment): Likewise.
1018 (get_inner_reference): Likewise.
1019 (expand_expr_real_1): Likewise.
1020 * expmed.c (store_fixed_bit_field): Likewise.
1021 (extract_bit_field_1): Likewise.
1022 (extract_fixed_bit_field): Likewise.
1024 2010-06-16 Richard Guenther <rguenther@suse.de>
1026 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1028 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1030 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1031 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1032 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1033 * debug.c: Likewise.
1034 * sdbout.c: Likewise.
1035 * vmsdbgout.c: Likewise.
1036 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1037 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1038 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1039 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1040 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1041 * dwarf2out.c (dw_fde_struct): New fields
1042 dw_fde_vms_{end,begin}_prologue.
1043 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1044 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1045 (dwarf2out_vms_end_prologue): New function.
1046 (dwarf2out_vms_begin_epilogue): New function.
1047 (dw_val_struct): New value dw_val_class_vms_delta.
1048 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1049 begin_epilogue for VMS.
1050 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1051 new static functions.
1052 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1053 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1055 (print_die): New case dw_val_class_vms_delta.
1056 (attr_checksum): Likewise.
1057 (same_dw_val_p: Likewise.
1058 (size_of_die): Likewise.
1059 (value_format): Likewise.
1060 (output_die): Likewise.
1061 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1062 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1063 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1064 dwarf2out_cfi_begin_epilogue
1065 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1067 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1069 * config/cris/cris-protos.h (cris_print_operand): Delete.
1070 (cris_print_operand_address): Delete.
1071 * config/cris/cris.h (PRINT_OPERAND): Delete.
1072 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1073 (PRINT_OPERAND_ADDRESS): Delete.
1074 * config/cris/cris.c (cris_print_operand_address): Make static.
1075 (cris_print_operand): Make static.
1076 (cris_print_operand_punct_valid_p): New function.
1077 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1078 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1080 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1082 * config/arm/arm-protos.h (arm_print_operand): Delete.
1083 (arm_print_operand_address): Delete.
1084 * config/arm/arm.h (PRINT_OPERAND): Delete.
1085 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1086 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1087 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1088 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1089 (arm_print_operand): Make static.
1090 (arm_print_operand_punct_valid_p): New function.
1091 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1092 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1094 2010-06-16 Nick Clifton <nickc@redhat.com>
1096 * config/rx/constraints.md (NEGint4): New constraint.
1097 * config/rx/rx.md (attr cc): Add set_zsc.
1098 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1101 (call_internal): Clobber the cc0 register.
1102 (call_value_internal): Likewise.
1103 (cstoresi4): Likewise.
1104 (movsieq): Likewise.
1105 (movsine): Likewise.
1106 (addsi3): Add alternative to handle small negative constants.
1108 (addsi3): Do not set the O bit in the cc0 register.
1112 (andsi3): Reorder alternatives to prefer shorter forms.
1115 (negsi2): Note that the cc0 flags are set.
1116 (rotlsi3): Note that only the Z and S bits are set in cc0.
1117 (lshrsi3): Likewise.
1118 (ashlsi3): Likewise.
1119 (subsf3): Use %Q for the MEM operand.
1120 (fix_truncsfsi2): Likewise.
1121 (floatsisf2): Likewise.
1122 (bitset): Remove early clobber from destination.
1123 (bitset_in_memory): Likewise.
1124 (lrintsf2): Clobber the cc0 register.
1125 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1126 (rx_print_operand): Handle %N.
1128 2010-06-16 Jan Hubicka <jh@suse.cz>
1130 * df-core.c (df_compact_blocks): Free problem_temps vector.
1132 2010-06-16 Martin Jambor <mjambor@suse.cz>
1134 PR tree-optimization/43905
1135 * tree-sra.c: Include tree-inline.h.
1136 (create_abstract_origin): Removed.
1137 (modify_function): Version the call graph node instead of creating
1138 abstract origins and dealing with same_body aliases.
1139 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1140 function is versionable.
1141 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1143 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1145 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1146 (CHOOSE_DYNAMIC_LINKER): Update.
1148 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1150 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1151 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1152 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1153 *prefetch_3dnow_rex.
1155 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1157 * target.h (struct asm_out):Add declare_constant_name field.
1158 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1159 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1160 * output.h (default_asm_declare_constant_name): Declare.
1161 (assemble_label): Update prototype.
1162 * varasm.c (assemble_constant_contents): Use
1163 targetm.asm_out.declare_constant_name target hook.
1164 (assemble_label): Add 'file' argument.
1165 (default_asm_declare_constant_name): New function.
1166 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1167 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1168 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1170 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1171 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1172 (machopic_output_indirection): Update assemble_label argument list.
1173 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1174 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1176 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1179 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1180 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1182 2010-06-15 Richard Guenther <rguenther@suse.de>
1184 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1186 2010-06-15 Paul Brook <paul@codesourcery.com>
1188 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1191 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1193 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1194 don't get a vector type for output.
1196 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1199 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1200 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1201 (LANG_HOOKS_DECLS): Add it.
1202 * gimplify.c (omp_notice_variable): Call
1203 lang_hooks.decls.omp_report_decl.
1205 2010-06-15 Martin Jambor <mjambor@suse.cz>
1208 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1209 on the newly dead SSA name.
1211 2010-06-15 Alan Modra <amodra@gmail.com>
1213 * doc/invoke.texi: Add mcmodel to powerpc options.
1214 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1215 * configure: Regenerate.
1216 * config.in: Regenerate.
1217 * config/rs6000/linux64.opt (mcmodel): New.
1218 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1219 (TARGET_CMODEL, SET_CMODEL): Define.
1220 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1221 select CMODEL_MEDIUM default.
1222 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1223 (TARGET_CMODEL): Define default.
1224 * config/rs6000/rs6000.c (cmodel): New variable.
1225 (rs6000_explicit_options): Add cmodel field.
1226 (rs6000_handle_option): Handle -mcmodel.
1227 (create_TOC_reference): Add largetoc_reg param. Generate high,
1228 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1229 (rs6000_delegitimize_address): Recognise new toc reference rtl
1230 and minimal-toc rtl.
1231 (rs6000_legitimize_reload_address): Handle new toc references.
1232 (print_operand_address): Handle legitimate_constant_pool_address_p
1233 match before lo_sum.
1234 (rs6000_eliminate_indexed_memrefs): Tidy.
1235 (rs6000_emit_move): Tweak threshold for inlining constants.
1236 Keep rs6000_emit_allocate_stack large stack frame offsets
1237 loaded into r0 inline.
1238 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1239 (tocrel_base, tocrel_offset): New variables.
1240 (toc_relative_expr_p): Set them here.
1241 (print_operand_address): Skip over any offset on constant pool address.
1242 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1243 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1244 (offsettable_ok_by_alignment): New function.
1245 (rs6000_emit_move): Address suitably aligned local symbol_refs
1246 relative to the toc pointer for -mcmodel=medium.
1247 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1248 strict param. Allow lo_sum version of addressing. Verify reg
1249 used for -mminimal-toc and -mcmodel != small. Update all callers.
1250 * config/rs6000/constraints.md: Update for above change.
1251 * config/rs6000/predicates.md: Likewise.
1252 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1254 (tls_gd): Split for -mcmodel=medium/large.
1255 (tls_gd_high, tls_gd_low): New.
1256 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1257 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1258 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1259 (largetoc_high, largetoc_low): New.
1260 (cmptf_internal2): Add clobber.
1261 * config/rs6000/rs6000-protos.h: Update.
1263 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1265 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1266 true if no prefetch is going to be generated for a given group.
1267 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1268 estimate the prefetch_count.
1269 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1270 prefetch count by considering the unroll_factor and prefetch_mod
1271 for is_loop_prefetching_profitable.
1273 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1275 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1276 anything if the argument is not a MEM.
1278 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1283 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1285 (canonicalize_loop_ivs): Likewise.
1287 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1290 * haifa-sched.c (setup_insn_reg_pressure_info,
1291 update_register_pressure): Reject debug insns.
1292 (ready_sort): Don't setup reg pressure for debug insns.
1293 (schedule_insn): Don't update reg pressure for debug insns.
1295 2010-06-14 Richard Guenther <rguenther@suse.de>
1297 * lto-streamer.c (cached_bp): Remove.
1298 (bitpack_delete): Likewise.
1299 (bitpack_create): Likewise.
1300 (bp_get_next_word): Likewise.
1301 (bp_pack_value, bp_unpack_value): Move ...
1302 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1304 (struct bitpack_d): Likewise.
1305 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1306 New inline functions.
1307 * lto-streamer-out.c (lto_output_bitpack): Remove.
1308 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1309 (pack_value_fields): Adjust.
1310 (lto_write_tree): Likewise.
1311 (output_gimple_stmt): Likewise.
1312 (output_function): Likewise.
1313 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1314 (input_function): Likewise.
1315 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1316 (lto_input_bitpack): Remove.
1317 (lto_materialize_tree): Adjust.
1318 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1319 * lto-cgraph.c (lto_output_edge): Adjust.
1320 (lto_output_node): Likewise.
1321 (lto_output_varpool_node): Likewise.
1322 (lto_output_ref): Likewise.
1323 (input_node): Likewise.
1324 (input_varpool_node): Likewise.
1325 (input_ref): Likewise.
1326 (input_edge): Likewise.
1327 (output_node_opt_summary): Likewise.
1328 (input_node_opt_summary): Likewise.
1329 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1330 (pure_const_read_summary): Likewise.
1331 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1332 (ipa_read_indirect_edge_info): Likewise.
1333 (ipa_write_node_info): Likewise.
1334 (ipa_read_node_info): Likewise.
1336 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1339 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1340 (vec_extract_lo_v16hi): Likewise.
1341 (vec_extract_lo_v32qi): Likewise.
1343 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1346 * tree.h (build_call_expr): Don't define as vararg macro, instead
1348 * builtins.c (build_call_nofold): Remove.
1349 (expand_builtin_int_roundingfn, expand_builtin_pow,
1350 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1351 expand_builtin_memset_args, expand_builtin_strcmp,
1352 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1353 build_call_nofold_loc instead of build_call_nofold.
1354 (build_call_expr): New function.
1356 PR tree-optimization/44508
1357 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1358 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1359 don't eliminate trivially dead stmts.
1360 * tree-vrp.c (vrp_finalize): Pass false as last argument
1361 to substitute_and_fold.
1362 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1363 to substitute_and_fold.
1364 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1367 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1368 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1369 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1370 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1371 ggc_strdup instead of xstrdup.
1373 2010-06-14 Ira Rosen <irar@il.ibm.com>
1375 PR tree-optimization/44507
1376 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1377 to build initial vector for BIT_AND_EXPR.
1378 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1380 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1382 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1383 adjust z10prop set_attr.
1385 2010-06-13 Jan Hubicka <jh@suse.cz>
1387 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1388 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1389 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1390 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1391 datastructure checks into checking asserts.
1392 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1393 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1394 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1395 df_ref_create_structure): Likewise.
1396 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1397 pool_free): Use gcc_checking_assert.
1398 * alias.c (get_alias_set): Likewise.
1399 * var-tracking.c (variable_htab_free, shared_hash_copy,
1400 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1401 * lto-streamer.c (bp_unpack_value): Likewise.
1403 2010-06-13 Richard Guenther <rguenther@suse.de>
1405 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1406 Do not stream but initialize TYPE_CANONICAL to NULL.
1407 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1408 * gimple.c (gimple_types_compatible_p): Disregard
1409 TYPE_STRUCTURAL_EQUALITY_P.
1410 (gimple_register_type): Use TYPE_CANONICAL as cache.
1411 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1412 before registering common types.
1413 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1414 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1415 * tree.h (TYPE_CANONICAL): Clarify documentation.
1417 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1419 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1420 LIBCALL_VALUE): Remove macros.
1421 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1422 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1423 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1424 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1425 (ia64_function_value): Make static. Handle receiving the function
1426 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1428 2010-06-12 Jan Hubicka <jh@suse.cz>
1430 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1433 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1435 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1437 2010-06-12 Jan Hubicka <jh@suse.cz>
1439 * df-core.c (df_clear_bb_info): New function.
1440 (df_set_blocks): bb_info is always allocated.
1441 (df_get_bb_info): Use block_info_elt_size.
1442 (df_set_bb_info): Likewise.
1443 (df_compact_blocks): Update for new block_info.
1444 (grow_bb_info): New function.
1445 * df-problems.c (df_grow_bb_info): Move to df-core.c
1446 (df_rd_set_bb_info): Remove.
1447 (df_rd_free_bb_info): Do not free block pool.
1448 (df_rd_alloc): Do not create pool, use check for
1449 obstack presence instead of NULL pointer for new blocks.
1450 (df_rd_free): DO not free alloc pool; clear block_info.
1451 (problem_RD): Add size of block info structure.
1452 (df_lr_set_bb_info): Remove.
1453 (df_lr_free_bb_info): Do not free block pool.
1454 (df_lr_alloc): Do not create pool, use check for
1455 obstack presence instead of NULL pointer for new blocks.
1456 (df_lr_free): DO not free alloc pool; clear block_info.
1457 (problem_LR): Add size of block info structure.
1458 (df_live_set_bb_info): Remove.
1459 (df_live_free_bb_info): Do not free block pool.
1460 (df_live_alloc): Do not create pool, use check for
1461 obstack presence instead of NULL pointer for new blocks.
1462 (df_live_free): DO not free alloc pool; clear block_info.
1463 (problem_LIVE): Add size of block info structure.
1464 (problem_CHAIN): Add size of block info structure.
1465 (df_byte_lr_set_bb_info): Remove.
1466 (df_byte_lr_free_bb_info): Do not free block pool.
1467 (df_byte_lr_alloc): Do not create pool, use check for
1468 obstack presence instead of NULL pointer for new blocks.
1469 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1470 (problem_BYTE_LR): Add size of block info structure.
1471 (problem_NOTE): Add size of block info structure.
1472 (df_byte_MD_set_bb_info): Remove.
1473 (df_byte_MD_free_bb_info): Do not free block pool.
1474 (df_byte_MD_alloc): Do not create pool, use check for
1475 obstack presence instead of NULL pointer for new blocks.
1476 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1477 (problem_BD): Add size of block info structure.
1478 * df-scan.c (df_scan_free_internal): Free block pool.
1479 (df_scan_set_bb_info): Remove.
1480 (df_scan_free_bb_info): Check for artificial_defs instead
1481 of bb_info being non-NULL.
1482 (df_scan_alloc): DO not create df_scan_block pool.
1483 (problem_SCAN): Set size of block info.
1484 (df_bb_refs_record): Do not allocate bb_info.
1485 * df.h (df_problem): Add block_info_elt_size.
1486 (struct dataflow): Change block_info to void *.
1487 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1488 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1491 2010-06-12 Jan Hubicka <jh@suse.cz>
1493 PR tree-optimize/44485
1494 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1495 containing use of return value of noreturn function.
1497 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1499 * targhooks.c (default_function_value): Don't use
1500 FUNCTION_OUTGOING_VALUE.
1501 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1502 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1504 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1506 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1507 Add crtfastmath.o to extra_parts.
1508 * config/mips/crtfastmath.c: New.
1509 * config/mips/linux.h (ENDFILE_SPEC): New.
1511 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1513 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1514 old_type in parameter.
1515 (gcc_type_for_value): Update call to gcc_type_for_interval.
1516 (compute_type_for_level_1): Renamed compute_type_for_level.
1517 Update call to gcc_type_for_interval.
1519 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1521 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1522 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1524 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1526 * opts-common.c: Include options.h.
1527 (integral_argument): Move from opts.c.
1528 (decode_cmdline_option): New. Based on read_cmdline_option.
1529 * opts.c (integral_argument): Move to opts-common.c.
1530 (read_cmdline_option): Move most contents to
1531 decode_cmdline_option. Use %qs in diagnostics.
1532 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1533 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1534 decode_cmdline_option): New.
1536 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1539 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1540 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1541 (partiysi2_cmp): Ditto.
1542 (*partiyhi2_cmp): Ditto.
1543 (*parityqi2_cmp): Remove.
1545 2010-06-11 Jan Hubicka <jh@suse.cz>
1547 * bitmap.h (bmp_iter_next_bit): New.
1548 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1550 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1551 Eric Botcazou <ebotcazou@adacore.com>
1553 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1556 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1558 * config/i386/i386.md (unspec): New define_c_enum.
1561 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1563 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1564 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1565 (lazy_hex_fp_value): New function.
1566 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1567 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1569 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1572 * tree-if-conv.c (bb_predicate_s): New struct.
1573 (bb_predicate_p): New.
1574 (bb_has_predicate): New.
1575 (bb_predicate): New.
1576 (set_bb_predicate): New.
1577 (bb_predicate_gimplified_stmts): New.
1578 (set_bb_predicate_gimplified_stmts): New.
1579 (add_bb_predicate_gimplified_stmts): New.
1580 (init_bb_predicate): New.
1581 (free_bb_predicate): New.
1582 (is_predicated): Use bb_predicate.
1583 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1584 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1585 before processing their successors.
1586 (clean_predicate_lists): Removed.
1587 (find_phi_replacement_condition): Use bb_predicate.
1588 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1590 (insert_gimplified_predicates): New.
1591 (combine_blocks): Call insert_gimplified_predicates.
1592 (tree_if_conversion): Call free_bb_predicate instead of
1593 clean_predicate_lists.
1595 2010-10-11 Paul Brook <paul@codesourcery.com>
1597 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1598 * config/arm/arm.c (all_architectures): Change v7e-m default to
1600 * config/arm/arm-cores.def: Add cortex-m4.
1601 * config/arm/arm-tune.md: Regenerate.
1603 2010-06-11 Jan Hubicka <jh@suse.cz>
1605 * ipa-pure-const.c (special_builtlin_state): New function.
1606 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1607 (propagate_pure_const): Use it.
1609 2010-06-11 Jan Hubicka <jh@suse.cz>
1611 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1612 (df_live_alloc): Initialize df_live_scratch when initializing
1614 (df_live_transfer_function): Update uses of df_live_scratch.
1615 (df_live_free): Free problem_data; clear df_live_scratch before
1616 releasing the obstack.
1617 (df_md_free): Free problem data.
1619 2010-06-11 Jan Hubicka <jh@suse.cz>
1621 * doc/invoke.texi (Wsuggest-attribute): Document.
1622 (Wmissing-noreturn): Remove.
1623 * ipa-pure-const.c (warn_function_noreturn): New function.
1624 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1625 warn_missing_noreturn.
1626 * common.opt (Wsuggest-attribute=noreturn): New.
1627 * tree-flow.h (warn_function_noreturn): Declare.
1628 * tree-cfg.c (execute_warn_function_noreturn): Use
1629 warn_function_noreturn.
1630 (gate_warn_function_noreturn): New.
1631 (pass_warn_function_noreturn): Update.
1633 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1635 * c-typeck.c (handle_warn_cast_qual): Add loc
1636 parameter. Improve warning message.
1637 (build_c_cast): Pass location to handle_warn_cast_qual.
1639 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1641 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1642 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1644 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1646 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1648 Fix bootstap on mips
1649 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1652 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1654 * system.h (helper_const_non_const_cast): New inline for
1656 (CONST_CAST2): For gcc version <= 4.0 use
1657 new helper to do const/non-const casting.
1659 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1661 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1662 * Makefile.in (OBJS-common): Include insn-enums.o.
1663 (insn-enums.o): New rule.
1664 (simple_generated_c): Add insn-enums.c.
1665 (build/genenums.o): New rule.
1666 (genprogmd): Add "enums".
1667 * genconstants.c (print_enum_type): Declare a C string array
1669 * genenums.c: New file.
1670 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1671 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1672 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1674 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1676 * doc/md.texi (define_enum_attr): Document.
1677 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1678 * read-md.h (lookup_enum_type): Declare.
1679 * read-md.c (lookup_enum_type): New function.
1680 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1681 * genattrtab.c (attr_desc): Add an enum_name field.
1682 (evaluate_eq_attr): Take the associated attribute as argument.
1683 Get the enum prefix from the enum_name field, if defined.
1684 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1685 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1686 (add_attr_value): New function, split out from...
1687 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1688 (write_test_expr): Pass attr to evaluate_eq_attr.
1689 (write_attr_get): Use the enum_name as the enum tag, if defined.
1690 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1691 (find_attr): Initialize enum_name.
1692 (main): Handle DEFINE_ENUM_ATTR.
1693 * gensupport.c (process_rtx): Likewise.
1694 * config/mips/mips.h (mips_tune_attr): Delete.
1695 * config/mips/mips.md (cpu): Use define_attr_enum.
1697 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1699 * doc/md.texi (define_c_enum, define_enum): Document.
1700 * read-md.h (md_constant): Add a parent_enum field.
1701 (enum_value, enum_type): New structures.
1702 (upcase_string, traverse_enum_types): Declare.
1703 * read-md.c (enum_types): New variable.
1704 (upcase_string, add_constant): New functions.
1705 (handle_constants): Don't create the hash table here.
1707 (traverse_md_constants): Don't check for a null md_constants.
1708 (decimal_string, handle_enum, traverse_enum_types): New functions.
1709 (read_md_files): Initialize md_constants and md_enums.
1710 * genconstants.c (print_md_constant): Ignore info argument.
1711 Only print constants that belong to no enum.
1712 (print_enum_type): New function.
1713 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1714 for each defined enum type.
1715 * config/mips/mips.md (processor): New define_enum.
1716 (unspec): New define_c_enum.
1717 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1718 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1719 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1720 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1721 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1722 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1723 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1724 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1725 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1726 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1727 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1728 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1729 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1730 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1731 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1732 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1733 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1734 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1735 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1736 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1737 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1738 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1739 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1740 (UNSPEC_RDDSP): Move to mips-dsp.md.
1741 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1742 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1743 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1744 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1745 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1746 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1747 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1748 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1749 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1750 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1751 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1752 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1753 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1754 Moved to mips-dspr2.md.
1755 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1756 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1757 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1758 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1759 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1760 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1761 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1762 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1763 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1764 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1765 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1766 UNSPEC_LOONGSON_PSADBH)
1767 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1768 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1769 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1770 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1771 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1772 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1773 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1774 (cpu): Update comment.
1775 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1776 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1777 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1778 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1779 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1780 UNSPEC_LOONGSON_PCMPEQ)
1781 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1782 UNSPEC_LOONGSON_PINSR_0)
1783 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1784 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1785 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1786 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1787 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1788 UNSPEC_LOONGSON_PSADBH)
1789 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1790 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1791 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1792 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1793 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1794 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1795 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1796 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1797 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1798 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1799 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1800 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1801 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1802 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1803 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1804 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1805 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1806 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1807 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1808 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1809 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1810 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1811 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1812 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1813 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1814 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1815 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1816 (UNSPEC_RDDSP): Moved from mips.md.
1817 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1818 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1819 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1820 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1821 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1822 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1823 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1824 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1825 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1826 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1827 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1828 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1829 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1830 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1831 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1832 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1833 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1834 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1835 (UNSPEC_SCC): Moved from mips.md.
1836 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1837 "processor_type" to "processor".
1838 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1839 * config/mips/mips.h (processor_type): Delete.
1840 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1841 "processor_type" to "processor".
1843 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1845 * configure.ac (tm_include_list): Add insn-constants.h.
1846 * configure: Regenerate.
1847 * Makefile.in (GTM_H): Move insn-constants.h here from...
1849 * mkconfig.sh: Remove special handling for insn-constants.h.
1851 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1853 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1854 (BUILD_MD): ...this new variable.
1855 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1856 that include the old contents of simple_generated_h and
1858 (simple_generated_h, simple_generated_c): Include them. Add
1860 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1861 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1862 Remove these dependencies from the main rule and include
1863 insn-conditions.md in the command line only if it appears
1864 in the dependency list.
1865 (insn-constants.h, s-constants): Delete.
1866 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1868 (build/genmddeps.o): Likewise.
1869 (genprogrtl): New variable that contains everything from genprogmd
1870 except mddeps and constants.
1871 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1872 depend on $(BUILD_MD)
1873 (genprog): New variable. Make these programs depend on
1875 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1876 (main): Use read_md_files instead of init_rtx_reader_args.
1877 * genconstants.c: As for genmddeps.c.
1878 * read-md.h (read_skip_construct): Declare.
1879 * read-md.c (read_skip_construct): New function.
1880 (handle_file): Allow a null handle_directive, skipping the
1882 (parse_include): Update the comment accordingly.
1884 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1886 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1887 * genmddeps.c: Include read-md.h.
1888 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1889 * genattr.c (main): Likewise.
1890 * genattrtab.c (main): Likewise.
1891 * genautomata.c (main): Likewise.
1892 * gencodes.c (main): Likewise.
1893 * genconditions.c (main): Likewise.
1894 * genconfig.c (main): Likewise.
1895 * genconstants.c (main): Likewise.
1896 * genemit.c (main): Likewise.
1897 * genextract.c (main): Likewise.
1898 * genflags.c (main): Likewise.
1899 * genopinit.c (main): Likewise.
1900 * genoutput.c (main): Likewise.
1901 * genpeep.c (main): Likewise.
1902 * genrecog.c (main): Likewise.
1903 * genpreds.c (main): Likewise.
1904 * gensupport.h (in_fname): Move to read-md.h.
1905 (init_md_reader_args_cb): Rename to...
1906 (init_rtx_reader_args_cb): ...this and return a bool.
1907 (init_md_reader_args): Rename to...
1908 (init_rtx_reader_args): ...this and return a bool.
1909 (include_callback): Move to read-md.h.
1910 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1911 (file_name_list, first_dir_md_include): Move to read-md.c
1912 (first_bracket_include): Delete unused variable.
1913 (last_dir_md_include): Move to read-md.c.
1914 (process_include): Delete, moving code to read-md.c:handle_include.
1915 (process_rtx): Don't handle INCLUDE.
1916 (save_string): Delete.
1917 (rtx_handle_directive): New function.
1918 (init_md_reader_args_cb): Rename to...
1919 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1921 (init_md_reader_args): Rename to...
1922 (init_rtx_reader_args): ...this and return a boolean success value.
1923 * rtl.def (INCLUDE): Delete.
1924 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1926 * read-rtl.c (read_conditions): Don't gobble ')' here.
1927 (read_mapping): Likewise.
1928 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1929 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1930 Store the whole queue in *X. Remove call to init_md_reader.
1931 (read_rtx_1): Rename to...
1932 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1933 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1935 (read_nested_rtx): New function. Handle (nil) here rather than
1937 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1939 * read-md.h (directive_handler_t): New type.
1940 (in_fname, include_callback): Moved from read-md.h.
1941 (read_constants, init_md_reader): Delete.
1942 (read_md_files): Declare.
1943 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1944 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1946 (read_constants): Rename to...
1947 (handle_constants): ...this. Don't gobble ')' here.
1948 (handle_include, handle_file, handle_toplevel_file)
1949 (parse_include): New functions, mostly taken from gensupport.c.
1950 (init_md_reader): Subsume into...
1951 (read_md_files): ...this new function.
1953 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1955 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1956 (unread_char): Decrement read_md_lineno after putting back '\n'.
1957 * read-md.c (fatal_with_file_and_line): Push back any characters
1958 that we decide not to add to the context.
1959 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
1960 fatal_expected_char in cases where '/' ends a line (for example).
1961 (read_name): Don't increment read_md_lineno here.
1962 (read_escape): Likewise.
1963 (read_quoted_string): Likewise.
1964 (read_braced_string): Likewise.
1966 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1968 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1969 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1970 * genconstants.c: Include read-md.h.
1971 * read-rtl.c (md_constants): Move to read-md.c.
1972 (md_name): Move to read-md.h.
1973 (initialize_iterators): Use leading_string_hash instead of def_hash
1974 and leading_string_eq_p instead of def_name_eq_p.
1975 (read_name): Move to read-md.c.
1976 (def_hash, def_name_eq_p): Delete.
1977 (read_constants, traverse_md_constants): Move to read-md.c.
1978 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1979 * read-md.h: Include hashtab.h.
1980 (md_name): Moved from read-rtl.c.
1981 (md_constant): Moved from read-md.h.
1982 (leading_string_hash, leading_string_eq_p, read_name)
1983 (read_constants, traverse_md_constants): Declare.
1984 * read-md.c (md_constants): Moved from read-rtl.c.
1985 (leading_string_hash, leading_string_eq_p): New functions.
1986 (read_name, read_constants, traverse_md_constants): Moved from
1989 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1991 * read-rtl.c (md_name): New structure.
1992 (read_name): Take an md_name instead of a buffer pointer.
1993 Use the "string" field instead of strcpy when expanding constants.
1994 (read_constants): Remove the tmp_char argument. Update the calls
1995 to read_name, using two local name buffers instead of the tmp_char
1996 argument. Merge the constant-creation code.
1997 (read_conditions): Remove the tmp_char argument. Update the calls
1998 to read_name, using a local name buffer instead of the tmp_char
2000 (read_mapping): Replace tmp_char variable with a local name buffer.
2001 Update the calls to read_name.
2002 (read_rtx_1): Likewise. Update the calls to read_constants and
2005 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2007 * Makefile.in (build/read-md.o): Depend on errors.h.
2008 * read-md.h (error_with_line): Declare.
2009 * read-md.c: Include errors.h.
2010 (message_with_line_1): New function, extracted from...
2011 (message_with_line): ...here.
2012 (error_with_line): New function.
2013 * genattrtab.c: If a call to message_with_line is followed by
2014 "have_error = 1;", replace both statements with a call to
2016 * genoutput.c: Likewise.
2017 * genpreds.c: Likewise.
2018 * genrecog.c: If a call to message_with_line is followed by
2019 "error_count++;", replace both statements with a call to
2021 (errorcount): Delete.
2022 (main): Don't check it.
2023 * gensupport.c: If a call to message_with_line is followed by
2024 "errors = 1;", replace both statements with a call to error_with_line.
2026 (process_define_cond_exec): Check have_error instead of errors.
2027 (init_md_reader_args_cb): Likewise. Don't set errors.
2029 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2031 * read-md.h (read_md_file): Declare.
2032 (read_char, unread_char): New functions.
2033 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2034 (read_quoted_string, read_string): Remove FILE * argument.
2035 * read-md.c (read_md_file): New variable.
2036 (read_md_filename, read_md_lineno): Update comments and remove
2037 unnecessary initialization.
2038 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2039 (read_escape, read_quoted_string, read_braced_string, read_string):
2040 Remove FILE * argument. Update calls accordingly, using read_char
2041 and unread_char instead of getc and ungetc.
2042 * rtl.h (read_rtx): Remove FILE * argument.
2043 * read-rtl.c (iterator_group): Remove FILE * argument from
2045 (iterator_traverse_data): Remove "infile" field.
2046 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2047 (add_mapping, read_name, read_constants, read_conditions)
2048 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2049 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2050 Remove file arguments from all calls, using read_char and unread_char
2051 instead of getc and ungetc.
2052 * gensupport.c (process_include): Preserve read_md_file around
2053 the include. Set read_md_file to the handle of the included file.
2054 Update call to read_rtx.
2055 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2056 and remove local FILE *. Update calls to read_rtx.
2058 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2060 * read-md.h (read_rtx_lineno): Rename to...
2061 (read_md_lineno): ...this.
2062 (read_rtx_filename): Rename to...
2063 (read_md_filename): ...this.
2064 (copy_rtx_ptr_loc): Rename to...
2065 (copy_md_ptr_loc): ...this.
2066 (print_rtx_ptr_loc): Rename to...
2067 (print_md_ptr_loc): ...this.
2068 * read-md.c: Likewise. Update references after renaming.
2069 (string_obstack): Replace RTL with MD in comment.
2070 (set_rtx_ptr_loc): Rename to...
2071 (set_md_ptr_loc): ...this.
2072 (get_rtx_ptr_loc): Rename to...
2073 (get_md_ptr_loc): ...this.
2074 * genconditions.c: Update references after renaming.
2075 * genemit.c: Likewise.
2076 * genoutput.c: Likewise.
2077 * genpreds.c: Likewise.
2078 * gensupport.c: Likewise.
2079 * read-rtl.c: Likewise.
2081 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2083 * Makefile.in (READ_MD_H): New variable.
2084 (BUILD_RTL): Add build/read-md.o.
2085 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2086 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2087 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2088 (build/genextract.o, build/genflags.o, build/genoutput.o)
2089 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2090 (build/read-md.o): New rule.
2091 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2092 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2093 * coretypes.h: ...here.
2094 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2095 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2096 * genattr.c: Include read-md.h.
2097 * genattrtab.c: Likewise.
2098 * genconditions.c: Likewise.
2099 * genemit.c: Likewise.
2100 * genextract.c: Likewise.
2101 * genflags.c: Likewise.
2102 * genoutput.c: Likewise.
2103 * genpreds.c: Likewise.
2104 * genrecog.c: Likewise.
2105 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2106 (join_c_conditions, print_c_condition, read_rtx_filename)
2107 (read_rtx_lineno): Move to read-md.h.
2108 * read-rtl.c: Include read-md.h.
2109 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2110 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2111 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2112 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2113 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2114 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2115 (read_braced_string, read_string): Move to read-md.c.
2116 (read_rtx): Move some initialization to init_md_reader and call
2117 init_md_reader here.
2118 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2120 * gensupport.c: Include read-md.h.
2121 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2122 * read-md.h, read-md.c: New files.
2124 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2126 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2127 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2128 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2129 * config/moxie/moxie.c (moxie_function_value): Make static.
2130 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2131 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2133 2010-06-10 Martin Jambor <mjambor@suse.cz>
2135 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2136 * dbgcnt.def (tree_sra): New counter.
2137 * tree-sra.c: Include dbgcnt.h.
2138 (gate_intra_sra): Check tree_sra debug counter.
2140 2010-06-10 Martin Jambor <mjambor@suse.cz>
2142 PR tree-optimization/44258
2143 * tree-sra.c (build_access_subtree): Return false iff there is a
2145 (build_access_trees): Likewise.
2146 (analyze_all_variable_accesses): Disqualify candidates if
2147 build_access_trees returns true for them.
2149 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2152 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2153 tail-recurse into canonical node. Fast-forward over
2154 non-canonical VALUEs.
2156 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2159 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2160 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2161 (add lea splitter): Likewise.
2162 (add_zext lea splitter): Likewise.
2164 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2166 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2168 2010-06-10 Jan Hubicka <jh@suse.cz>
2170 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2171 (df_live_alloc): Initialize problem data and live_osbtacks.
2172 (df_live_finalize): Remove obstack, problem data; do not
2174 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2175 data when not allocated.
2176 (df_live_verify_solution_start): Do not allocate problem data.
2177 (df_live_verify_solution_end): Check if out is allocated.
2178 (struct df_md_problem_data): New structure.
2179 (df_md_alloc): Allocate problem data.
2180 (df_md_free): Free problem data; do not clear bitmaps.
2182 2010-06-10 Jan Beulich <jbeulich@novell.com>
2185 * configure.ac: Replace $() with ${} when intending to expand
2186 variables rather than invoking commands.
2187 * configure: Re-generate.
2189 2010-06-10 Jan Hubicka <jh@suse.cz>
2191 PR rtl-optimization/44460
2192 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2193 TYPE_NEEDS_CONSTRUCTING sanity check.
2195 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2197 * doc/include/fdl.texi: Move to GFDL version 1.3.
2199 * doc/cpp.texi: Move to GFDL version 1.3.
2200 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2201 * doc/gccint.texi: Move to GFDL version 1.3.
2202 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2203 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2204 * doc/invoke.texi: Move to GFDL version 1.3.
2206 2010-06-09 Jan Hubicka <jh@suse.cz>
2208 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2210 (propagate) ... here; swap the order.
2212 2010-06-09 Jan Hubicka <jh@suse.cz>
2214 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2215 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2216 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2217 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2219 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2221 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2222 Do not the gather memory reference in the outer loop if the step
2225 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2227 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2228 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2229 8 to 4. Minor change of the related comments.
2231 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2233 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2234 the scev analysis when the variable is not used outside the loop
2235 in a close phi node: call compute_overall_effect_of_inner_loop.
2237 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2239 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2240 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2241 (build_sese_conditions_before): Renamed call to single_pred_cond.
2242 (build_sese_conditions_after): Same.
2244 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2246 * graphite-poly.h: Fix comments and indentation.
2247 * graphite-sese-to-poly.c: Same.
2248 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2249 * tree-chrec.c: Fix comments and indentation.
2250 (tree-ssa-loop-niter.c): Same.
2252 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2254 PR rtl-optimization/42461
2255 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2256 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2258 2010-06-09 Jan Hubicka <jh@suse.cz>
2260 * bitmap.c (bitmap_and): Walk array forward.
2261 (bitmap_and_compl_into): Likewise.
2262 (bitmap_xor): Likewise.
2263 (bitmap_xor_into): Likewise.
2264 (bitmap_equal_p): Likewise.
2265 (bitmap_intersect_p): Likewise.
2266 (bitmap_intersect_compl_p): Likewise.
2267 (bitmap_ior_and_into): Likewise.
2268 (bitmap_elt_copy): Likewise.
2269 (bitmap_and_compl): Likewise.
2270 (bitmap_elt_ior): Likewise.
2272 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2274 * opts-common.c (prune_options): Ensure replacement argv array
2275 is correctly terminated by a NULL entry.
2277 2010-06-09 Jan Hubicka <jh@suse.cz>
2279 * cgraph.h (varpool_first_static_initializer,
2280 varpool_next_static_initializer): Make checking only when
2282 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2283 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2284 gcc_assert to gcc_checking_assert.
2285 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2286 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2287 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2288 op_iter_init_phiuse, op_iter_init_phidef,
2289 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2290 gcc_checking_assert.
2291 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2292 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2293 partition_is_global, live_on_entry, live_on_exit,
2294 live_merge_and_clear): Likewise.
2295 * system.h (gcc_checking_assert): New macro.
2296 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2298 2010-06-09 Jason Merrill <jason@redhat.com>
2300 * Makefile.in (TAGS): Collect tags info from c-family.
2302 2010-06-09 Jan Hubicka <jh@suse.cz>
2304 * gimple.h (gcc_gimple_checking_assert): New macro.
2305 (gimple_set_def_ops, gimple_set_use_ops,
2306 gimple_set_vuse, gimple_set_vdef,
2307 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2308 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2309 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2310 gimple_asm_output_op, gimple_asm_output_op_ptr,
2311 gimple_asm_set_output_op, gimple_asm_clobber_op,
2312 gimple_asm_set_clobber_op, gimple_asm_label_op,
2313 gimple_asm_set_label_op, gimple_try_set_kind,
2314 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2315 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2316 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2317 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2318 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2319 gimple_omp_for_set_initial, gimple_omp_for_final,
2320 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2321 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2322 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2323 conditional with ENABLE_GIMPLE_CHECKING.
2324 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2326 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2328 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2329 (get_computation_cost_at): Use it.
2330 (determine_use_iv_cost_condition): Likewise.
2331 (determine_iv_cost): Likewise.
2333 2010-06-09 Richard Guenther <rguenther@suse.de>
2335 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2338 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2340 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2342 2010-06-09 Martin Jambor <mjambor@suse.cz>
2344 PR tree-optimization/44423
2345 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2346 (analyze_access_subtree): Pass negative allow_replacements to children
2347 if the current type is scalar.
2349 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2352 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2353 * doc/plugins.texi (Plugin license check): Update information
2354 on type of plugin_is_GPL_compatible.
2355 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2356 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2358 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2360 * config/arm/arm.c (thumb2_reorg): New function.
2361 (arm_reorg): Call it.
2362 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2363 arithmetic operations): Delete.
2365 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2368 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2371 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2374 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2376 2010-06-08 Jan Hubicka <jh@suse.cz>
2378 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2379 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2381 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2383 PR tree-optimization/39874
2385 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2387 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2388 same_bool_result_p): New.
2389 (and_var_with_comparison, and_var_with_comparison_1,
2390 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2391 (or_var_with_comparison, or_var_with_comparison_1,
2392 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2393 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2394 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2395 of combine_comparisons.
2396 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2398 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2400 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2401 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2402 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2403 pdp11_function_value_regno_p): New functions.
2404 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2405 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2407 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2409 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2410 Thumb-2 in the MINUS case.
2412 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2414 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2416 * doc/gty.texi (GTY Options): Document typed GC allocation and
2417 variable_size GTY option.
2419 * ggc-internal.h: New.
2421 * ggc.h: Update copyright year.
2422 (digit_string): Move to stringpool.c.
2423 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2424 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2425 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2426 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2427 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2428 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2429 (ggc_force_collect, ggc_get_size, ggc_statistics)
2430 (ggc_print_common_statistics): Move to ggc-internal.h.
2431 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2432 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2433 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2434 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2435 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2436 (ggc_alloc_zone_pass_stat): Remove.
2437 (ggc_internal_alloc_stat, ggc_internal_alloc)
2438 (ggc_internal_cleared_alloc_stat): New.
2439 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2440 (ggc_internal_vec_alloc_stat)
2441 (ggc_internal_cleared_vec_alloc_stat)
2442 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2443 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2444 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2445 (ggc_cleared_alloc_ptr_array_two_args): New.
2446 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2447 (ggc_splay_alloc): Change the type of the first argument to
2449 (ggc_alloc_string): Make macro.
2450 (ggc_alloc_string_stat): New.
2451 (ggc_strdup): Redefine.
2452 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2453 (ggc_alloc_rtvec_sized): New.
2454 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2455 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2456 (ggc_internal_cleared_alloc_zone_stat)
2457 (ggc_internal_zone_alloc_stat)
2458 (ggc_internal_zone_cleared_alloc_stat)
2459 (ggc_internal_zone_vec_alloc_stat)
2460 (ggc_alloc_zone_rtx_def_stat)
2461 (ggc_alloc_zone_tree_node_stat)
2462 (ggc_alloc_zone_cleared_tree_node_stat)
2463 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2465 * ggc-common.c: Include ggc-internal.h.
2466 (ggc_internal_cleared_alloc_stat): Rename from
2467 ggc_alloc_cleared_stat.
2468 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2469 (ggc_calloc): Remove.
2470 (ggc_cleared_alloc_htab_ignore_args): New.
2471 (ggc_cleared_alloc_ptr_array_two_args): New.
2472 (ggc_splay_alloc): Add obj_type parameter.
2473 (init_ggc_heuristics): Formatting fixes.
2475 * ggc-none.c: Update copyright year.
2476 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2477 (ggc_alloc_cleared_stat): Rename to
2478 ggc_internal_cleared_alloc_stat.
2479 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2481 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2482 Remove references to ggc_alloc in comments.
2483 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2484 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2485 (new_ggc_zone, destroy_ggc_zone): Remove.
2486 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2488 * ggc-zone.c: Include ggc-internal.h. Remove references to
2489 ggc_alloc in comments.
2490 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2491 (ggc_internal_alloc_zone_pass_stat): New.
2492 (ggc_internal_cleared_alloc_zone_stat): New.
2493 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2494 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2495 (new_ggc_zone, destroy_ggc_zone): Remove.
2497 * stringpool.c: Update copyright year. Include ggc-internal.h
2498 (digit_vector): Make static.
2499 (digit_string): Moved from ggc.h.
2500 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2501 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2503 * Makefile.in (GGC_INTERNAL_H): New.
2504 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2505 $(GGC_INTERNAL_H) to dependencies.
2507 * gentype.c: Update copyright year.
2508 (walk_type): Accept variable_size GTY option.
2509 (USED_BY_TYPED_GC_P): New macro.
2510 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2511 whitespace at the end of strings.
2512 (get_type_specifier, variable_size_p): New functions.
2513 (alloc_quantity, alloc_zone): New enums.
2514 (write_typed_alloc_def): New function.
2515 (write_typed_struct_alloc_def): Likewise.
2516 (write_typed_typed_typedef_alloc_def): Likewise.
2517 (write_typed_alloc_defns): Likewise.
2518 (output_typename, write_splay_tree_allocator_def): Likewise.
2519 (write_splay_tree_allocators): Likewise.
2520 (main): Call write_typed_alloc_defns and
2521 write_splay_tree_allocators.
2523 * lto-streamer.h (lto_file_decl_data_ptr): New.
2525 * passes.c (order): Define using cgraph_node_ptr.
2527 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2530 * gimple.h (union gimple_statement_d): Likewise.
2532 * rtl.h (struct rtx_def): Likewise.
2533 (struct rtvec_def): Likewise.
2535 * tree.h (union tree_node): Likewise.
2537 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2539 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2541 * tree-scalar-evolution.c (scev_initialize): Likewise.
2543 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2545 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2547 * omp-low.c (lower_omp_critical): Likewise.
2549 * bitmap.h (struct bitmap_head_def): Update comment to not
2550 reference ggc_alloc.
2552 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2554 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2556 * ipa-prop.c (duplicate_ggc_array): Rename to
2557 duplicate_ipa_jump_func_array. Use typed GC allocation.
2558 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2560 * gimple.c (gimple_alloc_stat): Use
2561 ggc_alloc_cleared_gimple_statement_d_stat.
2563 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2565 * tree.c (make_node_stat): Use
2566 ggc_alloc_zone_cleared_tree_node_stat.
2567 (make_tree_vec_stat): Likewise.
2568 (build_vl_exp_stat): Likewise.
2569 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2570 (make_tree_binfo_stat): Likewise.
2571 (tree_cons_stat): Likewise.
2573 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2574 (shallow_copy_rtx_stat): Likewise.
2575 (make_node_stat): Likewise.
2577 * lto-symtab.c: Fix comment.
2579 * tree-cfg.c (create_bb): Update comment to not reference
2581 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2583 * varpool.c (varpool_node): Use typed GC allocation.
2584 (varpool_extra_name_alias): Likewise.
2586 * varasm.c (emutls_decl): Likewise.
2587 (get_unnamed_section): Likewise.
2588 (get_noswitch_section): Likewise.
2589 (get_section): Likewise.
2590 (get_block_for_section): Likewise.
2591 (build_constant_desc): Likewise.
2592 (create_constant_pool): Likewise.
2593 (force_const_mem): Likewise.
2595 * tree.c (build_vl_exp_stat): Likewise.
2596 (build_real): Likewise.
2597 (build_string): Likewise.
2598 (decl_debug_expr_insert): Likewise.
2599 (decl_value_expr_insert): Likewise.
2600 (type_hash_add): Likewise.
2601 (build_omp_clause): Likewise.
2603 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2605 * tree-ssa.c (init_tree_ssa): Likewise.
2607 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2609 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2611 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2613 * tree-ssa-alias.c (get_ptr_info): Likewise.
2615 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2617 * tree-phinodes.c (allocate_phi_node): Likewise.
2619 * tree-iterator.c (tsi_link_before): Likewise.
2620 (tsi_link_after): Likewise.
2622 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2624 * tree-dfa.c (create_var_ann): Likewise.
2626 * tree-cfg.c (create_bb): Likewise.
2628 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2629 (general_init): Likewise.
2631 * stringpool.c (stringpool_ggc_alloc): Likewise.
2632 (gt_pch_save_stringpool): Likewise.
2634 * sese.c (if_region_set_false_region): Likewise.
2636 * passes.c (do_per_function_toporder): Likewise.
2638 * optabs.c (set_optab_libfunc): Likewise.
2639 (set_conv_libfunc): Likewise.
2641 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2643 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2644 (input_eh_region): Likewise.
2645 (input_eh_lp): Likewise.
2646 (make_new_block): Likewise.
2647 (unpack_ts_real_cst_value_fields): Likewise.
2649 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2651 * lto-cgraph.c (input_node_opt_summary): Likewise.
2653 * loop-init.c (loop_optimizer_init): Likewise.
2655 * lambda.h (lambda_vector_new): Likewise.
2657 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2659 * ira.c (update_equiv_regs): Likewise.
2661 * ipa.c (cgraph_node_set_new): Likewise.
2662 (cgraph_node_set_add): Likewise.
2663 (varpool_node_set_new): Likewise.
2664 (varpool_node_set_add): Likewise.
2666 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2667 (duplicate_ipa_jump_func_array): Likewise.
2668 (ipa_read_node_info): Likewise.
2670 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2672 * integrate.c (get_hard_reg_initial_val): Likewise.
2674 * gimple.c (gimple_alloc_stat): Likewise.
2675 (gimple_build_omp_for): Likewise.
2676 (gimple_seq_alloc): Likewise.
2677 (gimple_copy): Likewise.
2679 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2680 (gsi_insert_after_without_update): Likewise.
2682 * function.c (add_frame_space): Likewise.
2683 (insert_temp_slot_address): Likewise.
2684 (assign_stack_temp_for_type): Likewise.
2685 (allocate_struct_function): Likewise.
2686 (types_used_by_var_decl_insert): Likewise.
2688 * except.c (init_eh_for_function): Likewise.
2689 (gen_eh_region): Likewise.
2690 (gen_eh_region_catch): Likewise.
2691 (gen_eh_landing_pad): Likewise.
2692 (add_call_site): Likewise.
2694 * emit-rtl.c (get_mem_attrs): Likewise.
2695 (get_reg_attrs): Likewise.
2696 (start_sequence): Likewise.
2697 (init_emit): Likewise.
2699 * dwarf2out.c (new_cfi): Likewise.
2700 (queue_reg_save): Likewise.
2701 (dwarf2out_frame_init): Likewise.
2702 (new_loc_descr): Likewise.
2703 (find_AT_string): Likewise.
2704 (new_die): Likewise.
2705 (add_var_loc_to_decl): Likewise.
2706 (clone_die): Likewise.
2707 (clone_as_declaration): Likewise.
2708 (break_out_comdat_types): Likewise.
2709 (new_loc_list): Likewise.
2710 (loc_descriptor): Likewise.
2711 (add_loc_descr_to_each): Likewise.
2712 (add_const_value_attribute): Likewise.
2713 (tree_add_const_value_attribute): Likewise.
2714 (add_comp_dir_attribute): Likewise.
2715 (add_name_and_src_coords_attributes): Likewise.
2716 (lookup_filename): Likewise.
2717 (store_vcall_insn): Likewise.
2718 (dwarf2out_init): Likewise.
2720 * dbxout.c (dbxout_init): Likewise.
2722 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2724 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2726 * config/score/score7.c (score7_output_external): Likewise.
2728 * config/score/score3.c (score3_output_external): Likewise.
2730 * config/s390/s390.c (s390_init_machine_status): Likewise.
2732 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2733 (rs6000_init_machine_status): Likewise.
2734 (output_toc): Likewise.
2736 * config/pa/pa.c (pa_init_machine_status): Likewise.
2737 (get_deferred_plabel): Likewise.
2739 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2741 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2743 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2745 * config/mep/mep.c (mep_init_machine_status): Likewise.
2746 (mep_note_pragma_flag): Likewise.
2748 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2750 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2752 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2754 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2755 (i386_pe_maybe_record_exported_symbol): Likewise.
2757 * config/i386/i386.c (get_dllimport_decl): Likewise.
2758 (ix86_init_machine_status): Likewise.
2759 (assign_386_stack_local): Likewise.
2761 * config/frv/frv.c (frv_init_machine_status): Likewise.
2763 * config/darwin.c (machopic_indirection_name): Likewise.
2765 * config/cris/cris.c (cris_init_machine_status): Likewise.
2767 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2769 * config/avr/avr.c (avr_init_machine_status): Likewise.
2771 * config/arm/arm.c (arm_init_machine_status): Likewise.
2773 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2774 (alpha_need_linkage): Likewise.
2775 (alpha_use_linkage): Likewise.
2777 * cgraph.c (cgraph_allocate_node): Likewise.
2778 (cgraph_create_edge_1): Likewise.
2779 (cgraph_create_indirect_edge): Likewise.
2780 (cgraph_add_asm_node): Likewise.
2782 * cfgrtl.c (init_rtl_bb_info): Likewise.
2784 * cfgloop.c (alloc_loop): Likewise.
2785 (rescan_loop_exit): Likewise.
2787 * cfg.c (init_flow): Likewise.
2788 (alloc_block): Likewise.
2789 (unchecked_make_edge): Likewise.
2791 * c-parser.c (c_parse_init): Likewise.
2792 (c_parse_file): Likewise.
2794 * c-decl.c (bind): Likewise.
2795 (record_inline_static): Likewise.
2796 (push_scope): Likewise.
2797 (make_label): Likewise.
2798 (lookup_label_for_goto): Likewise.
2799 (finish_struct): Likewise.
2800 (finish_enum): Likewise.
2801 (c_push_function_context): Likewise.
2803 * bitmap.c (bitmap_element_allocate): Likewise.
2804 (bitmap_gc_alloc_stat): Likewise.
2806 * alias.c (record_alias_subset): Likewise.
2807 (init_alias_analysis): Likewise.
2809 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2811 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2812 * tree-inline.c (expand_call_inline): Pass translated return value of
2813 cgraph_inline_failed_string to diagnostic function.
2815 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2816 Shujing Zhao <pearly.zhao@oracle.com>
2819 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2820 implicit bad conversions is initialization.
2821 (error_init): Use gmsgid instead of msgid for argument name and change
2823 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2824 change the call for pedwarn.
2825 (warning_init): Use gmsgid instead of msgid for argument name and
2826 change the call for warning.
2828 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2830 * config/mips/mips-protos.h (mips_print_operand): Delete.
2831 (mips_print_operand_address): Delete.
2832 * config/mips/mips.h (mips_print_operand_punct): Delete.
2833 (PRINT_OPERAND): Delete.
2834 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2835 (PRINT_OPERAND_ADDRESS): Delete.
2836 * config/mips/mips.c (mips_print_operand_punct): Make static.
2837 (mips_print_operand_address): Make static.
2838 (mips_print_operand): Make static. Call
2839 mips_print_operand_punct_valid_p.
2840 (mips_print_operand_punct_valid_p): New function.
2841 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2842 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2844 2010-06-07 Jan Hubicka <jh@suse.cz>
2847 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2850 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2852 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2855 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2857 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2858 attributes): Document gas.
2860 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2863 <TYPE_LEA>: Split instruction.
2864 <default>: Remove alternative 2 handling.
2865 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2866 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2867 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2869 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2870 (ashift_zext lea splitter): Use DImode for multiplication.
2872 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2873 to generate addition.
2875 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2877 * common.opt (fira-verbose): Use Var.
2878 (fpcc-struct-return): Use Init instead of VarExists.
2879 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2881 * flags.h (flag_signed_char, flag_short_enums,
2882 flag_pcc_struct_return, flag_ira_verbose,
2883 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2884 * toplev.c (flag_detailed_statistics, flag_signed_char,
2885 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2886 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2887 * toplev.h (flag_crossjumping, flag_if_conversion,
2888 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2889 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2890 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2891 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2892 flag_ira_coalesce, flag_ira_move_spills,
2893 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2895 2010-06-07 Jan Hubicka <jh@suse.cz>
2897 * df-core.c (df_analyze_problem): Do verification after allocation.
2899 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2900 (df_lr_alloc): Initialize problem data; move bitmaps to
2902 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2903 (df_lr_verify_solution_start): Do not initialize problem data;
2904 allocate bitmaps in lr_bitmaps.
2905 (df_lr_verify_solution_end): Do not free problem data.
2907 2010-06-07 Jan Hubicka <jh@suse.cz>
2909 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2910 if caller is noreturn.
2911 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2912 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2913 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2914 * ipa-pure-const.c (check_decl): Add IPA parameter.
2915 (state_from_flags): New function.
2916 (better_state, worse_state): New functions.
2917 (check_call): When in IPA mode, do not care about callees.
2918 (check_load, check_store): Update.
2919 (check_ipa_load, check_ipa_store): New.
2920 (check_stmt): When in IPA mode, use IPA checkers.
2921 (analyze_function): Use state_from_flags.
2922 (propagate): Check indirect edges and references.
2924 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2926 PR rtl-optimization/44404
2927 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2928 of count_occurrences to see if it's safe to modify mem_insn.
2930 2010-06-07 Richard Guenther <rguenther@suse.de>
2932 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2933 and EH-only cleanup drop the cleanup instead of inserting it
2936 2010-06-07 Ira Rosen <irar@il.ibm.com>
2938 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2940 * targhooks.c (default_builtin_vectorization_cost): New function.
2941 * targhooks.h (default_builtin_vectorization_cost): Declare.
2942 * target.h (enum vect_cost_for_stmt): Define.
2943 (builtin_vectorization_cost): Change argument and comment.
2944 * tree-vectorizer.h: Remove cost model macros.
2945 * tree-vect-loop.c: Include target.h.
2946 (vect_get_cost): New function.
2947 (vect_estimate_min_profitable_iters): Replace cost model macros with
2948 calls to vect_get_cost.
2949 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2950 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2951 default implementation.
2952 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2953 calls to target hook builtin_vectorization_cost.
2954 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2956 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2957 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2958 implementation to return costs.
2959 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2960 * config/spu/spu.h: Remove vectorizer cost model macros.
2961 * config/i386/i386.h: Likewise.
2962 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2963 a call to target hook builtin_vectorization_cost.
2965 2010-06-06 Sriraman Tallam <tmsriram@google.com>
2968 * config/i386/i386.c (override_options): Turn zee pass on for level 2
2969 and above and defer till target is known.
2970 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2973 2010-05-25 Jan Hubicka <jh@suse.cz>
2975 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2976 (df_compact_blocks): Likewise.
2977 * df.h (struct df): Turn hardware_regs_used,
2978 regular_block_artificial_uses, eh_block_artificial_uses,
2979 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2981 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2982 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2983 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2984 df_scan_blocks, df_insn_delete, df_insn_rescan,
2985 df_insn_rescan_debug_internal, df_insn_rescan_all,
2986 df_process_deferred_rescans, df_process_deferred_rescans,
2987 df_notes_rescan, df_get_call_refs, df_get_call_refs,
2988 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2989 df_record_entry_block_defs, df_record_exit_block_uses,
2990 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2991 df_scan_verify): Update.
2993 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2996 * c-common.c (is_typedef_decl): Move this definition ...
2997 * tree.c (is_typedef_decl): ... here.
2998 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2999 * c-common.h (is_typedef_decl): Move this declaration ...
3000 * tree.h (is_typedef_decl): ... here.
3001 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3002 * dwarf2out.c (is_naming_typedef_decl): New function.
3003 (gen_tagged_type_die): Split out of ...
3004 (gen_type_die_with_usage): ... this function. When an anonymous
3005 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3006 is emitted for the typedef.
3007 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3008 anonymous tagged types.
3010 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3013 * c-decl.c (grokdeclarator): Delete warning.
3015 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3017 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3018 newly built CALL_EXPR.
3019 * tree-profile.c (tree_profiling): Don't profile functions produced
3022 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3026 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3027 endianness-independent.
3029 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3031 * c-common.c: Move to c-family/.
3032 * c-common.def: Likewise.
3033 * c-common.h: Likewise.
3034 * c-cppbuiltin.c: Likewise.
3035 * c-dump.c: Likewise.
3036 * c-format.c: Likewise.
3037 * c-format.h : Likewise.
3038 * c-gimplify.c: Likewise.
3039 * c-lex.c: Likewise.
3040 * c-omp.c: Likewise.
3042 * c-opts.c: Likewise.
3043 * c-pch.c: Likewise.
3044 * c-ppoutput.c: Likewise.
3045 * c-pragma.c: Likewise.
3046 * c-pragma.h: Likewise.
3047 * c-pretty-print.c: Likewise.
3048 * c-pretty-print.h: Likewise.
3049 * c-semantics.c: Likewise.
3050 * stub-objc.c: Likewise.
3052 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3053 (get_output_file_with_visibility): Fix name for c-common.h.
3054 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3056 * c-tree.h: Update include path for moved files.
3057 * c-lang.c: Likewise.
3058 * c-lang.h: Likewise.
3059 * c-parser.c: Likewise.
3060 * c-convert.c: Likewise.
3061 * c-decl.c: Likewise.
3062 * c-objc-common.c: Likewise.
3063 * configure.ac: Make sure c-family/ exists in the build directory.
3064 * configure: Regenerate.
3065 * Makefile.in: Update paths for moved files. Regroup files per
3066 location and update dependencies. Move generated_files down after
3069 * config/spu/spu-c.c: Update paths for moved files.
3070 * config/mep/mep-pragma.c: Likewise.
3071 * config/darwin-c.c: Likewise.
3072 * config/i386/msformat-c.c: Likewise.
3073 * config/i386/i386-c.c: Likewise.
3074 * config/avr/avr-c.c: Likewise.
3075 * config/sol2-c.c: Likewise.
3076 * config/ia64/ia64-c.c: Likewise.
3077 * config/rs6000/rs6000-c.c: Likewise.
3078 * config/arm/arm.c: Likewise.
3079 * config/arm/arm-c.c: Likewise.
3080 * config/h8300/h8300.c: Likewise.
3081 * config/v850/v850-c.c: Likewise.
3083 * config/t-darwin: Fix dependencies for moved files.
3084 * config/t-sol2: Fix dependencies for moved files.
3085 * config/mep/t-mep: Fix dependencies for moved files.
3086 * config/ia64/t-ia64: Fix dependencies for moved files.
3087 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3088 * config/v850/t-v850: Fix dependencies for moved files.
3089 * config/v850/t-v850e: Fix dependencies for moved files.
3091 * config/m32c/m32c-pragma.c
3093 * po/exgettext: Look in c-family/ also.
3095 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3097 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3098 (mark_control_dependent_edges_necessary): Call it instead of marking
3099 the last statement manually.
3100 (propagate_necessity): Likewise.
3102 2010-06-05 Jan Hubicka <jh@suse.cz>
3104 * basic-block.h (compute_dominance_frontiers): Updated.
3105 (compute_idf): Likewise.
3107 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3108 for dominance frontiers.
3109 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3110 (insert_updated_phi_nodes_for): Likewise.
3111 (update_ssa): Likewise.
3112 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3113 (compute_dominance_frontiers): Likewise.
3114 (compute_idf): Likewise.
3115 * df-problems.c (df_md_local_compute): Likewise.
3117 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3119 * target.h (struct gcc_target): Add memory_move_cost field.
3120 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3121 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3122 * targhooks.c (default_memory_move_cost): New function.
3123 * targhooks.h (default_memory_move_cost): Declare function.
3124 * reload.h (memory_move_cost): Declare.
3125 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3126 * reginfo.c (memory_move_cost): New function.
3127 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3128 * ira.h (ira_memory_move_cost): Update comment.
3129 * ira.c: (ira_memory_move_cost): Update comment.
3130 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3131 with memory_move_cost.
3132 * postreload.c (reload_cse_simplify_set): (Ditto.).
3133 * reload1.c (choose_reload_regs): (Ditto.).
3134 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3135 (MEMORY_MOVE_COST): Revise documentation.
3137 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3138 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3139 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3140 type of 'in' argument to bool.
3141 (TARGET_MEMORY_MOVE_COST): Define.
3143 2010-06-05 Jan Hubicka <jh@suse.cz>
3145 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3146 that cannot return. Be more careful when merging the results with
3147 previously known ones.
3149 2010-06-05 Matthias Klose <doko@ubuntu.com>
3151 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3152 function to add the -iplugindir option.
3153 (find_plugindir_spec_function): Add new declaration and function.
3154 (static_spec_func): Use it for "find-plugindir".
3156 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3159 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3160 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3161 statement expression.
3163 2010-06-05 Jan Hubicka <jh@suse.cz>
3165 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3166 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3167 dense_invalidated_by_call to bitmap head.
3168 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3169 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3170 df_rd_start_dump, df_lr_verify_transfer_functions,
3171 df_live_verify_transfer_functions, df_chain_create_bb,
3172 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3173 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3174 df_simulate_one_insn_forwards, df_md_alloc,
3175 df_md_bb_local_compute_process_def,
3176 df_md_bb_local_compute_process_def, df_md_local_compute,
3177 df_md_transfer_function df_md_free): Update.
3179 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3182 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3183 target type for ADDR_EXPR; require no changes to qualifiers except
3185 * c-tree.h (c_build_type_variant): Remove.
3187 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3189 * genautomata.c (get_excl_set): Do work per element, not per char.
3190 (check_presence_pattern_sets): Similar.
3191 (check_absence_pattern_sets): Similar.
3193 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3195 * genautomata.c (curr_state_pass_num): Delete.
3196 (min_issue_delay_pass_states): Delete.
3197 (min_issue_delay): Delete.
3198 (initiate_min_issue_delay_pass_states): Delete.
3199 (output_min_issue_delay_table): Compute min_issue_delay_vect
3200 using a breadth-first search variant.
3201 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3203 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3206 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3207 (df_byte_lr_bb_local_compute): Likewise.
3209 2010-06-03 Jason Merrill <jason@redhat.com>
3211 Implement noexcept operator (5.3.7)
3212 * c-common.c (c_common_reswords): Add noexcept.
3213 * c-common.h (enum rid): Add RID_NOEXCEPT.
3215 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3217 * config/darwin-driver.c (darwin_default_min_version): Use
3218 GCC-specific formats in diagnostics.
3219 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3221 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3222 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3223 eval_spec_function, handle_braces, process_brace_body, main,
3224 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3225 getenv_spec_function, compare_version_strings,
3226 version_compare_spec_function): Use GCC-specific formats in
3229 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3231 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3232 that operand 0 and operand 1 are equal.
3233 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3234 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3235 and operand 1 are equal.
3236 <default>: Ditto. Remove ??? comment.
3237 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3238 and operand 1 are equal.
3239 <default>: Ditto. Remove ??? comment.
3240 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3242 (*add<mode>_4) <default>: Ditto.
3243 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3245 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3247 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3248 * config/i386/i386.c (ix86_print_operand): Make non-static.
3249 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3250 * output.h (output_operand): Declare.
3251 * final.c (output_operand): Make non-static.
3253 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3255 PR rtl-optimization/44013
3256 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3257 when processing debug insns.
3260 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3261 recursing. Check that recursion is bounded. Rename inner var
3262 to avoid hiding incoming argument.
3264 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3266 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3271 (*addqi_ext_1_rex64): Ditto.
3272 (*addqi_ext_1): Ditto.
3274 (*addqi_4): Check for incdec_operand in QImode.
3276 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3277 using SWI mode iterator.
3278 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3279 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3281 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3282 using SWI mode iterator.
3284 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3287 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3288 * c-format.c (gcc_diag_flag_specs): Add hash.
3289 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3290 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3291 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3292 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3293 (pp_c_type_qualifier_list): Call the function above.
3294 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3295 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3296 (WARN_FOR_QUALIFIERS): New macro.
3297 (convert_for_assignment): Use it.
3299 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3301 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3303 2010-06-04 Jan Hubicka <jh@suse.cz>
3305 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3306 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3307 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3308 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3309 * fwprop.c (single_def_use_enter_block): Likewise.
3310 * ddg.c (create_ddg_dep_from_intra_loop_link,
3311 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3312 * loop-iv.c (latch_dominating_def): Likewise.
3313 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3314 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3315 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3316 df_rd_transfer_function, df_rd_top_dump,
3317 df_rd_bottom_dump): Update.
3318 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3319 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3320 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3321 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3322 df_lr_verify_solution_start, df_lr_verify_solution_end,
3323 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3324 df_live_free_bb_info, df_live_alloc, df_live_reset,
3325 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3326 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3327 df_live_verify_solution_start, df_live_verify_solution_end,
3328 df_live_verify_transfer_functions, df_chain_create_bb,
3329 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3330 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3331 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3332 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3333 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3334 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3335 df_byte_lr_bottom_dump, df_create_unused_note,
3336 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3337 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3338 df_md_transfer_function, df_md_init, df_md_confluence_0,
3340 df_md_top_dump, df_md_bottom_dump): Update.
3341 (struct df_lr_problem_data): Embedd bitmap headers.
3343 2010-06-04 Jan Hubicka <jh@suse.cz>
3345 * dce.c (dce_process_block): Do not re-scan already marked
3348 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3350 PR rtl-optimization/39871
3351 PR rtl-optimization/40615
3352 PR rtl-optimization/42500
3353 PR rtl-optimization/42502
3354 * ira.c (init_reg_equiv_memory_loc: New function.
3355 (ira): Call it twice.
3356 * reload.h (calculate_elim_costs_all_insns): Declare.
3357 * ira-costs.c: Include "reload.h".
3358 (regno_equiv_gains): New static variable.
3359 (init_costs): Allocate it.
3360 (finish_costs): Free it.
3361 (ira_costs): Call calculate_elim_costs_all_insns.
3362 (find_costs_and_classes): Take estimated elimination costs
3364 (ira_adjust_equiv_reg_cost): New function.
3365 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3366 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3367 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3368 (elim_bb): New static variable.
3369 (reload): Move code out of here into init_eliminable_invariants and
3370 free_reg_equiv. Call them.
3371 (calculate_elim_costs_all_insns): New function.
3372 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3373 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3374 but call note_reg_elim_costly if we turned a valid memory address
3375 into an invalid one.
3376 * Makefile.in (ira-costs.o): Depend on reload.h.
3378 2010-06-04 Julian Brown <julian@codesourcery.com>
3380 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3383 2010-06-04 Richard Guenther <rguenther@suse.de>
3386 * cgraph.h (struct varpool_node): Add lto_file_data field.
3387 * lto-cgraph.c (input_varpool_node): Initialize it.
3389 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3391 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3392 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3393 predicate in "type" attribute calculation.
3394 (*addsi_1_zext): Ditto.
3395 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3396 (*addsi_2_zext): Ditto.
3397 (*add<mode>_3): Ditto.
3398 (*addsi_3_zext): Ditto.
3399 (*add<mode>_5): Ditto.
3401 2010-06-03 Jan Hubicka <jh@suse.cz>
3403 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3405 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3407 2010-06-03 Jan Hubicka <jh@suse.cz>
3409 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3410 micro-optimize the checks when to add new note.
3412 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3414 * final.c (output_asm_insn): Call
3415 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3416 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3417 (output_address): Call targetm.asm_out.print_operand_address.
3419 * target.h (struct gcc_target): Add print_operand,
3420 print_operand_address, and print_operand_punct_valid_p fields.
3421 * targhooks.h (default_print_operand): Declare.
3422 (default_print_operand_address): Declare.
3423 (default_print_operand_punct_valid_p): Declare.
3424 * targhooks.c (default_print_operand): Define.
3425 (default_print_operand_address): Define.
3426 (default_print_operand_punct_valid_p): Define.
3427 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3428 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3429 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3430 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3431 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3432 * vmsdbgout.c (addr_const_to_string): Update comment.
3433 * config/i386/i386.c (print_operand): Rename to...
3434 (ix86_print_operand): ...this. Make static.
3435 (print_operand_address): Rename to...
3436 (ix86_print_operand_address): ...this. Make static. Call
3437 ix86_print_operand instead of PRINT_OPERAND.
3438 (ix86_print_operand_punct_valid_p): New function.
3439 (TARGET_PRINT_OPERAND): Define.
3440 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3441 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3442 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3443 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3444 (PRINT_OPERAND): Delete.
3445 (PRINT_OPERAND_ADDRESS): Delete.
3446 * config/i386/i386-protos.h (print_operand): Delete prototype.
3447 (print_operand_address): Delete prototype.
3449 2010-06-03 Richard Guenther <rguenther@suse.de>
3451 PR tree-optimization/44403
3452 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3453 Preserve pointer qualifiers.
3454 (vect_create_data_ref_ptr): Likewise.
3456 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3459 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3461 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3463 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3466 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3467 return false if merging the bbs would lead to goto_locus
3468 location being lost from the IL.
3470 2010-06-03 Jan Hubicka <jh@suse.cz>
3471 Jakub Jelinek <jakub@redhat.com>
3473 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3474 set->regs[i] is NULL or has just one entry.
3476 2010-06-03 Jan Hubicka <jh@suse.cz>
3478 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3479 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3481 2010-06-03 Paul Brook <paul@codesourcery.com>
3483 * config/arm/arm.c (FL_TUNE): Define.
3484 (arm_default_cpu, arm_cpu_select): Remove.
3485 (all_cores): Populate core field.
3486 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3487 (arm_find_cpu): New function.
3488 (arm_handle_option): Lookup cpu/architecture names.
3489 (arm_override_options): Cleanup mcpu/march/mtune handling.
3490 (arm_file_start): Ditto.
3492 2010-06-03 Alan Modra <amodra@gmail.com>
3495 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3496 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3497 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3498 (rs6000_emit_load_toc_table): Likewise.
3500 2010-06-02 Jan Hubicka <jh@suse.cz>
3502 * passes.c (init_optimization_passes): Put ipa reference
3503 after ipa pure-const.
3505 2010-06-02 Jan Hubicka <jh@suse.cz>
3507 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3508 calls_read_all and calls_write_all.
3509 (get_reference_optimization_summary): Fix formatting.
3510 (is_proper_for_analysis): Check that decl is not readonly.
3511 (propagate_bits): Check CONST/PURE/noreturn flags.
3512 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3513 (analyze_function): Ignore indirect edges.
3514 (copy_global_bitmap): For all module statics, do nothing.
3515 (generate_summary): Do not print calls_read_all/calls_write_all.
3516 (read_write_all_from_decl): Take node as argument; check
3517 cgraph_node_cannot_return.
3518 (propagate): Reorganize read_all/write_all computation;
3519 check indirect edges; check ecf flags; use all_module_statics
3520 in the results; do not free all_module_statics.
3521 (stream_out_bitmap): Handle all_module_statics.
3522 (ipa_reference_write_optimization_summary): Likewise; use
3523 varpool/cgraph encoders to get boundaries.
3524 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3525 use it when possible.
3527 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3530 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3531 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3533 * doc/extend.texi (powerpc builtins): Document vec_recip,
3534 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3536 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3537 (rs6000_emit_swrsqrt): Ditto.
3538 (rs6000_emit_swdivsf): Delete.
3539 (rs6000_emit_swdivdf): Ditto.
3540 (rs6000_emit_swrsqrtsf): Ditto.
3542 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3543 describe the reciprocal estimate support for each type.
3544 (recip_options): Map -mrecip=<opt> into option bits.
3545 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3546 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3547 reciprocal estimate instructions.
3548 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3549 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3550 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3551 cost information if -mdebug=cost or -mdebug=reg.
3552 (rs6000_override_options): Set -mrecip-precision for power6, and
3553 power7 machines. If -mvsx or -mdfp, enable various options that
3554 came in previous instruction set ISAs, unless the option was
3555 explicitly disabled by the command line option. Parse
3556 -mrecip=<opt> options.
3557 (rs6000_builtin_vectorized_function): Add support for vectorizing
3558 the reciprocal estimate builtins and expansions.
3559 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3560 (bdesc_2arg): Add reciprocal estimate builtins.
3561 (bdesc_1arg): Add reciprocal square root estimate builtins.
3562 (rs6000_expand_builtin): Rewrite to use a switch statement,
3563 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3564 (rs6000_init_builtins): Create declarations for reciprocal
3566 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3567 sized, prefer traditional floating point registers, if integer
3568 vector types, prefer altivec registers. Don't actually look at
3569 the memory address any more.
3570 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3572 (rs6000_load_constant_and_splat): New helper function to load up
3573 the constant for reciprocal estimate instructions.
3574 (rs6000_emit_madd): New helper function for generating
3575 multiply/add type instructions, based on the current switches.
3576 (rs6000_emit_msub): Ditto.
3577 (rs6000_emit_mnsub): Ditto.
3578 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3579 replace a divide with a reciprocal estimate and fixup, adding
3580 support for machines with high precision and vectors.
3581 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3582 low precision machines.
3583 (rs6000_emit_swdiv): New common function to be called to replace a
3584 division with reciprocal estimate and fixup.
3585 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3586 for double and vector types. Add support for high precision machines.
3588 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3589 the reciprocal estimate instructions can be generated.
3590 (TARGET_FRE): Ditto.
3591 (TARGET_FRSQRTES): Ditto.
3592 (TARGET_FRSQRTE): Ditto.
3593 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3595 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3596 square root estimate on vectors.
3597 (re<mode>2): New insn for reciprocal division estimate on vectors.
3599 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3601 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3602 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3603 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3604 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3605 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3606 (RS6000_BUILTIN_RSQRT): Ditto.
3607 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3608 floating point builtin.
3610 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3611 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3612 __RECIP_PRECISION__ based on the command line switches.
3613 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3615 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3616 replacing division instructions with reciprocal estimate and fixup.
3617 (-mrecip=<opt>): New option.
3618 (-mrecip-precision): Ditto.
3620 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3621 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3622 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3625 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3626 (UNSPEC_VREFP): Ditto.
3627 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3628 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3629 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3630 reciprocal estimate instructions to be generated.
3631 (altivec_vrefp): Ditto.
3633 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3635 (rreg): New mode attribute for reciprocal estimate support.
3636 (recip<mode>3): New insn for division using reciprocal estimate
3638 (divide define_split): New define_split to convert floating point
3639 division to use reciprocal estimate if the user used the
3640 appropriate options and the split is run when we can add new
3641 pseudo registers for the fixup.
3642 (rsqrt<mode>2): New insn for reciprocal square root support.
3643 (recipsf3): Move into recip<mode>3.
3645 (fres): Use TARGET_FRES.
3646 (rsqrtsf2): Move into rsqrt<mode>2.
3647 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3648 (copysignsf3): Add support for VSX.
3649 (fred): Use TARGET_FRE.
3651 (rsqrtdf_internal1): New function for frsqrte instruciton.
3653 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3656 2010-06-03 Richard Guenther <rguenther@suse.de>
3659 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3660 (set_user_assembler_libfunc): Likewise.
3662 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3664 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3666 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3668 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3669 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3670 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3671 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3672 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3673 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3674 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3675 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3676 * defaults.h: Updated for above mentioned changes.
3678 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3680 * c-common.c: Remove header include of tm_p.h.
3681 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3683 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3685 * tree.h (struct tree_decl_map): New type.
3686 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3687 (tree_decl_map_hash): New prototype.
3688 (debug_expr_for_decl, value_expr_for_decl): Change into
3689 tree_decl_map hashtab from tree_map.
3690 (init_ttree): Adjust initialization.
3691 (tree_decl_map_hash): New function.
3692 (decl_debug_expr_lookup, decl_debug_expr_insert,
3693 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3695 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3697 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3699 * configure: Regenerate.
3700 * config.in: Regenerate.
3702 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3703 (X86_64_EMULATION): Define.
3704 (TARGET_LD_EMULATION): Use them.
3706 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3707 (SPARC64_EMULATION): Define.
3708 (LINK_ARCH_SPEC): Use them.
3710 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3712 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3713 smallest_mode_for_size for computing the precision types of new
3714 graphite IVs. Do not call lang_hooks.types.type_for_size.
3716 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3718 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3720 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3722 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3725 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3726 return false instead.
3728 2010-06-02 Jan Hubicka <jh@suse.cz>
3731 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3732 create new cgraph node to check callee.
3734 2010-06-02 Richard Guenther <rguenther@suse.de>
3736 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3738 2010-06-02 Richard Guenther <rguenther@suse.de>
3740 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3741 (lto_wrapper_cleanup): ... this. Do not exit.
3742 (fatal): Adjust. Exit here.
3743 (fatal_perror): Likewise.
3744 (fatal_signal): New function.
3745 (main): Set up signal handlers to cleanup temporary files.
3746 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3748 2010-06-02 Richard Guenther <rguenther@suse.de>
3750 PR tree-optimization/44377
3751 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3753 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3755 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3756 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3757 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3758 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3760 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3762 2010-06-02 Jan Hubicka <jh@suse.cz>
3764 * bitmap.c (bitmap_descriptor): Add search_iter.
3765 (bitmap_find_bit): Increment it.
3766 (print_statistics): Print it.
3768 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3770 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3771 instead of gimple_build_call_vec. Delete unnecessary local variable.
3773 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3775 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3776 change from yesterday.
3778 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3780 * c-ada-spec.c: Clean up redundant includes.
3782 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3784 * gimplify.c: Do not include except.h and optabs.h.
3785 (gimplify_body): Do not initialize RTL profiling.
3786 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3787 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3788 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3789 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3792 * tree-pretty-print.h: Include pretty-print.h.
3793 * gimple-pretty-print.h: Include pretty-print.h.
3795 * tree-pretty-print.c: Do not include diagnostic.h.
3796 * tree-vrp.c: Likewise.
3797 * tree-tailcall.c: Likewise
3798 * tree-scalar-evolution.c: Likewise
3799 * tree-ssa-dse.c: Likewise
3800 * tree-chrec.c: Likewise
3801 * tree-ssa-sccvn.c: Likewise
3802 * tree-ssa-copyrename.c: Likewise
3803 * tree-nomudflap.c: Likewise
3804 * tree-call-cdce.c: Likewise
3805 * tree-stdarg.c: Likewise
3806 * tree-ssa-math-opts.c: Likewise
3807 * tree-nrv.c: Likewise
3808 * tree-ssa-sink.c: Likewise
3809 * tree-browser.c: Likewise
3810 * tree-ssa-loop-ivcanon.c: Likewise
3811 * tree-ssa-loop.c: Likewise
3812 * tree-parloops.c: Likewise
3813 * tree-ssa-address.c: Likewise
3814 * tree-ssa-ifcombine.c: Likewise
3815 * tree-if-conv.c: Likewise
3816 * tree-data-ref.c: Likewise
3817 * tree-affine.c: Likewise
3818 * tree-ssa-phiopt.c: Likewise
3819 * tree-ssa-coalesce.c: Likewise
3820 * tree-ssa-pre.c: Likewise
3821 * tree-ssa-live.c: Likewise
3822 * tree-predcom.c: Likewise
3823 * tree-ssa-forwprop.c: Likewise
3824 * tree-ssa-dce.c: Likewise
3825 * tree-ssa-ter.c: Likewise
3826 * tree-ssa-loop-prefetch.c: Likewise
3827 * tree-optimize.c: Likewise
3828 * tree-ssa-phiprop.c: Likewise
3829 * tree-object-size.c: Likewise
3830 * tree-outof-ssa.c: Likewise
3831 * tree-ssa-structalias.c: Likewise
3832 * tree-switch-conversion.c: Likewise
3833 * tree-ssa-reassoc.c: Likewise
3834 * tree-ssa-operands.c: Likewise
3835 * tree-vectorizer.c: Likewise
3836 * tree-vect-data-refs.c: Likewise
3837 * tree-vect-generic.c: Likewise
3838 * tree-vect-stmts.c: Likewise
3839 * tree-vect-patterns.c: Likewise
3840 * tree-vect-slp.c: Likewise
3841 * tree-vect-loop.c: Likewise
3842 * tree-ssa-loop-ivopts.c: Likewise
3843 * tree-ssa-loop-im.c: Likewise
3844 * tree-ssa-loop-niter.c: Likewise
3845 * tree-ssa-loop-unswitch.c: Likewise
3846 * tree-ssa-loop-manip.c: Likewise
3847 * tree-ssa-loop-ch.c: Likewise
3848 * tree-dump.c: Likewise
3849 * tree-complex.c: Likewise
3851 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3852 * tree-ssa-uninit.c: Likewise
3853 * tree-ssa-threadupdate.c: Likewise
3854 * tree-ssa-uncprop.c: Likewise
3855 * tree-ssa-ccp.c: Likewise
3856 * tree-ssa-dom.c: Likewise
3857 * tree-ssa-propagate.c: Likewise
3858 * tree-ssa-alias.c: Likewise
3859 * tree-dfa.c: Likewise
3860 * tree-cfgcleanup.c: Likewise
3861 * tree-sra.c: Likewise
3862 * tree-ssa-copy.c: Likewise
3863 * tree-ssa.c: Likewise
3864 * tree-profile.c: Likewise
3865 * tree-cfg.c: Likewise
3866 * tree-ssa-threadedge.c: Likewise
3867 * tree-vect-loop-manip.c: Likewise
3869 * tree-inline.c: Do not include diagnostic.h and expr.h.
3871 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3873 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3874 * tree-loop-distribution.c: Likewise.
3876 2010-06-01 Jan Hubicka <jh@suse.cz>
3878 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3880 2010-06-01 Jan Hubicka <jh@suse.cz>
3882 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3883 remove return value.
3884 (split_bbs_on_noreturn_calls) .... here.
3885 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3886 * tree-flow.h (fixup_noreturn_call): New.
3888 2010-06-01 Jan Hubicka <jh@suse.cz>
3890 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3892 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3894 * tree.h (build_nt_call_list): Delete.
3895 * tree.c (build_nt_call_list): Delete.
3897 2010-06-01 Jan Hubicka <jh@suse.cz>
3899 * fwprop.c: Make emit-rtl.h include last.
3900 * rtlanal.c: Include emit-rtl.h.
3901 * genautomata.c: Output emit-rtl include into insn-automata.c
3902 * df-scan.c: Include emit-rtl.h.
3903 * haifa-sched.c: Indlude emit-rtl.h.
3904 * mode-switching.c: Indlude emit-rtl.h.
3905 * graph.c: Indlude emit-rtl.h.
3906 * sel-sched.c: Include emit-rtl.h.
3907 * sel-sched-ir.c: Include emit-rtl.h.
3908 * ira-build.c: Include emit-rtl.h.
3909 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3910 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3912 (set_new_first_and_last_insn, get_last_insn_anywhere,
3913 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3914 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3915 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3916 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3917 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3918 Use accessor functions.
3919 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3920 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3921 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3922 mem_expr_equal_p): Move here from rtl.h.
3923 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3924 Move here from emit-rtl.c; make inline.
3925 * cfglayout.h: Include emit-rtl.h.
3926 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3927 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3928 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3929 mem_expr_equal_p, get_insns, set_first-insn,
3930 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3931 * reg-stack.c: Include emit-rtl.h.
3934 2010-06-01 Jan Hubicka <jh@suse.cz>
3936 * cgraph.h (tree_function_versioning): Update prototype.
3937 (cgraph_function_versioning): Update prototype.
3938 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3940 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3941 (cgraph_materialize_clone, save_inline_function_body): Update use of
3942 tree_function_versioning.
3943 * tree-inline.c (copy_bb): Look for previous copied block to link
3944 after; fix debug output.
3945 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3946 (copy_body): Likewise.
3947 (expand_call_inline): Update use of copy_body.
3948 (tree_function_versioning): Update use of copy body; accept
3949 blocks_to_copy and new_entry.
3951 2010-06-01 Jan Hubicka <jh@suse.cz>
3953 * gegenrtl.c: Remove unnecesary prototypes.
3955 (gendef): Produce static inline.
3957 (main): Do not decode parameters; generate header only.
3958 * Makefile.in (genrtl.c): Remove.
3960 2010-06-01 Jan Hubicka <jh@suse.cz>
3962 * tree-switch-conversion.c (build_one_array): Make it readonly.
3964 2010-06-01 Richard Guenther <rguenther@suse.de>
3966 * optabs.c (init_optabs): Guard all accesses to reinit.
3967 * ipa-pure-const.c (propagate): Fix another typo.
3968 * opts.c (common_handle_option): Split assignment to bool.
3969 * c-opts.c (c_common_handle_option): Likewise.
3971 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3972 Matthew Gingell <gingell@adacore.com>
3974 * doc/invoke.texi: Mention -fdump-ada-spec.
3975 * tree-dump.c (dump_files): Add ada-spec.
3976 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3977 * tree-pass.h (tree_dump_index): Add TDI_ada.
3978 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3979 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3980 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3981 * c-decl.c: Include c-ada-spec.h.
3982 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3984 (c_write_global_declarations): Add handling of -fdump-ada-spec.
3985 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3986 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3987 * c-ada-spec.h, c-ada-spec.c: New files.
3989 2010-06-01 Richard Guenther <rguenther@suse.de>
3992 * ipa-pure-const.c (get_function_state): Hand back varying state
3993 if we do not have one.
3994 (has_function_state): New function.
3995 (duplicate_node_data): Adjust.
3996 (remove_node_data): Likewise.
3997 (pure_const_write_summary): Likewise.
3998 (propagate): Likewise. Fix typo.
4000 2010-06-01 Jan Hubicka <jh@suse.cz>
4002 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4003 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4004 (execute_all_ipa_transforms): Do not play with the states.
4006 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4008 * config/arm/t-linux-androideabi: New.
4009 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4011 2010-06-01 Jan Hubicka <jh@suse.cz>
4013 * tree-inline.c (estimate_num_insns): For stdarg functions look
4014 into call statement to count cost of argument passing.
4016 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4018 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4019 argument for fprintf.
4020 (ix86_output_addr_diff_elt): Likewise.
4021 (x86_function_profiler): Likewise.
4022 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4023 (LPREFIX): Likewise.
4024 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4026 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4029 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4030 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4031 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4032 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4033 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4034 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4035 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4036 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4039 2010-05-31 Jan Hubicka <jh@suse.cz>
4041 * tree.h (tree_range_check_failed): Declare noreturn.
4043 2010-05-31 Jan Hubicka <jh@suse.cz>
4045 * gimple.c (gimple_call_builtin_p): New function.
4046 * gimple.h (gimple_call_builtin_p): Declare.
4047 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4049 (execute_warn_function_return): BUILT_IN_RETURN is return.
4050 (split_critical_edges): Return edges are not critical.
4051 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4052 (gimple_verify_flow_info): Handle built_in_return.
4053 (execute_warn_function_return): Handle built_in_return.
4054 * ipa-pure-const.c (check_call): Ignore builtin_return.
4056 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4059 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4060 array accesses with non-MEM.
4062 PR tree-optimization/44182
4063 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4064 newly needs to end a bb is followed by debug stmts, instead return
4065 true from the function at the end.
4066 (maybe_move_debug_stmts_to_successors): New function.
4067 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4069 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4072 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4074 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4076 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4077 for nested functions in non-optimized compilation.
4079 2010-05-31 Richard Guenther <rguenther@suse.de>
4081 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4083 2010-05-30 Jan Hubicka <jh@suse.cz>
4085 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4087 2010-05-30 Richard Guenther <rguenther@suse.de>
4090 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4091 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4094 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4096 * config/darwin.c (output_objc_section_asm_op): Add comment.
4097 (name_needs_quotes): Add '_' to list of valid comment chars.
4098 (machopic_output_function_base_name): Remove unneeded quotes.
4099 (darwin_encode_section_info): Adjust asm whitespace.
4100 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4101 (ASM_OUTPUT_LOCAL): Ditto.
4102 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4103 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4104 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4106 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4108 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4109 RS6000_OUTPUT_BASENAME unconditionally.
4110 (rs6000_output_function_epilogue): Likewise.
4112 2010-05-30 Jan Hubicka <jh@suse.cz>
4114 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4117 2010-05-30 Richard Guenther <rguenther@suse.de>
4119 * tree-cfg.c (verify_gimple_assign_single): Implement
4120 verification for COND_EXPR rhs.
4122 2010-05-30 Jan Hubicka <jh@suse.cz>
4124 * cgraph.h (cgraph_dump_file): Declare.
4125 * cgraphunit.c (cgraph_dump_file): Export.
4126 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4128 2010-05-30 Jan Hubicka <jh@suse.cz>
4130 * dwarf2out.c (reference_to_unused,
4131 premark_types_used_by_global_vars_helper): Avoid creation of new
4134 2010-05-30 Jan Hubicka <jh@suse.cz>
4136 * cgraph.h (cgraph_node_cannot_return,
4137 cgraph_edge_cannot_lead_to_return): New functions.
4138 * cgraph.c (cgraph_node_cannot_return,
4139 cgraph_edge_cannot_lead_to_return): Use them.
4140 * ipa-pure-const.c (pure_const_names): New static var.
4141 (check_call): Handle calls not leading to return.
4142 (pure_const_read_summary): Dump info read.
4143 (propagate): Dump info about propagation process; ignore side effects
4144 of functions not leading to exit; fix handling of pure functions.
4146 2010-05-30 Jan Hubicka <jh@suse.cz>
4148 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4149 for tail call epilogues.
4151 2010-05-30 Jan Hubicka <jh@suse.cz>
4153 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4154 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4157 2010-05-29 Jan Hubicka <jh@suse.cz>
4159 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4160 node; remove references in node we no longer keep in cgrpah but need
4163 2010-05-29 Jan Hubicka <jh@suse.cz>
4165 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4167 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4170 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4172 2010-05-29 Jan Hubicka <jh@suse.cz>
4174 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4175 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4176 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4177 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4178 debug_names_replaced_by, debug_update_ssa): Likewise.
4179 * sbitmap.c (debug_sbitmap): Likewise.
4180 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4181 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4182 debug_tree_chain): Likewise.
4183 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4184 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4185 * optabs.c (debug_optab_libfuncs): Likewise.
4186 (verify_loop_closed_ssa): Likewise.
4187 * value-prof.c (verify_histograms): Likewise.
4188 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4189 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4190 * cfghooks.c (verify_flow_info): Likewise.
4191 * fold-const.c (debug_fold_checksum): Likewise.
4192 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4193 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4195 * omega.c (debug_omega_problem): Likewise.
4196 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4197 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4198 * dominance.c (verify_dominators, debug_dominance_info,
4199 debug_dominance_tree): Likewise.
4200 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4201 * df_regno_debug, df_ref_debug,
4202 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4203 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4204 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4205 * sel-sched.c (debug_state): Likewise.
4206 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4208 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4209 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4210 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4211 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4213 * c-pretty-print.c (debug_c_tree): Likewise.
4214 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4215 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4216 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4217 * ebitmap.c (debug_ebitmap): Likewise.
4218 * function.c (debug_find_var_in_block_tree): Likewise.
4219 * print-rtl.c (debug_rtx): Likewise.
4220 (debug_rtx_count): Likewise.
4221 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4222 * stor-layout.c (debug_rli): Likewise.
4223 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4224 * tree-data-ref.c (debug_data_references,
4225 debug_data_dependence_relations, debug_data_reference,
4226 debug_data_dependence_relation, debug_rdg_vertex,
4227 debug_rdg_component, debug_rdg): Likewise.
4228 * tree-affine.c (debug_aff): Likewise.
4229 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4231 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4232 * emit-rtl.c (verify_rtl_sharing): Likewise.
4233 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4234 debug_value_expressions): Likewise.
4235 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4236 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4237 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4238 * cfglayout.c (verify_insn_chain): Likewise.
4239 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4240 debug_clast_stmt, debug_generated_program): Likewise.
4241 * ggc-page.c (debug_print_page_list): Likewise.
4242 * tree-ssa-ter.c (debug_ter): Likewise.
4243 * graphite-dependences.c (debug_pddr): Likewise.
4244 * sched-deps.c (debug_ds): Likewise.
4245 * tree-ssa.c (verify_ssa): Likewise.
4246 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4247 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4248 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4249 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4250 * tree-inline.c (debug_find_tree): Likewise.
4251 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4252 debug_ppl_powerset_matrix): Likewise.
4253 * var-tracking.c (debug_dv): Likewise.
4254 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4255 * cfgloop.c (verify_loop_structure): Likewise.
4256 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4257 * c-common.c (verify_sequence_points): Likewise.
4258 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4259 debug_candidates, debug_rgn_dependencies): Likewise.
4260 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4261 * debug_constraint_graph, debug_solution_for_var,
4262 debug_sa_points_to_info): Likewise.
4263 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4265 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4266 debug_loops, debug_loop, debug_loop_num): Likewise.
4267 * passes.c (debug_pass): Likewise.
4268 (dump_properties): Likewise; add cfglayout property.
4269 (debug_properties): Likewise.
4270 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4271 * varpool.c (debug_varpool): Likewise.
4272 * regcprop.c (debug_value_data): Likewise.
4273 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4274 debug_immediate_uses_for): Likewise.
4276 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4279 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4280 Filter out insn-flags.h.
4282 2010-05-29 Jan Hubicka <jh@suse.cz>
4284 * cgraph.h (struct varpool_node_set_def,
4285 struct cgraph_node_set_def): Remove unused AUX pointer.
4286 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4289 2010-05-29 Jan Hubicka <jh@suse.cz>
4292 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4294 2010-05-29 Richard Guenther <rguenther@suse.de>
4296 * lto-streamer.c (cached_bp): New global variable.
4297 (bitpack_create): Return the cached bitpack, if available.
4298 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4299 (bp_pack_value): Remove redundant asserts.
4301 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4304 * tree-if-conv.c (is_true_predicate): New.
4305 (is_predicated): Use is_true_predicate.
4306 (add_to_predicate_list): Same. Do not use unshare_expr.
4307 (add_to_dst_predicate_list): Same.
4309 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4311 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4313 (predicate_bbs): Same.
4314 (clean_predicate_lists): Same.
4315 (find_phi_replacement_condition): Do not AND the predicate from
4318 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4321 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4323 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4326 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4327 (negdf2): Adjust expander pattern and use negdf2_slow.
4330 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4332 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4334 * df.h (struct df_base_ref): Move regno field up.
4335 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4336 * expr.h (struct separate_ops): Move location field up.
4337 * optabs.h (struct optab_d): Move libcall_basename field down.
4338 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4339 * config/i386/i386.h (struct machine_function): Convert call_abi field
4340 into a bitfield. Move cfa field to the end of the structure.
4342 2010-05-29 Jan Hubicka <jh@suse.cz>
4344 * varpool.c (varpool_get_node): Fix lookup.
4346 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4348 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4349 RTL specific prototypes with #ifdef RTX_CODE.
4350 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4351 * config/spu/t-spu-elf: Fix dependencies.
4353 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4355 2010-05-29 Mike Stump <mikestump@comcast.net>
4358 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4359 TM_H when building to avoid dependency loops.
4361 2010-05-29 Jan Hubicka <jh@suse.cz>
4363 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4364 refs and body; not the whole node for masters of materialized clones.
4366 2010-05-29 Mike Stump <mikestump@comcast.net>
4368 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4370 2010-05-29 Jan Hubicka <jh@suse.cz>
4372 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4373 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4374 use of clone_function_name.
4375 * cgraph.h (cgraph_create_virtual_clone,
4376 cgraph_function_versioning): update prototypes.
4377 (clone_function_name): Declare.
4378 * ipa-cp.c (ipcp_insert_stage): Update call of
4379 cgraph_create_virtual_clone.
4380 * omp-low.c (create_omp_child_function_name): Use
4381 cgraph_create_virtual_clone.
4382 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4383 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4384 and make decl local.
4386 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4388 * vec.h: Include statistics.h
4389 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4392 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4394 * c-lex.c: Do not include c-tree.h.
4395 * c-pretty-print.c: Likewise.
4396 * c-opts.c: Likewise.
4397 * c-gimplify.c: Likewise.
4398 * c-common.c: Likewise.
4399 * c-dump.c: Likewise. Include c-common.h.
4401 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4403 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4404 before including diagnostic-core.h.
4405 (c_cpp_error): New prototype moved from c-tree.h.
4406 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4407 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4408 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4409 (c_cpp_error): Prototype moved to c-common.h.
4410 * Makefile.in: Update dependency for C_COMMON_H.
4412 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4414 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4415 * c-common.c (c_register_addr_space): Remove here.
4416 * c-decl.c (c_register_addr_space): Re-add here.
4418 2010-05-28 Mike Stump <mikestump@comcast.net>
4420 * config/darwin-c.c: Remove c-tree.h include.
4422 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4424 * gcc.c: Include diagnostic.h.
4425 (error_count): Remove. All users changed to use errorcount.
4426 (programname): Remove. All users changed to use progname.
4427 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4429 (execute): Don't include "Internal error" and bug reporting
4430 information in argument of internal_error call.
4431 (process_command): Don't increment error_count after calling
4433 (input_filename): Rename to gcc_input_filename. All users
4435 (main): Call diagnostic_initialize. Register delete_temp_files
4436 with atexit. Use seen_error to test for errors.
4437 * gcc.h: Include diagnostic-core.h.
4438 (fatal_error, error, warning): Remove.
4439 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4440 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4441 (gcc.o): Update dependencies.
4443 2010-05-28 Jeff Law <law@redhat.com>
4445 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4447 * ira.h (ira_bad_reload_regno): Declare
4448 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4450 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4451 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4452 (allocno_reload_assign): Likewise.
4454 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4456 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4459 2010-05-28 Richard Guenther <rguenther@suse.de>
4462 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4463 Stream fixed-point constants mode.
4464 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4466 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4467 Stream fixed-point constants mode.
4468 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4471 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4473 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4474 only place it was called from.
4475 (number_of_latch_executions): Do not return chrec_dont_know when the
4476 may_be_zero is a runtime condition: instead, return a COND_EXPR
4477 including the may_be_zero condition.
4478 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4480 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4483 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4485 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4486 generate COND_EXPRs for degenerate_phi_result.
4488 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4491 * tree-if-conv.c (if_convertible_loop_p): Check the
4492 if-convertibility of phi nodes in non predicated BBs.
4494 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4496 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4498 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4501 * gcc.c (inform, warning, inform): New functions.
4502 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4503 gmsgid. All callers changed.
4504 (notice): Rename to fnotice; add parameter fp. All callers changed.
4505 (fatal_error): Rename to fatal_signal. All users changed.
4506 (fatal): Rename to fatal_error; change cmsgid parameter to
4507 gmsgid. All callers changed.
4508 (process_command): Use warning instead of error for warnings.
4509 (end_going_arg): Don't use _() around argument of error.
4510 (do_spec_1): Use inform for message from %n specs. Use warning
4511 instead of error for warnings.
4512 (main): Use inform for comparison messages. Use warning for
4513 message about unused linker input.
4514 (error): Increment error_count. Print "error: ".
4515 * gcc.h (fatal): Change to fatal_error.
4517 * config/darwin-driver.c (darwin_default_min_version): Use warning
4518 instead of fprintf for warnings.
4519 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4521 2010-05-28 Julian Brown <julian@codesourcery.com>
4523 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4524 (*thumb2_addsi3_compare0_scratch): New.
4525 * config/arm/constraints.md (Pv): New.
4526 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4528 (*addsi3_compare0_scratch): Likewise.
4530 2010-05-28 Jan Hubicka <jh@suse.cz>
4532 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4534 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4535 only on local statics.
4537 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4539 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4541 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4544 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4545 (OPTION_GLIBC): Define.
4547 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4550 * dwarf2out.c (double_int_type_size_in_bits): New function.
4551 (round_up_to_align): Change first argument and return value to
4553 (field_byte_offset): Work internally on double_ints.
4556 * builtins.c (expand_movstr): Use a temporary pseudo instead
4557 of target even when target is not NULL and not const0_rtx, but
4558 fails movstr predicate.
4559 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4561 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4563 * final.c (rest_of_clean_state): Use %m in errors instead of
4565 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4566 instead of strerror.
4567 * toplev.c (process_options): Use %m in errors instead of strerror
4569 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4572 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4574 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4575 (ix86_canonical_va_list_type): Make static. Add declaration.
4576 (ix86_enum_va_list): Make static. Reindent.
4577 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4578 (ix86_canonical_va_list_type): Ditto.
4579 (ix86_enum_va_list): Ditto.
4581 2010-05-28 Richard Guenther <rguenther@suse.de>
4583 * lto-wrapper.c (run_gcc): With -save-temps generate a
4584 user-visible ltrans filename. Fixup ltrans unit numbering.
4586 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4588 * c-common.c (c_common_nodes_and_builtins): Replace use
4589 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4590 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4591 to ix86_enum_va_list.
4592 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4593 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4594 (TARGET_ENUM_VA_LIST_P): Add hook description.
4595 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4596 * target.h (gcc_target): Add enum_va_list hook.
4599 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4600 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4601 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4603 2010-05-28 Alan Modra <amodra@gmail.com>
4606 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4607 emit_library_call machinery to set up __tls_get_addr calls.
4609 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4611 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4613 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4615 Revert fix for PR c++/44188
4616 * c-common.c (is_typedef_decl): Revert the moving of this
4618 * tree.c (is_typedef_decl): ... here.
4619 (typdef_variant_p): Revert the moving of this definition
4620 here from gcc/cp/tree.c.
4621 * c-common.h (is_typedef_decl): Revert the moving of this
4623 * tree.h (is_typedef_decl): ... here.
4624 (typedef_variant_p): Revert the moving of this declaration here
4625 from gcc/cp/cp-tree.h
4626 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4627 (gen_tagged_type_die): Revert the splitting out of ...
4628 (gen_type_die_with_usage): ... this function. Revert the anonymous
4629 tagged type handling.
4630 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4631 typedefs naming anonymous tagged types.
4633 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4635 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4637 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4639 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4640 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4642 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4644 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4645 XER_REGS to CA_REGS throughout.
4646 * config/rs6000/rs6000.h: Same.
4647 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4648 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4649 that mode_iterator "P" is the size for arithmetic carries as well.
4650 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4652 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4655 * combine.c (struct rtx_subst_pair): Define unconditionally.
4656 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4657 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4658 Call make_compound_operation on pair->to.
4659 (propagate_for_debug): Don't call make_compound_operation here.
4660 Always use simplify_replace_fn_rtx.
4662 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4664 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4665 * config/xtensa/xtensa.c (override_options): Check
4666 TARGET_FORCE_NO_PIC and set flag_pic.
4667 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4669 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4672 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4673 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4675 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4677 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4679 * diagnostic.c: Don't include toplev.h.
4680 (progname): Define. Moved from toplev.c.
4681 (seen_error): New function.
4682 * diagnostic.h: Include diagnostic-core.h.
4683 (diagnostic_t, emit_diagnostic): Don't declare here.
4684 * toplev.c (progname): Move to toplev.c.
4685 (emit_debug_global_declarations, compile_file, finalize,
4686 do_compile, toplev_main): Use seen_error.
4687 * toplev.h: Include diagnostic-core.h.
4688 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4689 internal_error, warning, warning_at, error, error_n, error_at,
4690 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4691 verbatim, fnotice, progname): Move to diagnostic-core.h.
4692 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4693 (expand_builtin_expect): Use seen_error.
4694 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4695 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4696 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4697 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4698 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4699 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4700 errorcount for errors.
4701 * c-opts.c (c_common_finish): Use seen_error.
4702 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4703 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4704 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4705 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4706 (get_coverage_counts): Use seen_error.
4707 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4708 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4709 gimplify_body): Use seen_error.
4710 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4711 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4712 * ipa-reference.c (gate_reference): Use seen_error.
4713 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4714 * lambda-code.c: Include diagnostic-core.h instead of
4716 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4717 * lto-compress.c: Include diagnostic-core.h instead of
4719 * lto-section-in.c: Include diagnostic-core.h instead of
4721 * lto-streamer-out.c: Include diagnostic-core.h instead of
4723 * lto-streamer.c: Include diagnostic-core.h instead of
4725 (gate_lto_out): Use seen_error.
4726 * matrix-reorg.c: Include diagnostic-core.h instead of
4728 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4729 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4730 (gate_expand_omp, lower_omp_1): Use seen_error.
4731 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4732 (rest_of_decl_compilation, rest_of_type_compilation,
4733 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4734 * tree-cfg.c (label_to_block_fn): Use seen_error.
4735 * tree-inline.c (optimize_inline_calls): Use seen_error.
4736 * tree-mudflap.c (mudflap_finish_file): Use
4738 * tree-optimize.c (gate_all_optimizations,
4739 gate_all_early_local_passes, gate_all_early_optimizations): Use
4741 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4742 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4743 (varpool_remove_unreferenced_decls,
4744 varpool_assemble_pending_decls): Use seen_error.
4745 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4746 (TOPLEV_H, DIAGNOSTIC_H): Update.
4747 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4748 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4749 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4750 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4751 coverage.o, lambda-code.o): Update dependencies.
4753 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4756 * c-common.c (is_typedef_decl): Move this definition ...
4757 * tree.c (is_typedef_decl): ... here.
4758 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4759 * c-common.h (is_typedef_decl): Move this declaration ...
4760 * tree.h (is_typedef_decl): ... here.
4761 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4762 * dwarf2out.c (is_naming_typedef_decl): New function.
4763 (gen_tagged_type_die): Split out of ...
4764 (gen_type_die_with_usage): ... this function. When an anonymous
4765 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4766 is emitted for the typedef.
4767 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4768 anonymous tagged types.
4770 2010-05-27 Jason Merrill <jason@redhat.com>
4772 * print-tree.c (debug_vec_tree): New fn.
4773 (print_vec_tree): New fn.
4774 * tree.h: Declare them.
4775 * gdbinit.in (pvt): New command.
4777 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4779 * gdbinit.in (pdd): New command.
4781 2010-05-27 Jan Hubicka <jh@suse.cz>
4783 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4784 (update_caller_keys): Return early if there are no callers;
4785 only update fibheap when decresing the key.
4786 (update_callee_keys): Avoid recursion.
4787 (decide_inlining_of_small_functions): When badness does not match;
4788 re-insert into fibheap.
4790 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4792 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4793 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4794 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4795 (ALL_HOST_OBJS): Now a union of the above two.
4796 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4797 all files in ALL_HOST_FRONTEND_OBJS.
4798 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4800 * c-common.c: Pretend to be a backend file by undefining
4801 IN_GCC_FRONTEND (still need rtl.h here).
4803 2010-05-27 Jan Hubicka <jh@suse.cz>
4805 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4806 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4808 2010-05-27 Jan Hubicka <jh@suse.cz>
4810 * sched-ebb.c: Rename struct deps to struct deps_desc.
4812 * sel-sched-ir.c: Likewise.
4813 * sched-deps.c: Likewise.
4814 * sched-int.h: Likewise.
4815 * sched-rgn.c: Likewise.
4817 2010-05-27 Jon Beniston <jon@beniston.com>
4820 * config/lm32/lm32.h: Remove definition of
4821 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4823 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4826 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4828 2010-05-27 Richard Guenther <rguenther@suse.de>
4830 PR tree-optimization/44284
4831 * tree-vect-stmts.c (vectorizable_assignment): Handle
4832 sign-changing conversions as simple copy.
4834 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4836 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4838 (__gthread_active_p): Check for pthread_create if compiling against
4841 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4843 Support compilation for Android platform. Reimplement -mandroid.
4845 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4846 (*android*): Set ANDROID_DEFAULT.
4847 (arm*-*-linux*): Include linux-android.h.
4848 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4849 * config/arm/eabi.h: Remove, move Android-specific parts ...
4850 * config/linux-android.h: ... here. New file.
4851 * config/arm/eabi.opt: Rename to ...
4852 * config/linux-android.opt: ... this.
4853 (mandroid): Allow -mno-android option. Initialize based on
4855 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4856 Move logic to corresponding LINUX_TARGET_* macros.
4857 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4858 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4859 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4860 Android definitions.
4861 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4862 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4865 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4867 Add support for Bionic C library
4869 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4871 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4872 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4874 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4875 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4876 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4877 to support multiple C libraries. Handle Bionic.
4878 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4879 (BIONIC_DYNAMIC_LINKER64): Define.
4880 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4882 (TARGET_HAS_SINCOS): Enable for Bionic.
4884 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4885 the last option specified on command line take effect.
4886 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4888 (mglibc, muclibc): Update.
4890 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4891 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4894 * doc/invoke.texi (-mglibc, -muclibc): Update.
4895 (-mbionic): Document.
4897 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4899 * c-common.h (c_register_addr_space): Add prototype.
4900 (ADDR_SPACE_KEYWORD): Remove.
4901 * c-common.c (c_register_addr_space): New function.
4902 (c_addr_space_name): Reimplement.
4903 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4905 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4906 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4908 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4909 Remove TARGET_ADDR_SPACE_KEYWORDS.
4911 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4913 * input.c: New file.
4914 * input.h (main_input_filename): Move declaration to toplev.h.
4915 * toplev.c (input_location, line_table): Move to input.c
4916 * toplev.h (main_input_filename): Move declaration from input.h.
4917 * tree.c (expand_location): Move to input.c.
4918 * Makefile.in (OBJS-common): Add input.o.
4919 (input.o): Add dependencies.
4921 2010-05-27 Richard Guenther <rguenther@suse.de>
4923 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4924 for non-existant files.
4925 (fork_execute): Mark args_name file as deleted.
4927 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4930 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4931 (narrow_signed_type): Likewise.
4933 2010-05-26 Jan Hubicka <jh@suse.cz>
4935 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4936 edge only when checking is enabled; check using former_clone_of;
4937 check inline clones too.
4938 (cgraph_materialize_clone): Record former_clone_of pointer.
4939 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4940 combining redirections; dump args_to_skip bitmap
4941 (cgraph_materialize_all_clones): Do no redirection here.
4942 * ipa-inline.c (inline_transform): Do redirection here.
4943 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4946 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4948 * config/avr/avr-c.c: Do not include regs.h.
4949 Include cpplib.h for cpp_define and tree.h for c-common.h.
4950 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4951 * config/avr/t-avr: Fix dependencies for avr-c.o.
4953 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4955 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4956 string instead of SYMBOL_REF rtx.
4957 * rtl.h (set_stack_check_libfunc): Move prototype from here...
4958 * libfuncs.h: ...to here. Adjust for explow.c change.
4960 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4962 * pretty-print.c: Don't include ggc.h.
4963 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4964 (identifier_to_locale): Use them for allocation.
4965 * pretty-print.h (identifier_to_locale_alloc,
4966 identifier_to_locale_free): Declare.
4967 * toplev.c (alloc_for_identifier_to_locale): New.
4968 (general_init): Set identifier_to_locale_alloc and
4969 identifier_to_locale_free.
4970 * Makefile.in (pretty-print.o): Update dependencies.
4972 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4974 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4975 pointer types if they have different alignment or mode.
4977 2010-05-26 Anatoly Sokolov <aesok@post.ru>
4979 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4980 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4981 * config/sparc/sparc-protos.h (function_value): Remove declaration.
4982 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4983 sparc_function_value_regno_p): New functions.
4984 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4985 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4986 (function_value): Rename to...
4987 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4988 argument to 'outgoing'.
4989 (function_arg_record_value, function_arg_union_value,
4990 function_arg_vector_value): Update comment.
4992 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4994 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4995 (fde_needed_for_eh_p): New predicate.
4996 (output_call_frame_info): Use it throughout to decide whether FDEs
4997 are needed for EH purpose.
4998 (dwarf2out_begin_prologue): Reorder assignments.
5000 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5002 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5003 special case loop->header.
5004 (is_predicated): New.
5005 (if_convertible_loop_p): Call it.
5007 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5009 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5010 iterator in parameter. Do not generate code during the analysis.
5011 (tree_if_convert_cond_stmt): Removed.
5012 (tree_if_convert_stmt): Removed.
5013 (predicate_bbs): New.
5014 (if_convertible_loop_p): Call predicate_bbs.
5015 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5016 now contains all the analysis part.
5018 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5020 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5021 statements in the analysis part.
5022 (tree_if_convert_stmt): Update comment.
5023 (remove_conditions_and_labels): New.
5024 (combine_blocks): Call remove_conditions_and_labels.
5025 (tree_if_conversion): Update comment.
5027 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5029 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5030 than 2 predecessors or more than 2 successors.
5032 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5034 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5035 of loops in which the data dependence analysis fails.
5037 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5039 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5040 CDI_POST_DOMINATORS.
5041 (tree_if_conversion): Same.
5043 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5045 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5047 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5049 * tree-if-conv.c: Update copyright years. Fix comments.
5052 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5054 * builtin-types.def (BT_INT128): New primitive type.
5055 (BT_UINT128): Likewise.
5056 * c-common.c (c_common_r): Add __int128 keyword.
5057 (c_common_type_for_size): Handle __int128.
5058 (c_common_type_for_mode): Likewise.
5059 (c_common_signed_or_unsigned_type): Likewise.
5060 (c_common_nodes_and_builtins): Add builtin type
5061 if target supports 128-bit integer scalar.
5062 * c-common.h (enum rid): Add RID_INT128.
5063 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5064 if target supports 128-bit integer scalar.
5065 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5066 (finish_declspecs): Likewise.
5067 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5068 (c_token_starts_declspecs): Likewise.
5069 (c_parser_declspecs): Likewise.
5070 (c_parser_attributes): Likewise.
5071 (c_parser_objc_selector): Likewise.
5072 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5073 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5074 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5075 * tree.c (make_or_reuse_type): Likewise.
5076 (make_unsigned_type): Likewise.
5077 (build_common_tree_nodes_2): Likewise.
5078 * tree.h (enum integer_type_kind): Add itk_int128 and
5079 itk_unsigned_int128.
5080 (int128_integer_type_node): New define.
5081 (int128_unsigned_type_node): New define.
5082 * doc/extend.texi: Add documentation about __int128 type.
5084 2010-05-26 Richard Guenther <rguenther@suse.de>
5086 * tree-ssa-sccvn.c (copy_nary): Adjust.
5087 (copy_phis): Rename to ...
5088 (copy_phi): ... this. Adjust.
5089 (copy_references): Rename to ...
5090 (copy_reference): ... this. Adjust.
5091 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5092 result into the valid table.
5094 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5096 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5097 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5099 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5101 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5103 2010-05-26 Richard Guenther <rguenther@suse.de>
5105 * opts.c (common_handle_option): Handle OPT_Ofast.
5107 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5109 * diagnostic.c: Don't include opts.h.
5110 (permissive_error_option): Define.
5111 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5112 for classify_diagnostic. Don't use memset for
5113 classify_diagnostic. Initialize new and recently added fields.
5114 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5116 (diagnostic_report_diagnostic): Pass context parameter to
5117 diagnostic_report_warnings_p. Use option_enabled and option_name
5119 (emit_diagnostic): Use permissive_error_option.
5120 (permerror): Likewise.
5121 * diagnostic.h: Don't include options.h.
5122 (struct diagnostic_context): Add n_opts, opt_permissive,
5123 inhibit_warnings, warn_system_headers, option_enabled and
5124 option_name fields. Change classify_diagnostic to a pointer.
5125 * opts-diagnostic.h: New file.
5126 * opts.c: Include opts-diagnostic.h.
5127 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5128 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5129 (option_name): New function.
5130 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5131 (c_common_handle_option): Set global_dc->permissive for
5133 * c-common.c (c_cpp_error): Save and restore
5134 global_dc->warn_system_headers, not variable warn_system_headers.
5135 * toplev.c: Include opts-diagnostic.h.
5136 (general_init): Update call to diagnostic_initialize. Set
5137 global_dc->show_column, global_dc->option_enabled and
5138 global_dc->option_name.
5139 (process_options): Don't set global_dc fields here.
5140 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5141 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5143 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5145 * config/picochip/picochip.md (movsi): Split a movsi from a
5148 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5150 * ggc-zone.c: Update copyright year.
5151 (poison_region): Mark memory for Valgrind as undefined before
5152 memset () call and inaccessible afterwards.
5153 (ggc_pch_total_size): Change type of i to int.
5155 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5157 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5159 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5161 * ggc-common.c: Update copyright year.
5162 (ggc_rlimit_bound): Remove prototype. Compile only if
5163 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5164 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5165 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5166 (ggc_min_heapsize_heuristic): Likewise.
5168 2010-05-26 Richard Guenther <rguenther@suse.de>
5170 PR rtl-optimization/44164
5171 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5172 no-common access-path disambiguation.
5173 (indirect_ref_may_alias_decl_p): Adjust.
5174 (indirect_refs_may_alias_p): Likewise.
5175 (refs_may_alias_p_1): Likewise.
5177 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5179 * c-typeck.c: Do not include expr.h.
5181 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5183 * rtl.h (decl_default_tls_model): Move prototype from here...
5184 * output.h: ...to here.
5185 * c-decl.c: Do not include rtl.h.
5186 * c-pragma.c: Likewise.
5187 * c-parser.c: Likewise.
5188 * c-gimplify.c: Likewise. And also not hard-reg-set.
5189 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5190 FIXME note for it. Add a FIXME note for expr.h.
5191 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5192 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5195 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5198 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5199 or total_size is larger than red zone size for non-V4 ABI, emit a
5200 stack_tie resp. frame_tie insn before stack pointer restore.
5201 * config/rs6000/rs6000.md (frame_tie): New insn.
5203 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5205 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5206 * lto-streamer-in.c (input_function): Stream it in.
5207 * lto-streamer-out.c (output_function): Stream it out.
5208 * function.c (allocate_struct_function): Set it.
5209 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5210 for flag_non_call_exceptions.
5211 * cfgbuild.c (control_flow_insn_p): Likewise.
5212 (make_edges): Likewise.
5213 * cfgexpand.c (expand_stack_alignment): Likewise.
5214 * combine.c (distribute_notes): Likewise.
5215 * cse.c (cse_extended_basic_block): Likewise.
5216 * except.c (insn_could_throw_p): Likewise.
5217 * gcse.c (simple_mem): Likewise.
5218 * ipa-pure-const.c (check_call): Likewise.
5219 (check_stmt ): Likewise.
5220 * lower-subreg.c (lower-subreg.c): Likewise.
5221 * optabs.c (emit_libcall_block): Likewise.
5222 (prepare_cmp_insn): Likewise.
5223 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5224 * postreload.c (rest_of_handle_postreload): Likewise.
5225 * reload1.c (reload_as_needed): Likewise.
5226 (emit_input_reload_insns): Likewise.
5227 (emit_output_reload_insns): Likewise.
5228 (fixup_abnormal_edges): Likewise.
5229 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5230 * store-motion.c (find_moveable_store): Likewise.
5231 * tree-eh.c (stmt_could_throw_p): Likewise.
5232 (tree_could_throw_p): Likewise.
5233 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5234 * config/arm/arm.c (arm_expand_prologue): Likewise.
5235 (thumb1_expand_prologue): Likewise.
5236 * config/rx/rx.md (cbranchsf4): Likewise.
5238 * config/s390/s390.c (s390_emit_prologue): Likewise.
5239 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5240 (inline_forbidden_into_p): New predicate.
5241 (expand_call_inline): Use it to forbid inlining.
5242 (tree_can_inline_p): Likewise.
5244 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5246 * config/i386/i386-c.c: Do not include rtl.h.
5247 * config/i386/t-i386: Update dependencies.
5249 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5251 * attribs.c: Do not include rtl.h.
5252 * Makefile.in: Update dependencies.
5254 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5256 * double-int.h (double_int_and): New.
5257 * combine.c (try_combine): Clean up, use double_int_* and
5258 immed_double_int_const functions.
5260 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5262 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5263 stderr to /dev/null instead of grep -q.
5264 * configure: Regenerate.
5266 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5268 * Makefile.in (EXCEPT_H): Fix typo.
5270 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5272 * ira-build.c (update_conflict_hard_reg_costs): New.
5273 (ira_build): Call update_conflict_hard_reg_costs.
5275 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5278 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5280 (intersect_loc_chains): Walk the s2var's loc_chain together
5281 with s1node chain as long as the locations are equal, don't
5282 call find_loc_in_1pdv in that case.
5285 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5286 (copy_bind_expr): ... instead of here.
5287 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5288 if the block hasn't been remapped.
5289 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5290 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5292 2010-05-25 Richard Guenther <rguenther@suse.de>
5295 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5296 out-of-bounds array accesses.
5298 2010-05-25 Richard Guenther <rguenther@suse.de>
5300 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5301 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5302 (run_gcc): Re-organize to make cleanup easier.
5304 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5306 * config/s390/s390.c (optimization_options): Fix and move the
5307 flag_prefetch_loop_arrays override ...
5308 (override_options): ... here.
5310 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5312 * diagnostic.c: Don't include plugin.h.
5313 (diagnostic_report_diagnostic): Don't handle plugins specially
5314 here. Pass context to internal_error callback.
5315 * diagnostic.h (struct diagnostic_context): Add context parameter
5316 to internal_error callback.
5317 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5318 * plugin.h (struct diagnostic_context): Declare.
5319 (warn_if_plugins, plugins_internal_error_function): Declare.
5320 * toplev.c (general_init): Set global_dc->internal_error.
5321 * Makefile.in (diagnostic.o): Update dependencies.
5323 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5325 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5326 * config/rs6000/t-darwin64: New.
5327 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5330 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5333 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5334 match the original (and intended) behaviour before r159557. This
5335 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5338 2010-05-25 Richard Guenther <rguenther@suse.de>
5340 * doc/invoke.texi: Document -Ofast.
5341 * target.h (struct gcc_target): Add handle_ofast.
5342 * target-def.h (TARGET_HANDLE_OFAST): Add.
5343 (TARGET_INITIALIZER): Adjust.
5344 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5345 * common.opt (Ofast): Add.
5347 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5349 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5350 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5352 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5355 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5356 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5357 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5358 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5360 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5362 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5363 DW_OP_minus with negated offset instead of DW_OP_plus.
5364 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5366 2010-05-25 Wei Guozhi <carrot@google.com>
5368 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5369 tst instruction and a new alternative.
5370 * config/arm/constraints.md (Pu): New constraint.
5372 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5374 * function.c (assign_stack_local_1): Initialize variable
5375 to avoid warning when bootstrapping at -O3.
5377 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5379 * configure.ac (all_lang_makefiles): Remove everything related to it.
5380 * configure: Regenerate.
5381 * Makefile.in: Fix reference to ada Make-lang.in.
5382 Remove support for LANG_MAKEFILES.
5384 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5385 Sandra Loosemore <sandra@codesourcery.com>
5387 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5388 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5389 description. Add arm_neon_fp16_ok.
5390 (Add Options): Add arm_neon and arm_neon_fp16.
5392 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5394 * diagnostic.c: Don't include flags.h.
5395 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5396 context parameters. Check flags in the context passed as a parameter.
5397 (diagnostic_build_prefix): Add context parameter. Check
5398 show_column flag in context.
5399 (diagnostic_action_after_output): Check fatal_errors flag in context.
5400 (diagnostic_report_current_module): Check show_column flag in context.
5401 (default_diagnostic_starter): Update call to
5402 diagnostic_build_prefix.
5403 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5404 (emit_diagnostic): Pass context to permissive_error_kind.
5405 (permerror): Pass context to permissive_error_kind.
5406 * diagnostic.h (struct diagnostic_context): Add show_column,
5407 pedantic_errors, permissive and fatal_errors fields.
5408 (diagnostic_build_prefix): Update prototype.
5410 * toplev.c (process_options): Set flags in global_dc from
5411 flag_show_column, flag_pedantic_errors, flag_permissive,
5413 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5414 to diagnostic_build_prefix.
5415 * Makefile.in (diagnostic.o): Update dependencies.
5417 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5419 * config/i386/ia32intrin.h (__crc32q): Define only if
5420 __SSE4_2__ is defined.
5422 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5426 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5427 DECL_VISIBILITY_SPECIFIED.
5428 (emutls_decl): Set DECL_PRESERVE_P and copy
5429 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5430 (emutls_finalize_control_var): New callback.
5431 (emutls_finish): Finalize emutls control variables.
5432 * toplev.c (compile_file): Move the call to emutls_finish ()
5433 before varpool_assemble_pending_decls ().
5435 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5437 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5438 added to the preprocessor condition.
5440 2010-05-24 Paul Brook <paul@codesourcery.com>
5442 * gengtype-lex.l: Add HARD_REG_SET.
5443 * expr.c (expand_expr_real_1): Record writes to hard registers.
5444 * function.c (rtl_data): Add asm_clobbers.
5445 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5446 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5447 Use crtl->asm_clobbers.
5449 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5451 * doc/makefile.texi (Makefile): Mention stages 'profile'
5452 and 'feedback' for profiledbootstrap.
5454 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5457 * config/i386/i386.c (def_builtin): Properly check
5458 OPTION_MASK_ISA_64BIT.
5460 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5462 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5463 typedefs with different but compatible types. Allow duplicate
5464 typedefs with the same type except for pedantic non-C1X, but give
5465 warning for variably modified types.
5466 * c-typeck.c (tagged_types_tu_compatible_p,
5467 function_types_compatible_p, type_lists_compatible_p,
5468 comptypes_internal): Add parameter different_types_p; set
5469 *different_types_p for different but compatible types. All
5471 (comptypes_check_different_types): New.
5472 * c-tree.h (comptypes_check_different_types): Declare.
5474 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5476 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5477 * jump.c: Include basic-block.h.
5478 * profile.c: Likewise.
5479 * tree-profile.c: Likewise.
5480 * coverage.c: Likewise.
5481 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5482 (optimize_function_for_speed_p): Likewise.
5483 * function.h (optimize_function_for_size_p,
5484 optimize_function_for_speed_p): Moved here from basic-block.h.
5485 * Makefile.in: Update dependencies.
5487 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5489 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5490 before calling make; allow override through $MAKE.
5491 * doc/invoke.texi (Optimize Options): Document override.
5493 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5495 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5496 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5497 (rs6000_mode_dependent_address_ptr): Make static.
5498 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5499 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5502 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5505 * config/i386/i386.c: Make sure that the correct regparm is passed.
5507 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5509 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5510 * sbitmap.c: ...to here to internalize sbitmap element access.
5511 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5512 Explain why basic-block.h is included.
5513 * function.h: Include tm.h for CUMULATIVE_ARGS.
5514 * Makefile.in: Update dependencies.
5516 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5518 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5520 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5521 * sbitmap.c: Include sbitmap.h.
5522 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5523 hard-reg-set.h. Split everything related to regsets out from here...
5524 * regset.h: ...to here. New file.
5525 * df.h: Include regset.h and sbitmap.h.
5526 * tree-flow.h: Likewise.
5527 * cfgloop.h: Likewise.
5528 * except.h: Do not include sbitmap.h. Include hashtab.h.
5529 * cgraph.h: Include vec.h and function.h.
5530 * reload.h (struct insn_chain): Change types of live_throughout
5531 and dead_or_set from regset_head to bitmap_head.
5532 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5533 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5534 spilled_regs from regset_head to bitmap_head to avoid dependency
5536 * sel-sched-ir.h: Include regset.h.
5537 * reload.c: Include df.h before reload.h.
5538 * caller-save.c: Likewise.
5539 * reload1.c: Likewise.
5541 (mark_elimination): Update type of r to bitmap, consistent with
5543 * dominance.c: Include bitmap.h.
5544 * modulo-sched.c: Include df.h.
5545 * cfganal.c: Include bitmap.h and sbitmap.h.
5546 * cfgbuild.c: Include sbitmap.h.
5547 * lcm.c: Include sbitmap.h.
5548 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5549 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5550 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5551 * cselib.c: Include bitmap.h.
5552 * tree-optimize.c: Include regset.h.
5553 * stmt.c: Include bitmap.h.
5554 * Makefile.in: Update dependencies.
5556 2010-05-22 Jan Hubicka <jh@suse.cz>
5558 * cgraph.h (struct varpool_node): Add same_comdat_group.
5559 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5561 (output_varpool): Update call of lto_output_varpool_node.
5562 (input_varpool): Read same_comdat_group pointer.
5563 (input_varpool_1): Fixup same_comdat_group pointer.
5564 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5565 group is needed, all are.
5566 * varpool.c (varpool_remove_node): Remove node from same comdat group
5568 (varpool_analyze_pending_decls): Walk same comdat groups.
5570 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5572 * rtl.h (union rtunion_def): Remove rt_bit member.
5573 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5574 * print-rtl (print_rtx): Do not print the member.
5575 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5576 * gengenrtl.c (type_from_format): Likewise.
5577 (accessor_from_format): Likewise.
5579 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5581 * dbgcnt.c: Include toplev.h instead of errors.h.
5582 * ira-emit.c: Don't include errors.h.
5583 * ira.c: Include toplev.h instead of errors.h.
5584 * lto-compress.c: Include toplev.h instead of errors.h.
5585 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5586 ira.o, dbgcnt.o): Update dependencies.
5588 2010-05-22 Richard Guenther <rguenther@suse.de>
5590 * gimple.c (gimple_types_compatible_p): Check type qualifications
5591 before merging pointer to complete and pointer to incomplete type.
5592 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5593 we use our own resolution algorithm. The gold linker plugin
5594 doesn't do the job we want it to do here.
5596 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5598 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5599 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5600 (sparc_mode_dependent_address_p): New function.
5602 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5604 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5606 * timevar.c: Do not include any core headers.
5607 (timevar_print): De-i18n-ize.
5608 (print_time): Likewise.
5609 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5611 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5613 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5615 (diagnostic_initialize): Initialize x_data not last_function.
5616 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5617 (default_diagnostic_starter): Call
5618 diagnostic_report_current_module not
5619 diagnostic_report_current_function.
5620 (diagnostic_report_diagnostic): Initialize x_data not
5622 (verbatim): Likewise.
5623 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5625 (struct diagnostic_context): Change last_function to x_data.
5626 (diagnostic_auxiliary_data): Replace with
5627 diagnostic_context_auxiliary_data and
5628 diagnostic_info_auxiliary_data.
5629 (diagnostic_last_function_changed, diagnostic_set_last_function,
5630 diagnostic_report_current_function): Move to tree-diagnostic.h.
5631 (print_declaration, dump_generic_node, print_generic_stmt,
5632 print_generic_stmt_indented, print_generic_expr,
5633 print_generic_decl, debug_c_tree, dump_omp_clauses,
5634 print_call_name, debug_generic_expr, debug_generic_stmt,
5635 debug_tree_chain, default_tree_printer): Move to
5636 tree-pretty-print.h.
5637 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5638 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5639 gimple-pretty-print.h.
5640 * pretty-print.c: Don't include tree.h
5641 (pp_base_format): Don't handle %K here.
5642 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5643 * pretty-print.h (text_info): Change abstract_origin to x_data.
5644 (pp_tree_identifier, pp_unsupported_tree,
5645 pp_base_tree_identifier): Move to tree-pretty-print.h.
5646 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5647 tree-pretty-print.h: New files.
5648 * tree-pretty-print.c: Include tree-pretty-print.h.
5649 (percent_K_format): New. Moved from pretty-print.c.
5650 (pp_base_tree_identifier): Move from pretty-print.c.
5651 * c-objc-common.c: Include tree-pretty-print.h.
5652 (c_tree_printer): Handle %K here.
5653 * langhooks.c: Include tree-diagnostic.h.
5654 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5655 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5656 (default_tree_printer): Handle %K using percent_K_format.
5657 (general_init): Use default_tree_diagnostic_starter.
5658 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5659 (free_lang_data): Use default_tree_diagnostic_starter.
5660 * c-pretty-print.c: Include tree-pretty-print.h.
5661 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5662 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5663 * dwarf2out.c: Include tree-pretty-print.h.
5664 * except.c: Include tree-pretty-print.h.
5665 * gimple-pretty-print.c: Include tree-pretty-print.h and
5666 gimple-pretty-print.h.
5667 * gimplify.c: Include tree-pretty-print.h.
5668 * graphite-poly.c: Include tree-pretty-print.h and
5669 gimple-pretty-print.h.
5670 * ipa-cp.c: Include tree-pretty-print.h.
5671 * ipa-inline.c: Include gimple-pretty-print.h.
5672 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5673 * ipa-pure-const.c: Include gimple-pretty-print.h.
5674 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5675 gimple-pretty-print.h.
5676 * ipa-type-escape.c: Include tree-pretty-print.h.
5677 * print-rtl.c: Include tree-pretty-print.h.
5678 * print-tree.c: Include gimple-pretty-print.h.
5679 * sese.c: Include tree-pretty-print.h.
5680 * tree-affine.c: Include tree-pretty-print.h.
5681 * tree-browser.c: Include tree-pretty-print.h.
5682 * tree-call-cdce.c: Include gimple-pretty-print.h.
5683 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5684 * tree-chrec.c: Include tree-pretty-print.h.
5685 * tree-data-ref.c: Include tree-pretty-print.h and
5686 gimple-pretty-print.h.
5687 * tree-dfa.c: Include tree-pretty-print.h.
5688 * tree-if-conv.c: Include tree-pretty-print.h and
5689 gimple-pretty-print.h.
5690 * tree-inline.c: Include tree-pretty-print.h.
5691 * tree-into-ssa.c: Include tree-pretty-print.h and
5692 gimple-pretty-print.h.
5693 * tree-nrv.c: Include tree-pretty-print.h.
5694 * tree-object-size.c: Include tree-pretty-print.h and
5695 gimple-pretty-print.h.
5696 * tree-outof-ssa.c: Include tree-pretty-print.h and
5697 gimple-pretty-print.h.
5698 * tree-parloops.c: Include tree-pretty-print.h and
5699 gimple-pretty-print.h.
5700 * tree-predcom.c: Include tree-pretty-print.h and
5701 gimple-pretty-print.h.
5702 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5703 gimple-pretty-print.h.
5704 * tree-sra.c: Include tree-pretty-print.h.
5705 * tree-ssa-address.c: Include tree-pretty-print.h.
5706 * tree-ssa-alias.c: Include tree-pretty-print.h.
5707 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5708 gimple-pretty-print.h.
5709 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5710 * tree-ssa-copy.c: Include tree-pretty-print.h and
5711 gimple-pretty-print.h.
5712 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5713 * tree-ssa-dce.c: Include tree-pretty-print.h and
5714 gimple-pretty-print.h.
5715 * tree-ssa-dom.c: Include tree-pretty-print.h and
5716 gimple-pretty-print.h.
5717 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5718 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5719 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5720 * tree-ssa-live.c: Include tree-pretty-print.h and
5721 gimple-pretty-print.h.
5722 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5723 gimple-pretty-print.h.
5724 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5725 gimple-pretty-print.h.
5726 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5727 gimple-pretty-print.h.
5728 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5729 gimple-pretty-print.h.
5730 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5731 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5732 * tree-ssa-operands.c: Include tree-pretty-print.h and
5733 gimple-pretty-print.h.
5734 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5735 gimple-pretty-print.h.
5736 * tree-ssa-pre.c: Include tree-pretty-print.h and
5737 gimple-pretty-print.h.
5738 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5739 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5740 gimple-pretty-print.h.
5741 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5742 gimple-pretty-print.h.
5743 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5744 * tree-ssa-ter.c: Include tree-pretty-print.h and
5745 gimple-pretty-print.h.
5746 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5747 * tree-ssa.c: Include tree-pretty-print.h and
5748 gimple-pretty-print.h.
5749 * tree-stdarg.c: Include gimple-pretty-print.h.
5750 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5751 * tree-tailcall.c: Include tree-pretty-print.h and
5752 gimple-pretty-print.h.
5753 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5754 gimple-pretty-print.h.
5755 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5756 gimple-pretty-print.h.
5757 * tree-vect-loop.c: Include tree-pretty-print.h and
5758 gimple-pretty-print.h.
5759 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5760 * tree-vect-slp.c: Include tree-pretty-print.h and
5761 gimple-pretty-print.h.
5762 * tree-vect-stmts.c: Include tree-pretty-print.h and
5763 gimple-pretty-print.h.
5764 * tree-vectorizer.c: Include tree-pretty-print.h.
5765 * tree-vrp.c: Include tree-pretty-print.h and
5766 gimple-pretty-print.h.
5767 * value-prof.c: Include tree-pretty-print.h and
5768 gimple-pretty-print.h.
5769 * var-tracking.c: Include tree-pretty-print.h.
5770 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5771 (tree-diagnostic.o): New dependencies.
5772 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5773 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5774 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5775 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5776 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5777 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5778 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5779 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5780 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5781 tree-ssa-address.o, tree-ssa-loop-niter.o,
5782 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5783 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5784 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5785 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5786 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5787 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5788 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5789 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5790 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5791 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5792 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5793 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5794 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5795 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5796 cfgexpand.o, pretty-print.o): Update dependencies.
5798 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5800 * tree-ssa-structalias.c: Remove tm_p.h from include.
5802 2010-05-21 Jeff Law <law@redhat.com>
5804 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5806 2010-05-21 Jason Merrill <jason@redhat.com>
5808 * tree-eh.c (cleanup_is_dead_in): New.
5809 (lower_try_finally): Don't generate a dead cleanup region.
5810 (lower_cleanup): Likewise.
5812 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5815 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5816 unchain each use from the cyclic next_regno_use chain first.
5818 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5820 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5821 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5822 (real_value_negate, real_value_abs): New prototypes.
5823 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5824 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5825 new include file for interface between MPFR and REAL_VALUE_TYPE.
5826 * real.c: Include realmpfr.h.
5827 (real_arithmetic2): Remove legacy function.
5828 (real_value_negate): New.
5829 (real_value_abs): New.
5830 (mfpr_from_real, real_from_mpfr): Move from here...
5831 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5832 * builtins.c: Include realmpfr.h.
5833 * fold-const.c: Include realmpfr.h.
5834 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5835 (fold_negate_const): Likewise.
5836 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5837 * toplev.c: Include realmpfr.h.
5838 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5839 and real_value_negate.
5840 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5841 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5842 (vfp3_const_double_index): Likewise.
5843 (arm_print_operand): Likewise.
5844 * Makefile.in: Update dependencies.
5846 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5848 * config/s390/s390.c (override_options): Increase the default
5849 of max-completely-peel-times.
5851 2010-05-21 Julian Brown <julian@codesourcery.com>
5852 Mark Mitchell <mark@codesourcery.com>
5854 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5855 sibling calls for Thumb-1.
5856 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5857 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5859 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5860 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5862 (return): New expander.
5863 (*arm_return): New name for ARM return insn.
5864 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5866 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5868 * config.gcc (sparc64-*-rtems*): New target.
5870 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5872 * tree.c (build_function_decl_skip_args): Fix grammar.
5873 (build_function_type_list_1): Fix typos, adjust formatting.
5875 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5877 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5878 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5879 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5880 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5881 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5882 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5883 tree-pretty-print.c, tree-loop-distribution.c,
5884 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5885 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5886 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5887 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5888 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5889 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5890 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5891 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5892 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5893 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5894 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5895 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5896 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5897 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5898 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5899 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5900 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5901 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5902 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5903 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5904 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5905 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5906 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5907 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5908 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5909 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5910 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5911 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5912 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5913 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5914 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5915 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5916 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5917 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5918 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5919 config/bfin/bfin.c: Clean up redundant includes.
5920 * Makefile.in: Update accordingly.
5922 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5925 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5926 statement has no arguments.
5928 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5931 * varasm.c (emutls_decl): Merge attributes to new decl.
5933 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5936 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5937 around the uniquized constructor if its type requires a conversion.
5939 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5942 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5943 at -O0 goto_locus of any of the incoming edges differs from
5944 goto_locus of outgoing edge, or gimple_location of any of the
5947 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
5949 * ira.c (ira_non_ordered_class_hard_regs): Define.
5950 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5951 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5952 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5953 cost of unaligned hard regs when allocating multi-reg pseudos.
5955 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5957 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5958 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5959 for TARGET_NO_FLOAT.
5960 * config/mips/mips.c (mips_file_start): Expand conditional expression
5961 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5962 (mips_override_options): Move -mno-float override -msoft-float and
5964 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5965 Condition(TARGET_SUPPORTS_NO_FLOAT).
5966 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5967 __mips_no_float here.
5968 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5969 (TARGET_SUPPORTS_NO_FLOAT): Define.
5970 * config/mips/sdemtk.opt: Delete.
5972 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
5974 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5976 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
5979 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5980 * configure: Regenerate.
5981 * config.in: Regenerate.
5982 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5983 instead of sahf only for 64bit targets.
5985 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5988 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5989 setup_ref_regs for DEBUG_INSNs.
5991 2010-05-20 Jan Hubicka <jh@suse.cz>
5994 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5996 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5999 * df-scan.c (df_ref_compare): Stabilize sort.
6001 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6003 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6004 argument. Don't use DW_OP_piece if offset is non-zero,
6005 put offset into second DW_OP_bit_piece argument.
6006 (dw_sra_loc_expr): Adjust callers. For memory expressions
6009 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6012 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6013 settings for 16-bit-constant "addo" alternative.
6015 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6017 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6018 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6021 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6022 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6025 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6027 * diagnostic.c (FLOAT, FFS): Don't undefine.
6028 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6029 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6032 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6034 * combine.c (propagate_for_debug): Call make_compound_operation
6035 on the source value.
6036 (try_combine): When implementing a split chosen by find_split_point,
6037 either copy i2src or set it to null. Assert that i2src is not null
6038 before substituting into CALL_INSN_FUNCTION_USAGE.
6040 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6042 * double-int.h (double_int_ior): New function.
6043 * tree.h (build_int_cst_wide_type): Remove.
6044 * tree.c (build_int_cst_wide_type): Remove.
6045 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6046 of build_int_cst_wide_type.
6047 * stor-layout.c (set_sizetype): (Ditto.).
6048 * dojump.c (do_jump): Use build_int_cstu instead of
6049 build_int_cst_wide_type.
6051 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6053 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6054 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6055 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6056 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6057 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6058 propagate the 'data' argument to copy_tree_r.
6059 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6060 Propagate 'data' argument to walk_tree.
6061 (copy_if_shared): New function.
6062 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6063 (unmark_visited): New function.
6064 (unshare_body): Call copy_if_shared instead of doing it manually.
6065 (unvisit_body): Call unmark_visited instead of doing it manually.
6067 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6069 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6070 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6071 * hooks.c: Likewise.
6072 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6073 hook_tree_tree_int_treep_bool_null.
6074 * target.h (struct gcc_target): Update signature of fold_builtin
6076 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6077 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6078 instead of the call expression.
6079 (fold_builtin_call_array): Pass n and argarray directly.
6080 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6082 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6083 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6084 `i' and use it in place of `arity'.
6085 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6086 Dereference `args' directly.
6087 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6089 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6091 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6093 (Directives): Document optional dg-require-effective-target
6096 2010-05-19 Richard Guenther <rguenther@suse.de>
6099 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6101 2010-05-19 Richard Guenther <rguenther@suse.de>
6103 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6104 * common.opt (fwhopr=): New.
6105 * opts.c (common_handle_option): Handle OPT_fwhopr.
6106 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6107 * collect2.c (main): Match -fwhopr*.
6108 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6109 Execute ltrans stage in parallel when jobs is bigger than 1.
6111 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6113 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6114 pentiumpro on Solaris 8/x86 with Sun as.
6115 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6117 (gcc_cv_as_ix86_quad): Check for .quad directive.
6118 * configure: Regenerate.
6119 * config.in: Regenerate.
6120 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6122 2010-05-19 Martin Jambor <mjambor@suse.cz>
6124 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6125 also for indirect edges. Actual printing moved...
6126 (ipa_print_node_jump_functions_for_edge): ...here.
6127 (ipa_compute_jump_functions): Renamed to
6128 ipa_compute_jump_functions_for_edge and made static.
6129 (ipa_compute_jump_functions): New function.
6130 (make_edge_direct_to_target): Check if the number of arguments on
6131 the newly direct edge is the same as the number of parametrs of
6133 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6134 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6135 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6136 analysis functions unconditionally, call the new
6137 ipa_analyze_params_uses on the node instead of every edge.
6139 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6141 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6143 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6144 also checks for a constant int vs. non-constant but
6145 loop-invariant steps.
6146 (find_or_create_group): Change the sort algorithm to only consider
6147 steps that are constant ints.
6148 (idx_analyze_ref): Adopt code to handle a tree instead of a
6149 HOST_WIDE_INT for step.
6150 (gather_memory_references_ref): Handle tree instead of int and be
6151 prepared to see a NULL_TREE.
6152 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6153 prefetches if the step cannot be calculated at compile time.
6154 (issue_prefetch_ref): Issue prefetches for non-constant but
6155 loop-invariant steps.
6157 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6160 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6162 * tree.h (build_call_list): Remove.
6163 * tree.c (build_call_list): Remove.
6165 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6167 * tree.h (build_call_list): Remove.
6168 * tree.c (build_call_list): Remove.
6170 2010-05-18 Jan Hubicka <jh@suse.cz>
6172 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6174 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6176 PR rtl-optimization/43332
6177 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6179 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6181 * tree.h (build_int_cstu): Implement as static inline.
6182 * tree.c (build_int_cstu): Remove function.
6183 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6186 2010-05-18 Richard Guenther <rguenther@suse.de>
6189 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6190 (debug): Initialize from -save-temps.
6191 (collect_execute): Print command-line when verbose.
6192 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6193 for ltrans invocation. Produce -dumpbase flag again.
6194 (process_args): Remove.
6196 * collect2.c (maybe_run_lto_and_relink): Only pass object
6197 files to lto-wrapper.
6198 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6200 2010-05-18 Jan Hubicka <jh@suse.cz>
6202 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6203 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6205 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6208 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6210 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6213 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6216 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6219 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6221 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6222 lto-macho as lto_binary_reader.
6224 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6225 after .section directive; just print it before the directive instead.
6227 2010-05-17 Jan Hubicka <jh@suse.cz>
6229 * cgraph.c (cgraph_create_virtual_clone): Only check
6230 versionable_function_p when not in wpa and checking is enabled.
6231 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6232 there are no more functions to materialize.
6234 2010-05-17 Jan Hubicka <jh@suse.cz>
6236 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6237 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6239 (output_cgraph): Call output_cgraph_opt_summary.
6240 (input_cgrpah): Call input_cgraph_opt_summary.
6241 (output_cgraph_opt_summary_p, output_node_opt_summary,
6242 input_node_opt_summary, input_cgraph_opt_section): New functions.
6243 * lto-section-in.c (lto_section_name): Add cgraphopt.
6244 * tree-inline.c (tree_function_versioning): Handle parm_num.
6245 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6246 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6248 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6250 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6251 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6252 the insn to prefetch ratio heuristic to loops with known trip count.
6254 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6256 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6257 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6258 is far from what is required by the prefetch.
6260 2010-05-17 Jan Hubicka <jh@suse.cz>
6262 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6263 (ipcp_estimate_growth): Likewise.
6264 (ipcp_const_param_count): Likewise.
6265 (ipcp_insert_stage): Likewise.
6266 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6267 (visit_store_addr_for_mod_analysis): Set used flag.
6268 (ipa_detect_param_modifications): Set used flag for SSE params;
6269 update use of walk_stmt_load_store_addr_ops.
6270 (ipa_print_node_params): Print used flag.
6271 (ipa_write_node_info): Stream used flag.
6272 (ipa_read_node_info): Likewise.
6273 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6274 (ipa_is_param_used): New function.
6275 (lto_ipa_fixup_call_notes): Remove unused declaration.
6277 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6280 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6281 * configure: Regenerate.
6282 * config.in: Regenerate.
6283 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6284 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6285 Don't emit whitespace.
6286 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6287 (*rep_movsi): Likewise.
6288 (*rep_movsi_rex64): Likewise.
6289 (*rep_movqi): Likewise.
6290 (*rep_movqi_rex64): Likewise.
6291 (*rep_stosdi_rex64): Likewise.
6292 (*rep_stossi): Likewise.
6293 (*rep_stossi_rex64): Likewise.
6294 (*rep_stosqi): Likewise.
6295 (*rep_stosqi_rex64): Likewise.
6296 (*cmpstrnqi_nz_1): Use {%;} after repz.
6297 (*cmpstrnqi_nz_rex_1): Likewise.
6298 (*cmpstrnqi_1): Likewise.
6299 (*cmpstrnqi_rex_1): Likewise.
6300 (*strlenqi_1): Use {%;} after repnz.
6301 (*strlenqi_rex_1): Likewise.
6302 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6303 (*sync_compare_and_swap<mode>): Likewise.
6304 (sync_double_compare_and_swap<mode>): Likewise.
6305 (*sync_double_compare_and_swapdi_pic): Likewise.
6306 (sync_old_add<mode>): Likewise.
6307 (sync_add<mode>): Likewise.
6308 (sync_sub<mode>): Likewise.
6309 (sync_<code><mode>): Likewise.
6311 2010-05-17 Martin Jambor <mjambor@suse.cz>
6313 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6314 otr_token and polymorphic.
6315 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6316 (cgraph_clone_edge): Copy the above fields.
6317 * tree.c (get_binfo_at_offset): New function.
6318 * tree.h (get_binfo_at_offset): Declare.
6319 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6320 type, reordered items, updated comments.
6321 (union jump_func_value): Added base_type field, reordered fields.
6322 (enum ipa_lattice_type): Moved down in the file.
6323 (struct ipa_param_descriptor): New field polymorphic.
6324 (ipa_is_param_polymorphic): New function.
6325 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6326 (ipa_print_node_jump_functions): Print known type jump functions.
6327 (compute_complex_pass_through): Renamed to...
6328 (compute_complex_assign_jump_func): this.
6329 (compute_complex_ancestor_jump_func): New function.
6330 (compute_known_type_jump_func): Likewise.
6331 (compute_scalar_jump_functions): Create known type and complex ancestor
6333 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6334 flag in the call note accordingly.
6335 (ipa_analyze_call_uses): Renamed to...
6336 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6337 variable var only in the block where it is used.
6338 (ipa_analyze_virtual_call_uses): New function.
6339 (ipa_analyze_call_uses): Likewise.
6340 (combine_known_type_and_ancestor_jfs): Likewise.
6341 (update_jump_functions_after_inlining): Implemented handling of a
6342 number of new jump function types combination.
6343 (print_edge_addition_message): Removed.
6344 (make_edge_direct_to_target): New function.
6345 (try_make_edge_direct_simple_call): Likewise.
6346 (try_make_edge_direct_virtual_call): Likewise.
6347 (update_call_notes_after_inlining): Renamed to...
6348 (update_indirect_edges_after_inlining): this. Moved edge creation for
6349 indirect calls to try_make_edge_direct_simple_call, also calls
6350 try_make_edge_direct_virtual_call for virtual calls.
6351 (ipa_print_node_params): Changed the header message.
6352 (ipa_write_jump_function): Stream also known type jump functions.
6353 (ipa_read_jump_function): Likewise.
6354 (ipa_write_indirect_edge_info): Stream new fields in
6355 cgraph_indirect_call_info.
6356 (ipa_read_indirect_edge_info): Likewise.
6357 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6360 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6362 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6364 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6366 * tree.h (CALL_EXPR_ARGS): Delete.
6367 (call_expr_arglist): Delete.
6368 * tree.c (call_expr_arglist): Delete.
6369 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6370 targetm.fold_builtin.
6371 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6372 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6373 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6374 arglist parameter. Use CALL_EXPR_ARG.
6375 (picochip_expand_builtin_3op): Likewise.
6376 (picochip_expand_builtin_2opvoid): Likewise.
6377 (picochip_expand_array_get): Likewise.
6378 (picochip_expand_array_put): Likewise.
6379 (picochip_expand_array_testport): Likewise.
6380 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6381 rather than arglist.
6382 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6384 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6385 than TREE_VALUE and TREE_CHAIN.
6386 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6387 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6390 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6393 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6394 to have no fallthru edge.
6397 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6398 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6399 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6400 add BARRIER after previous bb if needed.
6402 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6404 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6406 2010-05-17 Alan Modra <amodra@gmail.com>
6408 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6409 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6410 with copy_reg rtx param.
6411 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6412 Correct cases where code for ABI_V4 did not initialise the reg
6413 used to access frame. Also leave frame_reg_rtx as sp for large
6414 frames that save no regs.
6416 2010-05-17 Martin Jambor <mjambor@suse.cz>
6419 * tree-sra.c (create_access_replacement): New parameter rename, mark
6420 the replaement for renaming only when it is true.
6421 (get_access_replacement): Pass true in the rename parameter of
6422 create_access_replacement.
6423 (get_unrenamed_access_replacement): New function.
6424 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6425 replacement declaration from it.
6427 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6429 * function.c (try_fit_stack_local, add_frame_space): New static
6431 (assign_stack_local_1): Use them. Look for opportunities to use
6432 space previously wasted on alignment.
6433 * function.h (struct frame_space): New.
6434 (struct rtl_data): Add FRAME_SPACE_LIST member.
6435 * reload1.c (something_was_spilled): New static variable.
6436 (alter_reg): Set it.
6437 (reload): Test it in addition to testing if the frame size changed.
6439 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6441 * config/s390/s390.c: Define sane prefetch settings and activate
6442 flag_prefetch_loop_arrays on -O3.
6443 * config/s390/s390.h: Declare that read can use write prefetch.
6445 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6447 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6450 2010-05-16 Jan Hubicka <jh@suse.cz>
6452 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6453 function body; do not check stdarg field of struct function.
6455 2010-05-16 Jan Hubicka <jh@suse.cz>
6457 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6458 * cgraph.h (cgraph_local_info): Add versionable flag.
6459 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6460 (ipcp_versionable_function_p): Use it.
6461 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6464 2010-05-16 Jan Hubicka <jh@suse.cz>
6466 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6467 clone into hash when it is different from orig.
6468 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6469 * cgraph.h (cgraph_clone_node): Update prototype.
6470 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6471 (lto_cgraph_encoder_delete): Delete body map.
6472 (lto_cgraph_encoder_size): Move to header.
6473 (lto_cgraph_encoder_encode_body_p,
6474 lto_set_cgraph_encoder_encode_body): New.
6475 (lto_output_node): Do not take written_decls argument; output clone_of
6477 (add_node_to): Add include_body_argument; call
6478 lto_set_cgraph_encoder_encode_body on master of the clone.
6479 (add_references): Update use of add_node_to.
6480 (compute_ltrans_boundary): Likewise.
6481 (output_cgraph): Do not create written_decls bitmap.
6482 (input_node): Take nodes argument; stream in clone_of correctly.
6483 (input_cgraph_1): Update use of input_node.
6484 * lto-streamer-out.c (lto_output): Use encoder info to decide
6485 what bodies to output.
6486 * ipa-inline.c (cgraph_clone_inlined_nodes,
6487 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6488 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6489 (lto_cgraph_encoder_size): Define here.
6490 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6493 2010-05-16 Richard Guenther <rguenther@suse.de>
6495 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6497 * ipa-type-escape.c (gate_type_escape_vars): Run when
6498 -fipa-struct-reorg runs.
6499 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6500 * common.opt (fipa-type-escape): Remove.
6502 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6504 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6505 (decode_options): Likewise.
6506 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6508 2010-05-16 Jan Hubicka <jh@suse.cz>
6510 * ipa.c (function_and_variable_visibility): Also bring local all
6513 2010-05-16 Richard Guenther <rguenther@suse.de>
6515 * alias.c (nonoverlapping_memrefs_p): Remove use of
6516 IPA type-escape information.
6518 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6520 * c-common.c (c_common_reswords): Add _Static_assert for C.
6521 * c-parser.c (c_token_starts_declaration,
6522 c_parser_next_token_starts_declaration,
6523 c_parser_static_assert_declaration_no_semi,
6524 c_parser_static_assert_declaration): New.
6525 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6526 Handle static assertions if static_assert_ok.
6527 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6528 c_parser_compound_statement_nostart, c_parser_label,
6529 c_parser_for_statement, c_parser_objc_methodprotolist,
6530 c_parser_omp_for_loop): All callers of
6531 c_parser_declaration_or_fndef changed.
6532 (c_parser_struct_declaration): Handle static assertions.
6533 (c_parser_compound_statement_nostart): Use
6534 c_parser_next_token_starts_declaration and
6535 c_token_starts_declaration to detect start of declarations.
6536 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6539 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6541 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6542 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6543 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6544 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6545 (mmix_function_outgoing_value): Rename to...
6546 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6547 (mmix_function_value_regno_p): Make static.
6548 (mmix_libcall_value): New function.
6549 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6550 mmix_function_value_regno_p): Remove declaration.
6552 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6554 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6555 BUILT_IN_ALLOCA if stack checking is enabled.
6557 2010-05-16 Richard Guenther <rguenther@suse.de>
6559 * var-tracking.c (vars_copy_1): Inline ...
6560 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6561 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6562 (variable_merge_over_cur): Adjust. Merge asserts.
6563 (variable_merge_over_src): Likewise.
6564 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6565 (variable_post_merge_new_vals): Merge asserts.
6566 (variable_post_merge_perm_vals): Likewise.
6567 (find_mem_expr_in_1pdv): Likewise.
6568 (dataflow_set_different_value): Remove.
6569 (onepart_variable_different_p): Merge asserts.
6570 (variable_different_p): Likewise.
6571 (dataflow_set_different_1): Inline ...
6572 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6573 (emit_notes_for_differences_1): Merge asserts.
6575 2010-05-16 Richard Guenther <rguenther@suse.de>
6577 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6578 * optabs.c (libfunc_decl_hash): Likewise.
6579 * varasm.c (emutls_decl): Likewise.
6581 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6583 * c-decl.c: Don't include gimple.h.
6584 (merge_decls): Do not copy gimple_body.
6586 2010-05-15 Jason Merrill <jason@redhat.com>
6588 * c.opt: Add -fnothrow-opt.
6590 2010-05-15 Jan Hubicka <jh@suse.cz>
6592 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6594 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6596 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6598 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6599 * Makefile.in: Add it.
6600 Fix all other Makefile dependencies for changes below.
6601 * tree.h: Include it instead of defining VEC primitives here.
6602 * gimple.h: Likewise.
6604 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6605 * except.h: Include vecir.h, break dependence on tree.h.
6607 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6609 * tree-iterator.c: ...to here.
6610 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6612 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6614 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6615 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6616 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6617 tree-mudflap.h, and target.h.
6618 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6619 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6620 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6621 Add FIXME for why gimple.h is still included (should be unnecessary
6622 since GCC 4.5 gimplification unit-at-a-time).
6623 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6624 * c-pragma.c: Add FIXME for why function.h needs to be included just
6625 for cfun, at front-end level.
6626 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6627 Do not include ggc.h, but include vecprim.h for VEC(char).
6628 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6629 Explain why target.h is included.
6630 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6631 Explain why gimple.h is included.
6632 * c-ppoutput.c: Do not include tm.h.
6633 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6634 * c-parses.c: Explain why rtl.h is included, and that this (and only
6635 this) is also why tm.h must be included.
6636 Do not include except.h.
6637 * c-lang.c: Do not include ggc.h.
6639 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6641 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6643 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6645 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6646 unions by default if those structs and unions have no tags. Do
6647 not condition anonymous struct and unions handling on flag_iso.
6648 Allow anonymous structs and unions for C1X.
6649 (finish_struct): Do not diagnose lack of named fields when
6650 anonymous structs and unions present for C1X. Accept flexible
6651 array members in structure with anonymous structs or unions but no
6652 directly named fields.
6653 * doc/extend.texi (Unnamed Fields): Update.
6655 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6657 * gimple.h (compare_field_offset): Rename into...
6658 (gimple_compare_field_offset): ...this.
6659 * gimple.c (compare_field_offset): Rename into...
6660 (gimple_compare_field_offset): ...this. Compare the full access if
6661 the offset is self-referential.
6662 (gimple_types_compatible_p): Adjust for above renaming.
6663 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6664 DECL_NONADDRESSABLE_P flag of fields before merging them.
6666 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6668 * tree.h (ctor_to_list): Delete.
6669 * tree.c (ctor_to_list): Delete.
6671 2010-05-15 Jan Hubicka <jh@suse.cz>
6673 * ipa-reference.c: Include toplev.h
6674 (is_proper_for_analysis): Only add to all_module_statics
6676 (write_node_summary_p, stream_out_bitmap,
6677 ipa_reference_write_optimization_summary,
6678 ipa_reference_read_optimization_summary): New.
6679 (struct ipa_opt_pass_d pass_ipa_reference): Add
6680 optimization summary streaming.
6681 * lto-cgraph.c (referenced_from_this_partition_p,
6682 reachable_from_this_partition_p): New functions.
6683 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6684 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6685 * opts.c (decode_options): Enable ipa_reference.
6686 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6687 * lto-streamer.h (referenced_from_this_partition_p,
6688 reachable_from_this_partition_p): Declare.
6690 2010-05-15 Richard Guenther <rguenther@suse.de>
6692 PR tree-optimization/44038
6693 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6694 taking the address of a V_C_E of a constant.
6696 2010-05-14 Jan Hubicka <jh@suse.cz>
6698 * tree.h (memory_identifier_string): Remove.
6699 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6700 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6701 statics_not_written.
6702 (ipa_reference_optimization_summary_d): New structure.
6703 (ipa_reference_optimization_summary_t): New type and vector.
6704 (ipa_reference_vars_info_d): Embedd structures instead of using
6706 (reference_vars_to_consider): Remove out of GGC space.
6707 (module_statics_escape): Remove.
6708 (global_info_obstack): Rename to ...
6709 (optimization_summary_obstack): ... this one.
6710 (initialization_status_t): Remove.
6711 (memory_identifier_string): Remove.
6712 (get_reference_vars_info): Fix indenting.
6713 (set_reference_vars_info): Likewise.
6714 (get_reference_optimization_summary): New.
6715 (set_reference_optimization_summary): New.
6716 (get_global_reference_vars_info): Remove.
6717 (ipa_reference_get_read_global): Remove.
6718 (ipa_reference_get_written_global): Remove.
6719 (ipa_reference_get_not_read_global): Update.
6720 (ipa_reference_get_not_written_global): Update.
6721 (is_proper_for_analysis): Outlaw addressable.
6722 (propagate_bits): Update for new datastructures.
6723 (analyze_variable): Remove.
6724 (init_function_info): Update for new datastructures.
6725 (clean_function_local_data): Remove.
6726 (clean_function): Remove.
6727 (copy_global_bitmap): Use optimizations_summary_obstack.
6728 (duplicate_node_data): Duplicate optimization summary only.
6729 (remove_node_data): Remove optimization summary only.
6730 (generate_summary): Do not analyze variables; do not compute
6731 module_statics_escape; do not prune solutions by it.
6732 (read_write_all_from_decl): Fix typos in comments.
6733 (propagate): Doscover readonly and nonaddressable first;
6734 update for new datastructures; share global bitmaps.
6735 * ipa-reference.h (ipa_reference_get_read_global,
6736 ipa_reference_get_written_global): Remove.
6737 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6738 * Makefile.in: Remove ipa-refereference from GT files.
6740 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6743 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6744 for all SYMBOL_REF_DECLs.
6746 2010-05-14 Jan Hubicka <jh@suse.cz>
6748 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6749 (varpool_all_refs_explicit_p): New inline function.
6750 * ipa-reference.c: Update comment.
6751 (module_statics_written): Remove.
6752 (get_static_decl): Remove.
6753 (ipa_init): Do not initialize module_statics_written.
6754 (analyze_function): Likewise.
6755 (generate_summary): Likewise; do not compute module_statics_readonly
6756 and do not update variable flags.
6757 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6758 * ipa.c: Inlucde flags.h
6759 (cgraph_local_node_p): New.
6760 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6761 promote functions to local.
6762 (ipa_discover_readonly_nonaddressable_vars): New function.
6763 (function_and_variable_visibility): Use cgraph_local_node_p.
6764 * varpool.c (varpool_finalize_decl): Set force_output for
6765 DECL_PRESERVE_P vars.
6767 2010-05-14 Jan Hubicka <jh@suse.cz>
6769 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6771 2010-05-14 Richard Guenther <rguenther@suse.de>
6773 PR tree-optimization/44119
6774 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6775 a PHI node necessary.
6777 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6779 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6781 2010-05-14 Jason Merrill <jason@redhat.com>
6784 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6785 (gimple_call_set_nothrow): New.
6786 * gimple.c (gimple_build_call_from_tree): Call it.
6787 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6790 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6791 * gimple.h: Declare it.
6792 * gimple.c (gimple_build_eh_filter): No ops.
6794 2010-05-14 Jan Hubicka <jh@suse.cz>
6796 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6797 nodes already in queue.
6798 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6801 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6804 * cfgexpand.c (expand_debug_expr): If non-memory op0
6805 has BLKmode, return NULL.
6807 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6809 * config.gcc: Add support for --with-cpu option for bdver1.
6810 * config/i386/i386.h (TARGET_BDVER1): New macro.
6811 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6812 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6813 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6814 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6815 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6816 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6817 (processor_type): Add PROCESSOR_BDVER1.
6818 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6819 processor_type in config/i386/i386.h.
6820 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6821 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6822 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6823 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6824 to emit packed xor instead of packed double/packed integer
6825 xor for SSE and AVX when moving a zero value.
6826 * config/i386/sse.md: Add check for
6827 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6828 movapd/movdqa for SSE and AVX.
6829 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6830 single logical operations i.e and, or and xor instead of packed double
6831 logical operations for SSE and AVX.
6832 * config/i386/i386-c.c (ix86_target_macros_internal):
6833 Add PROCESSOR_BDVER1.
6834 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6835 (has_fma4, has_xop): New.
6836 * config/i386/i386.c (bdver1_cost): New variable.
6837 (m_BDVER1): New macro.
6838 (m_AMD_MULTIPLE): Add m_BDVER1.
6839 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6840 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6841 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6842 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6843 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6844 x86_tune_sse_partial_reg_dependency,
6845 x86_tune_sse_unaligned_load_optimal,
6846 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6847 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6848 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6849 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6850 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6851 Enable/disable for bdver1.
6852 (processor_target_table): Add bdver1_cost.
6853 (cpu_names): Add bdver1.
6854 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6855 processor_alias_table.
6856 (ix86_expand_vector_move_misalign): Change.
6857 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6858 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6859 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6860 of movupd/movdqu for SSE and AVX.
6861 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6862 (ix86_tune_adjust_cost): Add code for bdver1.
6863 (standard_sse_constant_opcode): Add check for
6864 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6865 of packed double xor for SSE and AVX.
6867 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6869 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6872 2010-05-14 Tristan Gingold <gingold@adacore.com>
6874 * toplev.c (default_debug_hooks): Remove this variable.
6875 (process_options): Remove assignments to default_debug_hooks.
6877 2010-05-14 Martin Jambor <mjambor@suse.cz>
6879 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6880 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6881 * langhooks.h (struct lang_hooks_for_decls): Removed field
6883 * tree.c (free_lang_data): Remove assignment to
6884 lang_hooks.fold_obj_type_ref.
6885 * tree.def (OBJ_TYPE_REF): Update comment.
6887 2010-05-14 Richard Guenther <rguenther@suse.de>
6889 PR tree-optimization/44124
6890 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6892 2010-05-14 Alan Modra <amodra@gmail.com>
6895 * config/rs6000/rs6000.c (struct machine_function): Reorder
6896 fields for better packing. Add lr_save_state.
6897 (rs6000_ra_ever_killed): Return lr_save_state if set.
6898 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6900 2010-05-13 Jan Hubicka <jh@suse.cz>
6902 * varpool.c (decide_is_variable_needed): Drop code checking
6903 TREE_SYMBOL_REFERENCED.
6905 2010-05-13 Jan Hubicka <jh@suse.cz>
6907 * final.c (output_addr_const): Do not call mark_decl_referenced.
6908 * cgraphunit.c (process_function_and_variable_attributes): Use
6909 mark_needed_node dirrectly.
6910 (assemble_thunk): Do not call mark_decl_referenced.
6912 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6914 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6916 2010-05-13 Jeff Law <law@redhat.com>
6918 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6920 (print_conflicts): Call print_allocno_conflicts.
6922 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6925 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6928 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6930 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6931 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6932 * config/i386/t-mingw-w32: New.
6933 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6935 2010-05-13 Martin Jambor <mjambor@suse.cz>
6937 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6939 * gimple-fold.c (get_base_binfo_for_type): New function.
6940 (gimple_get_relevant_ref_binfo): Likewise.
6941 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6942 (gimple_fold_obj_type_ref): Likewise.
6943 (fold_gimple_call): Simplify condition for folding virtual calls
6944 and call gimple_fold_obj_type_ref.
6945 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6946 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6948 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6950 * config/rs6000/rs6000-protos.h
6951 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6952 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6953 (rs6000_debug_mode_dependent_address)
6954 (rs6000_mode_dependent_address_ptr): Likewise.
6956 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6959 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6961 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6962 * tree-sra.c (create_access_replacement): Call unshare_expr before
6963 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6964 * dwarf2out.c: Include tree-flow.h.
6965 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6966 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6967 Handle DW_OP_bit_piece.
6968 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6969 construct_piece_list, adjust_piece_list): New functions.
6970 (add_var_loc_to_decl): Handle SRA optimized variables.
6971 Adjust for var_loc_note to loc field renaming.
6972 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6973 in VAR_LOCATION note.
6974 (new_loc_descr_op_bit_piece): New function.
6975 (dw_sra_loc_expr): New function.
6976 (dw_loc_list): Use it. Don't handle the last range after the
6977 loop, handle it inside of the loop. Adjust for var_loc_note
6978 to loc field renaming.
6979 (add_location_or_const_value_attribute): Only special case
6980 single entry loc lists if loc is NOTE_P. Adjust for
6981 var_loc_note to loc field renaming.
6982 (dwarf2out_var_location): Don't set newloc->var_loc_note
6983 and newloc->next here.
6985 2010-05-12 Jan Hubicka <jh@suse.cz>
6987 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6989 * cgraph.h (cgraph_only_called_directly_p,
6990 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6991 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6992 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6994 * ipa.c (cgraph_remove_unreachable_nodes): Use
6995 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6997 * tree-inline.c (copy_bb): Check address_taken flag.
6998 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6999 externally_visible flag.
7001 2010-05-12 Jason Merrill <jason@redhat.com>
7005 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7006 * sdbout.c (plain_type_1): Likewise.
7007 * dwarf2out.c (is_base_type): Likewise.
7008 (gen_type_die_with_usage): Likewise. Generate
7009 DW_TAG_unspecified_type for any LANG_TYPE.
7011 2010-05-12 Jan Hubicka <jh@suse.cz>
7013 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7015 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7016 (cgraph_clone_edge): Update.
7017 (cgraph_node_remove_callees): Remove indirect calls too.
7018 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7019 (cgraph_create_indirect_edge): Update prototype.
7020 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7021 is_proper_for_analysis.
7022 (add_new_function, visited_nodes, function_insertion_hook_holder,
7023 get_local_reference_vars_info, mark_address_taken, mark_address,
7024 mark_load, mark_store, check_asm_memory_clobber, check_call,
7025 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7026 (ipa_init): Do not initialize visited_nodes;
7027 function_insertion_hook_holder.
7028 (analyze_variable): Rewrite.
7029 (analyze_function): Rewrite.
7030 (copy_local_bitmap): Remove.
7031 (duplicate_node_dat): Do not duplicate local info.
7032 (generate_summary): Simplify to only walk cgraph.
7033 (write_node_summary_p, ipa_reference_write_summary,
7034 ipa_reference_read_summary): Remove.
7035 (propagate): Do not remove function insertion;
7037 (pass_ipa_reference): NULLify summary handling fields.
7038 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7039 (input_edge): Input ecf_flags.
7040 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7041 (update_indirect_edges_after_inlining): Ignore edges with unknown
7044 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7046 * implicit-zee.c: New file.
7047 * tree-pass.h (pass_implicit_zee): Declare.
7048 * passes.c (init_optimization_passes): Add zee pass.
7049 * common.opt (fzee): New flag.
7050 * timevar.def (TV_ZEE): Define.
7051 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7053 * Makefile.in (implicit-zee.o): Add new build file.
7055 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7056 Nathan Froyd <froydnj@codesourcery.com>
7058 * c-common.c (sync_resolve_params): Remove write-only variable.
7060 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7062 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7063 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7064 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7065 * targhooks.c (default_mode_dependent_address_p): New function.
7066 * targhooks.h (default_mode_dependent_address_p): Declare function.
7067 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7068 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7069 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7070 target hook. Change return type to bool.
7071 * recog.h (mode_dependent_address_p): Change return type to bool.
7073 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7074 Nathan Froyd <froydnj@codesourcery.com>
7076 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7077 build_function_type_2, build_function_type_3): Remove.
7078 (mudflap_init): Use build_function_type_list.
7080 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7081 Nathan Froyd <froydnj@codesourcery.com>
7083 * coverage.c (build_fn_info_value): Call build_constructor instead of
7084 build_constructor_from_list.
7085 (build_ctr_info_value): Likewise.
7086 (build_gcov_info): Likewise.
7088 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7090 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7091 resultant constructor.
7092 (build_constructor_single): Don't set TREE_CONSTANT.
7093 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7095 2010-05-12 Jan Hubicka <jh@suse.cz>
7097 * cgraph.h (struct varpool_node): Add aux.
7098 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7099 * varpool.c (varpool_remove_node): Do not remove initializer.
7100 (varpool_reset_queue): Export.
7101 (varpool_finalize_decl): Volatile vars are forced to be output.
7102 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7104 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7105 process_references, varpool_can_remove_if_no_refs): New functions.
7106 (cgraph_remove_unreachable_nodes): Handle variables too.
7108 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7111 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7113 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7116 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7117 change value of ORT_TASK.
7118 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7119 (omp_notice_threadprivate_variable): New function.
7120 (omp_notice_variable): Call it for threadprivate variables.
7121 If enclosing ctx is a task, print enclosing task rather than
7122 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7123 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7124 if task has untied clause.
7127 * dwarf2out.c (base_type_die): Don't add name attribute here.
7128 (modified_type_die): Instead of sizetype use
7129 its underlying original type. If a DW_TAG_base_type doesn't
7130 have name added, add __unknown__.
7131 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7132 always call force_type_die instead.
7134 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7136 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7137 for __stack_chk_guard.
7139 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7141 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7142 don't call start_source_file debug hook here...
7143 (finish_options): ... but here, after outputting predefined and
7144 command line defines and undefs.
7147 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7149 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7150 optimizing away empty bb with no successors, move over its
7151 footer chain to fallthru predecessor.
7152 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7153 (rtl_split_edge): For asm goto call patch_jump_insn even if
7154 splitting fallthru edge.
7157 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7158 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7159 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7160 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7164 * c-parser.c (c_parser_expression): Mark LHS of a comma
7165 expression as read if it is a decl, handled component or
7166 COMPOUND_EXPR with that on the RHS.
7167 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7168 if it is a decl or handled component.
7170 2010-05-11 Jan Hubicka <jh@suse.cz>
7172 * lto-symtab.c (lto_symtab_free): New function.
7173 * lto-streamer.h (lto_symtab_free): Declare.
7175 2010-05-11 Jan Hubicka <jh@suse.cz>
7177 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7178 that if function is needed it is reachable.
7179 (lto_output_node): See if it the function is reachable or referenced.
7180 (output_cgraph): Update call of lto_output_node.
7181 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7183 2010-05-11 Jan Hubicka <jh@suse.cz>
7185 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7188 2010-05-11 Jan Hubicka <jh@suse.cz>
7190 PR tree-optimize/44063
7191 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7193 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7195 (estimate_function_body_sizes): Compute sizes even when disregarding.
7197 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7199 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7201 2010-05-11 Jan Hubicka <jh@suse.cz>
7203 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7204 into every boundary.
7206 2010-05-11 Jan Hubicka <jh@suse.cz>
7208 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7210 2010-05-11 Jan Hubicka <jh@suse.cz>
7212 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7213 lto_streamer_cache_delete): Put nodes into heap.
7214 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7217 2010-05-11 Jan Hubicka <jh@suse.cz>
7219 * cgraphbuild.c (cgraph_rebuild_references): New.
7220 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7222 * cgraph.h (cgraph_rebuild_references): Declare.
7223 * tree-inline.c (tree_function_versioning): Use it.
7224 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7226 2010-05-11 Jan Hubicka <jh@suse.cz>
7228 * cgraph.c: Include ipa-utils.h
7229 (cgraph_create_virtual_clone): Update references.
7230 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7232 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7234 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7235 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7238 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7240 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7242 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7244 * gcc.c (execute): For -### don't quote arguments that
7245 contain just alphanumerics and _/-. characters.
7246 * doc/invoke.texi: Document that change for -###.
7249 * df-problems.c (struct dead_debug): Add to_rescan field.
7250 (dead_debug_init): Clear to_rescan field.
7251 (dead_debug_finish): Rescan all debug insns in to_rescan
7252 bitmap and free the bitmap.
7253 (dead_debug_insert_before): Instead of rescanning debug insns
7254 immediately queue their rescanning until dead_debug_finish.
7255 (df_note_bb_compute): After dead_debug_add do continue instead
7258 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7261 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7262 clear also INSN_REG_USE_LIST.
7264 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7266 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7268 2010-05-10 Jan Hubicka <jh@suse.cz>
7270 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7273 2010-05-10 Jan Hubicka <jh@suse.cz>
7275 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7277 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7278 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7279 (lto_streamer_cache_create): Init alloc pool.
7280 (lto_streamer_cache_delete): Free alloc pool.
7281 * lto-streamer.h: Include alloc pool.
7282 (lto_streamer_cache_d): Use alloc pool.
7283 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7285 2010-05-10 Jan Hubicka <jh@suse.cz>
7287 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7288 * cgraphbuild.c: Include except.h
7289 (record_type_list, record_eh_tables): New function.
7290 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7292 2010-05-10 Jan Hubicka <jh@suse.cz>
7294 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7295 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7298 2010-05-10 Michael Matz <matz@suse.de>
7300 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7301 (can_reassociate_p): Use FLOAT_TYPE_P.
7302 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7303 (vect_force_simple_reduction): ... this.
7304 * tree-parloops.c (gather_scalar_reductions): Use
7305 vect_force_simple_reduction.
7306 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7307 vect_is_simple_reduction, add modify argument, if true rewrite
7308 "a-b" into "a+(-b)".
7309 (vect_is_simple_reduction, vect_force_simple_reduction): New
7311 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7313 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7314 Vladimir Makarov <vmakarov@redhat.com>
7316 PR rtl-optimization/44012
7317 * ira-build.c (remove_unnecessary_allocnos): Nullify
7318 regno_allocno_map of the removed allocno.
7320 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7322 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7324 * configure: Regenerate.
7326 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7328 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7330 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7331 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7333 * configure: Regenerate.
7335 2010-05-10 Richard Guenther <rguenther@suse.de>
7337 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7338 marked if the entry identifier is marked.
7340 2010-05-10 Richard Guenther <rguenther@suse.de>
7342 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7343 (handle_fnspec_attribute): New function.
7344 * gimple.h (gimple_call_return_flags): Declare.
7345 (gimple_call_arg_flags): Likewise.
7346 * gimple.c (gimple_call_arg_flags): New function.
7347 (gimple_call_return_flags): Likewise.
7348 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7350 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7352 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7353 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7355 (make_heapvar_for): ... this new function.
7356 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7357 (handle_lhs_call): Likewise.
7358 (find_func_aliases): Adjust.
7360 2010-05-10 Richard Guenther <rguenther@suse.de>
7362 PR tree-optimization/44050
7363 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7365 2010-05-10 Wei Guozhi <carrot@google.com>
7368 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7370 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7373 * c-typeck.c (lookup_field): Take a type directly. Update
7375 (build_component_ref): Update call to lookup_field.
7376 (set_init_label): Use lookup_field to find initialized field.
7377 Handle returned list of fields like a sequence of designators.
7379 2010-05-09 Richard Guenther <rguenther@suse.de>
7382 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7383 handle &FUNCTION_DECL.
7385 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7388 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7389 structures and unions recursively.
7390 (detect_field_duplicates): Move duplicate detection with a hash to
7391 detect_field_duplicates_hash. Always use a hash if anonymous
7392 structures or unions are present.
7393 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7396 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7399 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7400 detect Atom, Core 2 and Core i7.
7402 2010-05-09 Richard Guenther <rguenther@suse.de>
7404 * gcc.c (store_arg): Handle temporary file deletion for
7407 2010-05-09 Richard Guenther <rguenther@suse.de>
7410 * ipa-inline.c (estimate_function_body_sizes): Return after
7411 disregarding inline limits.
7413 2010-05-09 Richard Guenther <rguenther@suse.de>
7415 * gcc.c (store_arg): Revert last change.
7417 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7420 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7421 (optimize_ops_list): Call it.
7423 2010-05-08 Richard Guenther <rguenther@suse.de>
7425 PR tree-optimization/44030
7426 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7427 NECESSARY flag if we propagate from a inserted expression.
7429 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7431 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7432 domain types as equal if they are both PLACEHOLDER_EXPRs.
7434 2010-05-08 Richard Guenther <rguenther@suse.de>
7436 * lto-wrapper.c (run_gcc): Remove linker output from
7437 command line for LTRANS invocation.
7439 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7441 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7442 lto-macho as lto_binary_reader.
7443 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7444 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7445 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7446 in lto_start and lto_end calls.
7447 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7449 (scan_prog_file): Update is_elf_or_coff call.
7450 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7452 * collect2.c (main): Fix enum comparison.
7454 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7456 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7457 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7458 and TARGET_ASM_LTO_END.
7459 * darwin.c: Include obstack.h and lto-streamer.h.
7460 (lto_section_names_offset, lto_section_names_obstack,
7461 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7463 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7464 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7465 to a temporary file.
7466 (darwin_asm_lto_end): New function. Restore asm_out_file.
7467 (darwin_asm_named_section): For LTO sections, replace the name with
7468 the offset of the section name in a string table, and build this
7470 (darwin_file_start): Initialize global vars for LTO support.
7471 (darwin_file_end): If output to asm_out_file was redirected, append it
7472 to the proper asm_out_file here. Add the section names section.
7474 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7476 * c-pragma.c (pending_weak_d, pending_weak): New.
7477 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7478 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7479 handle_pragma_weak): Update the uses of pending_weaks.
7481 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7483 PR documentation/44016
7484 * doc/standards.texi (Standards): Link to unversioned
7485 cxx0x_status.html page.
7487 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7490 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7491 in addition to TREE_USED, to avoid "set but unused" warnings.
7493 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7495 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7496 (is_loop_prefetching_profitable): Do not insert prefetches
7497 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7498 times the prefetch ahead distance.
7500 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7502 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7503 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7504 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7507 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7509 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7510 a diagnostic info when the insn-to-mem ratio is too small.
7512 2010-05-07 Richard Guenther <rguenther@suse.de>
7514 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7516 (store_arg): Queue temp_filename for deletion instead of
7519 2010-05-07 Richard Guenther <rguenther@suse.de>
7521 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7522 (run_gcc): Handle LTRANS phase invocation.
7523 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7525 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7527 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7528 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7530 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7532 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7534 2010-05-07 Richard Guenther <rguenther@suse.de>
7536 PR tree-optimization/44020
7537 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7538 code when PRE is not yet initialized.
7540 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7542 * config/mips/dbxmdebug.h: Remove.
7543 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7545 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7547 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7548 with null pointer and also warn about ordered comparison of zero with
7551 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7553 * graphite-blocking.c
7554 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7555 * graphite-clast-to-gimple.c
7556 (clast_to_gcc_expression): Same.
7557 (precision_for_value): Same.
7558 (precision_for_interval): Same.
7559 (gcc_type_for_interval): Same.
7560 (graphite_create_new_guard): Same.
7561 (compute_bounds_for_level): Same.
7562 (graphite_create_new_loop_guard): Same.
7563 * graphite-interchange.c
7564 (build_linearized_memory_access): Same.
7565 (pdr_stride_in_loop): Same.
7566 (memory_strides_in_loop_1): Same.
7567 (memory_strides_in_loop): Same.
7568 (extend_scattering): Same.
7569 (psct_scattering_dim_for_loop_depth): Same.
7570 (pbb_number_of_iterations): Same.
7572 (debug_iteration_domains): Same.
7574 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7575 (ppl_set_inhomogeneous_gmp): Same.
7576 (ppl_strip_loop): Same.
7577 (ppl_lexico_compare_linear_expressions): Same.
7578 (ppl_read_polyhedron_matrix): Same.
7579 (ppl_max_for_le_pointset): Same.
7581 (ppl_read_polyhedron_matrix): Same.
7582 (tree_int_to_gmp): Same.
7583 (gmp_cst_to_tree): Same.
7584 (ppl_set_inhomogeneous): Same.
7585 (ppl_set_inhomogeneous_tree): Same.
7586 (ppl_set_coef): Same.
7587 (ppl_set_coef_tree): Same.
7588 * graphite-sese-to-poly.c
7589 (build_pbb_scattering_polyhedrons): Same.
7590 (build_scop_scattering): Same.
7591 (scan_tree_for_params_right_scev): Same.
7592 (scan_tree_for_params): Same.
7593 (find_params_in_bb): Same.
7594 (find_scop_parameters): Same.
7595 (add_upper_bounds_from_estimated_nit): Same.
7596 (build_loop_iteration_domains): Same.
7597 (add_condition_to_domain): Same.
7598 (pdr_add_memory_accesses): Same.
7600 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7602 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7603 CLooG's value_* macros to their respective mpz_* counterparts.
7604 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7605 (graphite_create_new_loop_guard): Same.
7606 * graphite-interchange.c (build_linearized_memory_access): Same.
7607 (pdr_stride_in_loop): Same.
7608 (memory_strides_in_loop_1): Same.
7609 (1st_interchange_profitable_p): Same.
7610 * graphite-poly.c (extend_scattering): Same.
7611 (psct_scattering_dim_for_loop_depth): Same.
7612 (pbb_number_of_iterations): Same.
7613 (pbb_number_of_iterations_at_time): Same.
7614 * graphite-poly.h (new_1st_loop): Same.
7615 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7616 (oppose_constraint): Same.
7617 (insert_constraint_into_matrix): Same.
7618 (ppl_set_inhomogeneous_gmp): Same.
7619 (ppl_set_coef_gmp): Same.
7620 (ppl_strip_loop): Same.
7621 (ppl_lexico_compare_linear_expressions): Same.
7622 (ppl_max_for_le_pointset): Same.
7623 (ppl_min_for_le_pointset): Same.
7624 (ppl_build_realtion): Same.
7625 * graphite-ppl.h (gmp_cst_to_tree): Same.
7626 (ppl_set_inhomogeneous): Same.
7627 (ppl_set_inhomogeneous_tree): Same.
7628 (ppl_set_coef): Same.
7629 (ppl_set_coef_tree): Same.
7630 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7631 (build_scop_scattering): Same.
7632 (add_value_to_dim): Same.
7633 (scan_tree_for_params_right_scev): Same.
7634 (scan_tree_for_params_int): Same.
7635 (scan_tree_for_params): Same.
7636 (find_params_in_bb): Same.
7637 (find_scop_parameters): Same.
7638 (add_upper_bounds_from_estimated_nit): Same.
7639 (build_loop_iteration_domains): Same.
7640 (create_linear_expr_from_tree): Same.
7641 (add_condition_to_domain): Same.
7642 (pdr_add_memory_accesses): Same.
7644 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7645 Jason Merrill <jason@redhat.com>
7647 * c-common.c (c_common_reswords): Add nullptr.
7648 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7649 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7650 (gen_type_die_with_usage): Likewise.
7651 * dbxout.c (dbxout_type): Likewise.
7652 * sdbout.c (plain_type_1): Likewise.
7654 2010-05-06 Jason Merrill <jason@redhat.com>
7656 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7657 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7659 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7661 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7662 stripping WITH_SIZE_EXPR.
7663 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7666 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7668 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7669 list of obsolete configurations.
7670 Disabled check for obsolete configurations.
7671 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7672 Removed support for previous versions.
7673 * config/mips/iris.h: Removed.
7674 * config/mips/iris5.h: Removed.
7675 * config/mips/iris6.h: Merged old iris.h contents.
7676 (TARGET_IRIX): Removed.
7677 (DRIVER_SELF_SPECS): Removed mabi=32.
7678 (IDENT_ASM_OP): Removed undef.
7679 (STARTFILE_SPEC): Removed mabi=32.
7680 (ENDFILE_SPEC): Likewise.
7681 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7682 (MACHINE_TYPE): Update for IRIX 6.5.
7683 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7684 TARGET_IRIX by TARGET_IRIX6.
7685 (mips_file_start): Likewise.
7686 (mips_output_external): Remove IRIX 5/6 O32 support.
7687 (mips_output_function_prologue): Likewise.
7688 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7690 (TARGET_CPU_CPP_BUILTINS): Likewise.
7691 (TARGET_IRIX): Removed.
7692 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7693 (MULTILIB_DIRNAMES): Removed 32.
7694 (MULTILIB_OSDIRNAMES): Removed ../lib.
7695 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7696 (Specific, mips-sgi-irix5): Document removal.
7697 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7698 Remove references to older IRIX 6 releases and the O32 ABI.
7700 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7703 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7704 instead of DF_REF_REAL_REG.
7706 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7709 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7710 handling to still return true for x64 targets.
7712 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7714 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7716 2010-05-06 Jan Hubicka <jh@suse.cz>
7718 PR tree-optimization/43791
7719 * ipa-inline.c (update_caller_keys): Remove bogus
7720 disregard_inline_limits check.
7722 2010-05-06 Michael Matz <matz@suse.de>
7724 PR tree-optimization/43984
7725 * tree-ssa-pre.c (inserted_phi_names): Remove.
7726 (inserted_exprs): Change to bitmap.
7727 (create_expression_by_pieces): Set bits, don't append to vector.
7728 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7729 (eliminate): Don't look at inserted_phi_names, remove deleted
7730 insns from inserted_exprs.
7731 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7732 (init_pre, fini_pre): Allocate and free bitmaps.
7733 (execute_pre): Insert insns on edges before elimination.
7735 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7737 * tree.c (initializer_zerop): Handle STRING_CST.
7739 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7742 * doc/invoke.texi (Wimplicit): Document as C only.
7743 * opts.c (common_handle_option): Add argument kind.
7744 (handle_option): Rename as read_cmdline_option. Factor out code to...
7745 (handle_option): ... here. New.
7746 (handle_options): Rename as read_cmdline_options.
7747 (decode_options): Update call.
7748 (set_option): Use option index instead of option pointer. Classify
7749 diagnostics correctly.
7750 (enable_warning_as_error): Call handle_option.
7751 * opts.h (set_option): Update declaration.
7752 (handle_option): Declare.
7753 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7754 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7755 * c-opts.c (set_Wimplicit): Delete.
7756 (c_family_lang_mask): New static constant.
7757 (c_common_handle_option): Add argument kind. Use handle_option
7758 instead of set_Wimplicit.
7759 (c_common_post_options): warn_implicit and warn_implicit_int
7760 are disabled by default.
7761 * c-common.c (warn_implicit): Do not define here.
7762 * c-common.h (warn_implicit): Do not declare here.
7763 (c_common_handle_option): Update declaration.
7764 * lto-opts.c (lto_reissue_options): Update call to set_option.
7766 2010-05-06 Richard Guenther <rguenther@suse.de>
7768 PR tree-optimization/43571
7769 * domwalk.c (walk_dominator_tree): Walk the dominator
7770 sons in more optimal order.
7772 2010-05-06 Richard Guenther <rguenther@suse.de>
7774 PR tree-optimization/43934
7775 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7776 (stmt_cost): Likewise.
7777 (extract_true_false_args_from_phi): New helper.
7778 (determine_max_movement): For PHI nodes verify we can hoist them
7779 and compute their cost.
7780 (determine_invariantness_stmt): Handle PHI nodes.
7781 (move_computations_stmt): Likewise. Hoist PHI nodes in
7782 if-converted form using COND_EXPRs.
7783 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7784 (tree_ssa_lim): Likewise.
7785 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7786 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7788 2010-05-06 Richard Guenther <rguenther@suse.de>
7790 PR tree-optimization/43987
7791 * tree-ssa-structalias.c (could_have_pointers): For possibly
7792 address-taken variables force pointers to be recorded.
7793 (create_variable_info_for_1): Likewise.
7794 (push_fields_onto_fieldstack): Pass in wheter all fields
7796 (find_func_aliases): Query types instead of vars whether
7797 they contain pointers where appropriate.
7799 2010-05-06 Jan Hubicka <jh@suse.cz>
7801 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7802 (record_reference, mark_address, mark_load, mark_store): Record
7804 (record_references_in_initializer): Update call of record_references.
7805 (rebuild_cgraph_edges): Remove all references before rebuiding.
7806 * cgraph.c (cgraph_create_node): Clear ref list.
7807 (cgraph_remove_node): Remove references.
7808 (dump_cgraph_node): Dump references.
7809 (cgraph_clone_node): Clone references.
7810 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7811 (struct cgraph_node, varpool_node): Add ref_lst.
7812 * ipa-ref.c: New file.
7813 * ipa-ref.h: New file.
7814 * ipa-ref-inline.h: New file.
7815 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7816 (referenced_from_other_partition_p): New function.
7817 (lto_output_varpool_node): Take set arugment; call
7818 referenced_from_other_partition.
7819 (lto_output_ref): New.
7820 (add_references): New.
7822 (output_cgraph): Compute boundary based on references; output refs.
7823 (output_varpool): Accept cgraph_node_set argument.
7826 (input_cgraph): Call input_refs.
7827 * lto-section-in.c (lto_section_name): Add refs.
7828 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7829 (ipa-ref.o): New file.
7830 * varpool.c (varpool_node): Clear ipa ref list.
7831 (varpool_remove_node): Remove references.
7832 (dump_varpool_node): Dump references.
7833 (varpool_assemble_decl): Only compile finalized ones.
7834 (varpool_extra_name_alias): Initialize ref list.
7835 * lto-streamer.c (lto-get_section_name): Add .refs section.
7836 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7837 (referenced_from_other_partition_p): Declared.
7839 2010-05-06 Ira Rosen <irar@il.ibm.com>
7841 PR tree-optimization/43901
7842 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7843 type is not NULL if it's transformation phase, and return
7844 FALSE if it's analysis.
7845 (vectorizable_conversion, vectorizable_operation,
7846 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7848 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7850 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7852 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7854 * config/mips/mips-protos.h
7855 (mips_small_register_classes_for_mode_p): Delete prototype.
7857 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7859 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7860 * config/arm/arm.c (multiple_operation_profitable_p,
7861 compute_offset_order): New static functions.
7862 (load_multiple_sequence, store_multiple_sequence): Use them.
7863 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7864 memory offsets, not register numbers.
7865 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7867 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7869 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7870 (get_pending_sizes, put_pending_size, put_pending_sizes):
7871 Update the uses of pending_sizes.
7872 * c-decl.c (store_parm_decls): Likewise.
7873 * c-tree.h (struct c_arg_info): Likewise.
7874 * tree.h: Update the prototype for get_pending_sizes and
7877 2010-05-05 Jason Merrill <jason@redhat.com>
7880 * c-common.c (handle_aligned_attribute): Respect
7881 ATTR_FLAG_TYPE_IN_PLACE.
7884 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7885 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7886 (TARGET_INITIALIZER): Use it.
7887 * c-common.c (attribute_takes_identifier_p): Call it.
7888 * c-common.h: Update prototype.
7889 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7890 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7892 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7895 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7896 DW_ID_down_case for Fortran compilation units.
7898 2010-05-05 Jan Hubicka <jh@suse.cz>
7900 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7903 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7905 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7906 a variable-sized RESULT_DECL.
7908 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7910 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7912 2010-05-05 Jason Merrill <jason@redhat.com>
7915 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7917 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7919 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7920 Jakub Jelinek <jakub@redhat.com>
7923 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7924 (dead_debug_init, dead_debug_finish): New functions.
7925 (dead_debug_add, dead_debug_insert_before): Likewise.
7926 (df_note_bb_compute): Initialize a dead_debug object, add dead
7927 debug uses to it, insert debug bind insns before death insns,
7928 reset debug insns that refer to pending uses at the end.
7929 * rtl.h (make_debug_expr_from_rtl): New prototype.
7930 * varasm.c (make_debug_expr_from_rtl): New function.
7932 2010-05-05 Jan Hubicka <jh@suse.cz>
7934 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7935 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7936 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7937 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7938 lto_varpool_encoder_encode_initializer_p,
7939 lto_set_varpool_encoder_encode_initializer): New functions.
7940 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7941 call output_varpool.
7942 (input_varpool_node): Do not always set analyzed.
7943 (input_cgraph_1): Return vector of cgraph nodes.
7944 (input_varpool_1): Return vector of varpools.
7945 (input_cgraph): Free the vectors.
7946 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7947 output only initializers needed.
7948 (lto_output): Only call output_cgraph.
7949 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7950 * lto-section-out.c (lto_new_out_decl_state): Initialize
7951 state->varpool_node_encoder.
7952 * lto-streamer.h (lto_varpool_encoder_d): New.
7953 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7954 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7955 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7956 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7957 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7959 (output_varpool, input_varpool): Remove declarations.
7961 2010-05-05 Jan Hubicka <jh@suse.cz>
7963 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7964 with body can prevail.
7966 2010-05-05 Jan Hubicka <jh@suse.cz>
7968 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7971 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7973 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7975 * gengtype.h (erro_at_line): Constify pos argument.
7977 * gengtype.c: Include hashtab.h.
7978 (enum gc_used): Document GC_MAYBE_POINTED_TO.
7979 (error_at_line): Constify pos argument.
7980 (do_typedef): Initialize p->opt field.
7981 (get_file_gtfilename): Fix comment typo.
7982 (struct walk_type_data): Constify line field.
7983 (get_output_file_for_structure): New function.
7984 (write_local_func_for_structure): Constify orig_s argument.
7985 Use get_output_file_for_structure.
7986 (write_func_for_structure): Use get_output_file_for_structure.
7987 (INDENT): New define.
7988 (dump_pair, dump_type, dump_type_list, dump_typekind)
7989 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7990 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7992 (seen_types): New variable.
7993 (main): New variable do_dump. Process "-d" command line option.
7994 Call dump_everything if dump requested.
7996 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7998 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7999 in a temporary instead of invoking the macro multiple times.
8000 (track_expr_p): Likewise.
8002 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8004 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8006 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8007 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8008 conditions for printing notes.
8009 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8010 true, update documentation.
8011 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8013 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8016 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8019 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8022 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8023 (*sse_prologue_save_insn1): Likewise.
8024 (SSE prologue save splitter): Likewise.
8026 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8028 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8029 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8030 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8031 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8032 all decls. Call it on DECL_FIELD_OFFSET of fields.
8033 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8034 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8036 2010-05-04 Martin Jambor <mjambor@suse.cz>
8038 * tree-sra.c (build_access_from_expr_1): The first parameter type
8039 changed to simple tree.
8040 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8041 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8043 (build_accesses_from_assign): Removed all parameters except for a
8044 simple gimple statement. Now returns a simple bool.
8045 (scan_function): All non-analysis parts moved to separate functions
8046 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8047 parameters and updated both callers.
8048 (sra_modify_expr): Removed parameter data.
8049 (sra_modify_function_body): New function.
8050 (perform_intra_sra): Call sra_modify_function_body to modify the
8052 (replace_removed_params_ssa_names): Parameter data changed into
8054 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8055 changed the parameter dont_convert to convert with the opposite
8057 (sra_ipa_modify_assign): Parameter data changed into adjustments
8058 vector, return value changed to bool.
8059 (ipa_sra_modify_function_body): New function.
8060 (sra_ipa_reset_debug_stmts): Updated a comment.
8061 (modify_function): Use ipa_sra_modify_function_body to modify function
8064 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8067 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8068 (canon_true_dependence): Likewise.
8069 (write_dependence_p): Likewise.
8071 2010-05-04 Jan Hubicka <jh@suse.cz>
8073 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8074 * cgraphbuild.c: Include ipa-utils.h
8075 (record_reference_ctx): New struct.
8076 (record_reference): Simplify to work on initializers; not statements.
8077 (mark_address, mark_load, mark_store): New.
8078 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8080 (record_references_in_initializer): Update use of record_reference.
8081 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8084 2010-05-04 Jan Hubicka <jh@suse.cz>
8086 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8087 node will be removed anyway.
8088 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8089 relink aliases of node into prevailing node.
8090 * varpool.c (varpool_remove_node): Remove aliases properly;
8091 when removing node, remove all its aliases too; remove DECL_INITIAL
8092 of removed node; ggc_free the varpool node.
8094 2010-05-04 Richard Guenther <rguenther@suse.de>
8096 PR tree-optimization/43879
8097 * tree-ssa-structalias.c (alias_get_name): Use
8098 DECL_ASSEMBLER_NAME if available.
8099 (create_function_info_for): Return the varinfo node.
8100 (ipa_pta_execute): Associate same-body aliases and extra names
8101 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8103 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8105 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8107 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8110 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8111 only if HONOR_REG_ALLOC_ORDER is not defined.
8113 2010-05-04 Richard Guenther <rguenther@suse.de>
8115 PR tree-optimization/43949
8116 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8119 2010-04-26 Jason Merrill <jason@redhat.com>
8121 * c.opt (-fstrict-enums): New.
8122 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8124 2010-05-03 David Ung <davidu@mips.com>
8125 James E. Wilson <wilson@codesourcery.com>
8127 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8128 emit the trap instruction before the divide for TUNE_74K.
8130 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8132 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8133 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8134 based on the above, for new target hook.
8136 * hooks.c (hook_bool_mode_true): New generic hook.
8137 * hooks.h (hook_bool_mode_true): Add prototype.
8139 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8141 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8142 target hook, set to hook_bool_mode_false.
8143 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8144 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8145 with targetm.small_register_classes_for_mode_p.
8146 (find_reusable_reload): Likewise.
8147 (combine_reloads): Likewise.
8148 * reload1.c (reload_as_needed): Likewise.
8149 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8150 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8151 dead_or_predicable): Likewise.
8152 * regmove.c (optimize_reg_copy_1): Likewise.
8153 * calls.c (prepare_call_address): Likewise.
8154 (precompute_register_parameters): Likewise.
8156 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8158 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8159 implementation of the hook that considers all register classes
8160 small except for SH64.
8161 (sh_override_options): Use the new hook.
8162 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8165 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8167 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8168 implementation of the hook that considers all register classes
8170 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8173 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8175 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8176 implementation of the hook that considers all register classes
8178 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8181 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8183 * config/m32c/m32c.h: Likewise.
8184 * config/pdp11/pdp11.h: Likewise.
8185 * config/avr/avr.h: Likewise.
8186 * config/xtensa/xtensa.h: Likewise.
8187 * config/m68hc11/m68hc11.h: Likewise.
8188 * config/mn10300/mn10300.h: Likewise.
8189 * config/mcore/mcore.h: Likewise.
8190 * config/h8300/h8300.h: Likewise.
8191 * config/bfin/bfin.h: Likewise.
8193 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8194 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8196 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8198 * double-int.h (tree_to_double_int): Remove macro.
8199 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8200 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8201 (tree_to_double_int): New function.
8202 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8204 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8206 2010-05-03 Richard Guenther <rguenther@suse.de>
8208 PR tree-optimization/43971
8209 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8210 constraints in the !flag_delete_null_pointer_checks case.
8212 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8215 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8216 result mode matches original rtl mode.
8218 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8221 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8223 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8225 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8226 when processing flag options.
8228 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8230 * gcov-iov.c (main): Change format string placeholder
8231 from %#08x to 0x%08x.
8232 * genchecksum.c (dosum): Change format string placeholder
8233 from %#02x to 0x%02x.
8235 2010-05-02 Richard Guenther <rguenther@suse.de>
8237 PR tree-optimization/43879
8238 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8240 2010-05-02 Bruno Haible <bruno@clisp.org>
8242 * doc/extend.texi (Function Attributes): Fix a typo.
8244 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8247 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8248 placeholder from 0x%x to %#x.
8249 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8250 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8251 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8252 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8253 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8254 * config/i386/i386.c (ix86_target_string): Ditto.
8255 * config/i386/i386.c (output_pic_addr_const): Ditto.
8256 (print_operand): Ditto.
8258 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8260 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8261 placeholder from 0x%x to %#x.
8262 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8263 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8264 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8265 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8266 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8267 * optc-gen.awk: Ditto.
8268 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8269 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8270 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8271 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8273 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8275 * target.h (struct calls): Add function_value_regno_p field.
8276 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8277 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8278 * targhooks.c (default_function_value_regno_p): New function.
8279 * targhooks.h (default_function_value_regno_p): Declare function.
8280 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8281 * builtins.c. (apply_result_size): (Ditto.).
8282 * combine.c. (likely_spilled_retval_p): (Ditto.).
8283 * mode-switching.c. Include 'target.h'.
8284 (create_pre_exit): Use function_value_regno_p hook.
8285 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8286 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8287 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8289 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8290 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8291 (ix86_function_value_regno_p): Declare as static, change argument
8292 type to const unsigned int.
8293 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8295 2010-05-01 Richard Guenther <rguenther@suse.de>
8297 PR tree-optimization/43949
8298 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8300 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8302 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8304 * rtl.h (CONST_DOUBLE_P): Define.
8305 (rtx_to_double_int): Declare.
8306 * emit-rtl.c (rtx_to_double_int): New function.
8307 * dwarf2out.c (insert_double): New function.
8308 (loc_descriptor, add_const_value_attribute): Clean up, use
8309 rtx_to_double_int and insert_double functions.
8311 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8313 * doc/extend.texi (Inline): Add missing return keyword to examples.
8314 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8317 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8319 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8320 the variable part of the offset as well. Use highest_pow2_factor for
8321 all alignment checks.
8323 2010-04-30 Richard Guenther <rguenther@suse.de>
8325 PR tree-optimization/43879
8326 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8329 2010-04-30 Jan Hubicka <jh@suse.cz>
8331 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8333 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8335 2010-04-30 Jan Hubicka <jh@suse.cz>
8337 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8339 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8340 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8341 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8342 cgraph_node_set_needs_ltrans_p): Remove.
8344 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8346 * sdbout.c: Include vec.h, do not include varray.h.
8347 (deferred_global_decls, sdbout_global_decl,
8348 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8349 * toplev.c: Do not include varray.h.
8350 (dump_memory_report): Do not dump VARRAY statistics.
8351 * gengtype.c (open_base_file): Ignore varray.h.
8352 * Makefile.in: Update for abovementioned changes.
8353 Remove all traces of varray.c and varray.h.
8354 * varray.c: Remove file.
8355 * varray.h: Remove file.
8357 2010-04-30 Jan Hubicka <jh@suse.cz>
8359 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8362 2010-04-30 Jan Hubicka <jh@suse.cz>
8364 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8367 2010-04-30 Richard Guenther <rguenther@suse.de>
8369 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8370 constraints for CONSTRUCTOR.
8372 2010-04-30 Richard Guenther <rguenther@suse.de>
8375 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8376 first after all lowering passes.
8378 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8380 * toplev.c: Include varray.h for statistics dumping.
8381 * tree.h: Do not declare varray_head_tag.
8382 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8383 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8384 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8385 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8386 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8387 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8388 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8389 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8391 * Makefile.in: Update for abovementioned changes.
8393 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8396 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8398 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8400 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8401 Use this function to do machine-specific conversion.
8402 (picochip_legitimize_reload_address): Likewise.
8403 (picochip_legitimate_address_p): Check valid base register only if
8405 (picochip_check_conditional_copy): Check for modw only if opnd is
8407 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8408 to call the function in c.
8409 * config/picochip/picochip-protos.h
8410 (picochip_legitimize_reload_address): Define.
8411 * config/picochip/picochip.md (supported_compare1): Define.
8413 2010-04-30 Jan Hubicka <jh@suse.cz>
8415 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8416 (cgraph_global_info): Remove inlined.
8417 (LTO_cgraph_tag_names): Remove.
8418 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8419 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8420 simplify cgraph tags and document.
8421 (lto_output_node): Use only LTO_cgraph_unavail_node and
8422 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8423 for_functions_valid, global info, process and output flags.
8424 (input_overwrite_node): Initialize estimated stack size and
8425 estimated growth. Do not read flags we no longer store.
8426 (input_node): Likewise do not read info no longer stored.
8427 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8430 2010-04-30 Richard Guenther <rguenther@suse.de>
8432 PR tree-optimization/43879
8433 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8434 handle non-zero initializers.
8436 2010-04-30 Richard Guenther <rguenther@suse.de>
8438 * builtins.c (fold_builtin_1): Delete free (0).
8440 2010-04-29 Jan Hubicka <jh@suse.cz>
8442 * gengtype.c (open_base_files): Add lto-streamer.h
8443 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8444 (pass_ipa_cp): GGC collect.
8445 * toplev. (compile_file): Do not output symbols.
8446 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8447 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8448 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8449 * lto-section-in.c: Include ggc.h
8450 (lto_new_in_decl_state): Alloc in GGC.
8451 (lto_delete_in_decl_state): Likewise.
8452 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8455 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8458 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8459 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8460 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8461 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8462 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8463 account only if HONOR_REG_ALLOC_ORDER is not defined.
8464 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8465 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8467 2010-04-29 Jon Grant <04@jguk.org>
8469 * collect2.c (vflag): Change type from int to bool.
8471 (helpflag): New global bool.
8472 (main): Set vflag and debug with boolean, not integer truth values.
8473 Accept new "--help" option and output usage text if found.
8474 * collect2.h (vflag): Update prototype.
8477 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8480 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8482 2010-04-29 Richard Guenther <rguenther@suse.de>
8485 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8486 with ATTRIBUTE_UNUSED.
8488 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8491 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8492 INSN_P with NONDEBUG_INSN_P.
8493 (distance_non_agu_define): Likewise.
8494 (distance_agu_use): Likewise.
8496 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8498 From Dominique d'Humieres <dominiq@lps.ens.fr>
8500 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8503 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8505 * plugin.h (invoke_plugin_callbacks): New inline function.
8506 * plugin.c (flag_plugin_added): New global flag.
8507 (add_new_plugin): Initialize above flag.
8508 (invoke_plugin_callbacks): Rename to ...
8509 (invoke_plugin_callbacks_full): ... this.
8511 2010-04-28 Jan Hubicka <jh@suse.cz>
8513 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8514 (lto_varpool_replace_node): New.
8515 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8516 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8517 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8518 * cgraph.h (varpool_node_ptr): New type.
8519 (varpool_node_ptr): New vector.
8520 (varpool_node_set_def): New structure.
8521 (varpool_node_set): New type.
8522 (varpool_node_set): New vector.
8523 (varpool_node_set_element_def): New structure.
8524 (varpool_node_set_element, const_varpool_node_set_element): New types.
8525 (varpool_node_set_iterator): New type.
8526 (varpool_node): Add prev pointers, add used_from_other_partition,
8528 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8529 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8530 varpool_get_node, varpool_remove_node): Declare.
8531 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8532 varpool_node_set_size): New inlines.
8533 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8534 * tree-pass.h (varpool_node_set_def): Forward declare.
8535 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8536 (ipa_write_optimization_summaries): Update prototype.
8537 * ipa-cp.c (ipcp_write_summary): Update.
8538 * ipa-reference.c (ipa_reference_write_summary): Update.
8539 * lto-cgraph.c (lto_output_varpool_node): New static function.
8540 (output_varpool): New function.
8541 (input_varpool_node): New static function.
8542 (input_varpool_1): New function.
8543 (input_cgraph): Input varpool.
8544 * ipa-pure-const.c (pure_const_write_summary): Update.
8545 * lto-streamer-out.c (lto_output): Update, output varpool too.
8546 (write_global_stream): Kill WPA hack.
8547 (produce_asm_for_decls): Update.
8548 (output_alias_pair_p): Handle variables.
8549 (output_unreferenced_globals): Output only needed partition of varpool.
8550 * ipa-inline.c (inline_write_summary): Update.
8551 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8553 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8554 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8555 varpool_node_set_new, varpool_node_set_add,
8556 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8557 debug_varpool_node_set): New functions.
8558 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8559 (execute_one_pass): Process new decls too.
8560 (ipa_write_summaries_2): Pass around vsets.
8561 (ipa_write_summaries_1): Likewise.
8562 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8564 (ipa_write_optimization_summaries_1): Pass around vsets.
8565 (ipa_write_optimization_summaries): Likewise.
8566 * varpool.c (varpool_get_node): New.
8567 (varpool_node): Update doubly linked lists.
8568 (varpool_remove_node): New.
8569 (dump_varpool_node): More dumping.
8570 (varpool_enqueue_needed_node): Update doubly linked lists.
8571 (decide_is_variable_needed): Kill ltrans hack.
8572 (varpool_finalize_decl): Kill lto hack.
8573 (varpool_assemble_decl): Skip decls in other partitions.
8574 (varpool_assemble_pending_decls): Update doubly linkes lists.
8575 (varpool_empty_needed_queue): Likewise.
8576 (varpool_extra_name_alias): Likewise.
8577 * lto-streamer.c (lto_get_section_name): Add vars section.
8578 * lto-streamer.h (lto_section_type): Update.
8579 (output_varpool, input_varpool): Declare.
8581 2010-04-28 Mike Stump <mikestump@comcast.net>
8583 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8585 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8587 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8588 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8589 (lto_input_ts_type_tree_pointers): Likewise.
8590 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8591 (lto_output_ts_type_tree_pointers): Likewise.
8593 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8595 Uniquization of constants at the Tree level
8596 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8597 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8599 (tree_output_constant_def): Declare.
8600 * gimplify.c (gimplify_init_constructor): When using block copy, first
8601 uniquize the constant constructor on the RHS.
8602 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8603 DECL_IN_CONSTANT_POOL flag.
8604 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8605 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8607 (assemble_variable): Deal with symbols belonging to the tree constant
8609 (get_constant_section): Add ALIGN parameter and simplify.
8610 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8611 (assemble_constant_contents): Use the expression of the VAR_DECL.
8612 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8613 (tree_output_constant_def): New global function.
8614 (mark_constant): Use the expression of the VAR_DECL.
8615 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8617 (output_object_block): Likewise and assemble the expression.
8619 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8621 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8622 hash_tree, eq_tree): New tree hash table.
8623 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8624 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8625 lto_orig_address_remove): Reimplement.
8627 2010-04-28 Xinliang David Li <davidxl@google.com>
8630 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8631 (compute_uninit_opnds_pos): New function.
8632 (is_non_loop_exit_postdominating): New function.
8633 (compute_control_dep_chain): New function.
8634 (find_pdom): New function.
8635 (convert_control_dep_chain_into_preds): New function.
8636 (find_predicates): New function.
8637 (find_control_equiv_block): New function.
8638 (collect_phi_def_edges): New function.
8639 (find_def_preds): New function.
8640 (find_dom): New function.
8641 (dump_predicates): New function.
8642 (get_cmp_code): New function.
8643 (is_value_included_in): New function.
8644 (find_matching_predicate_in_rest_chains): New function.
8645 (use_pred_not_overlap_with_undef_path_pred): New function.
8646 (is_use_properly_guarded): New function.
8647 (normalize_cond_1): New function.
8648 (is_and_or_or): New function.
8649 (normalize_cond): New function.
8650 (is_gcond_subset_of): New function.
8651 (is_subset_of_any): New function.
8652 (is_or_set_subset_of): New function.
8653 (is_and_set_subset_of): New function.
8654 (is_norm_cond_subset_of): New function.
8655 (is_pred_expr_subset_of): New function.
8656 (is_pred_chain_subset_of): New function.
8657 (is_included_in): New function.
8658 (is_superset_of): New function.
8659 (find_uninit_use): New function.
8660 (warn_uninitialized_phi): New function.
8661 (compute_possibly_undefined_names): New function.
8662 (ssa_undefined_value_p): New function.
8663 (execute_late_warn_uninitialized): New function.
8664 * tree-ssa.c (ssa_undefined_value_p): Removed.
8665 (warn_uninit): Changed to extern.
8666 (warn_uninitialized_phi): Removed.
8667 (warn_uninitialized_vars): Changed to extern.
8668 (execute_late_warn_uninitialized): Removed
8669 * tree-flow.h: Add new prototypes.
8670 * timevar.def: Add new time variable.
8671 * Makefile.in: Add new build file.
8673 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8675 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8678 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8681 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8683 2010-04-28 Martin Jambor <mjambor@suse.cz>
8685 * cgraph.h (struct cgraph_node): New field indirect_calls.
8686 (struct cgraph_indirect_call_info): New type.
8687 (struct cgraph_edge): Removed field indirect_call. New fields
8688 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8689 (cgraph_create_indirect_edge): Declare.
8690 (cgraph_make_edge_direct): Likewise.
8691 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8692 * ipa-prop.h (struct ipa_param_call_note): Removed.
8693 (struct ipa_node_params): Removed field param_calls.
8694 (ipa_create_all_structures_for_iinln): Declare.
8695 * cgraph.c: Described indirect edges and uids in initial comment.
8696 (cgraph_add_edge_to_call_site_hash): New function.
8697 (cgraph_edge): Search also among the indirect edges, use
8698 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8699 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8700 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8702 (initialize_inline_failed): Assign a reason to indirect edges.
8703 (cgraph_create_edge_1): New function.
8704 (cgraph_create_edge): Moved some functionality to
8705 cgraph_create_edge_1.
8706 (cgraph_create_indirect_edge): New function.
8707 (cgraph_edge_remove_callee): Add an assert checking for
8709 (cgraph_edge_remove_caller): Special-case indirect edges.
8710 (cgraph_remove_edge): Likewise.
8711 (cgraph_set_edge_callee): New function.
8712 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8713 (cgraph_make_edge_direct): New function.
8714 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8715 the declaration of the call statement matches.
8716 (cgraph_node_remove_callees): Special-case indirect edges.
8717 (cgraph_clone_edge): Likewise.
8718 (cgraph_clone_node): Clone also the indirect edges.
8719 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8720 indirect_call, dump count of indirect_calls edges.
8721 * ipa-prop.c (iinlining_processed_edges): New variable.
8722 (ipa_note_param_call): Create indirect edges instead of
8723 creating notes. New parameter node.
8724 (ipa_analyze_call_uses): New parameter node, pass it on to
8725 ipa_note_param_call.
8726 (ipa_analyze_stmt_uses): Likewise.
8727 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8728 (print_edge_addition_message): Work on edges rather than on notes.
8729 (update_call_notes_after_inlining): Likewise, renamed to
8730 update_indirect_edges_after_inlining.
8731 (ipa_create_all_structures_for_iinln): New function.
8732 (ipa_free_node_params_substructures): Do not free notes.
8733 (ipa_edge_duplication_hook): Propagate bits within
8734 iinlining_processed_edges bitmap.
8735 (ipa_node_duplication_hook): Do not duplicate notes.
8736 (free_all_ipa_structures_after_ipa_cp): Renamed to
8737 ipa_free_all_structures_after_ipa_cp.
8738 (free_all_ipa_structures_after_iinln): Renamed to
8739 ipa_free_all_structures_after_iinln.
8740 (ipa_write_param_call_note): Removed.
8741 (ipa_read_param_call_note): Removed.
8742 (ipa_write_indirect_edge_info): New function.
8743 (ipa_read_indirect_edge_info): Likewise.
8744 (ipa_write_node_info): Do not stream notes, do stream information
8746 (ipa_read_node_info): Likewise.
8747 (lto_ipa_fixup_call_notes): Removed.
8748 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8749 * ipa-inline.c (pass_ipa_inline): Likewise.
8750 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8751 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8752 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8754 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8756 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8757 (output_cgraph): Stream also indirect edges.
8758 (lto_output_edge): Added capability to stream indirect edges.
8759 (input_edge): Likewise.
8760 (input_cgraph_1): Likewise.
8761 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8764 2010-04-28 Richard Guenther <rguenther@suse.de>
8766 PR tree-optimization/43879
8767 PR tree-optimization/43909
8768 * tree-ssa-structalias.c (struct variable_info): Add
8769 only_restrict_pointers flag.
8770 (new_var_info): Initialize it. Increment stats.total_vars here.
8771 (create_function_info_for): Do not increment stats.total_vars here.
8772 (get_function_part_constraint): Fix build with C++.
8773 (insert_into_field_list): Remove.
8774 (push_fields_onto_fieldstack): Properly merge fields.
8775 (create_variable_info_for): Split and simplify.
8776 (create_variable_info_for_1): New piece.
8777 (intra_create_variable_infos): Properly make restrict constraints
8780 2010-04-28 Richard Guenther <rguenther@suse.de>
8783 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8785 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8786 Jan Hubicka <hubicka@ucw.cz>
8788 * doc/invoke.texi (-Wsuggest-attribute=const,
8789 -Wsuggest-attribute=pure): Document.
8790 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8791 (function_always_visible_to_compiler_p,
8792 suggest_attribute, warn_function_pure, warn_function_const):
8794 (check_call): Improve debug info.
8795 (analyze_function): Do not check availability.
8796 (add_new_function): Check availability.
8797 (propagate): Output warnings.
8798 (skip_function_for_local_pure_const): New function.
8799 (local_pure_const): Use it; output warnings.
8800 * common.opt (Wsuggest-attribute=const,
8801 Wsuggest-attribute=pure): New.
8803 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8805 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8806 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8807 or DW_CFA_def_cfa_offset{,_sf}.
8809 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8811 * tree.h: Fix truncated long macros.
8813 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8815 * collect2.c (TARGET_64BIT): Redefine to target's default.
8816 * tlink.c: Likewise.
8817 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8818 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8819 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8820 for underscoring __USER_LABEL_PREFIX__.
8821 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8822 (SUB_LINK_ENTRY32): New.
8823 (SUB_LINK_ENTRY64): New.
8824 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8825 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8826 (SUB_LINK_ENTRY64): New.
8827 (SUB_LINK_ENTRY): New.
8828 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8829 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8830 x64 target is choosen.
8831 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8832 * configure: Regenerated.
8833 * configure.ac (leading-mingw64-underscores): Option added.
8835 2010-04-27 Jan Hubicka <jh@suse.cz>
8837 * doc/invoke.texi (-fipa-profile): Document.
8838 * opts.c (decode_options): Enable ipa-profile at -O1.
8839 * timevar.def (TV_IPA_PROFILE): Define.
8840 * common.opt (fipa-profile): Add.
8841 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8843 (cgraph_propagate_frequency): Handle only local ones.
8844 * tree-pass.h (pass_ipa_profile): Declare.
8845 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8846 (pass_ipa_profile): Use TV_IPA_PROFILE.
8847 * ipa.c (ipa_profile): New function.
8848 (gate_ipa_profile): Likewise.
8849 (pass_ipa_profile): New global variable.
8850 * passes.c (pass_ipa_profile): New.
8852 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8854 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8856 2010-04-27 Martin Jambor <mjambor@suse.cz>
8859 * ipa.c (dissolve_same_comdat_group_list): New function.
8860 (function_and_variable_visibility): Call
8861 dissolve_same_comdat_group_list when comdat group contains external or
8863 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8864 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8866 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8868 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8869 (const_hash_1) <VECTOR_CST>: New case.
8870 (compare_constant) <VECTOR_CST>: Likewise.
8871 <ADDR_EXPR>: Deal with LABEL_REFs.
8872 (copy_constant) <VECTOR_CST>: New case.
8874 2010-04-27 Jan Hubicka <jh@suse.cz>
8876 * cgraph.c (cgraph_propagate_frequency): New function.
8877 * cgraph.h (cgraph_propagate_frequency): Declare.
8878 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8879 cgraph_propagate_frequency.
8881 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8883 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8885 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8888 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8889 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8890 here to determine which regs to push and how much stack to reserve.
8892 2010-04-27 Jie Zhang <jie@codesourcery.com>
8894 * doc/gimple.texi (gimple_statement_with_ops): Remove
8895 addresses_taken field.
8896 (gimple_statement_with_memory_ops): Likewise.
8898 2010-04-27 Jan Hubicka <jh@suse.cz>
8900 * tree-inline.c (eni_inlining_weights): Remove.
8901 (estimate_num_insns): Special case more builtins.
8903 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8906 * c-typeck.c (build_binary_op): Move forward check for comparison
8907 pointer with null pointer constant and adjust the diagnostic message.
8909 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8912 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8913 binutils supports extended .section directive needed by LTO, or
8914 warn if older binutils found.
8915 (LTO_BINARY_READER): New AC_SUBST'd variable.
8916 (LTO_USE_LIBELF): Likewise.
8917 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8919 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8920 (LTO_USE_LIBELF): Likewise.
8921 * configure: Regenerate.
8923 * collect2.c (is_elf): Rename from this ...
8924 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8925 object files in addition to ELF-formatted ones.
8926 (scan_prog_file): Caller updated. Also allow for LTO info marker
8927 symbol to be prefixed or not by an extra underscore.
8929 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8930 * config/i386/winnt.c: Also #include lto-streamer.h
8931 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8933 (i386_pe_asm_output_aligned_decl_common): Add comment.
8934 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8936 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8939 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8940 Add missing earlyclobber for second alternative.
8942 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8944 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8945 bits for artificial defs at the top of the block.
8946 * fwprop.c (single_def_use_enter_block): Don't call it.
8948 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
8951 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8952 instead of "$gcc_cv_objdump -T".
8953 Use "-undefined dynamic_lookup" on darwin.
8954 * gcc/configure: Regenerate.
8956 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8959 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8961 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8963 * c-parser.c (struct c_token): Move location field up.
8964 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8965 (struct c_declspecs): Convert typespec_word, storage_class, and
8966 default_int_p into bitfields.
8967 (struct c_declarator): Move loc field up.
8969 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8971 * cfgloop.h (struct loop): Move can_be_parallel field up.
8972 * ipa-prop.h (struct ip_node_params): Move bitfields up.
8973 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8975 (struct iv_cand): Convert pos field into a bitfield.
8976 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8978 (struct _stmt_vec_info): Shuffle fields for better packing.
8980 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8982 * varasm.c (IN_NAMED_SECTION): Remove guard.
8983 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8984 (IN_NAMED_SECTION_P): ...this.
8985 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8986 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8988 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8990 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8991 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
8992 of shadowing it. Fix comments.
8994 2010-04-26 Jan Hubicka <jh@suse.cz>
8996 * cgraph.c (cgraph_create_node): Set node frequency to normal.
8997 (cgraph_clone_node): Copy function frequency.
8998 * cgraph.h (node_frequency): New enum
8999 (struct cgraph_node): Add.
9000 * final.c (rest_of_clean_state): Update.
9001 * lto-cgraph.c (lto_output_node): Output node frequency.
9002 (input_overwrite_node): Input node frequency.
9003 * tre-ssa-loop-ivopts (computation_cost): Update.
9004 * lto-streamer-out.c (output_function): Do not output function
9006 * predict.c (maybe_hot_frequency_p): Update and handle functions
9008 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9010 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9011 (compute_function_frequency): Set noreturn functions to be executed
9013 (choose_function_section): Update.
9014 * lto-streamer-in.c (input_function): Do not input function frequency.
9015 * function.c (allocate_struct_function): Do not initialize function
9017 * function.h (function_frequency): Remove.
9018 (struct function): Remove function frequency.
9019 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9020 (try_update): Update.
9021 * tree-inline.c (initialize_cfun): Do not update function frequency.
9022 * passes.c (pass_init_dump_file): Update.
9023 * i386.c (ix86_compute_frame_layout): Update.
9024 (ix86_pad_returns): Update.
9026 2010-04-26 Jie Zhang <jie@codesourcery.com>
9028 PR tree-optimization/43833
9029 * tree-vrp.c (range_int_cst_p): New.
9030 (range_int_cst_singleton_p): New.
9031 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9032 when both operands are constants. Use range_int_cst_p in
9035 2010-04-26 Jan Hubicka <jh@suse.cz>
9037 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9039 2010-04-26 Richard Guenther <rguenther@suse.de>
9042 * gimple.c (gimple_decl_printable_name): Deal gracefully
9043 with a NULL DECL_NAME.
9045 2010-04-26 Richard Guenther <rguenther@suse.de>
9048 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9049 if emitting debug information and it is either a function
9050 or a namespace decl.
9052 2010-04-26 Ira Rosen <irar@il.ibm.com>
9054 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9055 determine if the statement is vectorizable, and a macro to access it.
9056 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9057 Skip statements that can't be vectorized. If the analysis fails,
9058 mark the statement as unvectorizable if vectorizing basic block.
9059 (vect_compute_data_refs_alignment): Likewise.
9060 (vect_verify_datarefs_alignment): Skip statements marked as
9061 unvectorizable. Add print.
9062 (vect_analyze_group_access): Skip statements that can't be
9063 vectorized. If the analysis fails, mark the statement as
9064 unvectorizable if vectorizing basic block.
9065 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9066 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9067 generated stmts for SLP.
9068 (new_stmt_vec_info): Initialize the new field.
9069 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9070 statements marked as unvectorizable.
9072 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9074 * c-common.c (flag_isoc1x): New.
9075 (flag_isoc99): Update comment.
9076 * c-common.h (flag_isoc1x): New.
9077 (flag_isoc99): Update comment.
9078 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9079 __<type>_DECIMAL_DIG__.
9080 * c-opts.c (set_std_c1x): New.
9081 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9082 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9083 * c.opt (-std=c1x, -std=gnu1x): New options.
9084 * doc/cpp.texi: Mention -std=c1x.
9085 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9086 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9087 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9088 * doc/standards.texi: Mention C1X.
9089 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9090 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9091 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9094 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9096 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9097 placeholder from 0x%x to %#x.
9098 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9099 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9100 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9101 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9102 * config/i386/i386.c (ix86_target_string): Ditto.
9103 (output_pic_addr_const): Ditto.
9104 (print_operand): Ditto.
9106 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9108 * combine.c (find_split_point): Add third argument. Use it
9109 to find nested multiply-accumulate instructions. Adjust calls.
9110 (try_combine): Adjust call to find_split_point.
9112 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9114 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9116 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9118 PR tree-optimization/41442
9119 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9120 (fold_binary_loc): Call it.
9122 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9124 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9125 * opts.c (common_handle_option): Allow disabling it.
9126 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9128 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9130 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9131 between modes if both types are integral.
9133 2010-04-23 Richard Guenther <rguenther@suse.de>
9135 PR tree-optimization/43572
9136 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9138 2010-04-23 Richard Guenther <rguenther@suse.de>
9141 * tree-inline.c (tree_can_inline_p): Also check compatibility
9144 2010-04-23 Martin Jambor <mjambor@suse.cz>
9146 PR tree-optimization/43846
9147 * tree-sra.c (struct access): New flag grp_assignment_read.
9148 (build_accesses_from_assign): Set grp_assignment_read.
9149 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9150 (enum mark_read_status): New type.
9151 (analyze_access_subtree): Propagate grp_assignment_read, create
9152 accesses also if both direct_read and root->grp_assignment_read.
9154 2010-04-23 Martin Jambor <mjambor@suse.cz>
9157 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9158 function does not have type attributes.
9160 2010-04-23 Richard Guenther <rguenther@suse.de>
9163 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9166 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9168 * sese.h (create_if_region_on_edge): Remove.
9170 * sese.c (create_if_region_on_edge): Make static.
9172 * tree-inline.c: Do not include ggc.h.
9174 * expr.c: Do not include ggc.h.
9176 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9179 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9182 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9183 in the middle of insns for casesi_worker_2.
9185 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9187 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9189 2010-04-22 Ira Rosen <irar@il.ibm.com>
9191 PR tree-optimization/43842
9192 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9193 loop unrolling in update of exit phis. Fix comment.
9194 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9195 least two reduction statements in the loop before starting SLP
9198 2010-04-22 Nick Clifton <nickc@redhat.com>
9200 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9202 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9204 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9207 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9209 * tree-parloops.c (loop_parallel_p): New argument
9210 parloop_obstack. Pass it down.
9211 (parallelize_loops): New variable parloop_obstack. Initialize it,
9212 pass it down, free it.
9214 * tree-loop-linear.c (linear_transform_loops): Pass down
9217 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9218 of type struct obstack *.
9220 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9221 scratch_obstack. Initialize it, pass down, free it.
9223 * lambda.h (lambda_loop_new): Remove.
9224 (lambda_matrix_new, lambda_matrix_inverse)
9225 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9226 argument of type struct obstack *.
9228 * lambda-trans.c (lambda_trans_matrix_new): New argument
9229 lambda_obstack. Pass it down, use obstack allocation for ret.
9230 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9233 * lambda-mat.c (lambda_matrix_get_column)
9234 (lambda_matrix_project_to_null): Remove.
9235 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9237 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9240 * lambda-code.c (lambda_loop_new): New function.
9241 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9242 (lambda_compute_auxillary_space, lambda_compute_target_space)
9243 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9244 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9245 (build_access_matrix): New argument lambda_obstack. Use obstack
9247 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9248 argument lambda_obstack. Pass it down.
9250 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9252 * optabs.h (expand_widening_mult): Declare.
9254 2010-04-22 Richard Guenther <rguenther@suse.de>
9256 PR tree-optimization/43845
9257 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9258 lookup the CALL_EXPR function and arguments.
9260 2010-04-22 Nick Clifton <nickc@redhat.com>
9262 * config/stormy16/stormy16.c
9263 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9264 * config/stormy16/stormy16.h: Tidy up formatting.
9265 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9266 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9267 (ineqbranchsi): Delete pattern.
9268 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9269 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9270 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9271 stormy16-lib2-ucmpsi2.c.
9273 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9275 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9276 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9277 extra set merge_set_noclobber, and use it to relax the final test
9279 * df.h (df_simulate_find_noclobber_defs): Declare.
9280 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9282 (df_simulate_find_noclobber_defs): New function.
9284 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9286 * config/i386/i386.md: Use {} around multi-line preparation statements.
9288 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9290 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9291 (process_init_element): New argument of type struct obstack *.
9293 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9294 (set_init_index, set_init_label, set_nonincremental_init)
9295 (set_nonincremental_init_from_string, find_init_member)
9296 (output_init_element, output_pending_init_elements)
9297 (process_init_element): New argument braced_init_obstack. Pass it
9299 (push_range_stack, add_pending_init): New argument
9300 braced_init_obstack. Use obstack allocation.
9302 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9303 braced_init_obstack. Pass it down.
9304 (c_parser_braced_init): New variables ret, braced_init_obstack.
9305 Initialize obstack, pass it down and finally free it.
9307 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9310 * tree-pass.h (pass_optimize_widening_mul): Declare.
9311 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9312 gate_optimize_widening_mul): New static functions.
9313 (pass_optimize_widening_mul): New.
9314 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9315 <case MULT_EXPR>: Remove support for widening multiplies.
9316 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9317 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9318 simplify_gen_unary rather than directly building extensions.
9319 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9321 * expmed.c (expand_widening_mult): New function.
9322 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9324 2010-04-21 Jan Hubicka <jh@suse.cz>
9326 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9327 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9328 * lto-wpa-fixup.c: Remove.
9329 * Makefile.in (lto-wpa-fixup.o): Remove.
9330 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9331 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9332 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9334 2010-04-21 Jan Hubicka <jh@suse.cz>
9336 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9337 add write_optimization_summary, read_optimization_summary.
9338 (ipa_write_summaries_of_cgraph_node_set): Remove.
9339 (ipa_write_optimization_summaries): Declare.
9340 (ipa_read_optimization_summaries): Declare.
9341 * ipa-cp.c (pass_ipa_cp): Update.
9342 * ipa-reference.c (pass_ipa_reference): Update.
9343 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9344 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9346 * ipa-inline.c (pass_ipa_inline): Update.
9347 * ipa.c (pass_ipa_whole_program): Update.
9348 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9349 * passes.c (ipa_write_summaries_1): Do not test wpa.
9350 (ipa_write_optimization_summaries_1): New.
9351 (ipa_write_optimization_summaries): New.
9352 (ipa_read_summaries): Do not test ltrans.
9353 (ipa_read_optimization_summaries_1): New.
9354 (ipa_read_optimization_summaries): New.
9356 2010-04-21 Jan Hubicka <jh@suse.cz>
9358 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9360 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9362 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9365 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9366 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9368 2010-04-21 Jan Hubicka <jh@suse.cz>
9370 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9372 2010-04-21 Jan Hubicka <jh@suse.cz>
9374 * varpool.c (decide_is_variable_needed): Variable is always needed
9377 2010-04-21 Jan Hubicka <jh@suse.cz>
9379 * opts.c (decode_options): Enable pure-const pass for whopr.
9381 2010-04-21 Jan Hubicka <jh@suse.cz>
9383 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9384 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9386 (cgraph_decide_inlining): Do not expect callee to be removed in all
9389 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9391 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9393 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9395 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9396 amdfam10_decode attributes.
9398 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9401 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9402 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9403 (lower_copyprivate_clauses): Use private var in outer
9404 context instead of original var. Make sure the types
9405 are correct for VLAs.
9407 2010-04-21 Richard Guenther <rguenther@suse.de>
9409 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9410 to non-pointer objects.
9412 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9414 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9415 last chain entry if it starts with the still current label.
9416 (add_location_or_const_value_attribute): Check that
9417 loc_list->first->next is NULL instead of comparing ->first with ->last.
9418 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9419 to add_var_loc_to_decl.
9421 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9422 >= 4 add also address size and segment size fields into CIE header.
9424 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9425 long as address size is the same as sizeof (void *) and
9427 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9428 address size or segment size is unexpected, return DW_EH_PE_omit.
9429 (classify_object_over_fdes): If get_cie_encoding returned
9430 DW_EH_PE_omit, return -1.
9431 (init_object): If classify_object_over_fdes returned -1,
9432 pretend there were no FDEs at all.
9434 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9436 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9437 bswap{si,di}2 using SWI48 mode iterator.
9438 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9439 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9440 set modrm attribute of bswap insn to 0 and remove length attribute.
9441 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9442 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9443 set mode attribute to <MODE> and remove length attribute.
9445 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9447 PR rtl-optimization/43520
9448 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9449 zero available registers.
9451 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9453 * builtins.c (fold_builtin_cproj): Fold more cases.
9455 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9457 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9458 (fold_builtin_1): Fold builtin cproj.
9459 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9460 Use ATTR_CONST_NOTHROW_LIST.
9462 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9464 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9465 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9466 ffsi2_no_cmove for !TARGET_CMOVE.
9467 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9468 (ffssi2): Remove expander.
9469 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9471 (ctz<mode>2): Ditto from ctz{si,di}2.
9472 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9474 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9477 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9479 * dwarf2out.c (AT_linkage_name): Define.
9480 (clone_as_declaration): Handle DW_AT_linkage_name.
9481 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9482 of DW_AT_MIPS_linkage_name.
9483 (move_linkage_attr): Likewise.
9484 (dwarf2out_finish): Likewise.
9486 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9489 * fold-const.c (fold_comparison): New folding rule.
9491 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9493 * double-int.h (double_int_setbit): Declare.
9494 * double-int.c (double_int_setbit): New function.
9495 * rtl.h (immed_double_int_const): Declare.
9496 * emit-rtl.c (immed_double_int_const): New function.
9497 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9498 and immed_double_int_const functions.
9499 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9500 expand_copysign_bit): (Ditto.).
9501 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9502 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9503 * dojump.c (prefer_and_bit_test): (Ditto.).
9504 * expr.c (convert_modes, reduce_to_bit_field_precision,
9505 const_vector_from_tree): (Ditto.).
9506 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9508 2010-04-20 Jan Hubicka <jh@suse.cz>
9510 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9511 (dump_cgraph_node): Dump new flags.
9512 * cgraph.h (struct cgraph_node): Add flags
9513 reachable_from_other_partition and in_other_partition.
9514 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9515 other partition can not be removed.
9516 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9517 the other partition must be output; silence sanity checking on
9518 leaking functions bodies from other paritition.
9519 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9520 (lto_output_node): Output new flags; do not sanity check that inline
9521 clones are output; drop lto_forced_extern_inline_p code; do not mock
9522 visibility flags at partition boundaries.
9523 (add_node_to): New function.
9524 (output_cgraph): Use it to sort functions so masters appear before
9526 (input_overwrite_node): Input new flags.
9527 * passes.c (ipa_write_summaries): Do not call
9528 lto_new_extern_inline_states.
9529 * lto-section-out.c (forced_extern_inline,
9530 lto_new_extern_inline_states lto_delete_extern_inline_states,
9531 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9532 * lto-streamer.h (lto_new_extern_inline_states,
9533 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9534 lto_forced_extern_inline_p): Kill.
9536 2010-04-20 Richard Guenther <rguenther@suse.de>
9538 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9539 from vars that can have pointers.
9540 (process_constraint): Dump useless constraints.
9542 2010-04-20 Richard Guenther <rguenther@suse.de>
9544 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9545 (dump_sa_points_to_info): Remove asserts.
9546 (init_base_vars): nothing_id isn't an escape point nor does it
9549 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9551 * tree.h (TYPE_REF_IS_RVALUE): Define.
9552 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9553 should_move_die_to_comdat, prune_unused_types_walk): Handle
9554 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9555 (modified_type_die, gen_reference_type_die): Emit
9556 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9557 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9559 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9562 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9563 calls for -fpic -m31 if they have been sibcall optimized.
9565 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9567 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9568 ar.lc fixed and call-used.
9570 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9572 2010-04-19 Jan Hubicka <jh@suse.cz>
9574 * opts.c (decode_options): Disable whpr incompatible passes.
9575 * lto/lto.c (lto_1_to_1_map): Skip clones.
9576 (read_cgraph_and_symbols): Do not mark everything as needed.
9577 (do_whole_program_analysis): Do map only after optimizing;
9578 set proper cgraph_state; use passmanager.
9580 2010-04-19 DJ Delorie <dj@redhat.com>
9582 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9583 POINTER_PLUS_EXPR and fix them.
9585 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9587 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9588 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9589 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9590 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9591 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9592 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9593 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9594 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9595 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9596 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9597 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9599 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9601 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9602 (check_cond_move_block): Likewise.
9603 (cond_move_process_if_block): Likewise.
9604 (noce_find_if_block): Improve formatting.
9605 (find_if_header): Pass 0 to memset and tweak conditions.
9606 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9608 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9610 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9614 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9615 with non-local decl doesn't need chain.
9617 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9619 * ira-color.c (allocno_reload_assign): Avoid accumulating
9620 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9622 2010-04-19 Martin Jambor <mjambor@suse.cz>
9624 * gimple.h (create_tmp_reg): Declare.
9625 * gimplify.c (create_tmp_reg): New function.
9626 (gimplify_return_expr): Use create_tmp_reg.
9627 (gimplify_omp_atomic): Likewise.
9628 (gimple_regimplify_operands): Likewise.
9629 * tree-dfa.c (make_rename_temp): Likewise.
9630 * tree-predcom.c (predcom_tmp_var): Likewise.
9631 (reassociate_to_the_same_stmt): Likewise.
9632 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9633 (get_replaced_param_substitute): Likewise.
9634 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9635 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9636 * tree-ssa-pre.c (get_representative_for): Likewise.
9637 (create_expression_by_pieces): Likewise.
9638 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9639 (create_tailcall_accumulator): Likewise.
9641 2010-04-19 Martin Jambor <mjambor@suse.cz>
9643 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9645 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9647 2010-04-19 Richard Guenther <rguenther@suse.de>
9649 PR tree-optimization/43796
9650 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9651 from SCEV in the lattice.
9652 (vrp_visit_phi_node): Dump change.
9654 2010-04-19 Richard Guenther <rguenther@suse.de>
9656 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9657 * configure: Re-generated.
9659 2010-04-19 Richard Guenther <rguenther@suse.de>
9661 PR tree-optimization/43783
9662 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9663 constant ARRAY_REF operands two and three if possible.
9665 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9668 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9670 2010-04-19 Jie Zhang <jie@codesourcery.com>
9673 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9675 2010-04-19 Ira Rosen <irar@il.ibm.com>
9677 PR tree-optimization/37027
9678 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9679 and macro to access it.
9680 (vectorizable_reduction): Add argument.
9681 (vect_get_slp_defs): Likewise.
9682 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9683 statements for possible use in SLP.
9684 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9685 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9686 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9688 (vectorizable_reduction): Likewise.
9689 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9691 (vectorizable_type_demotion, vectorizable_type_promotion,
9692 vectorizable_store): Likewise.
9693 (vect_analyze_stmt): Update call to vectorizable_reduction.
9694 (vect_transform_stmt): Likewise.
9695 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9696 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9697 from different interleaving chains in same node.
9698 (vect_slp_rearrange_stmts): New function.
9699 (vect_supported_load_permutation_p): Allow load permutations for
9700 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9701 inside SLP nodes if necessary.
9702 (vect_analyze_slp_instance): Handle reductions.
9703 (vect_analyze_slp): Try to build SLP instances originating from groups
9705 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9706 (vect_get_constant_vectors): Create initial vectors for reductions
9707 according to reduction code. Add new argument.
9708 (vect_get_slp_defs): Add new argument, pass it to
9709 vect_get_constant_vectors.
9710 (vect_schedule_slp_instance): Remove SLP tree root statements.
9712 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9714 * tree.h (ENUM_IS_SCOPED): Define.
9715 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9716 for ENUM_IS_SCOPED enums.
9718 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9720 * fold-const.c (fold_comparison): Use ssizetype.
9721 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9722 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9723 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9724 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9726 * tree.h (initialize_sizetypes): Remove parameter.
9727 (build_common_tree_nodes): Remove second parameter.
9728 * stor-layout.c (initialize_sizetypes): Remove parameter.
9729 Always create an unsigned type.
9730 (set_sizetype): Assert that the passed type is unsigned and simplify.
9731 * tree.c (build_common_tree_nodes): Remove second parameter.
9732 Adjust call to initialize_sizetypes.
9733 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9734 build_common_tree_nodes.
9736 2010-04-18 Matthias Klose <doko@ubuntu.com>
9738 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9740 2010-04-18 Ira Rosen <irar@il.ibm.com>
9742 PR tree-optimization/43771
9743 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9744 load permutation doesn't have gaps.
9746 2010-04-18 Jan Hubicka <jh@suse.cz>
9748 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9749 (sse_prologue_save_insn expander): Use new pattern.
9750 (sse_prologue_save_insn1): New pattern and splitter.
9751 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9753 * i386.c (setup_incoming_varargs_64): Do not compute jump
9755 (ix86_gimplify_va_arg): Update alignment needed.
9756 (ix86_local_alignment): Do not align all local arrays to 128bit.
9758 2010-04-17 Jan Hubicka <jh@suse.cz>
9760 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9762 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9764 * arm.md (negdi2): Remove redundant code to force values into a
9767 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9769 * arm/bpabi.S: Add EABI alignment attributes to objects.
9770 * arm/bpabi-v6m.S: Likewise.
9771 * arm/crti.asm: Likewise.
9772 * arm/crtn.asm: Likewise.
9773 * arm/lib1funcs.asm: Likewise.
9774 * arm/libunwind.S: Likewise.
9776 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9778 * arm-protos.h (tune_params): New structure.
9779 * arm.c (current_tune): New variable.
9780 (arm_constant_limit): Delete.
9781 (struct processors): Add pointer to the tune parameters.
9782 (arm_slowmul_tune): New tuning option.
9783 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9784 (all_cores): Adjust to pick up the tuning model.
9785 (arm_constant_limit): New function.
9786 (arm_override_options): Select the appropriate tuning model. Delete
9787 initialization of arm_const_limit.
9788 (arm_split_constant): Use the new constant-limit model.
9789 (arm_rtx_costs): Pick up the current tuning model.
9790 * arm.md (is_strongarm, is_xscale): Delete.
9791 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9792 for Xscale variant architectures.
9793 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9795 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9797 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9799 (arm_rtx_costs_1): Remove unused variable extra_cost.
9800 (arm_unwind_emit_set): Use variable offset.
9801 (thumb1_output_casesi): Remove unused variable flags.
9803 2010-04-16 Jeff Law <law@redhat.com>
9805 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9806 needing assignment rather than doing a two-phase assignment. Remove
9807 unused variable 'm'.
9809 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9812 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9814 2010-04-16 Doug Kwan <dougkwan@google.com>
9816 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9817 (next_operand_entry_id): New static variable.
9818 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9819 (add_to_ops_vec): Assigned unique ID to operand entry.
9820 (struct oecount_s): New field ID.
9821 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9822 (undistribute_ops_list): Assign unique IDs to oecounts.
9823 (init_reassoc): reset next_operand_entry_id.
9825 2010-04-16 Doug Kwan <dougkwan@google.com>
9827 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9828 missing left parenthesis.
9830 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9832 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9833 *btdi_rex64 using SWI48 mode iterator.
9834 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9835 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9836 *jcc_btdi_mask_rex64.
9838 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9840 * double-int.h (tree_to_double_int): Convert to macro.
9841 * double-int.c (tree_to_double_int): Remove.
9843 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9846 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9847 with want_address 2 and in case a single element list might be
9848 possible, call it again with want_address 0.
9850 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9852 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9853 case 'W' print operands for HI mode.
9854 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9855 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9856 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9857 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9859 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9861 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9862 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9863 #xx:3 and #xx:4 mode.
9865 * config/h8300/h8300.md (inverted load with HImode dest): Add
9866 support for H8300SX.
9868 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9869 satisfy 'U' constraint.
9871 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9873 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9874 * configure: Regenerate.
9875 * config.in: Regenerate.
9876 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9879 2010-04-16 Richard Guenther <rguenther@suse.de>
9881 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9882 (struct tree_decl_common): ... here.
9883 (DECL_PT_UID): Adjust.
9884 (SET_DECL_PT_UID): Likewise.
9885 (DECL_PT_UID_SET_P): Likewise.
9887 2010-04-16 Richard Guenther <rguenther@suse.de>
9889 PR tree-optimization/43572
9890 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9891 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9892 * tree-flow.h (is_call_clobbered): Remove.
9893 * tree-flow-inline.h (is_call_clobbered): Likewise.
9894 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9895 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9896 (execute_return_slot_opt): Adjust.
9897 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9898 check for call clobbered vars here.
9899 (find_tail_calls): Move tailcall verification to the
9902 2010-04-16 Diego Novillo <dnovillo@google.com>
9904 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9906 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9909 * config/arm/arm.md (cbranchqi4): New pattern.
9910 * config/arm/predicates.md (const0_operand,
9911 cbranchqi4_comparison_operator): New predicates.
9913 2010-04-16 Richard Guenther <rguenther@suse.de>
9915 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9916 (dump_gimple_stmt): Likewise.
9918 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9920 * recog.h (struct recog_data): New field is_operator.
9921 (struct insn_operand_data): New field is_operator.
9922 * recog.c (extract_insn): Set recog_data.is_operator.
9923 * genoutput.c (output_operand_data): Emit code to set the
9925 * reload.c (find_reloads): Use it rather than testing for an
9926 empty constraint string.
9929 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9930 If the previous insn is a cbranchsi4_insn with the same arguments,
9931 omit the compare instruction.
9933 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9934 register, inputs must be low registers and we need a low register
9935 scratch. Handle alternative 2 like alternative 3.
9937 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9939 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9940 don't call get_addr on both. If one expression is a VALUE and
9941 the other a REG, check VALUE's locs if the REG isn't among them.
9943 2010-04-16 Christian Bruel <christian.bruel@st.com>
9945 * config/sh/sh.h (sh_frame_pointer_required): New function.
9946 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9947 (flag_omit_frame_pointer) Set.
9948 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9949 (rounded_frame_size): Adjust size with outgoing_args_size.
9950 (sh_set_return_address): Must return from stack pointer.
9951 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9952 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9953 (ACCUMULATE_OUTGOING_ARGS): Define.
9954 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9955 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9957 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9960 * config/sh/sh.c (sh_legitimize_reload_address): Use
9961 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9962 Remove a unneeded check for offset_base.
9964 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
9966 * configure: Regenerated.
9968 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9970 * config/s390/s390.c (s390_call_save_register_used): Switch back
9971 to HARD_REGNO_NREGS.
9973 2010-04-15 Richard Guenther <rguenther@suse.de>
9975 * alias.c (alias_set_subset_of): Handle alias-set zero
9978 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
9979 Julian Brown <julian@codesourcery.com>
9981 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9982 alternatives according to use of high and low regs.
9983 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9984 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9985 optimizing for size on Thumb-2.
9987 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
9989 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9991 2010-04-15 Richard Guenther <rguenther@suse.de>
9993 * tree-ssa-structalias.c (struct variable_info): Add
9995 (new_var_info): Initialize it.
9996 (dump_constraints): Support printing last added constraints.
9997 (debug_constraints): Adjust.
9998 (dump_constraint_graph): Likewise.
9999 (make_heapvar_for): Check for NULL cfun.
10000 (get_function_part_constraint): New function.
10001 (get_fi_for_callee): Likewise.
10002 (find_func_aliases): Properly implement IPA PTA constraints.
10003 (process_ipa_clobber): New function.
10004 (find_func_clobbers): Likewise.
10005 (insert_into_field_list_sorted): Remove.
10006 (create_function_info_for): Properly allocate vars for IPA mode.
10007 Do not use insert_into_field_list_sorted.
10008 (create_variable_info_for): Properly generate constraints for
10009 global vars in IPA mode.
10010 (dump_solution_for_var): Always dump the solution.
10011 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10012 (find_what_var_points_to): Adjust.
10013 (pt_solution_set): Change.
10014 (pt_solution_ior_into): New function.
10015 (pt_solution_empty_p): Export.
10016 (pt_solution_includes_global): Adjust.
10017 (pt_solution_includes_1): Likewise.
10018 (pt_solutions_intersect_1): Likewise.
10019 (dump_sa_points_to_info): Check some invariants.
10020 (solve_constraints): Move constraint dumping ...
10021 (compute_points_to_sets): ... here.
10022 (ipa_pta_execute): ... and here.
10023 (compute_may_aliases): Do not re-compute points-to info
10024 locally if IPA info is available.
10025 (ipa_escaped_pt): New global var.
10026 (ipa_pta_execute): Properly implement IPA PTA.
10027 * tree-into-ssa.c (dump_decl_set): Support dumping
10028 decls not in referenced-vars.
10029 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10030 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10031 (dump_points_to_solution): Likewise.
10032 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10033 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10034 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10035 (copy_decl_to_var): Copy DECL_PT_UID.
10036 (copy_result_decl_to_var): Likewise.
10037 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10038 (copy_node_stat): Copy it.
10039 * tree.h (DECL_PT_UID): New macro.
10040 (SET_DECL_PT_UID): Likewise.
10041 (DECL_PT_UID_SET_P): Likewise.
10042 (struct tree_decl_minimal): Add pt_uid member.
10043 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10044 (pt_solution_empty_p): Declare.
10045 (pt_solution_set): Adjust.
10046 (ipa_escaped_pt): Declare.
10047 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10048 * gimple-pretty-print.c (pp_points_to_solution): New function.
10049 (dump_gimple_call): Dump call clobber/use information.
10050 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10051 * tree-pass.h (TDF_ALIAS): New dump option.
10052 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10053 * doc/invoke.texi (-fipa-pta): Update documentation.
10055 2010-04-15 Richard Guenther <rguenther@suse.de>
10057 * Makefile.in (OBJS-common): Add gimple-fold.o.
10058 (gimple-fold.o): New rule.
10059 * tree.h (maybe_fold_offset_to_reference,
10060 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10062 * gimple.h: ... here.
10063 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10064 may_propagate_address_into_dereference): Move prototypes ...
10065 * gimple.h: ... here.
10066 * tree-ssa-ccp.c (get_symbol_constant_value,
10067 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10068 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10069 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10070 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10071 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10072 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10073 gimplify_and_update_call_from_tree): Move ...
10074 * gimple-fold.c: ... here. New file.
10075 (ccp_fold_builtin): Rename to ...
10076 (gimple_fold_builtin): ... this.
10077 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10079 2010-04-15 Richard Guenther <rguenther@suse.de>
10081 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10082 fit_double_type, force_fit_type_double, add_double_with_sign,
10083 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10084 lrotate_double, rrotate_double, div_and_round_double): Move ...
10085 * double-int.c: ... here.
10086 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10087 add_double, neg_double, mul_double_with_sign, mul_double,
10088 lshift_double, rshift_double, lrotate_double, rrotate_double,
10089 div_and_round_double): Move prototypes ...
10090 * double-int.h: ... here.
10092 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10095 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10096 matching constraints to ensure inputs match the output.
10098 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10101 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10102 in an input-only operand.
10104 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10106 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10107 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10108 (double_int_negative_p): Convert to static inline function.
10109 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10110 (double_int_negative_p): Remove.
10111 * tree.h (lshift_double, rshift_double):
10112 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10113 * fold-const.c (fold_convert_const_int_from_real,
10114 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10115 (lshift_double): Change type of arith argument to bool.
10116 (rshift_double): Change type of arith argument to bool. Correct
10118 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10120 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10123 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10124 at the start and end of the then/else blocks, and omit them from the
10126 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10127 argument; all callers changed. Pass zero to old_insns_match_p instead.
10128 (flow_find_head_matching_sequence): New function.
10129 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10130 * basic-block.h (flow_find_cross_jump,
10131 flow_find_head_matching_sequence): Declare functions.
10133 2010-04-14 Jason Merrill <jason@redhat.com>
10136 * c-common.c (attribute_takes_identifier_p): New fn.
10137 * c-common.h: Declare it.
10139 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10141 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10142 splitter condition.
10143 (*udivmod<mode>4): Ditto.
10145 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10147 * config/i386/i386.md (maxmin_int): Rename code attribute from
10148 maxminiprefix and update all users.
10149 (maxmin_float): Ditto from maxminfprefix.
10150 (logic): Ditto from logicprefix.
10151 (absneg_mnemonic): Ditto from absnegprefix.
10152 * config/i386/mmx.md: Update all users of maxminiprefix,
10153 maxminfprefix and logicprefix for rename.
10154 * config/i386/sse.md: Ditto.
10155 * config/i386/sync.md (sync_<code><mode>): Update for
10156 logicprefix rename.
10158 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10161 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10162 warnings converted to errors.
10164 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10166 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10167 used insn_type variable.
10168 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10169 to avoid set-but-not-used warning.
10171 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10173 * df-core.c (df_ref_debug): Change format string placeholder
10175 * dwarf2asm.c (dw2_asm_output_data_raw,
10176 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10177 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10178 * dwarf2out.c (output_cfi, output_cfi_directive,
10179 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10180 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10182 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10183 * print-rtl.c (print_rtx): Ditto.
10185 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10187 PR middle-end/42694
10188 * builtins.c (expand_builtin_pow_root): New function to expand pow
10189 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10190 series of sqrt and cbrt calls under -ffast-math.
10191 (expand_builtin_pow): Call it.
10193 2010-04-14 Michael Matz <matz@suse.de>
10195 PR tree-optimization/42963
10196 * tree-cfg.c (touched_switch_bbs): New static variable.
10197 (group_case_labels_stmt): New function broken out from ...
10198 (group_case_labels): ... here, use the above.
10199 (start_recording_case_labels): Allocate touched_switch_bbs.
10200 (end_recording_case_labels): Deallocate it, call
10201 group_case_labels_stmt.
10202 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10204 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10206 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10207 from insn template.
10209 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10211 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10213 2010-04-13 Jan Hubicka <jh@suse.cz>
10215 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10216 of optimized out static functions.
10217 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10218 cost computation. Also sanity check for overflows.
10219 (update_caller_keys): Update cgraph_edge_badness call; properly
10220 update fibheap and sanity check that it is up to date.
10221 (add_new_edges_to_heap): Update cgraph_edge_badness.
10222 (cgraph_decide_inlining_of_small_function): Likewise;
10223 add sanity checking that badness in heap is up to date;
10224 improve dumping of reason; Update badness of calls to the
10225 offline copy of function currently inlined; dump badness
10226 of functions not inlined because of unit growth limits.
10228 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10230 PR middle-end/32628
10231 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10232 because of sign-extension change when converting to sizetype here...
10233 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10235 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10236 the folding to constants. Remove redundant final conversion.
10237 (fold_binary) <associate>: Do not associate if the re-association of
10238 constants alone overflows.
10239 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10240 to the end of the list.
10241 (multiple_of_p) <COND_EXPR>: New case.
10243 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10245 * opt-functions.awk (opt_sanitized_name): New.
10247 * optc-gen.awk: Use it
10248 * opth-gen.awk: Use it.
10250 2010-04-13 Martin Jambor <mjambor@suse.cz>
10252 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10253 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10254 children. Call replace_uses_with_default_def_ssa_name to handle
10257 2010-04-13 Michael Matz <matz@suse.de>
10259 PR middle-end/43730
10260 * builtins.c (expand_builtin_interclass_mathfn): Also create
10261 a register if the predicate doesn't match.
10263 2010-04-13 Diego Novillo <dnovillo@google.com>
10265 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10266 * c-pch.c: Include timevar.h.
10267 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10268 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10269 * ggc-common.c: Include timevar.h.
10270 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10271 * timevar.def (TV_PCH_SAVE): Define.
10272 (TV_PCH_CPP_SAVE): Define.
10273 (TV_PCH_PTR_REALLOC): Define.
10274 (TV_PCH_PTR_SORT): Define.
10275 (TV_PCH_RESTORE): Define.
10276 (TV_PCH_CPP_RESTORE): Define.
10278 2010-04-13 Michael Matz <matz@suse.de>
10280 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10282 (can_reassociate_p): New function.
10283 (break_up_subtract_bb, reassociate_bb): Use it.
10285 2010-04-13 Richard Guenther <rguenther@suse.de>
10288 * builtins.c (c_readstr): Fix assert.
10290 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10292 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10293 when generating cltd insn.
10295 (*ashl<mode>3_1): Remove special handling for register operand 2.
10296 (*ashlsi3_1_zext): Ditto.
10297 (*ashlhi3_1): Ditto.
10298 (*ashlhi3_1_lea): Ditto.
10299 (*ashlqi3_1): Ditto.
10300 (*ashlqi3_1_lea): Ditto.
10301 (*<shiftrt_insn><mode>3_1): Ditto.
10302 (*<shiftrt_insn>si3_1_zext): Ditto.
10303 (*<shiftrt_insn>qi3_1_slp): Ditto.
10304 (*<rotate_insn><mode>3_1): Ditto.
10305 (*<rotate_insn>si3_1_zext): Ditto.
10306 (*<rotate_insn>qi3_1_slp): Ditto.
10308 2010-04-13 Richard Guenther <rguenther@suse.de>
10310 * tree-ssa-structalias.c (callused_id): Remove.
10311 (call_stmt_vars): New.
10312 (get_call_vi): Likewise.
10313 (lookup_call_use_vi): Likewise.
10314 (lookup_call_clobber_vi): Likewise.
10315 (get_call_use_vi): Likewise.
10316 (get_call_clobber_vi): Likewise.
10317 (make_transitive_closure_constraints): Likewise.
10318 (handle_const_call): Adjust to do per-call call-used handling.
10319 (handle_pure_call): Likewise.
10320 (find_what_var_points_to): Remove general callused handling.
10321 (init_base_vars): Likewise.
10322 (init_alias_vars): Initialize call_stmt_vars.
10323 (compute_points_to_sets): Process call-used and call-clobbered
10324 vars for call statements.
10325 (delete_points_to_sets): Free call_stmt_vars.
10327 2010-04-13 Richard Guenther <rguenther@suse.de>
10329 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10330 Only add RW dependence for dependence distance zero.
10331 Adjust maximal vectorization factor according to dependences.
10332 Move alignment handling ...
10333 (vect_find_same_alignment_drs): ... here. New function.
10334 (vect_analyze_data_ref_dependences): Adjust.
10335 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10336 (vect_analyze_data_refs): Adjust minimal vectorization factor
10337 according to data references.
10338 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10339 dependences before determining the vectorization factor.
10340 Analyze alignment after determining the vectorization factor.
10341 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10342 dependences before alignment.
10343 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10345 (vect_analyze_data_refs): Likewise.
10346 (MAX_VECTORIZATION_FACTOR): New define.
10348 2010-04-13 Duncan Sands <baldrick@free.fr>
10350 * except.h (lang_eh_type_covers): Remove.
10351 * except.c (lang_eh_type_covers): Likewise.
10353 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10354 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10356 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10357 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10358 UNITS_PER_LONG where it is ABI relevant.
10359 (s390_return_addr_rtx): Likewise.
10360 (s390_back_chain_rtx): Likewise.
10361 (s390_frame_area): Likewise.
10362 (s390_frame_info): Likewise.
10363 (s390_initial_elimination_offset): Likewise.
10364 (save_gprs): Likewise.
10365 (s390_emit_prologue): Likewise.
10366 (s390_emit_epilogue): Likewise.
10367 (s390_function_arg_advance): Likewise.
10368 (s390_function_arg): Likewise.
10369 (s390_va_start): Likewise.
10370 (s390_gimplify_va_arg): Likewise.
10371 (s390_function_profiler): Likewise.
10372 (s390_optimize_prologue): Likewise.
10373 (s390_rtx_costs): Likewise.
10374 (s390_secondary_reload): Likewise.
10375 (s390_promote_function_mode): Likewise.
10376 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10377 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10378 registers available.
10379 (s390_unwind_word_mode): New function.
10380 (s390_function_value): Split 64 bit values into register pair if
10381 used as return value.
10382 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10383 function call parameters. Handle parallels.
10384 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10385 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10386 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10387 (s390_expand_setmem): Remove unused variable src_addr.
10388 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10389 deal with 64 bit registers.
10390 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10391 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10392 (UNITS_PER_LONG): New macro.
10393 * libjava/include/s390-signal.h: Define extended ucontext
10394 structure containing the upper halfs of the 64 bit registers.
10396 2010-04-13 Simon Baldwin <simonb@google.com>
10398 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10400 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10402 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10403 rvalue on the RHS if the LHS is of a non-renamable type.
10404 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10406 2010-04-13 Matthias Klose <doko@ubuntu.com>
10408 * gcc.c (cc1_options): Handle -iplugindir before processing
10409 the cc1 spec. Only add -iplugindir once.
10410 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10412 * common.opt (iplugindir): Remove `Separate' property, initialize.
10413 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10415 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10416 (distclean): Remove plugin dir.
10417 * doc/invoke.texi: Document -iplugindir.
10419 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10421 * doc/plugins.texi (Loading Plugins): Document short
10422 -fplugin=foo option.
10423 (Plugin API): Mention default_plugin_dir_name function.
10425 * gcc.c (find_file_spec_function): Add new declaration.
10426 (static_spec_func): Use it for "find-file".
10427 (find_file_spec_function): Add new function.
10428 (cc1_options): Add -iplugindir option if -fplugin* options found.
10430 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10432 * plugin.c (add_new_plugin): Updated comment, and handle short
10434 (default_plugin_dir_name): Added new function.
10436 * common.opt (iplugindir): New option to set the plugin directory.
10438 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10440 * config/i386/i386.md (any_rotate): New code iterator.
10441 (rotate_insn): New code attribute.
10443 (SWIM124): New mode iterator.
10444 (<rotate_insn>ti3): New expander.
10445 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10446 any_rotate code iterator.
10447 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10448 using any_rotate code iterator and SWIM124 mode iterator.
10449 (ix86_rotlti3): New insn_and_split pattern.
10450 (ix86_rotrti3): Ditto.
10451 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10452 ix86_rotl{di,ti}3 patterns.
10453 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10454 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10455 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10456 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10457 code iterator and SWI mode iterator.
10458 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10459 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10461 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10462 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10463 (bswap rotatert splitter): Add splitter.
10464 (bswap splitter): Macroize splitter using any_rotate code iterator.
10465 Add insn predicate to split only for TARGET_USE_XCHGB or when
10466 optimizing function for size.
10468 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10470 * config/pa/pa.c (emit_move_sequence): Remove use of
10471 deleted variable flag_argument_noalias.
10473 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10475 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10477 Add to unsupported targets list.
10478 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10479 sparc*-sun-solaris2.[567]* from target lists.
10480 * configure: Regenerate.
10481 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10483 Remove Solaris 7 patch references.
10484 (Specific, sparc-sun-solaris2.7): Removed.
10485 (sparc-sun-solaris2*): Update Solaris 7 example.
10486 (sparc64-*-solaris2*): Likewise.
10488 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10490 * config.build (alpha*-dec-osf4*): Remove.
10491 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10492 of obsolete configurations.
10493 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10495 * config/alpha/t-osf4: Renamed to ...
10496 * config/alpha/t-osf5: ... this.
10497 * config/alpha/osf.h: Renamed to ...
10498 * config/alpha/osf5.h: ... this.
10499 Merged old osf5.h contents.
10501 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10502 (EXTRA_SPECS): Removed.
10503 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10504 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10507 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10509 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10511 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10514 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10515 __thiscall convention.
10517 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10519 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10521 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10523 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10525 * function.c (assign_parms_initialize_all): Add unused attribute
10528 2010-04-12 Richard Guenther <rguenther@suse.de>
10530 * gsstruct.def (GSS_CALL): New.
10531 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10532 * gimple.h: Include tree-ssa-alias.h.
10533 (struct gimple_statement_call): New.
10534 (union gimple_statement_struct_d): Add gimple_call member.
10535 (gimple_call_reset_alias_info): Declare.
10536 (gimple_call_use_set): New function.
10537 (gimple_call_clobber_set): Likewise.
10538 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10539 * gimple.c (gimple_call_reset_alias_info): New function.
10540 (gimple_build_call_1): Call it.
10541 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10542 * tree-inline.c (remap_gimple_stmt): Likewise.
10543 (expand_call_inline): Remove callused handling.
10544 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10545 * tree-dfa.c (dump_variable): Likewise.
10546 * tree-parloops.c (parallelize_loops): Likewise.
10547 * tree-ssa.c (init_tree_ssa): Likewise.
10548 (delete_tree_ssa): Likewise.
10549 * tree-flow-inline.h (is_call_used): Remove.
10550 * tree-flow.h (struct gimple_df): Remove callused member.
10551 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10552 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10553 (ref_maybe_used_by_call_p_1): Simplify.
10554 (call_may_clobber_ref_p_1): Likewise.
10555 * tree-ssa-structalias.c (compute_points_to_sets): Set
10556 the call stmt used and clobbered sets.
10557 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10558 (find_tail_calls): Verify the tail call.
10560 2010-04-12 Richard Guenther <rguenther@suse.de>
10562 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10563 single-iteration always-inline inlining.
10564 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10565 (cgraph_decide_inlining): Do not handle always-inline specially.
10566 (try_inline): Remove always-inline cycle detection special case.
10567 Do not recurse on always-inlines.
10568 (cgraph_early_inlining): Do not iterate if not optimizing.
10569 (cgraph_gate_early_inlining): remove.
10570 (pass_early_inline): Run unconditionally.
10571 (gate_cgraph_decide_inlining): New function.
10572 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10573 not inlining or optimizing.
10574 (cgraph_decide_inlining_of_small_functions): Also consider
10575 always-inline functions.
10576 (cgraph_default_inline_p): Return true for nodes which should
10577 disregard inline limits.
10578 (estimate_function_body_sizes): Assume zero size and time for
10579 nodes which are marked as disregarding inline limits.
10580 (cgraph_decide_recursive_inlining): Do not perform recursive
10581 inlining on always-inline nodes.
10583 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10586 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10587 for exprs satisfying handled_component_p.
10589 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10591 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10592 non-constant aggregate elements.
10594 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10595 is a real initialization.
10597 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10600 * c-decl.c (start_function): Move forward check for nested function.
10602 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10604 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10605 * config/sh/sh.c: Include reload.h.
10606 (sh_legitimize_reload_address): New.
10607 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10608 sh_legitimize_reload_address.
10610 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10612 * config/sh/sh.md (*movqi_pop): New insn pattern.
10613 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10615 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10617 * config/i386/i386.md (any_shiftrt): New code iterator.
10618 (shiftrt_insn): New code attribute.
10620 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10621 using any_shiftrt code iterator.
10622 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10623 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10624 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10625 pattern from corresponding peephole2 patterns.
10626 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10627 using any_shiftrt code iterator.
10628 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10629 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10630 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10631 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10632 *{ashr,lshr}<mode>3_cmp_zext.
10633 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10635 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10637 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10639 (*lshr<mode>3_cconly): Ditto.
10641 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10643 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10644 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10645 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10646 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10648 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10649 from corresponding peephole2 patterns.
10650 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10651 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10652 and *lshrdi3_1_rex64 using SWI mode iterator.
10653 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10654 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10655 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10656 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10657 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10658 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10659 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10660 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10661 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10664 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10666 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10667 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10668 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10669 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10671 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10672 from corresponding peephole2 patterns.
10673 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10674 (ashrsi3_cvt): Rename from ashrsi3_31.
10675 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10676 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10677 and x86_64_shift_adj_3 using SWI48 mode iterator.
10678 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10679 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10680 and *ashrdi3_1_rex64 using SWI mode iterator.
10681 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10682 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10683 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10684 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10685 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10686 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10687 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10688 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10689 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10691 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10692 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10693 x86_shift<mode>_adj_3 expanders.
10695 2010-04-10 Wei Guozhi <carrot@google.com>
10698 * config/arm/arm.c (arm_pic_static_addr): New function.
10699 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10701 (arm_output_addr_const_extra): Output expression for new pattern.
10702 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10704 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10706 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10709 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10710 * web.c: Include "insn-config.h" and "recog.h".
10711 (union_match_dups): New function.
10712 (web_main): Call it.
10713 (union_defs): Don't try to recognize match_dups.
10715 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10716 if doing so would replace the entire pattern.
10718 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10722 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10723 and splitter pattern. Change splitter operand 1 predicate to
10726 2010-04-09 Martin Jambor <mjambor@suse.cz>
10728 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10729 lattices are addresses of CONST_DECLs with the same initial value.
10730 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10731 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10733 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10734 Bernd Schmidt <bernds@codesourcery.com>
10736 * loop-invariant.c (replace_uses): New static function.
10737 (move_invariant_reg): Use it to ensure we can replace the uses.
10739 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10741 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10743 (picochip_override_options): Enable section anchors only above -O1.
10744 (picochip_reorg): Fixed a couple of build warnings.
10746 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10748 * configure.ac (plugin -rdynamic test): Log result.
10749 * configure: Regenerate.
10750 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10751 (RDYNAMIC_SPEC): Define.
10752 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10754 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10756 * configure.ac: Determine Sun ld version numbers.
10757 (comdat_group): Restrict GNU ld version checks to gld.
10758 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10759 (enable_comdat): Support --enable-comdat.
10760 * configure: Regenerate.
10761 * doc/install.texi (Configuration): Document --enable-comdat.
10763 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10765 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10766 * config/sol2-gld.h: ... here.
10767 * config.gcc (sparc*-*-solaris2*): Reflect this.
10768 (i[34567]86-*-solaris2*): Use it.
10770 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10772 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10774 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10776 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10779 * diagnostic.c (diagnostic_initialize): Initialize
10780 some_warnings_are_errors.
10781 (diagnostic_finish): New.
10782 (diagnostic_action_after_output): Call it before exiting.
10783 (diagnostic_report_diagnostic): Do not print message here. Set
10784 some_warnings_are_errors.
10785 * diagnostic.h (diagnostic_context): Delete
10786 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10787 (diagnostic_finish): Declare.
10788 * toplev.c (toplev_main): Call it before exit.
10790 2010-04-09 Jason Merrill <jason@redhat.com>
10793 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10794 for incomplete type.
10797 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10798 based on a warning flag.
10800 2010-04-09 Richard Guenther <rguenther@suse.de>
10802 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10804 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10807 * varasm.c (default_assemble_visibility): Wrap vars that are
10808 set, but unused, by targets without GAS.
10809 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10810 Remove set, but unused, vars.
10811 (rs6000_legitimize_tls_address): Likewise.
10812 (altivec_expand_dst_builtin): Likewise.
10813 * config/darwin.c (machopic_classify_symbol): Likewise.
10814 (machopic_indirection_name): Likewise.
10816 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10818 * config/i386/i386.md (DWI): New mode iterator.
10819 (S): New mode attribute.
10820 (shift_operand): Ditto.
10821 (shift_immediate_operand): Ditto.
10822 (ashl_input_operand): Ditto.
10823 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10824 using SDWIM mode iterator.
10825 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10826 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10828 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10829 from corresponding peephole2 patterns.
10830 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10831 and x86_64_shift_adj_1 using SWI48 mode iterator.
10832 (x86_shift<mode>_adj_2): Ditto.
10833 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10834 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10835 using SWI48 mode iterator.
10836 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10837 *ashldi3_cmp_rex64 using SWI mode iterator.
10838 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10839 *ashldi3_cconly_rex64 using SWI mode iterator.
10840 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10841 x86_shift<mode>_adj_{1,2}.
10842 (ix86_split_ashr): Ditto.
10843 (ix86_split_lshr): Ditto.
10845 2010-04-09 Richard Guenther <rguenther@suse.de>
10847 * target.h (builtin_conversion): Pass in input and output types.
10848 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10849 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10850 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10851 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10853 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10855 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10857 2010-04-09 Richard Guenther <rguenther@suse.de>
10860 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10862 2010-04-09 Richard Guenther <rguenther@suse.de>
10864 * tree-vectorizer.h (struct _stmt_vec_info): Document
10865 that vectype is the type of the LHS.
10866 (supportable_widening_operation, supportable_narrowing_operation):
10867 Get both input and output vector types as arguments.
10868 (vect_is_simple_use_1): Declare.
10869 (get_same_sized_vectype): Likewise.
10870 * tree-vect-loop.c (vect_determine_vectorization_factor):
10871 Set STMT_VINFO_VECTYPE to the vector type of the def.
10872 (vectorizable_reduction): Adjust.
10873 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10874 Adjust. Specify the output vector type.
10875 (vect_pattern_recog_1): Adjust.
10876 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10877 (vectorizable_call): Adjust.
10878 (vectorizable_conversion): Likewise.
10879 (vectorizable_operation): Likewise.
10880 (vectorizable_type_demotion): Likewise.
10881 (vectorizable_type_promotion): Likewise.
10882 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10884 (vect_is_simple_use_1): New function.
10885 (supportable_widening_operation): Get both input and output
10887 (supportable_narrowing_operation): Likewise.
10888 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10890 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10892 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10893 __thiscall and _thiscall as predefined macros.
10894 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10895 thiscall attribute handling.
10896 (ix86_comp_type_attributes): Likewise.
10897 (ix86_function_regparm): Likewise.
10898 (ix86_return_pops_args): Likewise.
10899 (init_cumulative_args): Likewise.
10900 (find_drap_reg): Likewise.
10901 (ix86_static_chain): Likewise.
10902 (x86_this_parameter): Likewise.
10903 (x86_output_mi_thunk): Likewise.
10904 (ix86_attribute_table): Add description for thiscall attribute.
10905 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10906 * doc/extend.texi: Add documentation for thiscall.
10908 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10911 * c.opt (Wint-to-pointer-cast): Available in C++.
10912 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10914 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10916 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10917 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10918 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10919 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10920 function type instead. Reorder and simplify checks.
10922 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10924 2010-04-08 Jing Yu <jingyu@google.com>
10925 Zdenek Dvorak <ook@ucw.cz>
10927 PR tree-optimization/42720
10928 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10929 loop unswitch conditions here from ...
10930 (tree_unswitch_single_loop): ... here.
10932 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10934 * tree-if-conv.c: Fix comments and simplify logic.
10936 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10938 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10939 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10940 (main_tree_if_conversion): Update call to tree_if_conversion.
10942 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10945 * doc/invoke.texi (-b,-V): Delete.
10946 * doc/tm.texi: Do not mention -b.
10947 * gcc.c (display_help): Delete -b and -V.
10948 (process_command): Delete -b and -V.
10949 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10951 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
10952 Wolfgang Gellerich <gellerich@de.ibm.com>
10954 Implement target hook for loop unrolling
10955 * target.h (loop_unroll_adjust): Add a new target hook function.
10956 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10957 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10958 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10959 (s390_loop_unroll_adjust): Implement the new target hook for s390.
10960 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10962 (decide_unroll_stupid): Likewise.
10964 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10967 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10969 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10971 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10972 (Specific, *-*-solaris2*): Likewise.
10973 Don't prefer Sun as over GNU as.
10975 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
10977 * config/s390/s390.c (override_options): Adjust the z10 defaults
10978 for max-unroll-times, max-completely-peeled-insns
10979 and max-completely-peel-times.
10981 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10983 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10984 instructions for z10.
10985 (s390_expand_setmem): Likewise.
10986 (s390_expand_cmpmem): Likewise.
10988 2010-04-08 Richard Guenther <rguenther@suse.de>
10990 PR tree-optimization/43679
10991 * tree-ssa-pre.c (eliminate): Only propagate copies.
10993 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10996 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10997 set but not used variable warning.
10999 2010-04-08 Wei Guozhi <carrot@google.com>
11002 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11003 (arm_size_rtx_costs): Call the new function when optimized for size.
11005 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11008 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11009 op0 is not a MEM, just return NULL instead of assertion
11011 (discover_nonconstant_array_refs): Don't walk debug stmts.
11013 2010-04-08 Doug Kwan <dougkwan@google.com>
11015 * configure.ac: Recognize gold and do not use its version number
11016 to test ld features.
11017 * configure: Regenerate.
11019 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11021 PR middle-end/40815
11022 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11023 (negate_value): Move code to push elements to broken_up_substracts ...
11024 (eliminate_plus_minus_pair): ... here. Push operands that have no
11025 negative pair to plus_negates.
11026 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11028 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11030 * doc/install.texi (Configuration): Move description of
11031 --enable-lto, --with-libelf*, --enable-gold from Java section to
11034 * doc/generic.texi (Working with declarations)
11035 (Function Properties, C and C++ Trees): Fix typos.
11036 * doc/sourcebuild.texi (Top Level): Likewise.
11038 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11041 * tree.h (DECL_READ_P): Define.
11042 (struct tree_decl_common): Add decl_read_flag.
11043 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11044 a set but not used warning.
11045 (merge_decls): Merge DECL_READ_P flag.
11046 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11047 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11048 * c-common.c (handle_used_attribute, handle_unused_attribute):
11050 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11052 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11054 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11055 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11056 c_parser_binary_expression, c_parser_cast_expression,
11057 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11058 Call default_function_array_read_conversion instead of
11059 default_function_array_conversion where needed.
11060 (c_parser_unary_expression, c_parser_conditional_expression,
11061 c_parser_postfix_expression_after_primary, c_parser_initelt):
11062 Likewise. Call mark_exp_read where needed.
11063 (c_parser_statement_after_labels, c_parser_asm_operands,
11064 c_parser_typeof_specifier, c_parser_sizeof_expression,
11065 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11067 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11069 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11070 (warn_unused_but_set_parameter): Default to warn_unused
11072 * doc/invoke.texi: Document -Wunused-but-set-variable and
11073 -Wunused-but-set-parameter.
11075 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11076 used count variable.
11077 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11078 when operandN variables aren't used in the body of the expander
11080 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11081 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11082 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11083 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11084 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11085 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11086 * tree.c (PROCESS_ARG): Likewise.
11088 2010-04-07 Simon Baldwin <simonb@google.com>
11090 * diagnostic.h (diagnostic_override_option_index): New macro to
11091 set a diagnostic's option_index.
11092 * c-tree.h (c_cpp_error): Add warning reason argument.
11093 * opts.c (_warning_as_error_callback): New.
11094 (register_warning_as_error_callback): Store callback for
11095 warnings enabled via enable_warning_as_error.
11096 (enable_warning_as_error): Call callback, minor code tidy.
11097 * opts.h (register_warning_as_error_callback): Declare.
11098 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11099 response to -Werror=.
11100 (c_common_init_options): Register warning_as_error_callback in opts.c.
11101 * common.opt: Add -Wno-cpp option.
11102 * c-common.c (struct reason_option_codes_t): Map cpp warning
11103 reason codes to gcc option indexes.
11104 * (c_option_controlling_cpp_error): New function, lookup the gcc
11105 option index for a cpp warning reason code.
11106 * (c_cpp_error): Add warning reason argument, call
11107 c_option_controlling_cpp_error for diagnostic_override_option_index.
11108 * doc/invoke.texi: Document -Wno-cpp.
11110 2010-04-07 Richard Guenther <rguenther@suse.de>
11112 * ipa-reference.c (mark_load): Use get_base_address.
11113 (mark_store): Likewise.
11115 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11116 inserting GIMPLE_NOPs into the IL.
11117 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11118 Explicitly strip handled components and indirect references.
11120 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11121 folding address expressions.
11122 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11123 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11124 operand_equal_p to compare decls.
11125 (ptr_deref_may_alias_decl_p): Likewise.
11126 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11127 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11128 Handle reversed comparison ops.
11129 * tree-sra.c (asm_visit_addr): Use get_base_address.
11130 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11131 * ipa-reference.c (mark_address): Use get_base_address.
11133 2010-04-07 Richard Guenther <rguenther@suse.de>
11135 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11136 Propagate constants everywhere.
11138 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11141 * tree.c (MAX_INT_CACHED_PREC): Define.
11142 (nonstandard_integer_type_cache): New array.
11143 (build_nonstandard_integer_type): Cache results for precision
11144 <= MAX_INT_CACHED_PREC.
11146 2010-04-07 Richard Guenther <rguenther@suse.de>
11148 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11149 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11150 * common.opt: Likewise.
11151 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11152 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11153 (nonoverlapping_memrefs_p): Likewise.
11154 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11155 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11156 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11157 OPT_fargument_noalias_global for backward compatibility.
11159 2010-04-07 Richard Guenther <rguenther@suse.de>
11161 PR tree-optimization/43270
11162 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11163 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11164 * tree-ssa-pre.c (phi_translate_1): Adjust.
11165 (fully_constant_expression): Split out vn_reference handling to ...
11166 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11167 Fold reads from constant strings.
11168 (vn_reference_lookup): Handle fully constant references.
11169 (vn_reference_lookup_pieces): Likewise.
11170 * Makefile.in (expmed.o-warn): Add -Wno-error.
11172 2010-04-07 Martin Jambor <mjambor@suse.cz>
11174 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11176 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11179 * gcc.c: Add -static-libstdc++ to list of recognized options.
11181 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11183 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11185 2010-04-07 Richard Guenther <rguenther@suse.de>
11187 PR middle-end/42617
11188 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11189 bases build simple mem attributes to retain points-to information.
11191 2010-04-07 Richard Guenther <rguenther@suse.de>
11193 PR middle-end/42617
11194 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11195 preserve points-to related information.
11197 2010-04-07 Richard Guenther <rguenther@suse.de>
11199 PR middle-end/42617
11200 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11201 discard plain indirect references.
11202 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11203 * tree.c (tree_nop_conversion): Likewise.
11205 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11208 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11210 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11212 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11213 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11215 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11217 * tree-if-conv.c: Fix indentation and comments.
11219 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11221 * tree-if-conv.c: Sort static functions in topological order.
11223 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11225 * tree-if-conv.c: Fix indentation and comments.
11227 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11229 PR middle-end/43519
11230 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11231 lang_hooks.types.type_for_size instead of
11232 build_nonstandard_integer_type.
11233 When converting an unsigned type to signed, double its precision.
11234 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11235 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11236 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11239 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11241 PR middle-end/43519
11242 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11243 POINTER_PLUS_EXPR for pointer types.
11245 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11247 PR middle-end/43519
11248 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11249 * graphite-clast-to-gimple.c: Include langhooks.h.
11250 (max_signed_precision_type): New.
11251 (max_precision_type): Takes two types as arguments.
11252 (precision_for_value): New.
11253 (precision_for_interval): New.
11254 (gcc_type_for_interval): New.
11255 (gcc_type_for_value): New.
11256 (gcc_type_for_clast_term): New.
11257 (gcc_type_for_clast_red): New.
11258 (gcc_type_for_clast_bin): New.
11259 (gcc_type_for_clast_expr): Split up into several functions.
11260 (gcc_type_for_clast_eq): Rewritten.
11261 (compute_bounds_for_level): New.
11262 (compute_type_for_level_1): New.
11263 (compute_type_for_level): New.
11264 (gcc_type_for_cloog_iv): Removed.
11265 (gcc_type_for_iv_of_clast_loop): Rewritten.
11266 (graphite_create_new_loop): Compute the lower and upper bound types
11267 with gcc_type_for_clast_expr.
11268 (graphite_create_new_loop_guard): Same.
11269 (find_cloog_iv_in_expr): Removed.
11270 (compute_cloog_iv_types_1): Removed.
11271 (compute_cloog_iv_types): Removed.
11272 (gloog): Do not call compute_cloog_iv_types.
11273 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11274 GBB_CLOOG_IV_TYPES.
11275 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11276 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11277 (GBB_CLOOG_IV_TYPES): Removed.
11279 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11281 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11282 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11283 (detect_commutative_reduction): Same.
11285 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11287 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11288 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11290 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11291 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11292 (rewrite_commutative_reductions_out_of_ssa): Same.
11293 * passes.c (execute_function_todo): Call verify_ssa for every pass
11294 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11295 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11296 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11297 with an extra argument.
11298 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11299 verify_ssa only when the extra argument is true.
11300 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11301 with an extra argument.
11302 (tree_transform_and_unroll_loop): Same.
11304 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11306 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11307 for all the passes of the LNO having LOOP_CLOSED_SSA.
11308 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11309 * tree-loop-distribution.c (pass_loop_distribution): Same.
11310 * tree-pass.h (TODO_verify_loops): Removed.
11311 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11313 (pass_tree_unswitch): Same.
11314 (pass_predcom): Same.
11315 (pass_vectorize): Same.
11316 (pass_linear_transform): Same.
11317 (pass_graphite_transforms): Same.
11318 (pass_iv_canon): Same.
11319 (pass_complete_unroll): Same.
11320 (pass_complete_unrolli): Same.
11321 (pass_parallelize_loops): Same.
11322 (pass_loop_prefetch): Same.
11323 (pass_iv_optimize): Same.
11325 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11327 PR middle-end/32824
11328 * passes.c (init_optimization_passes): Move pass_lim before
11329 pass_copy_prop and pass_dce_loop.
11331 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11334 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11335 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11336 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11337 MULTI_* defines for 4 argument vpermil2p* builtins.
11339 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11341 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11342 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11343 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11344 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11345 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11346 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11347 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11348 Use x86_maybe_negate_const_int to output insn mnemonic.
11349 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11350 check from instruction predicate. Update comments.
11351 * config/i386/sync.md (sync_add<mode>): Use
11352 x86_maybe_negate_const_int to output insn mnemonic.
11354 2010-04-06 Jan Hubicka <jh@suse.cz>
11356 PR tree-optimization/42906
11357 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11358 IGNORE_SELF argument. Set visited_control_parents for fully
11360 (find_obviously_necessary_stmts): Update call of
11361 mark_control_dependent_edges_necessary.
11362 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11364 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11366 * config/i386/i386.md: Remove comment about 'e' and 'E'
11369 2010-04-06 Richard Guenther <rguenther@suse.de>
11371 PR tree-optimization/43627
11372 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11373 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11376 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11378 * BASE-VER: Change to 4.6.0.
11381 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11384 2010-04-06 Richard Guenther <rguenther@suse.de>
11386 PR middle-end/43661
11387 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11389 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11391 * doc/invoke.texi (Optimize Options): Document that LTO
11392 won't remove object access purely due to incompatible
11395 2010-04-04 Matthias Klose <doko@ubuntu.com>
11397 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11398 Initialize variable.
11400 2010-04-03 Richard Guenther <rguenther@suse.de>
11402 PR middle-end/42509
11403 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11404 require a non-NULL MEM_OFFSET.
11406 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11408 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11409 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11410 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11411 config/alpha/predicates.md, config/arm/arm.md,
11412 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11413 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11414 config/darwin9.h, config/darwin.c, config/darwin.h,
11415 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11416 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11417 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11418 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11419 config/mips/mips.md, config/mn10300/mn10300.c,
11420 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11421 config/rs6000/aix.h, config/rs6000/dfp.md,
11422 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11423 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11424 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11425 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11426 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11427 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11428 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11429 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11430 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11431 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11432 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11433 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11434 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11435 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11436 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11437 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11438 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11439 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11440 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11441 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11442 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11443 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11444 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11445 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11446 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11447 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11448 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11449 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11450 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11451 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11452 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11453 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11454 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11455 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11456 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11457 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11459 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11462 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11463 * aclocal.m4: Regenerate.
11465 2010-04-02 Richard Guenther <rguenther@suse.de>
11467 PR tree-optimization/43629
11468 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11469 if we have seen a constant value.
11471 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11473 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11475 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11478 * arm.c (legitimize_tls_address): Adjust call to
11479 gen_tls_load_dot_plus_four.
11480 (arm_note_pic_base): New function.
11481 (arm_cannot_copy_insn_p): Use it.
11482 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11485 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11490 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11492 * Makefile.in ($(out_object_file)): Depend on
11493 gt-$(basename $(notdir $(out_file))).h.
11495 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11497 * config.gcc (lm32-*-rtems*): Add t-lm32.
11499 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11501 * config.gcc: Add lm32-*-rtems*.
11502 * config/lm32/rtems.h: New file.
11504 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11507 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11509 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11511 * dwarf2out.c (output_compilation_unit_header): For
11512 -gdwarf-4 use version 4 instead of version 3.
11513 (output_line_info): For version 4 and above emit additional
11514 maximum ops per insn header field.
11515 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11517 * dwarf2out.c (is_c_family, is_java): Remove.
11518 (lower_bound_default): New function.
11519 (add_bound_info, gen_descr_array_type_die): Use it.
11521 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11524 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11525 re-declaration when it happens in a function.
11527 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11529 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11530 (cgraph_remove_function_insertion_hook): Same.
11531 (cgraph_call_function_insertion_hooks): Same.
11533 2010-04-01 Richard Guenther <rguenther@suse.de>
11535 PR middle-end/43614
11536 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11537 and TREE_THIS_VOLATILE.
11538 (copy_ref_info): Likewise.
11539 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11540 * tree.c (build6_stat): Ignore side-effects of all but arg5
11541 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11544 2010-04-01 Richard Guenther <rguenther@suse.de>
11546 PR tree-optimization/43607
11547 * ipa-type-escape.c (check_call): Do not access non-existing
11550 2010-04-01 Richard Guenther <rguenther@suse.de>
11552 PR middle-end/43602
11554 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11555 Jack Howarth <howarth@bromo.med.uc.edu>
11557 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11560 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11562 * doc/install.texi (Prerequisites): Document libelf usability on
11563 IRIX 5/6 and Solaris 2.
11564 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11565 Update GNU as, GNU ld requirements.
11566 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11567 Document Sun Studio compiler download.
11568 Update and simplify as, ld recommendations.
11569 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11571 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11573 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11574 with_tune_32 to pentium4.
11576 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11578 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11580 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11582 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11583 obsoletion, removal.
11585 Document GNU as requirement.
11586 Update configure requirements.
11587 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11588 Recomment IRIX 6.5.18+.
11589 Document IDF/IDL requirement.
11590 Document GNU as requirement.
11591 Document GNU ld bootstrap failure.
11592 Remove freeware.sgi.com reference.
11594 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11596 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11597 UNIX V4.0, V5.0 obsoletion, removal.
11598 Remove --with-gc=simple reference.
11599 Update VM requirements during bootstrap.
11600 Remove -oldas bootstrap description.
11601 Update binutils reference.
11602 Remove comparison failure note.
11604 2010-03-31 Richard Guenther <rguenther@suse.de>
11605 Zdenek Dvorak <ook@ucw.cz>
11606 Sebastian Pop <sebastian.pop@amd.com>
11608 PR middle-end/43464
11609 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11610 with multiple arguments.
11611 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11613 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11615 * graphite-dependences.c (print_pddr): Call print_pdr with an
11617 * graphite-poly.c (debug_pdr): Add an extra argument for the
11620 (print_pbb_domain): Same.
11622 (print_scop_context): Same.
11623 (print_scop): Same.
11624 (print_cloog): Same.
11625 (debug_pbb_domain): Same.
11627 (print_pdrs): Same.
11628 (debug_pdrs): Same.
11629 (debug_scop_context): Same.
11630 (debug_scop): Same.
11631 (debug_cloog): Same.
11632 (print_scop_params): Same.
11633 (debug_scop_params): Same.
11634 (print_iteration_domain): Same.
11635 (print_iteration_domains): Same.
11636 (debug_iteration_domain): Same.
11637 (debug_iteration_domains): Same.
11638 (print_scattering_function): Same.
11639 (print_scattering_functions): Same.
11640 (debug_scattering_function): Same.
11641 (debug_scattering_functions): Same.
11642 * graphite-poly.h (debug_pdr): Update declaration.
11644 (print_pbb_domain): Same.
11646 (print_scop_context): Same.
11647 (print_scop): Same.
11648 (print_cloog): Same.
11649 (debug_pbb_domain): Same.
11651 (print_pdrs): Same.
11652 (debug_pdrs): Same.
11653 (debug_scop_context): Same.
11654 (debug_scop): Same.
11655 (debug_cloog): Same.
11656 (print_scop_params): Same.
11657 (debug_scop_params): Same.
11658 (print_iteration_domain): Same.
11659 (print_iteration_domains): Same.
11660 (debug_iteration_domain): Same.
11661 (debug_iteration_domains): Same.
11662 (print_scattering_function): Same.
11663 (print_scattering_functions): Same.
11664 (debug_scattering_function): Same.
11665 (debug_scattering_functions): Same.
11667 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11669 * graphite-poly.c (print_scattering_function_1): New.
11670 (print_scattering_function): Call it.
11671 (print_scop_params): Remove spaces at the end of lines.
11672 (print_cloog): New.
11673 (debug_cloog): New.
11674 * graphite-poly.h (print_cloog): Declared.
11675 (debug_cloog): Declared.
11677 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11679 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11681 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11682 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11683 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11684 to switch between adding the IV bump in loop->latch or in loop->header.
11686 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11688 * graphite-poly.c (print_scattering_function): Pretty print following
11689 the scoplib format.
11691 (print_pbb_domain): Same.
11692 (dump_gbb_cases): Same.
11693 (dump_gbb_conditions): Same.
11694 (print_pdrs): Same.
11696 (print_scop_params): Same.
11697 (print_scop_context): Same.
11698 (print_scop): Same.
11699 (print_pbb_body): New.
11700 (lst_indent_to): New.
11701 (print_lst): Start new lines with a #.
11702 * graphite-poly.h (pbb_bb): New.
11703 (pbb_index): Use pbb_bb.
11704 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11706 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11708 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11710 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11711 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11712 and 0 instead of 1 for dw_val_class_flag.
11713 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11714 dw_val_class_range_list, dw_val_class_loc_list,
11715 dw_val_class_lineptr and dw_val_class_macptr, use
11716 DW_FORM_flag_present for dw_val_class_flag and
11717 DW_FORM_exprloc for dw_val_class_loc.
11718 (output_die): For -gdwarf-4 print dw_val_class_loc
11719 size as uleb128 instead of 1 or 2 bytes and don't print
11720 anything for dw_val_class_flag.
11722 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11723 instead of cselib_lookup following by tweaking locs->setting_insn.
11726 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11727 even before returning from label, setjmp call or volatile asm
11730 2010-03-31 Richard Guenther <rguenther@suse.de>
11732 PR middle-end/43600
11733 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11734 temporary data on stack.
11736 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11738 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11739 (PUSHSECTION_ASM_OP): Remove.
11740 (POPSECTION_ASM_OP): Remove.
11741 (PUSHSECTION_FORMAT): Remove.
11742 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11743 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11744 * config/sol2.c (solaris_output_init_fini): Use it.
11746 2010-03-31 Jie Zhang <jie@codesourcery.com>
11749 * opt-functions.awk (var_type_struct): Use signed char type
11750 for simple variables.
11752 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11754 * config/sol2.c: Include output.h.
11755 (solaris_assemble_visibility): New function.
11756 * config/t-sol2 (sol2.o): Add output.h dependency.
11757 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11758 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11761 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11764 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11765 V2SImode or XFmode on PRE_DEC.
11768 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11771 2010-03-31 Jie Zhang <jie@codesourcery.com>
11774 * reload.h (caller_save_initialized_p): Declare.
11775 * toplev.c (backend_init_target): Don't call
11776 init_caller_save but set caller_save_initialized_p to false.
11777 * caller-save.c (caller_save_initialized_p): Define.
11778 (init_caller_save): Check caller_save_initialized_p.
11779 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11781 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11784 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11785 and soft-fp/t-softfp to tmake_file.
11786 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11787 (LIBGCC2_TF_CEXT): Define.
11790 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11793 * cselib.c (n_useless_values): Document handling of debug locs.
11794 (n_useless_debug_values, n_debug_values): New variables.
11795 (new_elt_loc_list): Don't add to debug values, keep count.
11796 (promote_debug_loc): New.
11797 (cselib_reset_table): Zero new variables.
11798 (entry_and_rtx_equal_p): Promote debug locs.
11799 (discard_useless_locs): Increment n_useless_debug_values for
11801 (remove_useless_values): Adjust n_useless_values and n_debug_values
11802 with n_useless_debug_values.
11803 (add_mem_for_addr): Promote debug locs.
11804 (cselib_lookup_mem): Likewise.
11805 (cselib_lookup_addr): Renamed to...
11806 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11807 (cselib_log_lookup): ... this. Turn into...
11808 (cselib_lookup_addr): ... new wrapper.
11809 (cselib_lookup_from_insn): New.
11810 (cselib_invalidate_regno): Increment n_useless_debug_values for
11812 (cselib_invalidate_mem): Likewise.
11813 (cselib_process_insn): Take n_deleted and n_debug_values into
11814 account to guard remove_useless_value call.
11815 (cselib_finish): Zero n_useless_debug_values.
11816 * cselib.h (cselib_lookup_from_insn): Declare.
11817 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11818 (sched_analyze_2): Likewise.
11820 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11822 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11824 (adjust_mems): Replace narrowing SUBREG of expression containing
11825 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11826 with operations in the narrower mode.
11829 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11830 regs_invalidated_by_call instead all call_used_reg_set registers.
11832 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11834 PR middle-end/43430
11835 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11836 pointer comparisons with types_compatible_p.
11837 * tree-vect-stmts.c (vectorizable_call): Same.
11838 (vectorizable_condition): Same.
11840 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11842 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11843 stack check if the mask would be zero.
11845 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11846 Jack Howarth <howarth@bromo.med.uc.edu>
11848 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11851 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11854 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11856 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11857 Include ___unordxf2 and ___unordtf2.
11858 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11861 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11863 * config/lm32/t-lm32: New file.
11864 * config.gcc: Use the above file when targetting lm32.
11866 2010-03-28 Duncan Sands <baldrick@free.fr>
11868 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11870 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11872 PR middle-end/43431
11873 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11874 Improve vectorization cost model diagnostic.
11876 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11878 PR middle-end/43436
11879 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11880 compute_data_dependences_for_loop returns false, early exit
11881 and output an extra diagnostic for the failed data reference
11884 2010-03-29 Richard Guenther <rguenther@suse.de>
11886 PR tree-optimization/43560
11887 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11888 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11890 2010-03-29 Jie Zhang <jie@codesourcery.com>
11893 * toplev.c (process_options): Set optimization_default_node
11894 and optimization_current_node.
11895 * opts.c (decode_options): Don't set optimization_default_node
11896 and optimization_current_node.
11898 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11900 * config/rtems.h: Abandon -qrtems_debug.
11902 2010-03-28 Jan Hubicka <jh@suse.cz>
11904 PR tree-optimization/43505
11905 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11906 map should not be copied.
11908 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11910 PR middle-end/41674
11911 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11912 cdtors, set DECL_PRESERVE_P.
11913 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11914 should be preseved.
11916 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11918 PR tree-optimization/43528
11919 * stor-layout.c (place_field): Check that constant fits into
11920 unsigned HWI when skipping calculation of MS bitfield layout.
11922 2010-03-27 Jan Hubicka <jh@suse.cz>
11924 PR middle-end/43391
11925 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11926 notice_global_symbol work.
11928 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11930 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11931 instead of dwarf2out_decl.
11932 (struct var_loc_node): Remove section_label field.
11933 (dwarf2out_function_decl): New function.
11934 (dwarf2out_var_location): Don't set section_label field.
11935 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11937 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11939 PR tree-optimization/43544
11940 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11941 First argument for builtin vectorized function hook is now a
11942 tree to be able to distinguish between machine specific and
11944 * targhooks.c (default_builtin_vectorized_function): Ditto.
11945 * targhooks.h (default_builtin_vectorized_function): Ditto.
11946 * target.h (struct gcc_target): Ditto.
11947 * tree-vect-stmts.c (vectorizable_function): Ditto.
11948 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11949 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11952 2010-03-26 Joseph Myers <joseph@codesourcery.com>
11955 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11956 nested binding iff it is a FUNCTION_DECL.
11957 (store_parm_decls_newstyle): Pass nested=true to bind for
11958 FUNCTION_DECLs amongst parameters.
11960 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11962 * var-tracking.c (vt_expand_loc_callback): Don't run
11963 cselib_expand_value_rtx_cb in dummy mode if
11964 cselib_dummy_expand_value_rtx_cb returned false.
11966 * var-tracking.c (emit_note_insn_var_location): For one part
11967 notes with offset 0, don't add EXPR_LIST around the location.
11968 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11969 add_location_or_const_value_attribute): Adjust for that change.
11972 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11973 into first operand and location into second.
11974 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11975 dw_cfi_oprnd_loc for DW_CFA_expression.
11976 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11977 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11978 assume first argument is regnum and second argument is location.
11980 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11983 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11984 of scratch register to DImode. Split to DImode comparison operator.
11985 Use SImode subreg of scratch register in the multiplication.
11986 (*cmp_sadd_sidi): Ditto.
11987 (*cmp_ssub_si): Ditto.
11988 (*cmp_ssub_sidi): Ditto.
11990 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11993 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11994 Remove invalid assert and wrong comment.
11996 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11999 * flags.h (final_insns_dump_p): New extern.
12000 * final.c (final_insns_dump_p): New variable.
12001 (rest_of_clean_state): Set it before -fdump-final-insns=
12002 dumping, clear afterwards.
12003 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12004 MEM_ALIAS_SET on MEMs.
12006 2010-03-26 David S. Miller <davem@davemloft.net>
12008 * configure.ac: Fix sparc GOTDATA_OP bug check.
12009 * configure: Rebuild.
12011 2010-03-26 Alan Modra <amodra@gmail.com>
12013 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12015 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12017 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12018 TLS_SECTION_ASM_FLAG.
12020 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12023 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12024 Clear first_function_block_is_cold.
12027 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12028 argument if the argument is truth_value_p.
12030 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12032 * config/rs6000/constraints.md: Update copyright year for my changes.
12035 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12036 used in reg+reg addressing, swap registers.
12038 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12041 * target.h (struct gcc_target): Add code_end hook.
12042 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12043 if not yet defined.
12044 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12045 * toplev.c (compile_file): Call targetm.asm_out.code_end
12046 hook before unwind info/debug info output.
12047 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12048 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12049 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12050 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12051 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12052 * config/i386/i386.c (ix86_file_end): Renamed to...
12053 (ix86_code_end): ... this. Make static. Don't call
12054 file_end_indicate_exec_stack. Emit unwind info using
12055 final_start_function/final_end_function.
12056 (darwin_x86_file_end): Remove.
12057 (TARGET_ASM_CODE_END): Define.
12058 * config/i386/i386.h (TARGET_ASM_FILE_END,
12059 NEED_INDICATE_EXEC_STACK): Don't define.
12060 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12061 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12062 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12063 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12066 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12067 at the beginning and final_end_function at the end.
12068 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12070 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12072 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12073 and Sun as TLS syntax.
12074 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12075 * configure: Regenerate.
12076 * config.in: Regenerate.
12077 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12078 (default_elf_asm_named_section): Use it.
12079 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12080 (i386_output_dwarf_dtprel): Likewise.
12081 (output_addr_const_extra): Likewise.
12082 (output_pic_addr_const): Lowercase @GOTTPOFF.
12083 (output_addr_const_extra): Likewise.
12084 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12085 (output_addr_const_extra): Likewise.
12086 (output_pic_addr_const): Lowercase @INDNTPOFF.
12087 (output_addr_const_extra): Likewise.
12088 (output_pic_addr_const): Lowercase @NTPOFF.
12089 (output_addr_const_extra): Likewise.
12090 (output_pic_addr_const): Lowercase @TPOFF.
12091 (output_addr_const_extra): Likewise.
12092 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12093 (*tls_global_dynamic_64): Likewise.
12094 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12095 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12097 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12098 (ASM_OUTPUT_TLS_COMMON): Use it.
12099 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12102 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12103 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12104 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12105 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12106 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12107 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12109 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12111 * config/i386/i386.c (override_options): Don't accept
12112 -mtls-dialect=sun any longer.
12113 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12114 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12115 (*tls_local_dynamic_base_32_sun): Likewise.
12116 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12118 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12121 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12122 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12125 * ira.c (adjust_cleared_regs): New function.
12126 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12130 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12132 * expr.c (expand_expr_real): Restore previous
12133 curr_insn_source_location and curr_insn_block after
12134 expand_expr_real_1 call.
12135 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12136 instead of expand_expr_real_1.
12138 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12140 PR rtl-optimization/43413
12141 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12144 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12147 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12148 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12150 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12152 * config/i386/i386.c (ix86_target_string): Add -mfma.
12153 Fix a typo in comment.
12155 2010-03-22 Mike Stump <mikestump@comcast.net>
12158 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12159 Don't overly align based upon packed packed fields.
12161 2010-03-22 Jason Merrill <jason@redhat.com>
12163 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12164 Use () rather than [], and move before the element type.
12166 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12168 * doc/configfiles.texi (Configuration Files): Removed
12169 fixinc/Makefile*, intl/Makefile.*.
12170 * doc/makefile.texi: Fixed markup. Abstract from version
12171 control system used.
12172 (Makefile): Removed obsolete gcc/java/parse.y example.
12173 * doc/sourcebuild.texi: Likewise.
12174 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12175 libgomp, libssp. Removed fastjar.
12176 (Miscellaneous Docs): Clarify location.
12177 Added COPYING3, COPYING3.LIB.
12178 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12180 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12183 * config/i386/i386.c (x86_function_profiler)
12184 [!NO_PROFILE_COUNTERS]: Fix typo.
12185 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12188 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12189 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12191 * doc/sourcebuild.texi (Test Directives): Split into six
12192 subsections, with most of the current text in new subsections
12193 Directives, Selectors, and Final Actions.
12194 (Directives): Split list of test directives into multiple
12196 (Selectors): Describe use and syntax of selectors.
12197 (Effective-Target Keywords): Describe all existing keywords.
12198 (Add Options): Describe features for dg-add-options.
12199 (Require Support): Describe variants of dg-require-support.
12200 (Final Actions): Describe commands to use in dg-final.
12202 2010-03-22 Michael Matz <matz@suse.de>
12204 PR middle-end/43475
12205 * recog.c (validate_replace_rtx_group): Replace also in
12206 REG_EQUAL and REG_EQUIV notes.
12208 2010-03-22 Richard Guenther <rguenther@suse.de>
12210 PR tree-optimization/43390
12211 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12212 sure vector extracts are type correct.
12214 2010-03-22 Richard Guenther <rguenther@suse.de>
12216 PR middle-end/40106
12217 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12218 x * sqrt (x) even when optimizing for size if the target
12219 has native support for sqrt.
12221 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12223 * varasm.c (make_decl_rtl_for_debug): Also clear
12224 flag_mudflap for the duration of make_decl_rtl call.
12227 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12228 locs from preserved VALUEs.
12230 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12232 PR middle-end/42718
12233 * pa.md (movmemsi): Set align to one if zero.
12234 (movmemdi): Likewise.
12236 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12239 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12240 with their corresponding prologue pushes.
12242 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12245 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12246 at the begining or end.
12247 (spu_expand_epilogue): Likewise.
12249 2010-03-20 Richard Guenther <rguenther@suse.de>
12251 PR rtl-optimization/43438
12252 * combine.c (make_extraction): Properly zero-/sign-extend an
12253 extraction of the low part of a CONST_INT. Also handle
12256 2010-03-19 Mike Stump <mikestump@comcast.net>
12258 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12259 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12260 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12262 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12265 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12268 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12270 PR rtl-optimization/42258
12271 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12272 use that may match DEF.
12275 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12276 the cost of loading the constant rather than assuming
12278 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12279 outer code is AND, do the same tests as the andsi3 expander and
12280 return COSTS_N_INSNS (1) if and is cheap.
12282 * optabs.c (avoid_expensive_constant): Fix formatting.
12284 2010-03-19 Michael Matz <matz@suse.de>
12287 * attribs.c (decl_attributes): When rebuilding a function pointer
12288 type use the same qualifiers as the original pointer type.
12290 2010-03-19 Martin Jambor <mjambor@suse.cz>
12292 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12293 and is_gimple_ip_invariant_address.
12295 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12298 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12300 * config/arm/arm.c (arm_override_options): Turn off
12301 flag_dwarf2_cfi_asm for AAPCS variants.
12303 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12306 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12307 Use PRE_MODIFY instead of PRE_DEC.
12308 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12309 (vfp_emit_fstmd): Likewise.
12311 2010-03-19 Michael Matz <matz@suse.de>
12314 * builtins.c (expand_builtin_interclass_mathfn,
12315 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12318 2010-03-19 Richard Guenther <rguenther@suse.de>
12320 PR tree-optimization/43415
12321 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12322 (phi_translate_1): ... this.
12323 (phi_translate): Move all caching here. Cache all NARY
12324 and REFERENCE translations.
12326 2010-03-19 David S. Miller <davem@davemloft.net>
12328 With help from Eric Botcazou.
12329 * config/sparc/sparc.c: Include dwarf2out.h.
12330 (emit_pic_helper): Delete.
12331 (pic_helper_symbol_name): Delete.
12332 (pic_helper_emitted_p): Delete.
12333 (pic_helper_needed): New.
12334 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12335 (get_pc_thunk_name): New.
12336 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12337 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12338 Set pic_helper_needed to true. Don't call emit_pic_helper.
12339 (sparc_expand_prologue): Update load_pic_register call.
12340 (sparc_output_mi_thunk): Likewise.
12341 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12342 thunk if possible. Output CFI information as needed.
12344 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12345 Jack Howarth <howarth@bromo.med.uc.edu>
12348 * config/i386/i386.h: Fix ABI on darwin x86-32.
12350 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12352 * tree.h: Declare make_decl_rtl_for_debug.
12353 * varasm.c (make_decl_rtl_for_debug): New.
12354 * dwarf2out.c (rtl_for_decl_location): Call it.
12355 * cfgexpand.c (expand_debug_expr): Call it.
12357 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12360 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12364 * var-tracking.c (vt_init_cfa_base): Do nothing if
12365 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12367 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12370 * var-tracking.c (canonicalize_vars_star): New.
12371 (dataflow_post_merge_adjust): Use it.
12373 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12376 * var-tracking.c (non_suitable_const): New function.
12377 (add_uses): For DEBUG_INSNs with constants, don't record any
12378 value, instead just the constant value itself.
12379 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12380 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12381 (emit_notes_in_bb): Likewise.
12382 (emit_note_insn_var_location): For onepart variables if
12383 cur_loc is a VOIDmode constant, use DECL_MODE.
12385 2010-03-18 Martin Jambor <mjambor@suse.cz>
12387 PR middle-end/42450
12388 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12389 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12390 all non-clones. Moved call redirection...
12391 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12392 (cgraph_materialize_all_clones): Dispose of all
12393 combined_args_to_skip bitmaps.
12394 (verify_cgraph_node): Do not check for edges pointing to wrong
12395 nodes in inline clones.
12396 * tree-inline.c (copy_bb): Call
12397 cgraph_redirect_edge_call_stmt_to_callee.
12398 * ipa.c (cgraph_remove_unreachable_nodes): Call
12399 cgraph_node_remove_callees even when there are used clones.
12401 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12403 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12405 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12408 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12411 2010-03-18 Michael Matz <matz@suse.de>
12413 PR middle-end/43419
12414 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12415 into sqrt(x) if we need to preserve signed zeros.
12417 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12418 Eric Botcazou <ebotcazou@adacore.com>
12420 PR rtl-optimization/43360
12421 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12422 note if we don't know its invariant status.
12424 2010-03-18 Michael Matz <matz@suse.de>
12426 PR tree-optimization/43402
12427 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12428 PHI chains of ssa names registered for update.
12430 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12433 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12434 non-offsettable and pre_modify update addressing.
12435 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12436 and "2" alternatives "#".
12437 (*movdd_softfloat32): Make all alternatives "#";
12438 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12439 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12440 (*movdf_softfloat32): Make all alternatives "#";
12441 (movdi): Use the new DIFD mode iterator to create a common splitter
12442 for movdi, movdf and movdd patterns.
12444 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12446 * common.opt (dumpdir): Remove redundant tab.
12448 2010-03-17 Martin Jambor <mjambor@suse.cz>
12450 PR tree-optimization/43347
12451 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12452 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12454 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12456 PR rtl-optimization/42216
12457 * regrename.c (create_new_chain): New function, broken out from...
12458 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12459 appending a use to an empty chain.
12460 (build_def_use): Remove previous changes that convert OP_INOUT to
12461 OP_OUT operands; instead detect the case where an OP_INOUT operand
12462 uses a previously untracked register and create an empty chain for it.
12464 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12466 * doc/extend.texi (Function Attributes): Rewrite unfinished
12467 sentence in ms_abi documentation.
12469 2010-03-17 Alan Modra <amodra@gmail.com>
12471 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12472 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12473 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12474 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12476 2010-03-16 Richard Henderson <rth@redhat.com>
12478 PR middle-end/43365
12479 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12480 (lower_try_finally): Save and restore eh_seq around the expansion
12481 of the try-finally.
12483 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12485 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12486 statements before splitting block.
12488 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12490 * doc/sourcebuild.texi (Testsuites): Fix markup.
12491 Use pathnames relative to gcc/testsuite.
12492 (Test Directives): Move description of how timeout is determined.
12493 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12494 (C Tests): Correct gcc.misc-tests directory.
12495 Framework tests now live in gcc.test-framework.
12497 2010-03-16 Richard Guenther <rguenther@suse.de>
12499 PR middle-end/43379
12500 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12501 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12503 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12504 Alexandre Oliva <aoliva@redhat.com>
12506 PR tree-optimization/42917
12507 * lambda-code.c (remove_iv): Skip debug statements.
12508 (lambda_loopnest_to_gcc_loopnest): Likewise.
12509 (not_interesting_stmt): Debug statements are not interesting.
12511 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12515 * cselib.c (cselib_preserve_constants,
12516 cfa_base_preserved_val): New static variables.
12517 (preserve_only_constants): New function.
12518 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12519 clear its REG_VALUES. If cselib_preserve_constants, don't
12520 empty the whole hash table, but preserve there VALUEs with constants,
12521 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12522 (cselib_preserve_cfa_base_value): New function.
12523 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12524 (cselib_init): Change argument to int bitfield. Set
12525 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12527 (cselib_finish): Clear cselib_preserve_constants and
12528 cfa_base_preserved_val.
12529 * cselib.h (enum cselib_record_what): New enum.
12530 (cselib_init): Change argument to int.
12531 (cselib_preserve_cfa_base_value): New prototype.
12532 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12533 * dse.c (dse_step1): Likewise.
12534 * cfgcleanup.c (thread_jump): Likewise.
12535 * sched-deps.c (sched_analyze): Likewise.
12536 * gcse.c (local_cprop_pass): Likewise.
12537 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12538 If FN is non-NULL, call the callback always and whenever it returns
12539 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12540 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12541 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12542 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12543 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12544 * var-tracking.c: Include recog.h.
12545 (bb_stack_adjust_offset): Remove.
12546 (vt_stack_adjustments): Don't call it, instead just gather the
12547 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12548 (adjust_stack_reference): Remove.
12549 (compute_cfa_pointer): New function.
12550 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12551 (struct adjust_mem_data): New type.
12552 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12554 (get_address_mode): New function.
12555 (replace_expr_with_values): Use it.
12556 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12557 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12558 (adjust_sets): Remove.
12559 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12560 Use get_address_mode.
12561 (get_adjusted_src): Remove.
12562 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12563 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12564 (add_with_sets): Don't call adjust_sets.
12565 (fp_setter, vt_init_cfa_base): New functions.
12566 (vt_initialize): Change return type to bool. Move most of pool etc.
12567 initialization to the beginning of the function from end. Pass
12568 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12569 If !frame_pointer_needed, call vt_stack_adjustment before mos
12570 vector is filled, call vt_init_cfa_base if argp/framep has been
12571 eliminated to sp. If frame_pointer_needed and argp/framep has
12572 been eliminated to hard frame pointer, set
12573 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12574 encountering fp setter in the prologue. For MO_ADJUST, call
12575 log_op_type before pusing the op into mos vector, not afterwards.
12576 Call adjust_insn before cselib_process_insn/add_with_sets,
12577 call cancel_changes (0) afterwards.
12578 (variable_tracking_main_1): Adjust for vt_initialize calling
12579 vt_stack_adjustments and returning whether it succeeded or not.
12581 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12583 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12586 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12588 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12590 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12591 drap_reg has not been set.
12593 2010-03-15 Michael Matz <matz@suse.de>
12595 PR middle-end/43300
12596 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12597 use it to expand block copies.
12598 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12599 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12600 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12602 2010-03-15 Richard Guenther <rguenther@suse.de>
12604 PR tree-optimization/43367
12605 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12608 2010-03-15 Richard Guenther <rguenther@suse.de>
12610 PR tree-optimization/43317
12611 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12613 2010-03-15 Martin Jambor <mjambor@suse.cz>
12615 PR tree-optimization/43141
12616 * tree-sra.c (create_abstract_origin): New function.
12617 (modify_function): Call create_abstract_origin.
12619 2010-03-15 Chris Demetriou <cgd@google.com>
12621 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12624 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12626 PR middle-end/43354
12627 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12628 call insert_out_of_ssa_copy for default definitions.
12630 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12632 * graphite-clast-to-gimple.c (my_long_long): Defined.
12633 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12634 * graphite-sese-to-poly.c (my_long_long): Defined.
12635 (scop_ivs_can_be_represented): Use it.
12637 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12639 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12640 graphite-max-bbs-per-function, and loop-block-tile-size.
12641 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12643 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12645 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12647 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12648 forward declaration.
12649 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12650 (add_upper_bounds_from_estimated_nit): New.
12651 (build_loop_iteration_domains): Use it.
12653 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12655 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12657 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12659 PR middle-end/43306
12660 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12661 should be an INTEGER_CST. Also handle CASE_CONVERT.
12663 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12665 * graphite.c (graphite_initialize): To bound the number of bbs per
12666 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12667 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12668 * doc/invoke.texi: Document it.
12670 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12672 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12673 * graphite-sese-to-poly.h (build_poly_scop): Same.
12675 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12677 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12678 the number of parameters in the scop. Use as an upper bound
12679 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12680 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12681 * doc/invoke.texi: Document it.
12683 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12685 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12686 * doc/c-tree.texi: Remove.
12687 * doc/generic.texi: Merge c-tree.texi here.
12688 * doc/gccint.texi (Trees): Remove menu entry.
12689 (c-tree.texi): Remove @include.
12690 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12691 * doc/languages.texi (Reading RTL): Ditto.
12693 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12696 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12698 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12700 PR middle-end/42431
12701 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12702 code added to work around reload clobbering CONST insns.
12704 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12706 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12707 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12708 (cselib_preserve_only_values): Remove retain argument, don't
12709 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12710 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12711 * var-tracking.c (micro_operation): Move insn field before union.
12712 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12713 (struct variable_tracking_info_def): Remove n_mos field, change
12714 mos into a vector of micro_operations.
12715 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12716 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12717 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12718 changing into a vector.
12719 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12720 come before all other uops generated by add_stores.
12721 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12723 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12724 a vector. Run just one pass over the bbs instead of separate counting
12725 and computation phase.
12726 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12729 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12730 into *nonlocalized_list vector.
12731 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12732 even if origin is non-NULL.
12733 (gen_variable_die): Likewise.
12734 (process_scope_var): Don't change origin.
12735 (gen_decl_die): Likewise.
12736 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12737 before adding new edges instead of after it, fix moving over
12740 2010-03-11 David S. Miller <davem@davemloft.net>
12742 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12744 * configure: Rebuild.
12746 2010-03-11 Martin Jambor <mjambor@suse.cz>
12748 PR tree-optimization/43257
12749 * tree.c (assign_assembler_name_if_neeeded): New function.
12750 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12751 above new function.
12752 * tree.h (assign_assembler_name_if_neeeded): Declare.
12753 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12754 the function if needed.
12756 2010-03-11 Chris Demetriou <cgd@google.com>
12758 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12759 include/stdint-gcc.h, and include/stdint.h world-readable.
12761 2010-03-11 Richard Guenther <rguenther@suse.de>
12763 PR tree-optimization/43255
12764 * tree-vrp.c (process_assert_insertions_for): Do not insert
12765 asserts for trivial conditions.
12767 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12769 PR tree-optimization/43280
12770 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12771 generation. Move calculation of size out of the if branch.
12772 (find_bswap): Modify compare number generation.
12774 2010-03-11 Richard Guenther <rguenther@suse.de>
12777 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12778 (input_gimple_stmt): Fixup handled component types during
12779 operand read. Also fix up decls in ADDR_EXPRs.
12781 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12783 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12784 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12786 2010-03-10 Jan Hubicka <jh@suse.cz>
12789 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12790 * varasm.c (get_variable_section): Don't do that here...
12791 (make_decl_rtl): ... and here.
12792 (do_assemble_alias): Produce decl RTL.
12793 (assemble_alias): Likewise.
12795 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12798 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12799 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12801 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12802 (based_loc_descr): Only express drap or vdrap regno based expressions
12803 using DW_OP_fbreg when not optimizing.
12804 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12805 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12806 REG_CFA_SET_VDRAP note.
12808 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12810 PR tree-optimization/43236
12811 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12812 error in calculation of base address in reverse iteration case.
12813 (generate_builtin): Take number of latch executions if the statement
12816 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12818 PR middle-end/42859
12819 * tree-eh.c: Include pointer-set.h.
12820 (lower_eh_dispatch): Filter out duplicate case labels and
12821 remove the unneeded edge when the label is unused. Return
12822 true when some edges are removed.
12823 (execute_lower_eh_dispatch): When any lowering resulted in
12824 removing an edge, also delete unreachable blocks.
12826 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12829 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12830 UNSPEC_MACHOPIC_OFFSET.
12832 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12835 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12836 (m68k_delegitimize_address): New function.
12838 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12841 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12844 * var-tracking.c (adjust_sets): New function.
12845 (count_with_sets, add_with_sets): Use it.
12846 (get_adjusted_src): New inline function.
12847 (add_stores): Use it.
12850 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12851 call cselib_dummy_expand_value_rtx_cb instead of
12852 cselib_expand_value_rtx_cb.
12855 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12856 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12857 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12858 and .cfi_endproc around the pic thunks.
12859 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12860 all queued unwind info register saves are saved before the call.
12861 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12862 considered as sp-=4 for unwind info and the pop as sp+=4 which
12863 also clobbers dest, but doesn't actually restore it.
12866 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12867 RTX_FRAME_RELATED_P.
12869 2010-03-09 Jie Zhang <jie@codesourcery.com>
12871 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12872 whitespaces in output template.
12874 2010-03-09 Jie Zhang <jie@codesourcery.com>
12876 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12877 out array boundary.
12879 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12881 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12882 builtins.exp in a separate job.
12884 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12886 * graphite-sese-to-poly.c (add_param_constraints): Use
12887 lower_bound_in_type and upper_bound_in_type.
12889 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12891 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12892 instead of unsigned_type_node.
12894 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12895 Reza Yazdani <reza.yazdani@amd.com>
12897 PR middle-end/43065
12898 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12899 on pointer type parameters.
12901 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12903 PR middle-end/42644
12904 PR middle-end/42130
12905 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12906 handle conversions from pointer to integers.
12907 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12908 induction variable, to be able to work with code generated by CLooG.
12909 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12910 (build_poly_scop): Bail out if we cannot codegen a loop.
12912 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12914 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12915 code generation with gloog_error.
12917 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12919 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12920 Call fold_convert on all the returned values.
12921 (expand_scalar_variables_expr): Pass to
12922 expand_scalar_variables_ssa_name the type of the resulting expression.
12924 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12926 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12927 ppl_min_for_le_pointset.
12928 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12929 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12931 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12933 * graphite-dependences.c (map_into_dep_poly): Removed.
12934 (dependence_polyhedron_1): Use combine_context_id_scat.
12936 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12938 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12939 (struct poly_bb): Same.
12940 (combine_context_id_scat): New.
12942 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12944 PR middle-end/42326
12945 * sese.c (name_defined_in_loop_p): Return false for default
12948 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12950 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12951 and clean up the logic.
12953 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12955 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12958 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12960 * var-tracking.c (remove_cselib_value_chains): Define only for
12962 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12963 delete_slot_part, emit_notes_for_differences_1): Don't call
12964 remove_cselib_value_chains here.
12965 (set_slot_part, emit_notes_for_differences_2): Don't call
12966 add_cselib_value_chains here.
12967 (preserved_values): New vector.
12968 (preserve_value): New function.
12969 (add_uses, add_stores, vt_add_function_parameters): Use it
12970 instead of cselib_preserve_value.
12971 (changed_values_stack): New vector.
12972 (check_changed_vars_0): New function.
12973 (check_changed_vars_1, check_changed_vars_2): Use it.
12974 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12975 changed_values_stack VALUEs.
12976 (vt_emit_notes): For all preserved_values call
12977 add_cselib_value_chains. If ENABLE_CHECKING call
12978 remove_cselib_value_chains before verifying value_chains is empty.
12979 Initialize and free changed_values_stack.
12980 (vt_initialize): Initialize preserved_values.
12981 (vt_finalize): Free preserved_values.
12983 2010-03-08 Richard Guenther <rguenther@suse.de>
12985 PR tree-optimization/43269
12986 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12989 2010-03-08 Martin Jambor <mjambor@suse.cz>
12991 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12992 (ipa_is_param_called): Removed.
12993 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12994 (ipa_print_node_params): Do not print the called flag.
12995 (ipa_write_node_info): Do not stream the called flag.
12996 (ipa_read_node_info): Likewise.
12998 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13001 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13002 * cselib.c (struct expand_value_data): Add dummy field.
13003 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13005 (cselib_dummy_expand_value_rtx_cb): New function.
13006 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13008 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13009 * var-tracking.c: Include pointer-set.h.
13010 (variable): Change n_var_parts to char from int. Add
13011 cur_loc_changed and in_changed_variables fields.
13012 (variable_canonicalize): Remove.
13013 (shared_var_p): New inline function.
13014 (unshare_variable): Maintain cur_loc_changed and
13015 in_changed_variables fields. If var was in changed_variables,
13016 replace it there with new_var. Just copy cur_loc instead of
13017 resetting it to something else.
13018 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13019 (dataflow_set_union): Don't call variable_canonicalize.
13020 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13021 of their DEBUG_EXPR_TREE_DECLs.
13022 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13023 and in_changed_variables and cur_loc_changed is false.
13024 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13025 and cur_loc_changed. Don't update cur_loc here.
13026 (variable_merge_over_src): Don't call variable_canonicalize.
13027 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13028 removing loc that is equal to cur_loc, clear cur_loc,
13029 set cur_loc_changed and ensure variable_was_changed is called.
13030 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13031 compare pointers in cur_loc check, if it is equal to loc,
13032 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13033 (variable_different_p): Remove compare_current_location argument,
13034 don't compare cur_loc.
13035 (dataflow_set_different_1): Adjust variable_different_p caller.
13036 (variable_was_changed): If dv had some var in changed_variables
13037 already, reset in_changed_variables flag for it and propagate
13038 cur_loc_changed over to the new variable. On empty var
13039 always set cur_loc_changed. Set in_changed_variables on whatever
13040 var is added to changed_variables.
13041 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13042 Use shared_var_p. When removing loc that is equal to cur_loc,
13043 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13044 end, don't set it to something else, just call variable_was_changed.
13045 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13046 loc being removed, clear cur_loc and set cur_loc_changed.
13047 Set cur_loc_changed if all locations have been removed.
13048 (struct expand_loc_callback_data): New type.
13049 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13050 allocated. Always create SUBREGs if simplify_subreg failed.
13051 Prefer to use cur_loc, when that fails and still in
13052 changed_variables (and seen first time) recompute it. Set
13053 cur_loc_changed of variables which had to change cur_loc and
13054 compute elcd->cur_loc_changed if any of the subexpressions used
13055 had to change cur_loc.
13056 (vt_expand_loc): Adjust to pass arguments in
13057 expand_loc_callback_data structure.
13058 (vt_expand_loc_dummy): New function.
13059 (emitted_notes): New variable.
13060 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13061 that weren't used for any other decl in current
13062 emit_notes_for_changes call call vt_expand_loc_dummy to update
13063 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13064 first loc_chain location if NULL before. Always use just
13065 cur_loc instead of first loc_chain location. When cur_loc_changed
13066 is false, when not --enable-checking=rtl just don't emit any note.
13067 When rtl checking, compute the note and assert it is the same
13068 as previous note. Clear cur_loc_changed and in_changed_variables
13069 at the end before removing from changed_variables.
13070 (check_changed_vars_3): New function.
13071 (emit_notes_for_changes): Traverse changed_vars to call
13072 check_changed_vars_3 on each changed var.
13073 (emit_notes_for_differences_1): Clear cur_loc_changed and
13074 in_changed_variables. Recompute cur_loc of new_var.
13075 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13076 (vt_emit_notes): Initialize and destroy emitted_notes.
13078 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13080 PR rtl-optimization/42220
13081 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13082 Use verify_reg_tracked to determine if we should use OP_OUT rather
13084 (build_def_use): If we see an in-out operand for a register that we
13085 know nothing about, treat is an output if possible, fail the block if
13088 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13091 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13094 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13097 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13098 uses of relevant DEFs that are dead outside the loop too.
13100 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13102 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13104 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13106 * var-tracking.c (values_to_unmark): New variable.
13107 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13108 values_to_unmark vector. Moved body to...
13109 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13110 instead queue it into values_to_unmark vector.
13111 (vt_find_locations): Free values_to_unmark vector.
13113 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13115 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13116 (site.exp): Export them when plugins are enabled.
13118 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13120 PR middle-end/42326
13121 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13122 that contain scevs.
13123 (chrec_fold_multiply): Same.
13125 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13128 * c-decl.c (build_compound_literal): Return early if init is
13129 an error_mark_node.
13131 2010-03-04 Martin Jambor <mjambor@suse.cz>
13133 PR tree-optimization/43164
13134 PR tree-optimization/43191
13135 * tree-sra.c (type_consists_of_records_p): Reject records with
13136 zero-size bit-fields at the end.
13138 2010-03-04 Mike Stump <mikestump@comcast.net>
13140 * Makefile.in (TAGS): Remove *.y.
13142 2010-03-04 Richard Guenther <rguenther@suse.de>
13144 PR tree-optimization/40761
13145 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13147 (my_rev_post_order_compute): New function.
13148 (init_pre): Call it.
13150 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13152 PR middle-end/43209
13153 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13154 decrease the cost of an IV candidate when the cost is infinite.
13156 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13158 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13159 Use '3DNow!' for the extension of that name, ensure normal space
13161 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13163 2010-03-03 Jeff Law <law@redhat.com>
13165 * PR middle-end/32693
13166 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13167 than gen_rtx_SUBREG.
13168 (extract_bit_field_1): Likewise.
13170 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13172 * doc/sourcebuild.texi (Test directives): Document that arguments
13173 include-opts and exclude-opts are now optional for dg-skip-if,
13174 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13176 2010-03-03 Jason Merrill <jason@redhat.com>
13179 * cgraph.h (varpool_node): Add extra_name field.
13180 * varpool.c (varpool_extra_name_alias): New.
13181 (varpool_assemble_decl): Emit extra name aliases.
13182 (varpool_mark_needed_node): Look past an extra name alias.
13183 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13184 * lto-streamer-in.c (lto_input_tree): Read it.
13185 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13187 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13189 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13190 (sparc*-*-solaris2*): ...this.
13192 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13195 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13196 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13197 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13198 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13201 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13202 fallthrough to default handling, just with want_address 0 instead of 2.
13203 For single element lists, add_AT_loc directly, otherwise create an
13204 artificial variable DIE and stick location list to it.
13207 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13208 (VAL_EXPR_HAS_REVERSE): Define.
13209 (reverse_op): New function.
13210 (add_stores): For reversible operations add an extra MO_VAL_USE.
13212 2010-03-02 Jason Merrill <jason@redhat.com>
13214 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13216 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13218 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13219 (sparc64-*-linux*): Likewise.
13220 (sparc64-*-solaris2*): Include assembler files before linker ones.
13221 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13222 * config/sparc/gas.h: Delete.
13223 * config/sparc/sol2-64.h: Add copyright notice.
13224 * config/sparc/sol2-gas-bi.h: Likewise.
13225 * config/sparc/sol2-gld.h: Likewise.
13226 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13227 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13228 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13229 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13230 (sparc_elf_asm_named_section): Rename into...
13231 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13233 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13235 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13237 2010-03-02 Jeff Law <law@redhat.com>
13239 PR middle-end/42431
13240 * reload1.c (rtx_p, substitute_stack): Declare.
13241 (substitute): Record addresses of changed rtxs.
13242 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13243 Restore the original rtx when complete.
13244 (reload): Free subsitute_stack when complete.
13246 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13248 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13249 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13251 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13252 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13253 Torture Tests): Change from subsection to section.
13255 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13256 Steven Bosscher <steven@gcc.gnu.org>
13258 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13261 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13263 PR middle-end/42640
13264 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13265 the assignment from the new induction variable to the assignment
13266 of the value from the original loop PHI function.
13268 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13269 Daniel Jacobowitz <dan@codesourcery.com>
13271 * doc/sourcebuild.texi (Test directives): Clarify options to
13274 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13276 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13277 Disable cfi directives unless GCC and gas agree on using read-only
13278 .eh_frame sections for 64-bit.
13279 * configure: Regenerate.
13281 2010-03-01 Richard Guenther <rguenther@suse.de>
13283 PR tree-optimization/43220
13284 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13285 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13287 2010-03-01 Richard Guenther <rguenther@suse.de>
13288 Martin Jambor <mjambor@suse.cz>
13290 PR middle-end/41250
13291 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13292 gimplified parameters.
13294 2010-03-01 Christian Bruel <christian.bruel@st.com>
13296 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13298 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13300 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13302 2010-03-01 Richard Guenther <rguenther@suse.de>
13304 PR middle-end/43213
13305 * expr.c (expand_assignment): Use the alias-oracle to tell
13306 if the rhs aliases the result decl.
13308 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13311 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13312 to sol_gt_pch_get_address.
13313 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13314 64-bit, SPARC and x86.
13315 (sol_gt_pch_get_address): New function.
13317 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13319 * toplev.h (inform_n, error_n): Declare.
13320 * diagnostic.c (inform_n, error_n): New function.
13322 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13324 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13325 has no rtl yet when processing local_decls, queue it and recheck
13326 if deferred stack allocation hasn't assigned it rtl.
13328 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13330 * config/sh/sh.c (unspec_bbr_uid): New.
13331 (gen_block_redirect): Use it instead of INSN_UID.
13332 (gen_far_branch): Likewise.
13334 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13336 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13337 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13339 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13341 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13342 (Warning Options): -Wno-conversion-null is valid for
13343 Objective-C++ as well.
13344 * doc/tm.texi (Named Address Spaces): Likewise.
13345 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13346 * doc/tree-ssa.texi (Tree SSA): Likewise.
13348 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13351 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13352 by default. Don't set the default arch for
13353 i[34567]86-*-darwin*|x86_64-*-darwin*.
13355 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13358 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13359 default. Set the default 32bit/64bit archs with $with_arch
13360 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13362 2010-02-27 Richard Guenther <rguenther@suse.de>
13364 PR tree-optimization/43186
13365 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13366 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13367 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13368 unroller iterations.
13370 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13372 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13373 required and i[34567]86-*-* targets don't support 64bit ISA.
13375 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13378 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13379 the same alias set.
13381 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13383 * config.gcc: Set the default arch at least to Prescott for
13384 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13385 if SSE math is enabled.
13387 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13389 * diagnostic.c (diagnostic_initialize): Update.
13390 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13392 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13393 (diagnostic_inhibit_notes): New.
13394 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13396 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13399 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13400 * doc/standards.texi: Likewise.
13401 * doc/extend.texi: Likewise.
13402 * doc/trouble.texi: Likewise.
13403 * doc/cppopts.texi: Likewise.
13404 * doc/install.texi: Likewise.
13405 * c.opt (std=c90,std=gnu90): New options.
13406 * c-opts.c (c_common_handle_option): Handle them.
13408 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13411 * c-decl.c (undeclared_variable): Use an informative note.
13413 2010-02-26 Richard Guenther <rguenther@suse.de>
13415 PR tree-optimization/43186
13416 * gimple.h (gimple_fold): Remove.
13417 * gimple.c (gimple_fold): Remove. Inline into single user ...
13418 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13419 Try harder for conditions.
13421 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13424 * function.c (used_types_insert): Don't skip through named pointer
13425 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13426 and it is different from the main variant's type.
13428 2010-02-26 Nick Clifton <nickc@redhat.com>
13430 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13432 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13434 * config.gcc: Support --with-fpmath=sse for x86.
13436 * config/i386/ssemath.h: New.
13438 * doc/install.texi (--with-fpmath=sse): Documented.
13440 2010-02-26 Richard Guenther <rguenther@suse.de>
13442 PR tree-optimization/43188
13443 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13444 vector types of over-aligned element type.
13446 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13449 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13450 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13452 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13454 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13456 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13458 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13459 * var-tracking.c: Include diagnostic.h.
13460 (debug_dv): New function.
13461 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13464 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13465 (add_value_chain, add_value_chains, remove_value_chain,
13466 remove_value_chains): Handle DEBUG_EXPRs.
13467 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13470 * regcprop.c (struct queued_debug_insn_change): New type.
13471 (struct value_data_entry): Add debug_insn_changes field.
13472 (struct value_data): Add n_debug_insn_changes field.
13473 (debug_insn_changes_pool): New variable.
13474 (free_debug_insn_changes, apply_debug_insn_changes,
13475 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13476 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13477 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13479 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13481 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13482 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13483 changes, call cprop_find_used_regs via note_stores.
13484 (copyprop_hardreg_forward): When copying vd from predecessor
13485 which has any queued DEBUG_INSN changes, make sure the pointers are
13486 cleared. At the end call df_analyze and then if there are any
13487 DEBUG_INSN changes queued at the end of some basic block for still
13488 live registers, apply them.
13489 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13491 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13493 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13496 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13498 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13499 targets. Set the default with_cpu/with_arch from arch/cpu.
13500 Allow x86-64 and native for with_cpu/with_arch.
13502 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13504 * ebitmap.c: Change calls to verify_popcount with calls to
13505 sbitmap_verify_popcount.
13506 (ebitmap_clear_bit): Fixed map->cacheindex test and
13507 map>cache update when bit clearing results in an empty
13510 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13513 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13514 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13515 and support both V2DF and V2DI modes.
13516 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13517 support both V2DF and V2DI modes.
13518 (general): Delete trailing whitespace from a few patterns.
13520 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13521 V2DF/V2DI interleave high/low builtins.
13523 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13526 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13527 interleave high/low functions.
13529 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13531 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13532 #pragma extern_prefix.
13534 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13537 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13538 BLKmode, assert op0 is a MEM and just adjust its mode.
13541 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13542 if bitpos isn't multiple of mode's bitsize.
13544 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13546 * c.opt (-ftemplate-depth=): New.
13547 (-ftemplate-depth-): Deprecate.
13548 * optc-gen.awk: Handle -ftemplate-depth=.
13549 * opth-gen.awk: Likewise.
13550 * c-opts.c (c_common_handle_option): Likewise.
13551 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13553 2010-02-24 Jason Merrill <jason@redhat.com>
13555 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13557 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13559 * cfg.c (alloc_aux_for_block): Remove inline.
13560 (alloc_aux_for_edge): Likewise.
13562 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13564 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13566 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13568 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13569 * config/i386/sol2-gas.h: New file.
13570 * config.gcc (i[34567]86-*-solaris2*): Use it.
13572 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13575 * c-typeck.c (ep_convert_and_check): New.
13576 (build_conditional_expr): Use it.
13577 (build_binary_op): Likewise.
13579 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13581 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13584 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13585 bounds even for -O+.
13586 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13587 expr needs to have DECL_NAME set.
13589 2010-02-24 Nick Clifton <nickc@redhat.com>
13591 * config/mep/mep.c: Include gimple.h.
13592 (mep_function_uses_sp): Delete unused function.
13593 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13594 parameters. Use unsigned integers to count args. Return a
13595 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13597 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13600 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13601 greater or equal to nelt instead of 2 * nelt.
13602 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13605 2010-02-23 Jason Merrill <jason@redhat.com>
13608 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13609 in cfun->local_decls even if they have register types.
13612 * stor-layout.c (place_field): Don't warn about unnecessary
13613 DECL_PACKED if the type is packed.
13615 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13618 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13619 GOTOFF relocs, even when the base reg isn't pic pointer.
13621 2010-02-23 Michael Matz <matz@suse.de>
13624 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13625 (expand_gimple_basic_block): Generate and use debug temps if there
13626 are debug uses left after the last real use of TERed ssa names.
13627 Unlink debug immediate uses when they are expanded.
13629 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13632 * config/i386/i386.c (override_options): Reorganise to provide
13633 better error messages.
13635 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13637 PR middle-end/43083
13638 * graphite-scop-detection.c (create_single_exit_edge): Move
13639 the call to find_single_exit_edge to....
13640 (create_sese_edges): ...here. Don't handle multiple edges
13641 exiting the function.
13642 (build_graphite_scops): Don't handle multiple edges
13643 exiting the function.
13645 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13647 PR middle-end/43097
13648 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13649 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13651 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13653 PR middle-end/43026
13654 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13656 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13659 * c-typeck.c (convert_arguments): Print declaration location.
13660 * c-common.c (validate_nargs): Rename as
13661 builtin_function_validate_nargs.
13662 (check_builtin_function_arguments): Update.
13664 2010-02-22 Richard Guenther <rguenther@suse.de>
13667 * tree-inline.c (declare_return_variable): Use the type of
13668 the call stmt lhs if available.
13670 2010-02-22 Duncan Sands <baldrick@free.fr>
13672 * passes.c (register_pass): Always consider all pass lists when
13673 ref_pass_instance_number is zero.
13675 2010-02-22 Richard Guenther <rguenther@suse.de>
13677 PR tree-optimization/42749
13678 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13679 parameter. Do arithmetic in the original type.
13680 (update_accumulator_with_ops): Likewise.
13681 (adjust_accumulator_values): Adjust.
13683 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13685 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13686 (QI to BLKmode splitter): New splitter.
13688 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13690 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13691 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13693 2010-02-22 Richard Guenther <rguenther@suse.de>
13695 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13697 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13699 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13700 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13701 ($(T)crti.o, $(T)crtn.o): Remove rules.
13703 2010-02-21 Tobias Burnus <burnus@net-b.de>
13706 * doc/invoke.texi (-fassociative-math): Document that this
13707 option is automatically enabled for Fortran.
13709 2010-02-20 David S. Miller <davem@davemloft.net>
13711 * configure.ac: Test if linker and assembler properly support
13712 GOTDATA_OP relocations.
13713 * configure: Rebuild.
13714 * config.in: Likewise.
13715 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13716 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13717 (movsi_high_pic): Likewise.
13718 (movdi_lo_sum_pic): Likewise.
13719 (movdi_high_pic): Likewise.
13720 (movsi_pic_gotdata_op): New pattern.
13721 (movdi_pic_gotdata_op): Likewise.
13722 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13723 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13725 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13728 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13729 attribute to ssemul.
13730 (xop_mulv2div2di3_high): Ditto.
13732 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13735 * c.opt (Wconversion-null): New option.
13736 * doc/invoke.texi (Wconversion-null): Document.
13738 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13740 * common.opt (Wlarger-than-): Add Undocumented.
13742 2010-02-19 Mike Stump <mikestump@comcast.net>
13744 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13746 2010-02-19 Jason Merrill <jason@redhat.com>
13749 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13750 * configure: Likewise.
13752 2010-02-20 Alan Modra <amodra@gmail.com>
13754 PR middle-end/42344
13755 * cgraph.h (cgraph_make_decl_local): Declare.
13756 * cgraph.c (cgraph_make_decl_local): New function.
13757 (cgraph_make_node_local): Use it.
13758 * cgraphunit.c (cgraph_function_versioning): Likewise.
13759 * ipa.c (function_and_variable_visibility): Likewise.
13761 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13764 * except.c (sjlj_emit_function_enter): Don't call
13765 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13767 * rtl.h (add_reg_br_prob_note): Remove prototype.
13769 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13772 * c-common.c (conversion_warning): Remove widening conversions
13773 before checking the conversion of integers to reals.
13775 2010-02-19 Mike Stump <mikestump@comcast.net>
13777 PR middle-end/43125
13778 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13781 * cgraphunit.c (process_function_and_variable_attributes): Check
13782 DECL_PRESERVE_P instead of looking up attribute "used".
13783 * ipa-pure-const.c (check_decl): Likewise.
13784 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13785 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13786 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13787 instead of attribute "used".
13788 * config/sol2-c.c (solaris_pragma_init): Likewise.
13789 (solaris_pragma_fini): Likewise.
13791 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13793 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13794 Use XCNEW instead of xcalloc.
13795 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13796 XNEW instead of xmalloc.
13797 (get_fields): Use XNEWVEC instead of xmalloc.
13800 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13801 populate vars array.
13802 (create_new_general_access): For debug stmts just reset value.
13803 (get_stmt_accesses): For accesses within debug stmts just record them
13804 using add_access_to_acc_sites instead of preventing the peeling or
13805 counting them as accesses.
13807 PR middle-end/42233
13808 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13810 2010-02-19 Richard Guenther <rguenther@suse.de>
13812 PR tree-optimization/42916
13813 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13816 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13818 * configure.ac: Replace all uses of changequote in macro arguments
13819 with proper quoting.
13821 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13823 PR middle-end/42233
13824 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13826 2010-02-19 Richard Guenther <rguenther@suse.de>
13828 PR tree-optimization/42944
13829 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13830 test for aliasing with errno.
13832 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13834 PR middle-end/42233
13835 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13836 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13837 * dojump.c: Include output.h.
13838 (inv): New inline function.
13839 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13840 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13841 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13842 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13843 argument, pass it down to other calls.
13844 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13845 add REG_BR_PROB note to the conditional jump.
13846 * cfgexpand.c (add_reg_br_prob_note): Removed.
13847 (expand_gimple_cond): Don't call it, add the probability
13848 as last argument to jumpif_1/jumpifnot_1.
13849 * Makefile.in (dojump.o): Depend on output.h.
13850 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13852 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13853 * stmt.c (do_jump_if_equal): Likewise.
13854 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13855 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13856 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13858 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13859 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13860 jumpifnot_1 callers.
13861 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13863 (store_expr): Adjust jumpifnot caller.
13864 (store_constructor): Adjust jumpif caller.
13866 PR middle-end/42233
13867 * gimplify.c (gimple_boolify): For __builtin_expect call
13868 gimple_boolify also on its first argument.
13870 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13872 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13874 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13875 * configure: Regenerated.
13877 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13879 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13880 lang_hooks.types_compatible_p instead of comptypes.
13882 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13884 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13885 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13886 if __prefer_thumb__ is defined.
13888 2010-02-18 Martin Jambor <mjambor@suse.cz>
13890 PR tree-optimization/43066
13891 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13892 array with zero-sized element type.
13894 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13896 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13897 rtx, allocate struct var_loc_node here and return it to the
13898 caller, and only if it is actually needed.
13899 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13900 move it earlier and return immediately if it returns NULL.
13902 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13904 * config/sparc/gas.h: New file. Restore
13905 TARGET_ASM_NAMED_SECTION to its ELF default.
13906 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13907 check !HAVE_GNU_AS.
13908 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13909 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13910 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13911 after sparc/sysv4.h.
13913 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13915 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13917 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13919 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13920 patterns from predicated pattern.
13922 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13925 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13926 for insn mnemonic suffix.
13928 2010-02-17 Richard Guenther <rguenther@suse.de>
13930 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13933 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13936 * caller-save.c (save_call_clobbered_regs): If BB ends with
13937 a DEBUG_INSN, move any notes in between last real insn and the last
13938 DEBUG_INSN after the last DEBUG_INSN.
13940 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13942 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13943 Fix return type. Fix argument type. Explain meaning of return value.
13945 2010-02-16 Richard Guenther <rguenther@suse.de>
13947 PR tree-optimization/41043
13948 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
13949 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13951 (vrp_visit_phi_node): ... but only for loop PHI nodes.
13953 2010-02-16 Ira Rosen <irar@il.ibm.com>
13955 PR tree-optimization/43074
13956 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13957 * tree-vect-loop.c (vect_analyze_loop_operations): Add
13958 vectorizable cycles in hybrid SLP check.
13959 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13961 2010-02-16 Richard Guenther <rguenther@suse.de>
13963 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13964 (true_dependence): If memrefs_conflict_p computes must-alias
13965 trust it. Move TBAA check after offset-based disambiguation.
13966 (canon_true_dependence): Likewise.
13968 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
13970 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13971 * doc/invoke.texi: Document it.
13972 * var-tracking.c: Include toplev.h and params.h.
13973 (vt_find_locations): Return bool indicating success. Compute
13974 hash sizes unconditionally. Check new parameter, report.
13975 (variable_tracking_main_1): Check vt_find_locations results and
13976 retry. Renamed from...
13977 (variable_tracking_main): ... this. New wrapper to preserve
13978 flag_var_tracking_assignments.
13979 * Makefile.in (var-tracking.o): Adjust dependencies.
13981 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
13982 Jakub Jelinek <jakub@redhat.com>
13985 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13986 if weak_import attribute is present.
13987 * config/darwin.c (machopic_select_section): Likewise.
13989 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
13991 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13992 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13993 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13994 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13996 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13999 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14000 Fix argument types.
14002 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14003 Rewrite text to refer to the names.
14005 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14007 * config/i386/i386-builtin-types.def
14008 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14009 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14010 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14011 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14012 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14013 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14014 IX86_BUILTIN_VPERMIL2PS256.
14015 (MULTI_ARG_4_DF2_DI_I): Defined.
14016 (MULTI_ARG_4_DF2_DI_I1): Defined.
14017 (MULTI_ARG_4_SF2_SI_I): Defined.
14018 (MULTI_ARG_4_SF2_SI_I1): Defined.
14019 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14020 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14021 __builtin_ia32_vpermil2ps256.
14022 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14023 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14024 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14025 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14026 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14027 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14028 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14029 CODE_FOR_xop_vpermil2v8sf3.
14030 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14031 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14032 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14033 (_mm256_permute2_pd): New.
14034 (_mm_permute2_ps): New.
14035 (_mm256_permute2_ps): New.
14037 2010-02-15 Nick Clifton <nickc@redhat.com>
14039 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14040 boolean parameters. Use emit_jump_insn when emitting a pop
14041 instruction containing a return insn.
14042 (push): Use 'true' rather than '1' as second parameter to F.
14043 (h8300_expand_prologue): Likewise.
14044 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14045 (h8300_expand_epilogue): Likewise.
14047 2010-02-15 Richard Guenther <rguenther@suse.de>
14049 PR middle-end/43068
14050 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14053 2010-02-15 Nick Clifton <nickc@redhat.com>
14055 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14058 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14060 * intl.c (fake_ngettext): New function.
14061 * intl.h (fake_ngettext): Declare.
14062 (ngettext): Define macro.
14063 * collect2.c (notice_translated): New function.
14064 (main): Use notice_translated and ngettext.
14065 * collect2.h (notice_translated): Declare.
14067 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14069 * reorg.c (delete_computation): Comment fixes.
14070 * caller-save.c (setup_save_areas): Idem.
14071 * sel-sched-dump.c (dump_lv_set): Idem.
14074 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14076 * config/s390/s390.c (s390_sched_init): New function.
14077 (TARGET_SCHED_INIT): Target hook defined.
14079 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14080 Jack Howarth <howarth@bromo.med.uc.edu>
14081 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14084 Partial revert of unintended change in fix for PR41605.
14085 * config/darwin.h: Fix typo.
14086 * config/darwin9.h: Same.
14088 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14090 * c-pch.c (pch_init): Clear v.
14092 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14094 PR middle-end/42930
14095 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14096 graphite_can_represent_init for MULT_EXPR.
14098 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14100 PR middle-end/42914
14101 PR middle-end/42530
14102 * graphite-sese-to-poly.c (remove_phi): New.
14103 (translate_scalar_reduction_to_array): Call remove_phi.
14105 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14107 PR middle-end/42771
14108 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14109 * graphite-clast-to-gimple.h (gloog): Update declaration.
14110 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14111 * graphite-poly.h (struct poly_bb): Add missing comments.
14112 (struct scop): Add poly_scop_p field.
14113 (POLY_SCOP_P): New.
14114 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14115 * graphite.c (graphite_transform_loops): Build the polyhedral
14116 representation for each scop before code generation.
14117 * sese.c (rename_variables_in_operand): Removed.
14118 (rename_variables_in_expr): Return the renamed expression.
14119 (rename_sese_parameters): New.
14120 * sese.h (rename_sese_parameters): Declared.
14122 2010-02-11 Richard Guenther <rguenther@suse.de>
14124 PR tree-optimization/42998
14125 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14126 POINTER_PLUS_EXPR properly.
14128 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14129 Changpeng Fang <changpeng.fang@amd.com>
14131 PR middle-end/40886
14132 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14133 the cost of an IV candidate when the IV is used in a test against zero.
14135 * gcc.dg/tree-ssa/ivopts-3.c: New.
14137 2010-02-11 Richard Guenther <rguenther@suse.de>
14140 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14141 pointer-vs-decl case by swapping refs. Handle some cases
14142 of pointer-vs-decl disambiguations more conservatively.
14143 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14144 to false after expanding.
14146 2010-02-11 Richard Guenther <rguenther@suse.de>
14149 * gcc.c (process_command): Handle LTO file@offset case more
14152 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14154 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14155 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14157 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14159 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14160 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14161 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14162 Optimize eq/ne comparisons when both arguments are known to be
14164 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14165 Don't mask operands unnecessarily if they are known to be already
14168 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14170 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14173 2010-02-10 Richard Guenther <rguenther@suse.de>
14175 PR tree-optimization/43017
14176 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14177 for wrapping signed arithmetic.
14179 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14182 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14183 if no debug info should be emitted for it.
14185 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14187 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14188 note when flag_exceptions is set.
14190 2010-02-10 Duncan Sands <baldrick@free.fr>
14192 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14194 2010-02-10 Richard Guenther <rguenther@suse.de>
14197 * tree.c (get_unwidened): Handle constants.
14198 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14200 2010-02-10 Martin Jambor <mjambor@suse.cz>
14203 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14204 check for variable argument counts independently.
14206 2010-02-10 Christian Bruel <christian.bruel@st.com>
14209 * config/sh/sh.c (find_barrier): Increase length for non delayed
14210 conditional branches.
14212 2010-02-10 Christian Bruel <christian.bruel@st.com>
14214 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14216 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14218 * builtins.c (set_builtin_user_assembler_name): Also handle
14219 ffs if int is smaller than word.
14221 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14223 PR middle-end/42973
14224 * ira-conflicts.c (get_dup): Remove.
14225 (process_reg_shuffles): Add new parameter. Use it as an
14226 additional guard for copy generation.
14227 (add_insn_allocno_copies): Rewrite.
14229 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14231 * common.opt (fsched2-use-traces): Preserved for backward
14233 * doc/invoke.texi: Remove the documentation about option
14234 -fsched2-use-traces.
14235 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14236 flag_sched2_use_traces.
14237 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14238 the backward compatibility flag section.
14240 2010-02-09 Richard Guenther <rguenther@suse.de>
14242 PR tree-optimization/43008
14243 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14244 make HEAP variables initialized from global memory if they
14245 are not known builtin functions.
14246 (find_func_aliases): Adjust.
14248 2010-02-09 Richard Guenther <rguenther@suse.de>
14250 PR tree-optimization/43000
14251 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14252 arithmetic manually.
14254 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14256 PR tree-optimization/42931
14257 * tree-loop-linear.c (try_interchange_loops): Don't call
14258 double_int_mul if estimated_loop_iterations failed.
14260 2010-02-08 Martin Jambor <mjambor@suse.cz>
14262 PR middle-end/42898
14263 * tree-sra.c (build_accesses_from_assign): Do not mark in
14264 should_scalarize_away_bitmap if stmt has volatile ops.
14265 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14268 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14270 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14272 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14274 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14275 before the pattern.
14277 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14279 PR middle-end/42946
14280 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14282 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14284 PR middle-end/42988
14285 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14286 to unknown_dependence.
14287 (graphite_legal_transform_dr): Handle the unknown_dependence.
14288 (graphite_carried_dependence_level_k): Same.
14290 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14292 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14294 2010-02-07 Richard Guenther <rguenther@suse.de>
14296 PR middle-end/42991
14297 * expr.c (get_inner_reference): Always initialize *pbitsize.
14299 2010-02-07 Richard Guenther <rguenther@suse.de>
14301 PR middle-end/42956
14302 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14303 new ARRAY_REFs on variable size element or minimal index arrays.
14305 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14306 gimple_fold_indirect_ref.
14308 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14311 * arm.c (arm_override_options): Just return if the user has specified
14312 an invalid fpu name.
14314 2010-02-03 Jason Merrill <jason@redhat.com>
14317 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14318 i386_pe_maybe_record_exported_symbol.
14320 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14323 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14324 (pa_delegitimize_address): New function.
14326 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14328 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14329 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14331 2010-02-05 Richard Guenther <rguenther@suse.de>
14334 * lto-streamer-in.c (get_resolution): Deal with references
14335 to undefined functions.
14337 2010-02-05 Richard Guenther <rguenther@suse.de>
14339 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14340 (fold_const_aggregate_ref): Likewise.
14341 (ccp_fold_stmt): Substitute loads.
14342 (maybe_fold_reference): Verify types before substituting.
14344 (fold_gimple_assign): Unshare properly.
14345 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14347 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14349 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14350 for rs6000_gen_cell_microcode.
14352 2010-02-04 Richard Guenther <rguenther@suse.de>
14354 PR rtl-optimization/42952
14355 * dse.c (const_or_frame_p): Remove MEM handling.
14357 2010-02-04 Nick Clifton <nickc@redhat.com>
14359 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14360 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14361 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14362 (mn10300_asm_output_mi_thunk): New function.
14363 (mn10300_can_output_mu_thunk): New function.
14364 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14365 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14366 (FUNCTION_ARG): Delete incorrect comment.
14368 2010-02-03 Jason Merrill <jason@redhat.com>
14371 * fold-const.c (operand_equal_p): Handle erroneous types.
14373 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14375 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14377 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14379 PR rtl-optimization/42941
14380 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14383 2010-02-03 Jason Merrill <jason@redhat.com>
14386 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14388 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14391 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14392 (cselib_reset_table): Renamed from...
14393 (cselib_reset_table_with_next_value): ... this.
14394 (cselib_get_next_uid): Renamed from...
14395 (cselib_get_next_unknown_value): ... this.
14396 * cselib.c (next_uid): Renamed from...
14397 (next_unknown_value): ... this.
14398 (cselib_clear_table): Adjust.
14399 (cselib_reset_table): Adjust. Renamed from...
14400 (cselib_reset_table_with_next_value): ... this.
14401 (cselib_get_next_uid): Adjust. Renamed from...
14402 (cselib_get_next_unknown_value): ... this.
14403 (get_value_hash): Use hash.
14404 (cselib_hash_rtx): Likewise.
14405 (new_cselib_val): Adjust. Set and dump uid.
14406 (cselib_lookup_mem): Pass next_uid as hash.
14407 (cselib_subst_to_values): Likewise.
14408 (cselib_log_lookup): Dump uid.
14409 (cselib_lookup): Pass next_uid as hash. Adjust.
14410 (cselib_process_insn): Adjust.
14411 (cselib_init): Initialize next_uid.
14412 (cselib_finish): Adjust.
14413 (dump_cselib_table): Likewise.
14414 * dse.c (canon_address): Dump value uid.
14415 * print-rtl.c (print_rtx): Print value uid.
14416 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14418 (dv_uid): New function, sort of renamed from...
14419 (dv_htab_hash): ... this, reimplemented in terms of it and...
14420 (dv_uid2hash): ... this. New.
14421 (variable_htab_eq): Drop excess assertions.
14422 (tie_break_pointers): Removed.
14423 (canon_value_cmp): Compare uids.
14424 (variable_post_merge_New_vals): Print uids.
14425 (vt_add_function_parameters): Adjust.
14426 (vt_initialize): Reset table. Adjust.
14428 2010-02-03 Richard Guenther <rguenther@suse.de>
14430 PR tree-optimization/42944
14431 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14432 (call_may_clobber_ref_p_1): Likewise. Properly handle
14433 malloc and calloc clobbering errno.
14435 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14437 * doc/invoke.texi: Fix name of sched1 dump.
14439 * opts.c (decode_options): Set flag_tree_switch_conversion
14440 only conditionally on optimize >= 2.
14442 * gcse.c: Assorted comment fixes in pass description.
14444 2010-02-03 Anthony Green <green@moxielogic.com>
14446 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14447 nop padding in order to maintain alignment of storage location of
14448 target function address.
14449 (moxie_trampoline_init): Store target function address at newly
14451 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14453 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14455 2010-02-03 Richard Guenther <rguenther@suse.de>
14457 PR middle-end/42927
14458 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14460 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14462 * config.gcc: Reenable check for obsolete targets.
14463 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14464 mips-sgi-irix6.[0-4]*.
14466 2010-02-02 Nick Clifton <nickc@redhat.com>
14468 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14469 constant size of 4 as being the same as 0.
14470 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14471 can take values in the range 0..4.
14473 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14476 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14477 as _darwin10_Unwind_FindEnclosingFunction().
14478 * libgcc-libsystem.ver: New.
14480 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14483 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14484 implicitly set registers.
14486 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14488 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14489 (arm_override_options): Allow automatic selection of the thread
14490 pointer register if thumb2.
14491 (legitimize_pic_address): Improve code sequences for Thumb2.
14492 (arm_call_tls_get_addr): Likewise.
14493 (legitimize_tls_address): Likewise.
14494 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14495 (pic_load_addr_32bit): ... this. New named pattern.
14496 * thumb2.md (pic_load_addr_thumb2): Delete.
14497 (pic_load_dot_plus_four): Delete.
14498 (tls_load_dot_plus_four): New named pattern.
14500 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14503 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14504 Document fix for TLS bug.
14506 2010-01-31 Richard Guenther <rguenther@suse.de>
14508 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14509 conservatively correct.
14511 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14515 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14517 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14519 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14521 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14523 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14525 * config.gcc: Adjust order of makefile fragments for mingw targets.
14527 2010-01-31 Richard Guenther <rguenther@suse.de>
14529 PR middle-end/42898
14530 * gimplify.c (gimplify_init_constructor): For volatile LHS
14531 initialize a temporary.
14533 2010-01-31 Matthias Klose <doko@ubuntu.com>
14535 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14537 * configure: Regenerate.
14539 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14541 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14542 the same alias set and their sizes different constantness.
14543 (aliasing_component_refs_p): Revert 2009-10-24 change.
14545 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14547 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14550 2010-01-29 Richard Guenther <rguenther@suse.de>
14552 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14553 Assert we successfully updated the call.
14555 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14557 PR rtl-optimization/42889
14558 * df.h (df_set_bb_dirty_nonlr): New prototype.
14559 * df-core.c (df_set_bb_dirty_nonlr): New function.
14560 * df-scan.c (df_insn_rescan): Call it instead of
14561 df_set_bb_dirty for DEBUG_INSNs.
14563 2010-01-29 Richard Guenther <rguenther@suse.de>
14565 PR middle-end/37448
14566 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14567 quadratic behavior in most cases.
14569 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14572 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14573 in the call to gen_x86_movsicc_0_m1.
14575 2010-01-28 Richard Guenther <rguenther@suse.de>
14577 PR tree-optimization/42871
14578 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14580 2010-01-28 Richard Guenther <rguenther@suse.de>
14582 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14583 into call arguments.
14585 2010-01-28 Richard Guenther <rguenther@suse.de>
14587 PR middle-end/42883
14588 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14589 the forwarder if the destination is an EH landing pad.
14591 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14593 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14594 block list passed to gimple_duplicate_sese_tail.
14595 (parallelize_loops): Avoid parallelization when the function
14596 has_nonlocal_label.
14597 Avoid parallelization when the preheader is IRREDUCIBLE.
14598 Try to optimize when estimated_loop_iterations_int is unresolved.
14599 Add the loop's location to the dump file.
14600 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14601 (gimple_duplicate_sese_tail): Remove the check for the latch.
14602 Redirect nexits to the exit block.
14603 Remove handling of the incoming edges to the latch.
14604 Redirect the backedge from the copied latch to the exit bb.
14606 2010-01-28 Michael Matz <matz@suse.de>
14609 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14610 Wrap force_reg into a sequence, emit it before user.
14612 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14614 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14616 (arm_legacy_rev): Likewise.
14617 (thumb_legacy_rev): Likewise.
14619 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14621 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14622 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14623 on MEM's address failed, try avoid_constant_pool_reference and
14624 recurse if it returned something different.
14625 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14626 address, try avoid_constant_pool_reference and recurse if it
14627 returned something different.
14628 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14629 address and avoid_constant_pool_reference returned something
14630 different, don't set have_address.
14632 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14635 * var-tracking.c (val_store): Add modified argument, obey it.
14637 (count_uses): Move down logging of main.
14638 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14639 don't need resolution.
14640 (emit_notes_in_bb): Likewise.
14642 2010-01-27 Richard Guenther <rguenther@suse.de>
14644 PR middle-end/42878
14645 * tree-inline.c (remap_decl): Delay remapping of SSA name
14646 default definitions until we need them.
14648 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14650 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14651 (rs6000_delegitimize_address): New function.
14653 * config/s390/s390.c (s390_delegitimize_address): Call
14654 delegitimize_mem_from_attrs.
14656 PR middle-end/42874
14657 * tree-inline.c (cannot_copy_type_1): Removed.
14658 (copy_forbidden): Don't forbid copying of functions containing
14659 records/unions with variable length fields.
14661 2010-01-27 Christian Bruel <christian.bruel@st.com>
14665 * config/sh/sh.c (find_barrier): Increase length for non delayed
14666 conditional branches.
14668 2010-01-27 Matthias Klose <doko@ubuntu.com>
14670 * configure.ac (gnu-unique-object): Fix ldd version check.
14671 * configure: Regenerate.
14673 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14675 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14677 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14678 Test for HAVE_GNU_AS value.
14680 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14682 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14683 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14684 INT64_TYPE): Define.
14685 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14686 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14687 INT_LEAST64_TYPE): Define.
14688 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14689 UINT_LEAST64_TYPE): Define.
14690 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14691 INT_FAST64_TYPE): Define.
14692 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14693 UINT_FAST64_TYPE): Define.
14694 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14695 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14696 (SIG_ATOMIC_TYPE): Define.
14698 2010-01-26 Richard Guenther <rguenther@suse.de>
14700 * df-scan.c (df_scan_set_bb_info): Remove assert.
14701 (df_insn_rescan_debug_internal): Merge asserts.
14702 (df_install_ref): Likewise.
14703 (df_mark_reg): Use bitmap_set_range.
14704 (df_hard_reg_used_p): Remove assert.
14705 (df_hard_reg_used_count): Likewise.
14707 2010-01-26 Richard Guenther <rguenther@suse.de>
14709 PR rtl-optimization/42685
14710 * web.c (web_main): Ignore DEBUG_INSNs.
14712 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14714 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14716 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14717 Fix types of fndecl and arglist parameters.
14719 2010-01-26 Richard Guenther <rguenther@suse.de>
14721 PR middle-end/42806
14722 * tree-eh.c (unsplit_eh): Skip debug insns.
14724 2010-01-26 Richard Guenther <rguenther@suse.de>
14726 PR tree-optimization/42250
14727 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14729 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14732 * omp-low.c (expand_omp_sections): Only use single_pred if
14733 l2_bb is single_pred_p.
14735 2010-01-25 Christian Bruel <christian.bruel@st.com>
14738 * config/sh/sh.c (find_barrier): Increase length for non delayed
14739 conditional branches.
14740 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14742 2010-01-24 David S. Miller <davem@davemloft.net>
14744 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14745 define if not using GAS.
14746 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14747 Likewise. Delete SECTION_MERGE code, which is only applicable
14750 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14753 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14754 mangling of va_list in system headers.
14756 2010-01-23 Toon Moene <toon@moene.org>
14758 * tree-predcom.c (combine_chains): Return NULL, not false.
14760 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14762 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14763 initialization of variable res to agree with return type.
14765 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14767 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14768 * tree-sra.c: Add include of expr.h.
14770 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14772 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14773 insert the debug stmt on the single non-EH edge from the stmt.
14775 2010-01-22 Richard Henderson <rth@redhat.com>
14778 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14779 the RHS until after generate_subtree_copies has insertted its
14780 code before the current statement.
14782 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14784 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14786 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14788 2010-01-21 Martin Jambor <mjambor@suse.cz>
14790 PR tree-optimization/42585
14791 * tree-sra.c (struct access): New field grp_total_scalarization.
14792 (dump_access): Dump the new field.
14793 (should_scalarize_away_bitmap): New variable.
14794 (cannot_scalarize_away_bitmap): Likewise.
14795 (sra_initialize): Allocate new bitmaps.
14796 (sra_deinitialize): Free new bitmaps.
14797 (create_access_1): New function.
14798 (create_access): Parts moved to create_access_1.
14799 (type_consists_of_records_p): New function.
14800 (completely_scalarize_record): Likewise.
14801 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14802 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14803 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14805 (analyze_all_variable_accesses): Completely scalarize small eligible
14808 2010-01-21 Martin Jambor <mjambor@suse.cz>
14810 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14812 2010-01-21 Andrew Haley <aph@redhat.com>
14814 * gcc.c (process_command): Move lang_specific_driver before
14815 setting cc_libexec_prefix.
14817 2010-01-21 Richard Guenther <rguenther@suse.de>
14819 PR middle-end/19988
14820 * fold-const.c (negate_expr_p): Pretend only negative
14821 real constants are easily negatable.
14823 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14824 Jason Merrill <jason@redhat.com>
14826 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14827 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14828 * calls.c (initialize argument_information): Handle it.
14829 * c-common.c (handle_transparent_union_attribute): Use new name.
14830 * c-decl.c (finish_struct): Ditto.
14831 * c-typeck.c (type_lists_compatible_p): Ditto.
14832 (convert_for_assignment): Use new name and also handle record.
14833 * function.c (aggregate_value_p): Handle it.
14834 (pass_by_reference): Ditto.
14835 (assign_parm_data_types): Ditto.
14836 * print-tree.c (print_node): Ditto.
14837 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14838 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14839 * tree.c (first_field): New fn.
14841 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14844 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14845 even when linking statically, for now.
14847 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14850 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14851 without a cselib val.
14852 (count_uses): Accept MO_VAL_SET with no val on stores.
14853 (add_stores): Likewise.
14855 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14857 * var-tracking.c (check_value_val): Add a compile time assertion.
14858 (dv_is_decl_p): Simplify.
14859 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14860 gcc_assert if ENABLE_CHECKING.
14862 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14865 * var-tracking.c: Include tree-flow.h.
14866 (mem_dies_at_call): New.
14867 (dataflow_set_preserve_mem_locs): Use it.
14868 (dataflow_set_remove_mem_locs): Likewise.
14869 (dump_var): Renamed from dump_variable. Adjust all callers.
14870 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14871 * Makefile.in (var-tracking.o): Adjust deps.
14873 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14875 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14877 2010-01-20 Richard Guenther <rguenther@suse.de>
14879 PR tree-optimization/42717
14880 * tree-ssa-dce.c (get_live_post_dom): Remove.
14881 (forward_edge_to_pdom): Take an arbitrary edge to copy
14882 degenerate PHI args from.
14883 (remove_dead_stmt): Use the first post-dominator even if it
14884 does not contain live statements as redirection destination.
14886 2010-01-20 Richard Guenther <rguenther@suse.de>
14888 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14890 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14892 * sel-sched.c (create_speculation_check): Remove set but not used
14894 (try_transformation_cache): Remove set but not used variable ds.
14895 (calculate_privileged_insns): Remove set but not used variables
14896 cur_insn and min_spec_insn.
14897 (find_best_expr): Remove set but not used variable avail_n.
14898 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14900 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14902 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14903 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14904 new_scop_exit_edge.
14906 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14909 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14910 cpu types. Add support for *-sse3 cpu types.
14911 (x86_64-*-*): Ditto.
14913 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14915 PR middle-end/42803
14916 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14917 argument, call initializer_constant_valid_p_1 instead of
14918 initializer_constant_valid_p, pass CACHE to it, return NULL
14919 immediately if first call returns NULL.
14920 (initializer_constant_valid_p_1): New function.
14921 (initializer_constant_valid_p): Use it.
14923 2010-01-20 Thomas Quinot <quinot@adacore.com>
14925 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14927 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14929 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14930 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14931 (loc_list_from_tree): Don't handle unsigned division. Handle
14932 signed modulo using DW_OP_{over,over,div,mul,minus}.
14933 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14934 modulo instead of signed.
14936 2010-01-20 DJ Delorie <dj@redhat.com>
14938 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14940 (h8300_emit_stack_adjustment): Propogate it.
14942 (h8300_expand_prologue): Likewise.
14943 (h8300_expand_epilogue): Likewise.
14945 2010-01-19 Michael Matz <matz@suse.de>
14947 PR tree-optimization/41783
14948 * tree-data-ref.c (toplevel): Include flags.h.
14949 (dump_data_dependence_relation): Also dump the inputs if the
14950 result will be unknown.
14951 (split_constant_offset_1): Look through some conversions.
14952 * tree-predcom.c (determine_roots_comp): Restart a new chain if
14953 the offset from last element is too large.
14954 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14955 (reassociate_to_the_same_stmt): Handle vector registers.
14956 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14957 (e.g. conversions).
14958 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14959 wide_prolog_niters argument, emit widening instructions.
14960 (vect_do_peeling_for_alignment): Adjust caller, use widened
14961 variant of the iteration cound.
14962 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14964 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14967 * config/arm/neon-testgen.m (emit_automatics): New parameter
14968 features. Adjust for Fixed_return_reg feature.
14969 (test_intrinsic): Call emit_automatics with new feature.
14970 * config/arm/neon.ml: Update copyright years.
14971 (features): New Fixed_return_reg feature.
14972 (ops): Update feature for Vget_low.
14974 2010-01-19 Jakub Jelinek <jakub@redhat.com>
14976 PR tree-optimization/42719
14977 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14981 * fwprop.c (all_uses_available_at): Return false if def_set dest
14982 is a REG that is used in def_insn.
14984 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
14986 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14988 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14989 Add argument names.
14991 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14993 * target.h (struct gcc_target) <secondary_reload>: Change type
14994 of last argument to secondary_reload_info *.
14996 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
14999 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15000 memory references with unaligned offsets. Remove CQImode handling.
15001 (unaligned_memory_operand): Return 1 for memory references with
15002 unaligned offsets. Remove CQImode handling.
15004 2010-01-18 Richard Guenther <rguenther@suse.de>
15006 PR middle-end/39954
15007 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15010 2010-01-18 Richard Guenther <rguenther@suse.de>
15012 PR tree-optimization/42781
15013 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15014 restrict processing only if the original variable was artificial.
15016 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15018 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15019 find number of popped argument bytes.
15021 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15022 Fix the text that describes the return value for invalid insns.
15024 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15026 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15027 Clarify what 'cost of the -dependence' is. Fix quoting.
15029 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15030 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15032 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15034 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15035 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15037 2010-01-17 Richard Guenther <rguenther@suse.de>
15039 PR middle-end/42248
15040 * function.c (split_complex_args): Take a VEC to modify.
15041 (assign_parms_augmented_arg_list): Build a VEC instead of
15042 a chain of PARM_DECLs.
15043 (assign_parms_unsplit_complex): Take a VEC of arguments.
15044 Do not fixup unmodified parms.
15045 (assign_parms): Deal with the VEC.
15046 (gimplify_parameters): Likewise.
15048 2010-01-17 Richard Guenther <rguenther@suse.de>
15050 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15051 node existence check.
15052 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15053 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15054 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15055 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15056 (gimple_execute_on_growing_pred): Likewise.
15058 2010-01-17 Richard Guenther <rguenther@suse.de>
15060 PR tree-optimization/42773
15061 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15062 (compute_antic_aux): Likewise.
15063 (compute_partial_antic_aux): Likewise.
15065 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15068 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15071 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15073 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15076 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15077 Fix markup for strict argument.
15079 (TARGET_SCHED_REORDER2): Fix argument types.
15081 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15082 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15084 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15085 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15087 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15090 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15091 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15092 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15093 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15094 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15096 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15098 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15100 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15101 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15103 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15105 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15108 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15110 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15111 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15113 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15115 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15117 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15118 referring to it. Fix language.
15120 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15122 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15124 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15126 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15128 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15129 '@var{stream}. Remove stray 'and'.
15131 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15133 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15135 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15137 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15138 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15140 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15141 Fix description of return value.
15142 Rename argument "sz" to "len."
15144 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15145 Clarify meaning of 'true' return value.
15147 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15149 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15150 rep_mode versus mode_rep.
15152 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15154 (TARGET_BUILTIN_DECL): Fix name.
15156 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15158 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15160 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15162 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15164 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15166 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15169 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15170 Rename argument tm_fn to md_fn.
15172 (TARGET_OPTION_PRINT): Fix argument list.
15174 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15177 * config/i386/i386.c (ix86_fixup_binary_operands):
15178 Revert FMA4 fixup of operands.
15180 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15183 * Makefile.in (write_entries_to_file, install-plugin):
15184 Use \012 instead of \n with tr.
15186 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15188 * configure.ac (HAVE_AS_REF): New C macro.
15189 * configure: Regenerate.
15190 * config.in: Likewise.
15191 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15193 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15196 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15198 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15200 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15202 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15204 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15206 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15208 (TARGET_BINDS_LOCAL_P): Fix argument type.
15210 (TARGET_ASM_FILE_END): Use prototype.
15212 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15214 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15216 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15218 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15220 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15221 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15223 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15224 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15226 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15227 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15228 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15229 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15231 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15233 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15235 (TARGET_INIT_BUILTINS): Use prototype.
15237 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15238 Put 'const char *' in braces. Fix parameter types.
15239 (TARGET_INVALID_CONVERSION): Fix parameter types.
15240 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15241 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15243 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15246 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15248 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15250 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15252 * doc/tm.texi (TARGET_HELP): Fix return type.
15254 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15255 in braces. Fix argument types.
15257 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15259 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15261 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15263 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15264 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15266 (TARGET_MANGLE_TYPE): Fix argument types.
15268 (TARGET_IRA_COVER_CLASSES): Use prototype.
15270 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15272 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15274 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15276 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15278 (TARGET_CALLEE_COPIES): Fix argument types.
15280 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15282 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15284 (TARGET_FUNCTION_VALUE): Fix argument types.
15286 (TARGET_RETURN_IN_MSB): Fix argument type.
15288 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15290 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15292 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15294 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15295 agree with return type.
15297 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15299 2010-01-15 Jing Yu <jingyu@google.com>
15301 PR rtl-optimization/42691
15302 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15303 a pseudo to a constant and are merged, and adjust comments.
15305 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15307 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15309 2010-01-15 Richard Guenther <rguenther@suse.de>
15311 PR middle-end/42739
15312 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15313 labels of computed or non-local gotos to the destination.
15314 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15315 landing pad label is the first label.
15317 2010-01-15 Richard Guenther <rguenther@suse.de>
15319 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15321 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15324 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15325 to allow generation of the xssqrtdp instruction on power7.
15326 (sqrtdf2_fpr): Ditto.
15328 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15330 PR middle-end/42674
15331 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15332 functions with noreturn attribute.
15335 * varasm.c (declare_weak): Add weak attribute to decl if it
15336 doesn't have one already.
15337 (assemble_external): Only add decls to weak_decls if they also
15338 have weak attribute.
15340 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15342 * var-tracking.c (var_reg_delete): Don't delete the association
15343 between REGs and values or one-part variables if the register
15346 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15349 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15350 because its first operand is a non-localized variable.
15352 2010-01-14 Martin Jambor <mjambor@suse.cz>
15354 PR tree-optimization/42706
15355 * tree-sra.c (encountered_recursive_call): New variable.
15356 (encountered_unchangable_recursive_call): Likewise.
15357 (sra_initialize): Initialize both new variables.
15358 (callsite_has_enough_arguments_p): New function.
15359 (scan_function): Call decl and flags check only for IPA-SRA, check
15360 whether there is a recursive call and whether it has enough arguments.
15361 (all_callers_have_enough_arguments_p): New function.
15362 (convert_callers): Look for recursive calls only when
15363 encountered_recursive_call is set.
15364 (ipa_early_sra): Bail out either if
15365 !all_callers_have_enough_arguments_p or
15366 encountered_unchangable_recursive_call.
15368 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15370 * sel-sched.c: Add 2010 to copyright years.
15371 * sel-sched-ir.c: Likewise.
15372 * sel-sched-ir.h: Likewise.
15374 2010-01-14 Martin Jambor <mjambor@suse.cz>
15376 PR tree-optimization/42714
15377 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15378 constructors specially.
15380 2010-01-14 Andi Kleen <ak@linux.intel.com>
15382 * config/i386/drivers-i386.c (detect_caches_intel):
15383 Add l2sizekb parameter and fill in.
15384 (host_detect_local_cpu): Add l2sizekb, fill in.
15385 Add Atom small cache heuristic.
15387 2010-01-14 Andi Kleen <ak@linux.intel.com>
15389 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15390 Add level3 parameter and fill in.
15391 (detect_caches_intel): Handle level3 cache.
15393 2010-01-14 Andi Kleen <ak@linux.intel.com>
15395 * config/i386/drivers-i386.c (host_detect_local_cpu):
15396 Fix core duo detection.
15398 2010-01-14 Andi Kleen <ak@linux.intel.com>
15400 * config/i386/drivers-i386.c (host_detect_local_cpu):
15401 Fix Atom detection.
15403 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15405 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15406 (rs6000_variable_issue_1): this. Use...
15407 (rs6000_variable_issue): here. Reimplement. Print debug info.
15409 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15411 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15412 sel_restore_notes. Update all callers. Call reemit_notes
15415 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15417 PR rtl-optimization/42246
15418 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15421 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15423 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15424 all successors is the same as number of successors in current region.
15426 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15428 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15429 to rename is not separable. Otherwise check that its LHS is not NULL.
15431 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15433 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15435 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15437 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15438 available registers when failed to discover LHS register class.
15439 Fix indentation. Update comment.
15441 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15442 Alexander Monakov <amonakov@ispras.ru>
15444 PR rtl-optimization/42389
15445 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15447 (advance_state_on_fence): Likewise.
15448 (sel_target_adjust_priority): Print debug output only when
15449 sched_verbose >= 4, not 2.
15450 (get_expr_cost): Do not issue all unique insns on the next cycle.
15451 (fill_insns): Initialize can_issue_more from the value saved
15453 * sel-sched-ir.c (flist_add): New parameter issue_more.
15454 Init FENCE_ISSUE_MORE with it.
15455 (merge_fences): Likewise.
15456 (init_fences): Update call to flist_add.
15457 (add_to_fences, add_clean_fence_to_fences)
15458 (add_dirty_fence_to_fences): Likewise.
15459 (move_fence_to_fences): Update call to merge_fences.
15460 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15462 * sel-sched-ir.h (struct _fence): New field issue_more.
15463 (FENCE_ISSUE_MORE): New accessor macro.
15465 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15467 PR rtl-optimization/42388
15468 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15469 that have no predecessors nor successors. Do not call move_bb_info
15470 for empty blocks outside of current region.
15472 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15474 PR rtl-optimization/42294
15475 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15476 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15477 originators' originators.
15479 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15481 PR rtl-optimization/39453
15482 PR rtl-optimization/42246
15483 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15485 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15487 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15488 Alexander Monakov <amonakov@ispras.ru>
15490 PR middle-end/42245
15491 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15492 (maybe_tidy_empty_bb): ... here. Make static. Add new
15493 argument. Update all callers.
15494 (tidy_control_flow): ... and here. Recompute topological order
15495 of basic blocks in region if necessary.
15496 (sel_redirect_edge_and_branch): Change return type. Return true
15497 if topological order might have been invalidated.
15498 (purge_empty_blocks): Export and move from...
15499 * sel-sched.c (purge_empty_blocks): ... here.
15500 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15501 (maybe_tidy_empty_bb): Delete prototype.
15502 (purge_empty_blocks): Declare.
15504 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15506 PR rtl-optimization/42249
15507 * sel-sched.c (try_replace_dest_reg): When chosen register
15508 and original register is the same, do not bail out early, but
15509 still check all original insns for validity of replacing destination
15510 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15513 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15516 Port from no-undefined-overflow branch:
15517 2009-03-09 Richard Guenther <rguenther@suse.de>
15519 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15521 2010-01-14 Richard Guenther <rguenther@suse.de>
15524 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15526 2010-01-14 Ira Rosen <irar@il.ibm.com>
15528 PR tree-optimization/42709
15529 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15530 as scalar type in creation of constant vector operand.
15532 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15535 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15536 (check-parallel-%): Match `testsuite' directory component only
15539 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15541 PR translation/39521
15542 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15545 2010-01-13 Richard Guenther <rguenther@suse.de>
15547 PR tree-optimization/42730
15548 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15551 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15554 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15555 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15558 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15560 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15561 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15562 ___umulsi3_highpart.
15564 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15565 rather than schedule_insns if the pass is enabled.
15567 2010-01-13 Martin Jambor <mjambor@suse.cz>
15569 PR tree-optimization/42704
15570 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15573 2010-01-13 Martin Jambor <mjambor@suse.cz>
15575 PR tree-optimization/42703
15576 * tree-sra.c (analyze_access_subtree): Check that we can build a
15577 reference to the original data within the aggregate.
15579 2010-01-13 Richard Guenther <rguenther@suse.de>
15581 PR tree-optimization/42705
15582 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15584 2010-01-13 Richard Guenther <rguenther@suse.de>
15586 PR middle-end/42716
15587 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15589 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15592 * var-tracking.c (values_to_unmark): New variable.
15593 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15594 values_to_unmark vector. Moved body to...
15595 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15596 instead queue it into values_to_unmark vector.
15597 (vt_find_locations): Free values_to_unmark vector.
15599 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15601 * config/s390/s390.c (override_options): Set
15602 default of max-pending-list-length to 256
15604 2010-01-13 Richard Guenther <rguenther@suse.de>
15607 * tree-pass.h (PROP_gimple_lcx): New.
15608 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15609 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15610 before the final cleanup_eh.
15611 (dump_properties): Dump PROP_gimple_lcx.
15612 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15613 (tree_lower_complex_O0): Remove.
15614 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15615 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15616 tree_lower_complex, schedule TODO_update_ssa.
15617 * lto-streamer-out.c (output_function): Stream the functions
15619 * lto-streamer-in.c (input_function): Likewise.
15620 (lto_read_body): Do not override them here.
15622 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15625 * c-typeck.c (build_c_cast): Fold value cast to union type before
15626 wrapping it in a CONSTRUCTOR.
15628 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15630 PR rtl-optimization/42699
15631 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15634 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15636 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15637 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15638 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15639 SUBTARGET_WARN_UNUSED_SPEC): ... here
15640 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15642 2010-01-12 Julian Brown <julian@codesourcery.com>
15644 * config/arm/neon-schedgen.ml (Utils): Don't try to
15645 open missing module.
15646 (find_with_result): New.
15648 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15651 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15652 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15654 PR tree-optimization/42645
15655 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15656 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15657 decl_map, set processing_debug_stmt to -1 and return name without
15660 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15662 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15663 binutils version, and reword target configuration description.
15665 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15667 * config/avr/avr.h (LINKER_NAME): Remove.
15669 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15672 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15673 that support VSX, warn for -mno-altivec if vsx is not disabled,
15676 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15677 Shujing Zhao <pearly.zhao@oracle.com>
15679 PR translation/42469
15680 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15681 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15682 character between option name and help text.
15683 * c.opt (imultilib): Likewise.
15685 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15687 * lto-streamer-out.c (output_unreferenced_globals): Output static
15690 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15692 PR rtl-optimization/42621
15693 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15694 optimizing for size.
15695 (duplicate_computed_gotos): Remove now-redundant check.
15697 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15700 * configure.ac: Save and restore LDFLAGS and LIBS
15701 * configure: Regenerate.
15703 2010-01-10 Richard Guenther <rguenther@suse.de>
15705 PR middle-end/42667
15706 * builtins.c (fold_builtin_strlen): Add type argument and
15707 convert the resulting length to it.
15708 (fold_builtin_1): Adjust.
15710 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15712 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15713 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15715 (num_insns_constant_wide): Adjust for that change.
15717 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15720 * web.c (union_defs): Add used argument, to combine uses of
15721 uninitialized regs.
15722 (entry_register): Adjust type and tests of used argument.
15723 (web_main): Widen used for new use. Pass it to union_defs.
15724 * df.h (union_defs): Adjust prototype.
15726 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15729 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15730 uses in new incoming argument. Free body.
15731 (reset_debug_uses_in_loop): New.
15732 (analyze_insn_to_expand_var): Call the latter if the former found
15733 anything. Fix whitespace. Reject invalid dest overlaps before
15734 going through all insns in the loop.
15736 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15739 * haifa-sched.c (dying_use_p): Debug insns don't count.
15741 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15743 PR middle-end/42363
15744 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15745 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15746 (verify_gimple_call): Reject LHS in noreturn calls.
15748 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15752 * tree-vect-loop-manip.c (adjust_info): New type.
15753 (adjust_vec): New pointer to vector.
15754 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15755 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15756 (slpeel_update_phis_for_duplicate_loop): Use them.
15757 (slpeel_update_phi_nodes_for_guard1): Likewise.
15758 (slpeel_update_phi_nodes_for_guard2): Likewise.
15759 (slpeel_tree_peel_loop_to_edge): Likewise.
15760 (vect_update_ivs_after_vectorizer): Likewise.
15762 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15764 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15765 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15767 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15769 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15770 bogus uninitialized warning.
15772 2010-01-09 Richard Guenther <rguenther@suse.de>
15774 PR middle-end/42512
15775 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15776 the evolution is compatible with the initial condition.
15778 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15780 * gcc.c (process_command): Update copyright notice dates.
15781 * gcov.c (print_version): Likewise.
15782 * gcov-dump.c (print_version): Likewise.
15783 * mips-tfile.c (main): Likewise.
15784 * mips-tdump.c (main): Likewise.
15786 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15789 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15791 (rotlhi3_8): Delete.
15793 (rotlsi3_8): Delete.
15794 (rotlsi3_16): Delete.
15795 (rotlsi3_24): Delete.
15796 (rotl<mode>3): New.
15797 (*rotw<mode>3): New.
15798 (*rotb<mode>3): New.
15799 * config/avr/avr.c (avr_rotate_bytes): New function.
15800 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15802 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15805 * configure.ac: Modify -rdynamic check.
15806 * configure: Regenerate.
15808 2010-01-08 DJ Delorie <dj@redhat.com>
15810 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15811 register popping order.
15813 2010-01-08 Richard Guenther <rguenther@suse.de>
15816 * c.opt (fsigned-char): Also let LTO handle this option.
15817 (funsigned-char): Likewise.
15819 2010-01-07 Richard Guenther <rguenther@suse.de>
15821 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15822 (gimple_op): Likewise.
15823 (gimple_op_ptr): Likewise.
15824 (gimple_assign_set_lhs): Remove gcc_assert.
15825 (gimple_assign_set_rhs1): Likewise.
15826 (gimple_assign_set_rhs2): Likewise.
15827 (gimple_call_set_lhs): Likewise.
15828 (gimple_call_set_fn): Likewise.
15829 (gimple_call_set_fndecl): Likewise.
15830 (gimple_call_fndecl): Likewise.
15831 (gimple_call_return_type): Likewise.
15832 (gimple_call_set_chain): Likewise.
15833 (gimple_call_num_args): Likewise.
15834 (gimple_call_set_arg): Likewise.
15835 (gimple_cond_set_code): Likewise.
15836 (gimple_cond_set_lhs): Likewise.
15837 (gimple_cond_set_rhs): Likewise.
15838 (gimple_cond_set_true_label): Likewise.
15839 (gimple_cond_set_false_label): Likewise.
15840 (gimple_label_set_label): Likewise.
15841 (gimple_goto_set_dest): Likewise.
15842 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15843 (gimple_debug_bind_get_value): Likewise.
15844 (gimple_debug_bind_get_value_ptr): Likewise.
15845 (gimple_debug_bind_set_var): Likewise.
15846 (gimple_debug_bind_set_value): Likewise.
15847 (gimple_debug_bind_reset_value): Likewise.
15848 (gimple_debug_bind_has_value_p): Likewise.
15849 (gimple_return_retval_ptr): Remove gcc_assert.
15850 (gimple_return_retval): Likewise.
15851 (gimple_return_set_retval): Likewise.
15852 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15853 (safe_referenced_var_iterator): Remove.
15854 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15855 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15856 (fill_referenced_var_vec): Remove.
15857 (first_readonly_imm_use): Remove redundant gcc_assert.
15858 (phi_arg_index_from_use): Combine gcc_asserts.
15859 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15860 (first_imm_use_stmt): Remove redundant gcc_assert.
15861 * tree-cfg.c (verify_gimple_call): Verify function and chain
15862 operands. Verify arguments.
15863 (verify_types_in_gimple_stmt): Verify condition code and labels.
15865 2010-01-07 Richard Guenther <rguenther@suse.de>
15867 PR tree-optimization/42641
15868 * sese.c (rename_map_elt_info): Use the SSA name version, do
15871 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15873 PR tree-optimization/42625
15874 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15875 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15877 2010-01-07 Duncan Sands <baldrick@free.fr>
15879 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15881 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15884 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15885 note itself is not function_invariant_p.
15887 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15889 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15890 Do not add the DF_NOTE problem.
15891 * store-motion.c (execute_rtl_store_motion): Likewise.
15893 2010-01-07 Martin Jambor <mjambor@suse.cz>
15895 PR tree-optimization/42157
15896 * tree-sra.c (compare_access_positions): Stabilize sort if both
15897 accesses have integer types, return zero immediately if they are the
15900 2010-01-06 Richard Henderson <rth@redhat.com>
15902 PR middle-end/41883
15903 * haifa-sched.c (add_to_note_list): Merge into ...
15904 (concat_note_lists): ... here, and ...
15905 (unlink_other_notes, rm_other_notes): Merge into...
15906 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15907 NOTE_INSN_EPILOGUE_BEG.
15909 2010-01-06 Richard Guenther <rguenther@suse.de>
15911 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15912 not inline regular functions into always-inline functions.
15914 2010-01-06 Nick Clifton <nickc@redhat.com>
15916 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15917 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15919 (OVERRIDE_OPTIONS): Delete.
15920 (OPTIMIZATION_OPTIONS): Define.
15921 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15922 * config/rx/rx.c (rx_handle_option): Issue an error message if
15923 -mcpu=rx200 and -fpu are used together.
15924 (rx_set_optimization_options): New function. Issue an error
15925 message if an optimization attribute attempts to reset the FPU/
15926 math optimization pairing.
15927 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15928 * config/rx/rx.opt: Set the default to 32-bit doubles.
15929 * config/rx/t-rx: Add multilibs for -nofpu option.
15930 * doc/invoke.texi: Update documentation of RX options.
15932 2010-01-06 Richard Guenther <rguenther@suse.de>
15934 * tree-ssa-pre.c (name_to_id): New global.
15935 (alloc_expression_id): Simplify SSA name handling.
15936 (lookup_expression_id): Likewise.
15937 (init_pre): Zero name_to_id.
15938 (fini_pre): Free it.
15940 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15942 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15944 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
15947 * config/i386/sse.md (smaxv2di3): New.
15948 (umaxv2di3): Likewise.
15949 (sminv2di3): Likewise.
15950 (uminv2di3): Likewise.
15952 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
15955 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15956 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15957 (legitimize_tls_address): Likewise.
15958 (sparc_tls_referenced_p): Likewise.
15959 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15960 and adjust calls to legitimize_pic_address.
15961 (legitimate_constant_p) Use sparc_tls_referenced_p.
15962 (legitimate_pic_operand_p): Likewise.
15963 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15964 (sparc_tls_symbol_ref_1): Delete.
15965 (sparc_tls_referenced_p): Make static, recognize specific patterns.
15966 (legitimize_tls_address): Make static, handle CONST patterns.
15967 (legitimize_pic_address): Make static, remove unused parameter and
15968 adjust recursive calls.
15969 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15970 and adjust call to legitimize_pic_address.
15971 (sparc_output_mi_thunk): Likewise.
15973 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
15974 H.J. Lu <hongjiu.lu@intel.com>
15977 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15978 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15979 operands to make them signed.
15982 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15985 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15986 GTU to GT for V4SI and V2DI.
15988 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15989 (umin<mode>3): Removed.
15991 (uminv4si3): Likewise.
15993 2010-01-05 Martin Jambor <mjambor@suse.cz>
15995 PR tree-optimization/42462
15996 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15997 current_function_decl to helper functions and macros.
15999 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16002 * flags.h: Don't include real.h.
16003 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16004 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16005 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16006 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16007 * dominance.c: Update copyright.
16008 * gimple.c (walk_gimple_op): Remove inline.
16009 * tree-ssa-reassoc.c: Include real.h.
16010 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16011 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16013 2010-01-05 Nick Clifton <nickc@redhat.com>
16015 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16016 register to push into the stack frame when the accumulator has to
16017 be saved during interrupts.
16019 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16021 * doc/invoke.texi: Remove the documentation about option
16022 -Wunreachable-code.
16023 * common.opt (Wunreachable-code): Preserved for backward
16025 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16026 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16027 the backward compatibility flag section.
16029 2010-01-05 Richard Guenther <rguenther@suse.de>
16031 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16033 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16036 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16038 PR tree-optimization/42508
16039 * tree-sra.c (convert_callers): Check for recursive call
16040 by comparing cgraph nodes instead of decls.
16041 (modify_function): Call ipa_modify_formal_parameters also
16042 on all same_body aliases.
16044 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16045 cgraph nodes when checking for same_body aliases.
16047 2010-01-05 Richard Guenther <rguenther@suse.de>
16049 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16050 allocation and lookup.
16051 (get_or_alloc_expr_for_constant): Likewise.
16052 (phi_translate): Sink allocation.
16054 2010-01-04 Richard Guenther <rguenther@suse.de>
16056 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16057 a new entry only if needed.
16058 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16059 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16061 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16063 (phi_translate): Handle CONSTANTs early.
16065 2010-01-04 Martin Jambor <mjambor@suse.cz>
16067 PR tree-optimization/42398
16068 * tree-sra.c (struct access): Removed flag grp_different_types.
16069 (dump_access): Do not dump the removed flag.
16070 (sort_and_splice_var_accesses): Do not set the removed flag.
16071 (sra_modify_expr): Check for type compatibility directly.
16073 2010-01-04 Martin Jambor <mjambor@suse.cz>
16075 PR tree-optimization/42366
16076 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16077 edges with variable number of parameters.
16078 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16079 flag instead of asserting it.
16080 (ipa_read_node_info): Read uses_analysis_done flag.
16082 2010-01-04 Richard Guenther <rguenther@suse.de>
16084 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16085 iterative_hash_* as intended.
16086 (vn_reference_compute_hash): Likewise. Simplify hashing
16088 (vn_reference_lookup_2): Likewise.
16089 (vn_nary_op_compute_hash): Likewise.
16090 (vn_phi_compute_hash): Likewise.
16091 (expressions_equal_p): Remove strange code.
16092 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16093 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16094 (bitmap_insert_into_set_1): Take value-id as parameter.
16095 (add_to_value): Pass it.
16096 (bitmap_insert_into_set): Likewise.
16097 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16099 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16102 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16103 (do_self_spec): For switches with SWITCH_IGNORE set set also
16104 SWITCH_IGNORE_PERMANENTLY.
16105 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16108 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16110 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16111 tree of an unreferenced global var.
16113 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16116 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16117 GTU to GT for V4SI and V2DI.
16119 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16120 (umin<mode>3): Removed.
16122 (uminv4si3): Likewise.
16124 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16127 * collect2.c (main): Turn on trace in collect2 if -v is passed
16130 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16132 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16133 description of expression operand.
16135 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16137 * configure.ac: Add install-html to target_list for Make-hooks.
16138 * configure: Regenerate.
16139 * fortran/Make-lang.in (F95_HTMLFILES): New.
16140 (fortran.html): Use it.
16141 (fortran.install-html): New.
16142 * Makefile.in (install-html): Add lang.install-html.
16143 * java/Make-lang.in (JAVA_HTMLFILES): New.
16144 (java.html): Use it.
16145 (java.install-html): New.
16146 * objc/Make-lang.in (objc.install-html): New.
16147 * objcp/Make-lang.in (obj-c++.install-html): New.
16148 * cp/Make-lang.in (c++.install-html): New.
16149 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16150 * lto/Make-lang.in (lto.install-html): New.
16152 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16155 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16157 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16159 PR rtl-optimization/41862
16160 * store-motion.c (store_killed_in_insn, compute_store_table,
16161 remove_reachable_equiv_notes, replace_store_insn,
16162 build_store_vectors): Ignore all DEBUG_INSNs.
16164 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16167 * common.opt: Add dumpdir.
16169 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16171 (option_map): Add --dumpdir.
16173 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16175 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16177 * opts.c (decode_options): Try dump_dir_name first if
16178 dump_base_name isn't an absolute path.
16179 (common_handle_option): Handle OPT_dumpdir.
16181 * toplev.c (dump_dir_name): New.
16182 (print_switch_values): Also ignore -dumpdir.
16184 * toplev.h (dump_dir_name): New.
16186 2010-01-03 Richard Guenther <rguenther@suse.de>
16188 PR tree-optimization/42589
16189 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16190 double-word expansion of bswap32.
16192 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16194 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16195 with BLOCK_FOR_INSN.
16196 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16197 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16198 noce_process_if_block): Likewise.
16199 * gcse.c (compute_local_properties, insert_expr_in_table,
16200 insert_set_in_table, canon_list_insert, find_avail_set,
16201 pre_insert_copy_insn): Likewise.
16203 * basic-block.h (BLOCK_NUM): Move from here...
16204 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16206 2010-01-03 Richard Guenther <rguenther@suse.de>
16208 PR tree-optimization/42438
16209 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16210 contains_may_not_return_call flag.
16211 (BB_MAY_NOTRETURN): New.
16212 (valid_in_sets): Trapping nary operations are not valid
16213 in blocks that may not return.
16214 (insert_into_preds_of_block): Remove check for trapping expressions.
16215 (compute_avail): Compute also BB_MAY_NOTRETURN.
16217 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16219 * doc/invoke.texi: Add 2010 to copyright years.
16221 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16223 * config/sparc/sparc.c: Fix formatting nits.
16225 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16226 Alexander Monakov <amonakov@ispras.ru>
16228 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16230 2010-01-02 Richard Guenther <rguenther@suse.de>
16232 PR middle-end/42577
16233 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16234 (simplify_switch_using_ranges): Mark to be removed edges
16237 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16239 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16241 * collect2.c (scan_libraries): Add missing argument in call to
16244 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16247 * config/alpha/predicates.md (aligned_memory_operand): Return false
16249 (unaligned_memory_operand): Return true for CQImode.
16250 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16251 doesn not cross aligned SImode word boundary.
16253 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16255 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16257 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16258 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16260 2010-01-02 Richard Guenther <rguenther@suse.de>
16263 * toplev.c (compile_file): Emit LTO marker properly. Change
16264 it to __gnu_lto_v1.
16265 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16267 2010-01-01 Richard Guenther <rguenther@suse.de>
16270 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16272 2010-01-01 Richard Guenther <rguenther@suse.de>
16275 * c-decl.c (grokdeclarator): For zero-size arrays force
16276 structural equality checks as layout_type does.
16278 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16280 * builtins.c: Update copyright to 2010.
16282 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16285 * lto-streamer-out.c (produce_asm): Revert the last change.
16286 (copy_function): Likewise.
16288 * lto-streamer.c (lto_get_section_name): Skip any leading
16291 2010-01-01 Richard Guenther <rguenther@suse.de>
16293 PR middle-end/42559
16294 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16298 Copyright (C) 2010 Free Software Foundation, Inc.
16300 Copying and distribution of this file, with or without modification,
16301 are permitted in any medium without royalty provided the copyright
16302 notice and this notice are preserved.