1 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
3 PR rtl-optimization/44326
4 * implicit-zee.c (find_removable_zero_extends): Replace
5 INSN_P with NONDEBUG_INSN_P.
7 2010-06-25 Martin Jambor <mjambor@suse.cz>
9 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10 (struct ipa_node_params): Removed the modification_analysis_done flag.
11 (ipa_is_param_modified): Removed.
12 (ipa_analyze_node): Declare.
13 (ipa_compute_jump_functions): Remove declaration.
14 (ipa_count_arguments): Likewise.
15 (ipa_detect_param_modifications): Likewise.
16 (ipa_analyze_params_uses): Likewise.
17 * ipa-prop.c (struct param_analysis_info): New type.
18 (visit_store_addr_for_mod_analysis): Removed.
19 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
20 moved down in the file.
21 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
22 (ipa_count_arguments): Made static.
23 (mark_modified): New function.
24 (is_parm_modified_before_call): New function.
25 (compute_pass_through_member_ptrs): New parameter parms_info, call
26 is_parm_modified_before_call instead of ipa_is_param_modified.
27 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
28 it to compute_pass_through_member_ptrs.
29 (ipa_compute_jump_functions): New parameter parms_info, pass it to
30 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
31 on the callee if it is analyzed. Made static.
32 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
33 is_parm_modified_before_call instead of ipa_is_param_modified.
34 (ipa_analyze_call_uses): New parameter parms_info, pass it to
35 ipa_analyze_indirect_call_uses.
36 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
37 ipa_analyze_call_uses.
38 (ipa_analyze_params_uses): New parameter parms_info, pass it to
39 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
40 (ipa_analyze_node): New function.
41 (ipa_print_node_params): Do not dump the modified flag.
42 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
43 it. Do not stream the modified parameter flag.
44 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
45 it. Do not stream the modified parameter flag.
46 * ipa-cp.c (ipcp_analyze_node): Removed.
47 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
48 with only a call to ipa_analyze_node.
49 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
50 node with only a call to ipa_analyze_node.
52 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
54 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
56 2010-06-25 Jan Hubicka <jh@suse.cz>
58 * tree-pass.h (pass_split_functions): Declare.
59 * opts.c (decode_options): Enable function splitting at -O2
60 * timevar.def (TV_IPA_FNSPLIT): New macro.
61 * ipa-split.c: New file.
62 * common.opt (-fpartial-inlining): New flag.
63 * Makefile.in (ipa-split.o): New object file.
64 * passes.c (init_optimization_passes): Add ipa-split.
65 * params.def (partial-inlining-entry-probability): New parameters.
66 * doc/invoke.texi (-fpartial-inlining): New.
68 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
71 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
72 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
73 (gimplify_expr): Likewise.
75 2010-06-25 Martin Jambor <mjambor@suse.cz>
77 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
78 statements instead of bailing out on them.
79 (ipa_analyze_indirect_call_uses): Do not require that loads from the
80 parameter are in the same BB as the condition. Update comments.
82 2010-06-25 Jakub Jelinek <jakub@redhat.com>
85 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
86 true or always false, return NULL_TREE.
87 (tree_unswitch_single_loop): Optimize conditions even when reaching
88 max-unswitch-level parameter. If num > 0, optimize first all conditions
89 using entry checks, then do still reachable block discovery and consider
90 only conditions in still reachable basic blocks in the loop.
92 PR tree-optimization/44539
93 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
94 the call doesn't have LHS, but has VDEF.
96 2010-06-25 Joseph Myers <joseph@codesourcery.com>
98 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
99 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
100 * gcc.c (enum add_del, struct modify_target, modify_target):
102 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
103 * system.h (MODIFY_TARGET_NAME): Poison.
105 2010-06-25 Alan Modra <amodra@gmail.com>
107 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
108 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
109 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
110 CMODEL_LARGE as default.
111 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
112 (offsettable_ok_by_alignment): Delete.
113 (rs6000_emit_move): Remove mcmodel=medium optimization.
115 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
117 With large parts from Jim Wilson:
119 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
120 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
121 * optabs.c (optab_for_tree_code): Likewise.
122 (expand_widen_pattern_expr): Likewise.
123 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
124 out of execute_optimize_widening_mul.
125 (convert_plusminus_to_widen): New function.
126 (execute_optimize_widening_mul): Use the two new functions.
127 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
128 Remove code to generate widening multiply-accumulate. Add support
129 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
130 * gimple-pretty-print.c (dump_ternary_rhs): New function.
131 (dump_gimple_assign): Call it when appropriate.
132 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
133 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
134 (expand_gimple_stmt_1): Likewise.
135 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
136 WIDEN_MULT_MINUS_EXPR.
137 * tree-ssa-operands.c (get_expr_operands): Likewise.
138 * tree-inline.c (estimate_operator_cost): Likewise.
139 * gimple.c (extract_ops_from_tree_1): Renamed from
140 extract_ops_from_tree. Add new arg for a third operand; fill it.
141 (gimple_build_assign_stat): Support operations with three operands.
142 (gimple_build_assign_with_ops_stat): Likewise.
143 (gimple_assign_set_rhs_from_tree): Likewise.
144 (gimple_assign_set_rhs_with_ops_1): Renamed from
145 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
146 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
147 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
148 WIDEN_MULT_MINUS_EXPR.
149 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
150 (extract_ops_from_tree_1): Adjust declaration.
151 (gimple_assign_set_rhs_with_ops_1): Likewise.
152 (gimple_build_assign_with_ops): Pass NULL for last operand.
153 (gimple_build_assign_with_ops3): New macro.
154 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
155 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
157 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
158 (verify_gimple_assign): Call it.
159 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
160 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
161 functions for dealing with three-operand statements.
162 * tree.c (commutative_ternary_tree_code): New function.
163 * tree.h (commutative_ternary_tree_code): Declare it.
164 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for ternary
166 (gimple_assign_nonzero_warnv_p): Likewise.
167 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
168 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
169 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
170 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
171 (struct hashtable_expr): New member ternary in the union.
172 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
173 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
174 (iterative_hash_hashable_expr): Likewise.
175 (print_expr_hash_elt): Handle EXPR_TERNARY.
176 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
177 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
178 statements. Handle GIMPLE_TERNARY_RHS.
180 2010-06-25 Jan Hubicka <jh@suse.cz>
182 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
184 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
187 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
188 parameters are not good.
189 (c_parser_parameter_declaration): Error unknown type name if the type
190 name can't start declaration specifiers.
192 2010-06-25 Joseph Myers <joseph@codesourcery.com>
194 * gcc.c (translate_options): Don't mention +e in comment.
195 (process_command): Don't handle +e specially.
197 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
199 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
201 * ira-build.c (merge_hard_reg_conflicts): New function.
202 (create_cap_allocno, copy_info_to_removed_store_destinations,
203 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
204 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
205 (remove_unnecessary_allocnos, remove_low_level_allocnos)
206 copy_nifo_to_removed_store_destination): Use them.
207 * ira-lives.c (make_hard_regno_born): New function, split out of
209 (make_allocno_born): Likewise.
210 (make_hard_regno_dead): New function, split out of make_regno_dead.
211 (make_allocno_dead): Likewise.
212 (inc_register_pressure): New function, split out of set_allocno_live.
213 (dec_register_pressure): New function, split out of clear_allocno_live.
214 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
215 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
216 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
217 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
218 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
219 mark_pseudo_regno_live.
220 (process_bb_node_lives): Use mark_pseudo_regno_live,
221 make_hard_regno_born and make_allocno_dead.
222 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
223 set_allocno_live, clear_allocno_live): Delete functions.
225 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
226 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
228 (ira_flattening): Use ira_parent_allocno.
229 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
230 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
232 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
235 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
236 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
237 minmax_set_iter_cond, minmax_set_iter_next,
238 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
239 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
240 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
241 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
244 * ira-int.h (struct live_range, live_range_t): Renamed from struct
245 ira_allocno_live_range and allocno_live_range_t; all uses changed.
246 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
249 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
251 * thumb2.md (thumb2_tlobits_cbranch): Delete.
252 (peephole2 to convert zero_extract/compare of single bit to
253 lshift/compare): New.
255 2010-06-24 Anatoly Sokolov <aesok@post.ru>
257 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
258 recursive call and call to 'int_const_binop'.
259 (build_range_check, fold_cond_expr_with_comparison, unextend,
260 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
261 multiple_of_p): Adjust call to const_binop.
263 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
265 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
266 determine size of XFmode operand.
267 (XFmode extended DFmode push splitter): Ditto.
268 (XFmode extended SFmode push splitter): Ditto.
270 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
273 * config/i386/i386.md (extract_code): New.
274 (<u>divmodqi4): Likewise.
275 (divmodhiqi3): Likewise.
276 (udivmodhiqi3): Likewise.
277 (<u>divqi3): Remvoved.
279 2010-06-24 Jakub Jelinek <jakub@redhat.com>
282 * recog.h (struct recog_data): Add is_asm field.
283 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
284 present in constraints of inline-asm operand and memory operand
285 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
286 (extract_insn): Initialize recog_data.is_asm.
287 * doc/md.texi (Constraints): Document operand side-effect rules.
289 2010-06-24 Andi Kleen <ak@linux.intel.com>
291 * c-parser.c (c_parser_conditional_expression): Call
292 warn_for_omitted_condop.
293 * doc/invoke.texi: Document omitted condop warning.
295 2010-06-24 Nick Clifton<nickc@redhat.com>
297 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
298 insn in the sequence is a jump insn before setting its label.
300 2010-06-24 Alan Modra <amodra@gmail.com>
302 * collect2.c (main): Match exactly --version and --help.
304 2010-06-24 DJ Delorie <dj@redhat.com>
306 * config/m32c/m32c-pragma.c: Don't include rtl.h.
308 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
310 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
311 using X87MODEF mode iterator.
312 (pushsf splitter): Macroize splitter using P mode iterator.
313 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
316 (*movxf_internal): Rename from *movxf_integer.
317 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
318 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
319 (*movdf_internal): Rename from *movdf_integer.
320 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
321 (*movsf_internal): Rename from *movdf_1.
323 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
325 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
326 (const_gimple_seq_node): Removed typedefs.
328 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
329 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
331 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
333 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
334 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
335 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
336 and CODE_FOR_vec_extract_lo_v4df.
338 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
339 Changed to define_insn_and_split.
340 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
341 (vec_extract_lo_v16hi): Likewise.
342 (vec_extract_lo_v32qi): Likewise.
343 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
344 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
346 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
349 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
350 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
351 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
352 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
353 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
356 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
359 * df-core.c (struct df): Rename to df_d.
360 * df.h (struct df): Likewise.
361 * dse.h (struct df): Remove forward declaration.
362 * recog.h (struct insn_data): Rename to:
363 (struct_insn_data_d). Adjusted all users.
365 2010-06-23 Arnaud Charlet <charlet@adacore.com
368 * doc/install.texi: Update requirements to build GNAT.
370 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
372 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
374 (m68k_sched_attr_opx_type): Remove unreachable return.
375 (m68k_sched_attr_opy_type): Likewise.
376 (m68k_sched_attr_size): Likewise.
377 (sched_get_opxy_mem_type): Likewise.
378 (m68k_sched_attr_op_mem): Likewise.
380 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
382 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
383 new statement and adjust VDEF only if necessary. Remove superfluous
384 call to maybe_clean_or_replace_eh_stmt.
385 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
387 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
388 * tree-inline.c (copy_bb): ...and not there.
390 2010-06-22 Cary Coutant <ccoutant@google.com>
392 * dwarf2out.c (is_nested_in_subprogram): New function.
393 (should_move_die_to_comdat): Use it.
394 (copy_ancestor_tree): Don't mark DIEs here.
395 (copy_decls_walk): Start walk from root of newly-added tree;
396 mark DIEs here instead.
398 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
400 * config/i386/i386.md (unit): Also check sseishft1.
402 2010-06-22 Jan Hubicka <jh@suse.cz>
404 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
407 2010-06-22 Jan Hubicka <jh@suse.cz>
409 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
410 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
411 Return true if something changed.
412 * df.h (df_confluence_function_n): Return bool.
413 * df-core.c (df_worklist_propagate_forward,
414 df_worklist_propagate_backward): Track changes and ages.
415 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
417 * dse.c (dse_confluence_n): Return always true.
419 2010-06-22 Jan Hubicka <jh@suse.cz>
421 * bitmap.c (bitmap_clear_bit): Micro optimize.
423 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
425 * config/i386/i386.md (SWI1248x): New mode iterator.
430 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
431 SWI1248x mode iterator.
432 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
433 using SWI124 mode iterator.
434 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
436 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
437 *pushdi2_prologue_rex64 using P mode iterator.
438 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
439 using SWI48 mode iterator.
440 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
441 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
442 using SWI1248x mode iterator.
443 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
444 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
446 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
448 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
449 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
451 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
453 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
454 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
456 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
458 (mov<mode>_insn_1): New expander.
459 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
460 using SWI48x mode iterator.
462 (*movoi_internal_avx): Rename from *movoi_internal.
463 (*movti_internal_rex64): Rename from *movti_rex64.
464 (*movti_internal_sse): Rename from *movti_sse.
465 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
466 (*movdi_internal): Rename from *movdi_2.
467 (*movsi_internal): Rename from *movsi_1.
468 (*movhi_internal): Rename from *movhi_1.
469 (*movqi_internal): Rename from *movqi_1.
471 (insv): Update the call to gen_movsi_insv_1 for rename.
472 * config/i386/i386.c (promote_duplicated_reg): Ditto.
474 2010-06-22 Jan Hubicka <jh@suse.cz>
476 * passes.c (execute_function_todo): Move call of statistics_fini_pass
478 (execute_todo) ... this one.
480 2010-06-22 Alan Modra <amodra@gmail.com>
483 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
484 * caller-save.c (insert_restore, insert_save): Use non-validate
485 form of adjust_address.
487 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
490 * config/pa/pa.c (override_options): Disable
491 -freorder-blocks-and-partition.
493 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
496 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
498 * config/i386/i386.md (type): Add sseishft1
500 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
501 (ppro_insn_load): Likewise.
502 (ppro_insn_store): Likewise.
503 (ppro_insn_both): Likewise.
505 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
506 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
508 (*vec_extractv2di_1_avx): Likewise.
509 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
510 type. Remove atom_unit.
511 (*vec_extractv2di_1_sse2): Likewise.
513 2010-06-21 DJ Delorie <dj@redhat.com>
515 * diagnostic.h (diagnostic_classification_change_t): New.
516 (diagnostic_context): Add history and push/pop list.
517 (diagnostic_push_diagnostics): Declare.
518 (diagnostic_pop_diagnostics): Declare.
519 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
520 from pragmas in a history chain instead of the global table.
521 (diagnostic_push_diagnostics): New.
522 (diagnostic_pop_diagnostics): New.
523 (diagnostic_report_diagnostic): Scan history chain to find state
524 of diagnostics as of the diagnostic location.
525 * opts.c (set_option): Pass UNKNOWN_LOCATION to
526 diagnostic_classify_diagnostic.
527 (enable_warning_as_error): Likewise.
528 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
529 use in the history chain.
530 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
531 allow these pragmas anywhere.
532 * doc/extend.texi: Document pragma GCC diagnostic changes.
534 2010-06-21 Jakub Jelinek <jakub@redhat.com>
536 * dwarf2out.c (add_linkage_name): New function. Don't add
537 anything to DW_TAG_member DIEs.
538 (add_name_and_src_coords_attributes): Use it.
539 (gen_variable_die): Call it for C++ static data members if
540 specification is DW_TAG_member.
542 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
543 C++ char16_t and char32_t.
545 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
546 * genattrtab.c: Include vecprim.h.
547 (cached_attrs, cached_attr_count, attrs_seen_once,
548 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
549 attrs_cached_after): New variables.
550 (find_attrs_to_cache): New function.
551 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
552 (write_test_expr): Add attrs_cached argument, return it too,
553 attempt to cache non-const attributes used more than once in
554 a single case handling.
555 (write_attr_get): Use find_attrs_to_cache, for caching candidates
556 emit cached_* variables. Adjust write_attr_set callers.
557 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
558 to find attributes that should be cached in this block. Adjust
559 write_test_expr callers.
560 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
562 (make_automaton_attrs): Adjust write_test_expr caller.
564 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
565 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
566 (make_automaton_attrs): If find_tune_attr returns non-NULL,
567 write separate internal_dfa_insn_code_* and insn_default_latency_*
568 functions for each attribute's value and emit init_sched_attrs
569 function and function pointers.
570 * genattr.c (const_attrs, reservations): New variables.
571 (gen_attr): Add const attributes to const_attrs vector.
572 (check_tune_attr, find_tune_attr): New functions.
573 (main): Add reservations to reservations vector. If find_tune_attr
574 returns true, add prototype for init_sched_attrs and make
575 internal_dfa_insn_code and insn_default_latency function pointers,
576 otherwise define init_sched_attrs as dummy macro.
577 * cfgexpand.c: Include insn-attr.h.
578 (gimple_expand_cfg): Call init_sched_attrs.
580 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
583 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
584 va_arg from a set of register save slots into a temporary,
585 if the container is bigger than type size, do the copying
586 using smaller mode or using memcpy.
589 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
591 (sel_print_to_dot): Remove macro.
592 (sel_print): Likewise. New prototype.
593 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
594 (sel_print): New function.
596 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
598 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
599 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
601 2010-06-21 Nick Clifton <nickc@redhat.com>
603 * config/rx/rx.h (PTRDIFF_TYPE): Define.
604 (SMALL_REGISTER_CLASS): Define (to zero).
605 (PRINT_OPERAND): Delete.
606 (PRINT_OPERAND_ADDRESS): Delete.
607 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
608 (rx_print_operand_address): Delete prototype.
609 * config/rx/rx.c (rx_print_operand): Make static.
610 Allow %H and %L to handle CONST_DOUBLEs.
611 (rx_print_operand_address): Make static.
612 (rx_gen_move_template): Rename local variable 'template' to
614 (rx_function_arg): Do not pass unknown sized objects in registers.
615 (TARGET_PRINT_OPERAND): Define.
616 (TARGET_PRINT_OPERAND_ADDRESS): Define.
618 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
620 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
622 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
624 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
625 stack-alignment for simple leaf-functions.
627 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
629 * doc/install.texi: Document bootstrap-lto.
631 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
634 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
635 (input_function): Drop them here, if VTA is disabled.
637 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
640 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
642 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
643 ix86_swapped_fp_comparsion_operator instead of
644 ix86_fp_comparison_operator.
646 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
647 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
648 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
649 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
650 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
651 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
653 2010-06-20 Joseph Myers <joseph@codesourcery.com>
656 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
657 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
658 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
659 (decode_cmdline_option): Update for this return value. Set
660 orig_option_with_args_text field. Set arg field for unknown
661 options. Make static.
662 (decode_cmdline_options_to_array): New.
663 (prune_options): Update handling of find_opt return value.
664 * opts.c (read_cmdline_option): Take decoded option. Return void.
665 (read_cmdline_options): Take decoded options.
666 (decode_options): Add parameters for decoded options. Use
667 decode_cmdline_options_to_array. Use decoded options for -O
668 scan. Use integral_argument for -O parameters. Update call to
669 read_cmdline_options.
670 (enable_warning_as_error): Update handling of find_opt return value.
671 * opts.h: Update comment on unknown options.
672 (struct cl_decoded_option): Update comments on opt_index and arg.
673 Add orig_option_with_args_text.
674 (decode_cmdline_option): Remove.
675 (decode_cmdline_options_to_array): Declare.
676 (decode_options): Update prototype.
677 * toplev.c (save_argv): Remove.
678 (save_decoded_options, save_decoded_options_count): New.
679 (read_integral_parameter): Remove.
680 (print_switch_values): Use decoded options.
681 (toplev_main): Don't set save_argv. Update call to decode_options.
682 * toplev.h (read_integral_parameter): Remove.
683 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
685 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
688 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
690 * constraints.md (Pw, Px): New constraints.
691 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
693 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
695 * config/i386/sse.md (fma4modesuffixf4): Removed.
696 (ssemodesuffixf2s): Likewise.
697 (ssemodesuffixf4): Likewise.
698 (ssemodesuffixf2c): Likewise.
699 (ssescalarmodesuffix2s): Likewise.
700 (avxmodesuffixf2c): Likewise.
701 (ssemodesuffix): New.
702 (ssescalarmodesuffix): Likewise.
703 Update patterns with ssemodesuffix and ssescalarmodesuffix.
705 2010-06-19 Philip Herron <herron.philip@googlemail.com>
707 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
709 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
711 * stor-layout.c (debug_rli): Remove unused local variables.
713 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
715 PR rtl-optimization/40900
716 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
717 original expression for later reuse.
718 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
719 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
721 2010-06-18 Anatoly Sokolov <aesok@post.ru>
723 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
724 double_int_fits_in_uhwi_p): Implement as static inline.
725 (double_int_xor): New inline function.
726 (double_int_lrotate, double_int_rrotate, double_int_max,
727 double_int_umax, double_int_smax, double_int_min, double_int_umin,
728 double_int_smin): Declare.
729 (lrotate_double, rrotate_double): Remove declaration.
730 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
731 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
732 (double_int_lrotate, double_int_rrotate, double_int_max,
733 double_int_umax, double_int_smax, double_int_min, double_int_umin,
734 double_int_smin): New function.
735 * fold-const.c (int_const_binop): Clean up, use double_int_*
737 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
738 double_int_* and immed_double_int_const functions.
740 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
742 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
743 * function.c (types_used_by_cur_var_decl): Likewise.
744 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
746 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
748 * tree.h (record_layout_info): Change type of pending_statics field
750 * stor-layout.c (start_record_layout): Store NULL into
752 (debug_rli): Call debug_vec_tree instead of debug_tree.
753 (place_field): Likewise.
754 (finish_record_layout): Likewise.
756 2010-06-18 Alan Modra <amodra@gmail.com>
758 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
760 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
763 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
764 for SET source operand from SET destination operand.
766 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
768 PR rtl-optimization/39871
769 * reload1.c (init_eliminable_invariants): For flag_pic, disable
770 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
771 (function_invariant_p): Rule out a plus of frame or arg pointer with
773 * ira.c (find_reg_equiv_invariant_const): Likewise.
775 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
777 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
778 print_operand_address and puts to output the operand for CONST.
780 2010-06-17 Jakub Jelinek <jakub@redhat.com>
783 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
786 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
788 * v850-protos.h (print_operand): Delete.
789 (print_operand_address): Delete.
790 * v850.h (PRINT_OPERAND): Delete.
791 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
792 (PRINT_OPERAND_ADDRESS): Delete.
793 * v850.c (print_operand_address): Rename to...
794 (v850_print_operand_address): ...this. Make static. Call
796 (print_operand): Rename to...
797 (v850_print_operand): ...this. Make static. Call
798 v850_print_operand_address.
799 (v850_print_operand_punct_valid_p): New function.
800 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
801 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
803 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
805 * config/sh/sh-protos.h (print_operand): Delete.
806 (print_operand_address): Delete.
807 * config/sh/sh.h (PRINT_OPERAND): Delete.
808 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
809 (PRINT_OPERAND_ADDRESS): Delete.
810 * config/sh/sh.c (sh_print_operand_address): Make static.
811 (sh_print_operand): Make static. Call sh_print_operand_address
812 and sh_print_operand.
813 (sh_print_operand_punct_valid_p): New function.
814 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
815 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
817 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
819 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
820 (mcore_print_operand_address): Delete.
821 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
822 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
823 (PRINT_OPERAND_ADDRESS): Delete.
824 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
825 (mcore_print_operand): Make static.
826 (mcore_print_operand_punct_valid_p): New function.
827 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
828 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
830 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
832 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
833 (print_operand_address): Delete.
834 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
835 (PRINT_OPERAND_ADDRESS): Delete.
836 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
838 (m68hc11_print_operand): Make static.
839 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
841 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
843 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
844 (m32r_print_operand_address): Delete.
845 * config/m32r/m32r.h (m32r_punct_chars): Delete.
846 (PRINT_OPERAND): Delete.
847 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
848 (PRINT_OPERAND_ADDRESS): Delete.
849 * config/m32r/m32r.c (m32r_punct_chars): Make static.
850 (m32r_print_operand_address): Make static.
851 (m32r_print_operand): Make static.
852 (m32r_print_operand_punct_valid_p): New function.
853 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
854 (TARGET_PRINT_OPERAND_ADDRESS): Define.
856 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
858 * config/iq2000/iq2000-protos.h (print_operand): Delete.
859 (print_operand_address): Delete.
860 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
861 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
862 (PRINT_OPERAND_ADDRESS): Delete.
863 (iq2000_print_operand_punct): Delete.
864 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
865 (iq2000_print_operand_address): Make static.
866 (iq2000_print_operand): Make static.
867 (iq2000_print_operand_punct_valid_p): New function.
868 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
869 (TARGET_PRINT_OPERAND_ADDRESS): Define.
871 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
873 * config/frv/frv-protos.h (frv_print_operand): Delete.
874 (frv_print_operand_address): Delete.
875 * config/frv/frv.h (PRINT_OPERAND): Delete.
876 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
877 (PRINT_OPERAND_ADDRESS): Delete.
878 * config/frv/frv.c (frv_print_operand_address): Make static.
879 (frv_print_operand): Make static.
880 (frv_print_operand_punct_valid_p): New function.
881 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
882 (TARGET_PRINT_OPERAND_ADDRESS): Define.
884 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
886 * tree.h (vec_member): Declare.
887 * tree.c (vec_member): Define.
889 2010-06-17 Richard Guenther <rguenther@suse.de>
891 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
892 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
894 2010-06-17 Richard Guenther <rguenther@suse.de>
896 * tree-inline.c (declare_return_variable): Remove bogus code.
898 2010-06-17 Richard Guenther <rguenther@suse.de>
900 * gimplify.c (gimplify_bind_expr): Always promote complex
901 and vector variables to registers if possible.
903 2010-06-17 Richard Guenther <rguenther@suse.de>
905 * expr.c (get_inner_reference): Use double_int for bit_offset
908 2010-06-16 DJ Delorie <dj@redhat.com>
910 * common.opt (-fstrict-volatile-bitfields): new.
911 * doc/invoke.texi: Document it.
912 * fold-const.c (optimize_bit_field_compare): For volatile
913 bitfields, use the field's type to determine the mode, not the
915 * expr.c (expand_assignment): Likewise.
916 (get_inner_reference): Likewise.
917 (expand_expr_real_1): Likewise.
918 * expmed.c (store_fixed_bit_field): Likewise.
919 (extract_bit_field_1): Likewise.
920 (extract_fixed_bit_field): Likewise.
922 2010-06-16 Richard Guenther <rguenther@suse.de>
924 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
926 2010-06-16 Douglas B Rupp <rupp@gnat.com>
928 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
929 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
930 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
932 * sdbout.c: Likewise.
933 * vmsdbgout.c: Likewise.
934 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
935 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
936 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
937 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
938 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
939 * dwarf2out.c (dw_fde_struct): New fields
940 dw_fde_vms_{end,begin}_prologue.
941 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
942 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
943 (dwarf2out_vms_end_prologue): New function.
944 (dwarf2out_vms_begin_epilogue): New function.
945 (dw_val_struct): New value dw_val_class_vms_delta.
946 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
947 begin_epilogue for VMS.
948 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
949 new static functions.
950 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
951 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
953 (print_die): New case dw_val_class_vms_delta.
954 (attr_checksum): Likewise.
955 (same_dw_val_p: Likewise.
956 (size_of_die): Likewise.
957 (value_format): Likewise.
958 (output_die): Likewise.
959 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
960 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
961 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
962 dwarf2out_cfi_begin_epilogue
963 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
965 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
967 * config/cris/cris-protos.h (cris_print_operand): Delete.
968 (cris_print_operand_address): Delete.
969 * config/cris/cris.h (PRINT_OPERAND): Delete.
970 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
971 (PRINT_OPERAND_ADDRESS): Delete.
972 * config/cris/cris.c (cris_print_operand_address): Make static.
973 (cris_print_operand): Make static.
974 (cris_print_operand_punct_valid_p): New function.
975 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
976 (TARGET_PRINT_OPERAND_ADDRESS): Define.
978 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
980 * config/arm/arm-protos.h (arm_print_operand): Delete.
981 (arm_print_operand_address): Delete.
982 * config/arm/arm.h (PRINT_OPERAND): Delete.
983 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
984 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
985 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
986 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
987 (arm_print_operand): Make static.
988 (arm_print_operand_punct_valid_p): New function.
989 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
990 (TARGET_PRINT_OPERAND_ADDRESS): Define.
992 2010-06-16 Nick Clifton <nickc@redhat.com>
994 * config/rx/constraints.md (NEGint4): New constraint.
995 * config/rx/rx.md (attr cc): Add set_zsc.
996 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
999 (call_internal): Clobber the cc0 register.
1000 (call_value_internal): Likewise.
1001 (cstoresi4): Likewise.
1002 (movsieq): Likewise.
1003 (movsine): Likewise.
1004 (addsi3): Add alternative to handle small negative constants.
1006 (addsi3): Do not set the O bit in the cc0 register.
1010 (andsi3): Reorder alternatives to prefer shorter forms.
1013 (negsi2): Note that the cc0 flags are set.
1014 (rotlsi3): Note that only the Z and S bits are set in cc0.
1015 (lshrsi3): Likewise.
1016 (ashlsi3): Likewise.
1017 (subsf3): Use %Q for the MEM operand.
1018 (fix_truncsfsi2): Likewise.
1019 (floatsisf2): Likewise.
1020 (bitset): Remove early clobber from destination.
1021 (bitset_in_memory): Likewise.
1022 (lrintsf2): Clobber the cc0 register.
1023 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1024 (rx_print_operand): Handle %N.
1026 2010-06-16 Jan Hubicka <jh@suse.cz>
1028 * df-core.c (df_compact_blocks): Free problem_temps vector.
1030 2010-06-16 Martin Jambor <mjambor@suse.cz>
1032 PR tree-optimization/43905
1033 * tree-sra.c: Include tree-inline.h.
1034 (create_abstract_origin): Removed.
1035 (modify_function): Version the call graph node instead of creating
1036 abstract origins and dealing with same_body aliases.
1037 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1038 function is versionable.
1039 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1041 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1043 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1044 (CHOOSE_DYNAMIC_LINKER): Update.
1046 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1048 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1049 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1050 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1051 *prefetch_3dnow_rex.
1053 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1055 * target.h (struct asm_out):Add declare_constant_name field.
1056 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1057 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1058 * output.h (default_asm_declare_constant_name): Declare.
1059 (assemble_label): Update prototype.
1060 * varasm.c (assemble_constant_contents): Use
1061 targetm.asm_out.declare_constant_name target hook.
1062 (assemble_label): Add 'file' argument.
1063 (default_asm_declare_constant_name): New function.
1064 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1065 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1066 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1068 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1069 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1070 (machopic_output_indirection): Update assemble_label argument list.
1071 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1072 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1074 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1077 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1078 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1080 2010-06-15 Richard Guenther <rguenther@suse.de>
1082 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1084 2010-06-15 Paul Brook <paul@codesourcery.com>
1086 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1089 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1091 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1092 don't get a vector type for output.
1094 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1097 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1098 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1099 (LANG_HOOKS_DECLS): Add it.
1100 * gimplify.c (omp_notice_variable): Call
1101 lang_hooks.decls.omp_report_decl.
1103 2010-06-15 Martin Jambor <mjambor@suse.cz>
1106 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1107 on the newly dead SSA name.
1109 2010-06-15 Alan Modra <amodra@gmail.com>
1111 * doc/invoke.texi: Add mcmodel to powerpc options.
1112 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1113 * configure: Regenerate.
1114 * config.in: Regenerate.
1115 * config/rs6000/linux64.opt (mcmodel): New.
1116 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1117 (TARGET_CMODEL, SET_CMODEL): Define.
1118 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1119 select CMODEL_MEDIUM default.
1120 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1121 (TARGET_CMODEL): Define default.
1122 * config/rs6000/rs6000.c (cmodel): New variable.
1123 (rs6000_explicit_options): Add cmodel field.
1124 (rs6000_handle_option): Handle -mcmodel.
1125 (create_TOC_reference): Add largetoc_reg param. Generate high,
1126 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1127 (rs6000_delegitimize_address): Recognise new toc reference rtl
1128 and minimal-toc rtl.
1129 (rs6000_legitimize_reload_address): Handle new toc references.
1130 (print_operand_address): Handle legitimate_constant_pool_address_p
1131 match before lo_sum.
1132 (rs6000_eliminate_indexed_memrefs): Tidy.
1133 (rs6000_emit_move): Tweak threshold for inlining constants.
1134 Keep rs6000_emit_allocate_stack large stack frame offsets
1135 loaded into r0 inline.
1136 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1137 (tocrel_base, tocrel_offset): New variables.
1138 (toc_relative_expr_p): Set them here.
1139 (print_operand_address): Skip over any offset on constant pool address.
1140 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1141 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1142 (offsettable_ok_by_alignment): New function.
1143 (rs6000_emit_move): Address suitably aligned local symbol_refs
1144 relative to the toc pointer for -mcmodel=medium.
1145 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1146 strict param. Allow lo_sum version of addressing. Verify reg
1147 used for -mminimal-toc and -mcmodel != small. Update all callers.
1148 * config/rs6000/constraints.md: Update for above change.
1149 * config/rs6000/predicates.md: Likewise.
1150 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1152 (tls_gd): Split for -mcmodel=medium/large.
1153 (tls_gd_high, tls_gd_low): New.
1154 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1155 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1156 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1157 (largetoc_high, largetoc_low): New.
1158 (cmptf_internal2): Add clobber.
1159 * config/rs6000/rs6000-protos.h: Update.
1161 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1163 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1164 true if no prefetch is going to be generated for a given group.
1165 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1166 estimate the prefetch_count.
1167 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1168 prefetch count by considering the unroll_factor and prefetch_mod
1169 for is_loop_prefetching_profitable.
1171 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1173 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1174 anything if the argument is not a MEM.
1176 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1181 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1183 (canonicalize_loop_ivs): Likewise.
1185 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1188 * haifa-sched.c (setup_insn_reg_pressure_info,
1189 update_register_pressure): Reject debug insns.
1190 (ready_sort): Don't setup reg pressure for debug insns.
1191 (schedule_insn): Don't update reg pressure for debug insns.
1193 2010-06-14 Richard Guenther <rguenther@suse.de>
1195 * lto-streamer.c (cached_bp): Remove.
1196 (bitpack_delete): Likewise.
1197 (bitpack_create): Likewise.
1198 (bp_get_next_word): Likewise.
1199 (bp_pack_value, bp_unpack_value): Move ...
1200 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1202 (struct bitpack_d): Likewise.
1203 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1204 New inline functions.
1205 * lto-streamer-out.c (lto_output_bitpack): Remove.
1206 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1207 (pack_value_fields): Adjust.
1208 (lto_write_tree): Likewise.
1209 (output_gimple_stmt): Likewise.
1210 (output_function): Likewise.
1211 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1212 (input_function): Likewise.
1213 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1214 (lto_input_bitpack): Remove.
1215 (lto_materialize_tree): Adjust.
1216 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1217 * lto-cgraph.c (lto_output_edge): Adjust.
1218 (lto_output_node): Likewise.
1219 (lto_output_varpool_node): Likewise.
1220 (lto_output_ref): Likewise.
1221 (input_node): Likewise.
1222 (input_varpool_node): Likewise.
1223 (input_ref): Likewise.
1224 (input_edge): Likewise.
1225 (output_node_opt_summary): Likewise.
1226 (input_node_opt_summary): Likewise.
1227 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1228 (pure_const_read_summary): Likewise.
1229 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1230 (ipa_read_indirect_edge_info): Likewise.
1231 (ipa_write_node_info): Likewise.
1232 (ipa_read_node_info): Likewise.
1234 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1237 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1238 (vec_extract_lo_v16hi): Likewise.
1239 (vec_extract_lo_v32qi): Likewise.
1241 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1244 * tree.h (build_call_expr): Don't define as vararg macro, instead
1246 * builtins.c (build_call_nofold): Remove.
1247 (expand_builtin_int_roundingfn, expand_builtin_pow,
1248 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1249 expand_builtin_memset_args, expand_builtin_strcmp,
1250 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1251 build_call_nofold_loc instead of build_call_nofold.
1252 (build_call_expr): New function.
1254 PR tree-optimization/44508
1255 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1256 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1257 don't eliminate trivially dead stmts.
1258 * tree-vrp.c (vrp_finalize): Pass false as last argument
1259 to substitute_and_fold.
1260 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1261 to substitute_and_fold.
1262 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1265 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1266 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1267 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1268 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1269 ggc_strdup instead of xstrdup.
1271 2010-06-14 Ira Rosen <irar@il.ibm.com>
1273 PR tree-optimization/44507
1274 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1275 to build initial vector for BIT_AND_EXPR.
1276 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1278 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1280 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1281 adjust z10prop set_attr.
1283 2010-06-13 Jan Hubicka <jh@suse.cz>
1285 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1286 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1287 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1288 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1289 datastructure checks into checking asserts.
1290 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1291 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1292 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1293 df_ref_create_structure): Likewise.
1294 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1295 pool_free): Use gcc_checking_assert.
1296 * alias.c (get_alias_set): Likewise.
1297 * var-tracking.c (variable_htab_free, shared_hash_copy,
1298 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1299 * lto-streamer.c (bp_unpack_value): Likewise.
1301 2010-06-13 Richard Guenther <rguenther@suse.de>
1303 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1304 Do not stream but initialize TYPE_CANONICAL to NULL.
1305 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1306 * gimple.c (gimple_types_compatible_p): Disregard
1307 TYPE_STRUCTURAL_EQUALITY_P.
1308 (gimple_register_type): Use TYPE_CANONICAL as cache.
1309 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1310 before registering common types.
1311 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1312 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1313 * tree.h (TYPE_CANONICAL): Clarify documentation.
1315 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1317 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1318 LIBCALL_VALUE): Remove macros.
1319 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1320 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1321 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1322 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1323 (ia64_function_value): Make static. Handle receiving the function
1324 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1326 2010-06-12 Jan Hubicka <jh@suse.cz>
1328 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1331 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1333 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1335 2010-06-12 Jan Hubicka <jh@suse.cz>
1337 * df-core.c (df_clear_bb_info): New function.
1338 (df_set_blocks): bb_info is always allocated.
1339 (df_get_bb_info): Use block_info_elt_size.
1340 (df_set_bb_info): Likewise.
1341 (df_compact_blocks): Update for new block_info.
1342 (grow_bb_info): New function.
1343 * df-problems.c (df_grow_bb_info): Move to df-core.c
1344 (df_rd_set_bb_info): Remove.
1345 (df_rd_free_bb_info): Do not free block pool.
1346 (df_rd_alloc): Do not create pool, use check for
1347 obstack presence instead of NULL pointer for new blocks.
1348 (df_rd_free): DO not free alloc pool; clear block_info.
1349 (problem_RD): Add size of block info structure.
1350 (df_lr_set_bb_info): Remove.
1351 (df_lr_free_bb_info): Do not free block pool.
1352 (df_lr_alloc): Do not create pool, use check for
1353 obstack presence instead of NULL pointer for new blocks.
1354 (df_lr_free): DO not free alloc pool; clear block_info.
1355 (problem_LR): Add size of block info structure.
1356 (df_live_set_bb_info): Remove.
1357 (df_live_free_bb_info): Do not free block pool.
1358 (df_live_alloc): Do not create pool, use check for
1359 obstack presence instead of NULL pointer for new blocks.
1360 (df_live_free): DO not free alloc pool; clear block_info.
1361 (problem_LIVE): Add size of block info structure.
1362 (problem_CHAIN): Add size of block info structure.
1363 (df_byte_lr_set_bb_info): Remove.
1364 (df_byte_lr_free_bb_info): Do not free block pool.
1365 (df_byte_lr_alloc): Do not create pool, use check for
1366 obstack presence instead of NULL pointer for new blocks.
1367 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1368 (problem_BYTE_LR): Add size of block info structure.
1369 (problem_NOTE): Add size of block info structure.
1370 (df_byte_MD_set_bb_info): Remove.
1371 (df_byte_MD_free_bb_info): Do not free block pool.
1372 (df_byte_MD_alloc): Do not create pool, use check for
1373 obstack presence instead of NULL pointer for new blocks.
1374 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1375 (problem_BD): Add size of block info structure.
1376 * df-scan.c (df_scan_free_internal): Free block pool.
1377 (df_scan_set_bb_info): Remove.
1378 (df_scan_free_bb_info): Check for artificial_defs instead
1379 of bb_info being non-NULL.
1380 (df_scan_alloc): DO not create df_scan_block pool.
1381 (problem_SCAN): Set size of block info.
1382 (df_bb_refs_record): Do not allocate bb_info.
1383 * df.h (df_problem): Add block_info_elt_size.
1384 (struct dataflow): Change block_info to void *.
1385 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1386 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1389 2010-06-12 Jan Hubicka <jh@suse.cz>
1391 PR tree-optimize/44485
1392 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1393 containing use of return value of noreturn function.
1395 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1397 * targhooks.c (default_function_value): Don't use
1398 FUNCTION_OUTGOING_VALUE.
1399 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1400 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1402 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1404 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1405 Add crtfastmath.o to extra_parts.
1406 * config/mips/crtfastmath.c: New.
1407 * config/mips/linux.h (ENDFILE_SPEC): New.
1409 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1411 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1412 old_type in parameter.
1413 (gcc_type_for_value): Update call to gcc_type_for_interval.
1414 (compute_type_for_level_1): Renamed compute_type_for_level.
1415 Update call to gcc_type_for_interval.
1417 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1419 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1420 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1422 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1424 * opts-common.c: Include options.h.
1425 (integral_argument): Move from opts.c.
1426 (decode_cmdline_option): New. Based on read_cmdline_option.
1427 * opts.c (integral_argument): Move to opts-common.c.
1428 (read_cmdline_option): Move most contents to
1429 decode_cmdline_option. Use %qs in diagnostics.
1430 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1431 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
1432 decode_cmdline_option): New.
1434 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
1438 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
1439 (partiysi2_cmp): Ditto.
1440 (*partiyhi2_cmp): Ditto.
1441 (*parityqi2_cmp): Remove.
1443 2010-06-11 Jan Hubicka <jh@suse.cz>
1445 * bitmap.h (bmp_iter_next_bit): New.
1446 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
1448 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
1449 Eric Botcazou <ebotcazou@adacore.com>
1451 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
1454 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1456 * config/i386/i386.md (unspec): New define_c_enum.
1459 2010-06-10 Jakub Jelinek <jakub@redhat.com>
1461 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
1462 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1463 (lazy_hex_fp_value): New function.
1464 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1465 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
1467 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1470 * tree-if-conv.c (bb_predicate_s): New struct.
1471 (bb_predicate_p): New.
1472 (bb_has_predicate): New.
1473 (bb_predicate): New.
1474 (set_bb_predicate): New.
1475 (bb_predicate_gimplified_stmts): New.
1476 (set_bb_predicate_gimplified_stmts): New.
1477 (add_bb_predicate_gimplified_stmts): New.
1478 (init_bb_predicate): New.
1479 (free_bb_predicate): New.
1480 (is_predicated): Use bb_predicate.
1481 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
1482 (predicate_bbs): Same. Gimplify the condition of the basic blocks
1483 before processing their successors.
1484 (clean_predicate_lists): Removed.
1485 (find_phi_replacement_condition): Use bb_predicate.
1486 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
1488 (insert_gimplified_predicates): New.
1489 (combine_blocks): Call insert_gimplified_predicates.
1490 (tree_if_conversion): Call free_bb_predicate instead of
1491 clean_predicate_lists.
1493 2010-10-11 Paul Brook <paul@codesourcery.com>
1495 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
1496 * config/arm/arm.c (all_architectures): Change v7e-m default to
1498 * config/arm/arm-cores.def: Add cortex-m4.
1499 * config/arm/arm-tune.md: Regenerate.
1501 2010-06-11 Jan Hubicka <jh@suse.cz>
1503 * ipa-pure-const.c (special_builtlin_state): New function.
1504 (check_call): Use it instead of special casign BUILT_IN_RETURN.
1505 (propagate_pure_const): Use it.
1507 2010-06-11 Jan Hubicka <jh@suse.cz>
1509 * df-problems.c (df_live_scratch): Convert to bitmap_head.
1510 (df_live_alloc): Initialize df_live_scratch when initializing
1512 (df_live_transfer_function): Update uses of df_live_scratch.
1513 (df_live_free): Free problem_data; clear df_live_scratch before
1514 releasing the obstack.
1515 (df_md_free): Free problem data.
1517 2010-06-11 Jan Hubicka <jh@suse.cz>
1519 * doc/invoke.texi (Wsuggest-attribute): Document.
1520 (Wmissing-noreturn): Remove.
1521 * ipa-pure-const.c (warn_function_noreturn): New function.
1522 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
1523 warn_missing_noreturn.
1524 * common.opt (Wsuggest-attribute=noreturn): New.
1525 * tree-flow.h (warn_function_noreturn): Declare.
1526 * tree-cfg.c (execute_warn_function_noreturn): Use
1527 warn_function_noreturn.
1528 (gate_warn_function_noreturn): New.
1529 (pass_warn_function_noreturn): Update.
1531 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1533 * c-typeck.c (handle_warn_cast_qual): Add loc
1534 parameter. Improve warning message.
1535 (build_c_cast): Pass location to handle_warn_cast_qual.
1537 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
1539 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
1540 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
1542 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
1544 2010-06-10 Dodji Seketeli <dodji@redhat.com>
1546 Fix bootstap on mips
1547 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
1550 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
1552 * system.h (helper_const_non_const_cast): New inline for
1554 (CONST_CAST2): For gcc version <= 4.0 use
1555 new helper to do const/non-const casting.
1557 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1559 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
1560 * Makefile.in (OBJS-common): Include insn-enums.o.
1561 (insn-enums.o): New rule.
1562 (simple_generated_c): Add insn-enums.c.
1563 (build/genenums.o): New rule.
1564 (genprogmd): Add "enums".
1565 * genconstants.c (print_enum_type): Declare a C string array
1567 * genenums.c: New file.
1568 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
1569 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
1570 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
1572 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1574 * doc/md.texi (define_enum_attr): Document.
1575 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
1576 * read-md.h (lookup_enum_type): Declare.
1577 * read-md.c (lookup_enum_type): New function.
1578 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
1579 * genattrtab.c (attr_desc): Add an enum_name field.
1580 (evaluate_eq_attr): Take the associated attribute as argument.
1581 Get the enum prefix from the enum_name field, if defined.
1582 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
1583 (simplify_test_exp): Pass attr to evaluate_eq_attr.
1584 (add_attr_value): New function, split out from...
1585 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
1586 (write_test_expr): Pass attr to evaluate_eq_attr.
1587 (write_attr_get): Use the enum_name as the enum tag, if defined.
1588 (write_attr_valueq): Use the enum_name as a prefix, if defined.
1589 (find_attr): Initialize enum_name.
1590 (main): Handle DEFINE_ENUM_ATTR.
1591 * gensupport.c (process_rtx): Likewise.
1592 * config/mips/mips.h (mips_tune_attr): Delete.
1593 * config/mips/mips.md (cpu): Use define_attr_enum.
1595 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1597 * doc/md.texi (define_c_enum, define_enum): Document.
1598 * read-md.h (md_constant): Add a parent_enum field.
1599 (enum_value, enum_type): New structures.
1600 (upcase_string, traverse_enum_types): Declare.
1601 * read-md.c (enum_types): New variable.
1602 (upcase_string, add_constant): New functions.
1603 (handle_constants): Don't create the hash table here.
1605 (traverse_md_constants): Don't check for a null md_constants.
1606 (decimal_string, handle_enum, traverse_enum_types): New functions.
1607 (read_md_files): Initialize md_constants and md_enums.
1608 * genconstants.c (print_md_constant): Ignore info argument.
1609 Only print constants that belong to no enum.
1610 (print_enum_type): New function.
1611 (main): Don't pass stdout to print_md_constant. Call print_enum_type
1612 for each defined enum type.
1613 * config/mips/mips.md (processor): New define_enum.
1614 (unspec): New define_c_enum.
1615 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
1616 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
1617 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
1618 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
1619 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1620 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1621 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1622 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1623 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1624 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1625 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1626 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1627 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1628 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1629 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1630 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1631 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1632 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1633 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1634 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1635 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1636 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1637 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1638 (UNSPEC_RDDSP): Move to mips-dsp.md.
1639 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
1640 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
1641 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
1642 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
1643 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
1644 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
1645 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
1646 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
1647 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
1648 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
1649 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
1650 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
1651 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
1652 Moved to mips-dspr2.md.
1653 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
1654 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
1655 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
1656 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
1657 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
1658 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
1659 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1660 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1661 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1662 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1663 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1664 UNSPEC_LOONGSON_PSADBH)
1665 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1666 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1667 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
1668 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1669 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1670 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1671 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
1672 (cpu): Update comment.
1673 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
1674 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
1675 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
1676 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
1677 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
1678 UNSPEC_LOONGSON_PCMPEQ)
1679 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
1680 UNSPEC_LOONGSON_PINSR_0)
1681 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
1682 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
1683 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
1684 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
1685 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
1686 UNSPEC_LOONGSON_PSADBH)
1687 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
1688 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
1689 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
1690 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1691 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1692 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1693 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
1694 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
1695 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
1696 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
1697 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
1698 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
1699 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
1700 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
1701 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
1702 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
1703 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
1704 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
1705 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
1706 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
1707 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
1708 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
1709 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
1710 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
1711 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
1712 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
1713 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1714 (UNSPEC_RDDSP): Moved from mips.md.
1715 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
1716 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
1717 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
1718 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
1719 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
1720 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
1721 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
1722 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
1723 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
1724 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
1725 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
1726 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
1727 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
1728 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
1729 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
1730 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
1731 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
1732 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
1733 (UNSPEC_SCC): Moved from mips.md.
1734 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
1735 "processor_type" to "processor".
1736 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
1737 * config/mips/mips.h (processor_type): Delete.
1738 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
1739 "processor_type" to "processor".
1741 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1743 * configure.ac (tm_include_list): Add insn-constants.h.
1744 * configure: Regenerate.
1745 * Makefile.in (GTM_H): Move insn-constants.h here from...
1747 * mkconfig.sh: Remove special handling for insn-constants.h.
1749 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1751 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
1752 (BUILD_MD): ...this new variable.
1753 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
1754 that include the old contents of simple_generated_h and
1756 (simple_generated_h, simple_generated_c): Include them. Add
1758 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
1759 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
1760 Remove these dependencies from the main rule and include
1761 insn-conditions.md in the command line only if it appears
1762 in the dependency list.
1763 (insn-constants.h, s-constants): Delete.
1764 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
1766 (build/genmddeps.o): Likewise.
1767 (genprogrtl): New variable that contains everything from genprogmd
1768 except mddeps and constants.
1769 (genprogmd): Redefine in terms of genprogrtl. Make these programs
1770 depend on $(BUILD_MD)
1771 (genprog): New variable. Make these programs depend on
1773 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
1774 (main): Use read_md_files instead of init_rtx_reader_args.
1775 * genconstants.c: As for genmddeps.c.
1776 * read-md.h (read_skip_construct): Declare.
1777 * read-md.c (read_skip_construct): New function.
1778 (handle_file): Allow a null handle_directive, skipping the
1780 (parse_include): Update the comment accordingly.
1782 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1784 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
1785 * genmddeps.c: Include read-md.h.
1786 (main): Call init_rtx_reader_args instead of init_md_reader_args.
1787 * genattr.c (main): Likewise.
1788 * genattrtab.c (main): Likewise.
1789 * genautomata.c (main): Likewise.
1790 * gencodes.c (main): Likewise.
1791 * genconditions.c (main): Likewise.
1792 * genconfig.c (main): Likewise.
1793 * genconstants.c (main): Likewise.
1794 * genemit.c (main): Likewise.
1795 * genextract.c (main): Likewise.
1796 * genflags.c (main): Likewise.
1797 * genopinit.c (main): Likewise.
1798 * genoutput.c (main): Likewise.
1799 * genpeep.c (main): Likewise.
1800 * genrecog.c (main): Likewise.
1801 * genpreds.c (main): Likewise.
1802 * gensupport.h (in_fname): Move to read-md.h.
1803 (init_md_reader_args_cb): Rename to...
1804 (init_rtx_reader_args_cb): ...this and return a bool.
1805 (init_md_reader_args): Rename to...
1806 (init_rtx_reader_args): ...this and return a bool.
1807 (include_callback): Move to read-md.h.
1808 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
1809 (file_name_list, first_dir_md_include): Move to read-md.c
1810 (first_bracket_include): Delete unused variable.
1811 (last_dir_md_include): Move to read-md.c.
1812 (process_include): Delete, moving code to read-md.c:handle_include.
1813 (process_rtx): Don't handle INCLUDE.
1814 (save_string): Delete.
1815 (rtx_handle_directive): New function.
1816 (init_md_reader_args_cb): Rename to...
1817 (init_rtx_reader_args_cb): ...this and return a boolean success value.
1819 (init_md_reader_args): Rename to...
1820 (init_rtx_reader_args): ...this and return a boolean success value.
1821 * rtl.def (INCLUDE): Delete.
1822 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
1824 * read-rtl.c (read_conditions): Don't gobble ')' here.
1825 (read_mapping): Likewise.
1826 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
1827 Handle top-level non-rtx constructs here rather than in read_rtx_1.
1828 Store the whole queue in *X. Remove call to init_md_reader.
1829 (read_rtx_1): Rename to...
1830 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
1831 Don't handle top-level non-rtx constructs here. Don't handle (nil)
1833 (read_nested_rtx): New function. Handle (nil) here rather than
1835 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
1837 * read-md.h (directive_handler_t): New type.
1838 (in_fname, include_callback): Moved from read-md.h.
1839 (read_constants, init_md_reader): Delete.
1840 (read_md_files): Declare.
1841 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
1842 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
1844 (read_constants): Rename to...
1845 (handle_constants): ...this. Don't gobble ')' here.
1846 (handle_include, handle_file, handle_toplevel_file)
1847 (parse_include): New functions, mostly taken from gensupport.c.
1848 (init_md_reader): Subsume into...
1849 (read_md_files): ...this new function.
1851 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1853 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
1854 (unread_char): Decrement read_md_lineno after putting back '\n'.
1855 * read-md.c (fatal_with_file_and_line): Push back any characters
1856 that we decide not to add to the context.
1857 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
1858 fatal_expected_char in cases where '/' ends a line (for example).
1859 (read_name): Don't increment read_md_lineno here.
1860 (read_escape): Likewise.
1861 (read_quoted_string): Likewise.
1862 (read_braced_string): Likewise.
1864 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1866 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
1867 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
1868 * genconstants.c: Include read-md.h.
1869 * read-rtl.c (md_constants): Move to read-md.c.
1870 (md_name): Move to read-md.h.
1871 (initialize_iterators): Use leading_string_hash instead of def_hash
1872 and leading_string_eq_p instead of def_name_eq_p.
1873 (read_name): Move to read-md.c.
1874 (def_hash, def_name_eq_p): Delete.
1875 (read_constants, traverse_md_constants): Move to read-md.c.
1876 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
1877 * read-md.h: Include hashtab.h.
1878 (md_name): Moved from read-rtl.c.
1879 (md_constant): Moved from read-md.h.
1880 (leading_string_hash, leading_string_eq_p, read_name)
1881 (read_constants, traverse_md_constants): Declare.
1882 * read-md.c (md_constants): Moved from read-rtl.c.
1883 (leading_string_hash, leading_string_eq_p): New functions.
1884 (read_name, read_constants, traverse_md_constants): Moved from
1887 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1889 * read-rtl.c (md_name): New structure.
1890 (read_name): Take an md_name instead of a buffer pointer.
1891 Use the "string" field instead of strcpy when expanding constants.
1892 (read_constants): Remove the tmp_char argument. Update the calls
1893 to read_name, using two local name buffers instead of the tmp_char
1894 argument. Merge the constant-creation code.
1895 (read_conditions): Remove the tmp_char argument. Update the calls
1896 to read_name, using a local name buffer instead of the tmp_char
1898 (read_mapping): Replace tmp_char variable with a local name buffer.
1899 Update the calls to read_name.
1900 (read_rtx_1): Likewise. Update the calls to read_constants and
1903 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1905 * Makefile.in (build/read-md.o): Depend on errors.h.
1906 * read-md.h (error_with_line): Declare.
1907 * read-md.c: Include errors.h.
1908 (message_with_line_1): New function, extracted from...
1909 (message_with_line): ...here.
1910 (error_with_line): New function.
1911 * genattrtab.c: If a call to message_with_line is followed by
1912 "have_error = 1;", replace both statements with a call to
1914 * genoutput.c: Likewise.
1915 * genpreds.c: Likewise.
1916 * genrecog.c: If a call to message_with_line is followed by
1917 "error_count++;", replace both statements with a call to
1919 (errorcount): Delete.
1920 (main): Don't check it.
1921 * gensupport.c: If a call to message_with_line is followed by
1922 "errors = 1;", replace both statements with a call to error_with_line.
1924 (process_define_cond_exec): Check have_error instead of errors.
1925 (init_md_reader_args_cb): Likewise. Don't set errors.
1927 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1929 * read-md.h (read_md_file): Declare.
1930 (read_char, unread_char): New functions.
1931 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1932 (read_quoted_string, read_string): Remove FILE * argument.
1933 * read-md.c (read_md_file): New variable.
1934 (read_md_filename, read_md_lineno): Update comments and remove
1935 unnecessary initialization.
1936 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
1937 (read_escape, read_quoted_string, read_braced_string, read_string):
1938 Remove FILE * argument. Update calls accordingly, using read_char
1939 and unread_char instead of getc and ungetc.
1940 * rtl.h (read_rtx): Remove FILE * argument.
1941 * read-rtl.c (iterator_group): Remove FILE * argument from
1943 (iterator_traverse_data): Remove "infile" field.
1944 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
1945 (add_mapping, read_name, read_constants, read_conditions)
1946 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
1947 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
1948 Remove file arguments from all calls, using read_char and unread_char
1949 instead of getc and ungetc.
1950 * gensupport.c (process_include): Preserve read_md_file around
1951 the include. Set read_md_file to the handle of the included file.
1952 Update call to read_rtx.
1953 (init_md_reader_args_cb): Set read_md_file to the handle of the file
1954 and remove local FILE *. Update calls to read_rtx.
1956 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1958 * read-md.h (read_rtx_lineno): Rename to...
1959 (read_md_lineno): ...this.
1960 (read_rtx_filename): Rename to...
1961 (read_md_filename): ...this.
1962 (copy_rtx_ptr_loc): Rename to...
1963 (copy_md_ptr_loc): ...this.
1964 (print_rtx_ptr_loc): Rename to...
1965 (print_md_ptr_loc): ...this.
1966 * read-md.c: Likewise. Update references after renaming.
1967 (string_obstack): Replace RTL with MD in comment.
1968 (set_rtx_ptr_loc): Rename to...
1969 (set_md_ptr_loc): ...this.
1970 (get_rtx_ptr_loc): Rename to...
1971 (get_md_ptr_loc): ...this.
1972 * genconditions.c: Update references after renaming.
1973 * genemit.c: Likewise.
1974 * genoutput.c: Likewise.
1975 * genpreds.c: Likewise.
1976 * gensupport.c: Likewise.
1977 * read-rtl.c: Likewise.
1979 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
1981 * Makefile.in (READ_MD_H): New variable.
1982 (BUILD_RTL): Add build/read-md.o.
1983 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
1984 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1985 (build/genattrtab.o, build/genconditions.o build/genemit.o)
1986 (build/genextract.o, build/genflags.o, build/genoutput.o)
1987 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
1988 (build/read-md.o): New rule.
1989 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
1990 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
1991 * coretypes.h: ...here.
1992 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
1993 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
1994 * genattr.c: Include read-md.h.
1995 * genattrtab.c: Likewise.
1996 * genconditions.c: Likewise.
1997 * genemit.c: Likewise.
1998 * genextract.c: Likewise.
1999 * genflags.c: Likewise.
2000 * genoutput.c: Likewise.
2001 * genpreds.c: Likewise.
2002 * genrecog.c: Likewise.
2003 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2004 (join_c_conditions, print_c_condition, read_rtx_filename)
2005 (read_rtx_lineno): Move to read-md.h.
2006 * read-rtl.c: Include read-md.h.
2007 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2008 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2009 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2010 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2011 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2012 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2013 (read_braced_string, read_string): Move to read-md.c.
2014 (read_rtx): Move some initialization to init_md_reader and call
2015 init_md_reader here.
2016 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2018 * gensupport.c: Include read-md.h.
2019 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2020 * read-md.h, read-md.c: New files.
2022 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2024 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2025 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2026 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2027 * config/moxie/moxie.c (moxie_function_value): Make static.
2028 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2029 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2031 2010-06-10 Martin Jambor <mjambor@suse.cz>
2033 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2034 * dbgcnt.def (tree_sra): New counter.
2035 * tree-sra.c: Include dbgcnt.h.
2036 (gate_intra_sra): Check tree_sra debug counter.
2038 2010-06-10 Martin Jambor <mjambor@suse.cz>
2040 PR tree-optimization/44258
2041 * tree-sra.c (build_access_subtree): Return false iff there is a
2043 (build_access_trees): Likewise.
2044 (analyze_all_variable_accesses): Disqualify candidates if
2045 build_access_trees returns true for them.
2047 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2050 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2051 tail-recurse into canonical node. Fast-forward over
2052 non-canonical VALUEs.
2054 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2057 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2058 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2059 (add lea splitter): Likewise.
2060 (add_zext lea splitter): Likewise.
2062 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2064 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2066 2010-06-10 Jan Hubicka <jh@suse.cz>
2068 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2069 (df_live_alloc): Initialize problem data and live_osbtacks.
2070 (df_live_finalize): Remove obstack, problem data; do not
2072 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2073 data when not allocated.
2074 (df_live_verify_solution_start): Do not allocate problem data.
2075 (df_live_verify_solution_end): Check if out is allocated.
2076 (struct df_md_problem_data): New structure.
2077 (df_md_alloc): Allocate problem data.
2078 (df_md_free): Free problem data; do not clear bitmaps.
2080 2010-06-10 Jan Beulich <jbeulich@novell.com>
2083 * configure.ac: Replace $() with ${} when intending to expand
2084 variables rather than invoking commands.
2085 * configure: Re-generate.
2087 2010-06-10 Jan Hubicka <jh@suse.cz>
2089 PR rtl-optimization/44460
2090 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2091 TYPE_NEEDS_CONSTRUCTING sanity check.
2093 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2095 * doc/include/fdl.texi: Move to GFDL version 1.3.
2097 * doc/cpp.texi: Move to GFDL version 1.3.
2098 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2099 * doc/gccint.texi: Move to GFDL version 1.3.
2100 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2101 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2102 * doc/invoke.texi: Move to GFDL version 1.3.
2104 2010-06-09 Jan Hubicka <jh@suse.cz>
2106 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2108 (propagate) ... here; swap the order.
2110 2010-06-09 Jan Hubicka <jh@suse.cz>
2112 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2113 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2114 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2115 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2117 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2119 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2120 Do not the gather memory reference in the outer loop if the step
2123 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2125 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2126 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2127 8 to 4. Minor change of the related comments.
2129 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2131 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2132 the scev analysis when the variable is not used outside the loop
2133 in a close phi node: call compute_overall_effect_of_inner_loop.
2135 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2137 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2138 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2139 (build_sese_conditions_before): Renamed call to single_pred_cond.
2140 (build_sese_conditions_after): Same.
2142 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2144 * graphite-poly.h: Fix comments and indentation.
2145 * graphite-sese-to-poly.c: Same.
2146 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2147 * tree-chrec.c: Fix comments and indentation.
2148 (tree-ssa-loop-niter.c): Same.
2150 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2152 PR rtl-optimization/42461
2153 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2154 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2156 2010-06-09 Jan Hubicka <jh@suse.cz>
2158 * bitmap.c (bitmap_and): Walk array forward.
2159 (bitmap_and_compl_into): Likewise.
2160 (bitmap_xor): Likewise.
2161 (bitmap_xor_into): Likewise.
2162 (bitmap_equal_p): Likewise.
2163 (bitmap_intersect_p): Likewise.
2164 (bitmap_intersect_compl_p): Likewise.
2165 (bitmap_ior_and_into): Likewise.
2166 (bitmap_elt_copy): Likewise.
2167 (bitmap_and_compl): Likewise.
2168 (bitmap_elt_ior): Likewise.
2170 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2172 * opts-common.c (prune_options): Ensure replacement argv array
2173 is correctly terminated by a NULL entry.
2175 2010-06-09 Jan Hubicka <jh@suse.cz>
2177 * cgraph.h (varpool_first_static_initializer,
2178 varpool_next_static_initializer): Make checking only when
2180 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2181 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2182 gcc_assert to gcc_checking_assert.
2183 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2184 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2185 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2186 op_iter_init_phiuse, op_iter_init_phidef,
2187 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2188 gcc_checking_assert.
2189 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2190 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2191 partition_is_global, live_on_entry, live_on_exit,
2192 live_merge_and_clear): Likewise.
2193 * system.h (gcc_checking_assert): New macro.
2194 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2196 2010-06-09 Jason Merrill <jason@redhat.com>
2198 * Makefile.in (TAGS): Collect tags info from c-family.
2200 2010-06-09 Jan Hubicka <jh@suse.cz>
2202 * gimple.h (gcc_gimple_checking_assert): New macro.
2203 (gimple_set_def_ops, gimple_set_use_ops,
2204 gimple_set_vuse, gimple_set_vdef,
2205 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2206 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2207 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2208 gimple_asm_output_op, gimple_asm_output_op_ptr,
2209 gimple_asm_set_output_op, gimple_asm_clobber_op,
2210 gimple_asm_set_clobber_op, gimple_asm_label_op,
2211 gimple_asm_set_label_op, gimple_try_set_kind,
2212 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2213 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2214 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2215 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2216 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2217 gimple_omp_for_set_initial, gimple_omp_for_final,
2218 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2219 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2220 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2221 conditional with ENABLE_GIMPLE_CHECKING.
2222 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2224 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2226 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2227 (get_computation_cost_at): Use it.
2228 (determine_use_iv_cost_condition): Likewise.
2229 (determine_iv_cost): Likewise.
2231 2010-06-09 Richard Guenther <rguenther@suse.de>
2233 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2236 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2238 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2240 2010-06-09 Martin Jambor <mjambor@suse.cz>
2242 PR tree-optimization/44423
2243 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2244 (analyze_access_subtree): Pass negative allow_replacements to children
2245 if the current type is scalar.
2247 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2250 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2251 * doc/plugins.texi (Plugin license check): Update information
2252 on type of plugin_is_GPL_compatible.
2253 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2254 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2256 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2258 * config/arm/arm.c (thumb2_reorg): New function.
2259 (arm_reorg): Call it.
2260 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2261 arithmetic operations): Delete.
2263 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2266 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2269 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2272 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2274 2010-06-08 Jan Hubicka <jh@suse.cz>
2276 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2277 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2279 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2281 PR tree-optimization/39874
2283 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2285 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2286 same_bool_result_p): New.
2287 (and_var_with_comparison, and_var_with_comparison_1,
2288 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2289 (or_var_with_comparison, or_var_with_comparison_1,
2290 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2291 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2292 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2293 of combine_comparisons.
2294 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2296 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2298 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2299 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2300 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2301 pdp11_function_value_regno_p): New functions.
2302 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2303 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2305 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2307 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2308 Thumb-2 in the MINUS case.
2310 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2312 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2314 * doc/gty.texi (GTY Options): Document typed GC allocation and
2315 variable_size GTY option.
2317 * ggc-internal.h: New.
2319 * ggc.h: Update copyright year.
2320 (digit_string): Move to stringpool.c.
2321 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2322 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2323 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2324 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2325 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2326 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2327 (ggc_force_collect, ggc_get_size, ggc_statistics)
2328 (ggc_print_common_statistics): Move to ggc-internal.h.
2329 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2330 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2331 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2332 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2333 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2334 (ggc_alloc_zone_pass_stat): Remove.
2335 (ggc_internal_alloc_stat, ggc_internal_alloc)
2336 (ggc_internal_cleared_alloc_stat): New.
2337 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2338 (ggc_internal_vec_alloc_stat)
2339 (ggc_internal_cleared_vec_alloc_stat)
2340 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2341 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2342 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2343 (ggc_cleared_alloc_ptr_array_two_args): New.
2344 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2345 (ggc_splay_alloc): Change the type of the first argument to
2347 (ggc_alloc_string): Make macro.
2348 (ggc_alloc_string_stat): New.
2349 (ggc_strdup): Redefine.
2350 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2351 (ggc_alloc_rtvec_sized): New.
2352 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2353 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2354 (ggc_internal_cleared_alloc_zone_stat)
2355 (ggc_internal_zone_alloc_stat)
2356 (ggc_internal_zone_cleared_alloc_stat)
2357 (ggc_internal_zone_vec_alloc_stat)
2358 (ggc_alloc_zone_rtx_def_stat)
2359 (ggc_alloc_zone_tree_node_stat)
2360 (ggc_alloc_zone_cleared_tree_node_stat)
2361 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2363 * ggc-common.c: Include ggc-internal.h.
2364 (ggc_internal_cleared_alloc_stat): Rename from
2365 ggc_alloc_cleared_stat.
2366 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2367 (ggc_calloc): Remove.
2368 (ggc_cleared_alloc_htab_ignore_args): New.
2369 (ggc_cleared_alloc_ptr_array_two_args): New.
2370 (ggc_splay_alloc): Add obj_type parameter.
2371 (init_ggc_heuristics): Formatting fixes.
2373 * ggc-none.c: Update copyright year.
2374 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2375 (ggc_alloc_cleared_stat): Rename to
2376 ggc_internal_cleared_alloc_stat.
2377 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2379 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2380 Remove references to ggc_alloc in comments.
2381 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2382 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2383 (new_ggc_zone, destroy_ggc_zone): Remove.
2384 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2386 * ggc-zone.c: Include ggc-internal.h. Remove references to
2387 ggc_alloc in comments.
2388 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2389 (ggc_internal_alloc_zone_pass_stat): New.
2390 (ggc_internal_cleared_alloc_zone_stat): New.
2391 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2392 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2393 (new_ggc_zone, destroy_ggc_zone): Remove.
2395 * stringpool.c: Update copyright year. Include ggc-internal.h
2396 (digit_vector): Make static.
2397 (digit_string): Moved from ggc.h.
2398 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2399 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2401 * Makefile.in (GGC_INTERNAL_H): New.
2402 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2403 $(GGC_INTERNAL_H) to dependencies.
2405 * gentype.c: Update copyright year.
2406 (walk_type): Accept variable_size GTY option.
2407 (USED_BY_TYPED_GC_P): New macro.
2408 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2409 whitespace at the end of strings.
2410 (get_type_specifier, variable_size_p): New functions.
2411 (alloc_quantity, alloc_zone): New enums.
2412 (write_typed_alloc_def): New function.
2413 (write_typed_struct_alloc_def): Likewise.
2414 (write_typed_typed_typedef_alloc_def): Likewise.
2415 (write_typed_alloc_defns): Likewise.
2416 (output_typename, write_splay_tree_allocator_def): Likewise.
2417 (write_splay_tree_allocators): Likewise.
2418 (main): Call write_typed_alloc_defns and
2419 write_splay_tree_allocators.
2421 * lto-streamer.h (lto_file_decl_data_ptr): New.
2423 * passes.c (order): Define using cgraph_node_ptr.
2425 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2428 * gimple.h (union gimple_statement_d): Likewise.
2430 * rtl.h (struct rtx_def): Likewise.
2431 (struct rtvec_def): Likewise.
2433 * tree.h (union tree_node): Likewise.
2435 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
2437 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
2439 * tree-scalar-evolution.c (scev_initialize): Likewise.
2441 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
2443 * dwarf2asm.c (dw2_force_const_mem): Likewise.
2445 * omp-low.c (lower_omp_critical): Likewise.
2447 * bitmap.h (struct bitmap_head_def): Update comment to not
2448 reference ggc_alloc.
2450 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
2452 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
2454 * ipa-prop.c (duplicate_ggc_array): Rename to
2455 duplicate_ipa_jump_func_array. Use typed GC allocation.
2456 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
2458 * gimple.c (gimple_alloc_stat): Use
2459 ggc_alloc_cleared_gimple_statement_d_stat.
2461 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
2463 * tree.c (make_node_stat): Use
2464 ggc_alloc_zone_cleared_tree_node_stat.
2465 (make_tree_vec_stat): Likewise.
2466 (build_vl_exp_stat): Likewise.
2467 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
2468 (make_tree_binfo_stat): Likewise.
2469 (tree_cons_stat): Likewise.
2471 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
2472 (shallow_copy_rtx_stat): Likewise.
2473 (make_node_stat): Likewise.
2475 * lto-symtab.c: Fix comment.
2477 * tree-cfg.c (create_bb): Update comment to not reference
2479 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
2481 * varpool.c (varpool_node): Use typed GC allocation.
2482 (varpool_extra_name_alias): Likewise.
2484 * varasm.c (emutls_decl): Likewise.
2485 (get_unnamed_section): Likewise.
2486 (get_noswitch_section): Likewise.
2487 (get_section): Likewise.
2488 (get_block_for_section): Likewise.
2489 (build_constant_desc): Likewise.
2490 (create_constant_pool): Likewise.
2491 (force_const_mem): Likewise.
2493 * tree.c (build_vl_exp_stat): Likewise.
2494 (build_real): Likewise.
2495 (build_string): Likewise.
2496 (decl_debug_expr_insert): Likewise.
2497 (decl_value_expr_insert): Likewise.
2498 (type_hash_add): Likewise.
2499 (build_omp_clause): Likewise.
2501 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
2503 * tree-ssa.c (init_tree_ssa): Likewise.
2505 * tree-ssa-structalias.c (heapvar_insert): Likewise.
2507 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
2509 * tree-ssa-loop-niter.c (record_estimate): Likewise.
2511 * tree-ssa-alias.c (get_ptr_info): Likewise.
2513 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
2515 * tree-phinodes.c (allocate_phi_node): Likewise.
2517 * tree-iterator.c (tsi_link_before): Likewise.
2518 (tsi_link_after): Likewise.
2520 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
2522 * tree-dfa.c (create_var_ann): Likewise.
2524 * tree-cfg.c (create_bb): Likewise.
2526 * toplev.c (alloc_for_identifier_to_locale): Likewise.
2527 (general_init): Likewise.
2529 * stringpool.c (stringpool_ggc_alloc): Likewise.
2530 (gt_pch_save_stringpool): Likewise.
2532 * sese.c (if_region_set_false_region): Likewise.
2534 * passes.c (do_per_function_toporder): Likewise.
2536 * optabs.c (set_optab_libfunc): Likewise.
2537 (set_conv_libfunc): Likewise.
2539 * lto-symtab.c (lto_symtab_register_decl): Likewise.
2541 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
2542 (input_eh_region): Likewise.
2543 (input_eh_lp): Likewise.
2544 (make_new_block): Likewise.
2545 (unpack_ts_real_cst_value_fields): Likewise.
2547 * lto-section-in.c (lto_new_in_decl_state): Likewise.
2549 * lto-cgraph.c (input_node_opt_summary): Likewise.
2551 * loop-init.c (loop_optimizer_init): Likewise.
2553 * lambda.h (lambda_vector_new): Likewise.
2555 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2557 * ira.c (update_equiv_regs): Likewise.
2559 * ipa.c (cgraph_node_set_new): Likewise.
2560 (cgraph_node_set_add): Likewise.
2561 (varpool_node_set_new): Likewise.
2562 (varpool_node_set_add): Likewise.
2564 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2565 (duplicate_ipa_jump_func_array): Likewise.
2566 (ipa_read_node_info): Likewise.
2568 * ipa-cp.c (ipcp_create_replace_map): Likewise.
2570 * integrate.c (get_hard_reg_initial_val): Likewise.
2572 * gimple.c (gimple_alloc_stat): Likewise.
2573 (gimple_build_omp_for): Likewise.
2574 (gimple_seq_alloc): Likewise.
2575 (gimple_copy): Likewise.
2577 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
2578 (gsi_insert_after_without_update): Likewise.
2580 * function.c (add_frame_space): Likewise.
2581 (insert_temp_slot_address): Likewise.
2582 (assign_stack_temp_for_type): Likewise.
2583 (allocate_struct_function): Likewise.
2584 (types_used_by_var_decl_insert): Likewise.
2586 * except.c (init_eh_for_function): Likewise.
2587 (gen_eh_region): Likewise.
2588 (gen_eh_region_catch): Likewise.
2589 (gen_eh_landing_pad): Likewise.
2590 (add_call_site): Likewise.
2592 * emit-rtl.c (get_mem_attrs): Likewise.
2593 (get_reg_attrs): Likewise.
2594 (start_sequence): Likewise.
2595 (init_emit): Likewise.
2597 * dwarf2out.c (new_cfi): Likewise.
2598 (queue_reg_save): Likewise.
2599 (dwarf2out_frame_init): Likewise.
2600 (new_loc_descr): Likewise.
2601 (find_AT_string): Likewise.
2602 (new_die): Likewise.
2603 (add_var_loc_to_decl): Likewise.
2604 (clone_die): Likewise.
2605 (clone_as_declaration): Likewise.
2606 (break_out_comdat_types): Likewise.
2607 (new_loc_list): Likewise.
2608 (loc_descriptor): Likewise.
2609 (add_loc_descr_to_each): Likewise.
2610 (add_const_value_attribute): Likewise.
2611 (tree_add_const_value_attribute): Likewise.
2612 (add_comp_dir_attribute): Likewise.
2613 (add_name_and_src_coords_attributes): Likewise.
2614 (lookup_filename): Likewise.
2615 (store_vcall_insn): Likewise.
2616 (dwarf2out_init): Likewise.
2618 * dbxout.c (dbxout_init): Likewise.
2620 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
2622 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
2624 * config/score/score7.c (score7_output_external): Likewise.
2626 * config/score/score3.c (score3_output_external): Likewise.
2628 * config/s390/s390.c (s390_init_machine_status): Likewise.
2630 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
2631 (rs6000_init_machine_status): Likewise.
2632 (output_toc): Likewise.
2634 * config/pa/pa.c (pa_init_machine_status): Likewise.
2635 (get_deferred_plabel): Likewise.
2637 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
2639 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
2641 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
2643 * config/mep/mep.c (mep_init_machine_status): Likewise.
2644 (mep_note_pragma_flag): Likewise.
2646 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
2648 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
2650 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
2652 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
2653 (i386_pe_maybe_record_exported_symbol): Likewise.
2655 * config/i386/i386.c (get_dllimport_decl): Likewise.
2656 (ix86_init_machine_status): Likewise.
2657 (assign_386_stack_local): Likewise.
2659 * config/frv/frv.c (frv_init_machine_status): Likewise.
2661 * config/darwin.c (machopic_indirection_name): Likewise.
2663 * config/cris/cris.c (cris_init_machine_status): Likewise.
2665 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
2667 * config/avr/avr.c (avr_init_machine_status): Likewise.
2669 * config/arm/arm.c (arm_init_machine_status): Likewise.
2671 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
2672 (alpha_need_linkage): Likewise.
2673 (alpha_use_linkage): Likewise.
2675 * cgraph.c (cgraph_allocate_node): Likewise.
2676 (cgraph_create_edge_1): Likewise.
2677 (cgraph_create_indirect_edge): Likewise.
2678 (cgraph_add_asm_node): Likewise.
2680 * cfgrtl.c (init_rtl_bb_info): Likewise.
2682 * cfgloop.c (alloc_loop): Likewise.
2683 (rescan_loop_exit): Likewise.
2685 * cfg.c (init_flow): Likewise.
2686 (alloc_block): Likewise.
2687 (unchecked_make_edge): Likewise.
2689 * c-parser.c (c_parse_init): Likewise.
2690 (c_parse_file): Likewise.
2692 * c-decl.c (bind): Likewise.
2693 (record_inline_static): Likewise.
2694 (push_scope): Likewise.
2695 (make_label): Likewise.
2696 (lookup_label_for_goto): Likewise.
2697 (finish_struct): Likewise.
2698 (finish_enum): Likewise.
2699 (c_push_function_context): Likewise.
2701 * bitmap.c (bitmap_element_allocate): Likewise.
2702 (bitmap_gc_alloc_stat): Likewise.
2704 * alias.c (record_alias_subset): Likewise.
2705 (init_alias_analysis): Likewise.
2707 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
2709 * fold-const.c (fold_comparison): Remove redundant parenthesis.
2710 * tree-inline.c (expand_call_inline): Pass translated return value of
2711 cgraph_inline_failed_string to diagnostic function.
2713 2010-06-08 Andrew Pinski <pinskia@gmail.com>
2714 Shujing Zhao <pearly.zhao@oracle.com>
2717 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
2718 implicit bad conversions is initialization.
2719 (error_init): Use gmsgid instead of msgid for argument name and change
2721 (pedwarn_init): Use gmsgid instead of msgid for argument name and
2722 change the call for pedwarn.
2723 (warning_init): Use gmsgid instead of msgid for argument name and
2724 change the call for warning.
2726 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
2728 * config/mips/mips-protos.h (mips_print_operand): Delete.
2729 (mips_print_operand_address): Delete.
2730 * config/mips/mips.h (mips_print_operand_punct): Delete.
2731 (PRINT_OPERAND): Delete.
2732 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2733 (PRINT_OPERAND_ADDRESS): Delete.
2734 * config/mips/mips.c (mips_print_operand_punct): Make static.
2735 (mips_print_operand_address): Make static.
2736 (mips_print_operand): Make static. Call
2737 mips_print_operand_punct_valid_p.
2738 (mips_print_operand_punct_valid_p): New function.
2739 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2740 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2742 2010-06-07 Jan Hubicka <jh@suse.cz>
2745 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
2748 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
2750 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
2753 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2755 * doc/sourcebuild.texi (Effective-Target Keywords, Other
2756 attributes): Document gas.
2758 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
2760 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
2761 <TYPE_LEA>: Split instruction.
2762 <default>: Remove alternative 2 handling.
2763 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
2764 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
2765 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
2767 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
2768 (ashift_zext lea splitter): Use DImode for multiplication.
2770 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
2771 to generate addition.
2773 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2775 * common.opt (fira-verbose): Use Var.
2776 (fpcc-struct-return): Use Init instead of VarExists.
2777 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
2779 * flags.h (flag_signed_char, flag_short_enums,
2780 flag_pcc_struct_return, flag_ira_verbose,
2781 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
2782 * toplev.c (flag_detailed_statistics, flag_signed_char,
2783 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
2784 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
2785 * toplev.h (flag_crossjumping, flag_if_conversion,
2786 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
2787 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
2788 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
2789 flag_cprop_registers, time_report, flag_ira_loop_pressure,
2790 flag_ira_coalesce, flag_ira_move_spills,
2791 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
2793 2010-06-07 Jan Hubicka <jh@suse.cz>
2795 * df-core.c (df_analyze_problem): Do verification after allocation.
2797 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
2798 (df_lr_alloc): Initialize problem data; move bitmaps to
2800 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
2801 (df_lr_verify_solution_start): Do not initialize problem data;
2802 allocate bitmaps in lr_bitmaps.
2803 (df_lr_verify_solution_end): Do not free problem data.
2805 2010-06-07 Jan Hubicka <jh@suse.cz>
2807 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
2808 if caller is noreturn.
2809 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
2810 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
2811 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
2812 * ipa-pure-const.c (check_decl): Add IPA parameter.
2813 (state_from_flags): New function.
2814 (better_state, worse_state): New functions.
2815 (check_call): When in IPA mode, do not care about callees.
2816 (check_load, check_store): Update.
2817 (check_ipa_load, check_ipa_store): New.
2818 (check_stmt): When in IPA mode, use IPA checkers.
2819 (analyze_function): Use state_from_flags.
2820 (propagate): Check indirect edges and references.
2822 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
2824 PR rtl-optimization/44404
2825 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
2826 of count_occurrences to see if it's safe to modify mem_insn.
2828 2010-06-07 Richard Guenther <rguenther@suse.de>
2830 * gimplify.c (gimplify_cleanup_point_expr): For empty body
2831 and EH-only cleanup drop the cleanup instead of inserting it
2834 2010-06-07 Ira Rosen <irar@il.ibm.com>
2836 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
2838 * targhooks.c (default_builtin_vectorization_cost): New function.
2839 * targhooks.h (default_builtin_vectorization_cost): Declare.
2840 * target.h (enum vect_cost_for_stmt): Define.
2841 (builtin_vectorization_cost): Change argument and comment.
2842 * tree-vectorizer.h: Remove cost model macros.
2843 * tree-vect-loop.c: Include target.h.
2844 (vect_get_cost): New function.
2845 (vect_estimate_min_profitable_iters): Replace cost model macros with
2846 calls to vect_get_cost.
2847 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
2848 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
2849 default implementation.
2850 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
2851 calls to target hook builtin_vectorization_cost.
2852 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
2854 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
2855 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
2856 implementation to return costs.
2857 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
2858 * config/spu/spu.h: Remove vectorizer cost model macros.
2859 * config/i386/i386.h: Likewise.
2860 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
2861 a call to target hook builtin_vectorization_cost.
2863 2010-06-06 Sriraman Tallam <tmsriram@google.com>
2866 * config/i386/i386.c (override_options): Turn zee pass on for level 2
2867 and above and defer till target is known.
2868 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
2871 2010-05-25 Jan Hubicka <jh@suse.cz>
2873 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
2874 (df_compact_blocks): Likewise.
2875 * df.h (struct df): Turn hardware_regs_used,
2876 regular_block_artificial_uses, eh_block_artificial_uses,
2877 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
2879 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
2880 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
2881 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
2882 df_scan_blocks, df_insn_delete, df_insn_rescan,
2883 df_insn_rescan_debug_internal, df_insn_rescan_all,
2884 df_process_deferred_rescans, df_process_deferred_rescans,
2885 df_notes_rescan, df_get_call_refs, df_get_call_refs,
2886 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
2887 df_record_entry_block_defs, df_record_exit_block_uses,
2888 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
2889 df_scan_verify): Update.
2891 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2894 * c-common.c (is_typedef_decl): Move this definition ...
2895 * tree.c (is_typedef_decl): ... here.
2896 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2897 * c-common.h (is_typedef_decl): Move this declaration ...
2898 * tree.h (is_typedef_decl): ... here.
2899 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2900 * dwarf2out.c (is_naming_typedef_decl): New function.
2901 (gen_tagged_type_die): Split out of ...
2902 (gen_type_die_with_usage): ... this function. When an anonymous
2903 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2904 is emitted for the typedef.
2905 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2906 anonymous tagged types.
2908 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2911 * c-decl.c (grokdeclarator): Delete warning.
2913 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
2915 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
2916 newly built CALL_EXPR.
2917 * tree-profile.c (tree_profiling): Don't profile functions produced
2920 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
2924 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
2925 endianness-independent.
2927 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2929 * c-common.c: Move to c-family/.
2930 * c-common.def: Likewise.
2931 * c-common.h: Likewise.
2932 * c-cppbuiltin.c: Likewise.
2933 * c-dump.c: Likewise.
2934 * c-format.c: Likewise.
2935 * c-format.h : Likewise.
2936 * c-gimplify.c: Likewise.
2937 * c-lex.c: Likewise.
2938 * c-omp.c: Likewise.
2940 * c-opts.c: Likewise.
2941 * c-pch.c: Likewise.
2942 * c-ppoutput.c: Likewise.
2943 * c-pragma.c: Likewise.
2944 * c-pragma.h: Likewise.
2945 * c-pretty-print.c: Likewise.
2946 * c-pretty-print.h: Likewise.
2947 * c-semantics.c: Likewise.
2948 * stub-objc.c: Likewise.
2950 * gengtype.c (get_file_langdir): Special-case files in c-family/.
2951 (get_output_file_with_visibility): Fix name for c-common.h.
2952 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
2954 * c-tree.h: Update include path for moved files.
2955 * c-lang.c: Likewise.
2956 * c-lang.h: Likewise.
2957 * c-parser.c: Likewise.
2958 * c-convert.c: Likewise.
2959 * c-decl.c: Likewise.
2960 * c-objc-common.c: Likewise.
2961 * configure.ac: Make sure c-family/ exists in the build directory.
2962 * configure: Regenerate.
2963 * Makefile.in: Update paths for moved files. Regroup files per
2964 location and update dependencies. Move generated_files down after
2967 * config/spu/spu-c.c: Update paths for moved files.
2968 * config/mep/mep-pragma.c: Likewise.
2969 * config/darwin-c.c: Likewise.
2970 * config/i386/msformat-c.c: Likewise.
2971 * config/i386/i386-c.c: Likewise.
2972 * config/avr/avr-c.c: Likewise.
2973 * config/sol2-c.c: Likewise.
2974 * config/ia64/ia64-c.c: Likewise.
2975 * config/rs6000/rs6000-c.c: Likewise.
2976 * config/arm/arm.c: Likewise.
2977 * config/arm/arm-c.c: Likewise.
2978 * config/h8300/h8300.c: Likewise.
2979 * config/v850/v850-c.c: Likewise.
2981 * config/t-darwin: Fix dependencies for moved files.
2982 * config/t-sol2: Fix dependencies for moved files.
2983 * config/mep/t-mep: Fix dependencies for moved files.
2984 * config/ia64/t-ia64: Fix dependencies for moved files.
2985 * config/rs6000/t-rs6000: Fix dependencies for moved files.
2986 * config/v850/t-v850: Fix dependencies for moved files.
2987 * config/v850/t-v850e: Fix dependencies for moved files.
2989 * config/m32c/m32c-pragma.c
2991 * po/exgettext: Look in c-family/ also.
2993 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
2995 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
2996 (mark_control_dependent_edges_necessary): Call it instead of marking
2997 the last statement manually.
2998 (propagate_necessity): Likewise.
3000 2010-06-05 Jan Hubicka <jh@suse.cz>
3002 * basic-block.h (compute_dominance_frontiers): Updated.
3003 (compute_idf): Likewise.
3005 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3006 for dominance frontiers.
3007 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3008 (insert_updated_phi_nodes_for): Likewise.
3009 (update_ssa): Likewise.
3010 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3011 (compute_dominance_frontiers): Likewise.
3012 (compute_idf): Likewise.
3013 * df-problems.c (df_md_local_compute): Likewise.
3015 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3017 * target.h (struct gcc_target): Add memory_move_cost field.
3018 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3019 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3020 * targhooks.c (default_memory_move_cost): New function.
3021 * targhooks.h (default_memory_move_cost): Declare function.
3022 * reload.h (memory_move_cost): Declare.
3023 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3024 * reginfo.c (memory_move_cost): New function.
3025 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3026 * ira.h (ira_memory_move_cost): Update comment.
3027 * ira.c: (ira_memory_move_cost): Update comment.
3028 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3029 with memory_move_cost.
3030 * postreload.c (reload_cse_simplify_set): (Ditto.).
3031 * reload1.c (choose_reload_regs): (Ditto.).
3032 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3033 (MEMORY_MOVE_COST): Revise documentation.
3035 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3036 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3037 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3038 type of 'in' argument to bool.
3039 (TARGET_MEMORY_MOVE_COST): Define.
3041 2010-06-05 Jan Hubicka <jh@suse.cz>
3043 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3044 that cannot return. Be more careful when merging the results with
3045 previously known ones.
3047 2010-06-05 Matthias Klose <doko@ubuntu.com>
3049 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3050 function to add the -iplugindir option.
3051 (find_plugindir_spec_function): Add new declaration and function.
3052 (static_spec_func): Use it for "find-plugindir".
3054 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3057 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3058 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3059 statement expression.
3061 2010-06-05 Jan Hubicka <jh@suse.cz>
3063 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3064 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3065 dense_invalidated_by_call to bitmap head.
3066 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3067 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3068 df_rd_start_dump, df_lr_verify_transfer_functions,
3069 df_live_verify_transfer_functions, df_chain_create_bb,
3070 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3071 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3072 df_simulate_one_insn_forwards, df_md_alloc,
3073 df_md_bb_local_compute_process_def,
3074 df_md_bb_local_compute_process_def, df_md_local_compute,
3075 df_md_transfer_function df_md_free): Update.
3077 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3080 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3081 target type for ADDR_EXPR; require no changes to qualifiers except
3083 * c-tree.h (c_build_type_variant): Remove.
3085 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3087 * genautomata.c (get_excl_set): Do work per element, not per char.
3088 (check_presence_pattern_sets): Similar.
3089 (check_absence_pattern_sets): Similar.
3091 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3093 * genautomata.c (curr_state_pass_num): Delete.
3094 (min_issue_delay_pass_states): Delete.
3095 (min_issue_delay): Delete.
3096 (initiate_min_issue_delay_pass_states): Delete.
3097 (output_min_issue_delay_table): Compute min_issue_delay_vect
3098 using a breadth-first search variant.
3099 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3101 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3104 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3105 (df_byte_lr_bb_local_compute): Likewise.
3107 2010-06-03 Jason Merrill <jason@redhat.com>
3109 Implement noexcept operator (5.3.7)
3110 * c-common.c (c_common_reswords): Add noexcept.
3111 * c-common.h (enum rid): Add RID_NOEXCEPT.
3113 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3115 * config/darwin-driver.c (darwin_default_min_version): Use
3116 GCC-specific formats in diagnostics.
3117 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3119 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3120 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3121 eval_spec_function, handle_braces, process_brace_body, main,
3122 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3123 getenv_spec_function, compare_version_strings,
3124 version_compare_spec_function): Use GCC-specific formats in
3127 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3129 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3130 that operand 0 and operand 1 are equal.
3131 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3132 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3133 and operand 1 are equal.
3134 <default>: Ditto. Remove ??? comment.
3135 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3136 and operand 1 are equal.
3137 <default>: Ditto. Remove ??? comment.
3138 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3140 (*add<mode>_4) <default>: Ditto.
3141 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3143 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3145 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3146 * config/i386/i386.c (ix86_print_operand): Make non-static.
3147 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3148 * output.h (output_operand): Declare.
3149 * final.c (output_operand): Make non-static.
3151 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3153 PR rtl-optimization/44013
3154 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3155 when processing debug insns.
3158 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3159 recursing. Check that recursion is bounded. Rename inner var
3160 to avoid hiding incoming argument.
3162 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3164 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3169 (*addqi_ext_1_rex64): Ditto.
3170 (*addqi_ext_1): Ditto.
3172 (*addqi_4): Check for incdec_operand in QImode.
3174 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3175 using SWI mode iterator.
3176 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3177 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3179 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3180 using SWI mode iterator.
3182 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3185 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3186 * c-format.c (gcc_diag_flag_specs): Add hash.
3187 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3188 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3189 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3190 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3191 (pp_c_type_qualifier_list): Call the function above.
3192 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3193 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3194 (WARN_FOR_QUALIFIERS): New macro.
3195 (convert_for_assignment): Use it.
3197 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3199 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3201 2010-06-04 Jan Hubicka <jh@suse.cz>
3203 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3204 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3205 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3206 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3207 * fwprop.c (single_def_use_enter_block): Likewise.
3208 * ddg.c (create_ddg_dep_from_intra_loop_link,
3209 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3210 * loop-iv.c (latch_dominating_def): Likewise.
3211 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3212 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3213 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3214 df_rd_transfer_function, df_rd_top_dump,
3215 df_rd_bottom_dump): Update.
3216 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3217 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3218 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3219 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3220 df_lr_verify_solution_start, df_lr_verify_solution_end,
3221 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3222 df_live_free_bb_info, df_live_alloc, df_live_reset,
3223 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3224 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3225 df_live_verify_solution_start, df_live_verify_solution_end,
3226 df_live_verify_transfer_functions, df_chain_create_bb,
3227 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3228 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3229 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3230 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3231 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3232 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3233 df_byte_lr_bottom_dump, df_create_unused_note,
3234 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3235 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3236 df_md_transfer_function, df_md_init, df_md_confluence_0,
3238 df_md_top_dump, df_md_bottom_dump): Update.
3239 (struct df_lr_problem_data): Embedd bitmap headers.
3241 2010-06-04 Jan Hubicka <jh@suse.cz>
3243 * dce.c (dce_process_block): Do not re-scan already marked
3246 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3248 PR rtl-optimization/39871
3249 PR rtl-optimization/40615
3250 PR rtl-optimization/42500
3251 PR rtl-optimization/42502
3252 * ira.c (init_reg_equiv_memory_loc: New function.
3253 (ira): Call it twice.
3254 * reload.h (calculate_elim_costs_all_insns): Declare.
3255 * ira-costs.c: Include "reload.h".
3256 (regno_equiv_gains): New static variable.
3257 (init_costs): Allocate it.
3258 (finish_costs): Free it.
3259 (ira_costs): Call calculate_elim_costs_all_insns.
3260 (find_costs_and_classes): Take estimated elimination costs
3262 (ira_adjust_equiv_reg_cost): New function.
3263 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3264 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3265 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3266 (elim_bb): New static variable.
3267 (reload): Move code out of here into init_eliminable_invariants and
3268 free_reg_equiv. Call them.
3269 (calculate_elim_costs_all_insns): New function.
3270 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3271 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3272 but call note_reg_elim_costly if we turned a valid memory address
3273 into an invalid one.
3274 * Makefile.in (ira-costs.o): Depend on reload.h.
3276 2010-06-04 Julian Brown <julian@codesourcery.com>
3278 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3281 2010-06-04 Richard Guenther <rguenther@suse.de>
3284 * cgraph.h (struct varpool_node): Add lto_file_data field.
3285 * lto-cgraph.c (input_varpool_node): Initialize it.
3287 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3289 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3290 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3291 predicate in "type" attribute calculation.
3292 (*addsi_1_zext): Ditto.
3293 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3294 (*addsi_2_zext): Ditto.
3295 (*add<mode>_3): Ditto.
3296 (*addsi_3_zext): Ditto.
3297 (*add<mode>_5): Ditto.
3299 2010-06-03 Jan Hubicka <jh@suse.cz>
3301 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3303 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3305 2010-06-03 Jan Hubicka <jh@suse.cz>
3307 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3308 micro-optimize the checks when to add new note.
3310 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3312 * final.c (output_asm_insn): Call
3313 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3314 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3315 (output_address): Call targetm.asm_out.print_operand_address.
3317 * target.h (struct gcc_target): Add print_operand,
3318 print_operand_address, and print_operand_punct_valid_p fields.
3319 * targhooks.h (default_print_operand): Declare.
3320 (default_print_operand_address): Declare.
3321 (default_print_operand_punct_valid_p): Declare.
3322 * targhooks.c (default_print_operand): Define.
3323 (default_print_operand_address): Define.
3324 (default_print_operand_punct_valid_p): Define.
3325 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3326 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3327 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3328 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3329 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3330 * vmsdbgout.c (addr_const_to_string): Update comment.
3331 * config/i386/i386.c (print_operand): Rename to...
3332 (ix86_print_operand): ...this. Make static.
3333 (print_operand_address): Rename to...
3334 (ix86_print_operand_address): ...this. Make static. Call
3335 ix86_print_operand instead of PRINT_OPERAND.
3336 (ix86_print_operand_punct_valid_p): New function.
3337 (TARGET_PRINT_OPERAND): Define.
3338 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3339 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3340 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3341 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3342 (PRINT_OPERAND): Delete.
3343 (PRINT_OPERAND_ADDRESS): Delete.
3344 * config/i386/i386-protos.h (print_operand): Delete prototype.
3345 (print_operand_address): Delete prototype.
3347 2010-06-03 Richard Guenther <rguenther@suse.de>
3349 PR tree-optimization/44403
3350 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3351 Preserve pointer qualifiers.
3352 (vect_create_data_ref_ptr): Likewise.
3354 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3357 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3359 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3361 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3364 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3365 return false if merging the bbs would lead to goto_locus
3366 location being lost from the IL.
3368 2010-06-03 Jan Hubicka <jh@suse.cz>
3369 Jakub Jelinek <jakub@redhat.com>
3371 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3372 set->regs[i] is NULL or has just one entry.
3374 2010-06-03 Jan Hubicka <jh@suse.cz>
3376 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3377 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3379 2010-06-03 Paul Brook <paul@codesourcery.com>
3381 * config/arm/arm.c (FL_TUNE): Define.
3382 (arm_default_cpu, arm_cpu_select): Remove.
3383 (all_cores): Populate core field.
3384 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3385 (arm_find_cpu): New function.
3386 (arm_handle_option): Lookup cpu/architecture names.
3387 (arm_override_options): Cleanup mcpu/march/mtune handling.
3388 (arm_file_start): Ditto.
3390 2010-06-03 Alan Modra <amodra@gmail.com>
3393 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3394 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3395 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3396 (rs6000_emit_load_toc_table): Likewise.
3398 2010-06-02 Jan Hubicka <jh@suse.cz>
3400 * passes.c (init_optimization_passes): Put ipa reference
3401 after ipa pure-const.
3403 2010-06-02 Jan Hubicka <jh@suse.cz>
3405 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3406 calls_read_all and calls_write_all.
3407 (get_reference_optimization_summary): Fix formatting.
3408 (is_proper_for_analysis): Check that decl is not readonly.
3409 (propagate_bits): Check CONST/PURE/noreturn flags.
3410 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3411 (analyze_function): Ignore indirect edges.
3412 (copy_global_bitmap): For all module statics, do nothing.
3413 (generate_summary): Do not print calls_read_all/calls_write_all.
3414 (read_write_all_from_decl): Take node as argument; check
3415 cgraph_node_cannot_return.
3416 (propagate): Reorganize read_all/write_all computation;
3417 check indirect edges; check ecf flags; use all_module_statics
3418 in the results; do not free all_module_statics.
3419 (stream_out_bitmap): Handle all_module_statics.
3420 (ipa_reference_write_optimization_summary): Likewise; use
3421 varpool/cgraph encoders to get boundaries.
3422 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3423 use it when possible.
3425 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3428 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3429 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3431 * doc/extend.texi (powerpc builtins): Document vec_recip,
3432 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
3434 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
3435 (rs6000_emit_swrsqrt): Ditto.
3436 (rs6000_emit_swdivsf): Delete.
3437 (rs6000_emit_swdivdf): Ditto.
3438 (rs6000_emit_swrsqrtsf): Ditto.
3440 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
3441 describe the reciprocal estimate support for each type.
3442 (recip_options): Map -mrecip=<opt> into option bits.
3443 (gen_2arg_fn_t): New typedef for binary rtx gen function.
3444 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
3445 reciprocal estimate instructions.
3446 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
3447 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
3448 Set up rs6000_recip_bits based on the -mrecip* options. Print the
3449 cost information if -mdebug=cost or -mdebug=reg.
3450 (rs6000_override_options): Set -mrecip-precision for power6, and
3451 power7 machines. If -mvsx or -mdfp, enable various options that
3452 came in previous instruction set ISAs, unless the option was
3453 explicitly disabled by the command line option. Parse
3454 -mrecip=<opt> options.
3455 (rs6000_builtin_vectorized_function): Add support for vectorizing
3456 the reciprocal estimate builtins and expansions.
3457 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
3458 (bdesc_2arg): Add reciprocal estimate builtins.
3459 (bdesc_1arg): Add reciprocal square root estimate builtins.
3460 (rs6000_expand_builtin): Rewrite to use a switch statement,
3461 instead of multiple if/then/elses. Add reciprocal estimate builtins.
3462 (rs6000_init_builtins): Create declarations for reciprocal
3464 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
3465 sized, prefer traditional floating point registers, if integer
3466 vector types, prefer altivec registers. Don't actually look at
3467 the memory address any more.
3468 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
3470 (rs6000_load_constant_and_splat): New helper function to load up
3471 the constant for reciprocal estimate instructions.
3472 (rs6000_emit_madd): New helper function for generating
3473 multiply/add type instructions, based on the current switches.
3474 (rs6000_emit_msub): Ditto.
3475 (rs6000_emit_mnsub): Ditto.
3476 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
3477 replace a divide with a reciprocal estimate and fixup, adding
3478 support for machines with high precision and vectors.
3479 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
3480 low precision machines.
3481 (rs6000_emit_swdiv): New common function to be called to replace a
3482 division with reciprocal estimate and fixup.
3483 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
3484 for double and vector types. Add support for high precision machines.
3486 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
3487 the reciprocal estimate instructions can be generated.
3488 (TARGET_FRE): Ditto.
3489 (TARGET_FRSQRTES): Ditto.
3490 (TARGET_FRSQRTE): Ditto.
3491 (RS6000_RECIP_*): New macros for reciprocal estimate support.
3493 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
3494 square root estimate on vectors.
3495 (re<mode>2): New insn for reciprocal division estimate on vectors.
3497 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
3499 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
3500 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
3501 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
3502 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
3503 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
3504 (RS6000_BUILTIN_RSQRT): Ditto.
3505 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
3506 floating point builtin.
3508 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3509 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
3510 __RECIP_PRECISION__ based on the command line switches.
3511 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
3513 * config/rs6000/rs6000.opt (-mrecip): Document add support for
3514 replacing division instructions with reciprocal estimate and fixup.
3515 (-mrecip=<opt>): New option.
3516 (-mrecip-precision): Ditto.
3518 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
3519 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
3520 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
3523 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
3524 (UNSPEC_VREFP): Ditto.
3525 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
3526 conterparts with regard to support of -mno-fused-madd and -ffast-math.
3527 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
3528 reciprocal estimate instructions to be generated.
3529 (altivec_vrefp): Ditto.
3531 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
3533 (rreg): New mode attribute for reciprocal estimate support.
3534 (recip<mode>3): New insn for division using reciprocal estimate
3536 (divide define_split): New define_split to convert floating point
3537 division to use reciprocal estimate if the user used the
3538 appropriate options and the split is run when we can add new
3539 pseudo registers for the fixup.
3540 (rsqrt<mode>2): New insn for reciprocal square root support.
3541 (recipsf3): Move into recip<mode>3.
3543 (fres): Use TARGET_FRES.
3544 (rsqrtsf2): Move into rsqrt<mode>2.
3545 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
3546 (copysignsf3): Add support for VSX.
3547 (fred): Use TARGET_FRE.
3549 (rsqrtdf_internal1): New function for frsqrte instruciton.
3551 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
3554 2010-06-03 Richard Guenther <rguenther@suse.de>
3557 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
3558 (set_user_assembler_libfunc): Likewise.
3560 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3562 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
3564 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
3566 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
3567 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
3568 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
3569 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
3570 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
3571 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
3572 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
3573 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
3574 * defaults.h: Updated for above mentioned changes.
3576 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
3578 * c-common.c: Remove header include of tm_p.h.
3579 * Makefile.in (c-common.o): Remove TM_P_H dependency.
3581 2010-06-02 Jakub Jelinek <jakub@redhat.com>
3583 * tree.h (struct tree_decl_map): New type.
3584 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
3585 (tree_decl_map_hash): New prototype.
3586 (debug_expr_for_decl, value_expr_for_decl): Change into
3587 tree_decl_map hashtab from tree_map.
3588 (init_ttree): Adjust initialization.
3589 (tree_decl_map_hash): New function.
3590 (decl_debug_expr_lookup, decl_debug_expr_insert,
3591 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
3593 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3595 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
3597 * configure: Regenerate.
3598 * config.in: Regenerate.
3600 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
3601 (X86_64_EMULATION): Define.
3602 (TARGET_LD_EMULATION): Use them.
3604 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
3605 (SPARC64_EMULATION): Define.
3606 (LINK_ARCH_SPEC): Use them.
3608 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3610 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
3611 smallest_mode_for_size for computing the precision types of new
3612 graphite IVs. Do not call lang_hooks.types.type_for_size.
3614 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3616 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
3618 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
3620 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
3623 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
3624 return false instead.
3626 2010-06-02 Jan Hubicka <jh@suse.cz>
3629 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
3630 create new cgraph node to check callee.
3632 2010-06-02 Richard Guenther <rguenther@suse.de>
3634 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
3636 2010-06-02 Richard Guenther <rguenther@suse.de>
3638 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
3639 (lto_wrapper_cleanup): ... this. Do not exit.
3640 (fatal): Adjust. Exit here.
3641 (fatal_perror): Likewise.
3642 (fatal_signal): New function.
3643 (main): Set up signal handlers to cleanup temporary files.
3644 * Makefile.in (lto-wrapper.o): Adjust dependencies.
3646 2010-06-02 Richard Guenther <rguenther@suse.de>
3648 PR tree-optimization/44377
3649 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
3651 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3653 * config/s390/2097.md (z10_fhex): Remove insn reservation.
3654 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
3655 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
3656 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
3658 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
3660 2010-06-02 Jan Hubicka <jh@suse.cz>
3662 * bitmap.c (bitmap_descriptor): Add search_iter.
3663 (bitmap_find_bit): Increment it.
3664 (print_statistics): Print it.
3666 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
3668 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
3669 instead of gimple_build_call_vec. Delete unnecessary local variable.
3671 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3673 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
3674 change from yesterday.
3676 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
3678 * c-ada-spec.c: Clean up redundant includes.
3680 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
3682 * gimplify.c: Do not include except.h and optabs.h.
3683 (gimplify_body): Do not initialize RTL profiling.
3684 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
3685 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
3686 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
3687 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
3690 * tree-pretty-print.h: Include pretty-print.h.
3691 * gimple-pretty-print.h: Include pretty-print.h.
3693 * tree-pretty-print.c: Do not include diagnostic.h.
3694 * tree-vrp.c: Likewise.
3695 * tree-tailcall.c: Likewise
3696 * tree-scalar-evolution.c: Likewise
3697 * tree-ssa-dse.c: Likewise
3698 * tree-chrec.c: Likewise
3699 * tree-ssa-sccvn.c: Likewise
3700 * tree-ssa-copyrename.c: Likewise
3701 * tree-nomudflap.c: Likewise
3702 * tree-call-cdce.c: Likewise
3703 * tree-stdarg.c: Likewise
3704 * tree-ssa-math-opts.c: Likewise
3705 * tree-nrv.c: Likewise
3706 * tree-ssa-sink.c: Likewise
3707 * tree-browser.c: Likewise
3708 * tree-ssa-loop-ivcanon.c: Likewise
3709 * tree-ssa-loop.c: Likewise
3710 * tree-parloops.c: Likewise
3711 * tree-ssa-address.c: Likewise
3712 * tree-ssa-ifcombine.c: Likewise
3713 * tree-if-conv.c: Likewise
3714 * tree-data-ref.c: Likewise
3715 * tree-affine.c: Likewise
3716 * tree-ssa-phiopt.c: Likewise
3717 * tree-ssa-coalesce.c: Likewise
3718 * tree-ssa-pre.c: Likewise
3719 * tree-ssa-live.c: Likewise
3720 * tree-predcom.c: Likewise
3721 * tree-ssa-forwprop.c: Likewise
3722 * tree-ssa-dce.c: Likewise
3723 * tree-ssa-ter.c: Likewise
3724 * tree-ssa-loop-prefetch.c: Likewise
3725 * tree-optimize.c: Likewise
3726 * tree-ssa-phiprop.c: Likewise
3727 * tree-object-size.c: Likewise
3728 * tree-outof-ssa.c: Likewise
3729 * tree-ssa-structalias.c: Likewise
3730 * tree-switch-conversion.c: Likewise
3731 * tree-ssa-reassoc.c: Likewise
3732 * tree-ssa-operands.c: Likewise
3733 * tree-vectorizer.c: Likewise
3734 * tree-vect-data-refs.c: Likewise
3735 * tree-vect-generic.c: Likewise
3736 * tree-vect-stmts.c: Likewise
3737 * tree-vect-patterns.c: Likewise
3738 * tree-vect-slp.c: Likewise
3739 * tree-vect-loop.c: Likewise
3740 * tree-ssa-loop-ivopts.c: Likewise
3741 * tree-ssa-loop-im.c: Likewise
3742 * tree-ssa-loop-niter.c: Likewise
3743 * tree-ssa-loop-unswitch.c: Likewise
3744 * tree-ssa-loop-manip.c: Likewise
3745 * tree-ssa-loop-ch.c: Likewise
3746 * tree-dump.c: Likewise
3747 * tree-complex.c: Likewise
3749 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
3750 * tree-ssa-uninit.c: Likewise
3751 * tree-ssa-threadupdate.c: Likewise
3752 * tree-ssa-uncprop.c: Likewise
3753 * tree-ssa-ccp.c: Likewise
3754 * tree-ssa-dom.c: Likewise
3755 * tree-ssa-propagate.c: Likewise
3756 * tree-ssa-alias.c: Likewise
3757 * tree-dfa.c: Likewise
3758 * tree-cfgcleanup.c: Likewise
3759 * tree-sra.c: Likewise
3760 * tree-ssa-copy.c: Likewise
3761 * tree-ssa.c: Likewise
3762 * tree-profile.c: Likewise
3763 * tree-cfg.c: Likewise
3764 * tree-ssa-threadedge.c: Likewise
3765 * tree-vect-loop-manip.c: Likewise
3767 * tree-inline.c: Do not include diagnostic.h and expr.h.
3769 (copy_decl_for_dup_finish): Do not use NULL_RTX.
3771 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
3772 * tree-loop-distribution.c: Likewise.
3774 2010-06-01 Jan Hubicka <jh@suse.cz>
3776 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
3778 2010-06-01 Jan Hubicka <jh@suse.cz>
3780 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
3781 remove return value.
3782 (split_bbs_on_noreturn_calls) .... here.
3783 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
3784 * tree-flow.h (fixup_noreturn_call): New.
3786 2010-06-01 Jan Hubicka <jh@suse.cz>
3788 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
3790 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
3792 * tree.h (build_nt_call_list): Delete.
3793 * tree.c (build_nt_call_list): Delete.
3795 2010-06-01 Jan Hubicka <jh@suse.cz>
3797 * fwprop.c: Make emit-rtl.h include last.
3798 * rtlanal.c: Include emit-rtl.h.
3799 * genautomata.c: Output emit-rtl include into insn-automata.c
3800 * df-scan.c: Include emit-rtl.h.
3801 * haifa-sched.c: Indlude emit-rtl.h.
3802 * mode-switching.c: Indlude emit-rtl.h.
3803 * graph.c: Indlude emit-rtl.h.
3804 * sel-sched.c: Include emit-rtl.h.
3805 * sel-sched-ir.c: Include emit-rtl.h.
3806 * ira-build.c: Include emit-rtl.h.
3807 * emit-rtl.c: (first_insn, last_insn): Remove defines.
3808 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
3810 (set_new_first_and_last_insn, get_last_insn_anywhere,
3811 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
3812 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
3813 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
3814 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
3815 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
3816 Use accessor functions.
3817 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3818 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3819 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3820 mem_expr_equal_p): Move here from rtl.h.
3821 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
3822 Move here from emit-rtl.c; make inline.
3823 * cfglayout.h: Include emit-rtl.h.
3824 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
3825 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
3826 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
3827 mem_expr_equal_p, get_insns, set_first-insn,
3828 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
3829 * reg-stack.c: Include emit-rtl.h.
3832 2010-06-01 Jan Hubicka <jh@suse.cz>
3834 * cgraph.h (tree_function_versioning): Update prototype.
3835 (cgraph_function_versioning): Update prototype.
3836 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
3838 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
3839 (cgraph_materialize_clone, save_inline_function_body): Update use of
3840 tree_function_versioning.
3841 * tree-inline.c (copy_bb): Look for previous copied block to link
3842 after; fix debug output.
3843 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
3844 (copy_body): Likewise.
3845 (expand_call_inline): Update use of copy_body.
3846 (tree_function_versioning): Update use of copy body; accept
3847 blocks_to_copy and new_entry.
3849 2010-06-01 Jan Hubicka <jh@suse.cz>
3851 * gegenrtl.c: Remove unnecesary prototypes.
3853 (gendef): Produce static inline.
3855 (main): Do not decode parameters; generate header only.
3856 * Makefile.in (genrtl.c): Remove.
3858 2010-06-01 Jan Hubicka <jh@suse.cz>
3860 * tree-switch-conversion.c (build_one_array): Make it readonly.
3862 2010-06-01 Richard Guenther <rguenther@suse.de>
3864 * optabs.c (init_optabs): Guard all accesses to reinit.
3865 * ipa-pure-const.c (propagate): Fix another typo.
3866 * opts.c (common_handle_option): Split assignment to bool.
3867 * c-opts.c (c_common_handle_option): Likewise.
3869 2010-06-01 Arnaud Charlet <charlet@adacore.com>
3870 Matthew Gingell <gingell@adacore.com>
3872 * doc/invoke.texi: Mention -fdump-ada-spec.
3873 * tree-dump.c (dump_files): Add ada-spec.
3874 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
3875 * tree-pass.h (tree_dump_index): Add TDI_ada.
3876 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
3877 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
3878 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
3879 * c-decl.c: Include c-ada-spec.h.
3880 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
3882 (c_write_global_declarations): Add handling of -fdump-ada-spec.
3883 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
3884 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
3885 * c-ada-spec.h, c-ada-spec.c: New files.
3887 2010-06-01 Richard Guenther <rguenther@suse.de>
3890 * ipa-pure-const.c (get_function_state): Hand back varying state
3891 if we do not have one.
3892 (has_function_state): New function.
3893 (duplicate_node_data): Adjust.
3894 (remove_node_data): Likewise.
3895 (pure_const_write_summary): Likewise.
3896 (propagate): Likewise. Fix typo.
3898 2010-06-01 Jan Hubicka <jh@suse.cz>
3900 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
3901 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
3902 (execute_all_ipa_transforms): Do not play with the states.
3904 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
3906 * config/arm/t-linux-androideabi: New.
3907 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
3909 2010-06-01 Jan Hubicka <jh@suse.cz>
3911 * tree-inline.c (estimate_num_insns): For stdarg functions look
3912 into call statement to count cost of argument passing.
3914 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
3916 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
3917 argument for fprintf.
3918 (ix86_output_addr_diff_elt): Likewise.
3919 (x86_function_profiler): Likewise.
3920 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
3921 (LPREFIX): Likewise.
3922 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
3924 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3927 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
3928 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
3929 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
3930 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
3931 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
3932 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
3933 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
3934 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
3937 2010-05-31 Jan Hubicka <jh@suse.cz>
3939 * tree.h (tree_range_check_failed): Declare noreturn.
3941 2010-05-31 Jan Hubicka <jh@suse.cz>
3943 * gimple.c (gimple_call_builtin_p): New function.
3944 * gimple.h (gimple_call_builtin_p): Declare.
3945 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
3947 (execute_warn_function_return): BUILT_IN_RETURN is return.
3948 (split_critical_edges): Return edges are not critical.
3949 (is_ctrl_altering_stmt): Builtin_in_return is altering.
3950 (gimple_verify_flow_info): Handle built_in_return.
3951 (execute_warn_function_return): Handle built_in_return.
3952 * ipa-pure-const.c (check_call): Ignore builtin_return.
3954 2010-05-31 Jakub Jelinek <jakub@redhat.com>
3957 * expr.c (expand_assignment): Don't store anything for out-of-bounds
3958 array accesses with non-MEM.
3960 PR tree-optimization/44182
3961 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
3962 newly needs to end a bb is followed by debug stmts, instead return
3963 true from the function at the end.
3964 (maybe_move_debug_stmts_to_successors): New function.
3965 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
3967 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
3970 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
3972 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
3974 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
3975 for nested functions in non-optimized compilation.
3977 2010-05-31 Richard Guenther <rguenther@suse.de>
3979 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
3981 2010-05-30 Jan Hubicka <jh@suse.cz>
3983 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
3985 2010-05-30 Richard Guenther <rguenther@suse.de>
3988 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
3989 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
3992 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
3994 * config/darwin.c (output_objc_section_asm_op): Add comment.
3995 (name_needs_quotes): Add '_' to list of valid comment chars.
3996 (machopic_output_function_base_name): Remove unneeded quotes.
3997 (darwin_encode_section_info): Adjust asm whitespace.
3998 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
3999 (ASM_OUTPUT_LOCAL): Ditto.
4000 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4001 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4002 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4004 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4006 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4007 RS6000_OUTPUT_BASENAME unconditionally.
4008 (rs6000_output_function_epilogue): Likewise.
4010 2010-05-30 Jan Hubicka <jh@suse.cz>
4012 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4015 2010-05-30 Richard Guenther <rguenther@suse.de>
4017 * tree-cfg.c (verify_gimple_assign_single): Implement
4018 verification for COND_EXPR rhs.
4020 2010-05-30 Jan Hubicka <jh@suse.cz>
4022 * cgraph.h (cgraph_dump_file): Declare.
4023 * cgraphunit.c (cgraph_dump_file): Export.
4024 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4026 2010-05-30 Jan Hubicka <jh@suse.cz>
4028 * dwarf2out.c (reference_to_unused,
4029 premark_types_used_by_global_vars_helper): Avoid creation of new
4032 2010-05-30 Jan Hubicka <jh@suse.cz>
4034 * cgraph.h (cgraph_node_cannot_return,
4035 cgraph_edge_cannot_lead_to_return): New functions.
4036 * cgraph.c (cgraph_node_cannot_return,
4037 cgraph_edge_cannot_lead_to_return): Use them.
4038 * ipa-pure-const.c (pure_const_names): New static var.
4039 (check_call): Handle calls not leading to return.
4040 (pure_const_read_summary): Dump info read.
4041 (propagate): Dump info about propagation process; ignore side effects
4042 of functions not leading to exit; fix handling of pure functions.
4044 2010-05-30 Jan Hubicka <jh@suse.cz>
4046 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4047 for tail call epilogues.
4049 2010-05-30 Jan Hubicka <jh@suse.cz>
4051 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4052 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4055 2010-05-29 Jan Hubicka <jh@suse.cz>
4057 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4058 node; remove references in node we no longer keep in cgrpah but need
4061 2010-05-29 Jan Hubicka <jh@suse.cz>
4063 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4065 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4068 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4070 2010-05-29 Jan Hubicka <jh@suse.cz>
4072 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4073 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4074 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4075 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4076 debug_names_replaced_by, debug_update_ssa): Likewise.
4077 * sbitmap.c (debug_sbitmap): Likewise.
4078 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4079 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4080 debug_tree_chain): Likewise.
4081 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4082 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4083 * optabs.c (debug_optab_libfuncs): Likewise.
4084 (verify_loop_closed_ssa): Likewise.
4085 * value-prof.c (verify_histograms): Likewise.
4086 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4087 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4088 * cfghooks.c (verify_flow_info): Likewise.
4089 * fold-const.c (debug_fold_checksum): Likewise.
4090 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4091 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4093 * omega.c (debug_omega_problem): Likewise.
4094 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4095 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4096 * dominance.c (verify_dominators, debug_dominance_info,
4097 debug_dominance_tree): Likewise.
4098 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4099 * df_regno_debug, df_ref_debug,
4100 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4101 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4102 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4103 * sel-sched.c (debug_state): Likewise.
4104 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4106 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4107 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4108 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4109 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4111 * c-pretty-print.c (debug_c_tree): Likewise.
4112 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4113 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4114 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4115 * ebitmap.c (debug_ebitmap): Likewise.
4116 * function.c (debug_find_var_in_block_tree): Likewise.
4117 * print-rtl.c (debug_rtx): Likewise.
4118 (debug_rtx_count): Likewise.
4119 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4120 * stor-layout.c (debug_rli): Likewise.
4121 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4122 * tree-data-ref.c (debug_data_references,
4123 debug_data_dependence_relations, debug_data_reference,
4124 debug_data_dependence_relation, debug_rdg_vertex,
4125 debug_rdg_component, debug_rdg): Likewise.
4126 * tree-affine.c (debug_aff): Likewise.
4127 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4129 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4130 * emit-rtl.c (verify_rtl_sharing): Likewise.
4131 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4132 debug_value_expressions): Likewise.
4133 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4134 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4135 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4136 * cfglayout.c (verify_insn_chain): Likewise.
4137 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4138 debug_clast_stmt, debug_generated_program): Likewise.
4139 * ggc-page.c (debug_print_page_list): Likewise.
4140 * tree-ssa-ter.c (debug_ter): Likewise.
4141 * graphite-dependences.c (debug_pddr): Likewise.
4142 * sched-deps.c (debug_ds): Likewise.
4143 * tree-ssa.c (verify_ssa): Likewise.
4144 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4145 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4146 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4147 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4148 * tree-inline.c (debug_find_tree): Likewise.
4149 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4150 debug_ppl_powerset_matrix): Likewise.
4151 * var-tracking.c (debug_dv): Likewise.
4152 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4153 * cfgloop.c (verify_loop_structure): Likewise.
4154 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4155 * c-common.c (verify_sequence_points): Likewise.
4156 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4157 debug_candidates, debug_rgn_dependencies): Likewise.
4158 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4159 * debug_constraint_graph, debug_solution_for_var,
4160 debug_sa_points_to_info): Likewise.
4161 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4163 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4164 debug_loops, debug_loop, debug_loop_num): Likewise.
4165 * passes.c (debug_pass): Likewise.
4166 (dump_properties): Likewise; add cfglayout property.
4167 (debug_properties): Likewise.
4168 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4169 * varpool.c (debug_varpool): Likewise.
4170 * regcprop.c (debug_value_data): Likewise.
4171 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4172 debug_immediate_uses_for): Likewise.
4174 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4177 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4178 Filter out insn-flags.h.
4180 2010-05-29 Jan Hubicka <jh@suse.cz>
4182 * cgraph.h (struct varpool_node_set_def,
4183 struct cgraph_node_set_def): Remove unused AUX pointer.
4184 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4187 2010-05-29 Jan Hubicka <jh@suse.cz>
4190 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4192 2010-05-29 Richard Guenther <rguenther@suse.de>
4194 * lto-streamer.c (cached_bp): New global variable.
4195 (bitpack_create): Return the cached bitpack, if available.
4196 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4197 (bp_pack_value): Remove redundant asserts.
4199 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4202 * tree-if-conv.c (is_true_predicate): New.
4203 (is_predicated): Use is_true_predicate.
4204 (add_to_predicate_list): Same. Do not use unshare_expr.
4205 (add_to_dst_predicate_list): Same.
4207 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4209 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4211 (predicate_bbs): Same.
4212 (clean_predicate_lists): Same.
4213 (find_phi_replacement_condition): Do not AND the predicate from
4216 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4219 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4221 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4224 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4225 (negdf2): Adjust expander pattern and use negdf2_slow.
4228 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4230 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4232 * df.h (struct df_base_ref): Move regno field up.
4233 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4234 * expr.h (struct separate_ops): Move location field up.
4235 * optabs.h (struct optab_d): Move libcall_basename field down.
4236 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4237 * config/i386/i386.h (struct machine_function): Convert call_abi field
4238 into a bitfield. Move cfa field to the end of the structure.
4240 2010-05-29 Jan Hubicka <jh@suse.cz>
4242 * varpool.c (varpool_get_node): Fix lookup.
4244 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4246 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4247 RTL specific prototypes with #ifdef RTX_CODE.
4248 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4249 * config/spu/t-spu-elf: Fix dependencies.
4251 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4253 2010-05-29 Mike Stump <mikestump@comcast.net>
4256 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4257 TM_H when building to avoid dependency loops.
4259 2010-05-29 Jan Hubicka <jh@suse.cz>
4261 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4262 refs and body; not the whole node for masters of materialized clones.
4264 2010-05-29 Mike Stump <mikestump@comcast.net>
4266 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4268 2010-05-29 Jan Hubicka <jh@suse.cz>
4270 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4271 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4272 use of clone_function_name.
4273 * cgraph.h (cgraph_create_virtual_clone,
4274 cgraph_function_versioning): update prototypes.
4275 (clone_function_name): Declare.
4276 * ipa-cp.c (ipcp_insert_stage): Update call of
4277 cgraph_create_virtual_clone.
4278 * omp-low.c (create_omp_child_function_name): Use
4279 cgraph_create_virtual_clone.
4280 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4281 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4282 and make decl local.
4284 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4286 * vec.h: Include statistics.h
4287 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4290 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4292 * c-lex.c: Do not include c-tree.h.
4293 * c-pretty-print.c: Likewise.
4294 * c-opts.c: Likewise.
4295 * c-gimplify.c: Likewise.
4296 * c-common.c: Likewise.
4297 * c-dump.c: Likewise. Include c-common.h.
4299 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4301 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4302 before including diagnostic-core.h.
4303 (c_cpp_error): New prototype moved from c-tree.h.
4304 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4305 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4306 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4307 (c_cpp_error): Prototype moved to c-common.h.
4308 * Makefile.in: Update dependency for C_COMMON_H.
4310 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4312 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4313 * c-common.c (c_register_addr_space): Remove here.
4314 * c-decl.c (c_register_addr_space): Re-add here.
4316 2010-05-28 Mike Stump <mikestump@comcast.net>
4318 * config/darwin-c.c: Remove c-tree.h include.
4320 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4322 * gcc.c: Include diagnostic.h.
4323 (error_count): Remove. All users changed to use errorcount.
4324 (programname): Remove. All users changed to use progname.
4325 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4327 (execute): Don't include "Internal error" and bug reporting
4328 information in argument of internal_error call.
4329 (process_command): Don't increment error_count after calling
4331 (input_filename): Rename to gcc_input_filename. All users
4333 (main): Call diagnostic_initialize. Register delete_temp_files
4334 with atexit. Use seen_error to test for errors.
4335 * gcc.h: Include diagnostic-core.h.
4336 (fatal_error, error, warning): Remove.
4337 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4338 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4339 (gcc.o): Update dependencies.
4341 2010-05-28 Jeff Law <law@redhat.com>
4343 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4345 * ira.h (ira_bad_reload_regno): Declare
4346 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4348 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4349 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4350 (allocno_reload_assign): Likewise.
4352 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4354 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4357 2010-05-28 Richard Guenther <rguenther@suse.de>
4360 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4361 Stream fixed-point constants mode.
4362 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4364 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4365 Stream fixed-point constants mode.
4366 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4369 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4371 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4372 only place it was called from.
4373 (number_of_latch_executions): Do not return chrec_dont_know when the
4374 may_be_zero is a runtime condition: instead, return a COND_EXPR
4375 including the may_be_zero condition.
4376 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4378 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4381 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4383 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4384 generate COND_EXPRs for degenerate_phi_result.
4386 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4389 * tree-if-conv.c (if_convertible_loop_p): Check the
4390 if-convertibility of phi nodes in non predicated BBs.
4392 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4394 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4396 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4399 * gcc.c (inform, warning, inform): New functions.
4400 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4401 gmsgid. All callers changed.
4402 (notice): Rename to fnotice; add parameter fp. All callers changed.
4403 (fatal_error): Rename to fatal_signal. All users changed.
4404 (fatal): Rename to fatal_error; change cmsgid parameter to
4405 gmsgid. All callers changed.
4406 (process_command): Use warning instead of error for warnings.
4407 (end_going_arg): Don't use _() around argument of error.
4408 (do_spec_1): Use inform for message from %n specs. Use warning
4409 instead of error for warnings.
4410 (main): Use inform for comparison messages. Use warning for
4411 message about unused linker input.
4412 (error): Increment error_count. Print "error: ".
4413 * gcc.h (fatal): Change to fatal_error.
4415 * config/darwin-driver.c (darwin_default_min_version): Use warning
4416 instead of fprintf for warnings.
4417 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4419 2010-05-28 Julian Brown <julian@codesourcery.com>
4421 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4422 (*thumb2_addsi3_compare0_scratch): New.
4423 * config/arm/constraints.md (Pv): New.
4424 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4426 (*addsi3_compare0_scratch): Likewise.
4428 2010-05-28 Jan Hubicka <jh@suse.cz>
4430 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4432 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
4433 only on local statics.
4435 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
4437 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
4439 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
4442 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
4443 (OPTION_GLIBC): Define.
4445 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4448 * dwarf2out.c (double_int_type_size_in_bits): New function.
4449 (round_up_to_align): Change first argument and return value to
4451 (field_byte_offset): Work internally on double_ints.
4454 * builtins.c (expand_movstr): Use a temporary pseudo instead
4455 of target even when target is not NULL and not const0_rtx, but
4456 fails movstr predicate.
4457 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
4459 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4461 * final.c (rest_of_clean_state): Use %m in errors instead of
4463 * gengtype.c (read_input_list, close_output_files): Use xstrerror
4464 instead of strerror.
4465 * toplev.c (process_options): Use %m in errors instead of strerror
4467 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
4470 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
4472 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
4473 (ix86_canonical_va_list_type): Make static. Add declaration.
4474 (ix86_enum_va_list): Make static. Reindent.
4475 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
4476 (ix86_canonical_va_list_type): Ditto.
4477 (ix86_enum_va_list): Ditto.
4479 2010-05-28 Richard Guenther <rguenther@suse.de>
4481 * lto-wrapper.c (run_gcc): With -save-temps generate a
4482 user-visible ltrans filename. Fixup ltrans unit numbering.
4484 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
4486 * c-common.c (c_common_nodes_and_builtins): Replace use
4487 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
4488 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
4489 to ix86_enum_va_list.
4490 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
4491 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
4492 (TARGET_ENUM_VA_LIST_P): Add hook description.
4493 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
4494 * target.h (gcc_target): Add enum_va_list hook.
4497 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
4498 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
4499 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
4501 2010-05-28 Alan Modra <amodra@gmail.com>
4504 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4505 emit_library_call machinery to set up __tls_get_addr calls.
4507 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4509 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
4511 2010-05-28 Dodji Seketeli <dodji@redhat.com>
4513 Revert fix for PR c++/44188
4514 * c-common.c (is_typedef_decl): Revert the moving of this
4516 * tree.c (is_typedef_decl): ... here.
4517 (typdef_variant_p): Revert the moving of this definition
4518 here from gcc/cp/tree.c.
4519 * c-common.h (is_typedef_decl): Revert the moving of this
4521 * tree.h (is_typedef_decl): ... here.
4522 (typedef_variant_p): Revert the moving of this declaration here
4523 from gcc/cp/cp-tree.h
4524 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
4525 (gen_tagged_type_die): Revert the splitting out of ...
4526 (gen_type_die_with_usage): ... this function. Revert the anonymous
4527 tagged type handling.
4528 (gen_typedef_die): Revert emitting DW_TAG_typedef for
4529 typedefs naming anonymous tagged types.
4531 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4533 * config/rs6000/rs6000-modes.def (PSImode): Delete.
4535 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
4537 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
4538 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
4540 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
4542 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
4543 XER_REGS to CA_REGS throughout.
4544 * config/rs6000/rs6000.h: Same.
4545 (ADDITIONAL_REGISTER_NAMES): Add "xer".
4546 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
4547 that mode_iterator "P" is the size for arithmetic carries as well.
4548 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
4550 2010-05-28 Jakub Jelinek <jakub@redhat.com>
4553 * combine.c (struct rtx_subst_pair): Define unconditionally.
4554 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
4555 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
4556 Call make_compound_operation on pair->to.
4557 (propagate_for_debug): Don't call make_compound_operation here.
4558 Always use simplify_replace_fn_rtx.
4560 2010-05-27 Sterling Augustine <sterling@tensilica.com>
4562 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
4563 * config/xtensa/xtensa.c (override_options): Check
4564 TARGET_FORCE_NO_PIC and set flag_pic.
4565 * config/xtensa/xtensa.opt: Document -mforce-no-pic
4567 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4570 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
4571 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
4573 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4575 * diagnostic-core.h: New. Contents moved from diagnostic.h and
4577 * diagnostic.c: Don't include toplev.h.
4578 (progname): Define. Moved from toplev.c.
4579 (seen_error): New function.
4580 * diagnostic.h: Include diagnostic-core.h.
4581 (diagnostic_t, emit_diagnostic): Don't declare here.
4582 * toplev.c (progname): Move to toplev.c.
4583 (emit_debug_global_declarations, compile_file, finalize,
4584 do_compile, toplev_main): Use seen_error.
4585 * toplev.h: Include diagnostic-core.h.
4586 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
4587 internal_error, warning, warning_at, error, error_n, error_at,
4588 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
4589 verbatim, fnotice, progname): Move to diagnostic-core.h.
4590 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
4591 (expand_builtin_expect): Use seen_error.
4592 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
4593 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
4594 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
4595 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
4596 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
4597 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
4598 errorcount for errors.
4599 * c-opts.c (c_common_finish): Use seen_error.
4600 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4601 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
4602 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
4603 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
4604 (get_coverage_counts): Use seen_error.
4605 * dwarf2out.c (dwarf2out_finish): Use seen_error.
4606 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
4607 gimplify_body): Use seen_error.
4608 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
4609 * ipa-pure-const.c (gate_pure_const): Use seen_error.
4610 * ipa-reference.c (gate_reference): Use seen_error.
4611 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
4612 * lambda-code.c: Include diagnostic-core.h instead of
4614 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
4615 * lto-compress.c: Include diagnostic-core.h instead of
4617 * lto-section-in.c: Include diagnostic-core.h instead of
4619 * lto-streamer-out.c: Include diagnostic-core.h instead of
4621 * lto-streamer.c: Include diagnostic-core.h instead of
4623 (gate_lto_out): Use seen_error.
4624 * matrix-reorg.c: Include diagnostic-core.h instead of
4626 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
4627 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
4628 (gate_expand_omp, lower_omp_1): Use seen_error.
4629 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
4630 (rest_of_decl_compilation, rest_of_type_compilation,
4631 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
4632 * tree-cfg.c (label_to_block_fn): Use seen_error.
4633 * tree-inline.c (optimize_inline_calls): Use seen_error.
4634 * tree-mudflap.c (mudflap_finish_file): Use
4636 * tree-optimize.c (gate_all_optimizations,
4637 gate_all_early_local_passes, gate_all_early_optimizations): Use
4639 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
4640 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
4641 (varpool_remove_unreferenced_decls,
4642 varpool_assemble_pending_decls): Use seen_error.
4643 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
4644 (TOPLEV_H, DIAGNOSTIC_H): Update.
4645 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
4646 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
4647 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
4648 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
4649 coverage.o, lambda-code.o): Update dependencies.
4651 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4654 * c-common.c (is_typedef_decl): Move this definition ...
4655 * tree.c (is_typedef_decl): ... here.
4656 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4657 * c-common.h (is_typedef_decl): Move this declaration ...
4658 * tree.h (is_typedef_decl): ... here.
4659 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4660 * dwarf2out.c (is_naming_typedef_decl): New function.
4661 (gen_tagged_type_die): Split out of ...
4662 (gen_type_die_with_usage): ... this function. When an anonymous
4663 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4664 is emitted for the typedef.
4665 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4666 anonymous tagged types.
4668 2010-05-27 Jason Merrill <jason@redhat.com>
4670 * print-tree.c (debug_vec_tree): New fn.
4671 (print_vec_tree): New fn.
4672 * tree.h: Declare them.
4673 * gdbinit.in (pvt): New command.
4675 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
4677 * gdbinit.in (pdd): New command.
4679 2010-05-27 Jan Hubicka <jh@suse.cz>
4681 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
4682 (update_caller_keys): Return early if there are no callers;
4683 only update fibheap when decresing the key.
4684 (update_callee_keys): Avoid recursion.
4685 (decide_inlining_of_small_functions): When badness does not match;
4686 re-insert into fibheap.
4688 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4690 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
4691 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
4692 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
4693 (ALL_HOST_OBJS): Now a union of the above two.
4694 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
4695 all files in ALL_HOST_FRONTEND_OBJS.
4696 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
4698 * c-common.c: Pretend to be a backend file by undefining
4699 IN_GCC_FRONTEND (still need rtl.h here).
4701 2010-05-27 Jan Hubicka <jh@suse.cz>
4703 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
4704 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
4706 2010-05-27 Jan Hubicka <jh@suse.cz>
4708 * sched-ebb.c: Rename struct deps to struct deps_desc.
4710 * sel-sched-ir.c: Likewise.
4711 * sched-deps.c: Likewise.
4712 * sched-int.h: Likewise.
4713 * sched-rgn.c: Likewise.
4715 2010-05-27 Jon Beniston <jon@beniston.com>
4718 * config/lm32/lm32.h: Remove definition of
4719 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
4721 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
4724 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
4726 2010-05-27 Richard Guenther <rguenther@suse.de>
4728 PR tree-optimization/44284
4729 * tree-vect-stmts.c (vectorizable_assignment): Handle
4730 sign-changing conversions as simple copy.
4732 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4734 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
4736 (__gthread_active_p): Check for pthread_create if compiling against
4739 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4741 Support compilation for Android platform. Reimplement -mandroid.
4743 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
4744 (*android*): Set ANDROID_DEFAULT.
4745 (arm*-*-linux*): Include linux-android.h.
4746 (arm*-*-eabi*): Don't include previous -mandroid implementation.
4747 * config/arm/eabi.h: Remove, move Android-specific parts ...
4748 * config/linux-android.h: ... here. New file.
4749 * config/arm/eabi.opt: Rename to ...
4750 * config/linux-android.opt: ... this.
4751 (mandroid): Allow -mno-android option. Initialize based on
4753 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
4754 Move logic to corresponding LINUX_TARGET_* macros.
4755 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
4756 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
4757 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
4758 Android definitions.
4759 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
4760 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
4763 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
4765 Add support for Bionic C library
4767 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
4769 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
4770 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
4772 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
4773 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
4774 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
4775 to support multiple C libraries. Handle Bionic.
4776 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
4777 (BIONIC_DYNAMIC_LINKER64): Define.
4778 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
4780 (TARGET_HAS_SINCOS): Enable for Bionic.
4782 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
4783 the last option specified on command line take effect.
4784 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
4786 (mglibc, muclibc): Update.
4788 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
4789 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
4792 * doc/invoke.texi (-mglibc, -muclibc): Update.
4793 (-mbionic): Document.
4795 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4797 * c-common.h (c_register_addr_space): Add prototype.
4798 (ADDR_SPACE_KEYWORD): Remove.
4799 * c-common.c (c_register_addr_space): New function.
4800 (c_addr_space_name): Reimplement.
4801 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
4803 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
4804 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
4806 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
4807 Remove TARGET_ADDR_SPACE_KEYWORDS.
4809 2010-05-27 Joseph Myers <joseph@codesourcery.com>
4811 * input.c: New file.
4812 * input.h (main_input_filename): Move declaration to toplev.h.
4813 * toplev.c (input_location, line_table): Move to input.c
4814 * toplev.h (main_input_filename): Move declaration from input.h.
4815 * tree.c (expand_location): Move to input.c.
4816 * Makefile.in (OBJS-common): Add input.o.
4817 (input.o): Add dependencies.
4819 2010-05-27 Richard Guenther <rguenther@suse.de>
4821 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
4822 for non-existant files.
4823 (fork_execute): Mark args_name file as deleted.
4825 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
4828 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
4829 (narrow_signed_type): Likewise.
4831 2010-05-26 Jan Hubicka <jh@suse.cz>
4833 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
4834 edge only when checking is enabled; check using former_clone_of;
4835 check inline clones too.
4836 (cgraph_materialize_clone): Record former_clone_of pointer.
4837 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
4838 combining redirections; dump args_to_skip bitmap
4839 (cgraph_materialize_all_clones): Do no redirection here.
4840 * ipa-inline.c (inline_transform): Do redirection here.
4841 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
4844 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4846 * config/avr/avr-c.c: Do not include regs.h.
4847 Include cpplib.h for cpp_define and tree.h for c-common.h.
4848 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
4849 * config/avr/t-avr: Fix dependencies for avr-c.o.
4851 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4853 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
4854 string instead of SYMBOL_REF rtx.
4855 * rtl.h (set_stack_check_libfunc): Move prototype from here...
4856 * libfuncs.h: ...to here. Adjust for explow.c change.
4858 2010-05-26 Joseph Myers <joseph@codesourcery.com>
4860 * pretty-print.c: Don't include ggc.h.
4861 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
4862 (identifier_to_locale): Use them for allocation.
4863 * pretty-print.h (identifier_to_locale_alloc,
4864 identifier_to_locale_free): Declare.
4865 * toplev.c (alloc_for_identifier_to_locale): New.
4866 (general_init): Set identifier_to_locale_alloc and
4867 identifier_to_locale_free.
4868 * Makefile.in (pretty-print.o): Update dependencies.
4870 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4872 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
4873 pointer types if they have different alignment or mode.
4875 2010-05-26 Anatoly Sokolov <aesok@post.ru>
4877 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4878 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4879 * config/sparc/sparc-protos.h (function_value): Remove declaration.
4880 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
4881 sparc_function_value_regno_p): New functions.
4882 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4883 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4884 (function_value): Rename to...
4885 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
4886 argument to 'outgoing'.
4887 (function_arg_record_value, function_arg_union_value,
4888 function_arg_vector_value): Update comment.
4890 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
4892 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
4893 (fde_needed_for_eh_p): New predicate.
4894 (output_call_frame_info): Use it throughout to decide whether FDEs
4895 are needed for EH purpose.
4896 (dwarf2out_begin_prologue): Reorder assignments.
4898 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4900 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
4901 special case loop->header.
4902 (is_predicated): New.
4903 (if_convertible_loop_p): Call it.
4905 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4907 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
4908 iterator in parameter. Do not generate code during the analysis.
4909 (tree_if_convert_cond_stmt): Removed.
4910 (tree_if_convert_stmt): Removed.
4911 (predicate_bbs): New.
4912 (if_convertible_loop_p): Call predicate_bbs.
4913 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
4914 now contains all the analysis part.
4916 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4918 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
4919 statements in the analysis part.
4920 (tree_if_convert_stmt): Update comment.
4921 (remove_conditions_and_labels): New.
4922 (combine_blocks): Call remove_conditions_and_labels.
4923 (tree_if_conversion): Update comment.
4925 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4927 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
4928 than 2 predecessors or more than 2 successors.
4930 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4932 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
4933 of loops in which the data dependence analysis fails.
4935 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4937 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
4938 CDI_POST_DOMINATORS.
4939 (tree_if_conversion): Same.
4941 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4943 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
4945 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
4947 * tree-if-conv.c: Update copyright years. Fix comments.
4950 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
4952 * builtin-types.def (BT_INT128): New primitive type.
4953 (BT_UINT128): Likewise.
4954 * c-common.c (c_common_r): Add __int128 keyword.
4955 (c_common_type_for_size): Handle __int128.
4956 (c_common_type_for_mode): Likewise.
4957 (c_common_signed_or_unsigned_type): Likewise.
4958 (c_common_nodes_and_builtins): Add builtin type
4959 if target supports 128-bit integer scalar.
4960 * c-common.h (enum rid): Add RID_INT128.
4961 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
4962 if target supports 128-bit integer scalar.
4963 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
4964 (finish_declspecs): Likewise.
4965 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
4966 (c_token_starts_declspecs): Likewise.
4967 (c_parser_declspecs): Likewise.
4968 (c_parser_attributes): Likewise.
4969 (c_parser_objc_selector): Likewise.
4970 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
4971 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
4972 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
4973 * tree.c (make_or_reuse_type): Likewise.
4974 (make_unsigned_type): Likewise.
4975 (build_common_tree_nodes_2): Likewise.
4976 * tree.h (enum integer_type_kind): Add itk_int128 and
4977 itk_unsigned_int128.
4978 (int128_integer_type_node): New define.
4979 (int128_unsigned_type_node): New define.
4980 * doc/extend.texi: Add documentation about __int128 type.
4982 2010-05-26 Richard Guenther <rguenther@suse.de>
4984 * tree-ssa-sccvn.c (copy_nary): Adjust.
4985 (copy_phis): Rename to ...
4986 (copy_phi): ... this. Adjust.
4987 (copy_references): Rename to ...
4988 (copy_reference): ... this. Adjust.
4989 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
4990 result into the valid table.
4992 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4994 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
4995 insn-config.h, insn-codes.h, recog.h, and optabs.h.
4997 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4999 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5001 2010-05-26 Richard Guenther <rguenther@suse.de>
5003 * opts.c (common_handle_option): Handle OPT_Ofast.
5005 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5007 * diagnostic.c: Don't include opts.h.
5008 (permissive_error_option): Define.
5009 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5010 for classify_diagnostic. Don't use memset for
5011 classify_diagnostic. Initialize new and recently added fields.
5012 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5014 (diagnostic_report_diagnostic): Pass context parameter to
5015 diagnostic_report_warnings_p. Use option_enabled and option_name
5017 (emit_diagnostic): Use permissive_error_option.
5018 (permerror): Likewise.
5019 * diagnostic.h: Don't include options.h.
5020 (struct diagnostic_context): Add n_opts, opt_permissive,
5021 inhibit_warnings, warn_system_headers, option_enabled and
5022 option_name fields. Change classify_diagnostic to a pointer.
5023 * opts-diagnostic.h: New file.
5024 * opts.c: Include opts-diagnostic.h.
5025 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5026 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5027 (option_name): New function.
5028 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5029 (c_common_handle_option): Set global_dc->permissive for
5031 * c-common.c (c_cpp_error): Save and restore
5032 global_dc->warn_system_headers, not variable warn_system_headers.
5033 * toplev.c: Include opts-diagnostic.h.
5034 (general_init): Update call to diagnostic_initialize. Set
5035 global_dc->show_column, global_dc->option_enabled and
5036 global_dc->option_name.
5037 (process_options): Don't set global_dc fields here.
5038 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5039 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5041 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5043 * config/picochip/picochip.md (movsi): Split a movsi from a
5046 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5048 * ggc-zone.c: Update copyright year.
5049 (poison_region): Mark memory for Valgrind as undefined before
5050 memset () call and inaccessible afterwards.
5051 (ggc_pch_total_size): Change type of i to int.
5053 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5055 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5057 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5059 * ggc-common.c: Update copyright year.
5060 (ggc_rlimit_bound): Remove prototype. Compile only if
5061 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5062 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5063 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5064 (ggc_min_heapsize_heuristic): Likewise.
5066 2010-05-26 Richard Guenther <rguenther@suse.de>
5068 PR rtl-optimization/44164
5069 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5070 no-common access-path disambiguation.
5071 (indirect_ref_may_alias_decl_p): Adjust.
5072 (indirect_refs_may_alias_p): Likewise.
5073 (refs_may_alias_p_1): Likewise.
5075 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5077 * c-typeck.c: Do not include expr.h.
5079 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5081 * rtl.h (decl_default_tls_model): Move prototype from here...
5082 * output.h: ...to here.
5083 * c-decl.c: Do not include rtl.h.
5084 * c-pragma.c: Likewise.
5085 * c-parser.c: Likewise.
5086 * c-gimplify.c: Likewise. And also not hard-reg-set.
5087 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5088 FIXME note for it. Add a FIXME note for expr.h.
5089 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5090 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5093 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5096 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5097 or total_size is larger than red zone size for non-V4 ABI, emit a
5098 stack_tie resp. frame_tie insn before stack pointer restore.
5099 * config/rs6000/rs6000.md (frame_tie): New insn.
5101 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5103 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5104 * lto-streamer-in.c (input_function): Stream it in.
5105 * lto-streamer-out.c (output_function): Stream it out.
5106 * function.c (allocate_struct_function): Set it.
5107 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5108 for flag_non_call_exceptions.
5109 * cfgbuild.c (control_flow_insn_p): Likewise.
5110 (make_edges): Likewise.
5111 * cfgexpand.c (expand_stack_alignment): Likewise.
5112 * combine.c (distribute_notes): Likewise.
5113 * cse.c (cse_extended_basic_block): Likewise.
5114 * except.c (insn_could_throw_p): Likewise.
5115 * gcse.c (simple_mem): Likewise.
5116 * ipa-pure-const.c (check_call): Likewise.
5117 (check_stmt ): Likewise.
5118 * lower-subreg.c (lower-subreg.c): Likewise.
5119 * optabs.c (emit_libcall_block): Likewise.
5120 (prepare_cmp_insn): Likewise.
5121 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5122 * postreload.c (rest_of_handle_postreload): Likewise.
5123 * reload1.c (reload_as_needed): Likewise.
5124 (emit_input_reload_insns): Likewise.
5125 (emit_output_reload_insns): Likewise.
5126 (fixup_abnormal_edges): Likewise.
5127 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5128 * store-motion.c (find_moveable_store): Likewise.
5129 * tree-eh.c (stmt_could_throw_p): Likewise.
5130 (tree_could_throw_p): Likewise.
5131 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5132 * config/arm/arm.c (arm_expand_prologue): Likewise.
5133 (thumb1_expand_prologue): Likewise.
5134 * config/rx/rx.md (cbranchsf4): Likewise.
5136 * config/s390/s390.c (s390_emit_prologue): Likewise.
5137 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5138 (inline_forbidden_into_p): New predicate.
5139 (expand_call_inline): Use it to forbid inlining.
5140 (tree_can_inline_p): Likewise.
5142 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5144 * config/i386/i386-c.c: Do not include rtl.h.
5145 * config/i386/t-i386: Update dependencies.
5147 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5149 * attribs.c: Do not include rtl.h.
5150 * Makefile.in: Update dependencies.
5152 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5154 * double-int.h (double_int_and): New.
5155 * combine.c (try_combine): Clean up, use double_int_* and
5156 immed_double_int_const functions.
5158 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5160 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5161 stderr to /dev/null instead of grep -q.
5162 * configure: Regenerate.
5164 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5166 * Makefile.in (EXCEPT_H): Fix typo.
5168 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5170 * ira-build.c (update_conflict_hard_reg_costs): New.
5171 (ira_build): Call update_conflict_hard_reg_costs.
5173 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5176 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5178 (intersect_loc_chains): Walk the s2var's loc_chain together
5179 with s1node chain as long as the locations are equal, don't
5180 call find_loc_in_1pdv in that case.
5183 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5184 (copy_bind_expr): ... instead of here.
5185 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5186 if the block hasn't been remapped.
5187 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5188 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5190 2010-05-25 Richard Guenther <rguenther@suse.de>
5193 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5194 out-of-bounds array accesses.
5196 2010-05-25 Richard Guenther <rguenther@suse.de>
5198 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5199 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5200 (run_gcc): Re-organize to make cleanup easier.
5202 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5204 * config/s390/s390.c (optimization_options): Fix and move the
5205 flag_prefetch_loop_arrays override ...
5206 (override_options): ... here.
5208 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5210 * diagnostic.c: Don't include plugin.h.
5211 (diagnostic_report_diagnostic): Don't handle plugins specially
5212 here. Pass context to internal_error callback.
5213 * diagnostic.h (struct diagnostic_context): Add context parameter
5214 to internal_error callback.
5215 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5216 * plugin.h (struct diagnostic_context): Declare.
5217 (warn_if_plugins, plugins_internal_error_function): Declare.
5218 * toplev.c (general_init): Set global_dc->internal_error.
5219 * Makefile.in (diagnostic.o): Update dependencies.
5221 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5223 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5224 * config/rs6000/t-darwin64: New.
5225 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5228 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5231 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5232 match the original (and intended) behaviour before r159557. This
5233 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5236 2010-05-25 Richard Guenther <rguenther@suse.de>
5238 * doc/invoke.texi: Document -Ofast.
5239 * target.h (struct gcc_target): Add handle_ofast.
5240 * target-def.h (TARGET_HANDLE_OFAST): Add.
5241 (TARGET_INITIALIZER): Adjust.
5242 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5243 * common.opt (Ofast): Add.
5245 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5247 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5248 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5250 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5253 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5254 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5255 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5256 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5258 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5260 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5261 DW_OP_minus with negated offset instead of DW_OP_plus.
5262 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5264 2010-05-25 Wei Guozhi <carrot@google.com>
5266 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5267 tst instruction and a new alternative.
5268 * config/arm/constraints.md (Pu): New constraint.
5270 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5272 * function.c (assign_stack_local_1): Initialize variable
5273 to avoid warning when bootstrapping at -O3.
5275 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5277 * configure.ac (all_lang_makefiles): Remove everything related to it.
5278 * configure: Regenerate.
5279 * Makefile.in: Fix reference to ada Make-lang.in.
5280 Remove support for LANG_MAKEFILES.
5282 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5283 Sandra Loosemore <sandra@codesourcery.com>
5285 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5286 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5287 description. Add arm_neon_fp16_ok.
5288 (Add Options): Add arm_neon and arm_neon_fp16.
5290 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5292 * diagnostic.c: Don't include flags.h.
5293 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5294 context parameters. Check flags in the context passed as a parameter.
5295 (diagnostic_build_prefix): Add context parameter. Check
5296 show_column flag in context.
5297 (diagnostic_action_after_output): Check fatal_errors flag in context.
5298 (diagnostic_report_current_module): Check show_column flag in context.
5299 (default_diagnostic_starter): Update call to
5300 diagnostic_build_prefix.
5301 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5302 (emit_diagnostic): Pass context to permissive_error_kind.
5303 (permerror): Pass context to permissive_error_kind.
5304 * diagnostic.h (struct diagnostic_context): Add show_column,
5305 pedantic_errors, permissive and fatal_errors fields.
5306 (diagnostic_build_prefix): Update prototype.
5308 * toplev.c (process_options): Set flags in global_dc from
5309 flag_show_column, flag_pedantic_errors, flag_permissive,
5311 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5312 to diagnostic_build_prefix.
5313 * Makefile.in (diagnostic.o): Update dependencies.
5315 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5317 * config/i386/ia32intrin.h (__crc32q): Define only if
5318 __SSE4_2__ is defined.
5320 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5324 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5325 DECL_VISIBILITY_SPECIFIED.
5326 (emutls_decl): Set DECL_PRESERVE_P and copy
5327 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5328 (emutls_finalize_control_var): New callback.
5329 (emutls_finish): Finalize emutls control variables.
5330 * toplev.c (compile_file): Move the call to emutls_finish ()
5331 before varpool_assemble_pending_decls ().
5333 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5335 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5336 added to the preprocessor condition.
5338 2010-05-24 Paul Brook <paul@codesourcery.com>
5340 * gengtype-lex.l: Add HARD_REG_SET.
5341 * expr.c (expand_expr_real_1): Record writes to hard registers.
5342 * function.c (rtl_data): Add asm_clobbers.
5343 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5344 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5345 Use crtl->asm_clobbers.
5347 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5349 * doc/makefile.texi (Makefile): Mention stages 'profile'
5350 and 'feedback' for profiledbootstrap.
5352 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5355 * config/i386/i386.c (def_builtin): Properly check
5356 OPTION_MASK_ISA_64BIT.
5358 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5360 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5361 typedefs with different but compatible types. Allow duplicate
5362 typedefs with the same type except for pedantic non-C1X, but give
5363 warning for variably modified types.
5364 * c-typeck.c (tagged_types_tu_compatible_p,
5365 function_types_compatible_p, type_lists_compatible_p,
5366 comptypes_internal): Add parameter different_types_p; set
5367 *different_types_p for different but compatible types. All
5369 (comptypes_check_different_types): New.
5370 * c-tree.h (comptypes_check_different_types): Declare.
5372 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5374 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5375 * jump.c: Include basic-block.h.
5376 * profile.c: Likewise.
5377 * tree-profile.c: Likewise.
5378 * coverage.c: Likewise.
5379 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5380 (optimize_function_for_speed_p): Likewise.
5381 * function.h (optimize_function_for_size_p,
5382 optimize_function_for_speed_p): Moved here from basic-block.h.
5383 * Makefile.in: Update dependencies.
5385 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5387 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5388 before calling make; allow override through $MAKE.
5389 * doc/invoke.texi (Optimize Options): Document override.
5391 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5393 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5394 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5395 (rs6000_mode_dependent_address_ptr): Make static.
5396 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5397 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5400 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5403 * config/i386/i386.c: Make sure that the correct regparm is passed.
5405 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5407 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5408 * sbitmap.c: ...to here to internalize sbitmap element access.
5409 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5410 Explain why basic-block.h is included.
5411 * function.h: Include tm.h for CUMULATIVE_ARGS.
5412 * Makefile.in: Update dependencies.
5414 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5416 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5418 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5419 * sbitmap.c: Include sbitmap.h.
5420 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5421 hard-reg-set.h. Split everything related to regsets out from here...
5422 * regset.h: ...to here. New file.
5423 * df.h: Include regset.h and sbitmap.h.
5424 * tree-flow.h: Likewise.
5425 * cfgloop.h: Likewise.
5426 * except.h: Do not include sbitmap.h. Include hashtab.h.
5427 * cgraph.h: Include vec.h and function.h.
5428 * reload.h (struct insn_chain): Change types of live_throughout
5429 and dead_or_set from regset_head to bitmap_head.
5430 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5431 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
5432 spilled_regs from regset_head to bitmap_head to avoid dependency
5434 * sel-sched-ir.h: Include regset.h.
5435 * reload.c: Include df.h before reload.h.
5436 * caller-save.c: Likewise.
5437 * reload1.c: Likewise.
5439 (mark_elimination): Update type of r to bitmap, consistent with
5441 * dominance.c: Include bitmap.h.
5442 * modulo-sched.c: Include df.h.
5443 * cfganal.c: Include bitmap.h and sbitmap.h.
5444 * cfgbuild.c: Include sbitmap.h.
5445 * lcm.c: Include sbitmap.h.
5446 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
5447 * domwalk.c: Include sbitmap.h, exclude ggc.h.
5448 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
5449 * cselib.c: Include bitmap.h.
5450 * tree-optimize.c: Include regset.h.
5451 * stmt.c: Include bitmap.h.
5452 * Makefile.in: Update dependencies.
5454 2010-05-22 Jan Hubicka <jh@suse.cz>
5456 * cgraph.h (struct varpool_node): Add same_comdat_group.
5457 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
5459 (output_varpool): Update call of lto_output_varpool_node.
5460 (input_varpool): Read same_comdat_group pointer.
5461 (input_varpool_1): Fixup same_comdat_group pointer.
5462 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
5463 group is needed, all are.
5464 * varpool.c (varpool_remove_node): Remove node from same comdat group
5466 (varpool_analyze_pending_decls): Walk same comdat groups.
5468 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5470 * rtl.h (union rtunion_def): Remove rt_bit member.
5471 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
5472 * print-rtl (print_rtx): Do not print the member.
5473 * gengtype.c (adjust_field_rtx_def): Do not handle it.
5474 * gengenrtl.c (type_from_format): Likewise.
5475 (accessor_from_format): Likewise.
5477 2010-05-22 Joseph Myers <joseph@codesourcery.com>
5479 * dbgcnt.c: Include toplev.h instead of errors.h.
5480 * ira-emit.c: Don't include errors.h.
5481 * ira.c: Include toplev.h instead of errors.h.
5482 * lto-compress.c: Include toplev.h instead of errors.h.
5483 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
5484 ira.o, dbgcnt.o): Update dependencies.
5486 2010-05-22 Richard Guenther <rguenther@suse.de>
5488 * gimple.c (gimple_types_compatible_p): Check type qualifications
5489 before merging pointer to complete and pointer to incomplete type.
5490 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
5491 we use our own resolution algorithm. The gold linker plugin
5492 doesn't do the job we want it to do here.
5494 2010-05-22 Anatoly Sokolov <aesok@post.ru>
5496 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5497 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5498 (sparc_mode_dependent_address_p): New function.
5500 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5502 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
5504 * timevar.c: Do not include any core headers.
5505 (timevar_print): De-i18n-ize.
5506 (print_time): Likewise.
5507 * timevar.h (timevar_push, timevar_pop): Make inline functions.
5509 2010-05-21 Joseph Myers <joseph@codesourcery.com>
5511 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
5513 (diagnostic_initialize): Initialize x_data not last_function.
5514 (diagnostic_report_current_function): Move to tree-diagnostic.c.
5515 (default_diagnostic_starter): Call
5516 diagnostic_report_current_module not
5517 diagnostic_report_current_function.
5518 (diagnostic_report_diagnostic): Initialize x_data not
5520 (verbatim): Likewise.
5521 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
5523 (struct diagnostic_context): Change last_function to x_data.
5524 (diagnostic_auxiliary_data): Replace with
5525 diagnostic_context_auxiliary_data and
5526 diagnostic_info_auxiliary_data.
5527 (diagnostic_last_function_changed, diagnostic_set_last_function,
5528 diagnostic_report_current_function): Move to tree-diagnostic.h.
5529 (print_declaration, dump_generic_node, print_generic_stmt,
5530 print_generic_stmt_indented, print_generic_expr,
5531 print_generic_decl, debug_c_tree, dump_omp_clauses,
5532 print_call_name, debug_generic_expr, debug_generic_stmt,
5533 debug_tree_chain, default_tree_printer): Move to
5534 tree-pretty-print.h.
5535 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
5536 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
5537 gimple-pretty-print.h.
5538 * pretty-print.c: Don't include tree.h
5539 (pp_base_format): Don't handle %K here.
5540 (pp_base_tree_identifier): Move to tree-pretty-print.c.
5541 * pretty-print.h (text_info): Change abstract_origin to x_data.
5542 (pp_tree_identifier, pp_unsupported_tree,
5543 pp_base_tree_identifier): Move to tree-pretty-print.h.
5544 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
5545 tree-pretty-print.h: New files.
5546 * tree-pretty-print.c: Include tree-pretty-print.h.
5547 (percent_K_format): New. Moved from pretty-print.c.
5548 (pp_base_tree_identifier): Move from pretty-print.c.
5549 * c-objc-common.c: Include tree-pretty-print.h.
5550 (c_tree_printer): Handle %K here.
5551 * langhooks.c: Include tree-diagnostic.h.
5552 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
5553 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
5554 (default_tree_printer): Handle %K using percent_K_format.
5555 (general_init): Use default_tree_diagnostic_starter.
5556 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
5557 (free_lang_data): Use default_tree_diagnostic_starter.
5558 * c-pretty-print.c: Include tree-pretty-print.h.
5559 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5560 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5561 * dwarf2out.c: Include tree-pretty-print.h.
5562 * except.c: Include tree-pretty-print.h.
5563 * gimple-pretty-print.c: Include tree-pretty-print.h and
5564 gimple-pretty-print.h.
5565 * gimplify.c: Include tree-pretty-print.h.
5566 * graphite-poly.c: Include tree-pretty-print.h and
5567 gimple-pretty-print.h.
5568 * ipa-cp.c: Include tree-pretty-print.h.
5569 * ipa-inline.c: Include gimple-pretty-print.h.
5570 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5571 * ipa-pure-const.c: Include gimple-pretty-print.h.
5572 * ipa-struct-reorg.c: Include tree-pretty-print.h and
5573 gimple-pretty-print.h.
5574 * ipa-type-escape.c: Include tree-pretty-print.h.
5575 * print-rtl.c: Include tree-pretty-print.h.
5576 * print-tree.c: Include gimple-pretty-print.h.
5577 * sese.c: Include tree-pretty-print.h.
5578 * tree-affine.c: Include tree-pretty-print.h.
5579 * tree-browser.c: Include tree-pretty-print.h.
5580 * tree-call-cdce.c: Include gimple-pretty-print.h.
5581 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
5582 * tree-chrec.c: Include tree-pretty-print.h.
5583 * tree-data-ref.c: Include tree-pretty-print.h and
5584 gimple-pretty-print.h.
5585 * tree-dfa.c: Include tree-pretty-print.h.
5586 * tree-if-conv.c: Include tree-pretty-print.h and
5587 gimple-pretty-print.h.
5588 * tree-inline.c: Include tree-pretty-print.h.
5589 * tree-into-ssa.c: Include tree-pretty-print.h and
5590 gimple-pretty-print.h.
5591 * tree-nrv.c: Include tree-pretty-print.h.
5592 * tree-object-size.c: Include tree-pretty-print.h and
5593 gimple-pretty-print.h.
5594 * tree-outof-ssa.c: Include tree-pretty-print.h and
5595 gimple-pretty-print.h.
5596 * tree-parloops.c: Include tree-pretty-print.h and
5597 gimple-pretty-print.h.
5598 * tree-predcom.c: Include tree-pretty-print.h and
5599 gimple-pretty-print.h.
5600 * tree-scalar-evolution.c: Include tree-pretty-print.h and
5601 gimple-pretty-print.h.
5602 * tree-sra.c: Include tree-pretty-print.h.
5603 * tree-ssa-address.c: Include tree-pretty-print.h.
5604 * tree-ssa-alias.c: Include tree-pretty-print.h.
5605 * tree-ssa-ccp.c: Include tree-pretty-print.h and
5606 gimple-pretty-print.h.
5607 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
5608 * tree-ssa-copy.c: Include tree-pretty-print.h and
5609 gimple-pretty-print.h.
5610 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
5611 * tree-ssa-dce.c: Include tree-pretty-print.h and
5612 gimple-pretty-print.h.
5613 * tree-ssa-dom.c: Include tree-pretty-print.h and
5614 gimple-pretty-print.h.
5615 * tree-ssa-dse.c: Include gimple-pretty-print.h.
5616 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
5617 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
5618 * tree-ssa-live.c: Include tree-pretty-print.h and
5619 gimple-pretty-print.h.
5620 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
5621 gimple-pretty-print.h.
5622 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
5623 gimple-pretty-print.h.
5624 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
5625 gimple-pretty-print.h.
5626 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
5627 gimple-pretty-print.h.
5628 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
5629 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
5630 * tree-ssa-operands.c: Include tree-pretty-print.h and
5631 gimple-pretty-print.h.
5632 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
5633 gimple-pretty-print.h.
5634 * tree-ssa-pre.c: Include tree-pretty-print.h and
5635 gimple-pretty-print.h.
5636 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
5637 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
5638 gimple-pretty-print.h.
5639 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
5640 gimple-pretty-print.h.
5641 * tree-ssa-sink.c: Include gimple-pretty-print.h.
5642 * tree-ssa-ter.c: Include tree-pretty-print.h and
5643 gimple-pretty-print.h.
5644 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
5645 * tree-ssa.c: Include tree-pretty-print.h and
5646 gimple-pretty-print.h.
5647 * tree-stdarg.c: Include gimple-pretty-print.h.
5648 * tree-switch-conversion.c: Include gimple-pretty-print.h.
5649 * tree-tailcall.c: Include tree-pretty-print.h and
5650 gimple-pretty-print.h.
5651 * tree-vect-data-refs.c: Include tree-pretty-print.h and
5652 gimple-pretty-print.h.
5653 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
5654 gimple-pretty-print.h.
5655 * tree-vect-loop.c: Include tree-pretty-print.h and
5656 gimple-pretty-print.h.
5657 * tree-vect-patterns.c: Include gimple-pretty-print.h.
5658 * tree-vect-slp.c: Include tree-pretty-print.h and
5659 gimple-pretty-print.h.
5660 * tree-vect-stmts.c: Include tree-pretty-print.h and
5661 gimple-pretty-print.h.
5662 * tree-vectorizer.c: Include tree-pretty-print.h.
5663 * tree-vrp.c: Include tree-pretty-print.h and
5664 gimple-pretty-print.h.
5665 * value-prof.c: Include tree-pretty-print.h and
5666 gimple-pretty-print.h.
5667 * var-tracking.c: Include tree-pretty-print.h.
5668 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
5669 (tree-diagnostic.o): New dependencies.
5670 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
5671 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
5672 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
5673 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
5674 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
5675 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
5676 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5677 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
5678 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
5679 tree-ssa-address.o, tree-ssa-loop-niter.o,
5680 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
5681 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
5682 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
5683 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
5684 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
5685 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
5686 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
5687 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
5688 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
5689 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
5690 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
5691 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
5692 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
5693 tree-switch-conversion.o, var-tracking.o, value-prof.o,
5694 cfgexpand.o, pretty-print.o): Update dependencies.
5696 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
5698 * tree-ssa-structalias.c: Remove tm_p.h from include.
5700 2010-05-21 Jeff Law <law@redhat.com>
5702 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
5704 2010-05-21 Jason Merrill <jason@redhat.com>
5706 * tree-eh.c (cleanup_is_dead_in): New.
5707 (lower_try_finally): Don't generate a dead cleanup region.
5708 (lower_cleanup): Likewise.
5710 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5713 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
5714 unchain each use from the cyclic next_regno_use chain first.
5716 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5718 * real: Do not include gmp.h, mpfr.h, and mpc.h.
5719 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
5720 (real_value_negate, real_value_abs): New prototypes.
5721 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
5722 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
5723 new include file for interface between MPFR and REAL_VALUE_TYPE.
5724 * real.c: Include realmpfr.h.
5725 (real_arithmetic2): Remove legacy function.
5726 (real_value_negate): New.
5727 (real_value_abs): New.
5728 (mfpr_from_real, real_from_mpfr): Move from here...
5729 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
5730 * builtins.c: Include realmpfr.h.
5731 * fold-const.c: Include realmpfr.h.
5732 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
5733 (fold_negate_const): Likewise.
5734 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
5735 * toplev.c: Include realmpfr.h.
5736 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
5737 and real_value_negate.
5738 * fixed-value.c (check_real_for_fixed_mode): Likewise.
5739 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
5740 (vfp3_const_double_index): Likewise.
5741 (arm_print_operand): Likewise.
5742 * Makefile.in: Update dependencies.
5744 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5746 * config/s390/s390.c (override_options): Increase the default
5747 of max-completely-peel-times.
5749 2010-05-21 Julian Brown <julian@codesourcery.com>
5750 Mark Mitchell <mark@codesourcery.com>
5752 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
5753 sibling calls for Thumb-1.
5754 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
5755 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
5757 (*call_insn, *call_value_insn): Don't use for Thumb-2.
5758 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
5760 (return): New expander.
5761 (*arm_return): New name for ARM return insn.
5762 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
5764 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
5766 * config.gcc (sparc64-*-rtems*): New target.
5768 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5770 * tree.c (build_function_decl_skip_args): Fix grammar.
5771 (build_function_type_list_1): Fix typos, adjust formatting.
5773 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
5775 * tree.h: Include real.h and fixed-value.h as basic datatypes.
5776 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
5777 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
5778 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
5779 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
5780 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
5781 tree-pretty-print.c, tree-loop-distribution.c,
5782 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
5783 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
5784 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
5785 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
5786 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
5787 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
5788 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
5789 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
5790 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
5791 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
5792 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
5793 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
5794 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
5795 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
5796 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
5797 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
5798 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
5799 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
5800 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
5801 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
5802 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
5803 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
5804 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
5805 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
5806 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
5807 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
5808 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
5809 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
5810 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
5811 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
5812 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
5813 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
5814 config/score/score7.c, config/score/score.c, config/arm/arm.c,
5815 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
5816 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
5817 config/bfin/bfin.c: Clean up redundant includes.
5818 * Makefile.in: Update accordingly.
5820 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
5823 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
5824 statement has no arguments.
5826 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
5829 * varasm.c (emutls_decl): Merge attributes to new decl.
5831 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
5834 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
5835 around the uniquized constructor if its type requires a conversion.
5837 2010-05-21 Jakub Jelinek <jakub@redhat.com>
5840 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
5841 at -O0 goto_locus of any of the incoming edges differs from
5842 goto_locus of outgoing edge, or gimple_location of any of the
5845 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
5847 * ira.c (ira_non_ordered_class_hard_regs): Define.
5848 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
5849 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
5850 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
5851 cost of unaligned hard regs when allocating multi-reg pseudos.
5853 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5855 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
5856 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
5857 for TARGET_NO_FLOAT.
5858 * config/mips/mips.c (mips_file_start): Expand conditional expression
5859 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
5860 (mips_override_options): Move -mno-float override -msoft-float and
5862 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
5863 Condition(TARGET_SUPPORTS_NO_FLOAT).
5864 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
5865 __mips_no_float here.
5866 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
5867 (TARGET_SUPPORTS_NO_FLOAT): Define.
5868 * config/mips/sdemtk.opt: Delete.
5870 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
5872 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
5874 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
5877 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
5878 * configure: Regenerate.
5879 * config.in: Regenerate.
5880 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
5881 instead of sahf only for 64bit targets.
5883 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5886 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
5887 setup_ref_regs for DEBUG_INSNs.
5889 2010-05-20 Jan Hubicka <jh@suse.cz>
5892 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
5894 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5897 * df-scan.c (df_ref_compare): Stabilize sort.
5899 2010-05-20 Jakub Jelinek <jakub@redhat.com>
5901 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
5902 argument. Don't use DW_OP_piece if offset is non-zero,
5903 put offset into second DW_OP_bit_piece argument.
5904 (dw_sra_loc_expr): Adjust callers. For memory expressions
5907 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
5910 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
5911 settings for 16-bit-constant "addo" alternative.
5913 2010-05-19 James E. Wilson <wilson@codesourcery.com>
5915 * config/mips/mips-dsp.md (add<DSPV:mode>3,
5916 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
5919 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
5920 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
5923 2010-05-19 Joseph Myers <joseph@codesourcery.com>
5925 * diagnostic.c (FLOAT, FFS): Don't undefine.
5926 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
5927 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
5930 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5932 * combine.c (propagate_for_debug): Call make_compound_operation
5933 on the source value.
5934 (try_combine): When implementing a split chosen by find_split_point,
5935 either copy i2src or set it to null. Assert that i2src is not null
5936 before substituting into CALL_INSN_FUNCTION_USAGE.
5938 2010-05-19 Anatoly Sokolov <aesok@post.ru>
5940 * double-int.h (double_int_ior): New function.
5941 * tree.h (build_int_cst_wide_type): Remove.
5942 * tree.c (build_int_cst_wide_type): Remove.
5943 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
5944 of build_int_cst_wide_type.
5945 * stor-layout.c (set_sizetype): (Ditto.).
5946 * dojump.c (do_jump): Use build_int_cstu instead of
5947 build_int_cst_wide_type.
5949 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
5951 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
5952 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
5953 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
5954 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
5955 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
5956 propagate the 'data' argument to copy_tree_r.
5957 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
5958 Propagate 'data' argument to walk_tree.
5959 (copy_if_shared): New function.
5960 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
5961 (unmark_visited): New function.
5962 (unshare_body): Call copy_if_shared instead of doing it manually.
5963 (unvisit_body): Call unmark_visited instead of doing it manually.
5965 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
5967 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
5968 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
5969 * hooks.c: Likewise.
5970 * target-def.h (TARGET_FOLD_BUILTIN): Define to
5971 hook_tree_tree_int_treep_bool_null.
5972 * target.h (struct gcc_target): Update signature of fold_builtin
5974 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
5975 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
5976 instead of the call expression.
5977 (fold_builtin_call_array): Pass n and argarray directly.
5978 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
5980 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
5981 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
5982 `i' and use it in place of `arity'.
5983 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
5984 Dereference `args' directly.
5985 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
5987 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5989 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5991 (Directives): Document optional dg-require-effective-target
5994 2010-05-19 Richard Guenther <rguenther@suse.de>
5997 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
5999 2010-05-19 Richard Guenther <rguenther@suse.de>
6001 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6002 * common.opt (fwhopr=): New.
6003 * opts.c (common_handle_option): Handle OPT_fwhopr.
6004 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6005 * collect2.c (main): Match -fwhopr*.
6006 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6007 Execute ltrans stage in parallel when jobs is bigger than 1.
6009 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6011 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6012 pentiumpro on Solaris 8/x86 with Sun as.
6013 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6015 (gcc_cv_as_ix86_quad): Check for .quad directive.
6016 * configure: Regenerate.
6017 * config.in: Regenerate.
6018 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6020 2010-05-19 Martin Jambor <mjambor@suse.cz>
6022 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6023 also for indirect edges. Actual printing moved...
6024 (ipa_print_node_jump_functions_for_edge): ...here.
6025 (ipa_compute_jump_functions): Renamed to
6026 ipa_compute_jump_functions_for_edge and made static.
6027 (ipa_compute_jump_functions): New function.
6028 (make_edge_direct_to_target): Check if the number of arguments on
6029 the newly direct edge is the same as the number of parametrs of
6031 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6032 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6033 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6034 analysis functions unconditionally, call the new
6035 ipa_analyze_params_uses on the node instead of every edge.
6037 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6039 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6041 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6042 also checks for a constant int vs. non-constant but
6043 loop-invariant steps.
6044 (find_or_create_group): Change the sort algorithm to only consider
6045 steps that are constant ints.
6046 (idx_analyze_ref): Adopt code to handle a tree instead of a
6047 HOST_WIDE_INT for step.
6048 (gather_memory_references_ref): Handle tree instead of int and be
6049 prepared to see a NULL_TREE.
6050 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6051 prefetches if the step cannot be calculated at compile time.
6052 (issue_prefetch_ref): Issue prefetches for non-constant but
6053 loop-invariant steps.
6055 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6058 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6060 * tree.h (build_call_list): Remove.
6061 * tree.c (build_call_list): Remove.
6063 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6065 * tree.h (build_call_list): Remove.
6066 * tree.c (build_call_list): Remove.
6068 2010-05-18 Jan Hubicka <jh@suse.cz>
6070 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6072 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6074 PR rtl-optimization/43332
6075 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6077 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6079 * tree.h (build_int_cstu): Implement as static inline.
6080 * tree.c (build_int_cstu): Remove function.
6081 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6084 2010-05-18 Richard Guenther <rguenther@suse.de>
6087 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6088 (debug): Initialize from -save-temps.
6089 (collect_execute): Print command-line when verbose.
6090 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6091 for ltrans invocation. Produce -dumpbase flag again.
6092 (process_args): Remove.
6094 * collect2.c (maybe_run_lto_and_relink): Only pass object
6095 files to lto-wrapper.
6096 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6098 2010-05-18 Jan Hubicka <jh@suse.cz>
6100 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6101 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6103 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6106 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6108 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6111 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6114 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6117 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6119 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6120 lto-macho as lto_binary_reader.
6122 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6123 after .section directive; just print it before the directive instead.
6125 2010-05-17 Jan Hubicka <jh@suse.cz>
6127 * cgraph.c (cgraph_create_virtual_clone): Only check
6128 versionable_function_p when not in wpa and checking is enabled.
6129 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6130 there are no more functions to materialize.
6132 2010-05-17 Jan Hubicka <jh@suse.cz>
6134 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6135 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6137 (output_cgraph): Call output_cgraph_opt_summary.
6138 (input_cgrpah): Call input_cgraph_opt_summary.
6139 (output_cgraph_opt_summary_p, output_node_opt_summary,
6140 input_node_opt_summary, input_cgraph_opt_section): New functions.
6141 * lto-section-in.c (lto_section_name): Add cgraphopt.
6142 * tree-inline.c (tree_function_versioning): Handle parm_num.
6143 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6144 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6146 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6148 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6149 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6150 the insn to prefetch ratio heuristic to loops with known trip count.
6152 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6154 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6155 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6156 is far from what is required by the prefetch.
6158 2010-05-17 Jan Hubicka <jh@suse.cz>
6160 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6161 (ipcp_estimate_growth): Likewise.
6162 (ipcp_const_param_count): Likewise.
6163 (ipcp_insert_stage): Likewise.
6164 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6165 (visit_store_addr_for_mod_analysis): Set used flag.
6166 (ipa_detect_param_modifications): Set used flag for SSE params;
6167 update use of walk_stmt_load_store_addr_ops.
6168 (ipa_print_node_params): Print used flag.
6169 (ipa_write_node_info): Stream used flag.
6170 (ipa_read_node_info): Likewise.
6171 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6172 (ipa_is_param_used): New function.
6173 (lto_ipa_fixup_call_notes): Remove unused declaration.
6175 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6178 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6179 * configure: Regenerate.
6180 * config.in: Regenerate.
6181 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6182 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6183 Don't emit whitespace.
6184 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6185 (*rep_movsi): Likewise.
6186 (*rep_movsi_rex64): Likewise.
6187 (*rep_movqi): Likewise.
6188 (*rep_movqi_rex64): Likewise.
6189 (*rep_stosdi_rex64): Likewise.
6190 (*rep_stossi): Likewise.
6191 (*rep_stossi_rex64): Likewise.
6192 (*rep_stosqi): Likewise.
6193 (*rep_stosqi_rex64): Likewise.
6194 (*cmpstrnqi_nz_1): Use {%;} after repz.
6195 (*cmpstrnqi_nz_rex_1): Likewise.
6196 (*cmpstrnqi_1): Likewise.
6197 (*cmpstrnqi_rex_1): Likewise.
6198 (*strlenqi_1): Use {%;} after repnz.
6199 (*strlenqi_rex_1): Likewise.
6200 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6201 (*sync_compare_and_swap<mode>): Likewise.
6202 (sync_double_compare_and_swap<mode>): Likewise.
6203 (*sync_double_compare_and_swapdi_pic): Likewise.
6204 (sync_old_add<mode>): Likewise.
6205 (sync_add<mode>): Likewise.
6206 (sync_sub<mode>): Likewise.
6207 (sync_<code><mode>): Likewise.
6209 2010-05-17 Martin Jambor <mjambor@suse.cz>
6211 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6212 otr_token and polymorphic.
6213 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6214 (cgraph_clone_edge): Copy the above fields.
6215 * tree.c (get_binfo_at_offset): New function.
6216 * tree.h (get_binfo_at_offset): Declare.
6217 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6218 type, reordered items, updated comments.
6219 (union jump_func_value): Added base_type field, reordered fields.
6220 (enum ipa_lattice_type): Moved down in the file.
6221 (struct ipa_param_descriptor): New field polymorphic.
6222 (ipa_is_param_polymorphic): New function.
6223 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6224 (ipa_print_node_jump_functions): Print known type jump functions.
6225 (compute_complex_pass_through): Renamed to...
6226 (compute_complex_assign_jump_func): this.
6227 (compute_complex_ancestor_jump_func): New function.
6228 (compute_known_type_jump_func): Likewise.
6229 (compute_scalar_jump_functions): Create known type and complex ancestor
6231 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6232 flag in the call note accordingly.
6233 (ipa_analyze_call_uses): Renamed to...
6234 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6235 variable var only in the block where it is used.
6236 (ipa_analyze_virtual_call_uses): New function.
6237 (ipa_analyze_call_uses): Likewise.
6238 (combine_known_type_and_ancestor_jfs): Likewise.
6239 (update_jump_functions_after_inlining): Implemented handling of a
6240 number of new jump function types combination.
6241 (print_edge_addition_message): Removed.
6242 (make_edge_direct_to_target): New function.
6243 (try_make_edge_direct_simple_call): Likewise.
6244 (try_make_edge_direct_virtual_call): Likewise.
6245 (update_call_notes_after_inlining): Renamed to...
6246 (update_indirect_edges_after_inlining): this. Moved edge creation for
6247 indirect calls to try_make_edge_direct_simple_call, also calls
6248 try_make_edge_direct_virtual_call for virtual calls.
6249 (ipa_print_node_params): Changed the header message.
6250 (ipa_write_jump_function): Stream also known type jump functions.
6251 (ipa_read_jump_function): Likewise.
6252 (ipa_write_indirect_edge_info): Stream new fields in
6253 cgraph_indirect_call_info.
6254 (ipa_read_indirect_edge_info): Likewise.
6255 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6258 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6260 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6262 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6264 * tree.h (CALL_EXPR_ARGS): Delete.
6265 (call_expr_arglist): Delete.
6266 * tree.c (call_expr_arglist): Delete.
6267 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6268 targetm.fold_builtin.
6269 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6270 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6271 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6272 arglist parameter. Use CALL_EXPR_ARG.
6273 (picochip_expand_builtin_3op): Likewise.
6274 (picochip_expand_builtin_2opvoid): Likewise.
6275 (picochip_expand_array_get): Likewise.
6276 (picochip_expand_array_put): Likewise.
6277 (picochip_expand_array_testport): Likewise.
6278 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6279 rather than arglist.
6280 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6282 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6283 than TREE_VALUE and TREE_CHAIN.
6284 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6285 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6288 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6291 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6292 to have no fallthru edge.
6295 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6296 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6297 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6298 add BARRIER after previous bb if needed.
6300 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6302 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6304 2010-05-17 Alan Modra <amodra@gmail.com>
6306 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6307 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6308 with copy_reg rtx param.
6309 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6310 Correct cases where code for ABI_V4 did not initialise the reg
6311 used to access frame. Also leave frame_reg_rtx as sp for large
6312 frames that save no regs.
6314 2010-05-17 Martin Jambor <mjambor@suse.cz>
6317 * tree-sra.c (create_access_replacement): New parameter rename, mark
6318 the replaement for renaming only when it is true.
6319 (get_access_replacement): Pass true in the rename parameter of
6320 create_access_replacement.
6321 (get_unrenamed_access_replacement): New function.
6322 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6323 replacement declaration from it.
6325 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6327 * function.c (try_fit_stack_local, add_frame_space): New static
6329 (assign_stack_local_1): Use them. Look for opportunities to use
6330 space previously wasted on alignment.
6331 * function.h (struct frame_space): New.
6332 (struct rtl_data): Add FRAME_SPACE_LIST member.
6333 * reload1.c (something_was_spilled): New static variable.
6334 (alter_reg): Set it.
6335 (reload): Test it in addition to testing if the frame size changed.
6337 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6339 * config/s390/s390.c: Define sane prefetch settings and activate
6340 flag_prefetch_loop_arrays on -O3.
6341 * config/s390/s390.h: Declare that read can use write prefetch.
6343 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6345 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6348 2010-05-16 Jan Hubicka <jh@suse.cz>
6350 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6351 function body; do not check stdarg field of struct function.
6353 2010-05-16 Jan Hubicka <jh@suse.cz>
6355 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6356 * cgraph.h (cgraph_local_info): Add versionable flag.
6357 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6358 (ipcp_versionable_function_p): Use it.
6359 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6362 2010-05-16 Jan Hubicka <jh@suse.cz>
6364 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6365 clone into hash when it is different from orig.
6366 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6367 * cgraph.h (cgraph_clone_node): Update prototype.
6368 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6369 (lto_cgraph_encoder_delete): Delete body map.
6370 (lto_cgraph_encoder_size): Move to header.
6371 (lto_cgraph_encoder_encode_body_p,
6372 lto_set_cgraph_encoder_encode_body): New.
6373 (lto_output_node): Do not take written_decls argument; output clone_of
6375 (add_node_to): Add include_body_argument; call
6376 lto_set_cgraph_encoder_encode_body on master of the clone.
6377 (add_references): Update use of add_node_to.
6378 (compute_ltrans_boundary): Likewise.
6379 (output_cgraph): Do not create written_decls bitmap.
6380 (input_node): Take nodes argument; stream in clone_of correctly.
6381 (input_cgraph_1): Update use of input_node.
6382 * lto-streamer-out.c (lto_output): Use encoder info to decide
6383 what bodies to output.
6384 * ipa-inline.c (cgraph_clone_inlined_nodes,
6385 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6386 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6387 (lto_cgraph_encoder_size): Define here.
6388 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6391 2010-05-16 Richard Guenther <rguenther@suse.de>
6393 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6395 * ipa-type-escape.c (gate_type_escape_vars): Run when
6396 -fipa-struct-reorg runs.
6397 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6398 * common.opt (fipa-type-escape): Remove.
6400 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6402 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6403 (decode_options): Likewise.
6404 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6406 2010-05-16 Jan Hubicka <jh@suse.cz>
6408 * ipa.c (function_and_variable_visibility): Also bring local all
6411 2010-05-16 Richard Guenther <rguenther@suse.de>
6413 * alias.c (nonoverlapping_memrefs_p): Remove use of
6414 IPA type-escape information.
6416 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6418 * c-common.c (c_common_reswords): Add _Static_assert for C.
6419 * c-parser.c (c_token_starts_declaration,
6420 c_parser_next_token_starts_declaration,
6421 c_parser_static_assert_declaration_no_semi,
6422 c_parser_static_assert_declaration): New.
6423 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6424 Handle static assertions if static_assert_ok.
6425 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6426 c_parser_compound_statement_nostart, c_parser_label,
6427 c_parser_for_statement, c_parser_objc_methodprotolist,
6428 c_parser_omp_for_loop): All callers of
6429 c_parser_declaration_or_fndef changed.
6430 (c_parser_struct_declaration): Handle static assertions.
6431 (c_parser_compound_statement_nostart): Use
6432 c_parser_next_token_starts_declaration and
6433 c_token_starts_declaration to detect start of declarations.
6434 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
6437 2010-05-16 Anatoly Sokolov <aesok@post.ru>
6439 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6440 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6441 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6442 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6443 (mmix_function_outgoing_value): Rename to...
6444 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
6445 (mmix_function_value_regno_p): Make static.
6446 (mmix_libcall_value): New function.
6447 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
6448 mmix_function_value_regno_p): Remove declaration.
6450 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6452 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
6453 BUILT_IN_ALLOCA if stack checking is enabled.
6455 2010-05-16 Richard Guenther <rguenther@suse.de>
6457 * var-tracking.c (vars_copy_1): Inline ...
6458 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
6459 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
6460 (variable_merge_over_cur): Adjust. Merge asserts.
6461 (variable_merge_over_src): Likewise.
6462 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
6463 (variable_post_merge_new_vals): Merge asserts.
6464 (variable_post_merge_perm_vals): Likewise.
6465 (find_mem_expr_in_1pdv): Likewise.
6466 (dataflow_set_different_value): Remove.
6467 (onepart_variable_different_p): Merge asserts.
6468 (variable_different_p): Likewise.
6469 (dataflow_set_different_1): Inline ...
6470 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
6471 (emit_notes_for_differences_1): Merge asserts.
6473 2010-05-16 Richard Guenther <rguenther@suse.de>
6475 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
6476 * optabs.c (libfunc_decl_hash): Likewise.
6477 * varasm.c (emutls_decl): Likewise.
6479 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
6481 * c-decl.c: Don't include gimple.h.
6482 (merge_decls): Do not copy gimple_body.
6484 2010-05-15 Jason Merrill <jason@redhat.com>
6486 * c.opt: Add -fnothrow-opt.
6488 2010-05-15 Jan Hubicka <jh@suse.cz>
6490 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
6492 * passes.c (ipa_write_summaries): Write all analyzed nodes.
6494 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
6496 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
6497 * Makefile.in: Add it.
6498 Fix all other Makefile dependencies for changes below.
6499 * tree.h: Include it instead of defining VEC primitives here.
6500 * gimple.h: Likewise.
6502 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
6503 * except.h: Include vecir.h, break dependence on tree.h.
6505 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
6507 * tree-iterator.c: ...to here.
6508 * tree-iterator.h: Fix file introduction comment. Add extern markers.
6510 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
6512 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
6513 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
6514 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
6515 tree-mudflap.h, and target.h.
6516 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
6517 predict.h, tree-inline.h, gimple.h, and langhooks.h.
6518 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
6519 Add FIXME for why gimple.h is still included (should be unnecessary
6520 since GCC 4.5 gimplification unit-at-a-time).
6521 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
6522 * c-pragma.c: Add FIXME for why function.h needs to be included just
6523 for cfun, at front-end level.
6524 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
6525 Do not include ggc.h, but include vecprim.h for VEC(char).
6526 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
6527 Explain why target.h is included.
6528 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
6529 Explain why gimple.h is included.
6530 * c-ppoutput.c: Do not include tm.h.
6531 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
6532 * c-parses.c: Explain why rtl.h is included, and that this (and only
6533 this) is also why tm.h must be included.
6534 Do not include except.h.
6535 * c-lang.c: Do not include ggc.h.
6537 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
6539 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
6541 2010-05-15 Joseph Myers <joseph@codesourcery.com>
6543 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
6544 unions by default if those structs and unions have no tags. Do
6545 not condition anonymous struct and unions handling on flag_iso.
6546 Allow anonymous structs and unions for C1X.
6547 (finish_struct): Do not diagnose lack of named fields when
6548 anonymous structs and unions present for C1X. Accept flexible
6549 array members in structure with anonymous structs or unions but no
6550 directly named fields.
6551 * doc/extend.texi (Unnamed Fields): Update.
6553 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
6555 * gimple.h (compare_field_offset): Rename into...
6556 (gimple_compare_field_offset): ...this.
6557 * gimple.c (compare_field_offset): Rename into...
6558 (gimple_compare_field_offset): ...this. Compare the full access if
6559 the offset is self-referential.
6560 (gimple_types_compatible_p): Adjust for above renaming.
6561 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
6562 DECL_NONADDRESSABLE_P flag of fields before merging them.
6564 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
6566 * tree.h (ctor_to_list): Delete.
6567 * tree.c (ctor_to_list): Delete.
6569 2010-05-15 Jan Hubicka <jh@suse.cz>
6571 * ipa-reference.c: Include toplev.h
6572 (is_proper_for_analysis): Only add to all_module_statics
6574 (write_node_summary_p, stream_out_bitmap,
6575 ipa_reference_write_optimization_summary,
6576 ipa_reference_read_optimization_summary): New.
6577 (struct ipa_opt_pass_d pass_ipa_reference): Add
6578 optimization summary streaming.
6579 * lto-cgraph.c (referenced_from_this_partition_p,
6580 reachable_from_this_partition_p): New functions.
6581 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6582 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
6583 * opts.c (decode_options): Enable ipa_reference.
6584 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
6585 * lto-streamer.h (referenced_from_this_partition_p,
6586 reachable_from_this_partition_p): Declare.
6588 2010-05-15 Richard Guenther <rguenther@suse.de>
6590 PR tree-optimization/44038
6591 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
6592 taking the address of a V_C_E of a constant.
6594 2010-05-14 Jan Hubicka <jh@suse.cz>
6596 * tree.h (memory_identifier_string): Remove.
6597 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
6598 (ipa_reference_global_vars_info_d): Remove statics_not_read and
6599 statics_not_written.
6600 (ipa_reference_optimization_summary_d): New structure.
6601 (ipa_reference_optimization_summary_t): New type and vector.
6602 (ipa_reference_vars_info_d): Embedd structures instead of using
6604 (reference_vars_to_consider): Remove out of GGC space.
6605 (module_statics_escape): Remove.
6606 (global_info_obstack): Rename to ...
6607 (optimization_summary_obstack): ... this one.
6608 (initialization_status_t): Remove.
6609 (memory_identifier_string): Remove.
6610 (get_reference_vars_info): Fix indenting.
6611 (set_reference_vars_info): Likewise.
6612 (get_reference_optimization_summary): New.
6613 (set_reference_optimization_summary): New.
6614 (get_global_reference_vars_info): Remove.
6615 (ipa_reference_get_read_global): Remove.
6616 (ipa_reference_get_written_global): Remove.
6617 (ipa_reference_get_not_read_global): Update.
6618 (ipa_reference_get_not_written_global): Update.
6619 (is_proper_for_analysis): Outlaw addressable.
6620 (propagate_bits): Update for new datastructures.
6621 (analyze_variable): Remove.
6622 (init_function_info): Update for new datastructures.
6623 (clean_function_local_data): Remove.
6624 (clean_function): Remove.
6625 (copy_global_bitmap): Use optimizations_summary_obstack.
6626 (duplicate_node_data): Duplicate optimization summary only.
6627 (remove_node_data): Remove optimization summary only.
6628 (generate_summary): Do not analyze variables; do not compute
6629 module_statics_escape; do not prune solutions by it.
6630 (read_write_all_from_decl): Fix typos in comments.
6631 (propagate): Doscover readonly and nonaddressable first;
6632 update for new datastructures; share global bitmaps.
6633 * ipa-reference.h (ipa_reference_get_read_global,
6634 ipa_reference_get_written_global): Remove.
6635 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
6636 * Makefile.in: Remove ipa-refereference from GT files.
6638 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6641 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
6642 for all SYMBOL_REF_DECLs.
6644 2010-05-14 Jan Hubicka <jh@suse.cz>
6646 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
6647 (varpool_all_refs_explicit_p): New inline function.
6648 * ipa-reference.c: Update comment.
6649 (module_statics_written): Remove.
6650 (get_static_decl): Remove.
6651 (ipa_init): Do not initialize module_statics_written.
6652 (analyze_function): Likewise.
6653 (generate_summary): Likewise; do not compute module_statics_readonly
6654 and do not update variable flags.
6655 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
6656 * ipa.c: Inlucde flags.h
6657 (cgraph_local_node_p): New.
6658 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
6659 promote functions to local.
6660 (ipa_discover_readonly_nonaddressable_vars): New function.
6661 (function_and_variable_visibility): Use cgraph_local_node_p.
6662 * varpool.c (varpool_finalize_decl): Set force_output for
6663 DECL_PRESERVE_P vars.
6665 2010-05-14 Jan Hubicka <jh@suse.cz>
6667 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
6669 2010-05-14 Richard Guenther <rguenther@suse.de>
6671 PR tree-optimization/44119
6672 * tree-ssa-pre.c (eliminate): Properly mark replacement of
6673 a PHI node necessary.
6675 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
6677 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
6679 2010-05-14 Jason Merrill <jason@redhat.com>
6682 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
6683 (gimple_call_set_nothrow): New.
6684 * gimple.c (gimple_build_call_from_tree): Call it.
6685 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
6688 * gimplify.c (gimplify_seq_add_stmt): No longer static.
6689 * gimple.h: Declare it.
6690 * gimple.c (gimple_build_eh_filter): No ops.
6692 2010-05-14 Jan Hubicka <jh@suse.cz>
6694 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
6695 nodes already in queue.
6696 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
6699 2010-05-14 Jakub Jelinek <jakub@redhat.com>
6702 * cfgexpand.c (expand_debug_expr): If non-memory op0
6703 has BLKmode, return NULL.
6705 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
6707 * config.gcc: Add support for --with-cpu option for bdver1.
6708 * config/i386/i386.h (TARGET_BDVER1): New macro.
6709 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
6710 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6711 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
6712 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
6713 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
6714 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
6715 (processor_type): Add PROCESSOR_BDVER1.
6716 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
6717 processor_type in config/i386/i386.h.
6718 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
6719 movaps <reg, reg> instead of movapd <reg, reg> when replacing
6720 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
6721 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
6722 to emit packed xor instead of packed double/packed integer
6723 xor for SSE and AVX when moving a zero value.
6724 * config/i386/sse.md: Add check for
6725 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
6726 movapd/movdqa for SSE and AVX.
6727 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
6728 single logical operations i.e and, or and xor instead of packed double
6729 logical operations for SSE and AVX.
6730 * config/i386/i386-c.c (ix86_target_macros_internal):
6731 Add PROCESSOR_BDVER1.
6732 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
6733 (has_fma4, has_xop): New.
6734 * config/i386/i386.c (bdver1_cost): New variable.
6735 (m_BDVER1): New macro.
6736 (m_AMD_MULTIPLE): Add m_BDVER1.
6737 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
6738 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
6739 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
6740 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
6741 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
6742 x86_tune_sse_partial_reg_dependency,
6743 x86_tune_sse_unaligned_load_optimal,
6744 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
6745 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
6746 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
6747 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
6748 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
6749 Enable/disable for bdver1.
6750 (processor_target_table): Add bdver1_cost.
6751 (cpu_names): Add bdver1.
6752 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
6753 processor_alias_table.
6754 (ix86_expand_vector_move_misalign): Change.
6755 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
6756 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
6757 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
6758 of movupd/movdqu for SSE and AVX.
6759 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
6760 (ix86_tune_adjust_cost): Add code for bdver1.
6761 (standard_sse_constant_opcode): Add check for
6762 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
6763 of packed double xor for SSE and AVX.
6765 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
6767 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
6770 2010-05-14 Tristan Gingold <gingold@adacore.com>
6772 * toplev.c (default_debug_hooks): Remove this variable.
6773 (process_options): Remove assignments to default_debug_hooks.
6775 2010-05-14 Martin Jambor <mjambor@suse.cz>
6777 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
6778 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
6779 * langhooks.h (struct lang_hooks_for_decls): Removed field
6781 * tree.c (free_lang_data): Remove assignment to
6782 lang_hooks.fold_obj_type_ref.
6783 * tree.def (OBJ_TYPE_REF): Update comment.
6785 2010-05-14 Richard Guenther <rguenther@suse.de>
6787 PR tree-optimization/44124
6788 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
6790 2010-05-14 Alan Modra <amodra@gmail.com>
6793 * config/rs6000/rs6000.c (struct machine_function): Reorder
6794 fields for better packing. Add lr_save_state.
6795 (rs6000_ra_ever_killed): Return lr_save_state if set.
6796 (rs6000_emit_eh_reg_restore): Set lr_save_state.
6798 2010-05-13 Jan Hubicka <jh@suse.cz>
6800 * varpool.c (decide_is_variable_needed): Drop code checking
6801 TREE_SYMBOL_REFERENCED.
6803 2010-05-13 Jan Hubicka <jh@suse.cz>
6805 * final.c (output_addr_const): Do not call mark_decl_referenced.
6806 * cgraphunit.c (process_function_and_variable_attributes): Use
6807 mark_needed_node dirrectly.
6808 (assemble_thunk): Do not call mark_decl_referenced.
6810 2010-05-13 Anatoly Sokolov <aesok@post.ru>
6812 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
6814 2010-05-13 Jeff Law <law@redhat.com>
6816 * ira-conflicts.c (print_allocno_conflicts): New function broken out
6818 (print_conflicts): Call print_allocno_conflicts.
6820 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6823 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
6826 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
6828 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
6829 t-mingw-w64 or t-mingw-w32 for multilib configuration.
6830 * config/i386/t-mingw-w32: New.
6831 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
6833 2010-05-13 Martin Jambor <mjambor@suse.cz>
6835 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
6837 * gimple-fold.c (get_base_binfo_for_type): New function.
6838 (gimple_get_relevant_ref_binfo): Likewise.
6839 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6840 (gimple_fold_obj_type_ref): Likewise.
6841 (fold_gimple_call): Simplify condition for folding virtual calls
6842 and call gimple_fold_obj_type_ref.
6843 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
6844 (gimple_fold_obj_type_ref_known_binfo): Likewise.
6846 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
6848 * config/rs6000/rs6000-protos.h
6849 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
6850 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
6851 (rs6000_debug_mode_dependent_address)
6852 (rs6000_mode_dependent_address_ptr): Likewise.
6854 2010-05-13 Jakub Jelinek <jakub@redhat.com>
6857 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
6859 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
6860 * tree-sra.c (create_access_replacement): Call unshare_expr before
6861 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
6862 * dwarf2out.c: Include tree-flow.h.
6863 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
6864 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6865 Handle DW_OP_bit_piece.
6866 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
6867 construct_piece_list, adjust_piece_list): New functions.
6868 (add_var_loc_to_decl): Handle SRA optimized variables.
6869 Adjust for var_loc_note to loc field renaming.
6870 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
6871 in VAR_LOCATION note.
6872 (new_loc_descr_op_bit_piece): New function.
6873 (dw_sra_loc_expr): New function.
6874 (dw_loc_list): Use it. Don't handle the last range after the
6875 loop, handle it inside of the loop. Adjust for var_loc_note
6876 to loc field renaming.
6877 (add_location_or_const_value_attribute): Only special case
6878 single entry loc lists if loc is NOTE_P. Adjust for
6879 var_loc_note to loc field renaming.
6880 (dwarf2out_var_location): Don't set newloc->var_loc_note
6881 and newloc->next here.
6883 2010-05-12 Jan Hubicka <jh@suse.cz>
6885 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
6887 * cgraph.h (cgraph_only_called_directly_p,
6888 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
6889 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
6890 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
6892 * ipa.c (cgraph_remove_unreachable_nodes): Use
6893 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
6895 * tree-inline.c (copy_bb): Check address_taken flag.
6896 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
6897 externally_visible flag.
6899 2010-05-12 Jason Merrill <jason@redhat.com>
6903 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
6904 * sdbout.c (plain_type_1): Likewise.
6905 * dwarf2out.c (is_base_type): Likewise.
6906 (gen_type_die_with_usage): Likewise. Generate
6907 DW_TAG_unspecified_type for any LANG_TYPE.
6909 2010-05-12 Jan Hubicka <jh@suse.cz>
6911 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
6913 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
6914 (cgraph_clone_edge): Update.
6915 (cgraph_node_remove_callees): Remove indirect calls too.
6916 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
6917 (cgraph_create_indirect_edge): Update prototype.
6918 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
6919 is_proper_for_analysis.
6920 (add_new_function, visited_nodes, function_insertion_hook_holder,
6921 get_local_reference_vars_info, mark_address_taken, mark_address,
6922 mark_load, mark_store, check_asm_memory_clobber, check_call,
6923 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
6924 (ipa_init): Do not initialize visited_nodes;
6925 function_insertion_hook_holder.
6926 (analyze_variable): Rewrite.
6927 (analyze_function): Rewrite.
6928 (copy_local_bitmap): Remove.
6929 (duplicate_node_dat): Do not duplicate local info.
6930 (generate_summary): Simplify to only walk cgraph.
6931 (write_node_summary_p, ipa_reference_write_summary,
6932 ipa_reference_read_summary): Remove.
6933 (propagate): Do not remove function insertion;
6935 (pass_ipa_reference): NULLify summary handling fields.
6936 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
6937 (input_edge): Input ecf_flags.
6938 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
6939 (update_indirect_edges_after_inlining): Ignore edges with unknown
6942 2010-05-12 Sriraman Tallam <tmsriram@google.com>
6944 * implicit-zee.c: New file.
6945 * tree-pass.h (pass_implicit_zee): Declare.
6946 * passes.c (init_optimization_passes): Add zee pass.
6947 * common.opt (fzee): New flag.
6948 * timevar.def (TV_ZEE): Define.
6949 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
6951 * Makefile.in (implicit-zee.o): Add new build file.
6953 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6954 Nathan Froyd <froydnj@codesourcery.com>
6956 * c-common.c (sync_resolve_params): Remove write-only variable.
6958 2010-05-12 Anatoly Sokolov <aesok@post.ru>
6960 * target.h (struct gcc_target): Add mode_dependent_address_p field.
6961 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6962 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
6963 * targhooks.c (default_mode_dependent_address_p): New function.
6964 * targhooks.h (default_mode_dependent_address_p): Declare function.
6965 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
6966 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
6967 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
6968 target hook. Change return type to bool.
6969 * recog.h (mode_dependent_address_p): Change return type to bool.
6971 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6972 Nathan Froyd <froydnj@codesourcery.com>
6974 * tree-mudflap.c (build_function_type_0, build_function_type_1,
6975 build_function_type_2, build_function_type_3): Remove.
6976 (mudflap_init): Use build_function_type_list.
6978 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
6979 Nathan Froyd <froydnj@codesourcery.com>
6981 * coverage.c (build_fn_info_value): Call build_constructor instead of
6982 build_constructor_from_list.
6983 (build_ctr_info_value): Likewise.
6984 (build_gcov_info): Likewise.
6986 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
6988 * tree.c (build_constructor): Compute TREE_CONSTANT for the
6989 resultant constructor.
6990 (build_constructor_single): Don't set TREE_CONSTANT.
6991 (build_constructor_from_list): Don't compute TREE_CONSTANT.
6993 2010-05-12 Jan Hubicka <jh@suse.cz>
6995 * cgraph.h (struct varpool_node): Add aux.
6996 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
6997 * varpool.c (varpool_remove_node): Do not remove initializer.
6998 (varpool_reset_queue): Export.
6999 (varpool_finalize_decl): Volatile vars are forced to be output.
7000 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7002 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7003 process_references, varpool_can_remove_if_no_refs): New functions.
7004 (cgraph_remove_unreachable_nodes): Handle variables too.
7006 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7009 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7011 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7014 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7015 change value of ORT_TASK.
7016 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7017 (omp_notice_threadprivate_variable): New function.
7018 (omp_notice_variable): Call it for threadprivate variables.
7019 If enclosing ctx is a task, print enclosing task rather than
7020 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7021 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7022 if task has untied clause.
7025 * dwarf2out.c (base_type_die): Don't add name attribute here.
7026 (modified_type_die): Instead of sizetype use
7027 its underlying original type. If a DW_TAG_base_type doesn't
7028 have name added, add __unknown__.
7029 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7030 always call force_type_die instead.
7032 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7034 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7035 for __stack_chk_guard.
7037 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7039 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7040 don't call start_source_file debug hook here...
7041 (finish_options): ... but here, after outputting predefined and
7042 command line defines and undefs.
7045 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7047 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7048 optimizing away empty bb with no successors, move over its
7049 footer chain to fallthru predecessor.
7050 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7051 (rtl_split_edge): For asm goto call patch_jump_insn even if
7052 splitting fallthru edge.
7055 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7056 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7057 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7058 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7062 * c-parser.c (c_parser_expression): Mark LHS of a comma
7063 expression as read if it is a decl, handled component or
7064 COMPOUND_EXPR with that on the RHS.
7065 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7066 if it is a decl or handled component.
7068 2010-05-11 Jan Hubicka <jh@suse.cz>
7070 * lto-symtab.c (lto_symtab_free): New function.
7071 * lto-streamer.h (lto_symtab_free): Declare.
7073 2010-05-11 Jan Hubicka <jh@suse.cz>
7075 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7076 that if function is needed it is reachable.
7077 (lto_output_node): See if it the function is reachable or referenced.
7078 (output_cgraph): Update call of lto_output_node.
7079 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7081 2010-05-11 Jan Hubicka <jh@suse.cz>
7083 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7086 2010-05-11 Jan Hubicka <jh@suse.cz>
7088 PR tree-optimize/44063
7089 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7091 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7093 (estimate_function_body_sizes): Compute sizes even when disregarding.
7095 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7097 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7099 2010-05-11 Jan Hubicka <jh@suse.cz>
7101 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7102 into every boundary.
7104 2010-05-11 Jan Hubicka <jh@suse.cz>
7106 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7108 2010-05-11 Jan Hubicka <jh@suse.cz>
7110 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7111 lto_streamer_cache_delete): Put nodes into heap.
7112 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7115 2010-05-11 Jan Hubicka <jh@suse.cz>
7117 * cgraphbuild.c (cgraph_rebuild_references): New.
7118 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7120 * cgraph.h (cgraph_rebuild_references): Declare.
7121 * tree-inline.c (tree_function_versioning): Use it.
7122 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7124 2010-05-11 Jan Hubicka <jh@suse.cz>
7126 * cgraph.c: Include ipa-utils.h
7127 (cgraph_create_virtual_clone): Update references.
7128 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7130 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7132 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7133 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7136 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7138 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7140 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7142 * gcc.c (execute): For -### don't quote arguments that
7143 contain just alphanumerics and _/-. characters.
7144 * doc/invoke.texi: Document that change for -###.
7147 * df-problems.c (struct dead_debug): Add to_rescan field.
7148 (dead_debug_init): Clear to_rescan field.
7149 (dead_debug_finish): Rescan all debug insns in to_rescan
7150 bitmap and free the bitmap.
7151 (dead_debug_insert_before): Instead of rescanning debug insns
7152 immediately queue their rescanning until dead_debug_finish.
7153 (df_note_bb_compute): After dead_debug_add do continue instead
7156 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7159 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7160 clear also INSN_REG_USE_LIST.
7162 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7164 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7166 2010-05-10 Jan Hubicka <jh@suse.cz>
7168 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7171 2010-05-10 Jan Hubicka <jh@suse.cz>
7173 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7175 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7176 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7177 (lto_streamer_cache_create): Init alloc pool.
7178 (lto_streamer_cache_delete): Free alloc pool.
7179 * lto-streamer.h: Include alloc pool.
7180 (lto_streamer_cache_d): Use alloc pool.
7181 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7183 2010-05-10 Jan Hubicka <jh@suse.cz>
7185 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7186 * cgraphbuild.c: Include except.h
7187 (record_type_list, record_eh_tables): New function.
7188 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7190 2010-05-10 Jan Hubicka <jh@suse.cz>
7192 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7193 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7196 2010-05-10 Michael Matz <matz@suse.de>
7198 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7199 (can_reassociate_p): Use FLOAT_TYPE_P.
7200 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7201 (vect_force_simple_reduction): ... this.
7202 * tree-parloops.c (gather_scalar_reductions): Use
7203 vect_force_simple_reduction.
7204 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7205 vect_is_simple_reduction, add modify argument, if true rewrite
7206 "a-b" into "a+(-b)".
7207 (vect_is_simple_reduction, vect_force_simple_reduction): New
7209 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7211 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7212 Vladimir Makarov <vmakarov@redhat.com>
7214 PR rtl-optimization/44012
7215 * ira-build.c (remove_unnecessary_allocnos): Nullify
7216 regno_allocno_map of the removed allocno.
7218 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7220 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7222 * configure: Regenerate.
7224 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7226 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7228 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7229 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7231 * configure: Regenerate.
7233 2010-05-10 Richard Guenther <rguenther@suse.de>
7235 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7236 marked if the entry identifier is marked.
7238 2010-05-10 Richard Guenther <rguenther@suse.de>
7240 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7241 (handle_fnspec_attribute): New function.
7242 * gimple.h (gimple_call_return_flags): Declare.
7243 (gimple_call_arg_flags): Likewise.
7244 * gimple.c (gimple_call_arg_flags): New function.
7245 (gimple_call_return_flags): Likewise.
7246 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7248 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7250 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7251 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7253 (make_heapvar_for): ... this new function.
7254 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7255 (handle_lhs_call): Likewise.
7256 (find_func_aliases): Adjust.
7258 2010-05-10 Richard Guenther <rguenther@suse.de>
7260 PR tree-optimization/44050
7261 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7263 2010-05-10 Wei Guozhi <carrot@google.com>
7266 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7268 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7271 * c-typeck.c (lookup_field): Take a type directly. Update
7273 (build_component_ref): Update call to lookup_field.
7274 (set_init_label): Use lookup_field to find initialized field.
7275 Handle returned list of fields like a sequence of designators.
7277 2010-05-09 Richard Guenther <rguenther@suse.de>
7280 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7281 handle &FUNCTION_DECL.
7283 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7286 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7287 structures and unions recursively.
7288 (detect_field_duplicates): Move duplicate detection with a hash to
7289 detect_field_duplicates_hash. Always use a hash if anonymous
7290 structures or unions are present.
7291 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7294 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7297 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7298 detect Atom, Core 2 and Core i7.
7300 2010-05-09 Richard Guenther <rguenther@suse.de>
7302 * gcc.c (store_arg): Handle temporary file deletion for
7305 2010-05-09 Richard Guenther <rguenther@suse.de>
7308 * ipa-inline.c (estimate_function_body_sizes): Return after
7309 disregarding inline limits.
7311 2010-05-09 Richard Guenther <rguenther@suse.de>
7313 * gcc.c (store_arg): Revert last change.
7315 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7318 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7319 (optimize_ops_list): Call it.
7321 2010-05-08 Richard Guenther <rguenther@suse.de>
7323 PR tree-optimization/44030
7324 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7325 NECESSARY flag if we propagate from a inserted expression.
7327 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7329 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7330 domain types as equal if they are both PLACEHOLDER_EXPRs.
7332 2010-05-08 Richard Guenther <rguenther@suse.de>
7334 * lto-wrapper.c (run_gcc): Remove linker output from
7335 command line for LTRANS invocation.
7337 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7339 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7340 lto-macho as lto_binary_reader.
7341 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7342 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7343 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7344 in lto_start and lto_end calls.
7345 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7347 (scan_prog_file): Update is_elf_or_coff call.
7348 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7350 * collect2.c (main): Fix enum comparison.
7352 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7354 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7355 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7356 and TARGET_ASM_LTO_END.
7357 * darwin.c: Include obstack.h and lto-streamer.h.
7358 (lto_section_names_offset, lto_section_names_obstack,
7359 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7361 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7362 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7363 to a temporary file.
7364 (darwin_asm_lto_end): New function. Restore asm_out_file.
7365 (darwin_asm_named_section): For LTO sections, replace the name with
7366 the offset of the section name in a string table, and build this
7368 (darwin_file_start): Initialize global vars for LTO support.
7369 (darwin_file_end): If output to asm_out_file was redirected, append it
7370 to the proper asm_out_file here. Add the section names section.
7372 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7374 * c-pragma.c (pending_weak_d, pending_weak): New.
7375 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7376 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7377 handle_pragma_weak): Update the uses of pending_weaks.
7379 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7381 PR documentation/44016
7382 * doc/standards.texi (Standards): Link to unversioned
7383 cxx0x_status.html page.
7385 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7388 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7389 in addition to TREE_USED, to avoid "set but unused" warnings.
7391 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7393 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7394 (is_loop_prefetching_profitable): Do not insert prefetches
7395 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7396 times the prefetch ahead distance.
7398 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7400 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7401 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7402 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7405 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7407 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7408 a diagnostic info when the insn-to-mem ratio is too small.
7410 2010-05-07 Richard Guenther <rguenther@suse.de>
7412 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7414 (store_arg): Queue temp_filename for deletion instead of
7417 2010-05-07 Richard Guenther <rguenther@suse.de>
7419 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7420 (run_gcc): Handle LTRANS phase invocation.
7421 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7423 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7425 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7426 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7428 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7430 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7432 2010-05-07 Richard Guenther <rguenther@suse.de>
7434 PR tree-optimization/44020
7435 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
7436 code when PRE is not yet initialized.
7438 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7440 * config/mips/dbxmdebug.h: Remove.
7441 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
7443 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
7445 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
7446 with null pointer and also warn about ordered comparison of zero with
7449 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7451 * graphite-blocking.c
7452 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
7453 * graphite-clast-to-gimple.c
7454 (clast_to_gcc_expression): Same.
7455 (precision_for_value): Same.
7456 (precision_for_interval): Same.
7457 (gcc_type_for_interval): Same.
7458 (graphite_create_new_guard): Same.
7459 (compute_bounds_for_level): Same.
7460 (graphite_create_new_loop_guard): Same.
7461 * graphite-interchange.c
7462 (build_linearized_memory_access): Same.
7463 (pdr_stride_in_loop): Same.
7464 (memory_strides_in_loop_1): Same.
7465 (memory_strides_in_loop): Same.
7466 (extend_scattering): Same.
7467 (psct_scattering_dim_for_loop_depth): Same.
7468 (pbb_number_of_iterations): Same.
7470 (debug_iteration_domains): Same.
7472 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
7473 (ppl_set_inhomogeneous_gmp): Same.
7474 (ppl_strip_loop): Same.
7475 (ppl_lexico_compare_linear_expressions): Same.
7476 (ppl_read_polyhedron_matrix): Same.
7477 (ppl_max_for_le_pointset): Same.
7479 (ppl_read_polyhedron_matrix): Same.
7480 (tree_int_to_gmp): Same.
7481 (gmp_cst_to_tree): Same.
7482 (ppl_set_inhomogeneous): Same.
7483 (ppl_set_inhomogeneous_tree): Same.
7484 (ppl_set_coef): Same.
7485 (ppl_set_coef_tree): Same.
7486 * graphite-sese-to-poly.c
7487 (build_pbb_scattering_polyhedrons): Same.
7488 (build_scop_scattering): Same.
7489 (scan_tree_for_params_right_scev): Same.
7490 (scan_tree_for_params): Same.
7491 (find_params_in_bb): Same.
7492 (find_scop_parameters): Same.
7493 (add_upper_bounds_from_estimated_nit): Same.
7494 (build_loop_iteration_domains): Same.
7495 (add_condition_to_domain): Same.
7496 (pdr_add_memory_accesses): Same.
7498 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
7500 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
7501 CLooG's value_* macros to their respective mpz_* counterparts.
7502 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
7503 (graphite_create_new_loop_guard): Same.
7504 * graphite-interchange.c (build_linearized_memory_access): Same.
7505 (pdr_stride_in_loop): Same.
7506 (memory_strides_in_loop_1): Same.
7507 (1st_interchange_profitable_p): Same.
7508 * graphite-poly.c (extend_scattering): Same.
7509 (psct_scattering_dim_for_loop_depth): Same.
7510 (pbb_number_of_iterations): Same.
7511 (pbb_number_of_iterations_at_time): Same.
7512 * graphite-poly.h (new_1st_loop): Same.
7513 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
7514 (oppose_constraint): Same.
7515 (insert_constraint_into_matrix): Same.
7516 (ppl_set_inhomogeneous_gmp): Same.
7517 (ppl_set_coef_gmp): Same.
7518 (ppl_strip_loop): Same.
7519 (ppl_lexico_compare_linear_expressions): Same.
7520 (ppl_max_for_le_pointset): Same.
7521 (ppl_min_for_le_pointset): Same.
7522 (ppl_build_realtion): Same.
7523 * graphite-ppl.h (gmp_cst_to_tree): Same.
7524 (ppl_set_inhomogeneous): Same.
7525 (ppl_set_inhomogeneous_tree): Same.
7526 (ppl_set_coef): Same.
7527 (ppl_set_coef_tree): Same.
7528 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7529 (build_scop_scattering): Same.
7530 (add_value_to_dim): Same.
7531 (scan_tree_for_params_right_scev): Same.
7532 (scan_tree_for_params_int): Same.
7533 (scan_tree_for_params): Same.
7534 (find_params_in_bb): Same.
7535 (find_scop_parameters): Same.
7536 (add_upper_bounds_from_estimated_nit): Same.
7537 (build_loop_iteration_domains): Same.
7538 (create_linear_expr_from_tree): Same.
7539 (add_condition_to_domain): Same.
7540 (pdr_add_memory_accesses): Same.
7542 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
7543 Jason Merrill <jason@redhat.com>
7545 * c-common.c (c_common_reswords): Add nullptr.
7546 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
7547 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
7548 (gen_type_die_with_usage): Likewise.
7549 * dbxout.c (dbxout_type): Likewise.
7550 * sdbout.c (plain_type_1): Likewise.
7552 2010-05-06 Jason Merrill <jason@redhat.com>
7554 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
7555 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
7557 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
7559 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
7560 stripping WITH_SIZE_EXPR.
7561 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
7564 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7566 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
7567 list of obsolete configurations.
7568 Disabled check for obsolete configurations.
7569 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
7570 Removed support for previous versions.
7571 * config/mips/iris.h: Removed.
7572 * config/mips/iris5.h: Removed.
7573 * config/mips/iris6.h: Merged old iris.h contents.
7574 (TARGET_IRIX): Removed.
7575 (DRIVER_SELF_SPECS): Removed mabi=32.
7576 (IDENT_ASM_OP): Removed undef.
7577 (STARTFILE_SPEC): Removed mabi=32.
7578 (ENDFILE_SPEC): Likewise.
7579 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
7580 (MACHINE_TYPE): Update for IRIX 6.5.
7581 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
7582 TARGET_IRIX by TARGET_IRIX6.
7583 (mips_file_start): Likewise.
7584 (mips_output_external): Remove IRIX 5/6 O32 support.
7585 (mips_output_function_prologue): Likewise.
7586 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
7588 (TARGET_CPU_CPP_BUILTINS): Likewise.
7589 (TARGET_IRIX): Removed.
7590 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
7591 (MULTILIB_DIRNAMES): Removed 32.
7592 (MULTILIB_OSDIRNAMES): Removed ../lib.
7593 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
7594 (Specific, mips-sgi-irix5): Document removal.
7595 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
7596 Remove references to older IRIX 6 releases and the O32 ABI.
7598 2010-05-06 Jakub Jelinek <jakub@redhat.com>
7601 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
7602 instead of DF_REF_REAL_REG.
7604 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
7607 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
7608 handling to still return true for x64 targets.
7610 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7612 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
7614 2010-05-06 Jan Hubicka <jh@suse.cz>
7616 PR tree-optimization/43791
7617 * ipa-inline.c (update_caller_keys): Remove bogus
7618 disregard_inline_limits check.
7620 2010-05-06 Michael Matz <matz@suse.de>
7622 PR tree-optimization/43984
7623 * tree-ssa-pre.c (inserted_phi_names): Remove.
7624 (inserted_exprs): Change to bitmap.
7625 (create_expression_by_pieces): Set bits, don't append to vector.
7626 (insert_into_preds_of_block): Don't handle inserted_phi_names.
7627 (eliminate): Don't look at inserted_phi_names, remove deleted
7628 insns from inserted_exprs.
7629 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
7630 (init_pre, fini_pre): Allocate and free bitmaps.
7631 (execute_pre): Insert insns on edges before elimination.
7633 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
7635 * tree.c (initializer_zerop): Handle STRING_CST.
7637 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
7640 * doc/invoke.texi (Wimplicit): Document as C only.
7641 * opts.c (common_handle_option): Add argument kind.
7642 (handle_option): Rename as read_cmdline_option. Factor out code to...
7643 (handle_option): ... here. New.
7644 (handle_options): Rename as read_cmdline_options.
7645 (decode_options): Update call.
7646 (set_option): Use option index instead of option pointer. Classify
7647 diagnostics correctly.
7648 (enable_warning_as_error): Call handle_option.
7649 * opts.h (set_option): Update declaration.
7650 (handle_option): Declare.
7651 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
7652 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
7653 * c-opts.c (set_Wimplicit): Delete.
7654 (c_family_lang_mask): New static constant.
7655 (c_common_handle_option): Add argument kind. Use handle_option
7656 instead of set_Wimplicit.
7657 (c_common_post_options): warn_implicit and warn_implicit_int
7658 are disabled by default.
7659 * c-common.c (warn_implicit): Do not define here.
7660 * c-common.h (warn_implicit): Do not declare here.
7661 (c_common_handle_option): Update declaration.
7662 * lto-opts.c (lto_reissue_options): Update call to set_option.
7664 2010-05-06 Richard Guenther <rguenther@suse.de>
7666 PR tree-optimization/43571
7667 * domwalk.c (walk_dominator_tree): Walk the dominator
7668 sons in more optimal order.
7670 2010-05-06 Richard Guenther <rguenther@suse.de>
7672 PR tree-optimization/43934
7673 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
7674 (stmt_cost): Likewise.
7675 (extract_true_false_args_from_phi): New helper.
7676 (determine_max_movement): For PHI nodes verify we can hoist them
7677 and compute their cost.
7678 (determine_invariantness_stmt): Handle PHI nodes.
7679 (move_computations_stmt): Likewise. Hoist PHI nodes in
7680 if-converted form using COND_EXPRs.
7681 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
7682 (tree_ssa_lim): Likewise.
7683 * tree-flow.h (tree_ssa_lim): Adjust prototype.
7684 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
7686 2010-05-06 Richard Guenther <rguenther@suse.de>
7688 PR tree-optimization/43987
7689 * tree-ssa-structalias.c (could_have_pointers): For possibly
7690 address-taken variables force pointers to be recorded.
7691 (create_variable_info_for_1): Likewise.
7692 (push_fields_onto_fieldstack): Pass in wheter all fields
7694 (find_func_aliases): Query types instead of vars whether
7695 they contain pointers where appropriate.
7697 2010-05-06 Jan Hubicka <jh@suse.cz>
7699 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
7700 (record_reference, mark_address, mark_load, mark_store): Record
7702 (record_references_in_initializer): Update call of record_references.
7703 (rebuild_cgraph_edges): Remove all references before rebuiding.
7704 * cgraph.c (cgraph_create_node): Clear ref list.
7705 (cgraph_remove_node): Remove references.
7706 (dump_cgraph_node): Dump references.
7707 (cgraph_clone_node): Clone references.
7708 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
7709 (struct cgraph_node, varpool_node): Add ref_lst.
7710 * ipa-ref.c: New file.
7711 * ipa-ref.h: New file.
7712 * ipa-ref-inline.h: New file.
7713 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
7714 (referenced_from_other_partition_p): New function.
7715 (lto_output_varpool_node): Take set arugment; call
7716 referenced_from_other_partition.
7717 (lto_output_ref): New.
7718 (add_references): New.
7720 (output_cgraph): Compute boundary based on references; output refs.
7721 (output_varpool): Accept cgraph_node_set argument.
7724 (input_cgraph): Call input_refs.
7725 * lto-section-in.c (lto_section_name): Add refs.
7726 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
7727 (ipa-ref.o): New file.
7728 * varpool.c (varpool_node): Clear ipa ref list.
7729 (varpool_remove_node): Remove references.
7730 (dump_varpool_node): Dump references.
7731 (varpool_assemble_decl): Only compile finalized ones.
7732 (varpool_extra_name_alias): Initialize ref list.
7733 * lto-streamer.c (lto-get_section_name): Add .refs section.
7734 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
7735 (referenced_from_other_partition_p): Declared.
7737 2010-05-06 Ira Rosen <irar@il.ibm.com>
7739 PR tree-optimization/43901
7740 * tree-vect-stmts.c (vectorizable_call): Assert that vector
7741 type is not NULL if it's transformation phase, and return
7742 FALSE if it's analysis.
7743 (vectorizable_conversion, vectorizable_operation,
7744 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
7746 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
7748 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7750 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
7752 * config/mips/mips-protos.h
7753 (mips_small_register_classes_for_mode_p): Delete prototype.
7755 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
7757 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
7758 * config/arm/arm.c (multiple_operation_profitable_p,
7759 compute_offset_order): New static functions.
7760 (load_multiple_sequence, store_multiple_sequence): Use them.
7761 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
7762 memory offsets, not register numbers.
7763 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
7765 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
7767 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
7768 (get_pending_sizes, put_pending_size, put_pending_sizes):
7769 Update the uses of pending_sizes.
7770 * c-decl.c (store_parm_decls): Likewise.
7771 * c-tree.h (struct c_arg_info): Likewise.
7772 * tree.h: Update the prototype for get_pending_sizes and
7775 2010-05-05 Jason Merrill <jason@redhat.com>
7778 * c-common.c (handle_aligned_attribute): Respect
7779 ATTR_FLAG_TYPE_IN_PLACE.
7782 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
7783 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7784 (TARGET_INITIALIZER): Use it.
7785 * c-common.c (attribute_takes_identifier_p): Call it.
7786 * c-common.h: Update prototype.
7787 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
7788 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7790 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7793 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
7794 DW_ID_down_case for Fortran compilation units.
7796 2010-05-05 Jan Hubicka <jh@suse.cz>
7798 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
7801 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
7803 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
7804 a variable-sized RESULT_DECL.
7806 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
7808 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
7810 2010-05-05 Jason Merrill <jason@redhat.com>
7813 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
7815 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
7817 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
7818 Jakub Jelinek <jakub@redhat.com>
7821 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
7822 (dead_debug_init, dead_debug_finish): New functions.
7823 (dead_debug_add, dead_debug_insert_before): Likewise.
7824 (df_note_bb_compute): Initialize a dead_debug object, add dead
7825 debug uses to it, insert debug bind insns before death insns,
7826 reset debug insns that refer to pending uses at the end.
7827 * rtl.h (make_debug_expr_from_rtl): New prototype.
7828 * varasm.c (make_debug_expr_from_rtl): New function.
7830 2010-05-05 Jan Hubicka <jh@suse.cz>
7832 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
7833 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
7834 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
7835 lto_varpool_encoder_deref, lto_varpool_encoder_size,
7836 lto_varpool_encoder_encode_initializer_p,
7837 lto_set_varpool_encoder_encode_initializer): New functions.
7838 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
7839 call output_varpool.
7840 (input_varpool_node): Do not always set analyzed.
7841 (input_cgraph_1): Return vector of cgraph nodes.
7842 (input_varpool_1): Return vector of varpools.
7843 (input_cgraph): Free the vectors.
7844 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7845 output only initializers needed.
7846 (lto_output): Only call output_cgraph.
7847 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
7848 * lto-section-out.c (lto_new_out_decl_state): Initialize
7849 state->varpool_node_encoder.
7850 * lto-streamer.h (lto_varpool_encoder_d): New.
7851 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
7852 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
7853 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
7854 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
7855 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
7857 (output_varpool, input_varpool): Remove declarations.
7859 2010-05-05 Jan Hubicka <jh@suse.cz>
7861 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
7862 with body can prevail.
7864 2010-05-05 Jan Hubicka <jh@suse.cz>
7866 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
7869 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7871 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
7873 * gengtype.h (erro_at_line): Constify pos argument.
7875 * gengtype.c: Include hashtab.h.
7876 (enum gc_used): Document GC_MAYBE_POINTED_TO.
7877 (error_at_line): Constify pos argument.
7878 (do_typedef): Initialize p->opt field.
7879 (get_file_gtfilename): Fix comment typo.
7880 (struct walk_type_data): Constify line field.
7881 (get_output_file_for_structure): New function.
7882 (write_local_func_for_structure): Constify orig_s argument.
7883 Use get_output_file_for_structure.
7884 (write_func_for_structure): Use get_output_file_for_structure.
7885 (INDENT): New define.
7886 (dump_pair, dump_type, dump_type_list, dump_typekind)
7887 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
7888 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
7890 (seen_types): New variable.
7891 (main): New variable do_dump. Process "-d" command line option.
7892 Call dump_everything if dump requested.
7894 2010-05-05 Jakub Jelinek <jakub@redhat.com>
7896 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
7897 in a temporary instead of invoking the macro multiple times.
7898 (track_expr_p): Likewise.
7900 2010-05-04 Neil Vachharajani <nvachhar@google.com>
7902 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
7904 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
7905 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
7906 conditions for printing notes.
7907 * common.opt (-Wcoverage-mismatch): Allow negative, default to
7908 true, update documentation.
7909 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
7911 2010-05-04 Jakub Jelinek <jakub@redhat.com>
7914 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
7917 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7920 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
7921 (*sse_prologue_save_insn1): Likewise.
7922 (SSE prologue save splitter): Likewise.
7924 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
7926 * tree.c (free_lang_data_in_one_sizepos): New inline function.
7927 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
7928 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
7929 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
7930 all decls. Call it on DECL_FIELD_OFFSET of fields.
7931 (find_decls_types_r): Follow DECL_VALUE_EXPR.
7932 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
7934 2010-05-04 Martin Jambor <mjambor@suse.cz>
7936 * tree-sra.c (build_access_from_expr_1): The first parameter type
7937 changed to simple tree.
7938 (build_access_from_expr): Likewise, gsi parameter was eliminated.
7939 (scan_assign_result): Renamed to assignment_mod_result, enum elements
7941 (build_accesses_from_assign): Removed all parameters except for a
7942 simple gimple statement. Now returns a simple bool.
7943 (scan_function): All non-analysis parts moved to separate functions
7944 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
7945 parameters and updated both callers.
7946 (sra_modify_expr): Removed parameter data.
7947 (sra_modify_function_body): New function.
7948 (perform_intra_sra): Call sra_modify_function_body to modify the
7950 (replace_removed_params_ssa_names): Parameter data changed into
7952 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
7953 changed the parameter dont_convert to convert with the opposite
7955 (sra_ipa_modify_assign): Parameter data changed into adjustments
7956 vector, return value changed to bool.
7957 (ipa_sra_modify_function_body): New function.
7958 (sra_ipa_reset_debug_stmts): Updated a comment.
7959 (modify_function): Use ipa_sra_modify_function_body to modify function
7962 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
7965 * alias.c (true_dependence): Handle the same VALUE in x and mem.
7966 (canon_true_dependence): Likewise.
7967 (write_dependence_p): Likewise.
7969 2010-05-04 Jan Hubicka <jh@suse.cz>
7971 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
7972 * cgraphbuild.c: Include ipa-utils.h
7973 (record_reference_ctx): New struct.
7974 (record_reference): Simplify to work on initializers; not statements.
7975 (mark_address, mark_load, mark_store): New.
7976 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7978 (record_references_in_initializer): Update use of record_reference.
7979 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
7982 2010-05-04 Jan Hubicka <jh@suse.cz>
7984 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
7985 node will be removed anyway.
7986 (lto_varpool_replace_node): Allow also unanalyzed nodes;
7987 relink aliases of node into prevailing node.
7988 * varpool.c (varpool_remove_node): Remove aliases properly;
7989 when removing node, remove all its aliases too; remove DECL_INITIAL
7990 of removed node; ggc_free the varpool node.
7992 2010-05-04 Richard Guenther <rguenther@suse.de>
7994 PR tree-optimization/43879
7995 * tree-ssa-structalias.c (alias_get_name): Use
7996 DECL_ASSEMBLER_NAME if available.
7997 (create_function_info_for): Return the varinfo node.
7998 (ipa_pta_execute): Associate same-body aliases and extra names
7999 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8001 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8003 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8005 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8008 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8009 only if HONOR_REG_ALLOC_ORDER is not defined.
8011 2010-05-04 Richard Guenther <rguenther@suse.de>
8013 PR tree-optimization/43949
8014 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8017 2010-04-26 Jason Merrill <jason@redhat.com>
8019 * c.opt (-fstrict-enums): New.
8020 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8022 2010-05-03 David Ung <davidu@mips.com>
8023 James E. Wilson <wilson@codesourcery.com>
8025 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8026 emit the trap instruction before the divide for TUNE_74K.
8028 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8030 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8031 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8032 based on the above, for new target hook.
8034 * hooks.c (hook_bool_mode_true): New generic hook.
8035 * hooks.h (hook_bool_mode_true): Add prototype.
8037 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8039 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8040 target hook, set to hook_bool_mode_false.
8041 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8042 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8043 with targetm.small_register_classes_for_mode_p.
8044 (find_reusable_reload): Likewise.
8045 (combine_reloads): Likewise.
8046 * reload1.c (reload_as_needed): Likewise.
8047 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8048 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8049 dead_or_predicable): Likewise.
8050 * regmove.c (optimize_reg_copy_1): Likewise.
8051 * calls.c (prepare_call_address): Likewise.
8052 (precompute_register_parameters): Likewise.
8054 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8056 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8057 implementation of the hook that considers all register classes
8058 small except for SH64.
8059 (sh_override_options): Use the new hook.
8060 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8063 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8065 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8066 implementation of the hook that considers all register classes
8068 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8071 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8073 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8074 implementation of the hook that considers all register classes
8076 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8079 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8081 * config/m32c/m32c.h: Likewise.
8082 * config/pdp11/pdp11.h: Likewise.
8083 * config/avr/avr.h: Likewise.
8084 * config/xtensa/xtensa.h: Likewise.
8085 * config/m68hc11/m68hc11.h: Likewise.
8086 * config/mn10300/mn10300.h: Likewise.
8087 * config/mcore/mcore.h: Likewise.
8088 * config/h8300/h8300.h: Likewise.
8089 * config/bfin/bfin.h: Likewise.
8091 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8092 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8094 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8096 * double-int.h (tree_to_double_int): Remove macro.
8097 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8098 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8099 (tree_to_double_int): New function.
8100 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8102 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8104 2010-05-03 Richard Guenther <rguenther@suse.de>
8106 PR tree-optimization/43971
8107 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8108 constraints in the !flag_delete_null_pointer_checks case.
8110 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8113 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8114 result mode matches original rtl mode.
8116 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8119 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8121 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8123 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8124 when processing flag options.
8126 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8128 * gcov-iov.c (main): Change format string placeholder
8129 from %#08x to 0x%08x.
8130 * genchecksum.c (dosum): Change format string placeholder
8131 from %#02x to 0x%02x.
8133 2010-05-02 Richard Guenther <rguenther@suse.de>
8135 PR tree-optimization/43879
8136 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8138 2010-05-02 Bruno Haible <bruno@clisp.org>
8140 * doc/extend.texi (Function Attributes): Fix a typo.
8142 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8145 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8146 placeholder from 0x%x to %#x.
8147 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8148 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8149 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8150 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8151 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8152 * config/i386/i386.c (ix86_target_string): Ditto.
8153 * config/i386/i386.c (output_pic_addr_const): Ditto.
8154 (print_operand): Ditto.
8156 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8158 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8159 placeholder from 0x%x to %#x.
8160 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8161 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8162 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8163 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8164 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8165 * optc-gen.awk: Ditto.
8166 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8167 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8168 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8169 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8171 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8173 * target.h (struct calls): Add function_value_regno_p field.
8174 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8175 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8176 * targhooks.c (default_function_value_regno_p): New function.
8177 * targhooks.h (default_function_value_regno_p): Declare function.
8178 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8179 * builtins.c. (apply_result_size): (Ditto.).
8180 * combine.c. (likely_spilled_retval_p): (Ditto.).
8181 * mode-switching.c. Include 'target.h'.
8182 (create_pre_exit): Use function_value_regno_p hook.
8183 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8184 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8185 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8187 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8188 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8189 (ix86_function_value_regno_p): Declare as static, change argument
8190 type to const unsigned int.
8191 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8193 2010-05-01 Richard Guenther <rguenther@suse.de>
8195 PR tree-optimization/43949
8196 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8198 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8200 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8202 * rtl.h (CONST_DOUBLE_P): Define.
8203 (rtx_to_double_int): Declare.
8204 * emit-rtl.c (rtx_to_double_int): New function.
8205 * dwarf2out.c (insert_double): New function.
8206 (loc_descriptor, add_const_value_attribute): Clean up, use
8207 rtx_to_double_int and insert_double functions.
8209 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8211 * doc/extend.texi (Inline): Add missing return keyword to examples.
8212 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8215 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8217 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8218 the variable part of the offset as well. Use highest_pow2_factor for
8219 all alignment checks.
8221 2010-04-30 Richard Guenther <rguenther@suse.de>
8223 PR tree-optimization/43879
8224 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8227 2010-04-30 Jan Hubicka <jh@suse.cz>
8229 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8231 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8233 2010-04-30 Jan Hubicka <jh@suse.cz>
8235 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8237 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8238 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8239 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8240 cgraph_node_set_needs_ltrans_p): Remove.
8242 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8244 * sdbout.c: Include vec.h, do not include varray.h.
8245 (deferred_global_decls, sdbout_global_decl,
8246 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8247 * toplev.c: Do not include varray.h.
8248 (dump_memory_report): Do not dump VARRAY statistics.
8249 * gengtype.c (open_base_file): Ignore varray.h.
8250 * Makefile.in: Update for abovementioned changes.
8251 Remove all traces of varray.c and varray.h.
8252 * varray.c: Remove file.
8253 * varray.h: Remove file.
8255 2010-04-30 Jan Hubicka <jh@suse.cz>
8257 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8260 2010-04-30 Jan Hubicka <jh@suse.cz>
8262 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8265 2010-04-30 Richard Guenther <rguenther@suse.de>
8267 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8268 constraints for CONSTRUCTOR.
8270 2010-04-30 Richard Guenther <rguenther@suse.de>
8273 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8274 first after all lowering passes.
8276 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8278 * toplev.c: Include varray.h for statistics dumping.
8279 * tree.h: Do not declare varray_head_tag.
8280 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8281 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8282 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8283 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8284 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8285 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8286 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8287 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8289 * Makefile.in: Update for abovementioned changes.
8291 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8294 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8296 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8298 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8299 Use this function to do machine-specific conversion.
8300 (picochip_legitimize_reload_address): Likewise.
8301 (picochip_legitimate_address_p): Check valid base register only if
8303 (picochip_check_conditional_copy): Check for modw only if opnd is
8305 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8306 to call the function in c.
8307 * config/picochip/picochip-protos.h
8308 (picochip_legitimize_reload_address): Define.
8309 * config/picochip/picochip.md (supported_compare1): Define.
8311 2010-04-30 Jan Hubicka <jh@suse.cz>
8313 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8314 (cgraph_global_info): Remove inlined.
8315 (LTO_cgraph_tag_names): Remove.
8316 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8317 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8318 simplify cgraph tags and document.
8319 (lto_output_node): Use only LTO_cgraph_unavail_node and
8320 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8321 for_functions_valid, global info, process and output flags.
8322 (input_overwrite_node): Initialize estimated stack size and
8323 estimated growth. Do not read flags we no longer store.
8324 (input_node): Likewise do not read info no longer stored.
8325 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8328 2010-04-30 Richard Guenther <rguenther@suse.de>
8330 PR tree-optimization/43879
8331 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8332 handle non-zero initializers.
8334 2010-04-30 Richard Guenther <rguenther@suse.de>
8336 * builtins.c (fold_builtin_1): Delete free (0).
8338 2010-04-29 Jan Hubicka <jh@suse.cz>
8340 * gengtype.c (open_base_files): Add lto-streamer.h
8341 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8342 (pass_ipa_cp): GGC collect.
8343 * toplev. (compile_file): Do not output symbols.
8344 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8345 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8346 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8347 * lto-section-in.c: Include ggc.h
8348 (lto_new_in_decl_state): Alloc in GGC.
8349 (lto_delete_in_decl_state): Likewise.
8350 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8353 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8356 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8357 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8358 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8359 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8360 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8361 account only if HONOR_REG_ALLOC_ORDER is not defined.
8362 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8363 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8365 2010-04-29 Jon Grant <04@jguk.org>
8367 * collect2.c (vflag): Change type from int to bool.
8369 (helpflag): New global bool.
8370 (main): Set vflag and debug with boolean, not integer truth values.
8371 Accept new "--help" option and output usage text if found.
8372 * collect2.h (vflag): Update prototype.
8375 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8378 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8380 2010-04-29 Richard Guenther <rguenther@suse.de>
8383 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8384 with ATTRIBUTE_UNUSED.
8386 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8389 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8390 INSN_P with NONDEBUG_INSN_P.
8391 (distance_non_agu_define): Likewise.
8392 (distance_agu_use): Likewise.
8394 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8396 From Dominique d'Humieres <dominiq@lps.ens.fr>
8398 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8401 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8403 * plugin.h (invoke_plugin_callbacks): New inline function.
8404 * plugin.c (flag_plugin_added): New global flag.
8405 (add_new_plugin): Initialize above flag.
8406 (invoke_plugin_callbacks): Rename to ...
8407 (invoke_plugin_callbacks_full): ... this.
8409 2010-04-28 Jan Hubicka <jh@suse.cz>
8411 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8412 (lto_varpool_replace_node): New.
8413 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8414 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8415 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8416 * cgraph.h (varpool_node_ptr): New type.
8417 (varpool_node_ptr): New vector.
8418 (varpool_node_set_def): New structure.
8419 (varpool_node_set): New type.
8420 (varpool_node_set): New vector.
8421 (varpool_node_set_element_def): New structure.
8422 (varpool_node_set_element, const_varpool_node_set_element): New types.
8423 (varpool_node_set_iterator): New type.
8424 (varpool_node): Add prev pointers, add used_from_other_partition,
8426 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8427 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8428 varpool_get_node, varpool_remove_node): Declare.
8429 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8430 varpool_node_set_size): New inlines.
8431 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
8432 * tree-pass.h (varpool_node_set_def): Forward declare.
8433 (ipa_opt_pass_d): Summary writting takes vnode sets too.
8434 (ipa_write_optimization_summaries): Update prototype.
8435 * ipa-cp.c (ipcp_write_summary): Update.
8436 * ipa-reference.c (ipa_reference_write_summary): Update.
8437 * lto-cgraph.c (lto_output_varpool_node): New static function.
8438 (output_varpool): New function.
8439 (input_varpool_node): New static function.
8440 (input_varpool_1): New function.
8441 (input_cgraph): Input varpool.
8442 * ipa-pure-const.c (pure_const_write_summary): Update.
8443 * lto-streamer-out.c (lto_output): Update, output varpool too.
8444 (write_global_stream): Kill WPA hack.
8445 (produce_asm_for_decls): Update.
8446 (output_alias_pair_p): Handle variables.
8447 (output_unreferenced_globals): Output only needed partition of varpool.
8448 * ipa-inline.c (inline_write_summary): Update.
8449 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
8451 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
8452 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
8453 varpool_node_set_new, varpool_node_set_add,
8454 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
8455 debug_varpool_node_set): New functions.
8456 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
8457 (execute_one_pass): Process new decls too.
8458 (ipa_write_summaries_2): Pass around vsets.
8459 (ipa_write_summaries_1): Likewise.
8460 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
8462 (ipa_write_optimization_summaries_1): Pass around vsets.
8463 (ipa_write_optimization_summaries): Likewise.
8464 * varpool.c (varpool_get_node): New.
8465 (varpool_node): Update doubly linked lists.
8466 (varpool_remove_node): New.
8467 (dump_varpool_node): More dumping.
8468 (varpool_enqueue_needed_node): Update doubly linked lists.
8469 (decide_is_variable_needed): Kill ltrans hack.
8470 (varpool_finalize_decl): Kill lto hack.
8471 (varpool_assemble_decl): Skip decls in other partitions.
8472 (varpool_assemble_pending_decls): Update doubly linkes lists.
8473 (varpool_empty_needed_queue): Likewise.
8474 (varpool_extra_name_alias): Likewise.
8475 * lto-streamer.c (lto_get_section_name): Add vars section.
8476 * lto-streamer.h (lto_section_type): Update.
8477 (output_varpool, input_varpool): Declare.
8479 2010-04-28 Mike Stump <mikestump@comcast.net>
8481 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
8483 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8485 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
8486 record or union type with RECORD_OR_UNION_TYPE_P predicate.
8487 (lto_input_ts_type_tree_pointers): Likewise.
8488 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
8489 (lto_output_ts_type_tree_pointers): Likewise.
8491 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8493 Uniquization of constants at the Tree level
8494 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
8495 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
8497 (tree_output_constant_def): Declare.
8498 * gimplify.c (gimplify_init_constructor): When using block copy, first
8499 uniquize the constant constructor on the RHS.
8500 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
8501 DECL_IN_CONSTANT_POOL flag.
8502 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
8503 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
8505 (assemble_variable): Deal with symbols belonging to the tree constant
8507 (get_constant_section): Add ALIGN parameter and simplify.
8508 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
8509 (assemble_constant_contents): Use the expression of the VAR_DECL.
8510 (output_constant_def_contents): Use the alignment of the VAR_DECL.
8511 (tree_output_constant_def): New global function.
8512 (mark_constant): Use the expression of the VAR_DECL.
8513 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
8515 (output_object_block): Likewise and assemble the expression.
8517 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8519 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
8520 hash_tree, eq_tree): New tree hash table.
8521 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
8522 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
8523 lto_orig_address_remove): Reimplement.
8525 2010-04-28 Xinliang David Li <davidxl@google.com>
8528 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
8529 (compute_uninit_opnds_pos): New function.
8530 (is_non_loop_exit_postdominating): New function.
8531 (compute_control_dep_chain): New function.
8532 (find_pdom): New function.
8533 (convert_control_dep_chain_into_preds): New function.
8534 (find_predicates): New function.
8535 (find_control_equiv_block): New function.
8536 (collect_phi_def_edges): New function.
8537 (find_def_preds): New function.
8538 (find_dom): New function.
8539 (dump_predicates): New function.
8540 (get_cmp_code): New function.
8541 (is_value_included_in): New function.
8542 (find_matching_predicate_in_rest_chains): New function.
8543 (use_pred_not_overlap_with_undef_path_pred): New function.
8544 (is_use_properly_guarded): New function.
8545 (normalize_cond_1): New function.
8546 (is_and_or_or): New function.
8547 (normalize_cond): New function.
8548 (is_gcond_subset_of): New function.
8549 (is_subset_of_any): New function.
8550 (is_or_set_subset_of): New function.
8551 (is_and_set_subset_of): New function.
8552 (is_norm_cond_subset_of): New function.
8553 (is_pred_expr_subset_of): New function.
8554 (is_pred_chain_subset_of): New function.
8555 (is_included_in): New function.
8556 (is_superset_of): New function.
8557 (find_uninit_use): New function.
8558 (warn_uninitialized_phi): New function.
8559 (compute_possibly_undefined_names): New function.
8560 (ssa_undefined_value_p): New function.
8561 (execute_late_warn_uninitialized): New function.
8562 * tree-ssa.c (ssa_undefined_value_p): Removed.
8563 (warn_uninit): Changed to extern.
8564 (warn_uninitialized_phi): Removed.
8565 (warn_uninitialized_vars): Changed to extern.
8566 (execute_late_warn_uninitialized): Removed
8567 * tree-flow.h: Add new prototypes.
8568 * timevar.def: Add new time variable.
8569 * Makefile.in: Add new build file.
8571 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
8573 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8576 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8579 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
8581 2010-04-28 Martin Jambor <mjambor@suse.cz>
8583 * cgraph.h (struct cgraph_node): New field indirect_calls.
8584 (struct cgraph_indirect_call_info): New type.
8585 (struct cgraph_edge): Removed field indirect_call. New fields
8586 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
8587 (cgraph_create_indirect_edge): Declare.
8588 (cgraph_make_edge_direct): Likewise.
8589 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
8590 * ipa-prop.h (struct ipa_param_call_note): Removed.
8591 (struct ipa_node_params): Removed field param_calls.
8592 (ipa_create_all_structures_for_iinln): Declare.
8593 * cgraph.c: Described indirect edges and uids in initial comment.
8594 (cgraph_add_edge_to_call_site_hash): New function.
8595 (cgraph_edge): Search also among the indirect edges, use
8596 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
8597 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
8598 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
8600 (initialize_inline_failed): Assign a reason to indirect edges.
8601 (cgraph_create_edge_1): New function.
8602 (cgraph_create_edge): Moved some functionality to
8603 cgraph_create_edge_1.
8604 (cgraph_create_indirect_edge): New function.
8605 (cgraph_edge_remove_callee): Add an assert checking for
8607 (cgraph_edge_remove_caller): Special-case indirect edges.
8608 (cgraph_remove_edge): Likewise.
8609 (cgraph_set_edge_callee): New function.
8610 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
8611 (cgraph_make_edge_direct): New function.
8612 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
8613 the declaration of the call statement matches.
8614 (cgraph_node_remove_callees): Special-case indirect edges.
8615 (cgraph_clone_edge): Likewise.
8616 (cgraph_clone_node): Clone also the indirect edges.
8617 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
8618 indirect_call, dump count of indirect_calls edges.
8619 * ipa-prop.c (iinlining_processed_edges): New variable.
8620 (ipa_note_param_call): Create indirect edges instead of
8621 creating notes. New parameter node.
8622 (ipa_analyze_call_uses): New parameter node, pass it on to
8623 ipa_note_param_call.
8624 (ipa_analyze_stmt_uses): Likewise.
8625 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
8626 (print_edge_addition_message): Work on edges rather than on notes.
8627 (update_call_notes_after_inlining): Likewise, renamed to
8628 update_indirect_edges_after_inlining.
8629 (ipa_create_all_structures_for_iinln): New function.
8630 (ipa_free_node_params_substructures): Do not free notes.
8631 (ipa_edge_duplication_hook): Propagate bits within
8632 iinlining_processed_edges bitmap.
8633 (ipa_node_duplication_hook): Do not duplicate notes.
8634 (free_all_ipa_structures_after_ipa_cp): Renamed to
8635 ipa_free_all_structures_after_ipa_cp.
8636 (free_all_ipa_structures_after_iinln): Renamed to
8637 ipa_free_all_structures_after_iinln.
8638 (ipa_write_param_call_note): Removed.
8639 (ipa_read_param_call_note): Removed.
8640 (ipa_write_indirect_edge_info): New function.
8641 (ipa_read_indirect_edge_info): Likewise.
8642 (ipa_write_node_info): Do not stream notes, do stream information
8644 (ipa_read_node_info): Likewise.
8645 (lto_ipa_fixup_call_notes): Removed.
8646 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
8647 * ipa-inline.c (pass_ipa_inline): Likewise.
8648 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
8649 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
8650 * tree-inline.c (copy_bb): Removed an unnecessary double check for
8652 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
8654 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
8655 (output_cgraph): Stream also indirect edges.
8656 (lto_output_edge): Added capability to stream indirect edges.
8657 (input_edge): Likewise.
8658 (input_cgraph_1): Likewise.
8659 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
8662 2010-04-28 Richard Guenther <rguenther@suse.de>
8664 PR tree-optimization/43879
8665 PR tree-optimization/43909
8666 * tree-ssa-structalias.c (struct variable_info): Add
8667 only_restrict_pointers flag.
8668 (new_var_info): Initialize it. Increment stats.total_vars here.
8669 (create_function_info_for): Do not increment stats.total_vars here.
8670 (get_function_part_constraint): Fix build with C++.
8671 (insert_into_field_list): Remove.
8672 (push_fields_onto_fieldstack): Properly merge fields.
8673 (create_variable_info_for): Split and simplify.
8674 (create_variable_info_for_1): New piece.
8675 (intra_create_variable_infos): Properly make restrict constraints
8678 2010-04-28 Richard Guenther <rguenther@suse.de>
8681 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
8683 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
8684 Jan Hubicka <hubicka@ucw.cz>
8686 * doc/invoke.texi (-Wsuggest-attribute=const,
8687 -Wsuggest-attribute=pure): Document.
8688 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
8689 (function_always_visible_to_compiler_p,
8690 suggest_attribute, warn_function_pure, warn_function_const):
8692 (check_call): Improve debug info.
8693 (analyze_function): Do not check availability.
8694 (add_new_function): Check availability.
8695 (propagate): Output warnings.
8696 (skip_function_for_local_pure_const): New function.
8697 (local_pure_const): Use it; output warnings.
8698 * common.opt (Wsuggest-attribute=const,
8699 Wsuggest-attribute=pure): New.
8701 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8703 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
8704 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
8705 or DW_CFA_def_cfa_offset{,_sf}.
8707 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8709 * tree.h: Fix truncated long macros.
8711 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
8713 * collect2.c (TARGET_64BIT): Redefine to target's default.
8714 * tlink.c: Likewise.
8715 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
8716 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
8717 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
8718 for underscoring __USER_LABEL_PREFIX__.
8719 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
8720 (SUB_LINK_ENTRY32): New.
8721 (SUB_LINK_ENTRY64): New.
8722 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
8723 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
8724 (SUB_LINK_ENTRY64): New.
8725 (SUB_LINK_ENTRY): New.
8726 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
8727 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
8728 x64 target is choosen.
8729 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
8730 * configure: Regenerated.
8731 * configure.ac (leading-mingw64-underscores): Option added.
8733 2010-04-27 Jan Hubicka <jh@suse.cz>
8735 * doc/invoke.texi (-fipa-profile): Document.
8736 * opts.c (decode_options): Enable ipa-profile at -O1.
8737 * timevar.def (TV_IPA_PROFILE): Define.
8738 * common.opt (fipa-profile): Add.
8739 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
8741 (cgraph_propagate_frequency): Handle only local ones.
8742 * tree-pass.h (pass_ipa_profile): Declare.
8743 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
8744 (pass_ipa_profile): Use TV_IPA_PROFILE.
8745 * ipa.c (ipa_profile): New function.
8746 (gate_ipa_profile): Likewise.
8747 (pass_ipa_profile): New global variable.
8748 * passes.c (pass_ipa_profile): New.
8750 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
8752 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
8754 2010-04-27 Martin Jambor <mjambor@suse.cz>
8757 * ipa.c (dissolve_same_comdat_group_list): New function.
8758 (function_and_variable_visibility): Call
8759 dissolve_same_comdat_group_list when comdat group contains external or
8761 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
8762 lists are circular and that they contain only DECL_ONE_ONLY nodes.
8764 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
8766 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
8767 (const_hash_1) <VECTOR_CST>: New case.
8768 (compare_constant) <VECTOR_CST>: Likewise.
8769 <ADDR_EXPR>: Deal with LABEL_REFs.
8770 (copy_constant) <VECTOR_CST>: New case.
8772 2010-04-27 Jan Hubicka <jh@suse.cz>
8774 * cgraph.c (cgraph_propagate_frequency): New function.
8775 * cgraph.h (cgraph_propagate_frequency): Declare.
8776 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
8777 cgraph_propagate_frequency.
8779 2010-04-27 Jakub Jelinek <jakub@redhat.com>
8781 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
8783 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
8786 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
8787 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
8788 here to determine which regs to push and how much stack to reserve.
8790 2010-04-27 Jie Zhang <jie@codesourcery.com>
8792 * doc/gimple.texi (gimple_statement_with_ops): Remove
8793 addresses_taken field.
8794 (gimple_statement_with_memory_ops): Likewise.
8796 2010-04-27 Jan Hubicka <jh@suse.cz>
8798 * tree-inline.c (eni_inlining_weights): Remove.
8799 (estimate_num_insns): Special case more builtins.
8801 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
8804 * c-typeck.c (build_binary_op): Move forward check for comparison
8805 pointer with null pointer constant and adjust the diagnostic message.
8807 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
8810 * configure.ac (gcc_cv_as_section_has_align): Set if installed
8811 binutils supports extended .section directive needed by LTO, or
8812 warn if older binutils found.
8813 (LTO_BINARY_READER): New AC_SUBST'd variable.
8814 (LTO_USE_LIBELF): Likewise.
8815 * gcc/config.gcc (lto_binary_reader): New target-specific configure
8817 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
8818 (LTO_USE_LIBELF): Likewise.
8819 * configure: Regenerate.
8821 * collect2.c (is_elf): Rename from this ...
8822 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
8823 object files in addition to ELF-formatted ones.
8824 (scan_prog_file): Caller updated. Also allow for LTO info marker
8825 symbol to be prefixed or not by an extra underscore.
8827 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
8828 * config/i386/winnt.c: Also #include lto-streamer.h
8829 (i386_pe_asm_named_section): Specify 1-byte section alignment for
8831 (i386_pe_asm_output_aligned_decl_common): Add comment.
8832 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
8834 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
8837 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
8838 Add missing earlyclobber for second alternative.
8840 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
8842 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
8843 bits for artificial defs at the top of the block.
8844 * fwprop.c (single_def_use_enter_block): Don't call it.
8846 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
8849 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
8850 instead of "$gcc_cv_objdump -T".
8851 Use "-undefined dynamic_lookup" on darwin.
8852 * gcc/configure: Regenerate.
8854 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8857 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
8859 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8861 * c-parser.c (struct c_token): Move location field up.
8862 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
8863 (struct c_declspecs): Convert typespec_word, storage_class, and
8864 default_int_p into bitfields.
8865 (struct c_declarator): Move loc field up.
8867 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
8869 * cfgloop.h (struct loop): Move can_be_parallel field up.
8870 * ipa-prop.h (struct ip_node_params): Move bitfields up.
8871 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
8873 (struct iv_cand): Convert pos field into a bitfield.
8874 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
8876 (struct _stmt_vec_info): Shuffle fields for better packing.
8878 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8880 * varasm.c (IN_NAMED_SECTION): Remove guard.
8881 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
8882 (IN_NAMED_SECTION_P): ...this.
8883 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
8884 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
8886 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
8888 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
8889 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
8890 of shadowing it. Fix comments.
8892 2010-04-26 Jan Hubicka <jh@suse.cz>
8894 * cgraph.c (cgraph_create_node): Set node frequency to normal.
8895 (cgraph_clone_node): Copy function frequency.
8896 * cgraph.h (node_frequency): New enum
8897 (struct cgraph_node): Add.
8898 * final.c (rest_of_clean_state): Update.
8899 * lto-cgraph.c (lto_output_node): Output node frequency.
8900 (input_overwrite_node): Input node frequency.
8901 * tre-ssa-loop-ivopts (computation_cost): Update.
8902 * lto-streamer-out.c (output_function): Do not output function
8904 * predict.c (maybe_hot_frequency_p): Update and handle functions
8906 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
8908 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
8909 (compute_function_frequency): Set noreturn functions to be executed
8911 (choose_function_section): Update.
8912 * lto-streamer-in.c (input_function): Do not input function frequency.
8913 * function.c (allocate_struct_function): Do not initialize function
8915 * function.h (function_frequency): Remove.
8916 (struct function): Remove function frequency.
8917 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
8918 (try_update): Update.
8919 * tree-inline.c (initialize_cfun): Do not update function frequency.
8920 * passes.c (pass_init_dump_file): Update.
8921 * i386.c (ix86_compute_frame_layout): Update.
8922 (ix86_pad_returns): Update.
8924 2010-04-26 Jie Zhang <jie@codesourcery.com>
8926 PR tree-optimization/43833
8927 * tree-vrp.c (range_int_cst_p): New.
8928 (range_int_cst_singleton_p): New.
8929 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
8930 when both operands are constants. Use range_int_cst_p in
8933 2010-04-26 Jan Hubicka <jh@suse.cz>
8935 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
8937 2010-04-26 Richard Guenther <rguenther@suse.de>
8940 * gimple.c (gimple_decl_printable_name): Deal gracefully
8941 with a NULL DECL_NAME.
8943 2010-04-26 Richard Guenther <rguenther@suse.de>
8946 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
8947 if emitting debug information and it is either a function
8948 or a namespace decl.
8950 2010-04-26 Ira Rosen <irar@il.ibm.com>
8952 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
8953 determine if the statement is vectorizable, and a macro to access it.
8954 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8955 Skip statements that can't be vectorized. If the analysis fails,
8956 mark the statement as unvectorizable if vectorizing basic block.
8957 (vect_compute_data_refs_alignment): Likewise.
8958 (vect_verify_datarefs_alignment): Skip statements marked as
8959 unvectorizable. Add print.
8960 (vect_analyze_group_access): Skip statements that can't be
8961 vectorized. If the analysis fails, mark the statement as
8962 unvectorizable if vectorizing basic block.
8963 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
8964 * tree-vect-stmts.c (vectorizable_store): Fix the number of
8965 generated stmts for SLP.
8966 (new_stmt_vec_info): Initialize the new field.
8967 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
8968 statements marked as unvectorizable.
8970 2010-04-25 Joseph Myers <joseph@codesourcery.com>
8972 * c-common.c (flag_isoc1x): New.
8973 (flag_isoc99): Update comment.
8974 * c-common.h (flag_isoc1x): New.
8975 (flag_isoc99): Update comment.
8976 * c-cppbuiltin.c (builtin_define_float_constants): Also define
8977 __<type>_DECIMAL_DIG__.
8978 * c-opts.c (set_std_c1x): New.
8979 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
8980 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
8981 * c.opt (-std=c1x, -std=gnu1x): New options.
8982 * doc/cpp.texi: Mention -std=c1x.
8983 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
8984 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
8985 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
8986 * doc/standards.texi: Mention C1X.
8987 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
8988 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
8989 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8992 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
8994 * config/i386/gmon-sol2.c (_mcleanup): Change format string
8995 placeholder from 0x%x to %#x.
8996 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8997 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8998 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8999 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9000 * config/i386/i386.c (ix86_target_string): Ditto.
9001 (output_pic_addr_const): Ditto.
9002 (print_operand): Ditto.
9004 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9006 * combine.c (find_split_point): Add third argument. Use it
9007 to find nested multiply-accumulate instructions. Adjust calls.
9008 (try_combine): Adjust call to find_split_point.
9010 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9012 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9014 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9016 PR tree-optimization/41442
9017 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9018 (fold_binary_loc): Call it.
9020 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9022 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9023 * opts.c (common_handle_option): Allow disabling it.
9024 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9026 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9028 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9029 between modes if both types are integral.
9031 2010-04-23 Richard Guenther <rguenther@suse.de>
9033 PR tree-optimization/43572
9034 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9036 2010-04-23 Richard Guenther <rguenther@suse.de>
9039 * tree-inline.c (tree_can_inline_p): Also check compatibility
9042 2010-04-23 Martin Jambor <mjambor@suse.cz>
9044 PR tree-optimization/43846
9045 * tree-sra.c (struct access): New flag grp_assignment_read.
9046 (build_accesses_from_assign): Set grp_assignment_read.
9047 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9048 (enum mark_read_status): New type.
9049 (analyze_access_subtree): Propagate grp_assignment_read, create
9050 accesses also if both direct_read and root->grp_assignment_read.
9052 2010-04-23 Martin Jambor <mjambor@suse.cz>
9055 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9056 function does not have type attributes.
9058 2010-04-23 Richard Guenther <rguenther@suse.de>
9061 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9064 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9066 * sese.h (create_if_region_on_edge): Remove.
9068 * sese.c (create_if_region_on_edge): Make static.
9070 * tree-inline.c: Do not include ggc.h.
9072 * expr.c: Do not include ggc.h.
9074 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9077 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9080 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9081 in the middle of insns for casesi_worker_2.
9083 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9085 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9087 2010-04-22 Ira Rosen <irar@il.ibm.com>
9089 PR tree-optimization/43842
9090 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9091 loop unrolling in update of exit phis. Fix comment.
9092 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9093 least two reduction statements in the loop before starting SLP
9096 2010-04-22 Nick Clifton <nickc@redhat.com>
9098 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9100 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9102 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9105 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9107 * tree-parloops.c (loop_parallel_p): New argument
9108 parloop_obstack. Pass it down.
9109 (parallelize_loops): New variable parloop_obstack. Initialize it,
9110 pass it down, free it.
9112 * tree-loop-linear.c (linear_transform_loops): Pass down
9115 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9116 of type struct obstack *.
9118 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9119 scratch_obstack. Initialize it, pass down, free it.
9121 * lambda.h (lambda_loop_new): Remove.
9122 (lambda_matrix_new, lambda_matrix_inverse)
9123 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9124 argument of type struct obstack *.
9126 * lambda-trans.c (lambda_trans_matrix_new): New argument
9127 lambda_obstack. Pass it down, use obstack allocation for ret.
9128 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9131 * lambda-mat.c (lambda_matrix_get_column)
9132 (lambda_matrix_project_to_null): Remove.
9133 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9135 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9138 * lambda-code.c (lambda_loop_new): New function.
9139 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9140 (lambda_compute_auxillary_space, lambda_compute_target_space)
9141 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9142 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9143 (build_access_matrix): New argument lambda_obstack. Use obstack
9145 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9146 argument lambda_obstack. Pass it down.
9148 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9150 * optabs.h (expand_widening_mult): Declare.
9152 2010-04-22 Richard Guenther <rguenther@suse.de>
9154 PR tree-optimization/43845
9155 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9156 lookup the CALL_EXPR function and arguments.
9158 2010-04-22 Nick Clifton <nickc@redhat.com>
9160 * config/stormy16/stormy16.c
9161 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9162 * config/stormy16/stormy16.h: Tidy up formatting.
9163 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9164 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9165 (ineqbranchsi): Delete pattern.
9166 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9167 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9168 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9169 stormy16-lib2-ucmpsi2.c.
9171 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9173 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9174 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9175 extra set merge_set_noclobber, and use it to relax the final test
9177 * df.h (df_simulate_find_noclobber_defs): Declare.
9178 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9180 (df_simulate_find_noclobber_defs): New function.
9182 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9184 * config/i386/i386.md: Use {} around multi-line preparation statements.
9186 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9188 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9189 (process_init_element): New argument of type struct obstack *.
9191 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9192 (set_init_index, set_init_label, set_nonincremental_init)
9193 (set_nonincremental_init_from_string, find_init_member)
9194 (output_init_element, output_pending_init_elements)
9195 (process_init_element): New argument braced_init_obstack. Pass it
9197 (push_range_stack, add_pending_init): New argument
9198 braced_init_obstack. Use obstack allocation.
9200 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9201 braced_init_obstack. Pass it down.
9202 (c_parser_braced_init): New variables ret, braced_init_obstack.
9203 Initialize obstack, pass it down and finally free it.
9205 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9208 * tree-pass.h (pass_optimize_widening_mul): Declare.
9209 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9210 gate_optimize_widening_mul): New static functions.
9211 (pass_optimize_widening_mul): New.
9212 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9213 <case MULT_EXPR>: Remove support for widening multiplies.
9214 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9215 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9216 simplify_gen_unary rather than directly building extensions.
9217 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9219 * expmed.c (expand_widening_mult): New function.
9220 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9222 2010-04-21 Jan Hubicka <jh@suse.cz>
9224 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9225 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9226 * lto-wpa-fixup.c: Remove.
9227 * Makefile.in (lto-wpa-fixup.o): Remove.
9228 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9229 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9230 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9232 2010-04-21 Jan Hubicka <jh@suse.cz>
9234 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9235 add write_optimization_summary, read_optimization_summary.
9236 (ipa_write_summaries_of_cgraph_node_set): Remove.
9237 (ipa_write_optimization_summaries): Declare.
9238 (ipa_read_optimization_summaries): Declare.
9239 * ipa-cp.c (pass_ipa_cp): Update.
9240 * ipa-reference.c (pass_ipa_reference): Update.
9241 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9242 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9244 * ipa-inline.c (pass_ipa_inline): Update.
9245 * ipa.c (pass_ipa_whole_program): Update.
9246 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9247 * passes.c (ipa_write_summaries_1): Do not test wpa.
9248 (ipa_write_optimization_summaries_1): New.
9249 (ipa_write_optimization_summaries): New.
9250 (ipa_read_summaries): Do not test ltrans.
9251 (ipa_read_optimization_summaries_1): New.
9252 (ipa_read_optimization_summaries): New.
9254 2010-04-21 Jan Hubicka <jh@suse.cz>
9256 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9258 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9260 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9263 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9264 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9266 2010-04-21 Jan Hubicka <jh@suse.cz>
9268 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9270 2010-04-21 Jan Hubicka <jh@suse.cz>
9272 * varpool.c (decide_is_variable_needed): Variable is always needed
9275 2010-04-21 Jan Hubicka <jh@suse.cz>
9277 * opts.c (decode_options): Enable pure-const pass for whopr.
9279 2010-04-21 Jan Hubicka <jh@suse.cz>
9281 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9282 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9284 (cgraph_decide_inlining): Do not expect callee to be removed in all
9287 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9289 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9291 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9293 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9294 amdfam10_decode attributes.
9296 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9299 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9300 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9301 (lower_copyprivate_clauses): Use private var in outer
9302 context instead of original var. Make sure the types
9303 are correct for VLAs.
9305 2010-04-21 Richard Guenther <rguenther@suse.de>
9307 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9308 to non-pointer objects.
9310 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9312 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9313 last chain entry if it starts with the still current label.
9314 (add_location_or_const_value_attribute): Check that
9315 loc_list->first->next is NULL instead of comparing ->first with ->last.
9316 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9317 to add_var_loc_to_decl.
9319 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9320 >= 4 add also address size and segment size fields into CIE header.
9322 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9323 long as address size is the same as sizeof (void *) and
9325 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9326 address size or segment size is unexpected, return DW_EH_PE_omit.
9327 (classify_object_over_fdes): If get_cie_encoding returned
9328 DW_EH_PE_omit, return -1.
9329 (init_object): If classify_object_over_fdes returned -1,
9330 pretend there were no FDEs at all.
9332 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9334 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9335 bswap{si,di}2 using SWI48 mode iterator.
9336 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9337 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9338 set modrm attribute of bswap insn to 0 and remove length attribute.
9339 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9340 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9341 set mode attribute to <MODE> and remove length attribute.
9343 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9345 PR rtl-optimization/43520
9346 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9347 zero available registers.
9349 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9351 * builtins.c (fold_builtin_cproj): Fold more cases.
9353 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9355 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9356 (fold_builtin_1): Fold builtin cproj.
9357 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9358 Use ATTR_CONST_NOTHROW_LIST.
9360 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9362 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9363 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9364 ffsi2_no_cmove for !TARGET_CMOVE.
9365 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9366 (ffssi2): Remove expander.
9367 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9369 (ctz<mode>2): Ditto from ctz{si,di}2.
9370 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9372 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9375 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9377 * dwarf2out.c (AT_linkage_name): Define.
9378 (clone_as_declaration): Handle DW_AT_linkage_name.
9379 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9380 of DW_AT_MIPS_linkage_name.
9381 (move_linkage_attr): Likewise.
9382 (dwarf2out_finish): Likewise.
9384 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9387 * fold-const.c (fold_comparison): New folding rule.
9389 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9391 * double-int.h (double_int_setbit): Declare.
9392 * double-int.c (double_int_setbit): New function.
9393 * rtl.h (immed_double_int_const): Declare.
9394 * emit-rtl.c (immed_double_int_const): New function.
9395 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9396 and immed_double_int_const functions.
9397 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9398 expand_copysign_bit): (Ditto.).
9399 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9400 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9401 * dojump.c (prefer_and_bit_test): (Ditto.).
9402 * expr.c (convert_modes, reduce_to_bit_field_precision,
9403 const_vector_from_tree): (Ditto.).
9404 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9406 2010-04-20 Jan Hubicka <jh@suse.cz>
9408 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9409 (dump_cgraph_node): Dump new flags.
9410 * cgraph.h (struct cgraph_node): Add flags
9411 reachable_from_other_partition and in_other_partition.
9412 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9413 other partition can not be removed.
9414 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9415 the other partition must be output; silence sanity checking on
9416 leaking functions bodies from other paritition.
9417 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9418 (lto_output_node): Output new flags; do not sanity check that inline
9419 clones are output; drop lto_forced_extern_inline_p code; do not mock
9420 visibility flags at partition boundaries.
9421 (add_node_to): New function.
9422 (output_cgraph): Use it to sort functions so masters appear before
9424 (input_overwrite_node): Input new flags.
9425 * passes.c (ipa_write_summaries): Do not call
9426 lto_new_extern_inline_states.
9427 * lto-section-out.c (forced_extern_inline,
9428 lto_new_extern_inline_states lto_delete_extern_inline_states,
9429 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9430 * lto-streamer.h (lto_new_extern_inline_states,
9431 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
9432 lto_forced_extern_inline_p): Kill.
9434 2010-04-20 Richard Guenther <rguenther@suse.de>
9436 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
9437 from vars that can have pointers.
9438 (process_constraint): Dump useless constraints.
9440 2010-04-20 Richard Guenther <rguenther@suse.de>
9442 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
9443 (dump_sa_points_to_info): Remove asserts.
9444 (init_base_vars): nothing_id isn't an escape point nor does it
9447 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9449 * tree.h (TYPE_REF_IS_RVALUE): Define.
9450 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
9451 should_move_die_to_comdat, prune_unused_types_walk): Handle
9452 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
9453 (modified_type_die, gen_reference_type_die): Emit
9454 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
9455 if TYPE_REF_IS_RVALUE and -gdwarf-4.
9457 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9460 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
9461 calls for -fpic -m31 if they have been sibcall optimized.
9463 2010-04-19 James E. Wilson <wilson@codesourcery.com>
9465 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
9466 ar.lc fixed and call-used.
9468 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
9470 2010-04-19 Jan Hubicka <jh@suse.cz>
9472 * opts.c (decode_options): Disable whpr incompatible passes.
9473 * lto/lto.c (lto_1_to_1_map): Skip clones.
9474 (read_cgraph_and_symbols): Do not mark everything as needed.
9475 (do_whole_program_analysis): Do map only after optimizing;
9476 set proper cgraph_state; use passmanager.
9478 2010-04-19 DJ Delorie <dj@redhat.com>
9480 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
9481 POINTER_PLUS_EXPR and fix them.
9483 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
9485 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
9486 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
9487 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
9488 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
9489 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
9490 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
9491 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
9492 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
9493 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
9494 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
9495 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
9497 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
9499 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
9500 (check_cond_move_block): Likewise.
9501 (cond_move_process_if_block): Likewise.
9502 (noce_find_if_block): Improve formatting.
9503 (find_if_header): Pass 0 to memset and tweak conditions.
9504 (cond_exec_find_if_block): Fix long lines and tweak conditions.
9506 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9508 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
9512 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
9513 with non-local decl doesn't need chain.
9515 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
9517 * ira-color.c (allocno_reload_assign): Avoid accumulating
9518 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
9520 2010-04-19 Martin Jambor <mjambor@suse.cz>
9522 * gimple.h (create_tmp_reg): Declare.
9523 * gimplify.c (create_tmp_reg): New function.
9524 (gimplify_return_expr): Use create_tmp_reg.
9525 (gimplify_omp_atomic): Likewise.
9526 (gimple_regimplify_operands): Likewise.
9527 * tree-dfa.c (make_rename_temp): Likewise.
9528 * tree-predcom.c (predcom_tmp_var): Likewise.
9529 (reassociate_to_the_same_stmt): Likewise.
9530 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
9531 (get_replaced_param_substitute): Likewise.
9532 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
9533 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
9534 * tree-ssa-pre.c (get_representative_for): Likewise.
9535 (create_expression_by_pieces): Likewise.
9536 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
9537 (create_tailcall_accumulator): Likewise.
9539 2010-04-19 Martin Jambor <mjambor@suse.cz>
9541 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
9543 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
9545 2010-04-19 Richard Guenther <rguenther@suse.de>
9547 PR tree-optimization/43796
9548 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
9549 from SCEV in the lattice.
9550 (vrp_visit_phi_node): Dump change.
9552 2010-04-19 Richard Guenther <rguenther@suse.de>
9554 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
9555 * configure: Re-generated.
9557 2010-04-19 Richard Guenther <rguenther@suse.de>
9559 PR tree-optimization/43783
9560 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
9561 constant ARRAY_REF operands two and three if possible.
9563 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
9566 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
9568 2010-04-19 Jie Zhang <jie@codesourcery.com>
9571 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
9573 2010-04-19 Ira Rosen <irar@il.ibm.com>
9575 PR tree-optimization/37027
9576 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
9577 and macro to access it.
9578 (vectorizable_reduction): Add argument.
9579 (vect_get_slp_defs): Likewise.
9580 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
9581 statements for possible use in SLP.
9582 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
9583 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
9584 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
9586 (vectorizable_reduction): Likewise.
9587 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
9589 (vectorizable_type_demotion, vectorizable_type_promotion,
9590 vectorizable_store): Likewise.
9591 (vect_analyze_stmt): Update call to vectorizable_reduction.
9592 (vect_transform_stmt): Likewise.
9593 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
9594 (vect_build_slp_tree): Fix indentation. Check that there are no loads
9595 from different interleaving chains in same node.
9596 (vect_slp_rearrange_stmts): New function.
9597 (vect_supported_load_permutation_p): Allow load permutations for
9598 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
9599 inside SLP nodes if necessary.
9600 (vect_analyze_slp_instance): Handle reductions.
9601 (vect_analyze_slp): Try to build SLP instances originating from groups
9603 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
9604 (vect_get_constant_vectors): Create initial vectors for reductions
9605 according to reduction code. Add new argument.
9606 (vect_get_slp_defs): Add new argument, pass it to
9607 vect_get_constant_vectors.
9608 (vect_schedule_slp_instance): Remove SLP tree root statements.
9610 2010-04-19 Jakub Jelinek <jakub@redhat.com>
9612 * tree.h (ENUM_IS_SCOPED): Define.
9613 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
9614 for ENUM_IS_SCOPED enums.
9616 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
9618 * fold-const.c (fold_comparison): Use ssizetype.
9619 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9620 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
9621 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
9622 * tree-object-size.c (compute_object_sizes): Use size_type_node.
9624 * tree.h (initialize_sizetypes): Remove parameter.
9625 (build_common_tree_nodes): Remove second parameter.
9626 * stor-layout.c (initialize_sizetypes): Remove parameter.
9627 Always create an unsigned type.
9628 (set_sizetype): Assert that the passed type is unsigned and simplify.
9629 * tree.c (build_common_tree_nodes): Remove second parameter.
9630 Adjust call to initialize_sizetypes.
9631 * c-decl.c (c_init_decl_processing): Remove second argument in call to
9632 build_common_tree_nodes.
9634 2010-04-18 Matthias Klose <doko@ubuntu.com>
9636 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
9638 2010-04-18 Ira Rosen <irar@il.ibm.com>
9640 PR tree-optimization/43771
9641 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
9642 load permutation doesn't have gaps.
9644 2010-04-18 Jan Hubicka <jh@suse.cz>
9646 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
9647 (sse_prologue_save_insn expander): Use new pattern.
9648 (sse_prologue_save_insn1): New pattern and splitter.
9649 (sse_prologue_save_insn): Update to deal also with 64bit aligned
9651 * i386.c (setup_incoming_varargs_64): Do not compute jump
9653 (ix86_gimplify_va_arg): Update alignment needed.
9654 (ix86_local_alignment): Do not align all local arrays to 128bit.
9656 2010-04-17 Jan Hubicka <jh@suse.cz>
9658 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
9660 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9662 * arm.md (negdi2): Remove redundant code to force values into a
9665 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9667 * arm/bpabi.S: Add EABI alignment attributes to objects.
9668 * arm/bpabi-v6m.S: Likewise.
9669 * arm/crti.asm: Likewise.
9670 * arm/crtn.asm: Likewise.
9671 * arm/lib1funcs.asm: Likewise.
9672 * arm/libunwind.S: Likewise.
9674 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
9676 * arm-protos.h (tune_params): New structure.
9677 * arm.c (current_tune): New variable.
9678 (arm_constant_limit): Delete.
9679 (struct processors): Add pointer to the tune parameters.
9680 (arm_slowmul_tune): New tuning option.
9681 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
9682 (all_cores): Adjust to pick up the tuning model.
9683 (arm_constant_limit): New function.
9684 (arm_override_options): Select the appropriate tuning model. Delete
9685 initialization of arm_const_limit.
9686 (arm_split_constant): Use the new constant-limit model.
9687 (arm_rtx_costs): Pick up the current tuning model.
9688 * arm.md (is_strongarm, is_xscale): Delete.
9689 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
9690 for Xscale variant architectures.
9691 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
9693 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9695 * config/arm/arm.c (arm_gen_constant): Remove unused variable
9697 (arm_rtx_costs_1): Remove unused variable extra_cost.
9698 (arm_unwind_emit_set): Use variable offset.
9699 (thumb1_output_casesi): Remove unused variable flags.
9701 2010-04-16 Jeff Law <law@redhat.com>
9703 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
9704 needing assignment rather than doing a two-phase assignment. Remove
9705 unused variable 'm'.
9707 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9710 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
9712 2010-04-16 Doug Kwan <dougkwan@google.com>
9714 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
9715 (next_operand_entry_id): New static variable.
9716 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
9717 (add_to_ops_vec): Assigned unique ID to operand entry.
9718 (struct oecount_s): New field ID.
9719 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
9720 (undistribute_ops_list): Assign unique IDs to oecounts.
9721 (init_reassoc): reset next_operand_entry_id.
9723 2010-04-16 Doug Kwan <dougkwan@google.com>
9725 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
9726 missing left parenthesis.
9728 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
9730 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
9731 *btdi_rex64 using SWI48 mode iterator.
9732 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
9733 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
9734 *jcc_btdi_mask_rex64.
9736 2010-04-16 Anatoly Sokolov <aesok@post.ru>
9738 * double-int.h (tree_to_double_int): Convert to macro.
9739 * double-int.c (tree_to_double_int): Remove.
9741 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9744 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
9745 with want_address 2 and in case a single element list might be
9746 possible, call it again with want_address 0.
9748 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
9750 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
9751 case 'W' print operands for HI mode.
9752 * config/h8300/h8300.h (Y0, Y2) : New constraints.
9753 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
9754 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
9755 * config/h8300/predicate.md (bit_register_indirect_operand): New.
9757 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
9759 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
9760 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
9761 #xx:3 and #xx:4 mode.
9763 * config/h8300/h8300.md (inverted load with HImode dest): Add
9764 support for H8300SX.
9766 * config/h8300/predicate.md (bit_operand): Allow immediate values that
9767 satisfy 'U' constraint.
9769 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9771 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
9772 * configure: Regenerate.
9773 * config.in: Regenerate.
9774 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
9777 2010-04-16 Richard Guenther <rguenther@suse.de>
9779 * tree.h (struct tree_decl_minimal): Move pt_uid ...
9780 (struct tree_decl_common): ... here.
9781 (DECL_PT_UID): Adjust.
9782 (SET_DECL_PT_UID): Likewise.
9783 (DECL_PT_UID_SET_P): Likewise.
9785 2010-04-16 Richard Guenther <rguenther@suse.de>
9787 PR tree-optimization/43572
9788 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
9789 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
9790 * tree-flow.h (is_call_clobbered): Remove.
9791 * tree-flow-inline.h (is_call_clobbered): Likewise.
9792 * tree-dfa.c (dump_variable): Do not dump call clobber state.
9793 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
9794 (execute_return_slot_opt): Adjust.
9795 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
9796 check for call clobbered vars here.
9797 (find_tail_calls): Move tailcall verification to the
9800 2010-04-16 Diego Novillo <dnovillo@google.com>
9802 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
9804 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9807 * config/arm/arm.md (cbranchqi4): New pattern.
9808 * config/arm/predicates.md (const0_operand,
9809 cbranchqi4_comparison_operator): New predicates.
9811 2010-04-16 Richard Guenther <rguenther@suse.de>
9813 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
9814 (dump_gimple_stmt): Likewise.
9816 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
9818 * recog.h (struct recog_data): New field is_operator.
9819 (struct insn_operand_data): New field is_operator.
9820 * recog.c (extract_insn): Set recog_data.is_operator.
9821 * genoutput.c (output_operand_data): Emit code to set the
9823 * reload.c (find_reloads): Use it rather than testing for an
9824 empty constraint string.
9827 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
9828 If the previous insn is a cbranchsi4_insn with the same arguments,
9829 omit the compare instruction.
9831 * config/arm/arm.md (addsi3_cbranch): If destination is a high
9832 register, inputs must be low registers and we need a low register
9833 scratch. Handle alternative 2 like alternative 3.
9835 2010-04-16 Jakub Jelinek <jakub@redhat.com>
9837 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
9838 don't call get_addr on both. If one expression is a VALUE and
9839 the other a REG, check VALUE's locs if the REG isn't among them.
9841 2010-04-16 Christian Bruel <christian.bruel@st.com>
9843 * config/sh/sh.h (sh_frame_pointer_required): New function.
9844 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
9845 (flag_omit_frame_pointer) Set.
9846 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
9847 (rounded_frame_size): Adjust size with outgoing_args_size.
9848 (sh_set_return_address): Must return from stack pointer.
9849 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
9850 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
9851 (ACCUMULATE_OUTGOING_ARGS): Define.
9852 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
9853 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
9855 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9858 * config/sh/sh.c (sh_legitimize_reload_address): Use
9859 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
9860 Remove a unneeded check for offset_base.
9862 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
9864 * configure: Regenerated.
9866 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9868 * config/s390/s390.c (s390_call_save_register_used): Switch back
9869 to HARD_REGNO_NREGS.
9871 2010-04-15 Richard Guenther <rguenther@suse.de>
9873 * alias.c (alias_set_subset_of): Handle alias-set zero
9876 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
9877 Julian Brown <julian@codesourcery.com>
9879 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
9880 alternatives according to use of high and low regs.
9881 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9882 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
9883 optimizing for size on Thumb-2.
9885 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
9887 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
9889 2010-04-15 Richard Guenther <rguenther@suse.de>
9891 * tree-ssa-structalias.c (struct variable_info): Add
9893 (new_var_info): Initialize it.
9894 (dump_constraints): Support printing last added constraints.
9895 (debug_constraints): Adjust.
9896 (dump_constraint_graph): Likewise.
9897 (make_heapvar_for): Check for NULL cfun.
9898 (get_function_part_constraint): New function.
9899 (get_fi_for_callee): Likewise.
9900 (find_func_aliases): Properly implement IPA PTA constraints.
9901 (process_ipa_clobber): New function.
9902 (find_func_clobbers): Likewise.
9903 (insert_into_field_list_sorted): Remove.
9904 (create_function_info_for): Properly allocate vars for IPA mode.
9905 Do not use insert_into_field_list_sorted.
9906 (create_variable_info_for): Properly generate constraints for
9907 global vars in IPA mode.
9908 (dump_solution_for_var): Always dump the solution.
9909 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
9910 (find_what_var_points_to): Adjust.
9911 (pt_solution_set): Change.
9912 (pt_solution_ior_into): New function.
9913 (pt_solution_empty_p): Export.
9914 (pt_solution_includes_global): Adjust.
9915 (pt_solution_includes_1): Likewise.
9916 (pt_solutions_intersect_1): Likewise.
9917 (dump_sa_points_to_info): Check some invariants.
9918 (solve_constraints): Move constraint dumping ...
9919 (compute_points_to_sets): ... here.
9920 (ipa_pta_execute): ... and here.
9921 (compute_may_aliases): Do not re-compute points-to info
9922 locally if IPA info is available.
9923 (ipa_escaped_pt): New global var.
9924 (ipa_pta_execute): Properly implement IPA PTA.
9925 * tree-into-ssa.c (dump_decl_set): Support dumping
9926 decls not in referenced-vars.
9927 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
9928 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
9929 (dump_points_to_solution): Likewise.
9930 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
9931 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
9932 (remap_gimple_stmt): Reset call clobber/use information if necessary.
9933 (copy_decl_to_var): Copy DECL_PT_UID.
9934 (copy_result_decl_to_var): Likewise.
9935 * tree.c (make_node_stat): Initialize DECL_PT_UID.
9936 (copy_node_stat): Copy it.
9937 * tree.h (DECL_PT_UID): New macro.
9938 (SET_DECL_PT_UID): Likewise.
9939 (DECL_PT_UID_SET_P): Likewise.
9940 (struct tree_decl_minimal): Add pt_uid member.
9941 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
9942 (pt_solution_empty_p): Declare.
9943 (pt_solution_set): Adjust.
9944 (ipa_escaped_pt): Declare.
9945 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
9946 * gimple-pretty-print.c (pp_points_to_solution): New function.
9947 (dump_gimple_call): Dump call clobber/use information.
9948 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
9949 * tree-pass.h (TDF_ALIAS): New dump option.
9950 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
9951 * doc/invoke.texi (-fipa-pta): Update documentation.
9953 2010-04-15 Richard Guenther <rguenther@suse.de>
9955 * Makefile.in (OBJS-common): Add gimple-fold.o.
9956 (gimple-fold.o): New rule.
9957 * tree.h (maybe_fold_offset_to_reference,
9958 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
9960 * gimple.h: ... here.
9961 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
9962 may_propagate_address_into_dereference): Move prototypes ...
9963 * gimple.h: ... here.
9964 * tree-ssa-ccp.c (get_symbol_constant_value,
9965 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
9966 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
9967 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
9968 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
9969 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
9970 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
9971 gimplify_and_update_call_from_tree): Move ...
9972 * gimple-fold.c: ... here. New file.
9973 (ccp_fold_builtin): Rename to ...
9974 (gimple_fold_builtin): ... this.
9975 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
9977 2010-04-15 Richard Guenther <rguenther@suse.de>
9979 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
9980 fit_double_type, force_fit_type_double, add_double_with_sign,
9981 neg_double, mul_double_with_sign, lshift_double, rshift_double,
9982 lrotate_double, rrotate_double, div_and_round_double): Move ...
9983 * double-int.c: ... here.
9984 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
9985 add_double, neg_double, mul_double_with_sign, mul_double,
9986 lshift_double, rshift_double, lrotate_double, rrotate_double,
9987 div_and_round_double): Move prototypes ...
9988 * double-int.h: ... here.
9990 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
9993 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
9994 matching constraints to ensure inputs match the output.
9996 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
9999 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10000 in an input-only operand.
10002 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10004 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10005 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10006 (double_int_negative_p): Convert to static inline function.
10007 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10008 (double_int_negative_p): Remove.
10009 * tree.h (lshift_double, rshift_double):
10010 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10011 * fold-const.c (fold_convert_const_int_from_real,
10012 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10013 (lshift_double): Change type of arith argument to bool.
10014 (rshift_double): Change type of arith argument to bool. Correct
10016 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10018 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10021 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10022 at the start and end of the then/else blocks, and omit them from the
10024 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10025 argument; all callers changed. Pass zero to old_insns_match_p instead.
10026 (flow_find_head_matching_sequence): New function.
10027 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10028 * basic-block.h (flow_find_cross_jump,
10029 flow_find_head_matching_sequence): Declare functions.
10031 2010-04-14 Jason Merrill <jason@redhat.com>
10034 * c-common.c (attribute_takes_identifier_p): New fn.
10035 * c-common.h: Declare it.
10037 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10039 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10040 splitter condition.
10041 (*udivmod<mode>4): Ditto.
10043 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10045 * config/i386/i386.md (maxmin_int): Rename code attribute from
10046 maxminiprefix and update all users.
10047 (maxmin_float): Ditto from maxminfprefix.
10048 (logic): Ditto from logicprefix.
10049 (absneg_mnemonic): Ditto from absnegprefix.
10050 * config/i386/mmx.md: Update all users of maxminiprefix,
10051 maxminfprefix and logicprefix for rename.
10052 * config/i386/sse.md: Ditto.
10053 * config/i386/sync.md (sync_<code><mode>): Update for
10054 logicprefix rename.
10056 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10059 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10060 warnings converted to errors.
10062 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10064 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10065 used insn_type variable.
10066 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10067 to avoid set-but-not-used warning.
10069 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10071 * df-core.c (df_ref_debug): Change format string placeholder
10073 * dwarf2asm.c (dw2_asm_output_data_raw,
10074 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10075 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10076 * dwarf2out.c (output_cfi, output_cfi_directive,
10077 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10078 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10080 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10081 * print-rtl.c (print_rtx): Ditto.
10083 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10085 PR middle-end/42694
10086 * builtins.c (expand_builtin_pow_root): New function to expand pow
10087 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10088 series of sqrt and cbrt calls under -ffast-math.
10089 (expand_builtin_pow): Call it.
10091 2010-04-14 Michael Matz <matz@suse.de>
10093 PR tree-optimization/42963
10094 * tree-cfg.c (touched_switch_bbs): New static variable.
10095 (group_case_labels_stmt): New function broken out from ...
10096 (group_case_labels): ... here, use the above.
10097 (start_recording_case_labels): Allocate touched_switch_bbs.
10098 (end_recording_case_labels): Deallocate it, call
10099 group_case_labels_stmt.
10100 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10102 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10104 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10105 from insn template.
10107 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10109 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10111 2010-04-13 Jan Hubicka <jh@suse.cz>
10113 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10114 of optimized out static functions.
10115 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10116 cost computation. Also sanity check for overflows.
10117 (update_caller_keys): Update cgraph_edge_badness call; properly
10118 update fibheap and sanity check that it is up to date.
10119 (add_new_edges_to_heap): Update cgraph_edge_badness.
10120 (cgraph_decide_inlining_of_small_function): Likewise;
10121 add sanity checking that badness in heap is up to date;
10122 improve dumping of reason; Update badness of calls to the
10123 offline copy of function currently inlined; dump badness
10124 of functions not inlined because of unit growth limits.
10126 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10128 PR middle-end/32628
10129 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10130 because of sign-extension change when converting to sizetype here...
10131 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10133 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10134 the folding to constants. Remove redundant final conversion.
10135 (fold_binary) <associate>: Do not associate if the re-association of
10136 constants alone overflows.
10137 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10138 to the end of the list.
10139 (multiple_of_p) <COND_EXPR>: New case.
10141 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10143 * opt-functions.awk (opt_sanitized_name): New.
10145 * optc-gen.awk: Use it
10146 * opth-gen.awk: Use it.
10148 2010-04-13 Martin Jambor <mjambor@suse.cz>
10150 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10151 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10152 children. Call replace_uses_with_default_def_ssa_name to handle
10155 2010-04-13 Michael Matz <matz@suse.de>
10157 PR middle-end/43730
10158 * builtins.c (expand_builtin_interclass_mathfn): Also create
10159 a register if the predicate doesn't match.
10161 2010-04-13 Diego Novillo <dnovillo@google.com>
10163 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10164 * c-pch.c: Include timevar.h.
10165 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10166 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10167 * ggc-common.c: Include timevar.h.
10168 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10169 * timevar.def (TV_PCH_SAVE): Define.
10170 (TV_PCH_CPP_SAVE): Define.
10171 (TV_PCH_PTR_REALLOC): Define.
10172 (TV_PCH_PTR_SORT): Define.
10173 (TV_PCH_RESTORE): Define.
10174 (TV_PCH_CPP_RESTORE): Define.
10176 2010-04-13 Michael Matz <matz@suse.de>
10178 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10180 (can_reassociate_p): New function.
10181 (break_up_subtract_bb, reassociate_bb): Use it.
10183 2010-04-13 Richard Guenther <rguenther@suse.de>
10186 * builtins.c (c_readstr): Fix assert.
10188 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10190 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10191 when generating cltd insn.
10193 (*ashl<mode>3_1): Remove special handling for register operand 2.
10194 (*ashlsi3_1_zext): Ditto.
10195 (*ashlhi3_1): Ditto.
10196 (*ashlhi3_1_lea): Ditto.
10197 (*ashlqi3_1): Ditto.
10198 (*ashlqi3_1_lea): Ditto.
10199 (*<shiftrt_insn><mode>3_1): Ditto.
10200 (*<shiftrt_insn>si3_1_zext): Ditto.
10201 (*<shiftrt_insn>qi3_1_slp): Ditto.
10202 (*<rotate_insn><mode>3_1): Ditto.
10203 (*<rotate_insn>si3_1_zext): Ditto.
10204 (*<rotate_insn>qi3_1_slp): Ditto.
10206 2010-04-13 Richard Guenther <rguenther@suse.de>
10208 * tree-ssa-structalias.c (callused_id): Remove.
10209 (call_stmt_vars): New.
10210 (get_call_vi): Likewise.
10211 (lookup_call_use_vi): Likewise.
10212 (lookup_call_clobber_vi): Likewise.
10213 (get_call_use_vi): Likewise.
10214 (get_call_clobber_vi): Likewise.
10215 (make_transitive_closure_constraints): Likewise.
10216 (handle_const_call): Adjust to do per-call call-used handling.
10217 (handle_pure_call): Likewise.
10218 (find_what_var_points_to): Remove general callused handling.
10219 (init_base_vars): Likewise.
10220 (init_alias_vars): Initialize call_stmt_vars.
10221 (compute_points_to_sets): Process call-used and call-clobbered
10222 vars for call statements.
10223 (delete_points_to_sets): Free call_stmt_vars.
10225 2010-04-13 Richard Guenther <rguenther@suse.de>
10227 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10228 Only add RW dependence for dependence distance zero.
10229 Adjust maximal vectorization factor according to dependences.
10230 Move alignment handling ...
10231 (vect_find_same_alignment_drs): ... here. New function.
10232 (vect_analyze_data_ref_dependences): Adjust.
10233 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10234 (vect_analyze_data_refs): Adjust minimal vectorization factor
10235 according to data references.
10236 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10237 dependences before determining the vectorization factor.
10238 Analyze alignment after determining the vectorization factor.
10239 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10240 dependences before alignment.
10241 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10243 (vect_analyze_data_refs): Likewise.
10244 (MAX_VECTORIZATION_FACTOR): New define.
10246 2010-04-13 Duncan Sands <baldrick@free.fr>
10248 * except.h (lang_eh_type_covers): Remove.
10249 * except.c (lang_eh_type_covers): Likewise.
10251 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10252 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10254 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10255 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10256 UNITS_PER_LONG where it is ABI relevant.
10257 (s390_return_addr_rtx): Likewise.
10258 (s390_back_chain_rtx): Likewise.
10259 (s390_frame_area): Likewise.
10260 (s390_frame_info): Likewise.
10261 (s390_initial_elimination_offset): Likewise.
10262 (save_gprs): Likewise.
10263 (s390_emit_prologue): Likewise.
10264 (s390_emit_epilogue): Likewise.
10265 (s390_function_arg_advance): Likewise.
10266 (s390_function_arg): Likewise.
10267 (s390_va_start): Likewise.
10268 (s390_gimplify_va_arg): Likewise.
10269 (s390_function_profiler): Likewise.
10270 (s390_optimize_prologue): Likewise.
10271 (s390_rtx_costs): Likewise.
10272 (s390_secondary_reload): Likewise.
10273 (s390_promote_function_mode): Likewise.
10274 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10275 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10276 registers available.
10277 (s390_unwind_word_mode): New function.
10278 (s390_function_value): Split 64 bit values into register pair if
10279 used as return value.
10280 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10281 function call parameters. Handle parallels.
10282 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10283 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10284 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10285 (s390_expand_setmem): Remove unused variable src_addr.
10286 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10287 deal with 64 bit registers.
10288 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10289 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10290 (UNITS_PER_LONG): New macro.
10291 * libjava/include/s390-signal.h: Define extended ucontext
10292 structure containing the upper halfs of the 64 bit registers.
10294 2010-04-13 Simon Baldwin <simonb@google.com>
10296 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10298 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10300 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10301 rvalue on the RHS if the LHS is of a non-renamable type.
10302 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10304 2010-04-13 Matthias Klose <doko@ubuntu.com>
10306 * gcc.c (cc1_options): Handle -iplugindir before processing
10307 the cc1 spec. Only add -iplugindir once.
10308 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10310 * common.opt (iplugindir): Remove `Separate' property, initialize.
10311 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10313 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10314 (distclean): Remove plugin dir.
10315 * doc/invoke.texi: Document -iplugindir.
10317 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10319 * doc/plugins.texi (Loading Plugins): Document short
10320 -fplugin=foo option.
10321 (Plugin API): Mention default_plugin_dir_name function.
10323 * gcc.c (find_file_spec_function): Add new declaration.
10324 (static_spec_func): Use it for "find-file".
10325 (find_file_spec_function): Add new function.
10326 (cc1_options): Add -iplugindir option if -fplugin* options found.
10328 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10330 * plugin.c (add_new_plugin): Updated comment, and handle short
10332 (default_plugin_dir_name): Added new function.
10334 * common.opt (iplugindir): New option to set the plugin directory.
10336 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10338 * config/i386/i386.md (any_rotate): New code iterator.
10339 (rotate_insn): New code attribute.
10341 (SWIM124): New mode iterator.
10342 (<rotate_insn>ti3): New expander.
10343 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10344 any_rotate code iterator.
10345 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10346 using any_rotate code iterator and SWIM124 mode iterator.
10347 (ix86_rotlti3): New insn_and_split pattern.
10348 (ix86_rotrti3): Ditto.
10349 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10350 ix86_rotl{di,ti}3 patterns.
10351 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10352 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10353 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10354 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10355 code iterator and SWI mode iterator.
10356 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10357 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10359 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10360 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10361 (bswap rotatert splitter): Add splitter.
10362 (bswap splitter): Macroize splitter using any_rotate code iterator.
10363 Add insn predicate to split only for TARGET_USE_XCHGB or when
10364 optimizing function for size.
10366 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10368 * config/pa/pa.c (emit_move_sequence): Remove use of
10369 deleted variable flag_argument_noalias.
10371 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10373 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10375 Add to unsupported targets list.
10376 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10377 sparc*-sun-solaris2.[567]* from target lists.
10378 * configure: Regenerate.
10379 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10381 Remove Solaris 7 patch references.
10382 (Specific, sparc-sun-solaris2.7): Removed.
10383 (sparc-sun-solaris2*): Update Solaris 7 example.
10384 (sparc64-*-solaris2*): Likewise.
10386 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10388 * config.build (alpha*-dec-osf4*): Remove.
10389 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10390 of obsolete configurations.
10391 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10393 * config/alpha/t-osf4: Renamed to ...
10394 * config/alpha/t-osf5: ... this.
10395 * config/alpha/osf.h: Renamed to ...
10396 * config/alpha/osf5.h: ... this.
10397 Merged old osf5.h contents.
10399 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10400 (EXTRA_SPECS): Removed.
10401 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10402 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10405 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10407 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10409 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10412 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10413 __thiscall convention.
10415 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10417 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10419 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10421 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10423 * function.c (assign_parms_initialize_all): Add unused attribute
10426 2010-04-12 Richard Guenther <rguenther@suse.de>
10428 * gsstruct.def (GSS_CALL): New.
10429 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10430 * gimple.h: Include tree-ssa-alias.h.
10431 (struct gimple_statement_call): New.
10432 (union gimple_statement_struct_d): Add gimple_call member.
10433 (gimple_call_reset_alias_info): Declare.
10434 (gimple_call_use_set): New function.
10435 (gimple_call_clobber_set): Likewise.
10436 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
10437 * gimple.c (gimple_call_reset_alias_info): New function.
10438 (gimple_build_call_1): Call it.
10439 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10440 * tree-inline.c (remap_gimple_stmt): Likewise.
10441 (expand_call_inline): Remove callused handling.
10442 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
10443 * tree-dfa.c (dump_variable): Likewise.
10444 * tree-parloops.c (parallelize_loops): Likewise.
10445 * tree-ssa.c (init_tree_ssa): Likewise.
10446 (delete_tree_ssa): Likewise.
10447 * tree-flow-inline.h (is_call_used): Remove.
10448 * tree-flow.h (struct gimple_df): Remove callused member.
10449 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
10450 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
10451 (ref_maybe_used_by_call_p_1): Simplify.
10452 (call_may_clobber_ref_p_1): Likewise.
10453 * tree-ssa-structalias.c (compute_points_to_sets): Set
10454 the call stmt used and clobbered sets.
10455 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
10456 (find_tail_calls): Verify the tail call.
10458 2010-04-12 Richard Guenther <rguenther@suse.de>
10460 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
10461 single-iteration always-inline inlining.
10462 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
10463 (cgraph_decide_inlining): Do not handle always-inline specially.
10464 (try_inline): Remove always-inline cycle detection special case.
10465 Do not recurse on always-inlines.
10466 (cgraph_early_inlining): Do not iterate if not optimizing.
10467 (cgraph_gate_early_inlining): remove.
10468 (pass_early_inline): Run unconditionally.
10469 (gate_cgraph_decide_inlining): New function.
10470 (pass_ipa_inline): Use it. Do not run the IPA inliner if
10471 not inlining or optimizing.
10472 (cgraph_decide_inlining_of_small_functions): Also consider
10473 always-inline functions.
10474 (cgraph_default_inline_p): Return true for nodes which should
10475 disregard inline limits.
10476 (estimate_function_body_sizes): Assume zero size and time for
10477 nodes which are marked as disregarding inline limits.
10478 (cgraph_decide_recursive_inlining): Do not perform recursive
10479 inlining on always-inline nodes.
10481 2010-04-12 Jakub Jelinek <jakub@redhat.com>
10484 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
10485 for exprs satisfying handled_component_p.
10487 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
10489 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
10490 non-constant aggregate elements.
10492 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
10493 is a real initialization.
10495 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
10498 * c-decl.c (start_function): Move forward check for nested function.
10500 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10502 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
10503 * config/sh/sh.c: Include reload.h.
10504 (sh_legitimize_reload_address): New.
10505 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
10506 sh_legitimize_reload_address.
10508 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10510 * config/sh/sh.md (*movqi_pop): New insn pattern.
10511 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
10513 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10515 * config/i386/i386.md (any_shiftrt): New code iterator.
10516 (shiftrt_insn): New code attribute.
10518 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
10519 using any_shiftrt code iterator.
10520 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
10521 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
10522 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
10523 pattern from corresponding peephole2 patterns.
10524 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
10525 using any_shiftrt code iterator.
10526 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
10527 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
10528 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
10529 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
10530 *{ashr,lshr}<mode>3_cmp_zext.
10531 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
10533 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10535 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
10537 (*lshr<mode>3_cconly): Ditto.
10539 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
10541 * config/i386/i386.md (lshr<mode>3): Macroize expander from
10542 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10543 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10544 pattern from *lshr{di,ti}3_1 and corresponding splitters using
10546 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10547 from corresponding peephole2 patterns.
10548 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
10549 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
10550 and *lshrdi3_1_rex64 using SWI mode iterator.
10551 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
10552 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
10553 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
10554 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
10555 and *lshrdi3_cmp_rex64 using SWI mode iterator.
10556 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
10557 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
10558 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
10559 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
10562 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
10564 * config/i386/i386.md (ashr<mode>3): Macroize expander from
10565 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
10566 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
10567 pattern from *ashr{di,ti}3_1 and corresponding splitters using
10569 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
10570 from corresponding peephole2 patterns.
10571 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
10572 (ashrsi3_cvt): Rename from ashrsi3_31.
10573 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
10574 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
10575 and x86_64_shift_adj_3 using SWI48 mode iterator.
10576 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
10577 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
10578 and *ashrdi3_1_rex64 using SWI mode iterator.
10579 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
10580 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
10581 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
10582 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
10583 and *ashrdi3_cmp_rex64 using SWI mode iterator.
10584 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
10585 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
10586 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
10587 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
10589 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
10590 * config/i386/i386.c (ix86_split_ashr): Update for renamed
10591 x86_shift<mode>_adj_3 expanders.
10593 2010-04-10 Wei Guozhi <carrot@google.com>
10596 * config/arm/arm.c (arm_pic_static_addr): New function.
10597 (legitimize_pic_address): Call arm_pic_static_addr when it detects
10599 (arm_output_addr_const_extra): Output expression for new pattern.
10600 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
10602 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
10604 * ira-costs.c (record_reg_classes): Ignore alternatives that are
10607 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
10608 * web.c: Include "insn-config.h" and "recog.h".
10609 (union_match_dups): New function.
10610 (web_main): Call it.
10611 (union_defs): Don't try to recognize match_dups.
10613 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
10614 if doing so would replace the entire pattern.
10616 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10620 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
10621 and splitter pattern. Change splitter operand 1 predicate to
10624 2010-04-09 Martin Jambor <mjambor@suse.cz>
10626 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
10627 lattices are addresses of CONST_DECLs with the same initial value.
10628 (ipcp_print_all_lattices): Print values of CONST_DECLs.
10629 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
10631 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
10632 Bernd Schmidt <bernds@codesourcery.com>
10634 * loop-invariant.c (replace_uses): New static function.
10635 (move_invariant_reg): Use it to ensure we can replace the uses.
10637 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
10639 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
10641 (picochip_override_options): Enable section anchors only above -O1.
10642 (picochip_reorg): Fixed a couple of build warnings.
10644 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10646 * configure.ac (plugin -rdynamic test): Log result.
10647 * configure: Regenerate.
10648 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
10649 (RDYNAMIC_SPEC): Define.
10650 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
10652 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10654 * configure.ac: Determine Sun ld version numbers.
10655 (comdat_group): Restrict GNU ld version checks to gld.
10656 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
10657 (enable_comdat): Support --enable-comdat.
10658 * configure: Regenerate.
10659 * doc/install.texi (Configuration): Document --enable-comdat.
10661 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10663 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
10664 * config/sol2-gld.h: ... here.
10665 * config.gcc (sparc*-*-solaris2*): Reflect this.
10666 (i[34567]86-*-solaris2*): Use it.
10668 2010-04-09 Steve Ellcey <sje@cup.hp.com>
10670 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
10672 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
10674 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10677 * diagnostic.c (diagnostic_initialize): Initialize
10678 some_warnings_are_errors.
10679 (diagnostic_finish): New.
10680 (diagnostic_action_after_output): Call it before exiting.
10681 (diagnostic_report_diagnostic): Do not print message here. Set
10682 some_warnings_are_errors.
10683 * diagnostic.h (diagnostic_context): Delete
10684 issue_warnings_are_errors_message. Add some_warnings_are_errors.
10685 (diagnostic_finish): Declare.
10686 * toplev.c (toplev_main): Call it before exit.
10688 2010-04-09 Jason Merrill <jason@redhat.com>
10691 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
10692 for incomplete type.
10695 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
10696 based on a warning flag.
10698 2010-04-09 Richard Guenther <rguenther@suse.de>
10700 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
10702 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
10705 * varasm.c (default_assemble_visibility): Wrap vars that are
10706 set, but unused, by targets without GAS.
10707 * config/rs6000/rs6000.c (paired_emit_vector_compare):
10708 Remove set, but unused, vars.
10709 (rs6000_legitimize_tls_address): Likewise.
10710 (altivec_expand_dst_builtin): Likewise.
10711 * config/darwin.c (machopic_classify_symbol): Likewise.
10712 (machopic_indirection_name): Likewise.
10714 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
10716 * config/i386/i386.md (DWI): New mode iterator.
10717 (S): New mode attribute.
10718 (shift_operand): Ditto.
10719 (shift_immediate_operand): Ditto.
10720 (ashl_input_operand): Ditto.
10721 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
10722 using SDWIM mode iterator.
10723 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
10724 pattern from *ashl{di,ti}3_1 and corresponding splitters using
10726 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
10727 from corresponding peephole2 patterns.
10728 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
10729 and x86_64_shift_adj_1 using SWI48 mode iterator.
10730 (x86_shift<mode>_adj_2): Ditto.
10731 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
10732 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
10733 using SWI48 mode iterator.
10734 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
10735 *ashldi3_cmp_rex64 using SWI mode iterator.
10736 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
10737 *ashldi3_cconly_rex64 using SWI mode iterator.
10738 * config/i386/i386.c (ix86_split_ashl): Update for renamed
10739 x86_shift<mode>_adj_{1,2}.
10740 (ix86_split_ashr): Ditto.
10741 (ix86_split_lshr): Ditto.
10743 2010-04-09 Richard Guenther <rguenther@suse.de>
10745 * target.h (builtin_conversion): Pass in input and output types.
10746 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
10747 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
10748 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
10749 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
10751 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
10753 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
10755 2010-04-09 Richard Guenther <rguenther@suse.de>
10758 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
10760 2010-04-09 Richard Guenther <rguenther@suse.de>
10762 * tree-vectorizer.h (struct _stmt_vec_info): Document
10763 that vectype is the type of the LHS.
10764 (supportable_widening_operation, supportable_narrowing_operation):
10765 Get both input and output vector types as arguments.
10766 (vect_is_simple_use_1): Declare.
10767 (get_same_sized_vectype): Likewise.
10768 * tree-vect-loop.c (vect_determine_vectorization_factor):
10769 Set STMT_VINFO_VECTYPE to the vector type of the def.
10770 (vectorizable_reduction): Adjust.
10771 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
10772 Adjust. Specify the output vector type.
10773 (vect_pattern_recog_1): Adjust.
10774 * tree-vect-stmts.c (get_same_sized_vectype): New function.
10775 (vectorizable_call): Adjust.
10776 (vectorizable_conversion): Likewise.
10777 (vectorizable_operation): Likewise.
10778 (vectorizable_type_demotion): Likewise.
10779 (vectorizable_type_promotion): Likewise.
10780 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
10782 (vect_is_simple_use_1): New function.
10783 (supportable_widening_operation): Get both input and output
10785 (supportable_narrowing_operation): Likewise.
10786 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
10788 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
10790 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
10791 __thiscall and _thiscall as predefined macros.
10792 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
10793 thiscall attribute handling.
10794 (ix86_comp_type_attributes): Likewise.
10795 (ix86_function_regparm): Likewise.
10796 (ix86_return_pops_args): Likewise.
10797 (init_cumulative_args): Likewise.
10798 (find_drap_reg): Likewise.
10799 (ix86_static_chain): Likewise.
10800 (x86_this_parameter): Likewise.
10801 (x86_output_mi_thunk): Likewise.
10802 (ix86_attribute_table): Add description for thiscall attribute.
10803 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
10804 * doc/extend.texi: Add documentation for thiscall.
10806 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10809 * c.opt (Wint-to-pointer-cast): Available in C++.
10810 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
10812 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
10814 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
10815 * calls.c (expand_call): Pass the function type to aggregate_value_p.
10816 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
10817 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
10818 function type instead. Reorder and simplify checks.
10820 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
10822 2010-04-08 Jing Yu <jingyu@google.com>
10823 Zdenek Dvorak <ook@ucw.cz>
10825 PR tree-optimization/42720
10826 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
10827 loop unswitch conditions here from ...
10828 (tree_unswitch_single_loop): ... here.
10830 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10832 * tree-if-conv.c: Fix comments and simplify logic.
10834 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
10836 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
10837 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
10838 (main_tree_if_conversion): Update call to tree_if_conversion.
10840 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
10843 * doc/invoke.texi (-b,-V): Delete.
10844 * doc/tm.texi: Do not mention -b.
10845 * gcc.c (display_help): Delete -b and -V.
10846 (process_command): Delete -b and -V.
10847 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
10849 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
10850 Wolfgang Gellerich <gellerich@de.ibm.com>
10852 Implement target hook for loop unrolling
10853 * target.h (loop_unroll_adjust): Add a new target hook function.
10854 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
10855 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
10856 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
10857 (s390_loop_unroll_adjust): Implement the new target hook for s390.
10858 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
10860 (decide_unroll_stupid): Likewise.
10862 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10865 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
10867 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10869 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
10870 (Specific, *-*-solaris2*): Likewise.
10871 Don't prefer Sun as over GNU as.
10873 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
10875 * config/s390/s390.c (override_options): Adjust the z10 defaults
10876 for max-unroll-times, max-completely-peeled-insns
10877 and max-completely-peel-times.
10879 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10881 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
10882 instructions for z10.
10883 (s390_expand_setmem): Likewise.
10884 (s390_expand_cmpmem): Likewise.
10886 2010-04-08 Richard Guenther <rguenther@suse.de>
10888 PR tree-optimization/43679
10889 * tree-ssa-pre.c (eliminate): Only propagate copies.
10891 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10894 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
10895 set but not used variable warning.
10897 2010-04-08 Wei Guozhi <carrot@google.com>
10900 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
10901 (arm_size_rtx_costs): Call the new function when optimized for size.
10903 2010-04-08 Jakub Jelinek <jakub@redhat.com>
10906 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
10907 op0 is not a MEM, just return NULL instead of assertion
10909 (discover_nonconstant_array_refs): Don't walk debug stmts.
10911 2010-04-08 Doug Kwan <dougkwan@google.com>
10913 * configure.ac: Recognize gold and do not use its version number
10914 to test ld features.
10915 * configure: Regenerate.
10917 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
10919 PR middle-end/40815
10920 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
10921 (negate_value): Move code to push elements to broken_up_substracts ...
10922 (eliminate_plus_minus_pair): ... here. Push operands that have no
10923 negative pair to plus_negates.
10924 (repropagate_negates, init_reassoc, fini_reassoc): Update.
10926 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10928 * doc/install.texi (Configuration): Move description of
10929 --enable-lto, --with-libelf*, --enable-gold from Java section to
10932 * doc/generic.texi (Working with declarations)
10933 (Function Properties, C and C++ Trees): Fix typos.
10934 * doc/sourcebuild.texi (Top Level): Likewise.
10936 2010-04-07 Jakub Jelinek <jakub@redhat.com>
10939 * tree.h (DECL_READ_P): Define.
10940 (struct tree_decl_common): Add decl_read_flag.
10941 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
10942 a set but not used warning.
10943 (merge_decls): Merge DECL_READ_P flag.
10944 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
10945 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
10946 * c-common.c (handle_used_attribute, handle_unused_attribute):
10948 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
10950 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
10952 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
10953 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
10954 c_parser_binary_expression, c_parser_cast_expression,
10955 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
10956 Call default_function_array_read_conversion instead of
10957 default_function_array_conversion where needed.
10958 (c_parser_unary_expression, c_parser_conditional_expression,
10959 c_parser_postfix_expression_after_primary, c_parser_initelt):
10960 Likewise. Call mark_exp_read where needed.
10961 (c_parser_statement_after_labels, c_parser_asm_operands,
10962 c_parser_typeof_specifier, c_parser_sizeof_expression,
10963 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
10965 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
10967 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
10968 (warn_unused_but_set_parameter): Default to warn_unused
10970 * doc/invoke.texi: Document -Wunused-but-set-variable and
10971 -Wunused-but-set-parameter.
10973 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
10974 used count variable.
10975 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
10976 when operandN variables aren't used in the body of the expander
10978 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
10979 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
10980 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
10981 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
10982 FOR_EACH_IMM_USE_ON_STMT): Likewise.
10983 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
10984 * tree.c (PROCESS_ARG): Likewise.
10986 2010-04-07 Simon Baldwin <simonb@google.com>
10988 * diagnostic.h (diagnostic_override_option_index): New macro to
10989 set a diagnostic's option_index.
10990 * c-tree.h (c_cpp_error): Add warning reason argument.
10991 * opts.c (_warning_as_error_callback): New.
10992 (register_warning_as_error_callback): Store callback for
10993 warnings enabled via enable_warning_as_error.
10994 (enable_warning_as_error): Call callback, minor code tidy.
10995 * opts.h (register_warning_as_error_callback): Declare.
10996 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
10997 response to -Werror=.
10998 (c_common_init_options): Register warning_as_error_callback in opts.c.
10999 * common.opt: Add -Wno-cpp option.
11000 * c-common.c (struct reason_option_codes_t): Map cpp warning
11001 reason codes to gcc option indexes.
11002 * (c_option_controlling_cpp_error): New function, lookup the gcc
11003 option index for a cpp warning reason code.
11004 * (c_cpp_error): Add warning reason argument, call
11005 c_option_controlling_cpp_error for diagnostic_override_option_index.
11006 * doc/invoke.texi: Document -Wno-cpp.
11008 2010-04-07 Richard Guenther <rguenther@suse.de>
11010 * ipa-reference.c (mark_load): Use get_base_address.
11011 (mark_store): Likewise.
11013 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11014 inserting GIMPLE_NOPs into the IL.
11015 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11016 Explicitly strip handled components and indirect references.
11018 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11019 folding address expressions.
11020 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11021 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11022 operand_equal_p to compare decls.
11023 (ptr_deref_may_alias_decl_p): Likewise.
11024 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11025 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11026 Handle reversed comparison ops.
11027 * tree-sra.c (asm_visit_addr): Use get_base_address.
11028 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11029 * ipa-reference.c (mark_address): Use get_base_address.
11031 2010-04-07 Richard Guenther <rguenther@suse.de>
11033 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11034 Propagate constants everywhere.
11036 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11039 * tree.c (MAX_INT_CACHED_PREC): Define.
11040 (nonstandard_integer_type_cache): New array.
11041 (build_nonstandard_integer_type): Cache results for precision
11042 <= MAX_INT_CACHED_PREC.
11044 2010-04-07 Richard Guenther <rguenther@suse.de>
11046 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11047 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11048 * common.opt: Likewise.
11049 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11050 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11051 (nonoverlapping_memrefs_p): Likewise.
11052 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11053 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11054 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11055 OPT_fargument_noalias_global for backward compatibility.
11057 2010-04-07 Richard Guenther <rguenther@suse.de>
11059 PR tree-optimization/43270
11060 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11061 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11062 * tree-ssa-pre.c (phi_translate_1): Adjust.
11063 (fully_constant_expression): Split out vn_reference handling to ...
11064 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11065 Fold reads from constant strings.
11066 (vn_reference_lookup): Handle fully constant references.
11067 (vn_reference_lookup_pieces): Likewise.
11068 * Makefile.in (expmed.o-warn): Add -Wno-error.
11070 2010-04-07 Martin Jambor <mjambor@suse.cz>
11072 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11074 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11077 * gcc.c: Add -static-libstdc++ to list of recognized options.
11079 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11081 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11083 2010-04-07 Richard Guenther <rguenther@suse.de>
11085 PR middle-end/42617
11086 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11087 bases build simple mem attributes to retain points-to information.
11089 2010-04-07 Richard Guenther <rguenther@suse.de>
11091 PR middle-end/42617
11092 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11093 preserve points-to related information.
11095 2010-04-07 Richard Guenther <rguenther@suse.de>
11097 PR middle-end/42617
11098 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11099 discard plain indirect references.
11100 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11101 * tree.c (tree_nop_conversion): Likewise.
11103 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11106 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11108 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11110 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11111 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11113 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11115 * tree-if-conv.c: Fix indentation and comments.
11117 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11119 * tree-if-conv.c: Sort static functions in topological order.
11121 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11123 * tree-if-conv.c: Fix indentation and comments.
11125 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11127 PR middle-end/43519
11128 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11129 lang_hooks.types.type_for_size instead of
11130 build_nonstandard_integer_type.
11131 When converting an unsigned type to signed, double its precision.
11132 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11133 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11134 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11137 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11139 PR middle-end/43519
11140 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11141 POINTER_PLUS_EXPR for pointer types.
11143 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11145 PR middle-end/43519
11146 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11147 * graphite-clast-to-gimple.c: Include langhooks.h.
11148 (max_signed_precision_type): New.
11149 (max_precision_type): Takes two types as arguments.
11150 (precision_for_value): New.
11151 (precision_for_interval): New.
11152 (gcc_type_for_interval): New.
11153 (gcc_type_for_value): New.
11154 (gcc_type_for_clast_term): New.
11155 (gcc_type_for_clast_red): New.
11156 (gcc_type_for_clast_bin): New.
11157 (gcc_type_for_clast_expr): Split up into several functions.
11158 (gcc_type_for_clast_eq): Rewritten.
11159 (compute_bounds_for_level): New.
11160 (compute_type_for_level_1): New.
11161 (compute_type_for_level): New.
11162 (gcc_type_for_cloog_iv): Removed.
11163 (gcc_type_for_iv_of_clast_loop): Rewritten.
11164 (graphite_create_new_loop): Compute the lower and upper bound types
11165 with gcc_type_for_clast_expr.
11166 (graphite_create_new_loop_guard): Same.
11167 (find_cloog_iv_in_expr): Removed.
11168 (compute_cloog_iv_types_1): Removed.
11169 (compute_cloog_iv_types): Removed.
11170 (gloog): Do not call compute_cloog_iv_types.
11171 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11172 GBB_CLOOG_IV_TYPES.
11173 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11174 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11175 (GBB_CLOOG_IV_TYPES): Removed.
11177 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11179 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11180 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11181 (detect_commutative_reduction): Same.
11183 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11185 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11186 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11188 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11189 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11190 (rewrite_commutative_reductions_out_of_ssa): Same.
11191 * passes.c (execute_function_todo): Call verify_ssa for every pass
11192 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11193 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11194 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11195 with an extra argument.
11196 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11197 verify_ssa only when the extra argument is true.
11198 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11199 with an extra argument.
11200 (tree_transform_and_unroll_loop): Same.
11202 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11204 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11205 for all the passes of the LNO having LOOP_CLOSED_SSA.
11206 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11207 * tree-loop-distribution.c (pass_loop_distribution): Same.
11208 * tree-pass.h (TODO_verify_loops): Removed.
11209 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11211 (pass_tree_unswitch): Same.
11212 (pass_predcom): Same.
11213 (pass_vectorize): Same.
11214 (pass_linear_transform): Same.
11215 (pass_graphite_transforms): Same.
11216 (pass_iv_canon): Same.
11217 (pass_complete_unroll): Same.
11218 (pass_complete_unrolli): Same.
11219 (pass_parallelize_loops): Same.
11220 (pass_loop_prefetch): Same.
11221 (pass_iv_optimize): Same.
11223 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11225 PR middle-end/32824
11226 * passes.c (init_optimization_passes): Move pass_lim before
11227 pass_copy_prop and pass_dce_loop.
11229 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11232 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11233 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11234 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11235 MULTI_* defines for 4 argument vpermil2p* builtins.
11237 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11239 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11240 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11241 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11242 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11243 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11244 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11245 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11246 Use x86_maybe_negate_const_int to output insn mnemonic.
11247 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11248 check from instruction predicate. Update comments.
11249 * config/i386/sync.md (sync_add<mode>): Use
11250 x86_maybe_negate_const_int to output insn mnemonic.
11252 2010-04-06 Jan Hubicka <jh@suse.cz>
11254 PR tree-optimization/42906
11255 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11256 IGNORE_SELF argument. Set visited_control_parents for fully
11258 (find_obviously_necessary_stmts): Update call of
11259 mark_control_dependent_edges_necessary.
11260 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11262 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11264 * config/i386/i386.md: Remove comment about 'e' and 'E'
11267 2010-04-06 Richard Guenther <rguenther@suse.de>
11269 PR tree-optimization/43627
11270 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11271 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11274 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11276 * BASE-VER: Change to 4.6.0.
11279 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11282 2010-04-06 Richard Guenther <rguenther@suse.de>
11284 PR middle-end/43661
11285 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11287 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11289 * doc/invoke.texi (Optimize Options): Document that LTO
11290 won't remove object access purely due to incompatible
11293 2010-04-04 Matthias Klose <doko@ubuntu.com>
11295 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11296 Initialize variable.
11298 2010-04-03 Richard Guenther <rguenther@suse.de>
11300 PR middle-end/42509
11301 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11302 require a non-NULL MEM_OFFSET.
11304 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11306 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11307 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11308 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11309 config/alpha/predicates.md, config/arm/arm.md,
11310 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11311 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11312 config/darwin9.h, config/darwin.c, config/darwin.h,
11313 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11314 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11315 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11316 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11317 config/mips/mips.md, config/mn10300/mn10300.c,
11318 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11319 config/rs6000/aix.h, config/rs6000/dfp.md,
11320 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11321 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11322 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11323 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11324 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11325 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11326 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11327 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11328 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11329 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11330 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11331 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11332 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11333 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11334 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11335 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11336 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11337 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11338 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11339 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11340 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11341 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11342 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11343 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11344 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11345 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11346 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11347 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11348 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11349 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11350 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11351 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11352 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11353 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11354 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11355 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11357 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11360 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11361 * aclocal.m4: Regenerate.
11363 2010-04-02 Richard Guenther <rguenther@suse.de>
11365 PR tree-optimization/43629
11366 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11367 if we have seen a constant value.
11369 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11371 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11373 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11376 * arm.c (legitimize_tls_address): Adjust call to
11377 gen_tls_load_dot_plus_four.
11378 (arm_note_pic_base): New function.
11379 (arm_cannot_copy_insn_p): Use it.
11380 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11383 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11388 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11390 * Makefile.in ($(out_object_file)): Depend on
11391 gt-$(basename $(notdir $(out_file))).h.
11393 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11395 * config.gcc (lm32-*-rtems*): Add t-lm32.
11397 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11399 * config.gcc: Add lm32-*-rtems*.
11400 * config/lm32/rtems.h: New file.
11402 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11405 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11407 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11409 * dwarf2out.c (output_compilation_unit_header): For
11410 -gdwarf-4 use version 4 instead of version 3.
11411 (output_line_info): For version 4 and above emit additional
11412 maximum ops per insn header field.
11413 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11415 * dwarf2out.c (is_c_family, is_java): Remove.
11416 (lower_bound_default): New function.
11417 (add_bound_info, gen_descr_array_type_die): Use it.
11419 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11422 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11423 re-declaration when it happens in a function.
11425 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11427 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11428 (cgraph_remove_function_insertion_hook): Same.
11429 (cgraph_call_function_insertion_hooks): Same.
11431 2010-04-01 Richard Guenther <rguenther@suse.de>
11433 PR middle-end/43614
11434 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
11435 and TREE_THIS_VOLATILE.
11436 (copy_ref_info): Likewise.
11437 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
11438 * tree.c (build6_stat): Ignore side-effects of all but arg5
11439 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
11442 2010-04-01 Richard Guenther <rguenther@suse.de>
11444 PR tree-optimization/43607
11445 * ipa-type-escape.c (check_call): Do not access non-existing
11448 2010-04-01 Richard Guenther <rguenther@suse.de>
11450 PR middle-end/43602
11452 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11453 Jack Howarth <howarth@bromo.med.uc.edu>
11455 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11458 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11460 * doc/install.texi (Prerequisites): Document libelf usability on
11461 IRIX 5/6 and Solaris 2.
11462 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
11463 Update GNU as, GNU ld requirements.
11464 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
11465 Document Sun Studio compiler download.
11466 Update and simplify as, ld recommendations.
11467 (Specific, *-*-solaris2.7): Note obsoletion, removal.
11469 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11471 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
11472 with_tune_32 to pentium4.
11474 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
11476 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
11478 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11480 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
11481 obsoletion, removal.
11483 Document GNU as requirement.
11484 Update configure requirements.
11485 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
11486 Recomment IRIX 6.5.18+.
11487 Document IDF/IDL requirement.
11488 Document GNU as requirement.
11489 Document GNU ld bootstrap failure.
11490 Remove freeware.sgi.com reference.
11492 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11494 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
11495 UNIX V4.0, V5.0 obsoletion, removal.
11496 Remove --with-gc=simple reference.
11497 Update VM requirements during bootstrap.
11498 Remove -oldas bootstrap description.
11499 Update binutils reference.
11500 Remove comparison failure note.
11502 2010-03-31 Richard Guenther <rguenther@suse.de>
11503 Zdenek Dvorak <ook@ucw.cz>
11504 Sebastian Pop <sebastian.pop@amd.com>
11506 PR middle-end/43464
11507 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
11508 with multiple arguments.
11509 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
11511 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11513 * graphite-dependences.c (print_pddr): Call print_pdr with an
11515 * graphite-poly.c (debug_pdr): Add an extra argument for the
11518 (print_pbb_domain): Same.
11520 (print_scop_context): Same.
11521 (print_scop): Same.
11522 (print_cloog): Same.
11523 (debug_pbb_domain): Same.
11525 (print_pdrs): Same.
11526 (debug_pdrs): Same.
11527 (debug_scop_context): Same.
11528 (debug_scop): Same.
11529 (debug_cloog): Same.
11530 (print_scop_params): Same.
11531 (debug_scop_params): Same.
11532 (print_iteration_domain): Same.
11533 (print_iteration_domains): Same.
11534 (debug_iteration_domain): Same.
11535 (debug_iteration_domains): Same.
11536 (print_scattering_function): Same.
11537 (print_scattering_functions): Same.
11538 (debug_scattering_function): Same.
11539 (debug_scattering_functions): Same.
11540 * graphite-poly.h (debug_pdr): Update declaration.
11542 (print_pbb_domain): Same.
11544 (print_scop_context): Same.
11545 (print_scop): Same.
11546 (print_cloog): Same.
11547 (debug_pbb_domain): Same.
11549 (print_pdrs): Same.
11550 (debug_pdrs): Same.
11551 (debug_scop_context): Same.
11552 (debug_scop): Same.
11553 (debug_cloog): Same.
11554 (print_scop_params): Same.
11555 (debug_scop_params): Same.
11556 (print_iteration_domain): Same.
11557 (print_iteration_domains): Same.
11558 (debug_iteration_domain): Same.
11559 (debug_iteration_domains): Same.
11560 (print_scattering_function): Same.
11561 (print_scattering_functions): Same.
11562 (debug_scattering_function): Same.
11563 (debug_scattering_functions): Same.
11565 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11567 * graphite-poly.c (print_scattering_function_1): New.
11568 (print_scattering_function): Call it.
11569 (print_scop_params): Remove spaces at the end of lines.
11570 (print_cloog): New.
11571 (debug_cloog): New.
11572 * graphite-poly.h (print_cloog): Declared.
11573 (debug_cloog): Declared.
11575 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11577 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
11579 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
11580 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
11581 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
11582 to switch between adding the IV bump in loop->latch or in loop->header.
11584 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
11586 * graphite-poly.c (print_scattering_function): Pretty print following
11587 the scoplib format.
11589 (print_pbb_domain): Same.
11590 (dump_gbb_cases): Same.
11591 (dump_gbb_conditions): Same.
11592 (print_pdrs): Same.
11594 (print_scop_params): Same.
11595 (print_scop_context): Same.
11596 (print_scop): Same.
11597 (print_pbb_body): New.
11598 (lst_indent_to): New.
11599 (print_lst): Start new lines with a #.
11600 * graphite-poly.h (pbb_bb): New.
11601 (pbb_index): Use pbb_bb.
11602 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
11604 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
11606 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11608 * dwarf2out.c (size_of_die): For -gdwarf-4 use
11609 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
11610 and 0 instead of 1 for dw_val_class_flag.
11611 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
11612 dw_val_class_range_list, dw_val_class_loc_list,
11613 dw_val_class_lineptr and dw_val_class_macptr, use
11614 DW_FORM_flag_present for dw_val_class_flag and
11615 DW_FORM_exprloc for dw_val_class_loc.
11616 (output_die): For -gdwarf-4 print dw_val_class_loc
11617 size as uleb128 instead of 1 or 2 bytes and don't print
11618 anything for dw_val_class_flag.
11620 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
11621 instead of cselib_lookup following by tweaking locs->setting_insn.
11624 * cselib.c (cselib_process_insn): Clear cselib_current_insn
11625 even before returning from label, setjmp call or volatile asm
11628 2010-03-31 Richard Guenther <rguenther@suse.de>
11630 PR middle-end/43600
11631 * cgraphunit.c (cgraph_output_in_order): Do not allocate
11632 temporary data on stack.
11634 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11636 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
11637 (PUSHSECTION_ASM_OP): Remove.
11638 (POPSECTION_ASM_OP): Remove.
11639 (PUSHSECTION_FORMAT): Remove.
11640 * config/sol2.h (PUSHSECTION_FORMAT): Define.
11641 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
11642 * config/sol2.c (solaris_output_init_fini): Use it.
11644 2010-03-31 Jie Zhang <jie@codesourcery.com>
11647 * opt-functions.awk (var_type_struct): Use signed char type
11648 for simple variables.
11650 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11652 * config/sol2.c: Include output.h.
11653 (solaris_assemble_visibility): New function.
11654 * config/t-sol2 (sol2.o): Add output.h dependency.
11655 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
11656 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
11659 2010-03-31 Jakub Jelinek <jakub@redhat.com>
11662 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
11663 V2SImode or XFmode on PRE_DEC.
11666 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
11669 2010-03-31 Jie Zhang <jie@codesourcery.com>
11672 * reload.h (caller_save_initialized_p): Declare.
11673 * toplev.c (backend_init_target): Don't call
11674 init_caller_save but set caller_save_initialized_p to false.
11675 * caller-save.c (caller_save_initialized_p): Define.
11676 (init_caller_save): Check caller_save_initialized_p.
11677 * ira.c (ira): Call init_caller_save if flag_caller_saves.
11679 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11682 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
11683 and soft-fp/t-softfp to tmake_file.
11684 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
11685 (LIBGCC2_TF_CEXT): Define.
11688 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
11691 * cselib.c (n_useless_values): Document handling of debug locs.
11692 (n_useless_debug_values, n_debug_values): New variables.
11693 (new_elt_loc_list): Don't add to debug values, keep count.
11694 (promote_debug_loc): New.
11695 (cselib_reset_table): Zero new variables.
11696 (entry_and_rtx_equal_p): Promote debug locs.
11697 (discard_useless_locs): Increment n_useless_debug_values for
11699 (remove_useless_values): Adjust n_useless_values and n_debug_values
11700 with n_useless_debug_values.
11701 (add_mem_for_addr): Promote debug locs.
11702 (cselib_lookup_mem): Likewise.
11703 (cselib_lookup_addr): Renamed to...
11704 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
11705 (cselib_log_lookup): ... this. Turn into...
11706 (cselib_lookup_addr): ... new wrapper.
11707 (cselib_lookup_from_insn): New.
11708 (cselib_invalidate_regno): Increment n_useless_debug_values for
11710 (cselib_invalidate_mem): Likewise.
11711 (cselib_process_insn): Take n_deleted and n_debug_values into
11712 account to guard remove_useless_value call.
11713 (cselib_finish): Zero n_useless_debug_values.
11714 * cselib.h (cselib_lookup_from_insn): Declare.
11715 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
11716 (sched_analyze_2): Likewise.
11718 2010-03-30 Jakub Jelinek <jakub@redhat.com>
11720 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
11722 (adjust_mems): Replace narrowing SUBREG of expression containing
11723 just PLUS, MINUS, MULT and ASHIFT of registers and constants
11724 with operations in the narrower mode.
11727 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
11728 regs_invalidated_by_call instead all call_used_reg_set registers.
11730 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
11732 PR middle-end/43430
11733 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
11734 pointer comparisons with types_compatible_p.
11735 * tree-vect-stmts.c (vectorizable_call): Same.
11736 (vectorizable_condition): Same.
11738 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11740 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
11741 stack check if the mask would be zero.
11743 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
11744 Jack Howarth <howarth@bromo.med.uc.edu>
11746 * tree-profile.c (tree_init_ic_make_global_vars): Make static
11749 2010-03-30 Joseph Myers <joseph@codesourcery.com>
11752 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
11754 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
11755 Include ___unordxf2 and ___unordtf2.
11756 * config/i386/libgcc-glibc.ver: Do not define inheritance from
11759 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
11761 * config/lm32/t-lm32: New file.
11762 * config.gcc: Use the above file when targetting lm32.
11764 2010-03-28 Duncan Sands <baldrick@free.fr>
11766 * Makefile.in (PLUGIN_HEADERS): Add except.h.
11768 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11770 PR middle-end/43431
11771 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
11772 Improve vectorization cost model diagnostic.
11774 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
11776 PR middle-end/43436
11777 * tree-vect-data-refs.c (vect_analyze_data_refs): When
11778 compute_data_dependences_for_loop returns false, early exit
11779 and output an extra diagnostic for the failed data reference
11782 2010-03-29 Richard Guenther <rguenther@suse.de>
11784 PR tree-optimization/43560
11785 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
11786 (can_sm_ref_p): Treat stores to readonly locations as trapping.
11788 2010-03-29 Jie Zhang <jie@codesourcery.com>
11791 * toplev.c (process_options): Set optimization_default_node
11792 and optimization_current_node.
11793 * opts.c (decode_options): Don't set optimization_default_node
11794 and optimization_current_node.
11796 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
11798 * config/rtems.h: Abandon -qrtems_debug.
11800 2010-03-28 Jan Hubicka <jh@suse.cz>
11802 PR tree-optimization/43505
11803 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
11804 map should not be copied.
11806 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11808 PR middle-end/41674
11809 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
11810 cdtors, set DECL_PRESERVE_P.
11811 * ipa.c (cgraph_externally_visible_p): Return true if declaration
11812 should be preseved.
11814 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
11816 PR tree-optimization/43528
11817 * stor-layout.c (place_field): Check that constant fits into
11818 unsigned HWI when skipping calculation of MS bitfield layout.
11820 2010-03-27 Jan Hubicka <jh@suse.cz>
11822 PR middle-end/43391
11823 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
11824 notice_global_symbol work.
11826 2010-03-27 Jakub Jelinek <jakub@redhat.com>
11828 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
11829 instead of dwarf2out_decl.
11830 (struct var_loc_node): Remove section_label field.
11831 (dwarf2out_function_decl): New function.
11832 (dwarf2out_var_location): Don't set section_label field.
11833 (dwarf2out_begin_function): Don't empty decl_loc_table here.
11835 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11837 PR tree-optimization/43544
11838 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11839 First argument for builtin vectorized function hook is now a
11840 tree to be able to distinguish between machine specific and
11842 * targhooks.c (default_builtin_vectorized_function): Ditto.
11843 * targhooks.h (default_builtin_vectorized_function): Ditto.
11844 * target.h (struct gcc_target): Ditto.
11845 * tree-vect-stmts.c (vectorizable_function): Ditto.
11846 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
11847 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
11850 2010-03-26 Joseph Myers <joseph@codesourcery.com>
11853 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
11854 nested binding iff it is a FUNCTION_DECL.
11855 (store_parm_decls_newstyle): Pass nested=true to bind for
11856 FUNCTION_DECLs amongst parameters.
11858 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11860 * var-tracking.c (vt_expand_loc_callback): Don't run
11861 cselib_expand_value_rtx_cb in dummy mode if
11862 cselib_dummy_expand_value_rtx_cb returned false.
11864 * var-tracking.c (emit_note_insn_var_location): For one part
11865 notes with offset 0, don't add EXPR_LIST around the location.
11866 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
11867 add_location_or_const_value_attribute): Adjust for that change.
11870 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
11871 into first operand and location into second.
11872 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
11873 dw_cfi_oprnd_loc for DW_CFA_expression.
11874 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
11875 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
11876 assume first argument is regnum and second argument is location.
11878 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11881 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
11882 of scratch register to DImode. Split to DImode comparison operator.
11883 Use SImode subreg of scratch register in the multiplication.
11884 (*cmp_sadd_sidi): Ditto.
11885 (*cmp_ssub_si): Ditto.
11886 (*cmp_ssub_sidi): Ditto.
11888 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
11891 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
11892 Remove invalid assert and wrong comment.
11894 2010-03-26 Jakub Jelinek <jakub@redhat.com>
11897 * flags.h (final_insns_dump_p): New extern.
11898 * final.c (final_insns_dump_p): New variable.
11899 (rest_of_clean_state): Set it before -fdump-final-insns=
11900 dumping, clear afterwards.
11901 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
11902 MEM_ALIAS_SET on MEMs.
11904 2010-03-26 David S. Miller <davem@davemloft.net>
11906 * configure.ac: Fix sparc GOTDATA_OP bug check.
11907 * configure: Rebuild.
11909 2010-03-26 Alan Modra <amodra@gmail.com>
11911 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
11913 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11915 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
11916 TLS_SECTION_ASM_FLAG.
11918 2010-03-25 Jakub Jelinek <jakub@redhat.com>
11921 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
11922 Clear first_function_block_is_cold.
11925 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
11926 argument if the argument is truth_value_p.
11928 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11930 * config/rs6000/constraints.md: Update copyright year for my changes.
11933 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
11934 used in reg+reg addressing, swap registers.
11936 2010-03-24 Jakub Jelinek <jakub@redhat.com>
11939 * target.h (struct gcc_target): Add code_end hook.
11940 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
11941 if not yet defined.
11942 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
11943 * toplev.c (compile_file): Call targetm.asm_out.code_end
11944 hook before unwind info/debug info output.
11945 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
11946 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
11947 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11948 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
11949 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
11950 * config/i386/i386.c (ix86_file_end): Renamed to...
11951 (ix86_code_end): ... this. Make static. Don't call
11952 file_end_indicate_exec_stack. Emit unwind info using
11953 final_start_function/final_end_function.
11954 (darwin_x86_file_end): Remove.
11955 (TARGET_ASM_CODE_END): Define.
11956 * config/i386/i386.h (TARGET_ASM_FILE_END,
11957 NEED_INDICATE_EXEC_STACK): Don't define.
11958 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
11959 (TARGET_ASM_FILE_END): Define to darwin_file_end.
11960 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
11961 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
11964 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
11965 at the beginning and final_end_function at the end.
11966 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11968 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11970 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
11971 and Sun as TLS syntax.
11972 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
11973 * configure: Regenerate.
11974 * config.in: Regenerate.
11975 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
11976 (default_elf_asm_named_section): Use it.
11977 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
11978 (i386_output_dwarf_dtprel): Likewise.
11979 (output_addr_const_extra): Likewise.
11980 (output_pic_addr_const): Lowercase @GOTTPOFF.
11981 (output_addr_const_extra): Likewise.
11982 (output_pic_addr_const): Lowercase @GOTNTPOFF.
11983 (output_addr_const_extra): Likewise.
11984 (output_pic_addr_const): Lowercase @INDNTPOFF.
11985 (output_addr_const_extra): Likewise.
11986 (output_pic_addr_const): Lowercase @NTPOFF.
11987 (output_addr_const_extra): Likewise.
11988 (output_pic_addr_const): Lowercase @TPOFF.
11989 (output_addr_const_extra): Likewise.
11990 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
11991 (*tls_global_dynamic_64): Likewise.
11992 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
11993 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
11995 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
11996 (ASM_OUTPUT_TLS_COMMON): Use it.
11997 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12000 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12001 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12002 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12003 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12004 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12005 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12007 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12009 * config/i386/i386.c (override_options): Don't accept
12010 -mtls-dialect=sun any longer.
12011 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12012 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12013 (*tls_local_dynamic_base_32_sun): Likewise.
12014 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12016 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12019 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12020 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12023 * ira.c (adjust_cleared_regs): New function.
12024 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12028 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12030 * expr.c (expand_expr_real): Restore previous
12031 curr_insn_source_location and curr_insn_block after
12032 expand_expr_real_1 call.
12033 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12034 instead of expand_expr_real_1.
12036 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12038 PR rtl-optimization/43413
12039 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12042 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12045 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12046 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12048 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12050 * config/i386/i386.c (ix86_target_string): Add -mfma.
12051 Fix a typo in comment.
12053 2010-03-22 Mike Stump <mikestump@comcast.net>
12056 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12057 Don't overly align based upon packed packed fields.
12059 2010-03-22 Jason Merrill <jason@redhat.com>
12061 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12062 Use () rather than [], and move before the element type.
12064 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12066 * doc/configfiles.texi (Configuration Files): Removed
12067 fixinc/Makefile*, intl/Makefile.*.
12068 * doc/makefile.texi: Fixed markup. Abstract from version
12069 control system used.
12070 (Makefile): Removed obsolete gcc/java/parse.y example.
12071 * doc/sourcebuild.texi: Likewise.
12072 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12073 libgomp, libssp. Removed fastjar.
12074 (Miscellaneous Docs): Clarify location.
12075 Added COPYING3, COPYING3.LIB.
12076 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12078 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12081 * config/i386/i386.c (x86_function_profiler)
12082 [!NO_PROFILE_COUNTERS]: Fix typo.
12083 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12086 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12087 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12089 * doc/sourcebuild.texi (Test Directives): Split into six
12090 subsections, with most of the current text in new subsections
12091 Directives, Selectors, and Final Actions.
12092 (Directives): Split list of test directives into multiple
12094 (Selectors): Describe use and syntax of selectors.
12095 (Effective-Target Keywords): Describe all existing keywords.
12096 (Add Options): Describe features for dg-add-options.
12097 (Require Support): Describe variants of dg-require-support.
12098 (Final Actions): Describe commands to use in dg-final.
12100 2010-03-22 Michael Matz <matz@suse.de>
12102 PR middle-end/43475
12103 * recog.c (validate_replace_rtx_group): Replace also in
12104 REG_EQUAL and REG_EQUIV notes.
12106 2010-03-22 Richard Guenther <rguenther@suse.de>
12108 PR tree-optimization/43390
12109 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12110 sure vector extracts are type correct.
12112 2010-03-22 Richard Guenther <rguenther@suse.de>
12114 PR middle-end/40106
12115 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12116 x * sqrt (x) even when optimizing for size if the target
12117 has native support for sqrt.
12119 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12121 * varasm.c (make_decl_rtl_for_debug): Also clear
12122 flag_mudflap for the duration of make_decl_rtl call.
12125 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12126 locs from preserved VALUEs.
12128 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12130 PR middle-end/42718
12131 * pa.md (movmemsi): Set align to one if zero.
12132 (movmemdi): Likewise.
12134 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12137 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12138 with their corresponding prologue pushes.
12140 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12143 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12144 at the begining or end.
12145 (spu_expand_epilogue): Likewise.
12147 2010-03-20 Richard Guenther <rguenther@suse.de>
12149 PR rtl-optimization/43438
12150 * combine.c (make_extraction): Properly zero-/sign-extend an
12151 extraction of the low part of a CONST_INT. Also handle
12154 2010-03-19 Mike Stump <mikestump@comcast.net>
12156 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12157 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12158 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12160 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12163 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12166 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12168 PR rtl-optimization/42258
12169 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12170 use that may match DEF.
12173 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12174 the cost of loading the constant rather than assuming
12176 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12177 outer code is AND, do the same tests as the andsi3 expander and
12178 return COSTS_N_INSNS (1) if and is cheap.
12180 * optabs.c (avoid_expensive_constant): Fix formatting.
12182 2010-03-19 Michael Matz <matz@suse.de>
12185 * attribs.c (decl_attributes): When rebuilding a function pointer
12186 type use the same qualifiers as the original pointer type.
12188 2010-03-19 Martin Jambor <mjambor@suse.cz>
12190 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12191 and is_gimple_ip_invariant_address.
12193 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12196 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12198 * config/arm/arm.c (arm_override_options): Turn off
12199 flag_dwarf2_cfi_asm for AAPCS variants.
12201 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12204 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12205 Use PRE_MODIFY instead of PRE_DEC.
12206 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12207 (vfp_emit_fstmd): Likewise.
12209 2010-03-19 Michael Matz <matz@suse.de>
12212 * builtins.c (expand_builtin_interclass_mathfn,
12213 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12216 2010-03-19 Richard Guenther <rguenther@suse.de>
12218 PR tree-optimization/43415
12219 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12220 (phi_translate_1): ... this.
12221 (phi_translate): Move all caching here. Cache all NARY
12222 and REFERENCE translations.
12224 2010-03-19 David S. Miller <davem@davemloft.net>
12226 With help from Eric Botcazou.
12227 * config/sparc/sparc.c: Include dwarf2out.h.
12228 (emit_pic_helper): Delete.
12229 (pic_helper_symbol_name): Delete.
12230 (pic_helper_emitted_p): Delete.
12231 (pic_helper_needed): New.
12232 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12233 (get_pc_thunk_name): New.
12234 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12235 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12236 Set pic_helper_needed to true. Don't call emit_pic_helper.
12237 (sparc_expand_prologue): Update load_pic_register call.
12238 (sparc_output_mi_thunk): Likewise.
12239 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12240 thunk if possible. Output CFI information as needed.
12242 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12243 Jack Howarth <howarth@bromo.med.uc.edu>
12246 * config/i386/i386.h: Fix ABI on darwin x86-32.
12248 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12250 * tree.h: Declare make_decl_rtl_for_debug.
12251 * varasm.c (make_decl_rtl_for_debug): New.
12252 * dwarf2out.c (rtl_for_decl_location): Call it.
12253 * cfgexpand.c (expand_debug_expr): Call it.
12255 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12258 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12262 * var-tracking.c (vt_init_cfa_base): Do nothing if
12263 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12265 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12268 * var-tracking.c (canonicalize_vars_star): New.
12269 (dataflow_post_merge_adjust): Use it.
12271 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12274 * var-tracking.c (non_suitable_const): New function.
12275 (add_uses): For DEBUG_INSNs with constants, don't record any
12276 value, instead just the constant value itself.
12277 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12278 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12279 (emit_notes_in_bb): Likewise.
12280 (emit_note_insn_var_location): For onepart variables if
12281 cur_loc is a VOIDmode constant, use DECL_MODE.
12283 2010-03-18 Martin Jambor <mjambor@suse.cz>
12285 PR middle-end/42450
12286 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12287 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12288 all non-clones. Moved call redirection...
12289 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12290 (cgraph_materialize_all_clones): Dispose of all
12291 combined_args_to_skip bitmaps.
12292 (verify_cgraph_node): Do not check for edges pointing to wrong
12293 nodes in inline clones.
12294 * tree-inline.c (copy_bb): Call
12295 cgraph_redirect_edge_call_stmt_to_callee.
12296 * ipa.c (cgraph_remove_unreachable_nodes): Call
12297 cgraph_node_remove_callees even when there are used clones.
12299 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12301 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12303 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12306 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12309 2010-03-18 Michael Matz <matz@suse.de>
12311 PR middle-end/43419
12312 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12313 into sqrt(x) if we need to preserve signed zeros.
12315 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12316 Eric Botcazou <ebotcazou@adacore.com>
12318 PR rtl-optimization/43360
12319 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12320 note if we don't know its invariant status.
12322 2010-03-18 Michael Matz <matz@suse.de>
12324 PR tree-optimization/43402
12325 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12326 PHI chains of ssa names registered for update.
12328 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12331 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12332 non-offsettable and pre_modify update addressing.
12333 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12334 and "2" alternatives "#".
12335 (*movdd_softfloat32): Make all alternatives "#";
12336 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12337 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12338 (*movdf_softfloat32): Make all alternatives "#";
12339 (movdi): Use the new DIFD mode iterator to create a common splitter
12340 for movdi, movdf and movdd patterns.
12342 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12344 * common.opt (dumpdir): Remove redundant tab.
12346 2010-03-17 Martin Jambor <mjambor@suse.cz>
12348 PR tree-optimization/43347
12349 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12350 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12352 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12354 PR rtl-optimization/42216
12355 * regrename.c (create_new_chain): New function, broken out from...
12356 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12357 appending a use to an empty chain.
12358 (build_def_use): Remove previous changes that convert OP_INOUT to
12359 OP_OUT operands; instead detect the case where an OP_INOUT operand
12360 uses a previously untracked register and create an empty chain for it.
12362 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12364 * doc/extend.texi (Function Attributes): Rewrite unfinished
12365 sentence in ms_abi documentation.
12367 2010-03-17 Alan Modra <amodra@gmail.com>
12369 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12370 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12371 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12372 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12374 2010-03-16 Richard Henderson <rth@redhat.com>
12376 PR middle-end/43365
12377 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12378 (lower_try_finally): Save and restore eh_seq around the expansion
12379 of the try-finally.
12381 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12383 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12384 statements before splitting block.
12386 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12388 * doc/sourcebuild.texi (Testsuites): Fix markup.
12389 Use pathnames relative to gcc/testsuite.
12390 (Test Directives): Move description of how timeout is determined.
12391 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12392 (C Tests): Correct gcc.misc-tests directory.
12393 Framework tests now live in gcc.test-framework.
12395 2010-03-16 Richard Guenther <rguenther@suse.de>
12397 PR middle-end/43379
12398 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12399 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12401 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12402 Alexandre Oliva <aoliva@redhat.com>
12404 PR tree-optimization/42917
12405 * lambda-code.c (remove_iv): Skip debug statements.
12406 (lambda_loopnest_to_gcc_loopnest): Likewise.
12407 (not_interesting_stmt): Debug statements are not interesting.
12409 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12413 * cselib.c (cselib_preserve_constants,
12414 cfa_base_preserved_val): New static variables.
12415 (preserve_only_constants): New function.
12416 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12417 clear its REG_VALUES. If cselib_preserve_constants, don't
12418 empty the whole hash table, but preserve there VALUEs with constants,
12419 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12420 (cselib_preserve_cfa_base_value): New function.
12421 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12422 (cselib_init): Change argument to int bitfield. Set
12423 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12425 (cselib_finish): Clear cselib_preserve_constants and
12426 cfa_base_preserved_val.
12427 * cselib.h (enum cselib_record_what): New enum.
12428 (cselib_init): Change argument to int.
12429 (cselib_preserve_cfa_base_value): New prototype.
12430 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12431 * dse.c (dse_step1): Likewise.
12432 * cfgcleanup.c (thread_jump): Likewise.
12433 * sched-deps.c (sched_analyze): Likewise.
12434 * gcse.c (local_cprop_pass): Likewise.
12435 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
12436 If FN is non-NULL, call the callback always and whenever it returns
12437 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
12438 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
12439 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
12440 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
12441 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
12442 * var-tracking.c: Include recog.h.
12443 (bb_stack_adjust_offset): Remove.
12444 (vt_stack_adjustments): Don't call it, instead just gather the
12445 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
12446 (adjust_stack_reference): Remove.
12447 (compute_cfa_pointer): New function.
12448 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
12449 (struct adjust_mem_data): New type.
12450 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
12452 (get_address_mode): New function.
12453 (replace_expr_with_values): Use it.
12454 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
12455 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
12456 (adjust_sets): Remove.
12457 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
12458 Use get_address_mode.
12459 (get_adjusted_src): Remove.
12460 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
12461 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
12462 (add_with_sets): Don't call adjust_sets.
12463 (fp_setter, vt_init_cfa_base): New functions.
12464 (vt_initialize): Change return type to bool. Move most of pool etc.
12465 initialization to the beginning of the function from end. Pass
12466 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
12467 If !frame_pointer_needed, call vt_stack_adjustment before mos
12468 vector is filled, call vt_init_cfa_base if argp/framep has been
12469 eliminated to sp. If frame_pointer_needed and argp/framep has
12470 been eliminated to hard frame pointer, set
12471 hard_frame_pointer_adjustment and call vt_init_cfa_base after
12472 encountering fp setter in the prologue. For MO_ADJUST, call
12473 log_op_type before pusing the op into mos vector, not afterwards.
12474 Call adjust_insn before cselib_process_insn/add_with_sets,
12475 call cancel_changes (0) afterwards.
12476 (variable_tracking_main_1): Adjust for vt_initialize calling
12477 vt_stack_adjustments and returning whether it succeeded or not.
12479 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
12481 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
12484 2010-03-15 Jakub Jelinek <jakub@redhat.com>
12486 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
12488 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
12489 drap_reg has not been set.
12491 2010-03-15 Michael Matz <matz@suse.de>
12493 PR middle-end/43300
12494 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
12495 use it to expand block copies.
12496 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12497 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
12498 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
12500 2010-03-15 Richard Guenther <rguenther@suse.de>
12502 PR tree-optimization/43367
12503 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
12506 2010-03-15 Richard Guenther <rguenther@suse.de>
12508 PR tree-optimization/43317
12509 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
12511 2010-03-15 Martin Jambor <mjambor@suse.cz>
12513 PR tree-optimization/43141
12514 * tree-sra.c (create_abstract_origin): New function.
12515 (modify_function): Call create_abstract_origin.
12517 2010-03-15 Chris Demetriou <cgd@google.com>
12519 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
12522 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12524 PR middle-end/43354
12525 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
12526 call insert_out_of_ssa_copy for default definitions.
12528 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12530 * graphite-clast-to-gimple.c (my_long_long): Defined.
12531 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
12532 * graphite-sese-to-poly.c (my_long_long): Defined.
12533 (scop_ivs_can_be_represented): Use it.
12535 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12537 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
12538 graphite-max-bbs-per-function, and loop-block-tile-size.
12539 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
12541 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
12543 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12545 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
12546 forward declaration.
12547 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
12548 (add_upper_bounds_from_estimated_nit): New.
12549 (build_loop_iteration_domains): Use it.
12551 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12553 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
12555 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12557 PR middle-end/43306
12558 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
12559 should be an INTEGER_CST. Also handle CASE_CONVERT.
12561 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12563 * graphite.c (graphite_initialize): To bound the number of bbs per
12564 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12565 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
12566 * doc/invoke.texi: Document it.
12568 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12570 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
12571 * graphite-sese-to-poly.h (build_poly_scop): Same.
12573 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
12575 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
12576 the number of parameters in the scop. Use as an upper bound
12577 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
12578 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
12579 * doc/invoke.texi: Document it.
12581 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
12583 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
12584 * doc/c-tree.texi: Remove.
12585 * doc/generic.texi: Merge c-tree.texi here.
12586 * doc/gccint.texi (Trees): Remove menu entry.
12587 (c-tree.texi): Remove @include.
12588 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
12589 * doc/languages.texi (Reading RTL): Ditto.
12591 2010-03-12 Steve Ellcey <sje@cup.hp.com>
12594 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
12596 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12598 PR middle-end/42431
12599 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
12600 code added to work around reload clobbering CONST insns.
12602 2010-03-12 Jakub Jelinek <jakub@redhat.com>
12604 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
12605 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
12606 (cselib_preserve_only_values): Remove retain argument, don't
12607 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
12608 * cselib.h (cselib_preserve_only_values): Remove retain argument.
12609 * var-tracking.c (micro_operation): Move insn field before union.
12610 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
12611 (struct variable_tracking_info_def): Remove n_mos field, change
12612 mos into a vector of micro_operations.
12613 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
12614 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
12615 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
12616 changing into a vector.
12617 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
12618 come before all other uops generated by add_stores.
12619 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
12621 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
12622 a vector. Run just one pass over the bbs instead of separate counting
12623 and computation phase.
12624 (vt_finalize): Free VTI (bb)->mos vector instead of array.
12627 * tree-inline.c (remap_decls): Put old_var rather than origin_var
12628 into *nonlocalized_list vector.
12629 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
12630 even if origin is non-NULL.
12631 (gen_variable_die): Likewise.
12632 (process_scope_var): Don't change origin.
12633 (gen_decl_die): Likewise.
12634 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
12635 before adding new edges instead of after it, fix moving over
12638 2010-03-11 David S. Miller <davem@davemloft.net>
12640 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
12642 * configure: Rebuild.
12644 2010-03-11 Martin Jambor <mjambor@suse.cz>
12646 PR tree-optimization/43257
12647 * tree.c (assign_assembler_name_if_neeeded): New function.
12648 (free_lang_data_in_cgraph): Assembler name assignment moved to the
12649 above new function.
12650 * tree.h (assign_assembler_name_if_neeeded): Declare.
12651 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
12652 the function if needed.
12654 2010-03-11 Chris Demetriou <cgd@google.com>
12656 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
12657 include/stdint-gcc.h, and include/stdint.h world-readable.
12659 2010-03-11 Richard Guenther <rguenther@suse.de>
12661 PR tree-optimization/43255
12662 * tree-vrp.c (process_assert_insertions_for): Do not insert
12663 asserts for trivial conditions.
12665 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12667 PR tree-optimization/43280
12668 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
12669 generation. Move calculation of size out of the if branch.
12670 (find_bswap): Modify compare number generation.
12672 2010-03-11 Richard Guenther <rguenther@suse.de>
12675 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
12676 (input_gimple_stmt): Fixup handled component types during
12677 operand read. Also fix up decls in ADDR_EXPRs.
12679 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
12681 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
12682 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
12684 2010-03-10 Jan Hubicka <jh@suse.cz>
12687 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
12688 * varasm.c (get_variable_section): Don't do that here...
12689 (make_decl_rtl): ... and here.
12690 (do_assemble_alias): Produce decl RTL.
12691 (assemble_alias): Likewise.
12693 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12696 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
12697 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
12699 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
12700 (based_loc_descr): Only express drap or vdrap regno based expressions
12701 using DW_OP_fbreg when not optimizing.
12702 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
12703 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
12704 REG_CFA_SET_VDRAP note.
12706 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
12708 PR tree-optimization/43236
12709 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
12710 error in calculation of base address in reverse iteration case.
12711 (generate_builtin): Take number of latch executions if the statement
12714 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
12716 PR middle-end/42859
12717 * tree-eh.c: Include pointer-set.h.
12718 (lower_eh_dispatch): Filter out duplicate case labels and
12719 remove the unneeded edge when the label is unused. Return
12720 true when some edges are removed.
12721 (execute_lower_eh_dispatch): When any lowering resulted in
12722 removing an edge, also delete unreachable blocks.
12724 2010-03-10 Jakub Jelinek <jakub@redhat.com>
12727 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12728 UNSPEC_MACHOPIC_OFFSET.
12730 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
12733 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
12734 (m68k_delegitimize_address): New function.
12736 2010-03-09 Jakub Jelinek <jakub@redhat.com>
12739 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
12742 * var-tracking.c (adjust_sets): New function.
12743 (count_with_sets, add_with_sets): Use it.
12744 (get_adjusted_src): New inline function.
12745 (add_stores): Use it.
12748 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
12749 call cselib_dummy_expand_value_rtx_cb instead of
12750 cselib_expand_value_rtx_cb.
12753 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
12754 * config/i386/i386.c: Include debug.h and dwarf2out.h.
12755 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
12756 and .cfi_endproc around the pic thunks.
12757 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
12758 all queued unwind info register saves are saved before the call.
12759 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
12760 considered as sp-=4 for unwind info and the pop as sp+=4 which
12761 also clobbers dest, but doesn't actually restore it.
12764 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
12765 RTX_FRAME_RELATED_P.
12767 2010-03-09 Jie Zhang <jie@codesourcery.com>
12769 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
12770 whitespaces in output template.
12772 2010-03-09 Jie Zhang <jie@codesourcery.com>
12774 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
12775 out array boundary.
12777 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12779 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
12780 builtins.exp in a separate job.
12782 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12784 * graphite-sese-to-poly.c (add_param_constraints): Use
12785 lower_bound_in_type and upper_bound_in_type.
12787 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12789 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
12790 instead of unsigned_type_node.
12792 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12793 Reza Yazdani <reza.yazdani@amd.com>
12795 PR middle-end/43065
12796 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
12797 on pointer type parameters.
12799 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12801 PR middle-end/42644
12802 PR middle-end/42130
12803 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
12804 handle conversions from pointer to integers.
12805 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
12806 induction variable, to be able to work with code generated by CLooG.
12807 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
12808 (build_poly_scop): Bail out if we cannot codegen a loop.
12810 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
12812 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
12813 code generation with gloog_error.
12815 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12817 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
12818 Call fold_convert on all the returned values.
12819 (expand_scalar_variables_expr): Pass to
12820 expand_scalar_variables_ssa_name the type of the resulting expression.
12822 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12824 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
12825 ppl_min_for_le_pointset.
12826 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
12827 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
12829 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12831 * graphite-dependences.c (map_into_dep_poly): Removed.
12832 (dependence_polyhedron_1): Use combine_context_id_scat.
12834 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12836 * graphite-poly.h (struct poly_scattering): Add layout documentation.
12837 (struct poly_bb): Same.
12838 (combine_context_id_scat): New.
12840 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12842 PR middle-end/42326
12843 * sese.c (name_defined_in_loop_p): Return false for default
12846 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12848 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
12849 and clean up the logic.
12851 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
12853 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
12856 2010-03-08 Jakub Jelinek <jakub@redhat.com>
12858 * var-tracking.c (remove_cselib_value_chains): Define only for
12860 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
12861 delete_slot_part, emit_notes_for_differences_1): Don't call
12862 remove_cselib_value_chains here.
12863 (set_slot_part, emit_notes_for_differences_2): Don't call
12864 add_cselib_value_chains here.
12865 (preserved_values): New vector.
12866 (preserve_value): New function.
12867 (add_uses, add_stores, vt_add_function_parameters): Use it
12868 instead of cselib_preserve_value.
12869 (changed_values_stack): New vector.
12870 (check_changed_vars_0): New function.
12871 (check_changed_vars_1, check_changed_vars_2): Use it.
12872 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
12873 changed_values_stack VALUEs.
12874 (vt_emit_notes): For all preserved_values call
12875 add_cselib_value_chains. If ENABLE_CHECKING call
12876 remove_cselib_value_chains before verifying value_chains is empty.
12877 Initialize and free changed_values_stack.
12878 (vt_initialize): Initialize preserved_values.
12879 (vt_finalize): Free preserved_values.
12881 2010-03-08 Richard Guenther <rguenther@suse.de>
12883 PR tree-optimization/43269
12884 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
12887 2010-03-08 Martin Jambor <mjambor@suse.cz>
12889 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
12890 (ipa_is_param_called): Removed.
12891 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
12892 (ipa_print_node_params): Do not print the called flag.
12893 (ipa_write_node_info): Do not stream the called flag.
12894 (ipa_read_node_info): Likewise.
12896 2010-03-07 Jakub Jelinek <jakub@redhat.com>
12899 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
12900 * cselib.c (struct expand_value_data): Add dummy field.
12901 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
12903 (cselib_dummy_expand_value_rtx_cb): New function.
12904 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
12906 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
12907 * var-tracking.c: Include pointer-set.h.
12908 (variable): Change n_var_parts to char from int. Add
12909 cur_loc_changed and in_changed_variables fields.
12910 (variable_canonicalize): Remove.
12911 (shared_var_p): New inline function.
12912 (unshare_variable): Maintain cur_loc_changed and
12913 in_changed_variables fields. If var was in changed_variables,
12914 replace it there with new_var. Just copy cur_loc instead of
12915 resetting it to something else.
12916 (variable_union): Don't recompute cur_loc. Use shared_var_p.
12917 (dataflow_set_union): Don't call variable_canonicalize.
12918 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
12919 of their DEBUG_EXPR_TREE_DECLs.
12920 (canonicalize_loc_order_check): Verify that cur_loc is NULL
12921 and in_changed_variables and cur_loc_changed is false.
12922 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
12923 and cur_loc_changed. Don't update cur_loc here.
12924 (variable_merge_over_src): Don't call variable_canonicalize.
12925 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
12926 removing loc that is equal to cur_loc, clear cur_loc,
12927 set cur_loc_changed and ensure variable_was_changed is called.
12928 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
12929 compare pointers in cur_loc check, if it is equal to loc,
12930 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
12931 (variable_different_p): Remove compare_current_location argument,
12932 don't compare cur_loc.
12933 (dataflow_set_different_1): Adjust variable_different_p caller.
12934 (variable_was_changed): If dv had some var in changed_variables
12935 already, reset in_changed_variables flag for it and propagate
12936 cur_loc_changed over to the new variable. On empty var
12937 always set cur_loc_changed. Set in_changed_variables on whatever
12938 var is added to changed_variables.
12939 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
12940 Use shared_var_p. When removing loc that is equal to cur_loc,
12941 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
12942 end, don't set it to something else, just call variable_was_changed.
12943 (delete_slot_part): Use shared_var_p. When cur_loc equals to
12944 loc being removed, clear cur_loc and set cur_loc_changed.
12945 Set cur_loc_changed if all locations have been removed.
12946 (struct expand_loc_callback_data): New type.
12947 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
12948 allocated. Always create SUBREGs if simplify_subreg failed.
12949 Prefer to use cur_loc, when that fails and still in
12950 changed_variables (and seen first time) recompute it. Set
12951 cur_loc_changed of variables which had to change cur_loc and
12952 compute elcd->cur_loc_changed if any of the subexpressions used
12953 had to change cur_loc.
12954 (vt_expand_loc): Adjust to pass arguments in
12955 expand_loc_callback_data structure.
12956 (vt_expand_loc_dummy): New function.
12957 (emitted_notes): New variable.
12958 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
12959 that weren't used for any other decl in current
12960 emit_notes_for_changes call call vt_expand_loc_dummy to update
12961 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
12962 first loc_chain location if NULL before. Always use just
12963 cur_loc instead of first loc_chain location. When cur_loc_changed
12964 is false, when not --enable-checking=rtl just don't emit any note.
12965 When rtl checking, compute the note and assert it is the same
12966 as previous note. Clear cur_loc_changed and in_changed_variables
12967 at the end before removing from changed_variables.
12968 (check_changed_vars_3): New function.
12969 (emit_notes_for_changes): Traverse changed_vars to call
12970 check_changed_vars_3 on each changed var.
12971 (emit_notes_for_differences_1): Clear cur_loc_changed and
12972 in_changed_variables. Recompute cur_loc of new_var.
12973 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
12974 (vt_emit_notes): Initialize and destroy emitted_notes.
12976 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
12978 PR rtl-optimization/42220
12979 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
12980 Use verify_reg_tracked to determine if we should use OP_OUT rather
12982 (build_def_use): If we see an in-out operand for a register that we
12983 know nothing about, treat is an output if possible, fail the block if
12986 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12989 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
12992 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
12995 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
12996 uses of relevant DEFs that are dead outside the loop too.
12998 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13000 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13002 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13004 * var-tracking.c (values_to_unmark): New variable.
13005 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13006 values_to_unmark vector. Moved body to...
13007 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13008 instead queue it into values_to_unmark vector.
13009 (vt_find_locations): Free values_to_unmark vector.
13011 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13013 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13014 (site.exp): Export them when plugins are enabled.
13016 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13018 PR middle-end/42326
13019 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13020 that contain scevs.
13021 (chrec_fold_multiply): Same.
13023 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13026 * c-decl.c (build_compound_literal): Return early if init is
13027 an error_mark_node.
13029 2010-03-04 Martin Jambor <mjambor@suse.cz>
13031 PR tree-optimization/43164
13032 PR tree-optimization/43191
13033 * tree-sra.c (type_consists_of_records_p): Reject records with
13034 zero-size bit-fields at the end.
13036 2010-03-04 Mike Stump <mikestump@comcast.net>
13038 * Makefile.in (TAGS): Remove *.y.
13040 2010-03-04 Richard Guenther <rguenther@suse.de>
13042 PR tree-optimization/40761
13043 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13045 (my_rev_post_order_compute): New function.
13046 (init_pre): Call it.
13048 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13050 PR middle-end/43209
13051 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13052 decrease the cost of an IV candidate when the cost is infinite.
13054 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13056 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13057 Use '3DNow!' for the extension of that name, ensure normal space
13059 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13061 2010-03-03 Jeff Law <law@redhat.com>
13063 * PR middle-end/32693
13064 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13065 than gen_rtx_SUBREG.
13066 (extract_bit_field_1): Likewise.
13068 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13070 * doc/sourcebuild.texi (Test directives): Document that arguments
13071 include-opts and exclude-opts are now optional for dg-skip-if,
13072 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13074 2010-03-03 Jason Merrill <jason@redhat.com>
13077 * cgraph.h (varpool_node): Add extra_name field.
13078 * varpool.c (varpool_extra_name_alias): New.
13079 (varpool_assemble_decl): Emit extra name aliases.
13080 (varpool_mark_needed_node): Look past an extra name alias.
13081 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13082 * lto-streamer-in.c (lto_input_tree): Read it.
13083 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13085 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13087 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13088 (sparc*-*-solaris2*): ...this.
13090 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13093 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13094 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13095 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13096 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13099 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13100 fallthrough to default handling, just with want_address 0 instead of 2.
13101 For single element lists, add_AT_loc directly, otherwise create an
13102 artificial variable DIE and stick location list to it.
13105 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13106 (VAL_EXPR_HAS_REVERSE): Define.
13107 (reverse_op): New function.
13108 (add_stores): For reversible operations add an extra MO_VAL_USE.
13110 2010-03-02 Jason Merrill <jason@redhat.com>
13112 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13114 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13116 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13117 (sparc64-*-linux*): Likewise.
13118 (sparc64-*-solaris2*): Include assembler files before linker ones.
13119 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13120 * config/sparc/gas.h: Delete.
13121 * config/sparc/sol2-64.h: Add copyright notice.
13122 * config/sparc/sol2-gas-bi.h: Likewise.
13123 * config/sparc/sol2-gld.h: Likewise.
13124 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13125 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13126 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13127 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13128 (sparc_elf_asm_named_section): Rename into...
13129 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13131 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13133 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13135 2010-03-02 Jeff Law <law@redhat.com>
13137 PR middle-end/42431
13138 * reload1.c (rtx_p, substitute_stack): Declare.
13139 (substitute): Record addresses of changed rtxs.
13140 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13141 Restore the original rtx when complete.
13142 (reload): Free subsitute_stack when complete.
13144 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13146 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13147 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13149 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13150 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13151 Torture Tests): Change from subsection to section.
13153 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13154 Steven Bosscher <steven@gcc.gnu.org>
13156 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13159 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13161 PR middle-end/42640
13162 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13163 the assignment from the new induction variable to the assignment
13164 of the value from the original loop PHI function.
13166 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13167 Daniel Jacobowitz <dan@codesourcery.com>
13169 * doc/sourcebuild.texi (Test directives): Clarify options to
13172 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13174 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13175 Disable cfi directives unless GCC and gas agree on using read-only
13176 .eh_frame sections for 64-bit.
13177 * configure: Regenerate.
13179 2010-03-01 Richard Guenther <rguenther@suse.de>
13181 PR tree-optimization/43220
13182 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13183 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13185 2010-03-01 Richard Guenther <rguenther@suse.de>
13186 Martin Jambor <mjambor@suse.cz>
13188 PR middle-end/41250
13189 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13190 gimplified parameters.
13192 2010-03-01 Christian Bruel <christian.bruel@st.com>
13194 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13196 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13198 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13200 2010-03-01 Richard Guenther <rguenther@suse.de>
13202 PR middle-end/43213
13203 * expr.c (expand_assignment): Use the alias-oracle to tell
13204 if the rhs aliases the result decl.
13206 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13209 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13210 to sol_gt_pch_get_address.
13211 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13212 64-bit, SPARC and x86.
13213 (sol_gt_pch_get_address): New function.
13215 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13217 * toplev.h (inform_n, error_n): Declare.
13218 * diagnostic.c (inform_n, error_n): New function.
13220 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13222 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13223 has no rtl yet when processing local_decls, queue it and recheck
13224 if deferred stack allocation hasn't assigned it rtl.
13226 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13228 * config/sh/sh.c (unspec_bbr_uid): New.
13229 (gen_block_redirect): Use it instead of INSN_UID.
13230 (gen_far_branch): Likewise.
13232 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13234 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13235 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13237 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13239 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13240 (Warning Options): -Wno-conversion-null is valid for
13241 Objective-C++ as well.
13242 * doc/tm.texi (Named Address Spaces): Likewise.
13243 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13244 * doc/tree-ssa.texi (Tree SSA): Likewise.
13246 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13249 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13250 by default. Don't set the default arch for
13251 i[34567]86-*-darwin*|x86_64-*-darwin*.
13253 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13256 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13257 default. Set the default 32bit/64bit archs with $with_arch
13258 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13260 2010-02-27 Richard Guenther <rguenther@suse.de>
13262 PR tree-optimization/43186
13263 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13264 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13265 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13266 unroller iterations.
13268 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13270 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13271 required and i[34567]86-*-* targets don't support 64bit ISA.
13273 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13276 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13277 the same alias set.
13279 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13281 * config.gcc: Set the default arch at least to Prescott for
13282 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13283 if SSE math is enabled.
13285 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13287 * diagnostic.c (diagnostic_initialize): Update.
13288 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13290 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13291 (diagnostic_inhibit_notes): New.
13292 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13294 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13297 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13298 * doc/standards.texi: Likewise.
13299 * doc/extend.texi: Likewise.
13300 * doc/trouble.texi: Likewise.
13301 * doc/cppopts.texi: Likewise.
13302 * doc/install.texi: Likewise.
13303 * c.opt (std=c90,std=gnu90): New options.
13304 * c-opts.c (c_common_handle_option): Handle them.
13306 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13309 * c-decl.c (undeclared_variable): Use an informative note.
13311 2010-02-26 Richard Guenther <rguenther@suse.de>
13313 PR tree-optimization/43186
13314 * gimple.h (gimple_fold): Remove.
13315 * gimple.c (gimple_fold): Remove. Inline into single user ...
13316 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13317 Try harder for conditions.
13319 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13322 * function.c (used_types_insert): Don't skip through named pointer
13323 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13324 and it is different from the main variant's type.
13326 2010-02-26 Nick Clifton <nickc@redhat.com>
13328 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13330 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13332 * config.gcc: Support --with-fpmath=sse for x86.
13334 * config/i386/ssemath.h: New.
13336 * doc/install.texi (--with-fpmath=sse): Documented.
13338 2010-02-26 Richard Guenther <rguenther@suse.de>
13340 PR tree-optimization/43188
13341 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13342 vector types of over-aligned element type.
13344 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13347 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13348 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13350 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13352 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13354 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13356 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13357 * var-tracking.c: Include diagnostic.h.
13358 (debug_dv): New function.
13359 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13362 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13363 (add_value_chain, add_value_chains, remove_value_chain,
13364 remove_value_chains): Handle DEBUG_EXPRs.
13365 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13368 * regcprop.c (struct queued_debug_insn_change): New type.
13369 (struct value_data_entry): Add debug_insn_changes field.
13370 (struct value_data): Add n_debug_insn_changes field.
13371 (debug_insn_changes_pool): New variable.
13372 (free_debug_insn_changes, apply_debug_insn_changes,
13373 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13374 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13375 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13377 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13379 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13380 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13381 changes, call cprop_find_used_regs via note_stores.
13382 (copyprop_hardreg_forward): When copying vd from predecessor
13383 which has any queued DEBUG_INSN changes, make sure the pointers are
13384 cleared. At the end call df_analyze and then if there are any
13385 DEBUG_INSN changes queued at the end of some basic block for still
13386 live registers, apply them.
13387 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13389 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13391 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13394 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13396 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13397 targets. Set the default with_cpu/with_arch from arch/cpu.
13398 Allow x86-64 and native for with_cpu/with_arch.
13400 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13402 * ebitmap.c: Change calls to verify_popcount with calls to
13403 sbitmap_verify_popcount.
13404 (ebitmap_clear_bit): Fixed map->cacheindex test and
13405 map>cache update when bit clearing results in an empty
13408 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13411 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13412 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13413 and support both V2DF and V2DI modes.
13414 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13415 support both V2DF and V2DI modes.
13416 (general): Delete trailing whitespace from a few patterns.
13418 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13419 V2DF/V2DI interleave high/low builtins.
13421 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13424 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13425 interleave high/low functions.
13427 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13429 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13430 #pragma extern_prefix.
13432 2010-02-25 Jakub Jelinek <jakub@redhat.com>
13435 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
13436 BLKmode, assert op0 is a MEM and just adjust its mode.
13439 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
13440 if bitpos isn't multiple of mode's bitsize.
13442 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13444 * c.opt (-ftemplate-depth=): New.
13445 (-ftemplate-depth-): Deprecate.
13446 * optc-gen.awk: Handle -ftemplate-depth=.
13447 * opth-gen.awk: Likewise.
13448 * c-opts.c (c_common_handle_option): Likewise.
13449 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
13451 2010-02-24 Jason Merrill <jason@redhat.com>
13453 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
13455 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13457 * cfg.c (alloc_aux_for_block): Remove inline.
13458 (alloc_aux_for_edge): Likewise.
13460 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13462 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
13464 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13466 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
13467 * config/i386/sol2-gas.h: New file.
13468 * config.gcc (i[34567]86-*-solaris2*): Use it.
13470 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13473 * c-typeck.c (ep_convert_and_check): New.
13474 (build_conditional_expr): Use it.
13475 (build_binary_op): Likewise.
13477 2010-02-24 Jakub Jelinek <jakub@redhat.com>
13479 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
13482 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
13483 bounds even for -O+.
13484 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
13485 expr needs to have DECL_NAME set.
13487 2010-02-24 Nick Clifton <nickc@redhat.com>
13489 * config/mep/mep.c: Include gimple.h.
13490 (mep_function_uses_sp): Delete unused function.
13491 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
13492 parameters. Use unsigned integers to count args. Return a
13493 NULL_RTX instead of an error_mark_node. Toidy up formatting.
13495 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13498 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
13499 greater or equal to nelt instead of 2 * nelt.
13500 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
13503 2010-02-23 Jason Merrill <jason@redhat.com>
13506 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
13507 in cfun->local_decls even if they have register types.
13510 * stor-layout.c (place_field): Don't warn about unnecessary
13511 DECL_PACKED if the type is packed.
13513 2010-02-23 Jakub Jelinek <jakub@redhat.com>
13516 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
13517 GOTOFF relocs, even when the base reg isn't pic pointer.
13519 2010-02-23 Michael Matz <matz@suse.de>
13522 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
13523 (expand_gimple_basic_block): Generate and use debug temps if there
13524 are debug uses left after the last real use of TERed ssa names.
13525 Unlink debug immediate uses when they are expanded.
13527 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13530 * config/i386/i386.c (override_options): Reorganise to provide
13531 better error messages.
13533 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13535 PR middle-end/43083
13536 * graphite-scop-detection.c (create_single_exit_edge): Move
13537 the call to find_single_exit_edge to....
13538 (create_sese_edges): ...here. Don't handle multiple edges
13539 exiting the function.
13540 (build_graphite_scops): Don't handle multiple edges
13541 exiting the function.
13543 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13545 PR middle-end/43097
13546 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
13547 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
13549 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
13551 PR middle-end/43026
13552 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
13554 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13557 * c-typeck.c (convert_arguments): Print declaration location.
13558 * c-common.c (validate_nargs): Rename as
13559 builtin_function_validate_nargs.
13560 (check_builtin_function_arguments): Update.
13562 2010-02-22 Richard Guenther <rguenther@suse.de>
13565 * tree-inline.c (declare_return_variable): Use the type of
13566 the call stmt lhs if available.
13568 2010-02-22 Duncan Sands <baldrick@free.fr>
13570 * passes.c (register_pass): Always consider all pass lists when
13571 ref_pass_instance_number is zero.
13573 2010-02-22 Richard Guenther <rguenther@suse.de>
13575 PR tree-optimization/42749
13576 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
13577 parameter. Do arithmetic in the original type.
13578 (update_accumulator_with_ops): Likewise.
13579 (adjust_accumulator_values): Adjust.
13581 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13583 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
13584 (QI to BLKmode splitter): New splitter.
13586 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
13588 * config/i386/i386.c (initial_ix86_tune_features): Turn on
13589 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
13591 2010-02-22 Richard Guenther <rguenther@suse.de>
13593 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
13595 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
13597 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
13598 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
13599 ($(T)crti.o, $(T)crtn.o): Remove rules.
13601 2010-02-21 Tobias Burnus <burnus@net-b.de>
13604 * doc/invoke.texi (-fassociative-math): Document that this
13605 option is automatically enabled for Fortran.
13607 2010-02-20 David S. Miller <davem@davemloft.net>
13609 * configure.ac: Test if linker and assembler properly support
13610 GOTDATA_OP relocations.
13611 * configure: Rebuild.
13612 * config.in: Likewise.
13613 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
13614 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
13615 (movsi_high_pic): Likewise.
13616 (movdi_lo_sum_pic): Likewise.
13617 (movdi_high_pic): Likewise.
13618 (movsi_pic_gotdata_op): New pattern.
13619 (movdi_pic_gotdata_op): Likewise.
13620 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
13621 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
13623 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
13626 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
13627 attribute to ssemul.
13628 (xop_mulv2div2di3_high): Ditto.
13630 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13633 * c.opt (Wconversion-null): New option.
13634 * doc/invoke.texi (Wconversion-null): Document.
13636 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13638 * common.opt (Wlarger-than-): Add Undocumented.
13640 2010-02-19 Mike Stump <mikestump@comcast.net>
13642 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
13644 2010-02-19 Jason Merrill <jason@redhat.com>
13647 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
13648 * configure: Likewise.
13650 2010-02-20 Alan Modra <amodra@gmail.com>
13652 PR middle-end/42344
13653 * cgraph.h (cgraph_make_decl_local): Declare.
13654 * cgraph.c (cgraph_make_decl_local): New function.
13655 (cgraph_make_node_local): Use it.
13656 * cgraphunit.c (cgraph_function_versioning): Likewise.
13657 * ipa.c (function_and_variable_visibility): Likewise.
13659 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13662 * except.c (sjlj_emit_function_enter): Don't call
13663 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
13665 * rtl.h (add_reg_br_prob_note): Remove prototype.
13667 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13670 * c-common.c (conversion_warning): Remove widening conversions
13671 before checking the conversion of integers to reals.
13673 2010-02-19 Mike Stump <mikestump@comcast.net>
13675 PR middle-end/43125
13676 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
13679 * cgraphunit.c (process_function_and_variable_attributes): Check
13680 DECL_PRESERVE_P instead of looking up attribute "used".
13681 * ipa-pure-const.c (check_decl): Likewise.
13682 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
13683 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
13684 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
13685 instead of attribute "used".
13686 * config/sol2-c.c (solaris_pragma_init): Likewise.
13687 (solaris_pragma_fini): Likewise.
13689 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13691 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
13692 Use XCNEW instead of xcalloc.
13693 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
13694 XNEW instead of xmalloc.
13695 (get_fields): Use XNEWVEC instead of xmalloc.
13698 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
13699 populate vars array.
13700 (create_new_general_access): For debug stmts just reset value.
13701 (get_stmt_accesses): For accesses within debug stmts just record them
13702 using add_access_to_acc_sites instead of preventing the peeling or
13703 counting them as accesses.
13705 PR middle-end/42233
13706 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
13708 2010-02-19 Richard Guenther <rguenther@suse.de>
13710 PR tree-optimization/42916
13711 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
13714 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
13716 * configure.ac: Replace all uses of changequote in macro arguments
13717 with proper quoting.
13719 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13721 PR middle-end/42233
13722 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
13724 2010-02-19 Richard Guenther <rguenther@suse.de>
13726 PR tree-optimization/42944
13727 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
13728 test for aliasing with errno.
13730 2010-02-19 Jakub Jelinek <jakub@redhat.com>
13732 PR middle-end/42233
13733 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
13734 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
13735 * dojump.c: Include output.h.
13736 (inv): New inline function.
13737 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
13738 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
13739 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
13740 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
13741 argument, pass it down to other calls.
13742 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
13743 add REG_BR_PROB note to the conditional jump.
13744 * cfgexpand.c (add_reg_br_prob_note): Removed.
13745 (expand_gimple_cond): Don't call it, add the probability
13746 as last argument to jumpif_1/jumpifnot_1.
13747 * Makefile.in (dojump.o): Depend on output.h.
13748 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
13750 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
13751 * stmt.c (do_jump_if_equal): Likewise.
13752 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
13753 * loop-unswitch.c (compare_and_jump_seq): Likewise.
13754 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
13756 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
13757 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
13758 jumpifnot_1 callers.
13759 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
13761 (store_expr): Adjust jumpifnot caller.
13762 (store_constructor): Adjust jumpif caller.
13764 PR middle-end/42233
13765 * gimplify.c (gimple_boolify): For __builtin_expect call
13766 gimple_boolify also on its first argument.
13768 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
13770 * configure.ac (gnu-unique-object): Wrap regexps using [] in
13772 (__stack_chk_fail): Ditto. Remove quadrigraphs.
13773 * configure: Regenerated.
13775 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13777 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
13778 lang_hooks.types_compatible_p instead of comptypes.
13780 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
13782 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
13783 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
13784 if __prefer_thumb__ is defined.
13786 2010-02-18 Martin Jambor <mjambor@suse.cz>
13788 PR tree-optimization/43066
13789 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
13790 array with zero-sized element type.
13792 2010-02-18 Jakub Jelinek <jakub@redhat.com>
13794 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
13795 rtx, allocate struct var_loc_node here and return it to the
13796 caller, and only if it is actually needed.
13797 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
13798 move it earlier and return immediately if it returns NULL.
13800 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
13802 * config/sparc/gas.h: New file. Restore
13803 TARGET_ASM_NAMED_SECTION to its ELF default.
13804 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
13805 check !HAVE_GNU_AS.
13806 * config/sparc/sparc.c (sparc_elf_asm_named_section):
13807 Likewise. Add ATTRIBUTE_UNUSED to prototype.
13808 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
13809 after sparc/sysv4.h.
13811 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
13813 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
13815 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
13817 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
13818 patterns from predicated pattern.
13820 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
13823 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
13824 for insn mnemonic suffix.
13826 2010-02-17 Richard Guenther <rguenther@suse.de>
13828 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
13831 2010-02-17 Jakub Jelinek <jakub@redhat.com>
13834 * caller-save.c (save_call_clobbered_regs): If BB ends with
13835 a DEBUG_INSN, move any notes in between last real insn and the last
13836 DEBUG_INSN after the last DEBUG_INSN.
13838 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
13840 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
13841 Fix return type. Fix argument type. Explain meaning of return value.
13843 2010-02-16 Richard Guenther <rguenther@suse.de>
13845 PR tree-optimization/41043
13846 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
13847 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
13849 (vrp_visit_phi_node): ... but only for loop PHI nodes.
13851 2010-02-16 Ira Rosen <irar@il.ibm.com>
13853 PR tree-optimization/43074
13854 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
13855 * tree-vect-loop.c (vect_analyze_loop_operations): Add
13856 vectorizable cycles in hybrid SLP check.
13857 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
13859 2010-02-16 Richard Guenther <rguenther@suse.de>
13861 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
13862 (true_dependence): If memrefs_conflict_p computes must-alias
13863 trust it. Move TBAA check after offset-based disambiguation.
13864 (canon_true_dependence): Likewise.
13866 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
13868 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
13869 * doc/invoke.texi: Document it.
13870 * var-tracking.c: Include toplev.h and params.h.
13871 (vt_find_locations): Return bool indicating success. Compute
13872 hash sizes unconditionally. Check new parameter, report.
13873 (variable_tracking_main_1): Check vt_find_locations results and
13874 retry. Renamed from...
13875 (variable_tracking_main): ... this. New wrapper to preserve
13876 flag_var_tracking_assignments.
13877 * Makefile.in (var-tracking.o): Adjust dependencies.
13879 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
13880 Jakub Jelinek <jakub@redhat.com>
13883 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
13884 if weak_import attribute is present.
13885 * config/darwin.c (machopic_select_section): Likewise.
13887 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
13889 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
13890 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
13891 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
13892 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
13894 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
13897 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13898 Fix argument types.
13900 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
13901 Rewrite text to refer to the names.
13903 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
13905 * config/i386/i386-builtin-types.def
13906 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
13907 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
13908 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
13909 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
13910 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
13911 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
13912 IX86_BUILTIN_VPERMIL2PS256.
13913 (MULTI_ARG_4_DF2_DI_I): Defined.
13914 (MULTI_ARG_4_DF2_DI_I1): Defined.
13915 (MULTI_ARG_4_SF2_SI_I): Defined.
13916 (MULTI_ARG_4_SF2_SI_I1): Defined.
13917 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
13918 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
13919 __builtin_ia32_vpermil2ps256.
13920 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13921 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13922 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
13923 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
13924 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
13925 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
13926 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
13927 CODE_FOR_xop_vpermil2v8sf3.
13928 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
13929 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
13930 * config/i386/xopintrin.h (_mm_permute2_pd): New.
13931 (_mm256_permute2_pd): New.
13932 (_mm_permute2_ps): New.
13933 (_mm256_permute2_ps): New.
13935 2010-02-15 Nick Clifton <nickc@redhat.com>
13937 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
13938 boolean parameters. Use emit_jump_insn when emitting a pop
13939 instruction containing a return insn.
13940 (push): Use 'true' rather than '1' as second parameter to F.
13941 (h8300_expand_prologue): Likewise.
13942 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
13943 (h8300_expand_epilogue): Likewise.
13945 2010-02-15 Richard Guenther <rguenther@suse.de>
13947 PR middle-end/43068
13948 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
13951 2010-02-15 Nick Clifton <nickc@redhat.com>
13953 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
13956 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
13958 * intl.c (fake_ngettext): New function.
13959 * intl.h (fake_ngettext): Declare.
13960 (ngettext): Define macro.
13961 * collect2.c (notice_translated): New function.
13962 (main): Use notice_translated and ngettext.
13963 * collect2.h (notice_translated): Declare.
13965 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
13967 * reorg.c (delete_computation): Comment fixes.
13968 * caller-save.c (setup_save_areas): Idem.
13969 * sel-sched-dump.c (dump_lv_set): Idem.
13972 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13974 * config/s390/s390.c (s390_sched_init): New function.
13975 (TARGET_SCHED_INIT): Target hook defined.
13977 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
13978 Jack Howarth <howarth@bromo.med.uc.edu>
13979 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13982 Partial revert of unintended change in fix for PR41605.
13983 * config/darwin.h: Fix typo.
13984 * config/darwin9.h: Same.
13986 2010-02-11 Jakub Jelinek <jakub@redhat.com>
13988 * c-pch.c (pch_init): Clear v.
13990 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13992 PR middle-end/42930
13993 * graphite-scop-detection.c (graphite_can_represent_scev): Call
13994 graphite_can_represent_init for MULT_EXPR.
13996 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
13998 PR middle-end/42914
13999 PR middle-end/42530
14000 * graphite-sese-to-poly.c (remove_phi): New.
14001 (translate_scalar_reduction_to_array): Call remove_phi.
14003 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14005 PR middle-end/42771
14006 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14007 * graphite-clast-to-gimple.h (gloog): Update declaration.
14008 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14009 * graphite-poly.h (struct poly_bb): Add missing comments.
14010 (struct scop): Add poly_scop_p field.
14011 (POLY_SCOP_P): New.
14012 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14013 * graphite.c (graphite_transform_loops): Build the polyhedral
14014 representation for each scop before code generation.
14015 * sese.c (rename_variables_in_operand): Removed.
14016 (rename_variables_in_expr): Return the renamed expression.
14017 (rename_sese_parameters): New.
14018 * sese.h (rename_sese_parameters): Declared.
14020 2010-02-11 Richard Guenther <rguenther@suse.de>
14022 PR tree-optimization/42998
14023 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14024 POINTER_PLUS_EXPR properly.
14026 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14027 Changpeng Fang <changpeng.fang@amd.com>
14029 PR middle-end/40886
14030 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14031 the cost of an IV candidate when the IV is used in a test against zero.
14033 * gcc.dg/tree-ssa/ivopts-3.c: New.
14035 2010-02-11 Richard Guenther <rguenther@suse.de>
14038 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14039 pointer-vs-decl case by swapping refs. Handle some cases
14040 of pointer-vs-decl disambiguations more conservatively.
14041 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14042 to false after expanding.
14044 2010-02-11 Richard Guenther <rguenther@suse.de>
14047 * gcc.c (process_command): Handle LTO file@offset case more
14050 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14052 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14053 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14055 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14057 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14058 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14059 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14060 Optimize eq/ne comparisons when both arguments are known to be
14062 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14063 Don't mask operands unnecessarily if they are known to be already
14066 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14068 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14071 2010-02-10 Richard Guenther <rguenther@suse.de>
14073 PR tree-optimization/43017
14074 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14075 for wrapping signed arithmetic.
14077 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14080 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14081 if no debug info should be emitted for it.
14083 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14085 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14086 note when flag_exceptions is set.
14088 2010-02-10 Duncan Sands <baldrick@free.fr>
14090 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14092 2010-02-10 Richard Guenther <rguenther@suse.de>
14095 * tree.c (get_unwidened): Handle constants.
14096 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14098 2010-02-10 Martin Jambor <mjambor@suse.cz>
14101 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14102 check for variable argument counts independently.
14104 2010-02-10 Christian Bruel <christian.bruel@st.com>
14107 * config/sh/sh.c (find_barrier): Increase length for non delayed
14108 conditional branches.
14110 2010-02-10 Christian Bruel <christian.bruel@st.com>
14112 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14114 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14116 * builtins.c (set_builtin_user_assembler_name): Also handle
14117 ffs if int is smaller than word.
14119 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14121 PR middle-end/42973
14122 * ira-conflicts.c (get_dup): Remove.
14123 (process_reg_shuffles): Add new parameter. Use it as an
14124 additional guard for copy generation.
14125 (add_insn_allocno_copies): Rewrite.
14127 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14129 * common.opt (fsched2-use-traces): Preserved for backward
14131 * doc/invoke.texi: Remove the documentation about option
14132 -fsched2-use-traces.
14133 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14134 flag_sched2_use_traces.
14135 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14136 the backward compatibility flag section.
14138 2010-02-09 Richard Guenther <rguenther@suse.de>
14140 PR tree-optimization/43008
14141 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14142 make HEAP variables initialized from global memory if they
14143 are not known builtin functions.
14144 (find_func_aliases): Adjust.
14146 2010-02-09 Richard Guenther <rguenther@suse.de>
14148 PR tree-optimization/43000
14149 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14150 arithmetic manually.
14152 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14154 PR tree-optimization/42931
14155 * tree-loop-linear.c (try_interchange_loops): Don't call
14156 double_int_mul if estimated_loop_iterations failed.
14158 2010-02-08 Martin Jambor <mjambor@suse.cz>
14160 PR middle-end/42898
14161 * tree-sra.c (build_accesses_from_assign): Do not mark in
14162 should_scalarize_away_bitmap if stmt has volatile ops.
14163 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14166 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14168 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14170 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14172 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14173 before the pattern.
14175 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14177 PR middle-end/42946
14178 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14180 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14182 PR middle-end/42988
14183 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14184 to unknown_dependence.
14185 (graphite_legal_transform_dr): Handle the unknown_dependence.
14186 (graphite_carried_dependence_level_k): Same.
14188 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14190 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14192 2010-02-07 Richard Guenther <rguenther@suse.de>
14194 PR middle-end/42991
14195 * expr.c (get_inner_reference): Always initialize *pbitsize.
14197 2010-02-07 Richard Guenther <rguenther@suse.de>
14199 PR middle-end/42956
14200 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14201 new ARRAY_REFs on variable size element or minimal index arrays.
14203 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14204 gimple_fold_indirect_ref.
14206 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14209 * arm.c (arm_override_options): Just return if the user has specified
14210 an invalid fpu name.
14212 2010-02-03 Jason Merrill <jason@redhat.com>
14215 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14216 i386_pe_maybe_record_exported_symbol.
14218 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14221 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14222 (pa_delegitimize_address): New function.
14224 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14226 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14227 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14229 2010-02-05 Richard Guenther <rguenther@suse.de>
14232 * lto-streamer-in.c (get_resolution): Deal with references
14233 to undefined functions.
14235 2010-02-05 Richard Guenther <rguenther@suse.de>
14237 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14238 (fold_const_aggregate_ref): Likewise.
14239 (ccp_fold_stmt): Substitute loads.
14240 (maybe_fold_reference): Verify types before substituting.
14242 (fold_gimple_assign): Unshare properly.
14243 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14245 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14247 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14248 for rs6000_gen_cell_microcode.
14250 2010-02-04 Richard Guenther <rguenther@suse.de>
14252 PR rtl-optimization/42952
14253 * dse.c (const_or_frame_p): Remove MEM handling.
14255 2010-02-04 Nick Clifton <nickc@redhat.com>
14257 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14258 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14259 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14260 (mn10300_asm_output_mi_thunk): New function.
14261 (mn10300_can_output_mu_thunk): New function.
14262 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14263 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14264 (FUNCTION_ARG): Delete incorrect comment.
14266 2010-02-03 Jason Merrill <jason@redhat.com>
14269 * fold-const.c (operand_equal_p): Handle erroneous types.
14271 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14273 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14275 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14277 PR rtl-optimization/42941
14278 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14281 2010-02-03 Jason Merrill <jason@redhat.com>
14284 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14286 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14289 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14290 (cselib_reset_table): Renamed from...
14291 (cselib_reset_table_with_next_value): ... this.
14292 (cselib_get_next_uid): Renamed from...
14293 (cselib_get_next_unknown_value): ... this.
14294 * cselib.c (next_uid): Renamed from...
14295 (next_unknown_value): ... this.
14296 (cselib_clear_table): Adjust.
14297 (cselib_reset_table): Adjust. Renamed from...
14298 (cselib_reset_table_with_next_value): ... this.
14299 (cselib_get_next_uid): Adjust. Renamed from...
14300 (cselib_get_next_unknown_value): ... this.
14301 (get_value_hash): Use hash.
14302 (cselib_hash_rtx): Likewise.
14303 (new_cselib_val): Adjust. Set and dump uid.
14304 (cselib_lookup_mem): Pass next_uid as hash.
14305 (cselib_subst_to_values): Likewise.
14306 (cselib_log_lookup): Dump uid.
14307 (cselib_lookup): Pass next_uid as hash. Adjust.
14308 (cselib_process_insn): Adjust.
14309 (cselib_init): Initialize next_uid.
14310 (cselib_finish): Adjust.
14311 (dump_cselib_table): Likewise.
14312 * dse.c (canon_address): Dump value uid.
14313 * print-rtl.c (print_rtx): Print value uid.
14314 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14316 (dv_uid): New function, sort of renamed from...
14317 (dv_htab_hash): ... this, reimplemented in terms of it and...
14318 (dv_uid2hash): ... this. New.
14319 (variable_htab_eq): Drop excess assertions.
14320 (tie_break_pointers): Removed.
14321 (canon_value_cmp): Compare uids.
14322 (variable_post_merge_New_vals): Print uids.
14323 (vt_add_function_parameters): Adjust.
14324 (vt_initialize): Reset table. Adjust.
14326 2010-02-03 Richard Guenther <rguenther@suse.de>
14328 PR tree-optimization/42944
14329 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14330 (call_may_clobber_ref_p_1): Likewise. Properly handle
14331 malloc and calloc clobbering errno.
14333 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14335 * doc/invoke.texi: Fix name of sched1 dump.
14337 * opts.c (decode_options): Set flag_tree_switch_conversion
14338 only conditionally on optimize >= 2.
14340 * gcse.c: Assorted comment fixes in pass description.
14342 2010-02-03 Anthony Green <green@moxielogic.com>
14344 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14345 nop padding in order to maintain alignment of storage location of
14346 target function address.
14347 (moxie_trampoline_init): Store target function address at newly
14349 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14351 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14353 2010-02-03 Richard Guenther <rguenther@suse.de>
14355 PR middle-end/42927
14356 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14358 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14360 * config.gcc: Reenable check for obsolete targets.
14361 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14362 mips-sgi-irix6.[0-4]*.
14364 2010-02-02 Nick Clifton <nickc@redhat.com>
14366 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14367 constant size of 4 as being the same as 0.
14368 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14369 can take values in the range 0..4.
14371 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14374 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14375 as _darwin10_Unwind_FindEnclosingFunction().
14376 * libgcc-libsystem.ver: New.
14378 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14381 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14382 implicitly set registers.
14384 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14386 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14387 (arm_override_options): Allow automatic selection of the thread
14388 pointer register if thumb2.
14389 (legitimize_pic_address): Improve code sequences for Thumb2.
14390 (arm_call_tls_get_addr): Likewise.
14391 (legitimize_tls_address): Likewise.
14392 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14393 (pic_load_addr_32bit): ... this. New named pattern.
14394 * thumb2.md (pic_load_addr_thumb2): Delete.
14395 (pic_load_dot_plus_four): Delete.
14396 (tls_load_dot_plus_four): New named pattern.
14398 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14401 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14402 Document fix for TLS bug.
14404 2010-01-31 Richard Guenther <rguenther@suse.de>
14406 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14407 conservatively correct.
14409 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14413 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14415 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14417 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14419 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14421 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14423 * config.gcc: Adjust order of makefile fragments for mingw targets.
14425 2010-01-31 Richard Guenther <rguenther@suse.de>
14427 PR middle-end/42898
14428 * gimplify.c (gimplify_init_constructor): For volatile LHS
14429 initialize a temporary.
14431 2010-01-31 Matthias Klose <doko@ubuntu.com>
14433 * configure.ac: Fix __stack_chk_fail check for cross builds configured
14435 * configure: Regenerate.
14437 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
14439 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
14440 the same alias set and their sizes different constantness.
14441 (aliasing_component_refs_p): Revert 2009-10-24 change.
14443 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14445 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
14448 2010-01-29 Richard Guenther <rguenther@suse.de>
14450 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
14451 Assert we successfully updated the call.
14453 2010-01-29 Jakub Jelinek <jakub@redhat.com>
14455 PR rtl-optimization/42889
14456 * df.h (df_set_bb_dirty_nonlr): New prototype.
14457 * df-core.c (df_set_bb_dirty_nonlr): New function.
14458 * df-scan.c (df_insn_rescan): Call it instead of
14459 df_set_bb_dirty for DEBUG_INSNs.
14461 2010-01-29 Richard Guenther <rguenther@suse.de>
14463 PR middle-end/37448
14464 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
14465 quadratic behavior in most cases.
14467 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
14470 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
14471 in the call to gen_x86_movsicc_0_m1.
14473 2010-01-28 Richard Guenther <rguenther@suse.de>
14475 PR tree-optimization/42871
14476 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
14478 2010-01-28 Richard Guenther <rguenther@suse.de>
14480 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
14481 into call arguments.
14483 2010-01-28 Richard Guenther <rguenther@suse.de>
14485 PR middle-end/42883
14486 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
14487 the forwarder if the destination is an EH landing pad.
14489 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
14491 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
14492 block list passed to gimple_duplicate_sese_tail.
14493 (parallelize_loops): Avoid parallelization when the function
14494 has_nonlocal_label.
14495 Avoid parallelization when the preheader is IRREDUCIBLE.
14496 Try to optimize when estimated_loop_iterations_int is unresolved.
14497 Add the loop's location to the dump file.
14498 * tree-cfg.c (add_phi_args_after_redirect): Remove.
14499 (gimple_duplicate_sese_tail): Remove the check for the latch.
14500 Redirect nexits to the exit block.
14501 Remove handling of the incoming edges to the latch.
14502 Redirect the backedge from the copied latch to the exit bb.
14504 2010-01-28 Michael Matz <matz@suse.de>
14507 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
14508 Wrap force_reg into a sequence, emit it before user.
14510 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
14512 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
14514 (arm_legacy_rev): Likewise.
14515 (thumb_legacy_rev): Likewise.
14517 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14519 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
14520 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
14521 on MEM's address failed, try avoid_constant_pool_reference and
14522 recurse if it returned something different.
14523 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
14524 address, try avoid_constant_pool_reference and recurse if it
14525 returned something different.
14526 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
14527 address and avoid_constant_pool_reference returned something
14528 different, don't set have_address.
14530 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
14533 * var-tracking.c (val_store): Add modified argument, obey it.
14535 (count_uses): Move down logging of main.
14536 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
14537 don't need resolution.
14538 (emit_notes_in_bb): Likewise.
14540 2010-01-27 Richard Guenther <rguenther@suse.de>
14542 PR middle-end/42878
14543 * tree-inline.c (remap_decl): Delay remapping of SSA name
14544 default definitions until we need them.
14546 2010-01-27 Jakub Jelinek <jakub@redhat.com>
14548 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14549 (rs6000_delegitimize_address): New function.
14551 * config/s390/s390.c (s390_delegitimize_address): Call
14552 delegitimize_mem_from_attrs.
14554 PR middle-end/42874
14555 * tree-inline.c (cannot_copy_type_1): Removed.
14556 (copy_forbidden): Don't forbid copying of functions containing
14557 records/unions with variable length fields.
14559 2010-01-27 Christian Bruel <christian.bruel@st.com>
14563 * config/sh/sh.c (find_barrier): Increase length for non delayed
14564 conditional branches.
14566 2010-01-27 Matthias Klose <doko@ubuntu.com>
14568 * configure.ac (gnu-unique-object): Fix ldd version check.
14569 * configure: Regenerate.
14571 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14573 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
14575 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
14576 Test for HAVE_GNU_AS value.
14578 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14580 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
14581 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
14582 INT64_TYPE): Define.
14583 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
14584 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
14585 INT_LEAST64_TYPE): Define.
14586 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
14587 UINT_LEAST64_TYPE): Define.
14588 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
14589 INT_FAST64_TYPE): Define.
14590 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
14591 UINT_FAST64_TYPE): Define.
14592 (INTMAX_TYPE, UINTMAX_TYPE): Define.
14593 (INTPTR_TYPE, UINTPTR_TYPE): Define.
14594 (SIG_ATOMIC_TYPE): Define.
14596 2010-01-26 Richard Guenther <rguenther@suse.de>
14598 * df-scan.c (df_scan_set_bb_info): Remove assert.
14599 (df_insn_rescan_debug_internal): Merge asserts.
14600 (df_install_ref): Likewise.
14601 (df_mark_reg): Use bitmap_set_range.
14602 (df_hard_reg_used_p): Remove assert.
14603 (df_hard_reg_used_count): Likewise.
14605 2010-01-26 Richard Guenther <rguenther@suse.de>
14607 PR rtl-optimization/42685
14608 * web.c (web_main): Ignore DEBUG_INSNs.
14610 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
14612 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
14614 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
14615 Fix types of fndecl and arglist parameters.
14617 2010-01-26 Richard Guenther <rguenther@suse.de>
14619 PR middle-end/42806
14620 * tree-eh.c (unsplit_eh): Skip debug insns.
14622 2010-01-26 Richard Guenther <rguenther@suse.de>
14624 PR tree-optimization/42250
14625 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
14627 2010-01-26 Jakub Jelinek <jakub@redhat.com>
14630 * omp-low.c (expand_omp_sections): Only use single_pred if
14631 l2_bb is single_pred_p.
14633 2010-01-25 Christian Bruel <christian.bruel@st.com>
14636 * config/sh/sh.c (find_barrier): Increase length for non delayed
14637 conditional branches.
14638 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
14640 2010-01-24 David S. Miller <davem@davemloft.net>
14642 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
14643 define if not using GAS.
14644 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14645 Likewise. Delete SECTION_MERGE code, which is only applicable
14648 2010-01-24 Mark Mitchell <mark@codesourcery.com>
14651 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
14652 mangling of va_list in system headers.
14654 2010-01-23 Toon Moene <toon@moene.org>
14656 * tree-predcom.c (combine_chains): Return NULL, not false.
14658 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
14660 * tree-loop-distribution.c (distribute_loop): Fix declaration and
14661 initialization of variable res to agree with return type.
14663 2010-01-22 Steve Ellcey <sje@cup.hp.com>
14665 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
14666 * tree-sra.c: Add include of expr.h.
14668 2010-01-22 Jakub Jelinek <jakub@redhat.com>
14670 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
14671 insert the debug stmt on the single non-EH edge from the stmt.
14673 2010-01-22 Richard Henderson <rth@redhat.com>
14676 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
14677 the RHS until after generate_subtree_copies has insertted its
14678 code before the current statement.
14680 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
14682 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
14684 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
14686 2010-01-21 Martin Jambor <mjambor@suse.cz>
14688 PR tree-optimization/42585
14689 * tree-sra.c (struct access): New field grp_total_scalarization.
14690 (dump_access): Dump the new field.
14691 (should_scalarize_away_bitmap): New variable.
14692 (cannot_scalarize_away_bitmap): Likewise.
14693 (sra_initialize): Allocate new bitmaps.
14694 (sra_deinitialize): Free new bitmaps.
14695 (create_access_1): New function.
14696 (create_access): Parts moved to create_access_1.
14697 (type_consists_of_records_p): New function.
14698 (completely_scalarize_record): Likewise.
14699 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
14700 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
14701 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
14703 (analyze_all_variable_accesses): Completely scalarize small eligible
14706 2010-01-21 Martin Jambor <mjambor@suse.cz>
14708 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
14710 2010-01-21 Andrew Haley <aph@redhat.com>
14712 * gcc.c (process_command): Move lang_specific_driver before
14713 setting cc_libexec_prefix.
14715 2010-01-21 Richard Guenther <rguenther@suse.de>
14717 PR middle-end/19988
14718 * fold-const.c (negate_expr_p): Pretend only negative
14719 real constants are easily negatable.
14721 2010-01-20 Janis Johnson <janis187@us.ibm.com>
14722 Jason Merrill <jason@redhat.com>
14724 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
14725 (TYPE_TRANSPARENT_AGGR): this, for union and record.
14726 * calls.c (initialize argument_information): Handle it.
14727 * c-common.c (handle_transparent_union_attribute): Use new name.
14728 * c-decl.c (finish_struct): Ditto.
14729 * c-typeck.c (type_lists_compatible_p): Ditto.
14730 (convert_for_assignment): Use new name and also handle record.
14731 * function.c (aggregate_value_p): Handle it.
14732 (pass_by_reference): Ditto.
14733 (assign_parm_data_types): Ditto.
14734 * print-tree.c (print_node): Ditto.
14735 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
14736 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
14737 * tree.c (first_field): New fn.
14739 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
14742 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
14743 even when linking statically, for now.
14745 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14748 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
14749 without a cselib val.
14750 (count_uses): Accept MO_VAL_SET with no val on stores.
14751 (add_stores): Likewise.
14753 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14755 * var-tracking.c (check_value_val): Add a compile time assertion.
14756 (dv_is_decl_p): Simplify.
14757 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
14758 gcc_assert if ENABLE_CHECKING.
14760 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
14763 * var-tracking.c: Include tree-flow.h.
14764 (mem_dies_at_call): New.
14765 (dataflow_set_preserve_mem_locs): Use it.
14766 (dataflow_set_remove_mem_locs): Likewise.
14767 (dump_var): Renamed from dump_variable. Adjust all callers.
14768 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
14769 * Makefile.in (var-tracking.o): Adjust deps.
14771 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
14773 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
14775 2010-01-20 Richard Guenther <rguenther@suse.de>
14777 PR tree-optimization/42717
14778 * tree-ssa-dce.c (get_live_post_dom): Remove.
14779 (forward_edge_to_pdom): Take an arbitrary edge to copy
14780 degenerate PHI args from.
14781 (remove_dead_stmt): Use the first post-dominator even if it
14782 does not contain live statements as redirection destination.
14784 2010-01-20 Richard Guenther <rguenther@suse.de>
14786 * tree-inline.c (estimate_num_insns): Handle EH builtins.
14788 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14790 * sel-sched.c (create_speculation_check): Remove set but not used
14792 (try_transformation_cache): Remove set but not used variable ds.
14793 (calculate_privileged_insns): Remove set but not used variables
14794 cur_insn and min_spec_insn.
14795 (find_best_expr): Remove set but not used variable avail_n.
14796 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
14798 * cgraphunit.c (assemble_thunk): Remove set but not used variable
14800 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
14801 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
14802 new_scop_exit_edge.
14804 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
14807 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
14808 cpu types. Add support for *-sse3 cpu types.
14809 (x86_64-*-*): Ditto.
14811 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14813 PR middle-end/42803
14814 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
14815 argument, call initializer_constant_valid_p_1 instead of
14816 initializer_constant_valid_p, pass CACHE to it, return NULL
14817 immediately if first call returns NULL.
14818 (initializer_constant_valid_p_1): New function.
14819 (initializer_constant_valid_p): Use it.
14821 2010-01-20 Thomas Quinot <quinot@adacore.com>
14823 * tree.def (PLACEHOLDER_EXPR): Fix comment.
14825 2010-01-20 Jakub Jelinek <jakub@redhat.com>
14827 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
14828 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
14829 (loc_list_from_tree): Don't handle unsigned division. Handle
14830 signed modulo using DW_OP_{over,over,div,mul,minus}.
14831 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
14832 modulo instead of signed.
14834 2010-01-20 DJ Delorie <dj@redhat.com>
14836 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
14838 (h8300_emit_stack_adjustment): Propogate it.
14840 (h8300_expand_prologue): Likewise.
14841 (h8300_expand_epilogue): Likewise.
14843 2010-01-19 Michael Matz <matz@suse.de>
14845 PR tree-optimization/41783
14846 * tree-data-ref.c (toplevel): Include flags.h.
14847 (dump_data_dependence_relation): Also dump the inputs if the
14848 result will be unknown.
14849 (split_constant_offset_1): Look through some conversions.
14850 * tree-predcom.c (determine_roots_comp): Restart a new chain if
14851 the offset from last element is too large.
14852 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
14853 (reassociate_to_the_same_stmt): Handle vector registers.
14854 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
14855 (e.g. conversions).
14856 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
14857 wide_prolog_niters argument, emit widening instructions.
14858 (vect_do_peeling_for_alignment): Adjust caller, use widened
14859 variant of the iteration cound.
14860 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
14862 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14865 * config/arm/neon-testgen.m (emit_automatics): New parameter
14866 features. Adjust for Fixed_return_reg feature.
14867 (test_intrinsic): Call emit_automatics with new feature.
14868 * config/arm/neon.ml: Update copyright years.
14869 (features): New Fixed_return_reg feature.
14870 (ops): Update feature for Vget_low.
14872 2010-01-19 Jakub Jelinek <jakub@redhat.com>
14874 PR tree-optimization/42719
14875 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
14879 * fwprop.c (all_uses_available_at): Return false if def_set dest
14880 is a REG that is used in def_insn.
14882 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
14884 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
14886 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
14887 Add argument names.
14889 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
14891 * target.h (struct gcc_target) <secondary_reload>: Change type
14892 of last argument to secondary_reload_info *.
14894 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
14897 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
14898 memory references with unaligned offsets. Remove CQImode handling.
14899 (unaligned_memory_operand): Return 1 for memory references with
14900 unaligned offsets. Remove CQImode handling.
14902 2010-01-18 Richard Guenther <rguenther@suse.de>
14904 PR middle-end/39954
14905 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
14908 2010-01-18 Richard Guenther <rguenther@suse.de>
14910 PR tree-optimization/42781
14911 * tree-ssa-structalias.c (find_what_var_points_to): Skip
14912 restrict processing only if the original variable was artificial.
14914 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
14916 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
14917 find number of popped argument bytes.
14919 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
14920 Fix the text that describes the return value for invalid insns.
14922 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
14924 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
14925 Clarify what 'cost of the -dependence' is. Fix quoting.
14927 * toplev.c (default_get_pch_validity): Rename argument to "sz".
14928 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
14930 2010-01-17 Jakub Jelinek <jakub@redhat.com>
14932 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14933 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
14935 2010-01-17 Richard Guenther <rguenther@suse.de>
14937 PR middle-end/42248
14938 * function.c (split_complex_args): Take a VEC to modify.
14939 (assign_parms_augmented_arg_list): Build a VEC instead of
14940 a chain of PARM_DECLs.
14941 (assign_parms_unsplit_complex): Take a VEC of arguments.
14942 Do not fixup unmodified parms.
14943 (assign_parms): Deal with the VEC.
14944 (gimplify_parameters): Likewise.
14946 2010-01-17 Richard Guenther <rguenther@suse.de>
14948 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
14949 node existence check.
14950 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
14951 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
14952 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
14953 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
14954 (gimple_execute_on_growing_pred): Likewise.
14956 2010-01-17 Richard Guenther <rguenther@suse.de>
14958 PR tree-optimization/42773
14959 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
14960 (compute_antic_aux): Likewise.
14961 (compute_partial_antic_aux): Likewise.
14963 2010-01-17 Jie Zhang <jie.zhang@analog.com>
14966 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
14969 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
14971 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
14974 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
14975 Fix markup for strict argument.
14977 (TARGET_SCHED_REORDER2): Fix argument types.
14979 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
14980 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
14982 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
14983 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
14985 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
14988 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
14989 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
14990 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
14991 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
14992 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
14994 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
14996 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
14998 (TARGET_ASM_RELOC_RW_MASK): Add return type.
14999 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15001 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15003 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15006 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15008 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15009 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15011 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15013 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15015 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15016 referring to it. Fix language.
15018 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15020 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15022 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15024 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15026 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15027 '@var{stream}. Remove stray 'and'.
15029 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15031 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15033 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15035 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15036 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15038 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15039 Fix description of return value.
15040 Rename argument "sz" to "len."
15042 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15043 Clarify meaning of 'true' return value.
15045 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15047 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15048 rep_mode versus mode_rep.
15050 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15052 (TARGET_BUILTIN_DECL): Fix name.
15054 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15056 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15058 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15060 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15062 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15064 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15067 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15068 Rename argument tm_fn to md_fn.
15070 (TARGET_OPTION_PRINT): Fix argument list.
15072 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15075 * config/i386/i386.c (ix86_fixup_binary_operands):
15076 Revert FMA4 fixup of operands.
15078 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15081 * Makefile.in (write_entries_to_file, install-plugin):
15082 Use \012 instead of \n with tr.
15084 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15086 * configure.ac (HAVE_AS_REF): New C macro.
15087 * configure: Regenerate.
15088 * config.in: Likewise.
15089 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15091 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15094 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15096 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15098 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15100 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15102 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15104 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15106 (TARGET_BINDS_LOCAL_P): Fix argument type.
15108 (TARGET_ASM_FILE_END): Use prototype.
15110 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15112 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15114 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15116 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15118 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15119 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15121 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15122 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15124 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15125 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15126 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15127 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15129 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15131 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15133 (TARGET_INIT_BUILTINS): Use prototype.
15135 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15136 Put 'const char *' in braces. Fix parameter types.
15137 (TARGET_INVALID_CONVERSION): Fix parameter types.
15138 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15139 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15141 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15144 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15146 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15148 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15150 * doc/tm.texi (TARGET_HELP): Fix return type.
15152 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15153 in braces. Fix argument types.
15155 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15157 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15159 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15161 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15162 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15164 (TARGET_MANGLE_TYPE): Fix argument types.
15166 (TARGET_IRA_COVER_CLASSES): Use prototype.
15168 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15170 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15172 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15174 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15176 (TARGET_CALLEE_COPIES): Fix argument types.
15178 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15180 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15182 (TARGET_FUNCTION_VALUE): Fix argument types.
15184 (TARGET_RETURN_IN_MSB): Fix argument type.
15186 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15188 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15190 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15192 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15193 agree with return type.
15195 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15197 2010-01-15 Jing Yu <jingyu@google.com>
15199 PR rtl-optimization/42691
15200 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15201 a pseudo to a constant and are merged, and adjust comments.
15203 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15205 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15207 2010-01-15 Richard Guenther <rguenther@suse.de>
15209 PR middle-end/42739
15210 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15211 labels of computed or non-local gotos to the destination.
15212 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15213 landing pad label is the first label.
15215 2010-01-15 Richard Guenther <rguenther@suse.de>
15217 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15219 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15222 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15223 to allow generation of the xssqrtdp instruction on power7.
15224 (sqrtdf2_fpr): Ditto.
15226 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15228 PR middle-end/42674
15229 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15230 functions with noreturn attribute.
15233 * varasm.c (declare_weak): Add weak attribute to decl if it
15234 doesn't have one already.
15235 (assemble_external): Only add decls to weak_decls if they also
15236 have weak attribute.
15238 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15240 * var-tracking.c (var_reg_delete): Don't delete the association
15241 between REGs and values or one-part variables if the register
15244 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15247 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15248 because its first operand is a non-localized variable.
15250 2010-01-14 Martin Jambor <mjambor@suse.cz>
15252 PR tree-optimization/42706
15253 * tree-sra.c (encountered_recursive_call): New variable.
15254 (encountered_unchangable_recursive_call): Likewise.
15255 (sra_initialize): Initialize both new variables.
15256 (callsite_has_enough_arguments_p): New function.
15257 (scan_function): Call decl and flags check only for IPA-SRA, check
15258 whether there is a recursive call and whether it has enough arguments.
15259 (all_callers_have_enough_arguments_p): New function.
15260 (convert_callers): Look for recursive calls only when
15261 encountered_recursive_call is set.
15262 (ipa_early_sra): Bail out either if
15263 !all_callers_have_enough_arguments_p or
15264 encountered_unchangable_recursive_call.
15266 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15268 * sel-sched.c: Add 2010 to copyright years.
15269 * sel-sched-ir.c: Likewise.
15270 * sel-sched-ir.h: Likewise.
15272 2010-01-14 Martin Jambor <mjambor@suse.cz>
15274 PR tree-optimization/42714
15275 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15276 constructors specially.
15278 2010-01-14 Andi Kleen <ak@linux.intel.com>
15280 * config/i386/drivers-i386.c (detect_caches_intel):
15281 Add l2sizekb parameter and fill in.
15282 (host_detect_local_cpu): Add l2sizekb, fill in.
15283 Add Atom small cache heuristic.
15285 2010-01-14 Andi Kleen <ak@linux.intel.com>
15287 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15288 Add level3 parameter and fill in.
15289 (detect_caches_intel): Handle level3 cache.
15291 2010-01-14 Andi Kleen <ak@linux.intel.com>
15293 * config/i386/drivers-i386.c (host_detect_local_cpu):
15294 Fix core duo detection.
15296 2010-01-14 Andi Kleen <ak@linux.intel.com>
15298 * config/i386/drivers-i386.c (host_detect_local_cpu):
15299 Fix Atom detection.
15301 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15303 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15304 (rs6000_variable_issue_1): this. Use...
15305 (rs6000_variable_issue): here. Reimplement. Print debug info.
15307 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15309 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15310 sel_restore_notes. Update all callers. Call reemit_notes
15313 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15315 PR rtl-optimization/42246
15316 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15319 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15321 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15322 all successors is the same as number of successors in current region.
15324 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15326 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15327 to rename is not separable. Otherwise check that its LHS is not NULL.
15329 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15331 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15333 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15335 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15336 available registers when failed to discover LHS register class.
15337 Fix indentation. Update comment.
15339 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15340 Alexander Monakov <amonakov@ispras.ru>
15342 PR rtl-optimization/42389
15343 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15345 (advance_state_on_fence): Likewise.
15346 (sel_target_adjust_priority): Print debug output only when
15347 sched_verbose >= 4, not 2.
15348 (get_expr_cost): Do not issue all unique insns on the next cycle.
15349 (fill_insns): Initialize can_issue_more from the value saved
15351 * sel-sched-ir.c (flist_add): New parameter issue_more.
15352 Init FENCE_ISSUE_MORE with it.
15353 (merge_fences): Likewise.
15354 (init_fences): Update call to flist_add.
15355 (add_to_fences, add_clean_fence_to_fences)
15356 (add_dirty_fence_to_fences): Likewise.
15357 (move_fence_to_fences): Update call to merge_fences.
15358 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15360 * sel-sched-ir.h (struct _fence): New field issue_more.
15361 (FENCE_ISSUE_MORE): New accessor macro.
15363 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15365 PR rtl-optimization/42388
15366 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15367 that have no predecessors nor successors. Do not call move_bb_info
15368 for empty blocks outside of current region.
15370 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15372 PR rtl-optimization/42294
15373 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15374 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15375 originators' originators.
15377 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15379 PR rtl-optimization/39453
15380 PR rtl-optimization/42246
15381 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15383 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15385 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15386 Alexander Monakov <amonakov@ispras.ru>
15388 PR middle-end/42245
15389 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15390 (maybe_tidy_empty_bb): ... here. Make static. Add new
15391 argument. Update all callers.
15392 (tidy_control_flow): ... and here. Recompute topological order
15393 of basic blocks in region if necessary.
15394 (sel_redirect_edge_and_branch): Change return type. Return true
15395 if topological order might have been invalidated.
15396 (purge_empty_blocks): Export and move from...
15397 * sel-sched.c (purge_empty_blocks): ... here.
15398 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15399 (maybe_tidy_empty_bb): Delete prototype.
15400 (purge_empty_blocks): Declare.
15402 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15404 PR rtl-optimization/42249
15405 * sel-sched.c (try_replace_dest_reg): When chosen register
15406 and original register is the same, do not bail out early, but
15407 still check all original insns for validity of replacing destination
15408 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15411 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15414 Port from no-undefined-overflow branch:
15415 2009-03-09 Richard Guenther <rguenther@suse.de>
15417 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15419 2010-01-14 Richard Guenther <rguenther@suse.de>
15422 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15424 2010-01-14 Ira Rosen <irar@il.ibm.com>
15426 PR tree-optimization/42709
15427 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15428 as scalar type in creation of constant vector operand.
15430 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15433 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
15434 (check-parallel-%): Match `testsuite' directory component only
15437 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
15439 PR translation/39521
15440 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
15443 2010-01-13 Richard Guenther <rguenther@suse.de>
15445 PR tree-optimization/42730
15446 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
15449 2010-01-13 Steve Ellcey <sje@cup.hp.com>
15452 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
15453 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
15456 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
15458 * config/bfin/libgcc-bfin.ver: Regenerate based on current
15459 libgcc-std.ver. Add entries for ___smulsi3_highpart and
15460 ___umulsi3_highpart.
15462 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
15463 rather than schedule_insns if the pass is enabled.
15465 2010-01-13 Martin Jambor <mjambor@suse.cz>
15467 PR tree-optimization/42704
15468 * tree-sra.c (sra_modify_assign): Do not delete assignments to
15471 2010-01-13 Martin Jambor <mjambor@suse.cz>
15473 PR tree-optimization/42703
15474 * tree-sra.c (analyze_access_subtree): Check that we can build a
15475 reference to the original data within the aggregate.
15477 2010-01-13 Richard Guenther <rguenther@suse.de>
15479 PR tree-optimization/42705
15480 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
15482 2010-01-13 Richard Guenther <rguenther@suse.de>
15484 PR middle-end/42716
15485 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
15487 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15490 * var-tracking.c (values_to_unmark): New variable.
15491 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15492 values_to_unmark vector. Moved body to...
15493 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15494 instead queue it into values_to_unmark vector.
15495 (vt_find_locations): Free values_to_unmark vector.
15497 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
15499 * config/s390/s390.c (override_options): Set
15500 default of max-pending-list-length to 256
15502 2010-01-13 Richard Guenther <rguenther@suse.de>
15505 * tree-pass.h (PROP_gimple_lcx): New.
15506 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
15507 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
15508 before the final cleanup_eh.
15509 (dump_properties): Dump PROP_gimple_lcx.
15510 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
15511 (tree_lower_complex_O0): Remove.
15512 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
15513 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
15514 tree_lower_complex, schedule TODO_update_ssa.
15515 * lto-streamer-out.c (output_function): Stream the functions
15517 * lto-streamer-in.c (input_function): Likewise.
15518 (lto_read_body): Do not override them here.
15520 2010-01-12 Joseph Myers <joseph@codesourcery.com>
15523 * c-typeck.c (build_c_cast): Fold value cast to union type before
15524 wrapping it in a CONSTRUCTOR.
15526 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15528 PR rtl-optimization/42699
15529 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
15532 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15534 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15535 SUBTARGET_WARN_UNUSED_SPEC): Move ...
15536 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
15537 SUBTARGET_WARN_UNUSED_SPEC): ... here
15538 * config/mips/iris5.h (LIBGCC_SPEC): Define.
15540 2010-01-12 Julian Brown <julian@codesourcery.com>
15542 * config/arm/neon-schedgen.ml (Utils): Don't try to
15543 open missing module.
15544 (find_with_result): New.
15546 2010-01-12 Jakub Jelinek <jakub@redhat.com>
15549 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
15550 sharing when canonicalizing ({lt,ge}u (plus a b) b).
15552 PR tree-optimization/42645
15553 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
15554 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
15555 decl_map, set processing_debug_stmt to -1 and return name without
15558 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
15560 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
15561 binutils version, and reword target configuration description.
15563 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15565 * config/avr/avr.h (LINKER_NAME): Remove.
15567 2010-01-11 Janis Johnson <janis187@us.ibm.com>
15570 * config/rs6000/rs6000.c (rs6000_override_options): On targets
15571 that support VSX, warn for -mno-altivec if vsx is not disabled,
15574 2010-01-11 Joseph Myers <joseph@codesourcery.com>
15575 Shujing Zhao <pearly.zhao@oracle.com>
15577 PR translation/42469
15578 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
15579 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
15580 character between option name and help text.
15581 * c.opt (imultilib): Likewise.
15583 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
15585 * lto-streamer-out.c (output_unreferenced_globals): Output static
15588 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
15590 PR rtl-optimization/42621
15591 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
15592 optimizing for size.
15593 (duplicate_computed_gotos): Remove now-redundant check.
15595 2010-01-10 Steve Ellcey <sje@cup.hp.com>
15598 * configure.ac: Save and restore LDFLAGS and LIBS
15599 * configure: Regenerate.
15601 2010-01-10 Richard Guenther <rguenther@suse.de>
15603 PR middle-end/42667
15604 * builtins.c (fold_builtin_strlen): Add type argument and
15605 convert the resulting length to it.
15606 (fold_builtin_1): Adjust.
15608 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15610 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
15611 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
15613 (num_insns_constant_wide): Adjust for that change.
15615 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15618 * web.c (union_defs): Add used argument, to combine uses of
15619 uninitialized regs.
15620 (entry_register): Adjust type and tests of used argument.
15621 (web_main): Widen used for new use. Pass it to union_defs.
15622 * df.h (union_defs): Adjust prototype.
15624 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15627 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
15628 uses in new incoming argument. Free body.
15629 (reset_debug_uses_in_loop): New.
15630 (analyze_insn_to_expand_var): Call the latter if the former found
15631 anything. Fix whitespace. Reject invalid dest overlaps before
15632 going through all insns in the loop.
15634 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15637 * haifa-sched.c (dying_use_p): Debug insns don't count.
15639 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15641 PR middle-end/42363
15642 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
15643 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
15644 (verify_gimple_call): Reject LHS in noreturn calls.
15646 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15650 * tree-vect-loop-manip.c (adjust_info): New type.
15651 (adjust_vec): New pointer to vector.
15652 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
15653 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
15654 (slpeel_update_phis_for_duplicate_loop): Use them.
15655 (slpeel_update_phi_nodes_for_guard1): Likewise.
15656 (slpeel_update_phi_nodes_for_guard2): Likewise.
15657 (slpeel_tree_peel_loop_to_edge): Likewise.
15658 (vect_update_ivs_after_vectorizer): Likewise.
15660 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15662 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
15663 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
15665 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
15667 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
15668 bogus uninitialized warning.
15670 2010-01-09 Richard Guenther <rguenther@suse.de>
15672 PR middle-end/42512
15673 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
15674 the evolution is compatible with the initial condition.
15676 2010-01-09 Jakub Jelinek <jakub@redhat.com>
15678 * gcc.c (process_command): Update copyright notice dates.
15679 * gcov.c (print_version): Likewise.
15680 * gcov-dump.c (print_version): Likewise.
15681 * mips-tfile.c (main): Likewise.
15682 * mips-tdump.c (main): Likewise.
15684 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
15687 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
15689 (rotlhi3_8): Delete.
15691 (rotlsi3_8): Delete.
15692 (rotlsi3_16): Delete.
15693 (rotlsi3_24): Delete.
15694 (rotl<mode>3): New.
15695 (*rotw<mode>3): New.
15696 (*rotb<mode>3): New.
15697 * config/avr/avr.c (avr_rotate_bytes): New function.
15698 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
15700 2010-01-08 Steve Ellcey <sje@cup.hp.com>
15703 * configure.ac: Modify -rdynamic check.
15704 * configure: Regenerate.
15706 2010-01-08 DJ Delorie <dj@redhat.com>
15708 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
15709 register popping order.
15711 2010-01-08 Richard Guenther <rguenther@suse.de>
15714 * c.opt (fsigned-char): Also let LTO handle this option.
15715 (funsigned-char): Likewise.
15717 2010-01-07 Richard Guenther <rguenther@suse.de>
15719 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
15720 (gimple_op): Likewise.
15721 (gimple_op_ptr): Likewise.
15722 (gimple_assign_set_lhs): Remove gcc_assert.
15723 (gimple_assign_set_rhs1): Likewise.
15724 (gimple_assign_set_rhs2): Likewise.
15725 (gimple_call_set_lhs): Likewise.
15726 (gimple_call_set_fn): Likewise.
15727 (gimple_call_set_fndecl): Likewise.
15728 (gimple_call_fndecl): Likewise.
15729 (gimple_call_return_type): Likewise.
15730 (gimple_call_set_chain): Likewise.
15731 (gimple_call_num_args): Likewise.
15732 (gimple_call_set_arg): Likewise.
15733 (gimple_cond_set_code): Likewise.
15734 (gimple_cond_set_lhs): Likewise.
15735 (gimple_cond_set_rhs): Likewise.
15736 (gimple_cond_set_true_label): Likewise.
15737 (gimple_cond_set_false_label): Likewise.
15738 (gimple_label_set_label): Likewise.
15739 (gimple_goto_set_dest): Likewise.
15740 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
15741 (gimple_debug_bind_get_value): Likewise.
15742 (gimple_debug_bind_get_value_ptr): Likewise.
15743 (gimple_debug_bind_set_var): Likewise.
15744 (gimple_debug_bind_set_value): Likewise.
15745 (gimple_debug_bind_reset_value): Likewise.
15746 (gimple_debug_bind_has_value_p): Likewise.
15747 (gimple_return_retval_ptr): Remove gcc_assert.
15748 (gimple_return_retval): Likewise.
15749 (gimple_return_set_retval): Likewise.
15750 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
15751 (safe_referenced_var_iterator): Remove.
15752 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
15753 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
15754 (fill_referenced_var_vec): Remove.
15755 (first_readonly_imm_use): Remove redundant gcc_assert.
15756 (phi_arg_index_from_use): Combine gcc_asserts.
15757 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
15758 (first_imm_use_stmt): Remove redundant gcc_assert.
15759 * tree-cfg.c (verify_gimple_call): Verify function and chain
15760 operands. Verify arguments.
15761 (verify_types_in_gimple_stmt): Verify condition code and labels.
15763 2010-01-07 Richard Guenther <rguenther@suse.de>
15765 PR tree-optimization/42641
15766 * sese.c (rename_map_elt_info): Use the SSA name version, do
15769 2010-01-07 Jakub Jelinek <jakub@redhat.com>
15771 PR tree-optimization/42625
15772 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
15773 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
15775 2010-01-07 Duncan Sands <baldrick@free.fr>
15777 * Makefile.in (PLUGIN_HEADERS): Add version.h.
15779 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
15782 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
15783 note itself is not function_invariant_p.
15785 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
15787 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
15788 Do not add the DF_NOTE problem.
15789 * store-motion.c (execute_rtl_store_motion): Likewise.
15791 2010-01-07 Martin Jambor <mjambor@suse.cz>
15793 PR tree-optimization/42157
15794 * tree-sra.c (compare_access_positions): Stabilize sort if both
15795 accesses have integer types, return zero immediately if they are the
15798 2010-01-06 Richard Henderson <rth@redhat.com>
15800 PR middle-end/41883
15801 * haifa-sched.c (add_to_note_list): Merge into ...
15802 (concat_note_lists): ... here, and ...
15803 (unlink_other_notes, rm_other_notes): Merge into...
15804 (remove_notes): ... here. Create REG_SAVE_NOTEs for
15805 NOTE_INSN_EPILOGUE_BEG.
15807 2010-01-06 Richard Guenther <rguenther@suse.de>
15809 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
15810 not inline regular functions into always-inline functions.
15812 2010-01-06 Nick Clifton <nickc@redhat.com>
15814 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
15815 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
15817 (OVERRIDE_OPTIONS): Delete.
15818 (OPTIMIZATION_OPTIONS): Define.
15819 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
15820 * config/rx/rx.c (rx_handle_option): Issue an error message if
15821 -mcpu=rx200 and -fpu are used together.
15822 (rx_set_optimization_options): New function. Issue an error
15823 message if an optimization attribute attempts to reset the FPU/
15824 math optimization pairing.
15825 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
15826 * config/rx/rx.opt: Set the default to 32-bit doubles.
15827 * config/rx/t-rx: Add multilibs for -nofpu option.
15828 * doc/invoke.texi: Update documentation of RX options.
15830 2010-01-06 Richard Guenther <rguenther@suse.de>
15832 * tree-ssa-pre.c (name_to_id): New global.
15833 (alloc_expression_id): Simplify SSA name handling.
15834 (lookup_expression_id): Likewise.
15835 (init_pre): Zero name_to_id.
15836 (fini_pre): Free it.
15838 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
15840 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
15842 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
15845 * config/i386/sse.md (smaxv2di3): New.
15846 (umaxv2di3): Likewise.
15847 (sminv2di3): Likewise.
15848 (uminv2di3): Likewise.
15850 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
15853 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
15854 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
15855 (legitimize_tls_address): Likewise.
15856 (sparc_tls_referenced_p): Likewise.
15857 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
15858 and adjust calls to legitimize_pic_address.
15859 (legitimate_constant_p) Use sparc_tls_referenced_p.
15860 (legitimate_pic_operand_p): Likewise.
15861 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
15862 (sparc_tls_symbol_ref_1): Delete.
15863 (sparc_tls_referenced_p): Make static, recognize specific patterns.
15864 (legitimize_tls_address): Make static, handle CONST patterns.
15865 (legitimize_pic_address): Make static, remove unused parameter and
15866 adjust recursive calls.
15867 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
15868 and adjust call to legitimize_pic_address.
15869 (sparc_output_mi_thunk): Likewise.
15871 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
15872 H.J. Lu <hongjiu.lu@intel.com>
15875 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
15876 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
15877 operands to make them signed.
15880 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
15883 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
15884 GTU to GT for V4SI and V2DI.
15886 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
15887 (umin<mode>3): Removed.
15889 (uminv4si3): Likewise.
15891 2010-01-05 Martin Jambor <mjambor@suse.cz>
15893 PR tree-optimization/42462
15894 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
15895 current_function_decl to helper functions and macros.
15897 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15900 * flags.h: Don't include real.h.
15901 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
15902 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
15903 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
15904 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
15905 * dominance.c: Update copyright.
15906 * gimple.c (walk_gimple_op): Remove inline.
15907 * tree-ssa-reassoc.c: Include real.h.
15908 * Makefile.in (FLAGS_H): Remove $(REAL_H).
15909 (tree-ssa-reassoc.o): Depend on $(REAL_H).
15911 2010-01-05 Nick Clifton <nickc@redhat.com>
15913 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
15914 register to push into the stack frame when the accumulator has to
15915 be saved during interrupts.
15917 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
15919 * doc/invoke.texi: Remove the documentation about option
15920 -Wunreachable-code.
15921 * common.opt (Wunreachable-code): Preserved for backward
15923 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
15924 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
15925 the backward compatibility flag section.
15927 2010-01-05 Richard Guenther <rguenther@suse.de>
15929 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
15931 2010-01-05 Jakub Jelinek <jakub@redhat.com>
15934 * cfgexpand.c (expand_one_var): Diagnose too large variables.
15936 PR tree-optimization/42508
15937 * tree-sra.c (convert_callers): Check for recursive call
15938 by comparing cgraph nodes instead of decls.
15939 (modify_function): Call ipa_modify_formal_parameters also
15940 on all same_body aliases.
15942 * cgraphunit.c (cgraph_materialize_all_clones): Compare
15943 cgraph nodes when checking for same_body aliases.
15945 2010-01-05 Richard Guenther <rguenther@suse.de>
15947 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
15948 allocation and lookup.
15949 (get_or_alloc_expr_for_constant): Likewise.
15950 (phi_translate): Sink allocation.
15952 2010-01-04 Richard Guenther <rguenther@suse.de>
15954 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
15955 a new entry only if needed.
15956 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
15957 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
15959 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
15961 (phi_translate): Handle CONSTANTs early.
15963 2010-01-04 Martin Jambor <mjambor@suse.cz>
15965 PR tree-optimization/42398
15966 * tree-sra.c (struct access): Removed flag grp_different_types.
15967 (dump_access): Do not dump the removed flag.
15968 (sort_and_splice_var_accesses): Do not set the removed flag.
15969 (sra_modify_expr): Check for type compatibility directly.
15971 2010-01-04 Martin Jambor <mjambor@suse.cz>
15973 PR tree-optimization/42366
15974 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
15975 edges with variable number of parameters.
15976 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
15977 flag instead of asserting it.
15978 (ipa_read_node_info): Read uses_analysis_done flag.
15980 2010-01-04 Richard Guenther <rguenther@suse.de>
15982 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
15983 iterative_hash_* as intended.
15984 (vn_reference_compute_hash): Likewise. Simplify hashing
15986 (vn_reference_lookup_2): Likewise.
15987 (vn_nary_op_compute_hash): Likewise.
15988 (vn_phi_compute_hash): Likewise.
15989 (expressions_equal_p): Remove strange code.
15990 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
15991 (pre_expr_hash): Likewise. Simplify hashing SSA names.
15992 (bitmap_insert_into_set_1): Take value-id as parameter.
15993 (add_to_value): Pass it.
15994 (bitmap_insert_into_set): Likewise.
15995 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
15997 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16000 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16001 (do_self_spec): For switches with SWITCH_IGNORE set set also
16002 SWITCH_IGNORE_PERMANENTLY.
16003 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16006 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16008 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16009 tree of an unreferenced global var.
16011 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16014 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16015 GTU to GT for V4SI and V2DI.
16017 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16018 (umin<mode>3): Removed.
16020 (uminv4si3): Likewise.
16022 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16025 * collect2.c (main): Turn on trace in collect2 if -v is passed
16028 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16030 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16031 description of expression operand.
16033 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16035 * configure.ac: Add install-html to target_list for Make-hooks.
16036 * configure: Regenerate.
16037 * fortran/Make-lang.in (F95_HTMLFILES): New.
16038 (fortran.html): Use it.
16039 (fortran.install-html): New.
16040 * Makefile.in (install-html): Add lang.install-html.
16041 * java/Make-lang.in (JAVA_HTMLFILES): New.
16042 (java.html): Use it.
16043 (java.install-html): New.
16044 * objc/Make-lang.in (objc.install-html): New.
16045 * objcp/Make-lang.in (obj-c++.install-html): New.
16046 * cp/Make-lang.in (c++.install-html): New.
16047 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16048 * lto/Make-lang.in (lto.install-html): New.
16050 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16053 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16055 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16057 PR rtl-optimization/41862
16058 * store-motion.c (store_killed_in_insn, compute_store_table,
16059 remove_reachable_equiv_notes, replace_store_insn,
16060 build_store_vectors): Ignore all DEBUG_INSNs.
16062 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16065 * common.opt: Add dumpdir.
16067 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16069 (option_map): Add --dumpdir.
16071 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16073 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16075 * opts.c (decode_options): Try dump_dir_name first if
16076 dump_base_name isn't an absolute path.
16077 (common_handle_option): Handle OPT_dumpdir.
16079 * toplev.c (dump_dir_name): New.
16080 (print_switch_values): Also ignore -dumpdir.
16082 * toplev.h (dump_dir_name): New.
16084 2010-01-03 Richard Guenther <rguenther@suse.de>
16086 PR tree-optimization/42589
16087 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16088 double-word expansion of bswap32.
16090 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16092 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16093 with BLOCK_FOR_INSN.
16094 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16095 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16096 noce_process_if_block): Likewise.
16097 * gcse.c (compute_local_properties, insert_expr_in_table,
16098 insert_set_in_table, canon_list_insert, find_avail_set,
16099 pre_insert_copy_insn): Likewise.
16101 * basic-block.h (BLOCK_NUM): Move from here...
16102 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16104 2010-01-03 Richard Guenther <rguenther@suse.de>
16106 PR tree-optimization/42438
16107 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16108 contains_may_not_return_call flag.
16109 (BB_MAY_NOTRETURN): New.
16110 (valid_in_sets): Trapping nary operations are not valid
16111 in blocks that may not return.
16112 (insert_into_preds_of_block): Remove check for trapping expressions.
16113 (compute_avail): Compute also BB_MAY_NOTRETURN.
16115 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16117 * doc/invoke.texi: Add 2010 to copyright years.
16119 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16121 * config/sparc/sparc.c: Fix formatting nits.
16123 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16124 Alexander Monakov <amonakov@ispras.ru>
16126 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16128 2010-01-02 Richard Guenther <rguenther@suse.de>
16130 PR middle-end/42577
16131 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16132 (simplify_switch_using_ranges): Mark to be removed edges
16135 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16137 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16139 * collect2.c (scan_libraries): Add missing argument in call to
16142 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16145 * config/alpha/predicates.md (aligned_memory_operand): Return false
16147 (unaligned_memory_operand): Return true for CQImode.
16148 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16149 doesn not cross aligned SImode word boundary.
16151 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16153 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16155 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16156 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16158 2010-01-02 Richard Guenther <rguenther@suse.de>
16161 * toplev.c (compile_file): Emit LTO marker properly. Change
16162 it to __gnu_lto_v1.
16163 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16165 2010-01-01 Richard Guenther <rguenther@suse.de>
16168 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16170 2010-01-01 Richard Guenther <rguenther@suse.de>
16173 * c-decl.c (grokdeclarator): For zero-size arrays force
16174 structural equality checks as layout_type does.
16176 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16178 * builtins.c: Update copyright to 2010.
16180 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16183 * lto-streamer-out.c (produce_asm): Revert the last change.
16184 (copy_function): Likewise.
16186 * lto-streamer.c (lto_get_section_name): Skip any leading
16189 2010-01-01 Richard Guenther <rguenther@suse.de>
16191 PR middle-end/42559
16192 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16196 Copyright (C) 2010 Free Software Foundation, Inc.
16198 Copying and distribution of this file, with or without modification,
16199 are permitted in any medium without royalty provided the copyright
16200 notice and this notice are preserved.