1 2012-08-13 Jakub Jelinek <jakub@redhat.com>
4 * tree.c (integer_pow2p): Avoid undefined signed overflows.
5 * simplify-rtx.c (neg_const_int): Likewise.
6 * expr.c (fixup_args_size_notes): Likewise.
7 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
8 * double-int.c (mul_double_wide_with_sign): Likewise.
9 (double_int_mask): Likewise.
10 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
12 2012-08-13 Richard Guenther <rguenther@suse.de>
14 PR tree-optimization/54200
15 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
16 PHI results to another partition if not all PHI arguments
17 have the same partition.
19 2012-08-12 Jan Hubicka <jh@suse.cz>
21 * tree-pass.h (write_summary, write_optimization_summary): Remove
22 set and vset arguments.
23 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
24 (write_node_summary_p): Likewise; use the encoder.
25 (ipa_reference_write_optimization_summary): Likewise.
26 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
27 (lto_symtab_encoder_new): Initialize in_partition field.
28 (lto_symtab_encoder_delete): Destroy in_partition field.
29 (LCC_NOT_FOUND): Move to lto-streamer.h
30 (lto_symtab_encoder_deref): Likewise.
31 (lto_symtab_encoder_in_partition_p,
32 lto_set_symtab_encoder_in_partition): New functions.
33 (referenced_from_other_partition_p): Rewrite to use encoder.
34 (reachable_from_other_partition_p): Likewise.
35 (referenced_from_this_partition_p): Likewise.
36 (reachable_from_this_partition_p): Likewise.
37 (lto_output_node): Likewise.
38 (lto_output_varpool_node): Likewise.
39 (output_refs): Likewise.
40 (compute_ltrans_boundary): Initialize in_partition fileds of
42 (output_symtab): Likewise.
43 (input_refs): Match the changes in output_refs.
44 (output_cgraph_opt_summary_p): Remove set argument.
45 (output_node_opt_summary): Replace set by encoder.
46 (output_cgraph_opt_summary): Remove set argument; use
48 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
49 arguments; use the encoder.
50 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
52 (produce_symtab): Likewise.
53 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
54 * ipa-inline-analysis.c (inline_write_summary): Likewise.
55 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
57 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
58 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
59 (ipa_write_summaries_1): Update.
60 (ipa_write_optimization_summaries_1): Likewise.
61 (ipa_write_optimization_summaries): Likewise.
62 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
63 (lto_symtab_encoder_iterator): New type.
64 (lto_symtab_encoder_deref): Make inline.
65 (output_symtab, referenced_from_other_partition_p,
66 reachable_from_other_partition_p, referenced_from_this_partition_p,
67 reachable_from_this_partition_p): Update.
68 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node, lsei_varpool_node): New
70 (LCC_NOT_FOUND): New macro.
71 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
72 lsei_start_in_partition, lsei_next_function_in_partition,
73 lsei_start_function_in_partition, lsei_next_variable_in_partition,
74 lsei_start_variable_in_partition): New inline functions.
76 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
78 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
80 (*prefetch_media): Move insn below expander.
81 (*prefetch): Fix condition to allow SH3.
83 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
86 * config/sh/sh.md: Add splits for inverted compare and branch
88 (*cmpeqsi_t): New insn.
89 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
90 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
91 replacement insn list and not in the preparation statements.
92 (clrt, sett): Add mt_group attribute.
94 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
97 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
99 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
102 * config/sh/predicates.md (mem_index_disp_operand): Check for
103 arith_reg_operand instead of REG_P.
105 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
107 * reload1.c (replaced_subreg, gen_reload): Add
108 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
110 2012-08-11 Jan Hubicka <jh@suse.cz>
112 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
113 symtab_node sectoin name; it confuses plugin.
115 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
117 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
118 in the va_list_vars bitmap by num_ssa_names.
120 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
122 * config/i386/sse.md (xop integer multiply/add insns): Use
123 register_operand for operand 3 predicate.
124 (xop_phadd<u>bq): Fix vec_select selectors.
126 2012-08-11 Martin Jambor <mjambor@suse.cz>
129 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
130 * ipa-inline-analysis.c (agg_position_info): New type.
131 (add_condition): New parameter aggpos, also store agg_contents, by_ref
133 (dump_condition): Also dump aggregate conditions.
134 (evaluate_conditions_for_known_args): Also handle aggregate
135 conditions. New parameter known_aggs.
136 (evaluate_properties_for_edge): Gather known aggregate contents.
137 (inline_node_duplication_hook): Pass NULL known_aggs to
138 evaluate_conditions_for_known_args.
139 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
140 (unmodified_parm_or_parm_agg_item): New function.
141 (set_cond_stmt_execution_predicate): Handle values passed in
143 (set_switch_stmt_execution_predicate): Likewise.
144 (will_be_nonconstant_predicate): Likewise.
145 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
146 ipa_get_indirect_edge_target.
147 (estimate_calls_size_and_time): New parameter known_aggs, pass it
148 recrsively to itself and to estimate_edge_devirt_benefit.
149 (estimate_node_size_and_time): New vector known_aggs, pass it o
150 functions which need it.
151 (remap_predicate): New parameter offset_map, use it to remap aggregate
153 (remap_edge_summaries): New parameter offset_map, pass it recursively
154 to itself and to remap_predicate.
155 (inline_merge_summary): Also create and populate vector offset_map.
156 (do_estimate_edge_time): New vector of known aggregate contents,
157 passed to functions which need it.
158 (inline_read_section): Stream new fields of condition.
159 (inline_write_summary): Likewise.
160 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
161 contents. Let all local callers pass NULL for known_aggs.
163 2012-08-11 Jan Hubicka <jh@suse.cz>
165 * lto-cgraph.c (output_cgraph): Rename to ...
166 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
167 (input_cgraph): Rename to ...
168 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
169 * lto-streamer-out.c (create_output_block): Do not set
171 (produce_asm): Likewise.
172 (lto_output_toplevel_asms): Likewise.
173 (produce_asm_for_decls): Likewise.
174 (lto_output): Use output_symtab.
175 * lto-section-in.c (lto_section_name): Update.
176 * lto-section-out.c (lto_destroy_simple_output_block): Remove
178 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
179 rename LTO_section_cgraph to LTO_section_symtab_nodes.
180 (struct lto_header): Remove section_type.
182 2012-08-11 Jan Hubicka <jh@suse.cz>
184 * cgraph.h (vector types for symtab_node): Add.
185 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
186 for new symtab encoder.
187 (ipa_reference_read_optimization_summary): Likewise.
188 * lto-cgraph.c (output_varpool): Remove.
189 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
190 (LTO_cgraph_tags): Rename to ...
191 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
192 (lto_cgraph_encoder_new): Rename to ...
193 (lto_symtab_encoder_new): ... this on.
194 (lto_cgraph_encoder_encode): Rename to ...
195 (lto_symtab_encoder_encode): ... this one.
196 (lto_cgraph_encoder_delete): Rename to ...
197 (lto_symtab_encoder_delete): ... this one.
198 (lto_cgraph_encoder_deref): Rename to ...
199 (lto_symtab_encoder_deref): ... this one.
200 (lto_cgraph_encoder_encode_body_p): Rename to ...
201 (lto_symtab_encoder_encode_body_p): ... this one.
202 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
203 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
204 lto_varpool_encoder_deref): Remove.
205 (lto_varpool_encoder_encode_initializer_p): Rename to ...
206 (lto_symtab_encoder_encode_initializer_p): ... this one.
207 (lto_set_varpool_encoder_encode_initializer): Rename to ...
208 (lto_set_symtab_encoder_encode_initializer): ... this one.
209 (lto_output_edge): Update.
210 (lto_output_node): Update.
211 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
212 (lto_output_ref): Drop varpool_encoder; update.
213 (add_node_to): Update.
214 (add_references): Update.
215 (output_outgoing_cgraph_edges): Update.
216 (output_refs): Update.
217 (compute_ltrans_boundary): Update.
218 (output_cgraph): Update; output varpools too.
219 (input_overwrite_node): Update.
220 (output_varpool): Remove.
221 (input_node): Update.
223 (input_edge): Update.
224 (input_cgraph_1): Update; input varpool too; unify fixup code.
225 (input_varpool_1): Remove.
226 (input_refs): Update.
227 (input_cgraph): Update.
228 (output_node_opt_summary): Update.
229 (input_cgraph_opt_section): Update.
230 (input_cgraph_opt_summary): Update.
231 * ipa-pure-const.c (pure_const_write_summary): Update.
232 (pure_const_read_summary): Update.
233 * lto-streamer-out.c (lto_write_tree): Update.
234 (lto_output): Likewise.
235 (produce_symtab): Update.
236 (produce_asm_for_decls): Update.
237 * ipa-inline-analysis.c (inline_read_section): Update.
238 (inline_write_summary): Update.
239 * ipa-prop.c (ipa_write_node_info): Update.
240 (ipa_prop_read_section): Update.
241 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
242 (lto_symtab_encoder_d): ... this one; add initializer.
243 (lto_cgraph_encoder_t): Rename to ...
244 (lto_symtab_encoder_t): ... this one.
245 (lto_cgraph_encoder_size): Rename to ...
246 (lto_symtab_encoder_size): ... this one.
247 (lto_varpool_encoder_d): ... remove.
248 (lto_varpool_encoder_t): Remove.
249 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
250 add symtab_node_encoder.
251 (lto_file_decl_data): Likewise.
252 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
253 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
254 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
255 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
256 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
257 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
258 lto_varpool_encoder_encode_initializer_p): Remove.
259 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
260 lto_symtab_encoder_t, lto_symtab_encoder_encode,
261 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
262 lto_symtab_encoder_encode_initializer_p): New.
264 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
266 * config/i386/i386.md (isa): Add fma and fma4.
267 (enabled): Handle fma and fma4.
268 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
269 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
270 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
271 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
272 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
273 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
275 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
277 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
278 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
279 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
281 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
283 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
284 variants of PLUS and MULT simple LEA patterns. Disable PLUS
285 patterns for TARGET_OPT_AGU.
287 2012-08-10 Richard Guenther <rguenther@suse.de>
289 * Makefile.in (OBJS): Remove matrix-reorg.o.
290 (matrix-reorg.o): Remove dependence rule.
291 (GTFILES): Remove matrix-reorg.c.
292 * matrix-reorg.c: Remove.
293 * passes.c (init_optimization_passes): Do not schedule
294 pass_ipa_matrix_reorg.
295 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
296 * common.opt (fipa-matrix-reorg): Stub out.
297 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
299 2012-08-10 Richard Guenther <rguenther@suse.de>
302 * fold-const.c (fold_ternary_loc): Do not reverse the mask
303 when canonicalizing it when folding VEC_PERM_EXPR.
305 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
308 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
309 Use cand_type to determine whether pointer arithmetic will be generated.
311 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
313 * doc/sourcebuild.texi: Document long_neq_int effective target.
315 2012-08-10 Richard Guenther <rguenther@suse.de>
317 PR tree-optimization/54109
318 * tree-ssa-forwprop.c
319 (forward_propagate_addr_into_variable_array_index): Remove.
320 (forward_propagate_addr_expr_1): Adjust.
322 2012-08-10 Richard Guenther <rguenther@suse.de>
324 * tree-cfg.c (dump_function_to_file): Make sure to dump
325 anonymous SSA names when there are no local decls.
327 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
329 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
330 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
331 (mark_phi_for_rewrite): Likewise.
332 (compute_global_livein): Use VEC_reserve outside the innermost
333 loop and VEC_quick_push instead of VEC_safe_push in that loop.
334 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
335 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
336 the correct initial size.
338 2012-08-10 Richard Guenther <rguenther@suse.de>
340 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
341 (need_creation): Remove.
342 (get_representative_for): Use anonymous named SSA names.
343 (create_expression_by_pieces): Likewise.
344 (insert_into_preds_of_block): Likewise.
345 (init_pre): Do not init removed vars.
346 (fini_pre): Do not free need_creation.
347 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
349 * tree-ssa-loop-manip.c (create_iv): Likewise.
350 * value-prof.c (gimple_divmod_fixed_value): Likewise.
351 (gimple_mod_pow2): Likewise.
352 (gimple_mod_subtract): Likewise.
353 (gimple_ic): Likewise.
354 (gimple_stringop_fixed_value): Likewise.
355 * tree-ssa-phiopt.c (condstoretemp): Remove.
356 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
357 (conditional_replacement): Likewise.
358 (abs_replacement): Likewise.
359 (cond_store_replacement): Likewise.
360 (cond_if_else_store_replacement_1): Likewise.
361 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
362 (rewrite_bittest): Likewise.
363 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
364 and build anonymous SSA names.
365 (undistribute_ops_list): Adjust.
366 (eliminate_redundant_comparison): Use anonymous SSA names.
367 (rewrite_expr_tree_parallel): Likewise.
368 (get_reassoc_pow_ssa_name): Remove.
369 (attempt_builtin_powi): Adjust.
370 (reassociate_bb): Likewise.
371 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
372 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
373 (build_arrays): Likewise.
374 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
375 (create_tailcall_accumulator): Likewise.
376 * tree-vect-generic.c (expand_vector_divmod): Likewise.
377 * tree-profile.c (gcov_type_tmp_var): Remove.
378 (gimple_init_edge_profiler): Do not initialize it and use anonymous
380 (gimple_gen_ic_profiler): Likewise.
381 (tree_profiling): Adjust.
382 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
383 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
384 (powi_as_mults_1): Likewise.
385 (powi_as_mults): Likewise.
386 (build_and_insert_call): Adjust.
387 (build_and_insert_binop): Likewise.
388 (build_and_insert_ref): Likewise.
389 (build_and_insert_cast): Likewise.
390 (gimple_expand_builtin_pow): Likewise.
391 (gimple_expand_builtin_cabs): Likewise.
392 (execute_optimize_bswap): Use anonymous SSA names.
393 (convert_mult_to_widen): Likewise.
394 (convert_plusminus_to_widen): Likewise.
395 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
396 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
397 * tree-if-conv.c (ifc_temp_var): Likewise.
398 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
399 * tree-parloops.c (take_address_of): Likewise.
400 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
401 (vect_permute_load_chain): Likewise.
402 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
403 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
404 (vect_handle_widen_op_by_const): Likewise.
405 (vect_operation_fits_smaller_type): Likewise.
406 (vect_recog_over_widening_pattern): Likewise.
407 * tree-vect-stmts.c (vect_init_vector): Likewise.
408 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
409 (simplify_float_conversion_using_ranges): Likewise.
411 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
413 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
414 target mask of __builtin_ia32_rdseed_di_step builtin.
416 2012-08-10 Richard Guenther <rguenther@suse.de>
418 PR tree-optimization/54027
419 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
420 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
421 to handle LSHIFT_EXPR with a constant.
423 2012-08-10 Richard Guenther <rguenther@suse.de>
425 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
427 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
429 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
430 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
431 SSA names by passing a type instead of a variable decl.
432 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
433 (copy_ssa_name_fn): Handle anonymous SSA names.
434 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
435 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
436 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
437 dump SSA names without a name as <anon>.
438 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
439 going to expand a decl.
440 (gimple_expand_cfg): Assign all SSA names of a partition the
441 decl we created for its leader.
442 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
443 (verify_ssa_name): Handle anonymous SSA names.
444 (verify_def): Likewise.
445 * tree-predcom.c (eliminate_temp_copies): Likewise.
446 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
447 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
448 anonymous SSA names with the same type.
449 (mark_all_vars_used_1): Handle anonymous SSA names.
450 (verify_live_on_entry): Likewise.
451 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
452 (create_outofssa_var_map): Adjust with respect to conflicts we
453 compute for anonymous SSA names. Do not restrict abnormal
455 (coalesce_partitions): Do not restrict abnormal coalescing.
456 Assert we only ever coalesce variables we computed conflicts for.
457 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
459 * expr.c (expand_expr_real_1): Handle anonymous SSA names
460 expanded from IVOPTs by creating a raw REG here.
461 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
462 (dump_function_to_file): Dump anonymous SSA names alongside
463 with their types in the variable list.
464 (verify_gimple_return): Guard use of SSA_NAME_VAR.
465 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
466 (rewrite_into_ssa): Make SSA names anonymous.
467 * tree-ssa-structalias.c (alias_get_name): Rewrite.
468 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
470 (warn_uninitialized_phi): Likewise.
471 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
472 anonymous SSA names to the expander.
473 (determine_iv_cost): Anonymous SSA names are artificial.
474 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
475 Handle anonymous SSA names.
476 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
477 or if NULL, the type of the SSA name.
478 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
479 remap names as anonymous where appropriate.
480 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
481 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
482 according to what we create conflicts for in out-of-SSA
484 * tree-parloops.c (separate_decls_in_region_name): Handle
486 (add_field_for_name): Likewise.
487 * tree.c (get_name): Handle SSA names.
488 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
490 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
492 * tree-sra.c (create_access_replacement): Give up generating
493 a DECL_DEBUG_EXPR for SSA names in the memory reference.
494 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
495 * tree-complex.c (get_component_ssa_name): Handle anonymous
497 (set_component_ssa_name): Likewise.
498 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
499 * tree-object-size.c (collect_object_sizes_for): Handle
500 uninitialized SSA names properly.
501 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
503 * ipa-split.c (test_nonssa_use): Likewise.
504 (consider_split): Likewise.
505 (mark_nonssa_use): Likewise.
507 2012-08-09 Jan Hubicka <jh@suse.cz>
510 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
511 parameter; honnor it.
512 * ipa-inline.c (recursive_inlining): Update call
514 (inline_small_functions): Likewise.
515 (ipa_inline): Likewise.
516 (inline_always_inline_functions): Likewise.
517 (early_inline_small_functions): Likewise.
518 (flatten_function): Do separate update of summary info.
519 * ipa-inline.h (inline_update_overall_summary): Declare.
520 (inline_call): Update.
521 * ipa-inline-analysis.c (inline_merge_summary): Break out
523 (inline_update_overall_summary): Likewise.
525 2012-08-09 Richard Henderson <rth@redhat.com>
527 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
529 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
530 performing the compare for the restart loop.
532 2012-08-09 DJ Delorie <dj@redhat.com>
534 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
535 SET before extracting SET_SRC.
536 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
538 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
541 * config/sh/sh-protos (shift_insns_rtx): Delete.
542 (sh_ashlsi_clobbers_t_reg_p): Add.
543 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
544 ext_shift_amounts): Merge arrays of ints to array of structs.
545 Adapt usage of arrays throughout the file.
546 (shift_insns_rtx): Delete unused function.
547 (sh_ashlsi_clobbers_t_reg_p): New function.
548 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
549 final shift sequence will clobber T_REG.
550 (ashlsi3_n): Split only if the final shift sequence will not
552 (ashlsi3_n_clobbers_t): New insn_and_split.
554 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
556 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
557 instead of looking at sbitmap n_bits member directly.
558 * gcse.c (hoist_code): Likewise.
559 * sched-rgn.c (split_edges): Likewise.
560 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
561 update_ssa): Likewise.
563 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
565 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
566 single unit register class for classes that contain registers form
568 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
569 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
571 2012-08-09 Martin Jambor <mjambor@suse.cz>
573 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
574 offset, updated all users. New field agg_contents.
575 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
576 (ipa_pass_through_data): New field agg_preserved.
577 (ipa_ancestor_jf_data): Likewise.
578 (ipa_member_ptr_cst): Removed.
579 (ipa_agg_jf_item): New type.
580 (ipa_agg_jump_function): Likewise.
581 (ipa_jump_func): New field agg. Removed field member_cst.
582 (ipa_get_jf_pass_through_agg_preserved): New function.
583 (ipa_get_jf_ancestor_agg_preserved): Likewise.
584 (ipa_get_jf_member_ptr_pfn): Removed.
585 (ipa_find_agg_cst_for_param): Declare.
586 (ipa_load_from_parm_agg): Likewise.
587 * ipa-prop.c (param_analysis_info): Fields modified and
588 visited_statements rename to parm_modified and parm_visited_statements
589 respectively, added fields ref_modified, ref_visited_statements,
590 pt_modified and pt_visited_statements.
591 (ipa_print_node_jump_functions_for_edge): Do not dump const member
592 functions. Dump agg_preserved flags and aggregate jump functions.
593 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
594 (ipa_set_ancestor_jf): Likewise.
595 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
596 (ipa_set_jf_member_ptr_cst): Removed.
597 (is_parm_modified_before_stmt): Logic reversed, renamed to
598 parm_preserved_before_stmt_p. Cache visited bitmap only for
599 naked DECL parameters. All callers updated.
600 (load_from_unmodified_param): Allow NULL parms_ainfo.
601 (parm_ref_data_preserved_p): New function.
602 (parm_ref_data_pass_through_p): Likewise.
603 (ipa_load_from_parm_agg_1): Likewise.
604 (ipa_load_from_parm_agg): Likewise.
605 (compute_complex_assign_jump_func): Check if aggregate contents are
607 (compute_complex_ancestor_jump_func): Likewise.
608 (compute_scalar_jump_functions): Removed.
609 (type_like_member_ptr_p): Also check field position are known and sane.
610 (compute_pass_through_member_ptrs): Removed.
611 (determine_cst_member_ptr): Likewise.
612 (ipa_known_agg_contents_list): New type.
613 (determine_known_aggregate_parts): New function.
614 (compute_cst_member_ptr_arguments): Removed.
615 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
616 functions (scalar, aggregate and member pointer).
617 (ipa_get_member_ptr_load_param): Incorporate into
618 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
619 (ipa_note_param_call): Clear agg_contents.
620 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
621 from aggregates. In such cases, store offset of the called field.
622 (ipa_analyze_node): Initialize new fields of param_analysis_info.
623 (update_jump_functions_after_inlining): Handle aggregate contents.
624 (ipa_find_agg_cst_for_param): New function.
625 (try_make_edge_direct_simple_call): Handle called aggregate values.
626 (update_indirect_edges_after_inlining): Make sure aggregate preserving
627 jump functions comply with type compatibility requirements.
628 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
629 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
630 jump functions. Do not stream member pointer constant jump functions.
631 (ipa_read_jump_function): Likewise.
632 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
634 (ipa_read_indirect_edge_info): Likewise.
636 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
639 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
640 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
641 mem_index_disp_operand predicate.
643 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
646 * config/sh/sh.md: Add negc extu sequence peephole.
647 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
648 (*movrt_negc): New insn.
649 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
651 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
652 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
654 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
656 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
659 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
660 Use arith_reg_operand predicate instead of register_operand.
661 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
664 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
666 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
667 (alpha_pad_function_end): ... this. Also insert NOP between
668 sibling call and GP load.
669 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
671 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
673 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
674 * config/i386/x86intrin.h: Likewise.
675 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
676 OPTION_MASK_ISA_ADX from needed options for
677 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
678 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
679 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
681 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
683 PR rtl-optimization/53701
684 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
685 Process not only expr's vinsns but all old vinsns from expr's
687 (update_and_record_unavailable_insns): Clarify comment.
689 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
691 * reload.c (find_valid_class_1): New static function.
692 (push_reload): Use it when reloading a SYMBOL_REG as the inner
693 of a subreg. Keep better track of needed classes for the
694 secondary memory case.
695 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
697 * reload1.c (replaced_subreg): New static function.
698 (gen_reload): Use it when deciding whether to use secondary
701 2012-08-09 Richard Guenther <rguenther@suse.de>
703 * tree.h (SSA_VAR_P): Simplify.
704 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
705 * fold-const.c (fold_comparison): Check for default def first
706 before checking for PARM_DECL.
707 * tree-complex.c (get_component_ssa_name): Likewise.
708 * tree-inline.c (remap_ssa_name): Likewise.
709 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
710 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
711 (find_what_p_points_to): Likewise.
712 * tree-ssa-operands.c (add_stmt_operand): Simplify.
714 2012-08-08 Joseph Myers <joseph@codesourcery.com>
716 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
717 IOR to a constant if one operand has side effects.
719 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
721 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
722 value operand as MEM to expand_atomic_compare_and_swap.
724 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
725 nonimmediate_operand for old value; generate load and store if
727 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
730 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
733 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
735 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
736 a gimple_reg if checking is enabled.
737 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
738 * tree-into-ssa (compute_global_livein): Change the worklist
739 type from an array to a VEC.
741 2012-08-08 Richard Guenther <rguenther@suse.de>
743 * tree-ssa-operands.h (virtual_operand_p): Declare.
744 * tree-ssa-operands.c (virtual_operand_p): New predicate.
745 * gimple.c (is_gimple_reg): Use virtual_operand_p.
746 * tree-into-ssa.c (prepare_block_for_update): Likewise.
747 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
749 2012-08-08 Richard Guenther <rguenther@suse.de>
751 * tree-call-cdce.c (check_pow): Simplify.
752 (gen_conditions_for_pow_int_base): Likewise.
753 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
754 virtual operands here.
755 * tree-ssa-operands.c (get_name_decl): Remove unused function.
756 * gimplify.c (gimple_regimplify_operands): Remove dead code.
757 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
758 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
759 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
760 (gimple_stringop_fixed_value): Likewise.
761 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
762 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
763 in the bitmap alongside shifted DECL_UIDs.
764 (va_list_counter_struct_op): Likewise.
765 (va_list_ptr_read): Likewise.
766 (va_list_ptr_write): Likewise.
767 (check_va_list_escapes): Likewise.
768 (check_all_va_list_escapes): Likewise.
769 (execute_optimize_stdarg): Likewise.
770 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
772 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
773 H.J. Lu <hongjiu.lu@intel.com>
775 PR rtl-optimization/54157
776 * combine.c (gen_lowpart_for_combine): Don't return identity
777 for CONST or symbolic reference.
779 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
781 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
782 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
783 (ix86_handle_option): Handle madx option.
784 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
785 (x86_64-*-*): Likewise.
786 * config/i386/adxintrin.h: New header.
787 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
789 * config/i386/i386-builtin-types.def
790 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
791 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
792 * config/i386/i386-c.c: Define __ADX__ if needed.
793 * config/i386/i386.c (ix86_target_string): Define -madx option.
795 (ix86_option_override_internal): Handle new option.
796 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
797 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
798 IX86_BUILTIN_ADDCARRYX64.
799 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
800 (ix86_expand_builtin): Handle these built-ins.
801 (ix86_expand_args_builtin): Handle new function types.
802 * config/i386/i386.h (TARGET_ADX): New.
803 * config/i386/i386.md (adcx<mode>3): New define_insn.
804 * config/i386/i386.opt (madx): New.
805 * config/i386/x86intrin.h: Include adxintrin.h.
807 2012-08-08 Nick Clifton <nickc@redhat.com>
809 * config/rl78/rl78.c: Include tree-pass.h.
811 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
814 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
815 (build_insn_chain): Make live_subregs_used a bitmap.
816 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
817 Use sbitmap_free to free the live_subreg sbitmaps.
820 * ifcvt.c: Include pointer-set.h.
821 (cond_move_process_if_block): Change type of then_regs and
822 else_regs from alloca'd array to pointer_sets.
823 (check_cond_move_block): Update for this change.
824 (cond_move_convert_if_block): Likewise.
825 * Makefile.in: Fix dependencies for ifcvt.o.
827 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
829 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
830 (incr_vec): New static var.
831 (incr_vec_len): Likewise.
832 (address_arithmetic_p): Likewise.
833 (stmt_cost): Remove dead assignment.
834 (dump_incr_vec): New function.
835 (cand_abs_increment): Likewise.
836 (lazy_create_slsr_reg): Likewise.
837 (incr_vec_index): Likewise.
838 (count_candidates): Likewise.
839 (record_increment): Likewise.
840 (record_increments): Likewise.
841 (unreplaced_cand_in_tree): Likewise.
842 (optimize_cands_for_speed_p): Likewise.
843 (lowest_cost_path): Likewise.
844 (total_savings): Likewise.
845 (analyze_increments): Likewise.
846 (ncd_for_two_cands): Likewise.
847 (nearest_common_dominator_for_cands): Likewise.
848 (profitable_increment_p): Likewise.
849 (insert_initializers): Likewise.
850 (introduce_cast_before_cand): Likewise.
851 (replace_rhs_if_not_dup): Likewise.
852 (replace_one_candidate): Likewise.
853 (replace_profitable_candidates): Likewise.
854 (analyze_candidates_and_replace): Handle candidates with SSA-name
857 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
859 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
860 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
861 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
862 clear pp_needs_newline.
863 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
864 of pp_base_flush before the above change.
865 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
867 * diagnostic.c (diagnostic_finish): Likewise.
868 (diagnostic_report_diagnostic): Likewise.
869 (verbatim): Likewise.
870 (error_recursion): Likewise.
871 * tree-pretty-print.c (print_generic_stmt): Likewise.
872 (print_generic_stmt_indented): LIkewise.
873 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
874 (print_gimple_seq): Likewise.
875 (gimple_dump_bb_buff): Likewise.
877 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
880 * var-tracking.c (var_lowpart): Exit early for matched modes.
882 2012-08-07 Richard Henderson <rth@redhat.com>
884 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
885 atomic_compare_and_swapsi_internal name change.
886 (s390_expand_insv): Try RISBG last, not requiring operands in
887 registers but forcing them there. Try a limited form of ICM.
888 (s390_two_part_insv): New.
889 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
890 * config/s390/s390.md (UNSPEC_MOVA): New.
891 (TDSI): Remove mode iterator.
892 (DGPR, DINT, TDI): New mode iterators.
893 (td): New mode attribute.
894 (mem_signal_fence): New.
895 (mem_thread_fence): Rename from memory_barrier; update for model arg.
896 (mem_thread_fence_1): Rename from *memory_barrier.
897 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
898 (atomic_loaddi_1, atomic_loadti_1): New.
899 (atomic_storedi_1, atomic_storeti_1): New.
900 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
901 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
902 (atomic_compare_and_swap<DGPR>_internal): New.
903 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
904 (*atomic_compare_and_swap<TDI>_1): New.
905 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
906 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
907 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
908 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
909 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
910 (sync_new_<ATOMIC><HQI>): Remove.
911 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
912 (atomic_<ATOMIC>_fetch<HQI>): New.
913 (sync_lock_test_and_set<HQI>): Remove.
914 (atomic_exchange<HQI>): New.
916 2012-08-07 Paul Brook <paul@codesourcery.com>
917 Sandra Loosemore <sandra@codesourcery.com>
919 * except.c (switch_to_exception_section): Place tables for
920 DECL_ONE_ONLY functions in comdat groups.
922 2012-08-07 Richard Guenther <rguenther@suse.de>
924 * tree-flow.h (copy_ssa_name_fn): New function.
925 (duplicate_ssa_name_fn): Likewise.
926 * tree-flow-inline.h (copy_ssa_name): New function.
927 (duplicate_ssa_name): Likewise.
928 * tree-ssanames.c (copy_ssa_name_fn): New function.
929 (duplicate_ssa_name): Rename to ...
930 (duplicate_ssa_name_fn): ... this and adjust.
931 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
932 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
934 (slpeel_update_phi_nodes_for_guard2): Likewise.
935 (slpeel_tree_peel_loop_to_edge): Likewise.
936 (vect_loop_versioning): Likewise.
937 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
938 (create_parallel_loop): Likewise.
939 * ipa-split.c (split_function): Likewise.
940 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
941 (vect_create_epilog_for_reduction): Likewise.
942 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
943 (vect_setup_realignment): Likewise.
944 * tree-vect-stmts.c (vectorizable_load): Likewise.
945 * tree-switch-conversion.c (build_one_array): Likewise.
946 (gen_def_assigns): Likewise.
947 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
948 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
949 create_zero_dim_array with the SSA name.
950 (rewrite_phi_out_of_ssa): Likewise.
951 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
953 2012-08-07 Richard Guenther <rguenther@suse.de>
955 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
956 bit of the old name when we clear the slot.
957 * tree-ssa-live.c (remove_unused_locals): Release any default
958 def associated with an unused var.
959 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
961 2012-08-07 Richard Guenther <rguenther@suse.de>
963 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
964 we rewrite into SSA form.
965 (rewrite_enter_block): Adjust.
966 * gimple-iterator.c (gsi_replace): Also allow replacement with
967 a stmt without a lhs.
968 * tree-ssa-live.c (remove_unused_locals): Remove code handling
969 clobbers of SSA names.
970 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
971 for variables we access through the local chain.
972 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
973 clobber full decls only.
975 2012-08-07 Richard Guenther <rguenther@suse.de>
977 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
978 * tree-phinodes.c (make_phi_node): Allow a NULL var.
979 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
980 * tree-complex.c (update_phi_components): Likewise.
981 * tree-ssa-loop-manip.c (create_iv): Likewise.
982 (add_exit_phis_edge): Likewise.
983 (split_loop_exit_edge): Likewise.
984 (tree_transform_and_unroll_loop): Likewise.
985 * value-prof.c (gimple_ic): Likewise.
986 (gimple_stringop_fixed_value): Likewise.
987 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
988 * omp-low.c (expand_parallel_call): Likewise.
989 (expand_omp_for_static_chunk): Likewise.
990 (expand_omp_atomic_pipeline): Likewise.
991 * tree-parloops.c (create_phi_for_local_result): Likewise.
992 (transform_to_exit_first_loop): Likewise.
993 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
994 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
995 * tree-predcom.c (initialize_root_vars): Likewise.
996 (initialize_root_vars_lm): Likewise.
997 * sese.c (sese_add_exit_phis_edge): Likewise.
998 * gimple-streamer-in.c (input_phi): Likewise.
999 * tree-inline.c (copy_phis_for_bb): Likewise.
1000 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1001 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
1002 (gimple_duplicate_bb): Likewise.
1004 2012-08-07 Nick Clifton <nickc@redhat.com>
1006 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
1007 stack usage if requested.
1009 2012-08-06 Cary Coutant <ccoutant@google.com>
1011 * cgraphunit.c (assemble_thunk): Add source line info.
1012 * final.c (final): Check for non-null cfg pointer.
1014 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
1015 Maxim Kuvyrkov <maxim@codesourcery.com>
1016 Julian Brown <julian@codesourcery.com>
1018 * config/mips/24k.md (r24k_unknown_store): Delete special handling
1020 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
1021 (r24k_int_cop, r24k_int_multi)
1022 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
1023 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
1024 instead of store_data_bypass_p.
1025 * config/mips/74k.md (r74k_int_store): Delete special handling for
1027 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
1028 Use mips_store_data_bypass_p instead of store_data_bypass_p.
1030 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
1032 PR tree-optimization/51938
1033 PR tree-optimization/52005
1034 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
1035 inverted conditions.
1036 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
1037 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
1040 2012-08-06 Olivier Hainque <hainque@adacore.com>
1042 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
1043 the target, attach the new decl to that, not to the template section.
1045 2012-08-06 Tom de Vries <tom@codesourcery.com>
1047 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
1050 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1052 * doc/invoke.texi: Document AMD btver2.
1053 * doc/extend.texi: Document AMD btver1 and btver2.
1055 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
1056 Richard Sandiford <rdsandiford@googlemail.com>
1058 * config/mips/mips.c (mips_option_override): Check -fpic
1059 for compatibility with -mabicalls and ABI.
1061 2012-08-04 Catherine Moore <clm@codesourcery.com>
1062 Sandra Loosemore <sandra@codesourcery.com>
1064 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
1065 (ir_xlr_alu): Remove clz.
1066 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
1068 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
1070 * arm.c (arm_gen_constant): Use SImode when preparing operands for
1073 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
1075 * config/i386/i386.h (QI_REGNO_P): New define.
1076 (ANY_QI_REGNO_P): Ditto.
1077 (GENERAL_REGNO_P): Use IN_RANGE macro.
1078 (QI_REG_P): Use QI_REGNO_P.
1079 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
1080 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
1081 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
1082 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
1083 register is a general register.
1085 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
1087 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
1088 incdec_operand predicate to return INC or DEC insn mnemonic.
1089 Add %K operand modifier.
1090 (atomic_add<mode>): Use incdec_operand predicate to
1091 return INC or DEC insn mnemonic.
1092 (atomic_dec<mode>): Ditto.
1094 2012-08-03 Michael Matz <matz@suse.de>
1096 PR tree-optimization/54146
1097 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
1098 (add_scope_conflicts): Iterate in RPO order.
1099 (add_stack_protection_conflicts): Iterate over the other triangle.
1100 (fini_vars_expansion): Clear stack_vars_sorted.
1102 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
1104 PR tree-optimization/30318
1105 * double-int.c (mul_double_wide_with_sign): New function.
1106 (mul_double_with_sign): Call the new function.
1107 * double-int.h (mul_double_wide_with_sign): Declare the new function.
1108 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
1109 Handle integer types that wrap on overflow.
1110 (quad_int_cmp): New helper function.
1111 (quad_int_pair_sort): Likewise.
1113 2012-08-03 Richard Guenther <rguenther@suse.de>
1115 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
1116 is_gimple_reg on the SSA name, not its variable.
1117 (vect_update_ivs_after_vectorizer): Likewise.
1118 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1119 * tree-if-conv.c (if_convertible_phi_p): Likewise.
1120 (predicate_scalar_phi): Likewise.
1121 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
1122 (vect_analyze_scalar_cycles_1): Likewise.
1123 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
1124 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
1125 * tree-ssa-reassoc.c (phi_rank): Likewise.
1126 * tree-parloops.c (separate_decls_in_region_name): Use
1127 replace_ssa_name_symbol.
1128 * tree-predcom.c (base_names_in_chain_on): Likewise.
1129 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
1131 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
1132 (create_mul_imm_cand): Likewise.
1133 (create_add_ssa_cand): Likewise.
1134 (create_add_imm_cand): Likewise.
1135 (slsr_process_add): Likewise.
1136 * tree-inline.c (remap_ssa_name): Do not set the type of the
1138 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
1139 Check for default def first.
1141 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
1143 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
1145 * sched-vis.c (print_pattern): Handle SEQUENCE also.
1147 2012-08-02 Richard Henderson <rth@redhat.com>
1151 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
1152 * cfgexpand.c (gimple_expand_cfg): Initialise it.
1153 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
1154 alignment requirements given the known alignment of dynamic_offset.
1155 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
1157 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1159 * cfgexpand.c (expand_debug_locations): Encapsulate test for
1160 CONST_DOUBLE in macro.
1161 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
1162 * cprop.c (implicit_set_cond_p): Ditto.
1163 * cselib.c (rtx_equal_for_cselib_1): Ditto.
1164 * expmed.c (expand_mult): Ditto.
1165 * expr.c (convert_modes): Ditto.
1166 * ira-costs.c (record_reg_classes): Ditto.
1167 * ira-lives.c (single_reg_class): Ditto.
1168 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
1169 * print-rtl.c (print_rtx): Ditto.
1170 * recog.c (simplify_while_replacing, const_double_operand)
1171 (asm_operand_ok, constrain_operands): Ditto.
1172 * reg-stack.c (subst_stack_regs_pat): Ditto.
1173 * reload.c (find_reloads, find_equiv_reg): Ditto.
1174 * rtlanal.c (replace_rtx): Remove test.
1175 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
1176 test for CONST_DOUBLE in macro.
1177 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
1178 (simplify_unary_operation_1, simplify_const_unary_operation)
1179 (simplify_binary_operation_1, simplify_const_binary_operation)
1180 (simplify_relational_operation_1)
1181 (simplify_const_relational_operations)
1182 (implify_subreg): Ditto.
1183 * varasm.c (output_constant_pool_2): Ditto.
1184 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
1185 * rtl.def (CONST_DOUBLE): Updated comments.
1187 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1190 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
1191 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
1192 (mips16_rewrite_pool_constant): Make a copy of the pool constant
1193 before adding to a PC-relative table.
1194 (mips16_lay_out_constants): Add a SPLIT_P parameter.
1195 (mips16_load_branch_target, mips16_split_long_branches): New functions.
1196 (mips_reorg): Update call to mips16_lay_out_constants.
1197 Call mips16_split_long_branches.
1198 * config/mips/predicates.md (pc_or_label_operand): Delete.
1199 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
1200 Move the extended_mips16 handling further down.
1201 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
1202 with explicit label_ref and pc. Follow the usual operand numbering.
1203 (*branch_equality<mode>_mips16_inverted): New pattern.
1204 (*jump_mips16): Add length attribute.
1205 (indirect_jump_and_restore_<mode>): New pattern.
1206 (consttable_int): Call mips_strip_unspec_address on the operand.
1208 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1210 * recog.c (split_insn): Copy the original SET_SRC before using
1213 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1215 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
1217 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
1219 PR tree-optimization/53805
1220 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
1221 UNORDERED_EXPR even for trapping floating point.
1223 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
1227 * ipa-inline-analysis.c (inline_free_summary): Return if
1228 inline_edge_summary_vec is NULL.
1230 * ipa-split.c (execute_split_functions): Check if a function
1231 is inlinable only if inline_edge_summary_vec != NULL.
1233 * ipa.c (symtab_remove_unreachable_nodes): Restore
1234 cgraph_propagate_frequency call when something was changed.
1235 (free_inline_summary): New function.
1236 (pass_ipa_free_inline_summary): New pass.
1238 * passes.c (init_optimization_passes): Add
1239 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
1241 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
1243 * tree-pass.h (pass_ipa_free_inline_summary): New.
1245 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
1247 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
1250 2012-08-02 Richard Guenther <rguenther@suse.de>
1252 * tree-into-ssa.c (struct common_info_d): New struct.
1253 (struct var_info_d, struct ssa_name_info): Use it.
1254 (get_ssa_name_ann): Adjust.
1255 (get_phi_state, set_phi_state): Remove.
1256 (get_common_info): New function.
1257 (get_current_def, set_current_def): Adjust.
1258 (get_def_blocks_for): Take a common info as param.
1259 (set_def_block): Call get_common_info once.
1260 (set_livein_block): Likewise.
1261 (find_def_blocks_for): Adjust.
1262 (insert_phi_nodes): Likewise.
1263 (register_new_def): Call get_common_info once.
1264 (get_reaching_def): Likewise.
1265 (rewrite_debug_stmt_uses): Likewise.
1266 (rewrite_leave_block): Likewise.
1267 (dump_currdefs): Likewise.
1268 (debug_var_infos_r): Adjust.
1269 (register_new_update_single): Call get_common_info once.
1270 (maybe_replace_use_in_debug_stmt): Likewise.
1271 (rewrite_update_leave_block): Likewise.
1272 (mark_use_interesting): Adjust.
1273 (create_new_def_for): Likewise.
1274 (update_ssa): Likewise.
1276 2012-08-02 Michael Matz <matz@suse.de>
1278 * tree-ssa-live.c (set_is_used): Return a bool.
1279 (mark_all_vars_used): Don't take data argument.
1280 (mark_all_vars_used_1): Adjust calls to above, merge handling
1281 of local and global vars.
1282 (remove_unused_scope_block_p): Don't take global_unused_vars,
1283 merge handling of local and global vars.
1284 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
1285 use is_used_p for local and global vars.
1287 2012-08-02 Richard Guenther <rguenther@suse.de>
1289 * tree-flow.h (make_rename_temp): Remove.
1290 * tree-dfa.c (make_rename_temp): Likewise.
1291 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
1292 instead of make_rename_temp.
1293 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1294 expand_omp_atomic_pipeline): Likewise.
1295 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
1296 build_tm_store, expand_call_tm, expand_transaction,
1297 ipa_tm_insert_gettmclone_call): Likewise.
1298 * tree-complex.c (expand_complex_div_wide): Likewise.
1299 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
1301 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
1303 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
1304 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
1305 gimple_mod_subtract): Likewise.
1307 2012-08-02 Richard Guenther <rguenther@suse.de>
1309 * tree-flow.h (set_default_def): Rename to ...
1310 (set_ssa_default_def): ... this. Take a struct function argument.
1311 (gimple_default_def): Rename to ...
1312 (ssa_default_def): ... this.
1313 (get_or_create_ssa_default_def): New function.
1314 * tree-dfa.c: Likewise.
1315 (dump_variable): Adjust.
1316 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
1317 for used parameters.
1318 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
1320 (split_function): Likewise.
1321 * lto-streamer-in.c (input_ssa_names): Adjust.
1322 * omp-low.c (expand_omp_taskreg): Likewise.
1323 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
1324 * tree-complex.c (init_parameter_lattice_values): Adjust.
1325 (get_component_ssa_name): Likewise.
1326 (update_parameter_components): Likewise.
1327 * tree-inline.c (remap_ssa_name): Likewise.
1328 (setup_one_parameter): Likewise.
1329 (initialize_inlined_parameters): Likewise.
1330 (declare_return_variable): Likewise.
1331 (expand_call_inline): Likewise.
1332 (tree_function_versioning): Likewise.
1333 * tree-into-ssa.c (get_default_def_for): Remove.
1334 (get_reaching_def): Use get_or_create_ssa_default_def instead.
1335 * tree-predcom.c (replace_ref_with): Adjust.
1336 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
1337 (is_unused_scalar_param): Likewise.
1338 (ptr_parm_has_direct_uses): Likewise.
1339 (sra_ipa_reset_debug_stmts): Likewise.
1340 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
1341 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1342 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1343 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
1344 avoid repeated default def lookups.
1345 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
1346 * tree-tailcall.c (arg_needs_copy_p): Adjust.
1347 (tree_optimize_tail_calls_1): Likewise.
1349 2012-08-02 Richard Guenther <rguenther@suse.de>
1351 PR tree-optimization/50672
1353 2012-08-01 Richard Guenther <rguenther@suse.de>
1355 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
1356 (replace_block_by): Adjust.
1358 2012-08-02 Richard Guenther <rguenther@suse.de>
1360 * tree-dfa.c (referenced_var_lookup): Remove.
1361 (find_referenced_vars): Remove.
1362 (pass_referenced_vars): Likewise.
1363 (make_rename_temp): Do not add referenced vars.
1364 (dump_referenced_vars): Remove.
1365 (debug_referenced_vars): Likewise.
1366 (dump_dfa_stats): Do not dump referenced var stats.
1367 (find_vars_r): Remove.
1368 (find_referenced_vars_in): Likewise.
1369 (referenced_var_check_and_insert): Likewise.
1370 (add_referenced_var_1): Likewise.
1371 (remove_referenced_var): Likewise.
1372 * tree-flow.h (referenced_var_lookup): Likewise.
1373 (struct gimple_df): Remove referenced_vars member.
1374 (typedef referenced_var_iterator): Remove.
1375 (FOR_EACH_REFERENCED_VAR): Likewise.
1376 (num_referenced_vars): Likewise.
1377 (debug_referenced_vars, dump_referenced_vars): Likewise.
1378 (add_referenced_var_1, add_referenced_var): Likewise.
1379 (remove_referenced_var): Likewise.
1380 (find_referenced_vars_in): Likewise.
1381 * tree-flow-inline.h (gimple_referenced_vars): Remove.
1382 (first_referenced_var): Likewise.
1383 (end_referenced_vars_p): Likewise.
1384 (next_referenced_var): Likewise.
1385 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
1386 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
1388 * tree-into-ssa.c (dump_decl_set): Likewise.
1389 (pass_build_ssa): Do not require PROP_referenced_vars.
1390 * tree-ssa.c (target_for_debug_bind): Virtual operands are
1391 not suitable, but all register type vars are.
1392 (init_tree_ssa): Do not allocate referenced vars.
1393 (delete_tree_ssa): Do not free referenced vars.
1394 * cgraphunit.c (init_lowered_empty_function): Do not set
1395 PROP_referenced_vars.
1396 (assemble_thunk): Do not add referenced vars.
1397 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1398 (gimplify_and_update_call_from_tree): Likewise.
1399 * gimple-streamer-in.c (input_bb): Likewise.
1400 * passes.c (init_optimization_passes): Do not run
1401 pass_referenced_vars.
1402 (dump_properties): Do not dump PROP_referenced_vars.
1403 * tree-inline.c (remap_decl): Do not add referenced vars.
1404 (remap_gimple_op_r): Likewise.
1405 (copy_tree_body_r): Likewise.
1406 (copy_bb): Likewise.
1407 (setup_one_parameter): Likewise.
1408 (declare_return_variable): Likewise.
1409 (copy_decl_for_dup_finish): Likewise.
1410 (copy_arguments_for_versioning): Likewise.
1411 (tree_function_versioning): Likewise.
1412 * tree-pass.h (PROP_referenced_vars): Remove.
1413 (pass_referenced_vars): Likewise.
1414 * tree-profile.c (gimple_gen_edge_profiler): Do not add
1416 (gimple_gen_interval_profiler): Likewise.
1417 (gimple_gen_pow2_profiler): Likewise.
1418 (gimple_gen_one_value_profiler): Likewise.
1419 (gimple_gen_ic_profiler): Likewise.
1420 (gimple_gen_average_profiler): Likewise.
1421 (gimple_gen_ior_profiler): Likewise.
1422 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
1423 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
1424 (move_stmt_op): Likewise.
1425 * tree-ssa-operands.c (create_vop_var): Likewise.
1426 * gimple-low.c (record_vars_into): Likewise.
1427 * gimplify.c (gimple_regimplify_operands): Likewise.
1428 (force_gimple_operand_1): Likewise.
1429 * omp-low.c (expand_omp_for_generic): Likewise.
1430 (expand_omp_for_static_chunk): Likewise.
1431 (expand_omp_atomic_pipeline): Likewise.
1432 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
1433 (translate_clast_assignment): Likewise.
1434 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
1435 (handle_scalar_deps_crossing_scop_limits): Likewise.
1436 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1437 * ipa-split.c (split_function): Likewise.
1438 * matrix-reorg.c (transform_access_sites): Likewise.
1439 * trans-mem.c (tm_log_add): Likewise.
1440 (ipa_tm_insert_gettmclone_call): Likewise.
1441 * tree-complex.c (create_one_component_var): Likewise.
1442 * tree-if-conv.c (ifc_temp_var): Likewise.
1443 * tree-parloops.c (take_address_of): Likewise.
1444 (initialize_reductions): Likewise.
1445 (separate_decls_in_region_name): Likewise.
1446 (create_call_for_reduction_1): Likewise.
1447 (separate_decls_in_region): Likewise.
1448 * tree-predcom.c (predcom_tmp_var): Likewise.
1449 (reassociate_to_the_same_stmt): Likewise.
1450 * tree-sra.c (build_ref_for_offset): Likewise.
1451 (create_access_replacement): Likewise.
1452 (get_replaced_param_substitute): Likewise.
1453 (sra_ipa_reset_debug_stmts): Likewise.
1454 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
1455 (rewrite_bittest): Likewise.
1456 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
1457 * tree-ssa-loop-manip.c (create_iv): Likewise.
1458 (tree_transform_and_unroll_loop): Likewise.
1459 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
1460 (build_and_insert_call): Likewise.
1461 (gimple_expand_builtin_cabs): Likewise.
1462 (execute_optimize_bswap): Likewise.
1463 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1464 (abs_replacement): Likewise.
1465 (cond_store_replacement): Likewise.
1466 (cond_if_else_store_replacement_1): Likewise.
1467 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1468 * tree-ssa-pre.c (get_representative_for): Likewise.
1469 (create_expression_by_pieces): Likewise.
1470 (insert_into_preds_of_block): Likewise.
1471 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
1472 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1473 (eliminate_redundant_comparison): Likewise.
1474 (rewrite_expr_tree_parallel): Likewise.
1475 (get_reassoc_pow_ssa_name): Likewise.
1476 * tree-ssa-strlen.c (get_string_length): Likewise.
1477 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1478 (build_arrays): Likewise.
1479 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1480 (create_tailcall_accumulator): Likewise.
1481 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
1482 (vect_create_addr_base_for_vector_ref): Likewise.
1483 (vect_permute_store_chain): Likewise.
1484 (vect_permute_load_chain): Likewise.
1485 * tree-vect-generic.c (expand_vector_divmod): Likewise.
1486 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
1487 (vect_build_loop_niters): Likewise.
1488 (vect_generate_tmps_on_preheader): Likewise.
1489 (vect_update_ivs_after_vectorizer): Likewise.
1490 (vect_gen_niters_for_prolog_loop): Likewise.
1491 (vect_do_peeling_for_alignment): Likewise.
1492 (vect_create_cond_for_align_checks): Likewise.
1493 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
1494 (vect_handle_widen_op_by_const): Likewise.
1495 (vect_operation_fits_smaller_type): Likewise.
1496 (vect_recog_over_widening_pattern): Likewise.
1497 * tree-vect-stmts.c (vect_init_vector): Likewise.
1499 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1502 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
1504 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1507 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
1508 falling back to copy_rtx on non-autoinc machines.
1509 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
1511 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1514 * valtrack.h, valtrack.c: New.
1515 * Makefile.in (VALTRACK_H): New.
1516 (OBJS): Add valtrack.o.
1518 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
1519 * combine.c: Include valtrack.h.
1520 (make_compound_operation): Publish.
1521 (cleanup_auto_inc_dec): Move to valtrack.c.
1522 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
1523 (propagate_for_debug): Likewise. Add this_basic_block parameter.
1525 * cselib.c: Include valtrack.h.
1527 * df-problems.c: Likewise.
1528 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
1529 (dead_debug_finish, dead_debug_add): Likewise.
1530 (dead_debug_insert_temp): Likewise.
1531 * df.h (struct dead_debug_use): Move to valtrack.h.
1532 (struct dead_debug, enum debug_temp_where): Likewise.
1533 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
1534 (dead_debug_finish, dead_debug_add): Likewise.
1535 (dead_debug_insert_temp): Likewise.
1536 * rtl.h (make_compound_operation): Declare.
1538 2012-08-01 Catherine Moore <clm@codesourcery.com>
1539 Sandra Loosemore <sandra@codesourcery.com>
1541 * config/mips/mips-cpus.def (34kn): New.
1542 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
1543 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
1544 * config/mips/mips-tables.opt: Regenerate.
1545 * doc/invoke.texi (MIPS Options): Document -march=34kn.
1547 2012-08-01 Richard Henderson <rth@redhat.com>
1549 * expmed.h (NUM_MODE_PARTIAL_INT): New.
1550 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
1551 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
1552 (struct expmed_op_costs): Likewise.
1553 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
1554 (expmed_mode_index): New.
1555 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
1556 (convert_cost_ptr): Likewise.
1557 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
1558 (init_expmed_one_conv): Split out from ...
1559 (init_expmed_one_mode): ... here. Iterate conversions over
1560 partial integer modes too.
1561 (init_expmed): Iterate over partial integer modes too.
1563 2012-08-01 Richard Henderson <rth@redhat.com>
1565 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
1566 (m32c_init_libfuncs): Remove.
1567 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
1568 (cstore<QHPSI>4): New expander.
1570 2012-08-01 Richard Guenther <rguenther@suse.de>
1572 * tree-flow-inline.h (referenced_var): Remove.
1573 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
1575 * tree-sra.c (candidates): New global hashtable.
1576 (candidate): New function.
1577 (sra_initialize): Initialize candidates.
1578 (sra_deinitialize): Free candidates.
1579 (disqualify_candidate): Remove candidate from candidates.
1580 (maybe_add_sra_candidate): New function.
1581 (find_var_candidates): Walk over all local decls and parameters,
1582 add candidates to candidates hashtable.
1583 (find_param_candidates): Add candidates to candidates hashtable.
1584 (analyze_all_variable_accesses): Use candidate instead of
1587 2012-08-01 Tom de Vries <tom@codesourcery.com>
1589 * tree-vrp.c (find_case_label_ranges): New function.
1590 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
1591 find_case_label_ranges instead of find_case_label_range. Handle second
1594 2012-08-01 Michael Matz <matz@suse.de>
1596 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
1597 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
1598 (dump_dfa_stats): Don't dump stats about var anns.
1599 (collect_dfa_stats): Don't collect them.
1600 (add_referenced_var_1): Don't set var annotation pointers.
1601 (remove_referenced_var): Ditto, and only remove it it's in the
1604 * tree-flow-inline.h (var_ann): Remove.
1605 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
1607 * tree-inline.c (remapped_type): Remove.
1608 (can_be_nonlocal): Most variable will be considered live here,
1609 return false earlier.
1610 (remap_decls): Don't call var_ann, all variables will be considered
1612 (copy_debug_stmt): Ditto, and use is_global_var.
1614 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
1615 determine if a variable was referred to, not var_ann.
1616 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
1617 (remove_unused_locals): Ditto.
1618 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
1619 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
1620 * tree.c (copy_node_stat): Don't clear var ann pointer.
1621 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
1623 (DECL_VAR_ANN_PTR): Remove.
1625 2012-08-01 Michael Matz <matz@suse.de>
1627 * tree-flow.h (struct var_ann_d): Rename used member.
1628 (set_is_used): Don't declare.
1629 * tree-flow-inline.h (clear_is_used): Remove.
1630 (set_is_used, is_used_p): Move to ...
1631 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
1633 (usedvars): New bitmap.
1634 (dump_scope_block): Don't dump unusedness.
1635 (remove_unused_locals): Allocate and free usedvars.
1636 * tree-nrv.c (tree_nrv): Don't clear used flags here.
1638 2012-08-01 Michael Matz <matz@suse.de>
1640 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
1642 * tree-ssa-live.h (struct _var_map): Remove basevars member.
1643 (VAR_ANN_BASE_INDEX): Remove.
1644 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
1645 of var annotation to compress index space. Don't deal with above
1647 (var_map_base_fini): Don't free basevars.
1648 (init_var_map): Don't clear basevars.
1650 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
1652 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
1653 base_name to base_expr.
1654 (struct cand_chain_d): Likewise.
1655 (base_cand_hash): Likewise.
1656 (base_cand_eq): Likewise.
1657 (record_potential_basis): Likewise.
1658 (alloc_cand_and_find_basis): Likewise.
1659 (create_mul_ssa_cand): Likewise.
1660 (create_mul_imm_cand): Likewise.
1661 (create_add_ssa_cand): Likewise.
1662 (create_add_imm_cand): Likewise.
1663 (slsr_process_cast): Likewise.
1664 (slsr_process_copy): Likewise.
1665 (dump_candidate): Likewise.
1666 (base_cand_dump_callback): Likewise.
1667 (unconditional_cands_with_known_stride_p): Likewise.
1668 (cand_increment): Likewise.
1670 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
1672 PR tree-optimization/46556
1673 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
1674 (base_cand_map): Change to hash table.
1675 (base_cand_hash): New function.
1676 (base_cand_free): Likewise.
1677 (base_cand_eq): Likewise.
1678 (lookup_cand): Change base_cand_map to hash table.
1679 (find_basis_for_candidate): Likewise.
1680 (base_cand_from_table): Exclude CAND_REF.
1681 (restructure_reference): New function.
1682 (slsr_process_ref): Likewise.
1683 (find_candidates_in_block): Call slsr_process_ref.
1684 (dump_candidate): Handle CAND_REF.
1685 (base_cand_dump_callback): New function.
1686 (dump_cand_chains): Change base_cand_map to hash table.
1687 (replace_ref): New function.
1688 (replace_refs): Likewise.
1689 (analyze_candidates_and_replace): Call replace_refs.
1690 (execute_strength_reduction): Change base_cand_map to hash table.
1692 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
1694 * config/i386/i386.c (ix86_address_subreg_operand): Reject
1696 (ix86_print_operand_address): Assert that parts.base and parts.index
1697 are non-NULL after call to simplify_subreg.
1699 2012-08-01 Richard Guenther <rguenther@suse.de>
1701 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
1703 2012-08-01 Richard Guenther <rguenther@suse.de>
1705 * graphite-clast-to-gimple.c (translate_clast_user): Rename
1707 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
1709 * tree-call-cdce.c (tree_call_cdce): Use
1710 mark_virtual_operands_for_renaming.
1711 * tree-eh.c (sink_clobbers): Simplify.
1712 * tree-flow.h (mark_sym_for_renaming): Remove.
1713 (mark_virtual_operands_for_renaming): New function.
1714 * tree-if-conv.c (tree_if_conversion): Use
1715 mark_virtual_operands_for_renaming.
1716 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
1717 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
1718 (mark_virtual_operands_for_renaming): New function.
1719 * tree-loop-distribution.c (tree_loop_distribution): Use
1720 mark_virtual_operands_for_renaming.
1721 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
1722 update stmts, use mark_virtual_operands_for_renaming.
1723 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
1724 (replace_block_by): Adjust.
1725 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
1726 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
1727 mark_virtual_operands_for_renaming.
1728 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
1729 * tree-vectorizer.c (vectorize_loops): Likewise.
1731 2012-08-01 Richard Guenther <rguenther@suse.de>
1733 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
1734 add ssa_renaming_needed and rename_vops flags.
1735 (SYMS_TO_RENAME): Remove.
1736 (symbol_marked_for_renaming): Likewise.
1737 (mark_virtual_ops_for_renaming): Likewise.
1738 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
1740 (mark_for_renaming, marked_for_renaming): New functions.
1741 (symbol_marked_for_renaming): Remove.
1742 (dump_currdefs): Adjust.
1743 (maybe_replace_use): Likewise.
1744 (maybe_replace_use_in_debug_stmt): Likewise.
1745 (maybe_register_def): Likewise.
1746 (rewrite_update_phi_arguments): Likewise.
1747 (rewrite_update_enter_block): Likewise.
1748 (fini_ssa_renamer): Clear update SSA status here ...
1749 (delete_update_ssa): ... not here. Free rename set.
1750 (prepare_block_for_update): Compute which decls need renaming.
1751 (dump_update_ssa): Adjust.
1752 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
1753 (need_ssa_update_p): Adjust.
1754 (insert_updated_phi_nodes_for): Likewise.
1755 (update_ssa): Likewise.
1756 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
1757 for virtual and real operands.
1758 (finalize_ssa_uses): Likewise.
1759 * tree-ssanames.c (init_ssanames): Adjust.
1760 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
1761 execute_update_addresses_taken): Add bitmap to keep track of which
1762 candidates are suitable for rewriting and later renaming by SSA update.
1763 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
1764 * tree-dfa.c (make_rename_temp): Do not mark real operands for
1766 * cgraphunit.c (assemble_thunk): Likewise.
1767 * gimplify.c (gimple_regimplify_operands): Likewise.
1768 (force_gimple_operand_1): Likewise.
1769 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1770 * tree-inline.c (declare_return_variable): Likewise.
1771 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
1772 mark_virtual_ops_for_renaming.
1773 (create_stores_for_reduction): Likewise.
1774 (create_loads_and_stores_for_name): Likewise.
1775 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
1776 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
1777 (execute_load_motion): Likewise.
1778 (remove_stmt): Likewise.
1779 (execute_pred_commoning_chain): Likewise.
1780 * tree-sra.c (create_access_replacement): Do not rename real operands.
1781 (get_unrenamed_access_replacement): Unify with ...
1782 (get_access_replacement): ... this.
1783 (get_repl_default_def_ssa_name): Adjust.
1784 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
1786 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
1787 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
1789 2012-07-31 DJ Delorie <dj@redhat.com>
1791 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
1792 extensions for TPF, unless specifically selected.
1794 2012-08-01 Alan Modra <amodra@gmail.com>
1797 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
1798 of lo_sum offsets. Comment. Assert mode at least word size
1799 rather than bypassing powerpc64 word offset check.
1801 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
1803 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
1804 costs for vec_perm and vec_promote_demote down to more natural values.
1805 (struct _rs6000_cost_data): New data structure.
1806 (rs6000_density_test): New function.
1807 (rs6000_init_cost): Change to use rs6000_cost_data.
1808 (rs6000_add_stmt_cost): Likewise.
1809 (rs6000_finish_cost): Perform density test when vectorizing a loop.
1811 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1813 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
1814 of RTX_UNARY function-like operations. Print unknown expression
1815 RTX classes as pseudo-functions.
1816 (print_pattern): Simplify return pattern printing.
1817 (dump_insn_slim): Print the value of notes as a pattern for proper
1818 printing of CFA notes.
1820 2012-07-31 Dehao Chen <dehao@google.com>
1822 * predict.c (tree_estimate_probability_driver): Normalize the
1823 loop when initializing the loop optimizer.
1825 2012-07-31 Richard Guenther <rguenther@suse.de>
1827 * tree-flow.h (struct var_ann_d): Remove need_phi_state
1828 and current_def members.
1829 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
1830 (def_blocks): Remove.
1831 (struct var_info_d): New.
1832 (var_infos): New hashtable.
1833 (struct ssa_name_info): Add def_blocks member.
1834 (get_ssa_name_ann): Adjust.
1835 (get_var_info): New function.
1836 (get_phi_state, set_phi_state, get_current_def,
1837 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
1838 (insert_phi_nodes_compare_def_blocks): Rename to ...
1839 (insert_phi_nodes_compare_var_infos): ... this and adjust.
1840 (insert_phi_nodes): Adjust.
1841 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
1842 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
1843 (debug_def_blocks_r): Rename to ...
1844 (debug_var_infos_r): ... this and adjust.
1845 (var_info_hash): New function.
1846 (var_info_eq): Likewise.
1847 (rewrite_blocks): Adjust.
1848 (init_ssa_renamer): Likewise.
1849 (fini_ssa_renamer): Likewise.
1850 (delete_update_ssa): Likewise.
1851 (update_ssa): Likewise.
1852 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
1854 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
1856 PR tree-optimization/53773
1857 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
1858 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
1859 * tree-vect-loop.c (new_loop_vec_info): Initialize
1860 LOOP_VINFO_OPERANDS_SWAPPED field.
1861 (destroy_loop_vec_info): Restore canonical form.
1862 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
1863 (vect_is_simple_reduction_1): Likewise.
1865 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1867 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
1868 start of each new line.
1869 * final.c (final_scan_insn): If the final dump is requested as
1870 slim RTL, dump slim RTL to the assembly file also.
1872 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
1876 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
1879 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
1881 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1882 only if producer writes to the register given by regno.
1884 2012-07-31 Nick Clifton <nickc@redhat.com>
1886 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
1887 support for reporting stack usage.
1889 * config/frv/frv.c (QUAD): Fix typo.
1890 (frv_expand_prologue): Report stack usage.
1892 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1895 * gengtype.c (struct walk_type_data): Add have_this_obj field.
1896 (walk_type): For functions that take a this_obj argument and
1897 that process fields with a GTY((length)) argument, write the
1898 test that write_types_local_process_field will write also at the
1899 head of the loop, effectively unswitching the loop.
1900 (write_func_for_structure, write_local_func_for_structure): Clear
1901 have_this_obj before calling walk_type.
1902 (write_local_func_for_structure): Set have_this_obj before walk_type.
1903 (write_array): Set have_this_obj for output of local pointer walking
1904 functions but not for marker functions.
1905 (write_types_local_process_field): Assert have_this_obj is set.
1907 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
1910 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
1913 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1914 * targhooks.c (default_mode_dependent_address_p): Delete code
1915 for GO_IF_MODE_DEPENDENT_ADDRESS.
1916 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
1917 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
1918 * doc/tm.texi: Regenerate.
1919 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
1920 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
1922 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1923 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1924 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1925 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
1926 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1927 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
1929 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1931 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
1933 * expmed.h (NUM_MODE_VECTOR_INT): Define.
1934 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
1935 (struct target_expmed): Convert x_mul_highpart_cost and
1936 x_mul_widen_cost fields to be indexed by integer modes.
1937 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
1938 of type struct expmed_op_cheap. Convert other cost fields to be
1939 of type struct_expmed_op_costs.
1940 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
1941 indexing of respective fields.
1942 (expmed_op_cheap_ptr): New function.
1943 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
1944 (expmed_op_cost_ptr): New function.
1945 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
1946 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
1947 sdiv_cost_ptr, udiv_cost_ptr): Call it.
1949 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
1950 Julian Brown <julian@codesourcery.com>
1952 * doc/invoke.texi (MIPS Options): Document -mno-float.
1953 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
1956 2012-07-30 Joseph Myers <joseph@codesourcery.com>
1958 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
1960 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1963 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
1964 for special cases. Don't initialize coeff and is_neg.
1966 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1967 Richard Earnshaw <rearnsha@arm.com>
1969 * target.def (vector_alignment): New target hook.
1970 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
1971 * doc/tm.texi: Regenerate.
1972 * targhooks.c (default_vector_alignment): New function.
1973 * targhooks.h (default_vector_alignment): Add prototype.
1974 * stor-layout.c (layout_type): Use targetm.vector_alignment.
1975 * config/arm/arm.c (arm_vector_alignment): New function.
1976 (TARGET_VECTOR_ALIGNMENT): Define.
1978 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
1979 vector type alignment instead of size.
1980 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
1981 element type size directly instead of computing it from alignment.
1982 Fix variable naming and comment.
1984 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
1985 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1987 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
1988 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
1989 (ix86_handle_option): Handle mrdseed option.
1990 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
1991 (x86_64-*-*): Likewise.
1992 * config/i386/prfchwintrin.h: New header.
1993 * config/i386/cpuid.h (bit_RDSEED): New.
1994 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1996 * config/i386/i386-c.c: Define __RDSEED__ if needed.
1997 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
1999 (ix86_option_override_internal): Handle new option.
2000 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
2001 (ix86_builtins): Add enum entries for RDSEED* builtins.
2002 (ix86_init_mmx_sse_builtins): Define new builtins.
2003 (ix86_expand_builtin): Expand RDSEED* builtins.
2004 * config/i386/i386.h (TARGET_RDSEED): New.
2005 * config/i386/i386.md (rdseed<mode>_1): New.
2006 * config/i386/i386.opt (mrdseed): New.
2007 * config/i386/x86intrin.h: Include rdseedintrin.h.
2009 2012-07-30 Richard Guenther <rguenther@suse.de>
2011 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
2012 (rewrite_stmt): Likewise.
2013 (rewrite_enter_block): Likewise.
2014 (pass_build_ssa): Do not update virtual SSA form during TODO.
2015 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
2016 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
2018 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
2021 * config/gcc/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
2024 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
2027 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
2028 Use t_reg_operand predicate. Add split for negated case.
2029 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
2030 * config/sh/sh.c (expand_ashiftrt): Likewise.
2032 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
2035 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
2036 of trying to emit ashlsi3_n.
2038 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2039 Steven Bosscher <steven@gcc.gnu.org>
2041 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
2042 option applications and option being applied to arrays of atomic types.
2043 (walk_type): Allow "atomic" option on strings too.
2044 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
2045 for the array field.
2046 * vec.h: Describe the atomic object "A" type of the macros in
2048 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
2049 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
2050 * doc/gty.texi: Clarify that GTY option "length" is only for
2051 arrays of non-atomic objects. Fix typo in the description of the
2054 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
2056 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
2057 zero-extended addresses. Return false if the address has less
2058 than two components.
2059 (ix86_split_lea_for_addr): Unconditionally convert target and
2060 all address operands to requested mode.
2061 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
2062 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
2064 (zero-extended add splitter): New splitter to conditionally split
2065 non-destructive adds.
2066 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
2068 2012-07-28 Alan Modra <amodra@gmail.com>
2071 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
2072 multi-gpr reload to cases where predicate passes. Do the same for
2073 64-bit multi-gpr reload.
2075 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
2077 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
2078 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
2079 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
2080 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
2081 macro definitions and re-purpose as inline functions.
2082 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
2083 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
2084 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
2085 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
2086 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
2087 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
2088 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
2089 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
2090 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
2092 (convert_cost_ptr): New function, split out from...
2093 (set_convert_cost, convert_cost): ...here.
2094 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
2095 * gimple-ssa-strength-reduction.c: Likewise.
2097 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
2099 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
2100 diagnostic_initialize.
2102 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
2105 * config/sh/sh.c (shiftcosts): Remove case where first operand
2106 is a const_int. Move COSTS_N_INSNS usage into caller ...
2107 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
2108 calculated instead of MAX_COST.
2110 2012-07-27 Richard Guenther <rguenther@suse.de>
2112 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
2113 check whether SSA form is not up-to-date.
2114 * tree-flow.h (name_mappings_registered_p): Remove.
2115 * tree-into-ssa.c (struct repl_map_d): Remove.
2116 (repl_tbl): Likewise.
2117 (struct ssa_name_info): Add repl_set member.
2118 (update_ssa_obstack): New static global.
2119 (get_ssa_name_ann): Initialize repl_set.
2120 (clear_ssa_name_info): Assert age did not wrap.
2121 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
2122 (names_replaced_by): Adjust.
2123 (add_to_repl_tbl): Likewise.
2124 (dump_tree_ssa_stats): Likewise.
2125 (init_update_ssa): Initialize update_ssa_obstack.
2126 (delete_update_ssa): Free update_ssa_obstack.
2127 (name_mappings_registered_p): Remove.
2128 (update_ssa): Adjust.
2130 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2132 * config/rs6000/constraints.md: Delete "q" constraint.
2133 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
2134 Delete the "q" alternative.
2135 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
2136 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
2137 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
2138 adjust to MQ_REGNO removal.
2139 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
2141 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
2142 (enum reg_class): Adjust comment. Delete MQ_REGS.
2143 (REG_CLASS_CONTENTS): Adjust.
2144 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
2145 * config/rs6000/rs6000.md: Delete MQ_REGNO.
2146 (movsi_internal1, movsi_internal1_single, movhi_internal,
2147 movqi_internal, movcc_internal1, movsf_hardfloat,
2148 movsf_softfloat): Delete the "q" alternative.
2149 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
2150 ctr<mode>_internal6): Delete "q" constraint.
2152 2012-07-27 Richard Guenther <rguenther@suse.de>
2154 * tree-into-ssa.c (def_blocks_p): New typedef.
2155 (insert_phi_nodes_compare_def_blocks): New function.
2156 (insert_phi_nodes): Do not walk over referenced vars, instead
2157 walk over recorded def_blocks, record relevant ones and sort
2158 them to avoid repeated hashtable lookups.
2160 2012-07-27 Richard Guenther <rguenther@suse.de>
2162 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
2163 Remove param documentation.
2164 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
2165 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
2166 * tree-flow.h (mark_set_for_renaming): Remove.
2167 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
2168 (add_new_name_mapping): Remove bookkeeping code.
2169 (dump_update_ssa): Remove stats dumping code.
2170 (init_update_ssa): Remove stats allocation code.
2171 (delete_update_ssa): Remove stats freeing code.
2172 (mark_set_for_renaming): Remove.
2173 (switch_virtuals_to_full_rewrite_p): Likewise.
2174 (switch_virtuals_to_full_rewrite): Likewise.
2175 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
2177 2012-07-27 Marek Polacek <polacek@redhat.com>
2179 * cgraphunit.c: Rename varpool_finalize_variable to
2180 varpool_finalize_decl in a comment.
2182 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2184 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
2185 Delete code for -mno-power, -mpower, and -mpower2.
2186 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
2187 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2189 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
2190 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
2191 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2193 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
2194 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
2195 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2197 (TARGET_POWER): Delete.
2198 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
2199 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2201 (TARGET_POWER): Delete.
2202 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
2203 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2205 (TARGET_POWER): Delete.
2206 * config/rs6000/darwin.h (TARGET_POWER): Delete.
2207 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
2208 support for -mpower, -mpower2, and -mno-power.
2209 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2211 (rs6000_cpu_cpp_builtins): Likewise.
2212 * config/rs6000/rs6000-cpus.def: Likewise.
2213 * config/rs6000/rs6000-tables.opt: Regenerate.
2214 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
2215 (rs6000_option_override_internal): Adjust.
2216 (rs6000_conditional_register_usage): Adjust.
2217 (rs6000_emit_move): Adjust.
2218 (rs6000_common_init_builtins): Adjust.
2219 (rs6000_init_libfuncs): Adjust.
2220 (rs6000_output_function_prologue): Adjust.
2221 (rs6000_adjust_cost): Adjust.
2222 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
2223 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
2225 (TARGET_DEFAULT): Adjust.
2226 (PROCESSOR_POWER): Delete.
2227 (SHIFT_COUNT_TRUNCATED): Adjust.
2228 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
2229 (extendqisi2_power): Delete.
2230 (extendqisi2_no_power): Adjust.
2231 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
2233 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
2234 (anonymous doz insn patterns): Delete.
2236 (abssi2_power): Delete.
2237 (abssi2_nopower): Adjust.
2238 (nabs_power, nabs_nopower): Likewise.
2239 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
2240 Likewise. Delete anonymous post-reload splitter.
2241 (mulsi3_no_mq_internal1): rename to...
2242 (mulsi3_internal1): New define_insn.
2243 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
2245 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
2246 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
2247 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
2248 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
2249 quous_call): Likewise.
2250 (maskir_internal1, maskir_internal2, maskir_internal3,
2251 maskir_internal4, maskir_internal5, maskir_internal6,
2252 maskir_internal7, maskir_internal8): Delete.
2253 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
2254 (anonymous sl insn patterns): Delete.
2255 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
2256 (lshrsi3_64): Adjust.
2257 (anonymous sr insn patterns): Delete.
2258 (anonymous rrib insn patterns): Delete.
2259 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
2260 (anonymous sra insn patterns): Delete.
2261 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
2262 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
2263 fctiwz_<mode>): Adjust.
2264 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
2265 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
2266 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
2267 umulsi3_highpart_no_mq): Adjust.
2268 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
2269 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
2270 lshrdi3_internal1): Adjust.
2271 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
2272 (movti_power): Delete.
2273 (movti_string): Adjust.
2274 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
2275 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
2276 stmsi4_power, stmsi3_power): Delete.
2277 (anonymous movmemsi insn patterns): Adjust.
2278 (lfq_power2, stfq_power2): Delete.
2279 (eq<mode>, eq<mode>_compare): Adjust.
2280 (eqsi_power): Delete.
2282 (anonymous le, lt, ge, gt insn patterns): Delete.
2283 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
2284 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
2285 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2286 MULTILIB_MATCHES): Adjust.
2287 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
2288 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
2289 Delete -mcpu=power and -mcpu=power2 documentation.
2291 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2293 * config/rs6000/601.md: New file.
2294 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
2296 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
2297 * config/rs6000/driver-rs6000.c (detect_processor_aix,
2298 struct asm_names): Likewise.
2299 * config/rs6000/rios1.md: Delete file.
2300 * config/rs6000/rios2.md: Delete file.
2301 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
2303 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
2304 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
2305 * config/rs6000/rs6000-tables.opt: Regenerated.
2306 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
2308 (rs6000_option_override_internal): Delete support for RIOS CPUs.
2309 (rs6000_conditional_register_usage): Adjust comment.
2310 (rs6000_issue_rate):Delete support for RIOS CPUs.
2311 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
2313 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
2314 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
2315 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
2317 (include "rios1.md", include "rios2.md"): Delete.
2318 (include "601.md"): New.
2319 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
2321 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
2323 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
2324 rios2.md . Add 601.md .
2326 2012-07-26 Richard Henderson <rth@redhat.com>
2328 * doc/extend.texi (attribute): Document hot/cold for labels.
2329 * predict.c (tree_estimate_probability_bb): Handle hot/cold
2330 attributes on user labels.
2331 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
2333 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
2334 Sandra Loosemore <sandra@codesourcery.com>
2336 * cse.c (find_comparison_args): Check for cycles of any length.
2338 2012-07-26 Nick Clifton <nickc@redhat.com>
2340 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
2341 (mn10300_get_live_callee_saved_regs): If requested return a count
2342 of the number of bytes in the mask.
2343 (mn10300_expand_prologue): Add argument to invocation of
2344 mn10300_get_live_callee_regs.
2345 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
2346 mn10300_get_live_callee_saved_regs.
2347 (mn10300_initial_offset): Likewise.
2348 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
2350 * config/mn10300/mn10300.md (return_ret): Add argument to
2351 invocation of mn10300_get_live_callee_saved_regs.
2353 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
2356 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
2357 pointer difference check.
2359 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
2361 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
2362 (mbc_entry_eq): Likewise.
2363 (mult_costs): Likewise.
2364 (cost_tables_exist): Likewise.
2365 (initialize_costs): Likewise.
2366 (finalize_costs): Likewise.
2367 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
2368 (add_regs_cost): Remove.
2369 (multiply_regs_cost): Likewise.
2370 (add_const_cost): Likewise.
2371 (extend_or_trunc_reg_cost): Likewise.
2372 (negate_reg_cost): Likewise.
2373 (struct mbc_entry): Likewise.
2374 (multiply_by_const_cost): Likewise.
2375 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
2376 change multiply_by_const_cost to mult_by_coeff_cost.
2377 (force_expr_to_var_cost): Likewise.
2378 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
2379 (get_computation_cost_at): Change add_regs_cost calls to add_cost
2380 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
2381 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
2382 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
2383 * tree-ssa-address.c (expmed.h): New #include.
2384 (most_expensive_mult_to_index): Change multiply_by_const_cost to
2386 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
2387 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
2388 neg_cost, and convert_cost instead of IVOPTS interfaces.
2389 (execute_strength_reduction): Remove calls to initialize_costs and
2391 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
2392 (init_expmed_one_mode): Initialize convert rtx_def; initialize
2393 x_convert_cost for related modes.
2394 (mult_by_coeff_cost): New function.
2395 * expmed.h (NUM_MODE_INT): New #define.
2396 (struct target_expmed): Add x_convert_cost matrix.
2397 (set_convert_cost): New inline function.
2398 (convert_cost): Likewise.
2399 (mult_by_coeff_cost): New extern decl.
2400 * tree-flow.h (initialize_costs): Remove decl.
2401 (finalize_costs): Likewise.
2402 (multiply_by_const_cost): Likewise.
2403 (add_regs_cost): Likewise.
2404 (multiply_regs_cost): Likewise.
2405 (add_const_cost): Likewise.
2406 (extend_or_trunc_reg_cost): Likewise.
2407 (negate_reg_cost): Likewise.
2408 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
2409 (tree-ssa-address.o): Update dependencies.
2411 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
2413 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
2414 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
2415 (TEST_BIT): Make a static inline function for stronger type checking.
2416 (SET_BIT): Don't handle sbitmaps with popcount.
2417 (RESET_BIT): Likewise.
2418 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
2419 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
2420 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
2421 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
2422 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
2423 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
2424 * sparseset.h: Add explanation of sparse set representation.
2426 2012-07-26 Richard Guenther <rguenther@suse.de>
2428 PR tree-optimization/54098
2429 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
2430 original range was UNDEFINED.
2432 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2434 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
2437 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
2440 * config/sh/sh.opt (mzdcbranch): New option.
2441 * doc/invoke.texi: Document it.
2442 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
2443 instead of TARGET_HARD_SH4.
2444 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
2445 for TARGET_HARD_SH4.
2447 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2450 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
2452 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
2453 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
2454 from expander. Do not emit shift insn for not-SHMEDIA case.
2455 (ashlsi3_std): Replace with ...
2456 (ashlsi3_k, ashlsi3_d): ... these new insns.
2457 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
2458 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
2459 (gen_ashift_hi): Make static.
2460 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
2463 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
2464 Jim Wilson <jimwilso@cisco.com>
2466 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
2467 TARGET_BIG_ENDIAN_DEFAULT.
2469 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
2471 * gimple-low.c (lower_try_catch): New function.
2472 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
2473 <GIMPLE_CATCH>: Delete.
2474 <GIMPLE_EH_FILTER>: Likewise.
2476 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
2478 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
2479 of BIT_FIELD_REF for ignored results.
2480 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
2481 CONSTRUCTOR has vector type before using vector accessors on it.
2482 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
2483 #2 of BIT_FIELD_REF.
2484 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
2485 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
2486 not process operand #1 and #2.
2487 (convert_local_reference_op): Likewise.
2488 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
2490 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
2491 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
2493 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
2494 (build6_stat): Delete.
2495 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
2497 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
2499 PR tree-optimization/30318
2500 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
2502 [MINUS_EXPR]: Merge with PLUS_EXPR.
2504 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
2505 Paul Brook <paul@codesourcery.com>
2508 * target.def (warn_func_return): New hook.
2509 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
2510 * doc/tm.texi: Regenerate.
2511 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2513 * ipa-pure-const.c (warn_function_noreturn): Check
2514 targetm.warn_func_return.
2515 * tree-cfg.c (execute_warn_function_return): Likewise.
2516 * config/spu/spu.c (spu_warn_func_return): New.
2517 (TARGET_WARN_FUNC_RETURN): Define.
2518 * config/rx/rx.c (rx_warn_func_return): New.
2519 (TARGET_WARN_FUNC_RETURN): Define.
2520 * config/avr/avr.c (avr_warn_func_return): New.
2521 (TARGET_WARN_FUNC_RETURN): Define.
2522 * config/arm/arm.c (arm_warn_func_return): New.
2523 (TARGET_WARN_FUNC_RETURN): Define.
2524 * config/mcore/mcore.c (mcore_warn_func_return): New.
2525 (TARGET_WARN_FUNC_RETURN): Define.
2526 (saved_warn_return_type, saved_warn_return_type_count): Remove.
2527 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
2529 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2531 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
2532 function to implement assembler dialects.
2533 (output_asm_insn): Use do_assembler_dialects.
2534 (asm_fprintf): Likewise.
2536 2012-07-25 Richard Henderson <rth@redhat.com>
2539 * libfuncs.h: Don't include optabs.h.
2540 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
2541 * optabs.c (hash_libfunc): Don't cast members to int.
2542 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
2544 2012-07-25 Dodji Seketeli <dodji@redhat.com>
2546 * basic-block.c: Fix typo in comment.
2548 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
2549 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2551 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
2552 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
2553 (ix86_handle_option): Handle mprfchw option.
2554 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
2555 (x86_64-*-*): Likewise.
2556 * config/i386/prfchwintrin.h: New header.
2557 * config/i386/cpuid.h (bit_PRFCHW): New.
2558 (bit_BMI): Formatting fix.
2559 (bit_HLE): Likewise.
2560 (bit_RTM): Likewise.
2561 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2563 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
2564 * config/i386/i386.c (ix86_target_string): Define
2565 -mprfchw option. Formatting fixes.
2566 (PTA_HLE): Formatting fix.
2568 (ix86_option_override_internal): Handle new option.
2569 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
2570 * config/i386/i386.h (TARGET_PRFCHW): New.
2571 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
2572 * config/i386/i386.opt (mprfchw): New.
2573 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
2574 * config/i386/x86intrin.h: Include prfchwintrin.h.
2576 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
2578 * config/i386/i386.md (stack_protect_set): Disable the pattern
2579 for Android since Android libc (bionic) does not provide random
2580 value for stack protection guard at gs:0x14. Guard value
2581 will be provided from external symbol (default implementation).
2582 (stack_protect_set_<mode>): Likewise.
2583 (stack_protect_test): Likewise.
2584 (stack_protect_test_<mode>): Likewise.
2585 * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
2586 not have Bionic by default
2587 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
2588 Macro OPTION_BIONIC is defined in this file and provides Bionic
2589 accessibility status
2591 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
2593 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
2595 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2598 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
2599 (case ${target}): Add btver2.
2600 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2601 -march=native recognize btver2 processors.
2602 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2603 btver2 def_and_undef
2604 * config/i386/i386.c (struct processor_costs btver2_cost): New
2606 (m_BTVER2): New definition.
2607 (m_AMD_MULTIPLE): Includes m_BTVER2.
2608 (initial_ix86_tune_features): Add btver2 tune.
2609 (processor_target_table): Add btver2 entry.
2610 (static const char *const cpu_names): Add btver2 entry.
2611 (software_prefetching_beneficial_p): Add btver2.
2612 (ix86_option_override_internal): Add btver2 instruction sets.
2613 (ix86_issue_rate): Add btver2.
2614 (ix86_adjust_cost): Add btver2.
2615 * config/i386/i386.h (TARGET_BTVER2): New definition.
2616 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
2617 (enum processor_type): Add PROCESSOR_BTVER2.
2618 * config/i386/i386.md (define_attr "cpu"): Add btver2.
2620 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
2622 * doc/tm.texi: Regenerate.
2623 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
2624 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
2625 (default_finish_cost): Add prologue and epilogue costs.
2626 * targhooks.h (default_add_stmt_cost): Change parameter list.
2627 (default_finish_cost): Likewise.
2628 * target.def (init_cost): Change documentation string.
2629 (add_stmt_cost): Change documentation string and parameter list.
2630 (finish_cost): Likewise.
2631 * target.h (vect_cost_model_location): New enum.
2632 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
2633 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
2635 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
2636 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
2637 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
2638 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
2640 (struct _stmt_vec_info): Remove cost substruct.
2641 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
2642 (stmt_vinfo_set_outside_of_loop_cost): Remove.
2643 (builtin_vectorization_cost): New function.
2644 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
2645 (add_stmt_cost): Change parameter list.
2646 (finish_cost): Likewise.
2647 (vect_model_simple_cost): Likewise.
2648 (vect_model_store_cost): Likewise.
2649 (vect_model_load_cost): Likewise.
2650 (record_stmt_cost): Likewise.
2651 (vect_get_load_cost): Likewise.
2652 (vect_get_known_peeling_cost): Likewise.
2653 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
2654 list; call record_stmt_cost for prologue and epilogue costs.
2655 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
2656 prologue and epilogue costs; remove computation of vec_outside_cost;
2657 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
2658 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
2659 costs; call add_stmt_cost for prologue and epilogue costs.
2660 (vect_model_induction_cost): Revise call to add_stmt_cost for body
2661 costs; call add_stmt_cost for prologue costs.
2662 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
2663 list for function and arguments for calls to vect_get_load_cost and
2664 vect_get_store_cost.
2665 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
2666 vect_get_data_access_cost and vect_get_known_peeling_cost; use
2667 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
2668 latter call and discard their results; rename stmt_cost_vec to
2669 body_cost_vec; correct possible storage leak for body_cost_vec.
2670 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
2672 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
2673 body_cost_vec; add extra dummy parameter on calls to
2674 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
2675 argument list on call to add_stmt_cost.
2676 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
2677 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
2678 builtin_vectorization_cost; add "where" parameter on call to
2680 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
2681 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
2682 rename stmt_cost_vec to body_cost_vec.
2683 (vect_model_promotion_demotion_cost): Add vect_body argument to call
2684 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
2685 to stmt_vinfo_set_outside_of_loop_cost.
2686 (vect_model_store_cost): Change parameter list; call record_stmt_cost
2687 for prologue costs; add vect_body argument to call to record_stmt_cost;
2688 rename stmt_cost_vec to body_cost_vec; remove call to
2689 stmt_vinfo_set_outside_of_loop_cost.
2690 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
2691 vect_body argument to calls to record_stmt_cost.
2692 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
2693 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
2694 remove call to stmt_vinfo_set_outside_of_loop_cost.
2695 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
2696 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
2697 call record_stmt_cost for prologue costs.
2698 (vectorizable_store): Change argument list for call to
2699 vect_model_store_cost.
2700 (vectorizable_load): Change argument list for call to
2701 vect_model_load_cost.
2702 (new_stmt_vec_info): Remove assignment to
2703 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
2704 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
2705 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
2706 (spu_finish_cost): Add prologue and epilogue costs.
2707 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
2708 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
2709 (i386_finish_cost): Add prologue and epilogue costs.
2710 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
2712 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
2713 (rs6000_finish_cost): Add prologue and epilogue costs.
2714 * tree-vect-slp.c (vect_free_slp_instance): Rename
2715 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
2716 (vect_create_new_slp_node): Remove assignment to
2717 SLP_TREE_OUTSIDE_OF_LOOP_COST.
2718 (vect_get_and_check_slp_defs): Change parameter list; change argument
2719 lists to calls to vect_model_store_cost and vect_model_simple_cost.
2720 (vect_build_slp_tree): Change parameter list; change argument lists
2721 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
2722 recursive self-calls; remove setting of outside_cost from
2723 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
2725 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
2726 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
2727 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
2729 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
2730 body_cost_vec; handle null ci->stmt; add vect_body argument to call
2731 to add_stmt_cost; simplify calls to targetm.vectorize.
2732 builtin_vectorization_cost; return vec_prologue_cost and
2733 vec_epilogue_cost from finish_cost.
2734 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
2735 body_cost_vec; add vect_body argument to call to add_stmt_cost.
2737 2012-07-24 Richard Henderson <rth@redhat.com>
2739 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
2740 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2741 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2742 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2743 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
2745 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2746 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
2747 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
2748 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2749 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
2750 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2751 * doc/tm.texi: Rebuild.
2753 2012-07-24 Richard Henderson <rth@redhat.com>
2755 * optabs.def: New file.
2756 * Makefile.in (OPTABS_H): Add insn-opinit.h.
2757 (MOSTLYCLEANFILES): Likewise.
2758 (insn-opinit.o): Remove reload.h
2759 (simple_rtl_generated_c): Remove insn-opinit.c.
2760 (s-opinit): New rule.
2761 (build/genopinit.o): Add optabs.def.
2762 * genopinit.c (rtx_upname): New.
2763 (optabs): Extract to optabs.def
2764 (enum optab_tag, struct optab_def_d, optabs): New.
2765 (struct pattern_d, patterns): New.
2766 (match_pattern): Split out from ...
2767 (gen_insn): ... here. Push matches on patterns vec.
2768 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
2769 (header_file_name, source_file_name, handle_arg): New.
2770 (open_outfile): New.
2771 (main): Sort and emit new tables. Generate lookup_handler,
2772 raw_optab_handler, swap_optab_enable.
2773 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
2774 * optabs.c (code_to_optab_): Remove.
2775 (hash_libfunc): Update for optab name change.
2776 (eq_libfunc): Likewise.
2777 (convert_optab_libfunc): Update computation of optab member;
2778 use the new convlib_def table.
2779 (optab_libfunc): Similarly.
2780 (set_optab_libfunc, set_conv_libfunc): Likewise.
2781 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
2782 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
2783 (init_optabs): Don't call them; export the data to optabs.def.
2784 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
2785 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
2786 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
2787 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
2788 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
2789 (gen_int_signed_fixed_libfunc): Likewise.
2790 (gen_int_unsigned_fixed_libfunc): Likewise.
2791 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
2792 (gen_ufloat_conv_libfunc): Likewise.
2793 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
2794 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2795 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
2796 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
2797 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
2798 (debug_optab_libfuncs): Update for optab representation change.
2799 * optabs.h: Include insn-opinit.h.
2800 (optab, convert_optab, direct_optab): New typedefs.
2801 (struct optab_handlers, struct widening_optab_handlers): Remove.
2802 (struct optab_libcall_d): Rename from optab_d; remove code_,
2803 handlers, widening members.
2804 (struct convert_optab_libcall_d): Rename from convert_optab_d;
2805 remove code_ and handlers members.
2806 (enum optab_index, enum convert_optab_index): Remove.
2807 (enum direct_optab_index): Remove.
2808 (code_to_optab_): Fix array range.
2809 (optab_to_code): Covert to inline function.
2810 (optab_to_code_, convlib_def, normlib_def): Declare.
2811 (raw_optab_handler, swap_optab_enable): Declare.
2812 (unknown_optab): Remove; export to optabs.def
2813 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
2814 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
2815 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
2816 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
2817 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
2818 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
2819 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
2820 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
2821 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
2822 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
2823 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
2824 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
2825 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
2826 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
2827 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
2828 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
2829 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
2830 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
2831 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
2832 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
2833 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
2834 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
2835 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
2836 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
2837 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
2838 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
2839 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
2840 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
2841 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
2842 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
2843 vec_realign_load_optab, vec_widen_umult_hi_optab,
2844 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
2845 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
2846 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
2847 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
2848 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
2849 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
2850 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
2851 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
2852 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
2853 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
2854 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
2855 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
2856 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
2857 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
2858 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
2859 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
2860 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
2861 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
2862 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
2863 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
2864 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
2865 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
2866 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
2867 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
2868 atomic_exchange_optab, atomic_compare_and_swap_optab,
2869 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
2870 atomic_sub_fetch_optab, atomic_and_fetch_optab,
2871 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
2872 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
2873 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
2874 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
2875 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
2876 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
2877 atomic_thread_fence_optab, atomic_signal_fence_optab,
2878 vec_perm_optab, vec_perm_const_optab): Likewise.
2879 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
2880 and x_direct_optab_table members; add pat_enable.
2881 (optab_table, convert_optab_table, direct_optab_table): Remove.
2882 (optab_handler): Use raw_optab_handler.
2883 (widening_optab_handler, convert_optab_handler): Likewise.
2884 (set_optab_handler, set_widening_optab_handler): Remove.
2885 (set_convert_optab_handler, set_direct_optab_handler): Remove.
2886 (direct_optab_handler): Defer to optab_handler.
2887 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
2889 2012-07-24 Jason Merrill <jason@redhat.com>
2891 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
2892 match MEM_STAT_DECL.
2893 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
2895 2012-07-24 Richard Henderson <rth@redhat.com>
2897 * optabs.h (struct optab_d): Rename code member to code_.
2898 (struct convert_optab_h): Likewise.
2899 (code_to_optab_): Rename from code_to_optab.
2900 (code_to_optab, optab_to_code): New.
2901 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
2902 * ifcvt.c (noce_emit_move_insn): Likewise.
2903 * optabs.c (simplify_expand_binop): Use optab_to_code.
2904 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
2905 (avoid_expensive_constant, expand_binop_directly): Likewise.
2906 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
2907 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
2908 (have_insn_for, debug_optab_libfuncs): Likewise.
2909 (init_optab, init_optabv, init_convert_optab): Update for optab
2912 * libfuncs.h: Include optabs.h.
2913 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
2914 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
2915 (lto-streamer-in.o, dwarf2out.o): Update deps.
2917 * optabs.h (unknown_optab): New.
2918 * builtins.c (interclass_mathfn_icode): Use it.
2919 * dojump.c (do_compare_rtx_and_jump): Likewise.
2920 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
2921 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
2922 (expand_vector_operations_1): Likewise.
2923 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2924 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
2926 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
2928 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
2930 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2933 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
2935 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
2937 ("neon_vld3_lane<mode>":VMQ): Likewise.
2938 ("neon_vld3_dup<mode>":VDX): Likewise.
2939 ("neon_vst3_lane<mode>":VD): Likewise.
2940 ("neon_vst3_lane<mode>":VMQ): Likewise.
2942 2012-07-24 Roland McGrath <mcgrathr@google.com>
2944 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
2945 stack alignment padding.
2947 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2950 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
2951 negative constant address for TARGET_X32 ...
2952 (ix86_decompose_address): ... here. Reject constant addresses
2953 that don't satisfy x86_64_immediate_operand predicate.
2955 2012-07-24 Julian Brown <julian@codesourcery.com>
2957 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
2959 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
2961 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
2962 Move test to check that there is a popcount function for the the number
2963 of bits in SBITMAP_ELT_BITS to sbitmap.c.
2964 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
2965 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
2967 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
2968 * configure: Regenerate.
2969 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
2970 (GCC_MEM_STAT_ARGUMENTS): New define.
2971 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
2972 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
2973 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
2974 FINAL_PASS_MEM_STAT): Define.
2975 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
2976 * ggc.h (ggc_record_overhead, ggc_free_overhead,
2977 ggc_prune_overhead_list): Remove internal prototypes, they are defined
2978 already in ggc-internal.h.
2979 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
2981 (add_statistics): Likewise.
2982 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
2983 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
2984 wrappers around "survived" and "stats" members.
2985 (alloc_large_page): Always initialize survived.
2986 (ggc_internal_alloc_zone_stat): Likewise.
2987 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
2988 GATHER_STATISTICS is non-0.
2989 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
2990 (sweep_pages): Always increase survived.
2991 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
2992 (calculate_average_page_survival): Always define.
2993 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
2994 (ggc_print_statistics): Likewise.
2995 (ggc_pch_read): Likewise.
2996 * ggc-page.c (struct globals): Always define "stats" member.
2997 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
2998 (ggc_free): Likewise.
2999 (ggc_collec): Likewise.
3000 (ggc_print_statistics): Likewise.
3001 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
3002 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
3003 * gimple.h (enum gimple_alloc_kind): Always define.
3004 (gimple_alloc_kind): Likewise.
3005 * tree-flow.h (phinodes_print_statistics): Always define.
3006 (ssanames_print_statistics): Likewise.
3007 * vec.h (vec_heap_free): Always define.
3008 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
3009 * alloc-pool.c (alloc_pool_descriptor): Always define.
3010 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
3011 (empty_alloc_pool): Likewise.
3012 (pool_alloc): Likewise.
3013 (pool_free): Likewise.
3014 (dump_alloc_pool_statistics): Likewise.
3015 (print_statistics): Always define.
3016 * bitmap.c (struct bitmap_descriptor): Always define.
3017 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
3018 (register_overhead): Always define.
3019 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
3020 (bitmap_element_allocate): Likewise.
3021 (bitmap_elt_clear_from): Likewise.
3022 (bitmap_obstack_alloc_stat): Likewise.
3023 (bitmap_gc_alloc_stat): Likewise.
3024 (bitmap_obstack_free): Likewise.
3025 (bitmap_find_bit): Likewise.
3026 (bitmap_ior_and_into): Likewise.
3027 (bitmap_print): Likewise.
3028 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
3029 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
3030 (gimple_alloc_kind_names): Likewise.
3031 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
3032 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
3033 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
3034 rtvec_alloc_sizes): Always define.
3035 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
3036 (rtx_alloc_stat): Likewise.
3037 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
3038 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
3039 tree_node_sizes, tree_node_kind_names): Always define.
3040 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
3042 (type_hash_canon): Likewise.
3043 (dump_tree_statistics): Likewise.
3044 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
3046 (ssanames_print_statistics): Likewise.
3047 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
3048 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
3049 (phinodes_print_statistics): Likewise.
3050 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
3051 * vec.c (struct vec_descriptor): Always define.
3052 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
3053 vec_descriptor, rester_overhead, free_overhead): Likewise.
3054 (cmp_statistic): Likewise.
3055 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
3056 (vec_heap_o_reserve_1): Likewise.
3057 (dump_vec_loc_statistics): Likewise.
3059 2012-07-24 Richard Guenther <rguenther@suse.de>
3061 PR tree-optimization/53616
3062 * tree-loop-distribution.c (ldist_gen): Do not change
3063 partition ordering when merging partitions.
3065 2012-07-24 Alan Modra <amodra@gmail.com>
3069 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
3070 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
3071 Adjust all rs6000_legitimate_offset_address_p calls.
3072 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
3073 (rs6000_secondary_reload_gpr): Declare.
3074 (rs6000_legitimate_offset_address_p): Update prototype.
3075 (rs6000_offsettable_memref_p): Delete.
3076 (rs6000_secondary_reload_ppc64): Delete.
3077 * config/rs6000/rs6000.c (address_offset): New function.
3078 (mem_operand_gpr): Likewise.
3079 (rs6000_legitimate_offset_address_p): Add worst_case param. When
3080 not worst_case assume class of regs with least restrictive offsets.
3082 (legitimate_lo_sum_address_p): Simplify register mode tests.
3083 (rs6000_legitimize_address): Likewise. Assume best case offset
3084 addressing. Combine ELF and MACHO lo_sum code.
3085 (rs6000_mode_dependent_address): Correct offset addressing limits.
3086 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
3087 Use reg_mode to help rs6000_legitimate_offset_address_p.
3088 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
3089 gpr load/store when offset too large.
3090 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
3091 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
3092 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
3093 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
3094 d->m,m->d,d->d. Correct size of gpr load/store.
3095 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
3097 (movti_ppc64): Likewise.
3098 (movdi_internal32): Likewise. Also disparage fprs.
3099 (movdi_mfpgpr, movdi_internal64): Likewise.
3100 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
3101 (movtf_softfloat): Order alternatives.
3102 (extenddftf2_internal): Use 'm' and 'Y' for store.
3103 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
3104 (stack_protect_setdi, stack_protect_testdi): Likewise.
3105 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
3106 (movdf_softfloat64): Likewise.
3107 (reload_<mode>_store): Adjust reload_di_store to provide
3108 reload_si_store as well.
3109 (reload_<mode>_load): Likewise.
3111 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3114 * config/sh/predicates.md (general_movsrc_operand,
3115 general_movdst_operand): Reject T_REG.
3116 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
3117 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
3118 Remove T_REG alternatives.
3119 (*negtstsi): New insn.
3121 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3124 * config/sh/sh.md (mulsf3_ie): Delete.
3125 (mulsf3_i4): Rename to mulsf3_i.
3126 (mulsf3): Emit mulsf3_i insn.
3128 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3130 * config/sh/sh.md (addc1, subc1): Delete.
3131 (adddi3_compact): Use addc instead of addc1.
3132 (subdi3_compact): Use subc instead of subc1.
3134 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
3136 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
3137 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
3138 split_cost argument signed.
3139 (ix86_avoid_lea_for_add): Cleanup.
3140 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
3141 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
3142 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
3144 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
3146 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
3148 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
3151 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
3152 * config/i386/i386.c (ix86_print_operand_address): Ditto.
3153 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
3154 addresses. Prevent zero extensions of CONST_INT operands.
3156 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
3158 * sbitmap.h (struct int_list): Remove.
3159 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
3160 Remove prototypes of non-existing function.
3161 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
3162 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
3164 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
3165 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
3166 * basic-block.h: ... here.
3167 * sbitmap.c: Do not include basic-block.h.
3168 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
3169 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
3170 * cfganal.c: ... here.
3171 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
3172 * gcse.c (compute_code_hoist_vbeinout): Likewise.
3173 * lcm.c (compute_antinout_edge, compute_available): Likewise.
3174 * Makefile.in: Fix sbitmap.o dependencies.
3176 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3177 Nick Clifton <nickc@redhat.com>
3179 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
3180 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
3181 (unused) parameter to void *.
3183 2012-07-23 Richard Guenther <rguenther@suse.de>
3185 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
3186 instead of referenced vars.
3188 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
3190 * coverage.c: Refer to "notes file" instead of "graph file"
3191 in all comments. Explain history of bbg prefix.
3192 * gcov-io.h: Likewise.
3194 (find_source): Likewise in fnotice.
3195 (read_graph_file): Likewise.
3196 (read_count_file): Likewise.
3197 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
3198 and "data file" explicitly in the explanation of the files.
3200 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
3202 PR tree-optimization/53881
3203 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
3204 for each label and compare them instead of labels.
3206 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
3208 * opts.c (common_handle_option): Do not set
3209 flag_value_profile_transformations for -fprofile-generate.
3210 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
3211 (BB_TO_GCOV_INDEX): Remove.
3212 (output_location): Don't use it.
3213 (branch_prob): Likewise. Don't fiddle with the index of
3214 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
3215 (find_spanning_tree):
3216 * gcov.c (struct function_info): Document that blocks 0 and 1
3217 are the entry resp. exit blocks in gcov, too, like in GCC itself.
3218 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
3219 blocks identification.
3220 (output_lines): Likewise.
3221 * value-prof.c (gimple_value_profile_transformations): Do not
3222 test flag_value_profile_transformations again.
3223 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
3224 transformation functions.
3225 (gimple_values_to_profile):
3226 Don't test flag_value_profile_transformations
3227 * tree-profile.c (tree_profiling): Assert that the cgraph is in
3228 the CGRAPH_STATE_IPA_SSA state.
3229 Do not set, or look at, after_tree_profile.
3230 * function.h (struct function): Remove after_tree_profile bit.
3231 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
3232 * tree-inline.c (initialize_cfun): Don't copy it.
3233 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
3234 * lto-streamer-in.c (input_struct_function_base): Likewise.
3236 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
3238 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
3239 (SH_DYNAMIC_SHIFT_COST): Use it.
3240 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
3241 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
3242 Add sanity check for input value. Add function description.
3243 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
3244 lshrsi3_d): Use TARGET_DYNSHIFT.
3246 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
3248 * config/sh/sh.md (negc): Delete expander.
3249 (*negc): Rename insn to negc.
3251 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
3254 * config/i386/i386.md (*lea): New insn pattern.
3256 (*lea<mode>_2): Ditto.
3257 (*lea_{3,4,5,6}_zext): Ditto.
3258 * config/i386/predicates.md (lea_address_operand): Do not reject
3259 zero-extended address operands.
3260 * config/i386/constraints.md (j): Remove address constraint.
3261 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
3263 (ix86_print_operand_address): Handle SImode subreg of an address.
3264 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
3266 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
3268 Emit executable-stack note correctly for CRIS targets.
3269 * config/cris/cris.c (cris_file_end): New function.
3270 (TARGET_ASM_FILE_END): Define.
3272 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
3273 Maxim Kuvyrkov <maxim@codesourcery.com>
3274 NetLogic Microsystems Inc.
3276 * config/mips/mips.c (mips_issue_rate): Handle XLP.
3277 * config/mips/mips.md: Include xlp.md.
3278 * config/mips/xlp.md: New file.
3280 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
3282 PR gcov-profile/32543
3283 * profile.c (branch_prob): Update total_num_edges_instrumented and
3284 report the number of edges to instrument.
3286 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
3288 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
3290 2012-07-21 Andrew Pinski <apinski@cavium.com>
3292 * config/mips/mips.md (*popcountdi2_trunc): New pattern
3293 to handle popcount of a truncation.
3295 2012-07-21 Andrew Pinski <apinski@cavium.com>
3297 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
3298 Add a bool argument.
3299 * config/mips/mips.c (mips_block_move_straight): Update call to
3300 mips_expand_ext_as_unaligned_load.
3301 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
3302 Accept DImode dest when the width is that of SImode.
3303 * config/mips/mips.md (extv): Update call to
3304 mips_expand_ext_as_unaligned_load.
3307 2012-07-21 Andrew Pinski <apinski@cavium.com>
3309 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
3312 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
3314 * config/mips/mips.md (define_attr sync_*): Move before "type".
3315 (define_attr "type"): New values "atomic" and "syncloop".
3316 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
3317 Set "type" attribute.
3318 * config/mips/generic.md (generic_atomic, generic_syncloop):
3320 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
3321 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
3322 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
3323 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
3324 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
3325 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
3326 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
3327 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
3328 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
3330 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
3332 * config/sh/sh.md: Group and sort shift related patterns.
3333 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
3335 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
3337 * config/cris/cris.c (cris_asm_output_ident): Remove unused
3338 local variables section_asm_op, size, buf.
3340 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
3341 Steven Bosscher <steven@gcc.gnu.org>
3343 * config/rs6000/power4.md (power4-store-update): Fix reservation.
3344 (power4-three): Likewise.
3346 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
3347 Greta Yorsh <Greta.Yorsh@arm.com>
3349 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
3350 * config/arm/arm-cores.def (cortex-a15): Use it.
3352 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
3353 Greta Yorsh <Greta.Yorsh@arm.com>
3355 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
3356 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
3357 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
3358 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
3359 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
3360 (arm_fa726te_tune): Likewise.
3362 2012-07-20 Richard Guenther <rguenther@suse.de>
3364 * tree-dfa.c (collect_dfa_stats): Simplify.
3365 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
3367 * cfgexpand.c (estimated_stack_frame_size): Walk over local
3368 decls instead of referenced vars.
3369 * tree-ssa.c (delete_tree_ssa): Simplify.
3370 * tree-tailcall.c (find_tail_calls): Walk over local decls
3371 instead of referenced vars.
3372 (add_virtual_phis): Remove.
3373 (tree_optimize_tail_calls_1): Instead mark the virtual operand
3376 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
3378 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
3379 (brief_dump_cfg): Update prototype to take flags argument.
3380 (check_bb_profile): Remove prototype.
3381 * tracer.c (tracer): Update brief_dump_cfg calls.
3382 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
3383 Call dump_bb_info before and after the cfghook dump_bb. Terminate
3384 the dump with a newline.
3385 (dump_flow_info): Do not call check_bb_profile.
3386 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
3387 (check_bb_profile): Make static. Take indent and flags arguments.
3388 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
3389 check_bb_profile. Print one edge per line.
3390 (brief_dump_cfg): Take a flags argument, and filter out
3391 TDF_COMMENT and TDF_DETAILS.
3392 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
3393 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
3394 dump_bb_info here, it is already called from dump_bb. Idem for
3396 (dump_gimple_bb_footer): Likewise.
3397 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
3398 avoid broken dumps for statement histograms.
3399 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
3400 not call pp_flush here, the buffer should be empty.
3401 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
3402 * sched-vis.c (debug_bb_slim): Likewise.
3403 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
3404 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
3405 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
3406 (dump_function_to_file): Do not call check_bb_profile on
3407 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
3408 Use dump_bb instead of gimple_dump_bb.
3409 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
3410 * passes.c (execute_function_dump): Always call print_rtl_with_bb
3412 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
3413 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
3414 bottom of each basic block.
3416 2012-07-20 Richard Guenther <rguenther@suse.de>
3418 PR tree-optimization/54031
3419 * tree-ssa-ccp.c (get_value_from_alignment): Use
3420 get_pointer_alignment_1.
3422 2012-07-20 Richard Guenther <rguenther@suse.de>
3424 * tree-inline.c (add_local_variables): Remove check_var_ann
3425 parameter and dead code.
3426 (expand_call_inline): Adjust.
3427 (tree_function_versioning): Likewise.
3429 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3432 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
3433 of just the first one.
3435 2012-07-20 Richard Guenther <rguenther@suse.de>
3437 * builtins.c (get_object_alignment_2): Correct offset handling
3438 when using type alignment of a MEM_REF kind base.
3440 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
3443 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
3444 (_lzcnt_u64): Ditto.
3446 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3448 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
3450 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3452 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
3453 defining statement is a SSA name that occurs in abnormal PHIs.
3455 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3457 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
3460 2012-07-19 Jakub Jelinek <jakub@redhat.com>
3462 PR rtl-optimization/53942
3463 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
3464 directly from likely spilled non-fixed hard registers, move them
3467 2012-07-19 Steve Ellcey <sellcey@mips.com>
3469 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
3472 2012-07-19 Jason Merrill <jason@redhat.com>
3475 * dwarf2out.c (get_die_parent): New.
3476 (generate_type_signature): Use it.
3478 2012-07-19 Richard Henderson <rth@redhat.com>
3480 * config/ia64/vect.md (smulv4hi3_highpart): New.
3481 (umulv4hi3_highpart): New.
3482 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
3483 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
3484 (udot_prodv8qi, sdot_prodv8qi): Remove.
3485 (sdot_prodv4hi, udot_prodv4hi): Remove.
3486 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
3487 * config/ia64/ia64-protos.h: Update.
3489 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
3490 vectors larger than UNITS_PER_WORD.
3492 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
3493 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
3494 dummy != CODE_FOR_nothing value.
3496 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
3498 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
3499 * doc/tm.texi: Regenerate.
3500 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
3501 * config/sh/sh.h (MODE_AFTER): Update.
3502 * config/epiphany/epiphany.h (MODE_AFTER): Update.
3504 2012-07-19 Jakub Jelinek <jakub@redhat.com>
3507 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
3508 (cleanup_tree_cfg_bb): Don't call it.
3509 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
3512 2012-07-19 Christian Bruel <christian.bruel@st.com>
3515 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
3517 2012-07-19 Richard Guenther <rguenther@suse.de>
3518 Eric Botcazou <ebotcazou@adacore.com>
3520 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
3521 about transition from invariant to known bits.
3522 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
3524 2012-07-19 Richard Guenther <rguenther@suse.de>
3526 PR tree-optimization/53970
3527 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
3529 2012-07-19 Tristan Gingold <gingold@adacore.com>
3530 Richard Henderson <rth@redhat.com>
3532 * opts.c (finish_options): Handle UI_SEH.
3533 * expr.c (build_personality_function): Handle UI_SEH.
3534 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
3535 * coretypes.h (unwind_info_type): Add UI_SEH.
3536 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
3538 (i386_pe_seh_init_sections): Likewise.
3539 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
3540 (TARGET_ASM_INIT_SECTIONS): Define.
3541 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3542 (i386_except_unwind_info): New function.
3544 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
3545 Chao-ying Fu <fu@mips.com>
3547 * config/mips/mips.opt (mmcu): New option.
3548 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
3549 _mips_mcu when TARGET_MCU.
3550 (ASM_SPEC): Pass mcu options to the assembler.
3551 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
3553 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
3555 * config.gcc (v850-*-rtems*): New target.
3556 * config/v850/rtems.h: New.
3557 * config/v850/t-rtems: New.
3559 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
3561 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
3562 of flags controlling optimization; add -ftree-slsr to list of flags
3563 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
3564 enabled by default at -O2; add -fvect-cost-model to list of flags
3565 enabled by default at -O3; document -fhoist-adjacent-loads and
3567 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
3568 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
3570 * common.opt: Add -ftree-slsr with flag_tree_slsr.
3572 2012-07-18 Jie Zhang <jzhang918@gmail.com>
3573 Julian Brown <julian@codesourcery.com>
3575 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
3576 (arm_size_rtx_costs): Likewise.
3577 (neon_valid_immediate): Add a case for double 0.0.
3579 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
3580 Mark Shinwell <shinwell@codesourcery.com>
3581 Julian Brown <julian@codesourcery.com>
3583 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
3584 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
3585 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
3586 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
3588 * config/arm/arm.md (neon_type): Update comment.
3590 2012-07-18 Richard Guenther <rguenther@suse.de>
3592 PR tree-optimization/53970
3593 * tree.h (contains_packed_reference): Remove.
3594 * expr.c (contains_packed_reference): Likewise.
3595 * tree-vect-data-refs.c (not_size_aligned): New function.
3596 (vector_alignment_reachable_p): Use it.
3597 (vect_supportable_dr_alignment): Likewise.
3599 2012-07-18 Richard Guenther <rguenther@suse.de>
3601 * tree.h (get_object_or_type_alignment): Remove.
3602 * builtins.c (get_object_alignment_2): New function copied from
3603 get_object_alignment_1. Take extra argument to indicate whether
3604 we take the address of EXP. Rework to use type alignment information
3605 if not, and return whether the result is an approximation or not.
3606 (get_object_alignment_1): Wrap around get_object_alignment_2.
3607 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
3608 we take the address.
3609 (get_object_or_type_alignment): Remove.
3610 * expr.c (expand_assignment): Call get_object_alignment.
3611 (expand_expr_real_1): Likewise.
3613 2012-07-18 Nick Clifton <nickc@redhat.com>
3615 * doc/invoke.texi (ARM Options): Document -munaligned-access.
3617 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
3619 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
3620 expander. Use arith_reg_dest predicate.
3621 (rotldi3, rotrdi3): Remove constraints in expander.
3622 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
3623 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
3626 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
3629 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
3631 * config/sh/sh.c (sh_option_override): Do not change
3632 flag_finite_math_only. Set TARGET_IEEE to complement of
3633 flag_finite_math_only.
3634 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
3635 of mieee and mno-ieee behavior.
3637 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
3639 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
3641 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
3643 * dumpfile.h (TDF_COMMENT): New define.
3644 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
3645 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
3646 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
3647 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
3648 Move to new file cfg-flags.h.
3649 (enum cfg_edge_flags): New enum, using cfg-flags.h.
3650 (EDGE_ALL_FLAGS): Compute value automatically.
3651 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
3652 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
3653 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
3654 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
3655 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
3656 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
3657 (BB_ALL_FLAGS): New, compute value automatically.
3658 (dump_bb_info): Update prototype.
3659 (dump_edge_info): Update prototype.
3660 * cfg-flags.h: New file.
3661 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
3662 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
3663 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
3664 (debug_bb): Update dump_bb call.
3665 (dump_cfg_bb_info): Remove.
3666 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
3667 Adjust verbosity using TDF_* flags. Check that the basic block flags
3668 are within the range of BB_ALL_FLAGS.
3669 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
3670 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
3671 first for consistency with other dump functions.
3672 (dump_bb): Update prototype accordingly.
3673 * cfghooks.c: Include dumpfile.h.
3674 (verify_flow_info): Update dump_edge_info calls.
3675 (dump_bb): Take a flags argument and pass it around.
3676 Use dump_bb_info to dump common information about a basic block.
3677 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
3678 (debug_flow_info): Moved here from cfgrtl.c.
3679 * profile.c (is_edge_inconsistent): Update dump_bb calls.
3680 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
3681 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
3682 print_rtl_slim_with_bb): Remove prototypes.
3683 (dump_insn_slim): Adjust prototype to take a const_rtx.
3684 (print_rtl_with_bb): Adjust prototype.
3685 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
3686 * sched-vis.c (dump_insn_slim): Take a const_rtx.
3687 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
3688 (print_rtl_slim_with_bb): Remove.
3689 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
3690 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
3691 for that. Prototype here near DEBUG_FUNCTION marker.
3692 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
3694 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
3695 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
3696 (remove_bb): Update dump_bb call.
3697 (gimple_debug_bb): Use dump_bb.
3698 (dump_function_to_file): Update gimple_dump_bb call.
3699 (print_loops_bb): Likewise.
3700 * tree-flow.h (gimple_dump_bb): Update prototype.
3701 * gimple-pretty-print.c (dump_bb_header): Rename to
3702 dump_gimple_bb_header. Write to a stream instead of a pretty
3703 printer. Use dump_bb_info to dump basic block info.
3704 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
3705 stream instead of a pretty printer. Use dump_bb_info.
3706 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
3707 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
3708 dump_gimple_bb_footer.
3709 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
3710 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
3711 (print_rtl_with_bb): Take a flags argument and pass it around.
3712 Use dump_insn_slim if TDF_SLIM.
3713 (dump_bb_info): Removed and re-incarnated in cfg.c.
3714 (dump_flow_info): Moved to cfghooks.c.
3715 (debug_flow_info): Moved to cfghooks.c.
3716 * passes.c (execute_function_dump): Unconditionally use
3717 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
3718 * final.c (dump_basic_block_info): Update dump_edge_info calls.
3719 * tree-vrp.c (dump_asserts_for): Likewise.
3720 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
3721 * tree-if-conv.c (if_convertible_bb_p): Don't look at
3722 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
3723 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
3724 for the same reason.
3725 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
3727 2012-07-17 Richard Guenther <rguenther@suse.de>
3729 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
3730 vars here, use create_tmp_reg where appropriate.
3731 (vect_create_addr_base_for_vector_ref): Do not add referenced
3732 vars here, use create_tmp_reg where appropriate.
3733 (vect_create_data_ref_ptr): Likewise.
3734 (vect_create_destination_var): Likewise.
3735 (vect_permute_store_chain): Likewise.
3736 (vect_permute_load_chain): Likewise.
3737 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3739 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3740 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
3741 (vect_handle_widen_op_by_const): Likewise.
3742 * tree-vect-stmts.c (vect_init_vector): Likewise.
3743 (vectorizable_load): Likewise.
3745 2012-07-17 Tom de Vries <tom@codesourcery.com>
3747 * hwint.c: Fix loop range.
3749 2012-07-17 Tom de Vries <tom@codesourcery.com>
3751 * double-int.h (double_int_popcount): New inline function.
3752 * hwint.c (popcount_hwi): New function.
3753 * hwint.h (popcount_hwi): Declare function. New inline function.
3755 2012-07-17 Richard Henderson <rth@redhat.com>
3757 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
3759 (vectorizable_conversion): Update supportable_widening_operation call.
3760 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
3761 (vect_recog_widen_shift_pattern): Likewise.
3762 * tree-vectorizer.h: Update decl.
3764 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3765 Ulrich Weigand <ulrich.weigand@linaro.org>
3767 * common/config/arm/arm-common.c (arm_option_optimization_table):
3768 Enable -fsched-pressure by default while optimizing.
3769 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
3770 pressure algorithm by default.
3772 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
3774 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
3775 (CONST_OK_FOR_I10): Move macro to ...
3776 * config/sh/sh.c: ... here.
3777 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
3780 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
3782 * config/sh/sh.md: Delete mov related define_peephole patterns.
3784 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3787 * doc/install.texi (Installing GCC): Refer to instructions for
3788 released versions. Fix hyphenation.
3790 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3792 * config/spu/spu.c (targetm): Move to bottom of file.
3793 (spu_attribute_table): Likewise.
3794 (spu_option_override, spu_init_builtins, spu_builtin_decl,
3795 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
3796 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
3797 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
3798 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
3799 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
3800 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
3801 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
3802 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
3803 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
3804 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
3805 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
3806 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
3807 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
3808 spu_encode_section_info, spu_legitimize_address,
3809 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
3810 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
3811 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
3812 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
3813 spu_section_type_flags, spu_select_section, spu_unique_section,
3814 spu_trampoline_init, spu_conditional_register_usage,
3815 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
3816 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
3817 spu_setup_incoming_varargs): Remove prototypes.
3818 (spu_legitimize_address): Add "static" to definition.
3820 2012-07-16 Jakub Jelinek <jakub@redhat.com>
3822 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
3824 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
3826 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
3827 before calling gsi_stmt.
3829 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
3832 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
3834 * config/i386/i386.md (stack_protect_set): Disable the pattern
3835 for Android since Android libc (bionic) does not provide random
3836 value for stack protection guard at gs:0x14. Guard value
3837 will be provided from external symbol (default implementation).
3838 (stack_protect_set_<mode>): Likewise.
3839 (stack_protect_test): Likewise.
3840 (stack_protect_test_<mode>): Likewise.
3842 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
3846 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
3849 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3851 * opts.c (default_option): Add -fvect-cost-model to default options
3854 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3856 * graphite-clast-to-gimple.c, graphite-dependences.c,
3857 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
3858 for pass TODO flags.
3859 * Makefile.in: Fix dependencies.
3861 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3863 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
3864 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3866 * function.c (stack_protect_epilogue): Use expand_call to expand
3867 targetm.stack_protect_fail.
3868 * stmt.c (expand_expr_stmt): Remove now-unused function.
3869 * tree.h (expand_expr_stmt): Remove prototype.
3870 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
3871 hook must return a CALL_EXPR.
3872 * doc/tm.texi: Regenerate.
3874 * emit-rtl.c (emit_label_before): Do not allow the same label
3875 to be emitted twice.
3876 (emit_label_after): Likewise.
3877 (emit_label): Likewise.
3879 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
3880 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
3881 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
3882 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
3884 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3886 * system.h (dump_file): Do not define.
3887 * tree-pass.h: Include dumpfile.h, which is a new file containing...
3888 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
3889 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
3890 dump_flag_name, dump_file, dump_flags, dump_file_name,
3891 get_dump_file_info, struct dump_file_info): all of this, moved to...
3892 * dumpfile.h: Here, new file.
3893 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
3894 (dump_stmt): Remove prototype for C++ specific function.
3895 (dump_enumerated_decls): Move prototype from here...
3896 * tree-flow.h (dump_enumerated_decls): ... to here.
3897 (get_ref_base_and_extent) Move prototype from here ...
3898 * tree.h (get_ref_base_and_extent) ... to here.
3899 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
3900 gimple-pretty-print.h is enough. Do not include tree-dump.h,
3901 include timevar.h and dumpfile.h instead.
3902 (struct numbered_tree_d, compare_decls_by_uid,
3903 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
3904 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
3905 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
3906 Do not include timevar.h.
3907 * tree.c: Do not include timevar.h.
3908 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
3910 (dump_cfg_stats): Use current_function_name.
3911 (gimple_cfg2vcg): Likewise.
3912 (dump_function_to_file): Likewise.
3913 * df-scan.c: Do not include tree-pass.h and timevar.h.
3915 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
3916 use print_current_pass.
3917 * df-problems.c: Include dumpfile.h.
3918 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
3919 leads to errors in the code not selected.
3920 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
3921 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
3922 * lcm.c: Include dumpfile.h.
3923 Remove obsolete include of insn-attr.h.
3924 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
3925 missing probability notes.
3926 * stmt.c: Include dumpfile.h.
3927 (emit_case_decision_tree): Re-enable printing expand details only
3929 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
3930 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
3931 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
3932 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
3933 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
3934 function.c, fwprop.c, gcse.c, gimple-fold.c,
3935 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
3936 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
3937 graphite-dependences.c, graphite-interchange.c,
3938 graphite-optimize-isl.c, graphite-poly.c,
3939 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
3940 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
3941 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
3942 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
3943 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
3944 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
3945 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
3946 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
3947 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
3948 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
3949 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
3950 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
3951 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
3952 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
3953 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
3954 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
3955 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
3956 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
3957 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
3958 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
3959 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
3960 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
3961 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
3962 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
3963 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
3964 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3965 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3966 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
3967 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
3968 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
3969 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
3970 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
3971 tree-ssa-uncprop.c, tree-ssa-uninit.c,
3972 tree-switch-conversion.c, tree-tailcall.c,
3973 tree-vect-data-refs.c, tree-vect-loop.c,
3974 tree-vect-loop-manip.c, tree-vectorizer.c,
3975 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
3976 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
3977 only if needed. If tree-pass.h is included, do not include timevar.h
3978 and dumpfile.h. If tree-pass.h is not included but dump_file, or
3979 dump_flags, or the TDF_* flags are used, include dumpfile.h.
3980 If gimple-pretty-print.h is included, don't include
3981 tree-pretty-print.h. Remove assorted unnecessary includes.
3983 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
3984 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
3985 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
3987 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
3988 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
3989 spu/t-spu-elf: Fix dependencies.
3991 2012-07-16 Dehao Chen <dehao@google.com>
3994 2012-07-10 Dehao Chen <dehao@google.com>
3996 * tree.h (phi_arg_d): New field.
3997 * tree-flow-inline.h (gimple_phi_arg_block): New function.
3998 (gimple_phi_arg_block_from_edge): New function.
3999 (gimple_phi_arg_set_block): New function.
4000 (gimple_phi_arg_has_block): New function.
4001 (redirect_edge_var_map_block): New function.
4002 * tree-flow.h (_edge_var_map): New field.
4003 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
4004 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
4005 redirect_edge_var_map_add.
4006 * tree-outof-ssa.c (_elim_graph): New field.
4007 (insert_partition_copy_on_edge): New parameter.
4008 (insert_value_copy_on_edge): New parameter.
4009 (insert_rtx_to_part_on_edge): New parameter.
4010 (insert_part_to_rtx_on_edge): New parameter.
4011 (elim_graph_add_edge): New parameter.
4012 (elim_graph_remove_succ_edge): New parameter.
4013 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
4014 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
4015 (new_elim_graph): Add block debug info.
4016 (clear_elim_graph): Likewise.
4017 (delete_elim_graph): Likewise.
4018 (elim_graph_add_node): Likewise.
4019 (elim_graph_add_edge): Likewise.
4020 (elim_graph_remove_succ_edge): Likewise.
4021 (eliminate_build): Likewise.
4022 (elim_forward): Likewise.
4023 (elim_unvisited_predecessor): Likewise.
4024 (elim_backward): Likewise.
4025 (elim_create): Likewise.
4026 (eliminate_phi): Likewise.
4027 (insert_backedge_copies): Likewise.
4028 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
4030 (rewrite_add_phi_arguments): Likewise.
4031 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
4032 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4033 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
4034 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
4035 * tree-ssa-loop-manip.c (create_iv): Likewise.
4036 (add_exit_phis_edge): Likewise.
4037 (split_loop_exit_edge): Likewise.
4038 (copy_phi_node_args): Likewise.
4039 (tree_transform_and_unroll_loop): Likewise.
4040 * value-prof.c (gimple_ic): Likewise.
4041 (gimple_stringop_fixed_value): Likewise.
4042 * tree-tailcall.c (add_successor_phi_arg): Likewise.
4043 (eliminate_tail_call): Likewise.
4044 (create_tailcall_accumulator): Likewise.
4045 (tree_optimize_tail_calls_1): Likewise.
4046 * tree-phinodes.c (add_phi_arg): Likewise.
4047 (make_phi_node): Likewise.
4048 (resize_phi_node): Likewise.
4049 (remove_phi_arg_num): Likewise.
4050 * omp-low.c (expand_parallel_call): Likewise.
4051 (expand_omp_for_static_chunk): Likewise.
4052 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
4054 (slpeel_update_phi_nodes_for_guard1): Likewise.
4055 (slpeel_update_phi_nodes_for_guard2): Likewise.
4056 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4057 (set_prologue_iterations): Likewise.
4058 (slpeel_tree_peel_loop_to_edge): Likewise.
4059 (vect_loop_versioning): Likewise.
4060 * tree-parloops.c (create_phi_for_local_result): Likewise.
4061 (transform_to_exit_first_loop): Likewise.
4062 (create_parallel_loop): Likewise.
4063 * ipa-split.c (split_function): Likewise.
4064 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4065 (vect_create_epilog_for_reduction): Likewise.
4066 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4067 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
4068 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4069 (cond_if_else_store_replacement_1): Likewise.
4070 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4071 (remove_forwarder_block_with_phi): Likewise.
4072 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
4073 * tree-predcom.c (initialize_root_vars): Likewise.
4074 (initialize_root_vars_lm): Likewise.
4075 * sese.c (sese_add_exit_phis_edge): Likewise.
4076 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
4077 * tree-ssa.c (flush_pending_stmts): Likewise.
4078 (redirect_edge_var_map_add): Likewise.
4079 (ssa_redirect_edge): Likewise.
4080 * gimple-streamer-in.c (input_phi): Likewise.
4081 * tree-vect-stmts.c (vectorizable_load): Likewise.
4082 * tree-inline.c (copy_phis_for_bb): Likewise.
4083 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4084 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
4085 * tree-cfg.c (reinstall_phi_args): Likewise.
4086 (gimple_make_forwarder_block): Likewise.
4087 (add_phi_args_after_copy_edge): Likewise.
4088 (gimple_duplicate_sese_tail): Likewise.
4090 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
4092 * config/i386/i386.md (stack_protect_set): Disable the pattern
4093 for Android since Android libc (bionic) does not provide random
4094 value for stack protection guard at gs:0x14. Guard value
4095 will be provided from external symbol (default implementation).
4096 (stack_protect_set_<mode>): Likewise.
4097 (stack_protect_test): Likewise.
4098 (stack_protect_test_<mode>): Likewise.
4100 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
4102 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
4103 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
4104 CONSTANT_P and cris_legitimate_address_p.
4105 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
4106 (cris_preferred_reload_class): Don't return GENERAL_REGS as
4107 preferred to MOF_SRP_REGS.
4109 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
4110 of library functions for basic atomic compare-and-swap.
4111 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
4112 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
4113 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
4114 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
4115 ("atomic_compare_and_swap<mode>")
4116 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
4117 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
4118 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
4119 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
4120 (atomic_op_op_pred): Ditto.
4121 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
4122 reflect the change to include %2 in expansion. All callers changed.
4123 (qm3): New mode_attr.
4124 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
4125 as predicate for operand 2.
4126 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
4127 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
4128 constraint for operand 2.
4129 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
4130 nonmemory_operand for operand 3.
4131 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
4132 exclude memory. Improve emitted sync code for v10 and v32. Use
4133 <qm3> instead of <m> for size designator for cmp.
4134 ("atomic_compare_and_swap<mode>"): Change predicate to
4135 nonmemory_operand for operand 3. Add FIXME.
4136 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
4137 constraints for operand 3 to exclude memory.
4138 ("atomic_fetch_<atomic_op_name><mode>")
4139 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
4140 calls on result of call to need_atomic_barrier_p.
4142 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
4144 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
4146 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
4147 and mtlo. Adjust move_type->type mapping.
4148 (may_clobber_hilo): Split mthilo into mthi and mtlo.
4149 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
4150 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
4151 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
4152 instead of mthilo and mfhilo.
4153 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
4154 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
4155 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
4156 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
4157 Use mflo instead of mfhilo.
4158 * config/mips/10000.md (r10k_arith): Split mthilo.
4159 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
4160 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
4161 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
4162 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
4164 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
4165 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
4167 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
4168 * config/mips/5400.md (ir_vr54_hilo): Likewise.
4169 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
4170 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
4171 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
4172 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
4173 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
4174 * config/mips/generic.md (generic_hilo): Likewise.
4175 * config/mips/loongson2ef.md (ls2_alu): Likewise.
4176 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
4177 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
4178 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
4179 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
4180 * config/mips/xlr.md (xlr_hilo): Likewise.
4182 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
4183 Sandra Loosemore <sandra@codesourcery.com>
4185 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
4187 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
4189 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
4192 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4194 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
4196 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
4199 * config/spu/spu.c (spu_init_cost): Mark static.
4200 (spu_add_stmt_cost): Likewise.
4201 (spu_finish_cost): Likewise.
4202 (spu_destroy_cost_data): Likewise.
4203 * config/i386/i386.c (ix86_init_cost): Mark static.
4204 (ix86_add_stmt_cost): Likewise.
4205 (ix86_finish_cost): Likewise.
4206 (ix86_destroy_cost_data): Likewise.
4207 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
4208 (rs6000_add_stmt_cost): Likewise.
4209 (rs6000_finish_cost): Likewise.
4210 (rs6000_destroy_cost_data): Likewise.
4212 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
4214 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
4215 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
4216 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
4218 * alloc-pool.h (pool_alloc): Likewise.
4220 * final.c (final): Do not loop to find max_uid.
4222 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
4224 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
4225 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
4227 2012-07-13 Richard Guenther <rguenther@suse.de>
4229 PR tree-optimization/53907
4230 * tree-ssa-forwprop.c (associate_pointerplus): New function.
4231 (ssa_forward_propagate_and_combine): Call it.
4233 2012-07-13 Richard Guenther <rguenther@suse.de>
4235 PR tree-optimization/53922
4236 * tree-vrp.c (value_inside_range): Change prototype to take
4237 min/max instead of value-range.
4238 (range_includes_zero_p): Likewise. Return the result from
4240 (extract_range_from_binary_expr_1): Adjust to handle dont-know
4241 return value from range_includes_zero_p.
4242 (extract_range_from_unary_expr_1): Likewise.
4243 (compare_range_with_value): Likewise.
4244 (vrp_meet_1): Likewise.
4246 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
4248 * doc/tm.texi: Regenerate.
4249 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
4250 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4251 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4252 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4253 * targhooks.c (default_init_cost): New function.
4254 (default_add_stmt_cost): Likewise.
4255 (default_finish_cost): Likewise.
4256 (default_destroy_cost_data): Likewise.
4257 * targhooks.h (default_init_cost): New decl.
4258 (default_add_stmt_cost): Likewise.
4259 (default_finish_cost): Likewise.
4260 (default_destroy_cost_data): Likewise.
4261 * target.def (init_cost): New DEFHOOK.
4262 (add_stmt_cost): Likewise.
4263 (finish_cost): Likewise.
4264 (destroy_cost_data): Likewise.
4265 * target.h (struct _stmt_vec_info): New extern decl.
4266 (stmt_vectype): Likewise.
4267 (stmt_in_inner_loop_p): Likewise.
4268 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
4269 (stmt_vector_for_cost): New VEC/typedef.
4270 (add_stmt_info_to_vec): New function.
4271 (struct _slp_tree): Remove cost.inside_of_loop field.
4272 (struct _slp_instance): Remove cost.inside_of_loop field; add
4273 stmt_cost_vec field.
4274 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
4275 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
4276 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
4277 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
4278 (struct _loop_vec_info): Add target_cost_data field.
4279 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
4280 (struct _bb_vec_info): Add target_cost_data field.
4281 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
4282 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
4283 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
4284 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
4285 (init_cost): New function.
4286 (add_stmt_cost): Likewise.
4287 (finish_cost): Likewise.
4288 (destroy_cost_data): Likewise.
4289 (vect_model_simple_cost): Change parameter list.
4290 (vect_model_store_cost): Likewise.
4291 (vect_model_load_cost): Likewise.
4292 (record_stmt_cost): New extern decl.
4293 (vect_get_load_cost): Change parameter list.
4294 (vect_get_store_cost): Likewise.
4295 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
4296 (destroy_loop_vec_info): Call destroy_cost_data.
4297 (vect_estimate_min_profitable_iters): Remove old calculation of
4298 inside costs; call finish_cost instead.
4299 (vect_model_reduction_cost): Call add_stmt_cost instead of old
4300 inside-costs calculation.
4301 (vect_model_induction_cost): Likewise.
4302 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
4303 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
4304 and vect_get_store_cost to obtain the value to return.
4305 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
4306 vect_get_data_access_cost and store it in the minimum peeling
4308 (vect_peeling_hash_choose_best_peeling): Change the parameter list
4309 to add a (stmt_vector_for_cost *) output parameter, and set its value.
4310 (vect_enhance_data_refs_alignment): Ignore the new return value from
4311 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
4312 vect_peeling_hash_choose_best_peeling and pass its contents to the
4314 * tree-vect-stmts.c (stmt_vectype): New function.
4315 (stmt_in_inner_loop_p): Likewise.
4316 (record_stmt_cost): Likewise.
4317 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
4318 record_stmt_cost instead of old calculation; don't call
4319 stmt_vinfo_set_inside_of_loop_cost.
4320 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
4321 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
4322 (vect_model_store_cost): Add stmt_cost_vec parameter; call
4323 record_stmt_cost instead of old calculation; add stmt_cost_vec
4324 parameter to vect_get_store_cost call; don't call
4325 stmt_vinfo_set_inside_of_loop_cost.
4326 (vect_get_store_cost): Add stmt_cost_vec parameter; call
4327 record_stmt_cost instead of old calculation.
4328 (vect_model_load_cost): Add stmt_cost_vec parameter; call
4329 record_stmt_cost instead of old calculation; add stmt_cost_vec
4330 parameter to vect_get_load_cost call; don't call
4331 stmt_vinfo_set_inside_of_loop_cost.
4332 (vect_get_load_cost): Add stmt_cost_vec parameter; call
4333 record_stmt_cost instead of old calculation.
4334 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
4335 (vectorizable_conversion): Likewise.
4336 (vectorizable_assignment): Likewise.
4337 (vectorizable_shift): Likewise.
4338 (vectorizable_operation): Likewise.
4339 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
4340 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
4341 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
4342 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
4343 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4344 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4345 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4346 (spu_init_cost): New function.
4347 (spu_add_stmt_cost): Likewise.
4348 (spu_finish_cost): Likewise.
4349 (spu_destroy_cost_data): Likewise.
4350 * config/i386/i386.c (ix86_init_cost): New function.
4351 (ix86_add_stmt_cost): Likewise.
4352 (ix86_finish_cost): Likewise.
4353 (ix86_destroy_cost_data): Likewise.
4354 (TARGET_VECTORIZE_INIT_COST): New macro def.
4355 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4356 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4357 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4358 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
4359 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4360 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4361 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4362 (rs6000_init_cost): New function.
4363 (rs6000_add_stmt_cost): Likewise.
4364 (rs6000_finish_cost): Likewise.
4365 (rs6000_destroy_cost_data): Likewise.
4366 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
4367 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
4368 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
4369 stmt_cost_vec parameter to vect_model_store_cost and
4370 vect_model_simple_cost calls.
4371 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
4372 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
4373 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
4374 calculating cost more than once for loads; remove inside_cost
4375 parameter from recursive vect_build_slp_tree calls; call
4376 record_stmt_cost instead of old calculation.
4377 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
4378 the instance; free it on premature exit; remove inside_cost parameter
4379 from vect_build_slp_tree call; add stmt_cost_vec parameter to
4380 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
4381 (new_bb_vec_info): Call init_cost.
4382 (destroy_bb_vec_info): Call destroy_cost_data.
4383 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
4384 statement recorded with an SLP instance; call finish_cost instead of
4385 the old calculation.
4386 (vect_update_slp_costs_according_to_vf): Record statement costs from
4387 SLP instances, multiplying by the appropriate number of copies; don't
4388 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
4390 2012-07-13 Richard Guenther <rguenther@suse.de>
4393 * builtins.c (get_pointer_alignment_1): Handle constant
4396 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
4397 Steven Bosscher <steven@gcc.gnu.org>
4398 Bernd Schmidt <bernds@codesourcery.com>
4400 PR rtl-optimization/53908
4401 * df-problems.c (can_move_insns_across): When doing
4402 memory-reference book-keeping, handle call insns.
4404 2012-07-13 Richard Guenther <rguenther@suse.de>
4406 * gimple.c (gimple_types_compatible_p_1): Remove redundant
4407 type attribute comparisons.
4408 (gimple_canonical_types_compatible_p): Likewise.
4410 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
4412 PR rtl-optimization/53176
4413 * rtlanal.c (rtx_cost): Adjust default cost for X with a
4414 UNITS_PER_WORD factor for all X according to the size of
4415 its mode, not just for SUBREGs with untieable modes.
4416 Handle SET. Use factor * factor for MULT, DIV, UDIV,
4419 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
4421 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
4422 QImode and HImode splitters. Use ix86_comparison_operator.
4423 Explicitly match FLAGS_REG.
4424 (DFmode cmove splitter): Explicitly match FLAGS_REG.
4426 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4428 * expr.h (can_move_by_pieces): Move prototype from here ...
4429 * tree.h (can_move_by_pieces): ... to here.
4430 * optabs.h (set_widening_optab_handler): Use XCNEW.
4431 * gimplify.c: Do not include expr.h.
4433 * toplev.c: Do not include dwarf2out.h.
4434 * config/ia64/ia64.c: Likewise.
4435 * config/sparc/sparc.c: Likewise.
4436 * config/sparc/t-sparc (sparc.o): Fix dependencies.
4438 * Makefile.in (toplev.o): Fix dependencies
4439 (c-family/c-gimplify.o): Likewise.
4440 (c-family/c-common.o): Likewise.
4442 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4444 * basic-block.h (struct edge_def): Use basic_block instead of
4446 * cfgloop.h (struct loop_exit, struct loop): Likewise.
4447 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
4448 instead of union tree_node *.
4449 * rtl.h (union rtunion_def, emit_insn_before_noloc,
4450 emit_insn_after_noloc, add_insn_before, add_insn_after,
4451 debug_bb_slim): Likewise.
4452 * tree-inline.h (struct copy_body_data): Likewise.
4453 * sched-rgn.c (dump_region_dot): Likewise.
4454 * gimple.h (struct gimple_statement_base, gimple_set_bb,
4455 gsi_move_to_bb_end): Likewise.
4456 * sched-vis.c (debug_bb_slim): Likewise.
4457 (debug_bb_n_slim): Likewise.
4458 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
4459 (mn10300_block_contains_call):
4461 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
4464 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
4467 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
4469 * doc/extend.texi (Namespace Association): Alter cautionary text.
4471 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
4474 * config/sh/sh.md: Remove displacement addresssing related splits.
4476 2012-07-10 Xinliang David Li <davidxl@google.com>
4478 * doc/invoke.texi: New option documented.
4479 * flag-types.h: New enum type.
4480 * gimplify.c (gimplify_bind_expr): Control
4481 clobber generation with new option.
4482 (gimplify_target_expr): Ditto.
4483 * common.opt: New option.
4485 2012-07-10 Julian Brown <julian@codesourcery.com>
4487 * config/arm/arm.md (movsi): Don't split symbol refs here.
4488 (define_split): New.
4490 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
4493 * config/m68k/m68k.c (m68k_epilogue_uses): New.
4494 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
4495 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
4497 2012-07-10 Richard Henderson <rth@redhat.com>
4499 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
4500 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
4501 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
4502 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
4503 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
4504 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
4505 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
4506 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
4507 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
4508 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
4509 (bdesc_args): Remove entries to match.
4510 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
4511 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4512 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4513 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
4514 (rs6000_builtin_mul_widen_odd): Remove.
4515 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4516 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4517 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
4518 (spu_builtin_mul_widen_odd): Remove.
4519 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4520 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4521 * doc/tm.texi.in: Don't document the removed hooks.
4523 * tree-vect-stmts.c (supportable_widening_operation): Expand
4524 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
4526 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
4527 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
4528 * optabs.c (can_mult_highpart_p): New.
4529 (expand_mult_highpart): New.
4530 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
4531 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
4532 by pieces if can_mult_highpart_p.
4533 (expand_vector_divmod): Use can_mult_highpart_p and always
4534 generate MULT_HIGHPART_EXPR.
4535 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4536 * tree-vect-stmts.c (vectorizable_operation): Likewise.
4538 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
4539 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
4540 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
4541 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
4542 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
4543 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
4544 * config/spu/spu-builtins.def: Update pattern names to match.
4546 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
4547 from altivec_vmuleub.
4548 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
4549 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
4550 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
4551 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
4552 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
4553 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
4554 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
4555 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
4557 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
4559 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
4560 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
4561 (mulv4si3): Remove XOP test shadowed by SSE4 test.
4562 * config/i386/i386.c (bdesc_args): Update pattern names.
4563 (ix86_expand_sse2_mulvxdi3): Likewise.
4564 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
4565 shadowed by SSE4 test.
4567 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
4568 * cfgexpand.c (expand_debug_expr): Handle them.
4569 * expr.c (expand_expr_real_2): Likewise.
4570 * fold-const.c (fold_binary_loc): Likewise.
4571 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
4572 * optabs.c (optab_for_tree_code): Likewise.
4573 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4574 * tree-inline.c (estimate_operator_cost): Likewise.
4575 * tree-pretty-print.c (dump_generic_node): Likewise.
4576 * tree.c (commutative_tree_code): Likewise.
4577 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4578 Handle type change before looking up optab.
4579 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
4580 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
4581 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
4582 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
4583 * genopinit.c (optabs): Initialize them.
4584 * doc/md.texi: Document them.
4586 2012-07-10 Dehao Chen <dehao@google.com>
4588 * tree.h (phi_arg_d): New field.
4589 * tree-flow-inline.h (gimple_phi_arg_block): New function.
4590 (gimple_phi_arg_block_from_edge): New function.
4591 (gimple_phi_arg_set_block): New function.
4592 (gimple_phi_arg_has_block): New function.
4593 (redirect_edge_var_map_block): New function.
4594 * tree-flow.h (_edge_var_map): New field.
4595 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
4596 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
4597 redirect_edge_var_map_add.
4598 * tree-outof-ssa.c (_elim_graph): New field.
4599 (insert_partition_copy_on_edge): New parameter.
4600 (insert_value_copy_on_edge): New parameter.
4601 (insert_rtx_to_part_on_edge): New parameter.
4602 (insert_part_to_rtx_on_edge): New parameter.
4603 (elim_graph_add_edge): New parameter.
4604 (elim_graph_remove_succ_edge): New parameter.
4605 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
4606 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
4607 (new_elim_graph): Add block debug info.
4608 (clear_elim_graph): Likewise.
4609 (delete_elim_graph): Likewise.
4610 (elim_graph_add_node): Likewise.
4611 (elim_graph_add_edge): Likewise.
4612 (elim_graph_remove_succ_edge): Likewise.
4613 (eliminate_build): Likewise.
4614 (elim_forward): Likewise.
4615 (elim_unvisited_predecessor): Likewise.
4616 (elim_backward): Likewise.
4617 (elim_create): Likewise.
4618 (eliminate_phi): Likewise.
4619 (insert_backedge_copies): Likewise.
4620 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
4622 (rewrite_add_phi_arguments): Likewise.
4623 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
4624 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4625 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
4626 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
4627 * tree-ssa-loop-manip.c (create_iv): Likewise.
4628 (add_exit_phis_edge): Likewise.
4629 (split_loop_exit_edge): Likewise.
4630 (copy_phi_node_args): Likewise.
4631 (tree_transform_and_unroll_loop): Likewise.
4632 * value-prof.c (gimple_ic): Likewise.
4633 (gimple_stringop_fixed_value): Likewise.
4634 * tree-tailcall.c (add_successor_phi_arg): Likewise.
4635 (eliminate_tail_call): Likewise.
4636 (create_tailcall_accumulator): Likewise.
4637 (tree_optimize_tail_calls_1): Likewise.
4638 * tree-phinodes.c (add_phi_arg): Likewise.
4639 (make_phi_node): Likewise.
4640 (resize_phi_node): Likewise.
4641 (remove_phi_arg_num): Likewise.
4642 * omp-low.c (expand_parallel_call): Likewise.
4643 (expand_omp_for_static_chunk): Likewise.
4644 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
4646 (slpeel_update_phi_nodes_for_guard1): Likewise.
4647 (slpeel_update_phi_nodes_for_guard2): Likewise.
4648 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4649 (set_prologue_iterations): Likewise.
4650 (slpeel_tree_peel_loop_to_edge): Likewise.
4651 (vect_loop_versioning): Likewise.
4652 * tree-parloops.c (create_phi_for_local_result): Likewise.
4653 (transform_to_exit_first_loop): Likewise.
4654 (create_parallel_loop): Likewise.
4655 * ipa-split.c (split_function): Likewise.
4656 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4657 (vect_create_epilog_for_reduction): Likewise.
4658 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4659 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
4660 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4661 (cond_if_else_store_replacement_1): Likewise.
4662 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4663 (remove_forwarder_block_with_phi): Likewise.
4664 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
4665 * tree-predcom.c (initialize_root_vars): Likewise.
4666 (initialize_root_vars_lm): Likewise.
4667 * sese.c (sese_add_exit_phis_edge): Likewise.
4668 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
4669 * tree-ssa.c (flush_pending_stmts): Likewise.
4670 (redirect_edge_var_map_add): Likewise.
4671 (ssa_redirect_edge): Likewise.
4672 * gimple-streamer-in.c (input_phi): Likewise.
4673 * tree-vect-stmts.c (vectorizable_load): Likewise.
4674 * tree-inline.c (copy_phis_for_bb): Likewise.
4675 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4676 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
4677 * tree-cfg.c (reinstall_phi_args): Likewise.
4678 (gimple_make_forwarder_block): Likewise.
4679 (add_phi_args_after_copy_edge): Likewise.
4680 (gimple_duplicate_sese_tail): Likewise.
4682 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
4685 * config/sh/sh.c (sequence_insn_p): New function.
4686 (find_barrier, sh_insn_length_adjustment): Use it.
4688 2012-07-09 Iain Sandoe <iain@codesourcery.com>
4691 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
4693 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
4694 SUBTARGET_FOLD_BUILTIN.
4695 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
4696 SUBTARGET_FOLD_BUILTIN.
4698 2012-07-09 Iain Sandoe <iain@codesourcery.com>
4700 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
4701 runtime exceptions model setting from here ...
4702 * config/darwin.c (darwin_override_options): ... to here.
4704 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
4706 PR tree-optimization/53887
4707 * tree-cfg.c (group_case_labels_stmt): Make non-static.
4708 * tree-flow.h (group_case_labels_stmt): Add prototype.
4709 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
4710 to pre-process every switch.
4712 2012-07-09 Jason Merrill <jason@redhat.com>
4715 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
4716 (type_hash_eq): Likewise.
4718 2012-07-09 Tom de Vries <tom@codesourcery.com>
4719 Richard Guenther <rguenther@suse.de>
4721 * tree-ssa-ccp.c (optimize_unreachable): New function.
4722 (execute_fold_all_builtins): Use optimize_unreachable to optimize
4723 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
4725 2012-07-09 Richard Guenther <rguenther@suse.de>
4728 * graphite-optimize-isl.c: Make sure CU is not empty.
4730 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
4732 * gensupport.c (init_rtx_reader_args_cb): Start counting code
4733 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
4734 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
4735 the LAST_INSN_CODE marker at the end.
4736 * genoutput.c (nothing): New static struct data.
4737 (idata): Initialize to ¬hing.
4738 (idata_end): Initialize to ¬hing.next.
4739 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
4741 * genpeep.c (insn_code_number): Remove global variable.
4742 (gen_peephole): Take it as an argument instead.
4743 (main): Take insn_code_number from read_md_rtx.
4744 * optabs.h: Revert r161809:
4745 (optab_handlers): Change type of insn_code back to insn_code.
4746 (optab_handler, widening_optab_handler, set_optab_handler,
4747 set_widening_optab_handler, convert_optab_handler,
4748 set_convert_optab_handler, direct_optab_handler,
4749 set_direct_optab_handler): Remove int casts.
4750 Revert to treating the insn_code field as "insn_code".
4752 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
4754 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
4755 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
4756 * config/sh/sh-protos.h: Declare it.
4758 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4760 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
4761 (dump_fixup_graph): Use current_function_name.
4762 (adjust_cfg_counts): Likewise.
4763 * ira-conflicts.c: Do not include tree.h.
4764 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
4766 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
4769 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
4771 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4773 * basic-block.h: Re-group most prototypes per file.
4774 (struct edge_list): Remove num_blocks field.
4775 (dump_bb_info): Adjust prototypes.
4776 (dump_reg_info): Move prototype to regs.h.
4777 * function.h: Do not include tree.h.
4778 Include vec.h, vecir.h, input.h and machmode.h to compensate.
4779 (function_name): New prototype.
4780 * gimple.h: Include tree.h to compensate for basic-block.h change.
4781 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
4782 * regs.h (dump_reg_info): Prototype here.
4783 * regset.h: Adjust file reference in comment.
4784 (debug_regset): Remove prototype.
4785 * rtl.h: Include flags.h for flag_var_tracking_assignments.
4786 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
4787 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
4788 (dump_reg_info, dump_flow_info): Remove prototypes.
4789 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
4790 to here, the only user. Make static.
4791 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
4792 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
4793 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
4794 tree-pass.h, cfgloop.h, and tree-flow.h.
4795 Include basic-block.h, the first header I'd expect to be included.
4796 (reg_obstack): Move to df-core.c.
4797 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
4798 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
4799 (redirect_edge_succ_nodup): Move to cfghooks.c.
4800 (dump_regset, debug_regset): Move to df-core.c.
4801 (dump_bb_info): Move to cfgrtl.c.
4802 (dump_reg_info): Move to regstat.c.
4803 (dump_flow_info): Move to cfgrtl.c.
4804 (debug_flow_info): Likewise.
4805 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
4806 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
4807 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
4808 (flow_active_insn_p, forwarder_block_p, can_fallthru,
4809 could_fall_through): Move to cfgrtl.c.
4810 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
4811 (create_edge_list): Do not set edge_list's removed num_blocks.
4812 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
4813 (flow_nodes_print): Remove.
4814 (flow_edge_list_print): Remove.
4815 (inverted_post_order_compute): Use FOR_ALL_BB.
4816 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
4817 Do not call dump_reg_info.
4818 (debug_flow_info): Moved from cfg.c
4819 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
4820 to avoid looking at TDF_* flags from tree-pass.h.
4821 (flow_active_insn_p, forwarder_block_p, can_fallthru,
4822 could_fall_through): Moved from cfganal.c.
4823 (print_rtl_with_bb): Adjust dump_bb_info calls.
4824 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
4825 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
4826 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
4827 * cselib.c: Include tree.h with a FIXME.
4828 * df-core.c (reg_obstack): Moved from cfg.c.
4829 (dump_regset): Likewise.
4830 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
4831 * final.c (compute_alignments): Call dump_reg_info before
4833 * function.c (function_name): New function.
4834 (current_function_name): Use it.
4835 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
4837 * ira-conflicts.c: Include tree.h with a note.
4838 * regstat.c (dump_reg_info): Moved here from cfg.c.
4839 * loop-init.c: Include regs.h instead of hard-reg-set.h.
4840 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
4841 (rtl_loop_done): Likewise.
4842 * mcf.c: Include tree.h before langhooks.h.
4843 * predict.c (maybe_hot_count_p): Assert we have cfun.
4844 (probably_never_executed_bb_p): Likewise.
4845 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
4846 instead of dump_flow_info.
4847 * sched-deps.c: Include tree.h with a FIXME.
4848 (call_may_noreturn_p): Add FIXME note why this function has to
4849 look at function decls instead of function decl flags.
4850 * sched-vis.c: Include tree.h with a FIXME.
4851 (print_rtl_slim): Adjust dump_bb_info uses.
4852 * statistics.c (statistics_fini_pass_2): Use current_function_name
4853 to avoid including tree.h.
4854 (statistics_counter_event): Use function_name for the same reason.
4855 (statistics_histogram_event): Likewise.
4856 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
4857 instead of dump_flow_info.
4858 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
4859 before dump_flow_info.
4860 * doc/cfg.texi: Update CFG documentation.
4861 * Makefile.in (RTL_H): Depend on FLAGS_H.
4862 (GIMPLE_H): Depend on TREE_H.
4863 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
4864 but no longer on TREE_H.
4865 (C_COMMON_H): Depend on TREE_H.
4866 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
4867 sched-deps.o, sched-vis.o): Fixup dependencies.
4869 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4871 * alias.h: Do not include coretypes.h in header files.
4872 * cppbuiltin.h: Likewise.
4873 * double-int.h: Likewise.
4874 * gimple-fold.h: Likewise.
4875 * flags.h: Likewise.
4876 * tree-ssa-alias.h: Likewise.
4877 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
4878 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
4879 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
4881 (ALIAS_H): Do not depend on coretypes.h.
4882 (FLAGS_H): Likewise.
4883 (realmpfr.o): Depend on coretypes.h.
4885 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4887 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
4888 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
4890 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
4892 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
4893 (TARGET_FPA): Delete definition.
4894 (TARGET_MAVERICK): Likewise.
4895 (TARGET_FPA_EMU2): Likewise.
4896 (arm_fp_model): Remove FPA and Maverick models.
4897 (arm_arch_cirrus): Delete declaration.
4898 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
4899 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
4900 (CALL_USED_REGISTERS): Likewise.
4901 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
4902 (FIRST_VFP_REGNUM): Renumbered.
4903 (D7_VFP_REGNUM): Chain definition.
4904 (LAST_LO_VFP_REGNUM): Likewise.
4905 (FIRST_HI_VFP_REGNUM): Likewise.
4906 (LAST_HI_VFP_REGNUM): Likewise.
4907 (FIRST_IWMMXT_GR_REGNUM): Likewise.
4908 (LAST_IWMMXT_GR_REGNUM): Likewise.
4909 (FIRST_IWMMXT_REGNUM): Likewise.
4910 (LAST_IWMMXT_REGNUM): Likewise.
4911 (FRAME_POINTER_REGNUM): Renumbered.
4912 (ARG_POINTER_REGNUM): Renumbered.
4913 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
4914 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
4915 (HARD_REGNO_REGNUM): Remove FPA support.
4916 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
4917 (reg_class): Likewise.
4918 (REG_CLASS_NAMES): Likewise.
4919 (REG_CLASS_CONTENTS): Likewise.
4920 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
4921 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
4922 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
4923 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
4924 Reorganize. Use AAPCS preferred names.
4925 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
4927 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
4928 * arm.c (FL_CIRRUS): Delete definition.
4929 (arm_arch_cirrus): Delete variable.
4930 (arm_float_words_big_endian): Delete function.
4931 (cirrus_memory_offset): Delete function.
4932 (output_mov_long_double_fpa_from_arm): Delete function.
4933 (output_mov_long_double_arm_from_fpa): Delete function.
4934 (output_mov_double_fpa_from_arm): Delete function.
4935 (output_mov_double_arm_from_fpa): Delete function.
4936 (emit_sfm): Delete function.
4937 (maybe_get_arm_condition_code): Update comment.
4938 (arm_file_start): Always use softvfp for softfloat systems.
4939 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
4940 (arm_option_override): Remove FPA and Maverick support. Always
4941 default to vfp as the fallback FPU format.
4942 (use_return_insn): Remove FPA support.
4943 (arm_get_frame_offsets): Likewise.
4944 (arm_save_coproc_regs): Likewise.
4945 (arm_canonicalize_comparison): Remove Maverick support.
4946 (arm_select_cc_mode): Likewise.
4947 (arm_gen_compare_reg): Likewise.
4948 (arm_print_operand): Likewise.
4949 (arm_libcall_value_1): Remove FPA and Maverick support.
4950 (arm_function_value_regno_p): Likewise.
4951 (arm_apply_result_size): Likewise.
4952 (arm_legitimate_index_p): Likewise.
4953 (thumb2_legitimate_index_p): Likewise.
4954 (legitimize_reload_address): Likewise.
4955 (arm_register_move_cost): Likewise.
4956 (arm_hard_regno_mode_ok): Likewise.
4957 (arm_regno_class): Likewise.
4958 (arm_dbx_register_number): Likewise.
4959 (arm_emit_unwind_sequence): Likewise.
4960 (arm_conditional_register_usage): Likewise.
4961 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
4962 (cirrus_memory_offset): Likewise.
4963 (output_move_long_double_fpa_from_arm): Likewise.
4964 (output_move_long_double_arm_from_fpa): Likewise.
4965 (output_move_double_fpa_from_arm): Likewise.
4966 (output_move_double_arm_from_fpa): Likewise.
4967 (arm_float_words_big_endian): Likewise.
4968 * arm.md (CC_REGNUM): Renumbered.
4969 (VFPCC_REGNUM): Moved here. Renumbered.
4970 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
4971 (attr fpu): Remove FPA and Maverick support.
4972 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
4973 * arm-cores.def (ep9312): Remove Maverick support.
4974 * arm-arches.def (ep9312): Delete architecture.
4975 * arm-tables.opt: Regenerated.
4977 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
4979 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
4981 PR tree-optimization/53881
4982 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
4983 comparing labels to establish uniqueness of a switch case target,
4984 use the CFG instead.
4986 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
4988 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
4989 due to negative shift amount.
4991 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
4993 Fix configure test for "stack protector support in target C library".
4994 * configure.ac (test_prefix, test_exec_prefix): Move setting from
4995 inside sysroot handling to before and outside it.
4996 * configure: Regenerate.
4998 2012-07-06 Kai Tietz <ktietz@redhat.com>
5001 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
5002 as "/mingw/include".
5004 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
5007 * var-tracking.c (vt_add_function_parameter): Convert
5008 internal_arg_pointer into arg_pointer-based address even
5011 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
5013 PR rtl-optimization/53827
5016 * alias.c (memrefs_conflict_p): Adjust offset and size by the
5017 same amount for alignment ANDs.
5019 2012-07-06 Tom de Vries <tom@codesourcery.com>
5021 PR tree-optimization/51879
5022 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
5023 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
5024 (visit_use): Also call visit_reference_op_call for calls with a vdef.
5026 2012-07-06 Tom de Vries <tom@codesourcery.com>
5028 PR tree-optimization/52009
5029 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
5030 value numbers of gimple_vdef.
5031 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
5033 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
5034 (vn_reference_insert): Add and handle vdef parameter.
5035 (visit_reference_op_load): Add argument to vn_reference_insert call.
5036 (visit_reference_op_store): Find value number of vdef of store. Insert
5037 value number of vdef of store.
5039 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
5041 * config/i386/i386.md (simple lea to add peephole): Also transform
5042 RTXes where second PLUS operand matches output.
5044 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
5046 * config/i386/i386.c (construct_plt_address): Make static.
5047 * config/i386/i386-protos.h (construct_plt_address): Remove.
5049 2012-07-06 Nick Clifton <nickc@redhat.com>
5051 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
5052 default_encode_section_info.
5054 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
5057 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
5058 emit PIC sequence for fnaddr symbol reference in advance.
5060 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
5063 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
5065 * dwarf2out.c (function_possibly_abstracted_p): New static function.
5066 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
5067 cgraph_function_possibly_inlined_p.
5068 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
5069 (process_scope_var): Do not emit concrete instances of abstracted
5070 nested functions from here.
5071 (gen_decl_die): Emit the abstract instance if the function is possibly
5072 abstracted and not only possibly inlined.
5073 (dwarf2out_finish): Find the first non-abstract parent instance and
5074 attach concrete instances on the limbo list to it.
5076 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5077 Julian Brown <julian@codesourcery.com>
5081 * config/arm/neon-gen.ml (return_by_ptr): Delete.
5082 (print_function): Handle empty strings.
5083 (return): Delete use of return_by_ptr.
5084 (mask_shape_for_shuffle): New function.
5085 (mask_elems): Likewise.
5086 (shuffle_fn): Likewise.
5087 (params): Simplify and remove use of return_by_ptr.
5088 (get_shuffle): New function.
5089 (print_variant): Update.
5090 * config/arm/neon.ml (rev_elems): New function.
5091 (permute_range): Likewise.
5092 (zip_range): Likewise.
5093 (uzip_range): Likewise.
5094 (trn_range): Likewise.
5095 (zip_elems): Likewise.
5096 (uzip_elems): Likewise.
5097 (trn_elems): Likewise.
5098 (features): New enumeration Use_shuffle. Delete ReturnPtr.
5101 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
5102 * config/arm/arm_neon.h: Regenerate.
5104 2012-07-05 Richard Guenther <rguenther@suse.de>
5106 * tree-pretty-print.c (dump_generic_node): Properly test
5107 the result of exact_log2.
5109 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5111 * config/s390/s390-protos.h (s390_expand_movmem)
5112 (s390_expand_cmpmem): Add return value.
5113 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
5114 Return FALSE to use the library function in some cases.
5115 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
5118 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5120 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
5122 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
5124 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
5125 * stmt.c (dump_case_nodes): New.
5126 (expand_case): Split out code generation parts into new functions.
5127 (expand_switch_as_decision_tree_p): Split out from expand_case.
5128 (emit_case_decision_tree): Likewise.
5129 (emit_case_dispatch_table): Likewise.
5131 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5133 * config/arm/iterators.md (SDF): New mode iterator.
5134 (V_if_elem): Add support for SF and DF modes.
5136 (F_constraint): New mode iterator attribute.
5137 (F_fma_type): Likewise.
5138 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
5139 (*fmsub<SDF:mode>4): Likewise.
5140 (*fmnsub<SDF:mode>4): Likewise.
5141 (*fmnadd<SDF:mode>4): Likewise.
5143 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
5145 * expmed.c (expand_mult): Initialize coeff and is_neg.
5147 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
5149 * config/sh/predicates.md (zero_extend_operand): New predicate.
5150 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
5151 zero_extend_operand predicate.
5152 (zero_extendqisi2): Likewise.
5154 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
5157 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
5158 to not call cgraph_propagate_frequency if something was changed.
5160 2012-07-04 Richard Guenther <rguenther@suse.de>
5163 * gimple-fold.c (get_base_constructor): Do not return an
5164 error_mark_node DECL_INITIAL.
5166 2012-07-04 Richard Guenther <rguenther@suse.de>
5168 PR tree-optimization/53844
5169 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
5170 the loop virtual PHI.
5172 2012-07-04 Richard Guenther <rguenther@suse.de>
5174 PR tree-optimization/53849
5175 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
5176 for duplicated locals. Use add_referenced_var_1 to avoid
5177 pushing/popping cfun.
5179 2012-07-04 Kai Tietz <ktietz@redhat.com>
5181 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
5182 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
5184 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
5185 as i386_pe_reloc_rw_mask.
5187 2012-07-04 Richard Guenther <rguenther@suse.de>
5189 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
5190 as in free_lang_data_in_type.
5192 2012-07-04 Tobias Grosser <tobias@grosser.es>
5193 Michael Matz <matz@suse.de>
5195 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
5196 (graphite-optimize-isl.o): Add dependencies.
5197 * common.opt (floop-nest-optimize): New flag.
5198 * doc/invoke.texi (floop-nest-optimize): Document.
5199 * graphite-dependences.c (compute_deps): Export.
5200 * graphite-poly.h (compute_deps): Declare.
5201 * graphite-optimize-isl.c: New file.
5202 * graphite-poly.c (apply_poly_transforms): Run the loop
5204 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
5205 if -floop-nest-optimize is enabled.
5207 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
5209 * config/sh/predicates.md (logical_and_operand): New predicate.
5210 * config/sh/constraints.md (Jmb, Jmw): New constraints.
5211 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
5212 of 0xFFFF constant. Use logical_and_operand predicate and
5213 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
5214 (*andsi3_compact): Make it an insn_and_split. Use
5215 logical_and_operand predicate. Add Jmb,Jmw alternatives.
5217 2012-07-03 Jason Merrill <jason@redhat.com>
5220 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
5222 2012-07-03 Nick Clifton <nickc@redhat.com>
5224 * config/mep/mep.c (mep_reorg_regmove): Use
5225 next_nonnote_non_debug_insn to advance to the next insn. Do not
5226 expect delete_insn to return an rtx.
5228 2012-07-03 Richard Guenther <rguenther@suse.de>
5230 * doc/install.texi (CLooG): Clarify how CLooG needs to be
5231 configured and that it needs to be built against ISL 0.10.
5233 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5235 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
5236 code model string in the error message.
5238 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5241 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
5242 sibcall_insn_operand. Move it to a temporary register if not.
5244 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
5247 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
5250 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5252 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
5254 2012-07-03 Roland McGrath <mcgrathr@google.com>
5256 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
5257 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
5258 * configure: Regenerated.
5259 * config/i386/i386.md (simple_return_internal_long): Use %;
5260 (ctz<mode>2): Likewise.
5263 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
5266 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
5268 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
5269 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
5270 gen_branch_true and gen_branch_false.
5271 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
5273 (branch_true, branch_false): Use t_reg_operand predicate.
5274 (*branch_true, *branch_false): Delete.
5275 (movt): Use t_reg_operand predicate.
5276 (*negnegt): Use negt_reg_operand predicate and fold little and big
5278 (*movtt): Use t_reg_operand and fold little and big endian variants.
5281 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
5283 * stmt.c (emit_case_bit_tests): Remove.
5284 (expand_case): Remove expand_switch_using_bit_tests_p code.
5285 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
5286 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
5287 (lshift_cheap_p): Likewise.
5288 (expand_switch_using_bit_tests_p): Likewise.
5289 (struct case_bit_test): Likewise.
5290 (case_bit_test_cmp): Likewise.
5291 (emit_case_bit_tests): New implementation for GIMPLE.
5292 (gen_inbound_check): Do not release post-dominator info here.
5293 (process_switch): Reorder code. Expand as bit tests if it
5295 (do_switchconv): Release post-dominator info here if something changed.
5296 (struct gimple_opt_pass): Verify more.
5297 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
5299 2012-07-02 Martin Jambor <mjambor@suse.cz>
5302 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
5303 dynamic type change check.
5305 2012-07-02 Richard Guenther <rguenther@suse.de>
5306 Michael Matz <matz@suse.de>
5307 Tobias Grosser <tobias@grosser.es>
5308 Sebastian Pop <sebpop@gmail.com>
5310 * Makefile.in: Remove PPL flags in favor of ISL ones.
5311 (BACKENDLIBS): Remove PPL libs.
5312 (INCLUDES): Remove PPL includes in favor of ISL ones.
5313 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
5314 graphite-cloog-compat.h dependencies.
5315 (graphite-dependences.o): Likewise.
5316 (graphite-poly.o): Likewise.
5317 * configure.ac: Declare ISL vars instead of PPL ones.
5318 * configure: Regenerated.
5319 * doc/install.texi: Replace PPL requirement documentation with ISL one.
5320 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
5321 * graphite-clast-to-gimple.c: Likewise.
5322 * graphite-dependences.c: Likewise.
5323 * graphite-interchange.c: Likewise.
5324 * graphite-poly.h: Likewise.
5325 * graphite-poly.c: Likewise.
5326 * graphite-sese-to-poly.c: Likewise.
5327 * graphite.c: Likewise.
5328 * graphite-scop-detection.c: Re-arrange includes.
5329 * graphite-cloog-util.c: Remove.
5330 * graphite-cloog-util.h: Likewise.
5331 * graphite-ppl.h: Likewise.
5332 * graphite-ppl.c: Likewise.
5333 * graphite-dependences.h: Likewise.
5335 2012-07-02 Richard Guenther <rguenther@suse.de>
5337 Merge from graphite branch
5338 2011-07-21 Tobias Grosser <tobias@grosser.es>
5340 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
5341 Remove graphite-cloog-util.h.
5342 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
5343 build_iv_mapping, translate_clast_user, translate_clast,
5344 free_scattering, initialize_cloog_names, build_cloog_prog,
5345 create_params_index): Do not use old compatibility functions.
5346 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
5347 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
5348 compatibility functions.
5349 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
5351 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
5352 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
5354 * graphite-cloog-compat.h: Remove.
5356 2011-08-09 Tobias Grosser <tobias@grosser.es>
5358 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
5359 of the string, no just a reference.
5360 (clast_name_index): Add a new field, that specifies if we need to free
5362 (free_clast_name_index): If necessary, free the name string.
5363 (clast_name_index_elt_info): Calculate the hash based on the string
5364 content, not the memory location it is stored in.
5365 (clast_name_to_level): Specify that we do not need to free the name.
5366 (clast_name_to_index): Dito.
5367 (clast_name_to_lb_ub): Dito.
5368 (eq_clast_name_indexes): Compare the strings, not their base pointers.
5369 (free_scattering): Removed.
5370 (initialize_cloog_names): Renamed to add_names_to_union_domain().
5371 (add_names_to_union_domain): Changed to work on a union_domain,
5372 instead of a CloogNames structure.
5373 (build_cloog_prog): Removed.
5374 (build_cloog_union_domain): New.
5375 (generate_cloog_input): New.
5376 (scop_to_clast): Use CloogInput instead of CloogProgram.
5377 (print_generated_program): Adapt to new scop_to_clast() and do not
5378 print the CloogProgram any more.
5379 (create_params_index): Removed, functionality integrated in
5380 add_names_to_union_domain().
5381 (gloog): Adapt to new scop_to_clast().
5382 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
5384 2012-01-11 Tobias Grosser <tobias@grosser.es>
5386 * graphite-clast-to-gimple.c (clast_name_to_index,
5387 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
5388 (clast_to_gcc_expression): Add clast_expr_name as a new
5389 case. Do not assume a clast_expr_term points always to a
5391 (type_for_clast_term): Do not assume a clast_expr_term points always to
5393 (type_for_clast_name): New.
5394 (type_for_clast_expr): Add clast_expr_name as a new case.
5396 2011-08-03 Sebastian Pop <sebpop@gmail.com>
5398 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
5399 new_Cloog_Scattering_from_ppl_Polyhedron,
5400 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
5402 2012-07-02 Jakub Jelinek <jakub@redhat.com>
5404 PR tree-optimization/53645
5405 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
5406 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
5408 2012-07-01 Wei Guozhi <carrot@google.com>
5411 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
5412 * config/arm/arm.c (const_ok_for_dimode_op): New function.
5413 * config/arm/constraints.md (Dd): New constraint.
5414 * config/arm/predicates.md (arm_adddi_operand): New predicate.
5415 * config/arm/arm.md (adddi3): Extend it to handle constants.
5416 (arm_adddi3): Likewise.
5417 (addsi3_carryin_<optab>): Extend it to handle sbc case.
5418 (addsi3_carryin_alt2_<optab>): Likewise.
5419 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
5421 2012-06-30 Nathan Sidwell <nathan@acm.org>
5423 * coverage.c (bbg_file_stamp): New.
5424 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
5425 (build_info): Write bbg_file_stamp.
5426 (coverage_init): Initialize bbg_file_stamp. Read counts file
5427 before writing graph header.
5428 (coverage_finish): Don't unlink the data file if we can generate a
5430 * tree.h (crc32_unsigned): Declare.
5431 * tree.c (crc32_unsigned_bits): New, broken out of ...
5432 (crc32_byte): ... here. Use it.
5433 (crc32_unsigned): New.
5435 2012-06-29 Cary Coutant <ccoutant@google.com>
5437 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
5438 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
5439 (gen_variable_die): Likewise.
5440 (gen_namespace_die): Likewise.
5442 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
5444 * tree-eh.c (lower_try_finally_switch): Really put the location of the
5445 last statement of the finally block onto the switch.
5447 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
5450 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
5453 2012-06-29 Sterling Augustine <saugustine@google.com>
5455 * dwarf2out.c (add_pubname): Add comment.
5456 (add_pubtype): Fix indentation.
5457 (gen_enumeration_type_die): Likewise.
5459 2012-06-29 Jakub Jelinek <jakub@redhat.com>
5461 * tree-vect-generic.c (expand_vector_divmod): For even/odd
5462 widening multiply, put even always as first argument to VEC_PERM_EXPR.
5464 2012-06-29 Richard Henderson <rth@redhat.com>
5466 * tree-vect-generic.c: Include target.h.
5467 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
5468 * Makefile.in (tree-vect-generic.o): Update.
5470 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5472 * configure.ac: Remove special gtfiles case for C.
5473 * configure: Regenerate.
5474 * Makefile.in: Remove C front-end hooks and build hooks that
5475 will be picked up from c/Make-lang.in now.
5476 Add tree-mudflap to C_COMMON_OBJS.
5477 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
5478 * config/vms/vms.c: Look for c-tree.h in c/.
5479 * doc/gty.texi: Remove reference to c-config-lang.in.
5480 * doc/sourcebuild.texi: Document the c/ subdirectory.
5482 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5484 * system.h (CASE_USE_BIT_TESTS): Poison.
5485 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
5486 (expand_switch_using_bit_tests_p): ...here.
5487 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
5488 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
5490 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5492 * system.h (IFCVT_EXTRA_FIELDS): Poison.
5493 (IFCVT_INIT_EXTRA_FIELDS): Poison.
5494 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
5495 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
5496 IFCVT_INIT_EXTRA_FIELDS.
5497 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
5498 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
5500 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
5501 frv_ifcvt_machdep_init.
5502 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
5503 Remove documentation.
5504 (IFCVT_MACHDEP_INIT): Document.
5505 * doc/tm.texi: Regenerate.
5507 2012-06-29 Nick Clifton <nickc@redhat.com>
5509 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
5511 2012-06-29 Jakub Jelinek <jakub@redhat.com>
5513 * tree-vect-stmts.c (vectorizable_operation): Check both
5514 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
5515 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
5517 2012-06-28 Richard Henderson <rth@redhat.com>
5519 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
5521 2012-06-28 Jakub Jelinek <jakub@redhat.com>
5523 PR tree-optimization/51581
5524 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
5525 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
5526 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
5527 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
5528 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
5529 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
5531 PR tree-optimization/53645
5532 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
5533 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
5536 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
5539 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
5540 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
5541 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
5542 avr_hard_regno_call_part_clobbered.
5544 2012-06-28 Richard Guenther <rguenther@suse.de>
5547 * expr.c (expand_expr_real_1): Verify if the type is complete
5548 before inspecting its size.
5550 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
5552 * doc/include/gpl.texi: Remove.
5553 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
5555 2012-06-28 Jakub Jelinek <jakub@redhat.com>
5557 PR tree-optimization/53645
5558 * tree-vect-generic.c (add_rshift): New function.
5559 (expand_vector_divmod): New function.
5560 (expand_vector_operation): Use it for vector integer
5561 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
5562 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
5563 unused lguup variable with dummy_int.
5565 2012-06-28 OLivier Hainque <hainque@adacore.com>
5567 * expr.c (convert_move): Latch mem integer inputs into a
5568 register before expanding a multi-instructions sequence.
5570 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
5571 Uros Bizjak <ubizjak@gmail.com>
5572 Jakub Jelinek <jakub@redhat.com>
5576 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
5577 (vt_finalize): ... here instead, if needed.
5579 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
5584 * dce.c (word_dce_process_block): Check whether inserting debug
5585 temps are needed even for needed insns.
5586 (dce_process_block): Likewise.
5587 * df-problems.c (dead_debug_add): Add comment about multi-regs.
5588 (dead_debug_insert_temp): Likewise. Don't subreg when we're
5589 setting fewer regs than a multi-reg requires.
5591 2012-06-27 Richard Henderson <rth@redhat.com>
5593 * config/alpha/alpha.c (alpha_dimode_u): New.
5594 (alpha_init_builtins): Initialize it, and use it.
5595 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
5596 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
5597 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
5598 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
5599 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
5600 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
5601 (alpha_fold_builtin_ctpop): Likewise.
5602 (alpha_fold_builtin_umulh): Remove.
5603 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
5604 typo in MAX_ARGS check.
5606 2012-06-27 Richard Henderson <rth@redhat.com>
5608 * tree.def (MULT_HIGHPART_EXPR): New.
5609 * cfgexpand.c (expand_debug_expr): Ignore it.
5610 * expr.c (expand_expr_real_2): Handle it.
5611 * fold-const.c (int_const_binop_1): Likewise.
5612 * optabs.c (optab_for_tree_code): Likewise.
5613 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5614 * tree-inline.c (estimate_operator_cost): Likewise.
5615 * tree-pretty-print.c (dump_generic_node): Likewise.
5616 (op_code_prio, op_symbol_code): Likewise.
5617 * tree.c (commutative_tree_code): Likewise. Also handle
5618 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
5620 2012-06-27 Richard Henderson <rth@redhat.com>
5623 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
5624 in 2012-06-23 change. Adjust two other DImode tests as well.
5626 2012-06-27 Nick Clifton <nickc@redhat.com>
5628 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
5631 2012-06-27 Richard Guenther <rguenther@suse.de>
5634 * tree-chrec.c (chrec_convert_1): Represent truncation to
5635 a type with undefined overflow as truncation to an unsigned
5636 type converted to the type with undefined overflow.
5637 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
5638 the scalar evolution of a truncated widened operation avoid
5639 looking at the non-existing evolution of the widened operation
5642 2012-06-27 Richard Guenther <rguenther@suse.de>
5644 PR tree-optimization/53774
5645 * tree-ssa-reassoc.c (get_rank): All default defs have
5647 (init_reassoc): Precompute rank for all SSA default defs.
5649 2012-06-27 Nick Clifton <nickc@redhat.com>
5651 * config/rx/rx.md (simple_return): Use the simple_return rtx.
5653 2012-06-26 Richard Henderson <rth@redhat.com>
5655 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
5656 and don't fall thru from standard_80387_constant_p to the memory
5659 2012-06-26 Richard Henderson <rth@redhat.com>
5661 * config/i386/i386.c (bdesc_args): Update. Change
5662 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
5663 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
5664 (ix86_builtin_mul_widen_even): Use it.
5665 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
5666 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
5667 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
5669 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
5670 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
5671 (vec_widen_smult_even_v4si): New.
5673 2012-06-26 Richard Henderson <rth@redhat.com>
5675 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
5676 to expander; move guts to ...
5677 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
5678 highparts before shifting up.
5679 * config/i386/i386-protos.h: Update.
5681 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5683 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
5684 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
5685 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
5687 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
5689 * var-tracking.c (vt_add_function_parameter): Use a preserved
5690 VALUE for the MEM address of an incoming parameter.
5692 2012-06-26 Sterling Augustine <saugustine@google.com>
5694 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
5695 (prune_unused_types): Likewise.
5697 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5699 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5700 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
5701 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5702 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
5703 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
5704 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
5705 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
5706 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
5707 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
5709 * doc/tm.texi: Regenerate.
5710 * doc/cpp.texi: Make example for #error generic.
5711 * config/frv/frv.h: Fix example text to match tm.texi.
5713 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
5715 * tree-pass.h (pass_strength_reduction): New decl.
5716 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
5717 (finalize_costs): Likewise.
5718 * timevar.def (TV_TREE_SLSR): New timevar.
5719 * gimple-ssa-strength-reduction.c: New.
5720 * tree-flow.h (initialize_costs): New decl.
5721 (finalize_costs): Likewise.
5722 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
5723 * passes.c (init_optimization_passes): Add pass_strength_reduction.
5725 2012-06-26 Matt Turner <mattst88@gmail.com>
5727 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
5728 (__builtin_arm_tinsrh): Likewise.
5729 (__builtin_arm_tinsrw): Likewise.
5730 (__builtin_arm_wsadb): Add missing v2si parameter.
5731 (__builtin_arm_wsadh): Likewise.
5732 (__builtin_arm_getwcx): Delete.
5733 (__builtin_arm_setwcx): Delete.
5734 (__builtin_arm_getwcgr0): Add.
5735 (__builtin_arm_getwcgr1): Add.
5736 (__builtin_arm_getwcgr2): Add.
5737 (__builtin_arm_getwcgr3): Add.
5738 (__builtin_arm_setwcgr0): Add.
5739 (__builtin_arm_setwcgr1): Add.
5740 (__builtin_arm_setwcgr2): Add.
5741 (__builtin_arm_setwcgr3): Add.
5743 2012-06-26 Richard Guenther <rguenther@suse.de>
5746 2012-06-21 Richard Guenther <rguenther@suse.de>
5748 * tree-inline.c (estimate_num_insns): Estimate call cost for
5751 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5754 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
5755 * doc/tm.texi: Regenerate.
5757 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5760 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
5761 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
5762 * doc/tm.texi.in: Remove documentation for unused target macros
5763 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
5764 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
5765 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
5766 TARGET_NARROW_VOLATILE_BITFIELDS.
5767 Document that MD_HANDLE_UNWABI is a macro in libgcc.
5768 * doc/tm.texi: Regenerate.
5769 * system.h: Poison target macros
5770 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
5771 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
5772 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
5773 TARGET_NARROW_VOLATILE_BITFIELDS
5775 2012-06-26 Jan Hubicka <jh@suse.cz>
5778 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
5781 2012-06-26 Dehao Chen <dehao@google.com>
5783 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
5784 source location is consistant with the call stmt.
5786 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
5788 PR tree-optimization/53729
5789 PR tree-optimization/53636
5790 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
5791 vect_verify_datarefs_alignment until after statements have
5792 been marked as relevant/irrelevant.
5793 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
5794 Skip irrelevant statements.
5795 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
5796 instead of STMT_VINFO_RELEVANT.
5797 (vect_get_data_access_cost): Do not check for supportable
5798 alignment before calling vect_get_load_cost/vect_get_store_cost.
5799 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
5800 handling unsupported alignment.
5801 (vect_get_load_cost): Likewise.
5803 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
5805 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
5806 Do not define JMP_BUF_SIZE.
5808 2012-06-26 Jakub Jelinek <jakub@redhat.com>
5810 PR tree-optimization/53748
5811 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
5812 if arg0/arg1 have integral or pointer types.
5814 2012-06-25 Richard Henderson <rth@redhat.com>
5816 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
5817 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
5818 (sdot_prodv4si): New; handle only XOP.
5820 2012-06-25 Richard Henderson <rth@redhat.com>
5822 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
5823 (V2UDI_FUNC_V4USI_V4USI): New.
5824 (V4UDI_FUNC_V8USI_V8USI): New.
5825 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
5826 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
5827 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
5828 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
5829 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
5830 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
5831 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
5832 (bdesc_args): Add them.
5833 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
5834 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
5835 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5836 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
5837 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
5839 2012-06-25 Richard Henderson <rth@redhat.com>
5841 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
5843 2012-06-25 Richard Henderson <rth@redhat.com>
5845 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
5847 (ix86_expand_vec_interleave): New.
5848 (ix86_expand_mul_widen_evenodd): New.
5849 (ix86_expand_mul_widen_hilo): New.
5850 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
5851 * config/i386/i386.md (u_bool) New code attr.
5852 * config/i386/predicates.md
5853 (nonimmediate_or_const_vector_operand): Remove.
5854 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
5855 both AVX and SSE4_1.
5856 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
5857 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
5858 (vec_widen<s>mult_hi_v8si): Remove.
5859 (vec_widen<s>mult_lo_v8si): Remove.
5860 (vec_widen_smult_hi_v4si): Remove.
5861 (vec_widen_smult_lo_v4si): Remove.
5862 (vec_widen_umult_hi_v4si): Remove.
5863 (vec_widen_umult_lo_v4si): Remove.
5864 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
5865 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
5866 * config/i386/i386-protos.h: Update.
5868 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
5870 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
5871 (neon_vld1_dup): Restrict to VQ operands.
5872 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
5874 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5875 James Greenhalgh <james.greenhalgh@arm.com>
5877 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
5878 (TARGET_FMA): New macro.
5879 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
5880 (TARGET_ARM_ARCH): Likewise.
5881 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
5882 (TARGET_V6M, TARGET_V7M): Likewise.
5883 (TARGET_ARM_ARCH_PROFILE): Likewise.
5884 (TARGET_ARM_FEATURE_LDREX): Likewise.
5885 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
5886 (ARM_MIN_ENUM_SIZE): Likewise.
5887 * config/arm/arm.c (arm_file_start): Refactor appropriately.
5888 (base_architecture): New enumeration.
5889 (arm_base_arch): New global variable.
5890 (processors): Add field base_arch.
5891 (ARM_ARCH, ARM_CORE): Adjust accordingly.
5892 (arm_option_override): Add initialization of arm_base_arch.
5893 * doc/cpp.texi (system-specific predefined macros.): Change.
5895 2012-06-25 Jakub Jelinek <jakub@redhat.com>
5898 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
5899 of x x x in the vmovlps load alternative.
5901 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
5904 * df.h (dead_debug_add): Remove third argument.
5905 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
5906 REG that we want to replace instead.
5907 (dead_debug_insert_temp): Use the REGNO of the reg that we want
5908 to replace instead of DF_REF_REGNO. Require there to always be
5909 at least one such use. Check for cases where the same location
5910 has more than df_ref associated with it.
5911 (df_note_bb_compute): Remove third dead_debug_add argument.
5912 * dce.c (word_dce_process_block): Likewise.
5914 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
5916 * config/v850/v850.c: Remove redundant extern declarations for
5917 last_assemble_variable_decl and size_directive_output.
5919 * doc/tm.texi.in: Document JMP_BUF_SIZE.
5920 * doc/tm.texi: Regenerate.
5921 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
5922 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
5923 * config/stormy16/stormy16.h: Likewise.
5925 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
5927 * doc/sourcebuild.texi: Add missing subdirectories.
5929 2012-06-25 Tristan Gingold <gingold@adacore.com>
5931 * config/i386/i386.h: Fix typo.
5933 2012-06-25 Tristan Gingold <gingold@adacore.com>
5935 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
5936 (seh_cfa_adjust_cfa): ... that function.
5937 (seh_emit_stackalloc): Do not emit out of range values.
5938 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
5939 UNSPEC_DEF_CFA constants.
5940 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
5941 * config/i386/i386.c (ix86_frame_pointer_required): Required
5942 for very large frames on SEH target.
5943 (ix86_compute_frame_layout): Save area is before frame pointer
5944 on SEH target. Handle very large frames.
5945 (ix86_expand_prologue): Likewise.
5947 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
5949 * output.h: (current_function_is_leaf,
5950 current_function_sp_is_unchanging,
5951 current_function_uses_only_leaf_regs): Remove.
5952 * function.c (current_function_is_leaf,
5953 current_function_sp_is_unchanging,
5954 current_function_uses_only_leaf_regs): Remove.
5955 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
5956 instead of current_function_uses_only_leaf_regs.
5957 * function.h (struct rtl_data): New fields sp_is_unchanging,
5958 is_leaf, uses_only_leaf_regs.
5959 * resource.c (init_resource_info): Replace current_function_is_leaf,
5960 current_function_sp_is_unchanging, and
5961 current_function_uses_only_leaf_regs with new crtl fields.
5962 * sdbout.c (sdbout_symbol): Likewise.
5963 * df-core.c (rest_of_handle_df_initialize): Likewise.
5964 * ira.c (ira): Likewise.
5965 * final.c (final_start_function): Likewise.
5966 * reorg.c (fill_simple_delay_slots): Likewise.
5967 * regrename.c (check_new_reg_p): Likewise.
5968 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
5969 (notice_stack_pointer_modification): Likewise.
5970 * dbxout.c (dbxout_symbol): Likewise.
5971 (dbxout_parms): Likewise.
5972 * sel-sched.c (init_regs_for_mode): Likewise.
5973 * dwarf2out.c (dbx_reg_number): Likewise.
5974 (multiple_reg_loc_descriptor): Likewise.
5975 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
5976 (gen_pop): Likewise.
5977 (ix86_select_alt_pic_regnum): Likewise.
5978 (ix86_compute_frame_layout): Likewise.
5979 (ix86_finalize_stack_realign_flags): Likewise.
5980 (ix86_expand_epilogue): Likewise.
5981 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
5982 * config/h8300/h8300.c (byte_reg): Likewise.
5983 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
5984 (c6x_save_reg): Likewise.
5985 (c6x_compute_frame_layout): Likewise.
5986 * config/pa/pa.c (pa_compute_frame_size): Likewise.
5987 (pa_output_function_prologue): Likewise.
5988 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
5989 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
5990 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
5991 (sparc_expand_prologue): Likewise.
5992 (sparc_flat_expand_prologue): Likewise.
5993 (sparc_asm_function_prologue): Likewise.
5994 (sparc_output_mi_thunk): Likewise.
5995 (sparc_frame_pointer_required): Likewise.
5996 * config/epiphany/epiphany.c (epiphany_compute_function_type):
5998 (epiphany_compute_frame_size): Likewise.
5999 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
6000 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
6001 (cris_frame_pointer_required): Likewise.
6002 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
6003 (tilepro_current_function_is_leaf): Likewise.
6004 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
6005 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
6006 * config/ia64/ia64.c (find_gr_spill): Likewise.
6007 (ia64_compute_frame_size): Likewise.
6008 (ia64_can_eliminate): Likewise.
6009 (ia64_initial_elimination_offset): Likewise.
6010 * config/m68k/m68k.c (m68k_save_reg): Likewise.
6011 (m68k_expand_epilogue): Likewise.
6012 * config/rx/rx.c (rx_get_stack_layout): Likewise.
6013 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
6014 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
6016 (picochip_output_frame_debug): Likewise.
6017 * config/sh/sh.c (sh_media_register_for_return): Likewise.
6018 (sh_allocate_initial_value): Likewise.
6019 (sh_output_mi_thunk): Likewise.
6020 * config/microblaze/microblaze.c (microblaze_must_save_register):
6022 (compute_frame_size): Likewise.
6023 (microblaze_initial_elimination_offset): Likewise.
6024 (microblaze_expand_prologue): Likewise.
6025 (microblaze_expand_epilogue): Likewise.
6026 * config/frv/frv.c (frv_expand_epilogue): Likewise.
6027 (frv_frame_pointer_required): Likewise.
6028 * config/spu/spu.c (get_pic_reg): Likewise.
6029 (direct_return): Likewise.
6030 (spu_expand_prologue): Likewise.
6031 (spu_expand_epilogue): Likewise.
6032 (spu_initial_elimination_offset): Likewise.
6033 * config/mips/mips.c (mips_global_pointer): Likewise.
6034 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6035 (mips_compute_frame_info): Likewise.
6036 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
6037 (mep_reload_pointer): Likewise.
6038 * config/rl78/rl78.c (need_to_save): Likewise.
6039 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
6040 * config/score/score.c (score_compute_frame_size): Likewise.
6041 (score_function_prologue): Likewise.
6042 * config/bfin/bfin.c (must_save_p): Likewise.
6043 (expand_prologue_reg_save): Likewise.
6044 (expand_epilogue_reg_restore): Likewise.
6045 (bfin_frame_pointer_required): Likewise.
6046 (n_regs_saved_by_prologue): Likewise.
6047 (add_to_reg): Likewise.
6048 (expand_interrupt_handler_prologue): Likewise.
6049 (expand_interrupt_handler_epilogue): Likewise.
6050 (bfin_expand_prologue): Likewise.
6051 * config/avr/avr.c (avr_regs_to_save): Likewise.
6052 (avr_prologue_setup_frame): Likewise.
6053 (expand_epilogue): Likewise.
6054 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
6055 (s390_register_info): Likewise.
6056 (s390_frame_info): Likewise.
6057 (s390_init_frame_layout): Likewise.
6058 (s390_emit_prologue): Likewise.
6061 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
6063 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
6064 * vmsdbgout: Do not undefine it if defined.
6065 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
6066 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
6067 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
6069 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
6071 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
6073 2012-06-23 Richard Henderson <rth@redhat.com>
6076 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
6077 V*QImode shifts and multiply.
6078 (ix86_expand_vecop_qihi): Support shifts.
6079 * config/i386/i386.md (any_shift): New code iterator.
6080 * config/i386/sse.md (ashlv16qi3): Merge ...
6081 (<any_shiftrt>v16qi3): ... into ...
6082 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
6083 to support SSE and AVX.
6085 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
6086 parameter into src and dest.
6087 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
6088 (vec_unpacks_hi_<V124_AVX2>): Likewise.
6089 (vec_unpacku_lo_<V124_AVX2>): Likewise.
6090 (vec_unpacks_lo_<V124_AVX2>): Likewise.
6091 * config/i386/i386-protos.h: Update.
6093 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
6094 pure expander; move expansion code ...
6095 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
6096 * config/i386/i386-protos.h: Update.
6098 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
6100 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
6101 (popcntb<mode>2): Add attribute type popcnt.
6102 (popcntd<mode>2): Ditto.
6103 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
6104 * config/rs6000/power5.md (define_insn_reservation): Ditto.
6105 * config/rs6000/power7.md (define_insn_reservation): Ditto.
6106 * config/rs6000/476.md (define_insn_reservation): Ditto.
6107 * config/rs6000/power6.md (define_insn_reservation): New
6108 reservation for popcnt instructions.
6110 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
6112 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
6114 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
6117 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
6119 * config/i386/i386.c (ix86_option_override_internal): Allow
6120 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
6122 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
6125 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
6127 * double-int.c (double_int_multiple_of): New function.
6128 * double-int.h (double_int_multiple_of): New decl.
6129 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
6130 (mbc_entry_hash): New forward decl.
6131 (mbc_entry_eq): Likewise.
6132 (zero_cost): Change to no_cost.
6133 (mult_costs): New static var.
6134 (cost_tables_exist): Likewise.
6135 (initialize_costs): New function.
6136 (finalize_costs): Likewise.
6137 (tree_ssa_iv_optimize_init): Call initialize_costs.
6138 (add_cost): Change to add_regs_cost; distinguish costs by speed.
6139 (multiply_regs_cost): New function.
6140 (add_const_cost): Likewise.
6141 (extend_or_trunc_reg_cost): Likewise.
6142 (negate_reg_cost): Likewise.
6143 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
6145 (get_address_cost): Change add_cost to add_regs_cost; change
6146 multiply_by_cost to multiply_by_const_cost.
6147 (force_expr_to_var_cost): Change zero_cost to no_cost; change
6148 add_cost to add_regs_cost; change multiply_by_cost to
6149 multiply_by_const_cost.
6150 (split_cost): Change zero_cost to no_cost.
6151 (ptr_difference_cost): Likewise.
6152 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
6153 to multiply_by_const_cost.
6154 (get_computation_cost_at): Change add_cost to add_regs_cost; change
6155 multiply_by_cost to multiply_by_const_cost.
6156 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
6157 (determine_iv_cost): Change add_cost to add_regs_cost.
6158 (iv_ca_new): Change zero_cost to no_cost.
6159 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
6160 * tree-ssa-address.c (most_expensive_mult_to_index): Change
6161 multiply_by_cost to multiply_by_const_cost.
6162 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
6163 (add_regs_cost): New decl.
6164 (multiply_regs_cost): Likewise.
6165 (add_const_cost): Likewise.
6166 (extend_or_trunc_reg_cost): Likewise.
6167 (negate_reg_cost): Likewise.
6169 2012-06-22 Richard Guenther <rguenther@suse.de>
6171 Merge from graphite branch
6172 2011-08-10 Sebastian Pop <sebpop@gmail.com>
6174 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
6176 2012-01-13 Tobias Grosser <tobias@grosser.es>
6178 * tree-flow.h (parallelized_function_p): Declare.
6179 * tree-parloops.c (parallelized_function_p): Export.
6180 * graphite.c (graphite_transform_loops): Do not run graphite on
6181 already parallel functions.
6183 2012-06-22 Alan Modra <amodra@gmail.com>
6185 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
6186 return mem. Convert to indirect addressing if not indirect or
6187 indexed. Adjust all callers.
6189 2012-06-22 Richard Guenther <rguenther@suse.de>
6191 * gcov-iov.c: Include bconfig.h and system.h.
6193 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
6195 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
6197 2012-06-22 Richard Guenther <rguenther@suse.de>
6199 PR gcov-profile/53744
6200 * gcov-iov.c (main): Treat "" and "prerelease" the same.
6202 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
6205 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
6206 for GNU Fortran if in strict DWARF2 mode.
6208 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
6210 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
6211 DECL_IGNORED_P non-reg vars even if they are used.
6213 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6217 * var-tracking.c (vt_get_canonicalize_base): New.
6218 (vt_canonicalize_addr, vt_stack_offset_p): New.
6219 (vt_canon_true_dep): New.
6220 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
6221 (clobber_overlaping_mems): Use vt_canonicalize_addr.
6223 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6227 * var-tracking.c (vt_initialize): Record initial offset between
6228 arg pointer and stack pointer.
6230 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6234 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
6237 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6241 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
6243 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6245 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
6247 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6250 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
6252 2012-06-21 Meador Inge <meadori@codesourcery.com>
6255 * c-decl.c (c_push_function_context): Restore the behavior to reuse
6256 the language function allocated for -Wunused-local-typedefs.
6257 (c_pop_function_context): If necessary, clear the language function
6258 created in c_push_function_context. Always clear out the
6259 x_cur_stmt_list field of the restored language function.
6261 2012-06-21 Sterling Augustine <saugustine@google.com>
6262 Cary Coutant <ccoutant@google.com>
6264 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
6265 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
6266 (comdat_type_struct): New field 'skeleton_die'.
6267 (breakout_comdat_types): Update it.
6268 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
6269 is_namespace_die. Fix minor style violation. Call want_pubnames.
6270 (add_pubname_string): Call want_pubnames.
6271 (add_pubtype): Rework logic for calculating type name. Call
6272 is_namespace_die. Call want_pubnames.
6273 (output_pubnames): Move conditional logic deciding when to produce the
6274 section from dwarf2out_finish. Use new skeleton_die field.
6275 (base_type_die): Call add_pubtype.
6276 (gen_enumeration_type_die): Unconditionally call add_pubtype.
6277 (gen_subprogram_die): Adjust calls to add_pubname.
6278 (gen_namespace_die): Call add_pubname_string.
6279 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
6280 produce pubnames and pubtypes sections to output_pubnames.
6281 * common.opt (-gpubnames): New option.
6282 * doc/invoke.texi: Document it.
6284 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6286 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
6288 2012-06-21 Michael Matz <matz@suse.de>
6291 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
6294 2012-06-21 Richard Guenther <rguenther@suse.de>
6296 * tree-inline.c (estimate_num_insns): Estimate call cost for
6299 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
6301 * tree.h (DECL_SOURCE_COLUMN): New accessor.
6303 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6305 * config/i386/i386.md (SINCOS): New int iterator.
6306 (sincos): New int attribute.
6307 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
6308 SINCOS int iterator.
6309 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
6310 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
6312 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6314 * config/i386/i386.md (RDFSGSBASE): New int iterator.
6315 (WRFSGSBASE): Ditto.
6316 (fsgs): New int attribute.
6317 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
6318 RDFSGSBASE int iterator.
6319 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
6320 WRFSGSBASE int iterator.
6322 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6324 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
6325 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
6326 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
6327 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
6330 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6332 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
6334 2012-06-20 Richard Guenther <rguenther@suse.de>
6336 PR tree-optimization/30318
6337 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
6339 (range_int_cst_singleton_p): But explicitely here.
6340 (zero_nonzero_bits_from_vr): And here.
6341 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
6342 to cover all cases we can perform arbitrary precision
6343 arithmetic with double-ints.
6344 (intersect_ranges): Handle adjacent anti-ranges.
6346 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6348 * config/i386/i386.md (rounding_insn): New int attribute.
6349 (<rounding_insn>xf2): Macroize insn from
6350 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
6351 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
6353 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6355 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
6356 (ieee_maxmin): New int attribute.
6357 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
6358 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
6360 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6362 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
6363 * config/arm/arm.c: Do not include c-pragma.h.
6364 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
6365 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
6366 to arm_emit_eabi_attribute.
6367 * arm-c.c: Do not include output.h.
6368 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
6369 call to arm_emit_eabi_attribute.
6370 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
6372 2012-06-20 Richard Guenther <rguenther@suse.de>
6374 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6375 Allow adjusting alignment of user-aligned decls again.
6377 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6379 * config/rl78/rl78-c.c: Remove unnecessary includes.
6381 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6383 * config/cris/cris.c: Include cgraph.h.
6384 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
6386 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
6388 * emit-rtl.c (need_atomic_barrier_p): New function.
6389 * emit-rtl.h (need_atomic_barrier_p): Declare it.
6390 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
6391 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
6392 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
6393 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
6394 (mips_process_sync_loop): Use generic version instead.
6396 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
6398 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
6401 2012-06-19 Tom de Vries <vries@codesourcery.com>
6402 Maxim Kuvyrkov <maxim@codesourcery.com>
6404 * config/mips/constraints.md (ZR): New constraint.
6405 * config/mips/predicates.md (mem_noofs_operand): New predicate.
6406 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
6407 * config/mips/mips.h (TARGET_XLP): Define.
6408 (TARGET_SYNC_AFTER_SC): Update.
6409 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
6410 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
6411 XLP-specific swap and ldadd patterns.
6412 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
6414 2012-06-19 Tom de Vries <vries@codesourcery.com>
6415 Maxim Kuvyrkov <maxim@codesourcery.com>
6417 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
6418 (mips_emit_post_atomic_barrier_p): New static functions.
6419 (mips_process_sync_loop): Use them. Emit sync memory barriers in
6420 accordance with memory model semantics. Add return of CMP result for
6422 * config/mips/mips.md: Update comment.
6423 (sync_cmp): New attribute.
6424 (sync_memmodel): New attribute replacing sync_release_barrier.
6425 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
6426 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
6427 (sync_lock_test_and_set, test_and_set_12): Update.
6428 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
6429 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
6431 2012-06-19 Joseph Myers <joseph@codesourcery.com>
6433 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
6434 mov_si<mode>_e500_subreg0.
6435 (*mov_si<mode>_e500_subreg0_elf_low)
6436 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
6438 2012-06-19 Richard Henderson <rth@redhat.com>
6440 * config/alpha/alpha.c: Include params.h.
6441 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
6442 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
6444 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6446 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
6447 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
6448 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
6450 * doc/tm.texi: Regenerate.
6451 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
6453 * config/darwin-c.c: Include target.h.
6454 (darwin_objc_declare_unresolved_class_reference): New function.
6455 (darwin_objc_declare_class_definition): New function.
6456 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
6457 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
6459 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6461 * target.def (output_ident): New hook.
6462 * targhooks.h (default_asm_output_ident_directive): Add prototype.
6463 * varasm.c (assemble_asm): Only prefix a tab if the string does not
6464 already start with one.
6465 (default_asm_output_ident_directive): New function to emit
6466 .ident as a top-level asm node while parsing, or directly to
6467 asm_out_file after parsing.
6468 * toplev.c (compile_file): Print a GCC .ident with
6469 targetm.asm_out.output_ident.
6470 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
6471 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
6472 * doc/tm.texi: Update.
6474 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
6475 (TARGET_ASM_OUTPUT_IDENT): Define.
6476 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
6477 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
6478 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
6479 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
6480 (TARGET_ASM_OUTPUT_IDENT): Define.
6481 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
6482 (TARGET_ASM_OUTPUT_IDENT): Define.
6484 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
6485 * config/cris/cris.c (cris_asm_output_ident): New function.
6486 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
6488 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
6490 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
6491 (microblaze_asm_output_ident): Rewrite to work similar to
6492 default_asm_output_ident_directive for front-end .idents.
6493 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
6494 (TARGET_ASM_OUTPUT_IDENT): Define.
6496 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
6497 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
6499 * config/rx/rx.c: Include cgraph.h for add_asm_node.
6500 (rx_asm_output_ident): New function, similar to
6501 default_asm_output_ident_directive, but handle AS100 syntax also, so
6502 that #ident also works for rx in AS100 syntax.
6503 (TARGET_ASM_OUTPUT_IDENT): Define.
6504 * config/rx/rx.h (IDENT_ASM_OP): Remove.
6506 * Makefile.in: Fix dependencies for c-family/c-lex.o.
6508 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
6510 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
6511 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
6513 (*fist<mode>2_<rounding>_1): Macroize insn from
6514 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
6515 (fistdi2_<rounding>): Macroize insn from
6516 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
6517 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
6518 corresponding splitters from fistdi2_{floor,ceil} and corresponding
6519 splitters using FIST_ROUNDING int iterator.
6520 (fist<mode>2_<rounding>): Macroize insn from
6521 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
6522 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
6523 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
6524 splitters using FIST_ROUNDING int iterator.
6525 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
6526 using FIST_ROUNDING int iterator.
6528 2012-06-19 Richard Henderson <rth@redhat.com>
6530 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
6531 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
6532 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
6533 * config/i386/sse.md (sse2_mulv4si3): Delete.
6534 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
6535 nonimmediate_or_const_vector_operand.
6537 2012-06-19 Richard Henderson <rth@redhat.com>
6539 * expmed.c (struct init_expmed_rtl): Split ...
6540 (init_expmed_one_mode): ... out of ...
6541 (init_expmed): ... here. Initialize integer vector modes also.
6542 (synth_mult): Handle integer vector modes.
6543 (choose_mult_variant): Likewise.
6544 (expand_mult_const): Likewise.
6545 (expand_mult): Likewise.
6546 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
6548 2012-06-19 Richard Henderson <rth@redhat.com>
6550 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
6551 integral vector modes.
6553 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
6555 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
6556 (rounding): New int attribute.
6558 (frndintxf2_<rounding>): Macroize insn from
6559 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
6560 (frndintxf2_<rounding>_i387): Macroize insn from
6561 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
6563 2012-06-19 Richard Guenther <rguenther@suse.de>
6565 * tree-vrp.c (union_ranges): New function.
6566 (vrp_meet_1): Use union_ranges.
6567 (vrp_meet): Dump what we union and call vrp_meet_1.
6569 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
6571 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
6572 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
6573 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
6574 (attr write_conflict, attr core_cycles): Update.
6575 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
6577 2012-06-19 Richard Guenther <rguenther@suse.de>
6579 * tree-vrp.c (intersect_ranges): Handle more cases.
6580 (vrp_intersect_ranges): Dump what we intersect and call ...
6581 (vrp_intersect_ranges_1): ... this.
6583 2012-06-19 Richard Guenther <rguenther@suse.de>
6585 PR tree-optimization/53708
6586 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
6587 user-supplied alignment and alignment of decls with the used
6590 2012-06-18 Lawrence Crowl <crowl@google.com>
6592 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
6593 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
6594 (TV_PHASE_STREAM_IN): New.
6595 (TV_PHASE_STREAM_OUT): New.
6596 * timevar.c (validate_phases): New.
6597 (timevar_print): Call validate_phases.
6598 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
6599 to TV_PHASE_OPT_GEN.
6600 * langhooks.c (write_global_declarations): Rename use of
6601 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
6602 TV_PHASE_CHECK_DBGINFO.
6603 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
6604 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
6605 lang_hooks.decls.final_write_globals.
6607 2012-06-18 David Edelshn <dje.gcc@gmail.com>
6609 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
6611 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
6614 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
6615 (*sse4_2_pcmpistr_unaligned): New.
6617 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6618 Sameera Deshpande <sameera.deshpande@arm.com>
6619 Greta Yorsh <greta.yorsh@arm.com>
6621 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
6622 * config/arm/arm.c (print_multi_reg): Remove.
6623 (vfp_output_fldmd): Likewise.
6624 (arm_output_epilogue): Likewise.
6625 * config/arm/arm.md (epilogue_insns): Update condition and code.
6627 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6628 Sameera Deshpande <sameera.deshpande@arm.com>
6629 Greta Yorsh <greta.yorsh@arm.com>
6631 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
6632 * config/arm/arm.c (thumb2_expand_return): New function.
6633 * config/arm/arm.md (return): Update condition and code.
6635 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6636 Sameera Deshpande <sameera.deshpande@arm.com>
6637 Greta Yorsh <greta.yorsh@arm.com>
6639 * config/arm/arm-protos.h (output_return_instruction): New parameter
6640 and int to bool change of parameter types.
6641 * config/arm/arm.c (output_return_instruction): Likewise.
6642 * config/arm/arm.md (arm_simple_return): New pattern.
6643 (arm_return, cond_return, cond_return_inverted): Add new arguments.
6644 * config/arm/thumb2.md (thumb2_return): Update condition and code.
6646 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6647 Sameera Deshpande <sameera.deshpande@arm.com>
6648 Greta Yorsh <greta.yorsh@arm.com>
6650 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
6651 * config/arm/arm.c (arm_expand_epilogue): New function.
6652 * config/arm/arm.md (epilogue): Update condition and code.
6653 (sibcall_epilogue): Likewise.
6655 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6656 Sameera Deshpande <sameera.deshpande@arm.com>
6657 Greta Yorsh <greta.yorsh@arm.com>
6659 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
6660 * config/arm/arm.md (arm_addsi3) Add an alternative.
6662 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6663 Sameera Deshpande <sameera.deshpande@arm.com>
6664 Greta Yorsh <greta.yorsh@arm.com>
6666 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
6667 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
6668 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
6670 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6671 Sameera Deshpande <sameera.deshpande@arm.com>
6672 Greta Yorsh <greta.yorsh@arm.com>
6674 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
6675 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
6676 (pop_multiple_with_return, ldr_with_return) Likewise.
6677 * config/arm/predicates.md (pop_multiple_return) New special predicate.
6678 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
6679 * config/arm/arm.c (arm_output_multireg_pop) New function.
6680 (arm_emit_multi_reg_pop): New function.
6682 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
6684 * config/arm/arm.c (ldm_stm_operation_p): Require SP
6685 as base register for loads if SP is in the register list.
6687 2012-06-18 Richard Guenther <rguenther@suse.de>
6689 PR tree-optimization/53693
6690 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
6691 Reject operands with more than one use.
6693 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
6695 PR tree-optimization/53703
6696 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
6697 correctly set bb_for_def[12].
6699 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
6701 * config/vax/vax.h (VMS_TARGET): Remove.
6703 2012-06-18 Richard Guenther <rguenther@suse.de>
6705 * tree-vrp.c (extract_range_from_assert): Split out range
6707 (intersect_ranges): New function.
6708 (vrp_intersect_ranges): Likewise.
6710 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6712 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
6715 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
6717 * doc/md.texi: Document int iterators.
6718 * read-rtl.c (ints): New iterator group.
6719 (find_int): Int iterator group callback.
6720 (apply_int_iterator): Likewise.
6721 (apply_iterators): Traverse int iterator table and add all the used
6723 (initialize_iterators): Initialize data structures and callbacks for
6725 (read_rtx): Parse and read mappings for int iterators.
6726 (read_rtx_code): Record int iterator usage.
6728 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
6731 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
6732 performing an addition.
6734 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6736 * output.h (split_double): Move prototype to rtl.h.
6737 (constructor_static_from_elts_p): Move prototype to tree.c.
6738 * rtl.h (split_double): Moved here from output.h.
6739 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
6740 * final.c (split_double): Move from here ...
6741 * rtlanal.c (split_double): ... to here.
6742 * expr.c: Do not include output.h.
6744 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6746 * cfglayout.h: Remove.
6747 * cfglayout.c: Remove.
6748 * function.h (struct function): Remove x_last_location field.
6749 * function.c: Do not include cfglayout.h.
6750 (expand_function_start): Do not call no-op force_next_line_note.
6751 (expand_function_end): Likewise.
6752 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
6753 (unlink_insn_chain): Moved here from cfglayout.c.
6754 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
6755 into_cfg_layout_mode, outof_cfg_layout_mode,
6756 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
6757 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
6758 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
6759 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
6760 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
6761 cfg_layout_finalize): Likewise.
6762 (rtl_can_remove_branch_p): Likewise.
6763 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
6764 (duplicate_insn_chain): Likewise.
6765 (force_next_line_note): Remove prototype.
6766 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
6767 (last_location): Remove #define to emit.x_last_location.
6768 (force_next_line_note): Remove no-op function.
6769 (init_emit): Don't set x_last_location.
6770 (block_locators_locs, block_locators_blocks, locations_locators_locs,
6771 locations_locators_vals, prologue_locator, epilogue_locator,
6772 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6773 Move POD to here from cfglayout.c.
6774 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
6775 set_curr_insn_source_location, get_curr_insn_source_location,
6776 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
6777 locator_scope, insn_scope, locator_location, locator_line, insn_line,
6778 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
6779 * cfghooks.h: Remove double-include protection.
6780 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
6781 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
6782 * final.c: Do not include cfglayout.h.
6783 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
6784 (reemit_insn_block_notes): Likewise. Make static.
6785 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
6786 operation_could_trap_p, tree_could_throw_p): Move from here...
6787 * tree.h: ... to here.
6788 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
6789 * profile.c: Do not include cfghooks.h.
6790 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
6791 * modulo-sched.c: Likewise.
6792 * loop-unswitch.c: Do not include cfglayout.h.
6793 * sched-ebb.c: Likewise.
6794 * tracer.c: Likewise.
6796 * tree-vect-loop-manip.c: Likewise.
6797 * loop-init.c: Likewise.
6798 * dwarf2out.c: Likewise.
6799 * hw-doloop.c: Likewise.
6800 * loop-unroll.c: Likewise.
6801 * cfgcleanup.c: Likewise.
6802 * bb-reorder.c: Likewise.
6803 * sched-rgn.c: Likewise.
6804 * tree-cfg.c: Likewise.
6805 * config/alpha/alpha.c: Likewise.
6806 * config/spu/spu.c: Likewise.
6807 * config/sparc/sparc.c: Likewise.
6808 * config/sh/sh.c: Likewise.
6809 * config/c6x/c6x.c: Likewise.
6810 * config/ia64/ia64.c: Likewise.
6811 * config/rs6000/rs6000.c: Likewise.
6812 * config/score/score.c: Likewise.
6813 * config/mips/mips.c: Likewise.
6814 * config/bfin/bfin.c: Likewise.
6815 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
6816 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
6817 * config/spu/t-spu-elf (spu.o: $): Likewise.
6818 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
6820 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6822 * cfgloop.h: Do not include rtl.h.
6823 (enum iv_extend_code): New.
6824 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
6825 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
6826 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
6827 an IV_EXTEND_CODE to an RTX_CODE.
6828 (dump_iv_info): Update for rtx_iv field type change.
6829 (iv_constant): Likewise.
6830 (iv_subreg): Likewise.
6831 (iv_extend): Likewise.
6834 (iv_mult): Likewise.
6835 (iv_shift): Likewise.
6836 (get_biv_step_1): Likewise.
6837 (get_biv_step): Likewise.
6838 (iv_analyze_biv): Likewise.
6839 (get_iv_value): Likewise.
6840 (shorten_into_mode): Likewise.
6841 (canonicalize_iv_subregs): Likewise.
6842 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
6843 of MAY_HAVE_DEBUG_INSNS.
6844 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
6845 * tree-ssa-loop-prefetch.c: Likewise.
6847 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6849 * expmed.c (ceil_log2): Move from here...
6850 * hwint.c: ... to here for older GCCs...
6851 * hwint.h: ... and here for newer GCCs.
6852 * rtl.h (ceil_log2): Remove prototype.
6854 * tree-phinodes.c: Do not include rtl.h.
6855 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
6857 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6859 * config/cris/cris.h (TARGET_ELF): Remove.
6860 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
6861 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
6862 (LOCAL_LABEL_PREFIX): Likewise.
6863 * config/cris/cris.c (cris_target_asm_named_section): Remove.
6864 (cris_option_override): Simpify using TARGET_ELF==1.
6865 (cris_file_start): Likewise.
6866 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
6868 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
6870 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
6872 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
6875 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
6877 2012-06-15 Easwaran Raman <eraman@google.com>
6879 * passes.c (init_optimization_passes): Remove pass_call_cdce
6880 from its current position and insert after pass_dce.
6882 2012-06-15 Walter Lee <walt@tilera.com>
6884 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
6886 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
6888 * arm.c (note_invalid_constants): Don't return a result.
6889 (arm_memory_load_p): Delete function.
6890 (arm_const_double_rtx): Delete iterator variable i;
6891 (fp_immediate_constant): Likewise.
6892 (fp_const_from_val): Likewise.
6894 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
6896 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
6899 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
6900 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
6902 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
6904 * config/avr/avr.c (avr_default_expand_builtin): New function.
6905 (avr_expand_builtin): Use it.
6906 (avr_expand_unop_builtin): Remove.
6907 (avr_expand_binop_builtin): Remove.
6908 (avr_expand_triop_builtin): Remove.
6910 2012-06-15 Michael Matz <matz@suse.de>
6913 * cfgexpand.c (add_alias_set_conflicts): Remove.
6914 (expand_used_vars): Don't call it.
6915 (aggregate_contains_union_type): Remove.
6916 * function.c (n_temp_slots_in_use): New static data.
6917 (make_slot_available, assign_stack_temp_for_type): Update it.
6918 (init_temp_slots): Zero it.
6919 (remove_unused_temp_slot_addresses): Use it for quicker removal.
6920 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
6922 2012-06-15 Michael Matz <matz@suse.de>
6924 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
6925 argument, don't emit assign statement if value is directly usable.
6926 (gimplify_expr): Adjust.
6928 2012-06-15 Michael Matz <matz@suse.de>
6930 * gimplify.c (gimplify_modify_expr): Fold generated statements.
6931 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
6933 2012-06-15 Richard Guenther <rguenther@suse.de>
6935 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
6936 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
6937 we assert for in set_value_range to VR_VARYING.
6939 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
6941 * arm.md (addsf3, adddf3): Use s_register_operand.
6942 (subsf3, subdf3): Likewise.
6943 (mulsf3, muldf3): Likewise.
6944 (difsf3, divdf3): Likewise.
6945 (movsfcc, movdfcc): Likewise.
6946 * predicates.md (f_register_operand): Delete.
6947 (arm_float_rhs_operand): Delete.
6948 (arm_float_add_operand): Delete.
6949 (arm_float_compare_operand): Use s_register_operand when
6951 (cirrus_register_operand): Delete.
6952 (cirrus_fp_register): Delete.
6953 (cirrus_shift_const): Delete.
6954 (cmpdi_operand): Remove Maverick support.
6955 * constraints.md (f, v, H): Delete constraints.
6956 (G): Update documentation.
6957 * arm.c (fp_consts_inited): Convert to bool.
6958 (strings_fp): Delete.
6959 (values_fp): Delete.
6960 (value_fp0): New variable.
6961 (init_fp_table): Simplify logic.
6962 (arm_const_double_rtx): Likewise.
6963 (fp_immediate_constant): Likewise.
6964 (fp_const_from_val): Likewise.
6965 (neg_const_double_rtx_ok_for_fpa): Delete.
6966 * doc/md.texi (ARM constraints): Update documentation.
6968 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
6970 PR tree-optimization/53636
6971 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
6972 stride when doing basic-block vectorization.
6974 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6976 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
6979 2012-06-15 Jakub Jelinek <jakub@redhat.com>
6981 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
6982 allocate and free bbs array for the SLP case.
6984 PR tree-optimization/51581
6985 * expr.h (choose_multiplier): New prototype.
6986 * expmed.c (choose_multiplier): No longer static.
6987 Change multiplier_ptr from rtx * to UHWI *.
6988 (expand_divmod): Adjust callers.
6989 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
6990 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
6991 argument to new_stmt_vec_info. Attempt to optimize also divisions
6992 by non-pow2 constants if integer vector division isn't supported.
6993 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
6994 don't look at pattern stmts and sequences.
6996 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
6999 * common.opt (-fdelete-dead-exceptions): New switch.
7000 * doc/invoke.texi (Code Gen Options): Document it.
7001 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
7002 insn_could_throw_p predicate. Do not skip an insn that could throw
7003 if dead exceptions can be deleted.
7004 (insn_live_p): Likewise, do not return true in that case.
7005 * dce.c (can_alter_cfg): New flag.
7006 (deletable_insn_p): Do not return false for an insn that can throw if
7007 the CFG can be altered and dead exceptions can be deleted.
7008 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
7009 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
7010 predicate. Do not preserve an insn that could throw if dead exceptions
7012 * function.h (struct function): Add can_delete_dead_exceptions flag.
7013 * function.c (allocate_struct_function): Set it.
7014 * lto-streamer-in.c (input_struct_function_base): Stream it.
7015 * lto-streamer-out.c (input_struct_function_base): Likewise.
7016 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
7017 statement that could throw as necessary if dead exceptions can be
7020 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
7022 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
7024 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
7027 * config/sh/sh.md: Add peephole for swapbsi2.
7028 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
7030 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
7032 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
7033 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
7035 2012-06-14 Jakub Jelinek <jakub@redhat.com>
7038 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
7040 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
7042 * arm.c (arm_cirrus_insn_p): Delete.
7043 (cirrus_reorg): Delete.
7044 (arm_reorg): Don't call cirrus_reorg.
7045 (arm_final_prescan_insn_p): Don't check for cirrus insns.
7046 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
7047 (adddi3, subdi3): Remove Maverick support.
7048 (arm_adddi3): Likewise.
7049 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
7050 (addsf3, adddf3): Likewise.
7051 (subsf3, subdf3): Likewise.
7052 (mulsf3, muldf3): Likewise.
7053 (ashldi3, ashrdi3, lshrdi3): Likewise.
7054 (floatsisf2, floatsidf2): Likewise.
7055 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
7056 (arm_movdi, thumb1_movdi_insn): Likewise.
7057 (arm_cmpdi_insn): Likewise.
7058 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
7059 (cirrus.md): Don't include.
7060 * cirrus.md: Delete file.
7061 * t-arm (MD_INCLUDES): Remove cirrus.md.
7063 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
7065 * dwarf2out.c (function_possibly_abstracted_p): New static function.
7066 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
7067 cgraph_function_possibly_inlined_p.
7068 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
7069 (process_scope_var): Do not emit concrete instances of abstracted
7070 nested functions from here.
7071 (gen_decl_die): Emit the abstract instance if the function is possibly
7072 abstracted and not only possibly inlined.
7073 (dwarf2out_finish): Find the first non-abstract parent instance and
7074 attach concrete instances on the limbo list to it.
7076 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
7078 * arm.md (divsf3, divdf3): Remove FPA support.
7079 (negsf2, negdf2): Likewise.
7080 (sqrtsf2, sqrtdf2): Likewise.
7081 (movdfcc): Likewise.
7082 (modsf3, moddf3, movxf): Delete.
7083 (push_fp_multi): Delete.
7084 (fpa.md): Don't include it.
7085 * fpa.md: Delete file.
7086 * t-arm (MD_INCLUDES): Remove fpa.md.
7088 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
7090 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
7091 (cost_for_stmt): Remove decl.
7092 (vect_get_single_scalar_iteration_cost): Correct typo in name.
7093 * tree-vect-loop.c (vect_get_cost): Remove.
7094 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
7095 vect_get_stmt_cost rather than vect_get_cost.
7096 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
7098 (vect_estimate_min_profitable_iters): Correct typo in call to
7099 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
7101 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
7103 (vect_model_induction_cost): Likewise.
7104 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
7105 typo in call to vect_get_single_scalar_iteration_cost.
7106 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
7107 (cost_for_stmt): Remove unnecessary function.
7108 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
7110 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
7112 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
7113 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
7114 * arm-tables.opt: Regenerated.
7115 * doc/invoke.texi: Remove references to deleted options.
7117 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
7119 * config/h8300/genmova.sh: Modified to add offset bits of
7120 mova/Sz assembly instruction for memory access.
7121 * config/h8300/h8300.c: Likewise.
7122 * config/h8300/mova.md: Likewise.
7124 2012-06-12 Christian Bruel <christian.bruel@st.com>
7127 * config/sh/sh.c (sh_option_override): Don't force
7128 flag_omit_frame_pointer and maccumulate_outgoing_args.
7129 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
7131 2012-06-14 Richard Guenther <rguenther@suse.de>
7133 * tree-vrp.c (VR_INITIALIZER): New define.
7134 (ranges_from_anti_range): New function.
7135 (extract_range_from_binary_expr_1): Decompose operations on
7136 VR_ANTI_RANGEs to operations on VR_RANGE.
7137 (extract_range_from_unary_expr_1): Likewise.
7138 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
7139 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
7140 extract_range_from_cond_expr, adjust_range_with_scev,
7141 vrp_visit_assignment_or_call, vrp_visit_phi_node,
7142 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
7144 2012-06-13 Richard Henderson <rth@redhat.com>
7146 * hwint.h (HOST_WIDEST_INT_C): New.
7147 (HOST_WIDE_INT_C): New.
7148 (HOST_WIDE_INT_1): Use it.
7149 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
7151 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7154 * var-tracking.c: Include alias.h.
7155 (overlapping_mems): New struct.
7156 (drop_overlapping_mem_locs): New.
7157 (clobber_overlapping_mems): New.
7158 (var_mem_delete_and_set, var_mem_delete): Call it.
7159 (val_bind): Likewise, but only if modified.
7160 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
7161 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
7163 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7166 * var-tracking.c (loc_exp_dep_pool): New.
7167 (vt_emit_notes): Create and release the pool.
7168 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
7169 (emit_notes_in_bb): Likewise.
7170 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
7171 (notify_dependents_of_changed_value): Likewise.
7172 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
7173 variables don't have a VAR_LOC_DEP_LST.
7174 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
7175 VALUEs or MEMs of VALUEs.
7177 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7181 * dce.c (word_dce_process_block): Insert debug temps only if the
7183 (dce_process_block): Likewise, and if debug.used is not empty,
7184 and only after iterating over all DEFs that might mark the insn.
7186 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7188 * common.opt (ftree-coalesce-inlined-vars): New.
7189 (ftree-coalesce-vars): New.
7190 * doc/invoke.texi: Document them.
7191 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7194 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
7196 * read-rtl.c (mapping): Remove index field. Add current_value field.
7197 Define heap vectors.
7198 (iterator_group): Fix long line. Remove num_builtins field and
7199 uses_iterator fields. Make apply_iterator take a void * parameter.
7200 (iterator_use, atttribute_use): New structures.
7201 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
7202 (current_iterators, iterator_uses, attribute_uses): New variables.
7203 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
7204 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
7205 (map_attr_string, apply_iterator_to_string): Remove iterator
7206 and value parameters. Look through all current iterator values
7207 for a matching attribute.
7208 (mode_attr_index, apply_mode_maps): Delete.
7209 (apply_iterator_to_rtx): Replace with...
7210 (copy_rtx_for_iterators): ...this new function.
7211 (uses_iterator_p, apply_iterator_traverse): Delete.
7212 (apply_attribute_uses, add_current_iterators, apply_iterators): New
7214 (add_mapping): Remove index field. Set current_value field.
7215 (initialize_iterators): Don't set num_builtins and uses_iterator_p
7217 (find_iterator): Delete.
7218 (record_iterator_use, record_attribute_use): New functions.
7219 (record_potential_iterator_use): New function.
7220 (check_code_iterator): Remove handling of bellwether codes.
7221 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
7222 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
7223 parameter. Use the first code iterator value instead of the
7224 bellwether_codes array. Use record_potential_iterator_use for modes.
7226 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
7229 * config/sh/sh.md (bswapsi2): New expander.
7230 (swapbsi2): New insn.
7232 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
7235 * config/i386/i386.c (ix86_tune_cost): New variable.
7236 (ix86_option_override_internal): Set ix86_tune_cost. Use
7237 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
7238 l1_cache_size and l2_cache_size.
7240 2012-06-13 Richard Guenther <rguenther@suse.de>
7242 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
7243 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
7244 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
7245 VR_ANTI_RANGE with VR_ANTI_RANGE.
7247 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
7249 * config.gcc (unsupported): Move obsoleted FPA-based configurations
7251 (obsolete): ... here.
7252 (arm*-*-freebsd*): Remove.
7253 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
7254 (arm*-*-uclinux*): Likewise.
7255 (arm*-*-ecos-elf): Remove.
7256 (arm*-*-rtems*): Remove.
7257 (arm*-*-elf): Remove.
7258 (arm*-wince-pe*): Remove.
7259 (arm, --with-fpu): Remove support for fpa and Maverick variants.
7260 * arm/ecos-elf.h: Delete.
7261 * arm/t-strongarm-elf: Delete.
7262 * arm/rtems-elf.h: Delete.
7263 * arm/wince-pe.h: Delete.
7266 * arm/t-wince-pe: Delete.
7268 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
7270 PR tree-optimization/53647
7271 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
7272 targets with no defined cache line size.
7274 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
7276 * targhooks.c (default_builtin_vectorized_conversion): Handle
7277 vec_construct, using vectype to base cost on subparts.
7278 * target.h (enum vect_cost_for_stmt): Add vec_construct.
7279 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
7280 instead of scalar_to-vec.
7281 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
7282 vec_construct in same way as default for now.
7283 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7284 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7285 Handle vec_construct, including special case for 32-bit loads.
7287 2012-06-13 Xinyu Qi <xyqi@marvell.com>
7289 * config/arm/arm.c (FL_IWMMXT2): New define.
7290 (arm_arch_iwmmxt2): New variable.
7291 (arm_option_override): Enable use of iWMMXt with VFP.
7292 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
7293 Thumb mode. Set arm_arch_iwmmxt2.
7294 (arm_expand_binop_builtin): Accept VOIDmode op.
7295 (enum arm_builtins): Revise built-in fcode.
7296 (IWMMXT2_BUILTIN): New define.
7297 (IWMMXT2_BUILTIN2): Likewise.
7298 (iwmmx2_mbuiltin): Likewise.
7299 (builtin_description bdesc_2arg): Revise built in declaration.
7300 (builtin_description bdesc_1arg): Likewise.
7301 (arm_init_iwmmxt_builtins): Revise built in initialization.
7302 (arm_expand_builtin): Revise built in expansion.
7303 (arm_output_iwmmxt_shift_immediate): New function.
7304 (arm_output_iwmmxt_tinsr): Likewise.
7305 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
7306 (arm_output_iwmmxt_tinsr): Likewise.
7307 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
7308 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
7309 (rorv4hi3, rorv2si3, rordi3): Likewise.
7310 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
7311 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
7312 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
7313 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
7314 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
7315 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
7316 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
7317 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
7318 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
7319 (ror<mode>3, ror<mode>3_di): Likewise.
7320 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
7321 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
7322 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
7323 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
7324 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
7325 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
7326 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
7327 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
7328 (All instruction patterns): Add wtype attribute.
7329 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
7330 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
7331 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
7332 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
7333 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
7334 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
7335 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
7336 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
7337 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
7338 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
7339 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
7340 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
7341 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
7342 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
7343 (iwmmxt2.md): Include.
7344 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
7345 (TARGET_IWMMXT2): New define.
7346 (TARGET_REALLY_IWMMXT2): Likewise.
7347 (arm_arch_iwmmxt2): Declare.
7348 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
7349 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
7350 Use C name-mangling for intrinsics.
7352 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
7353 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
7354 (_m_from_int): Likewise.
7355 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
7356 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
7357 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
7358 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
7359 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
7360 (_mm_tbcst_pi32): Likewise.
7361 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
7362 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
7363 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
7364 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
7365 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
7366 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
7367 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
7368 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
7369 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
7370 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
7371 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
7372 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
7373 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
7374 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
7375 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
7376 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
7377 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
7378 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
7379 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
7380 (_m_to_int): New define.
7381 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
7382 * config/arm/arm-arches.def (iwmmxt2): Likewise.
7383 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
7385 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
7386 (arch): Add "iwmmxt2".
7387 (arch_enabled): Handle "iwmmxt2".
7388 (wtype): New attribute.
7389 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
7390 (UNSPEC_WALIGNI): New unspec.
7391 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
7392 * config/arm/iterators.md (VMMX2): New mode_iterator.
7393 * config/arm/marvell-f-iwmmxt.md: New file.
7394 * config/arm/iwmmxt2.md: New file.
7396 2012-06-12 Jakub Jelinek <jakub@redhat.com>
7401 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
7402 if type isn't complete.
7404 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
7406 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
7408 2012-06-12 Richard Henderson <rth@redhat.com>
7410 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
7411 iterator instead of INT.
7413 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
7415 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
7416 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
7418 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
7419 (tree_ssa_phiopt): Call gate_hoist_loads.
7420 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
7421 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
7422 hoist_adjacent_loads.
7423 (local_mem_dependence): New function.
7424 (hoist_adjacent_loads): Likewise.
7425 (gate_hoist_loads): Likewise.
7426 * common.opt (fhoist-adjacent-loads): New switch.
7427 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
7429 2012-06-12 Michael Matz <matz@suse.de>
7431 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
7432 (nonoverlapping_memrefs_p): Don't call it here ...
7433 (true_dependence_1): ... but here.
7435 2012-06-12 Richard Guenther <rguenther@suse.de>
7437 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
7438 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
7439 and MEM_SIZE only refines it. Reflect that and be less conservative
7440 if either of the latter is not known.
7442 2012-06-12 Jakub Jelinek <jakub@redhat.com>
7444 PR rtl-optimization/53589
7445 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
7446 discovery even when e->dest != target. If any LABEL_REF points
7447 to e->dest label, redirect it to target's label.
7449 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
7451 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
7452 condition for generating REG_FRAME_RELATED_EXPR note.
7453 (pop): Add code for generating REG_CFA_RESTORE,
7454 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
7455 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
7456 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
7458 2012-06-11 Richard Henderson <rth@redhat.com>
7460 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
7461 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
7463 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
7465 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
7467 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
7468 Mention that this hook needs to be defined for native TLS.
7469 * doc/tm.texi: Regenerate.
7471 2012-06-11 Mike Stump <mikestump@comcast.net>
7473 * emit-rtl.c (init_emit_once): Iterate through the
7474 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
7475 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
7476 all the MIN_MODE_PARTIAL_INT modes anymore.
7478 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7480 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
7482 2012-06-11 Roland McGrath <mcgrathr@google.com>
7484 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
7485 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
7486 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
7489 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
7492 * config/sh/sh.md (fmasf4): New expander.
7493 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
7494 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
7495 * config/sh/sh.opt (mfused-madd): Remove.
7496 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
7497 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
7498 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
7500 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
7503 2012-06-11 Richard Henderson <rth@redhat.com>
7505 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
7507 2012-06-11 Richard Guenther <rguenther@suse.de>
7510 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
7511 replace it with the first non-BLOCK context.
7513 2012-06-11 Richard Guenther <rguenther@suse.de>
7515 * alias.c (aliases_everything_p): Remove.
7516 (DIFFERENT_ALIAS_SETS_P): Likewise.
7517 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
7518 Do not use aliases_everything_p or special-case ANDs. Do not
7519 special-case BLKmode moves.
7520 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
7523 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
7525 Fix CRIS build errors with --enable-build-with-cxx.
7526 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
7527 variable "and" to "andop".
7528 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
7529 temporary variable for memory model, passing C++-type-correct
7530 parameter type to expand_mem_thread_fence.
7531 ("atomic_compare_and_swap<mode>"): Ditto.
7533 2012-06-09 Richard Henderson <rth@redhat.com>
7536 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
7537 (pass_jump): Rename from pass_jump2.
7538 (execute_jump2, pass_jump2): New.
7539 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
7540 perform cfg cleanup here. Move the test of PUSH_ROUNDING
7541 and ACCUMULATE_OUTGOING_ARGS test...
7542 (gate_handle_stack_adjustments): ... here.
7543 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
7544 Place new pass_jump2 after pass_stack_adjustments.
7545 * tree-pass.h (pass_jump): Declare.
7547 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
7549 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
7552 2012-06-08 Richard Henderson <rth@redhat.com>
7555 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
7556 note to a clobber insn when no other insn is available.
7558 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
7560 * config/avr/avr.c (avr_case_values_threshold): Return 7.
7562 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
7564 * genhooks.c (main): Set progname.
7565 (emit_documentation): Remove variable found_start, always bail out
7566 when a place is missing.
7567 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
7569 2012-06-07 Jakub Jelinek <jakub@redhat.com>
7572 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
7573 call walk_gimple_seq_mod instead of walk_gimple_seq.
7574 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
7575 scan_omp_for, scan_omp_sections, scan_omp_single,
7576 execute_lower_omp): Adjust callers.
7577 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
7578 returns false, replace stmt with GIMPLE_NOP.
7579 (check_omp_nesting_restrictions): Instead of issuing warnings,
7580 issue errors and return false if any errors were reported.
7582 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7584 * doc/invoke.texi (fconserve-space): Remove documentation.
7586 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
7588 * config/rs6000/rs6000-tables.opt: Regenerated.
7590 2012-06-06 Richard Guenther <rguenther@suse.de>
7592 PR tree-optimization/53081
7593 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
7594 (adjacent_dr_p): ... this and make it work for reads, too.
7595 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
7596 (struct partition_s): Change main_stmt to main_dr, add
7597 secondary_dr member.
7598 (build_size_arg_loc): Change to date data-reference and not
7600 (build_addr_arg_loc): New function split out from ...
7601 (generate_memset_builtin): ... here. Use it and simplify.
7602 (generate_memcpy_builtin): New function.
7603 (generate_code_for_partition): Adjust.
7604 (classify_partition): Streamline pattern detection. Detect memcpy.
7605 (ldist_gen): Adjust.
7606 (tree_loop_distribution): Adjust seed statements for memcpy
7609 2012-06-06 Matt Turner <mattst88@gmail.com>
7611 * config/arm/mmintrin.h (_mm_empty): New.
7614 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
7616 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
7617 * common.opt (fsched-pressure-algorithm=): Remove.
7618 * flag-types.h (sched_pressure_algorithm): Move to...
7619 * sched-int.h (sched_pressure_algorithm): ...here.
7620 * params.def (sched-pressure-algorithm): New param.
7621 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
7622 * common/config/s390/s390-common.c (s390_option_optimization_table):
7623 Remove OPT_fsched_pressure_algorithm_ entry.
7624 * config/s390/s390.c (s390_option_override): Set a default value for
7625 PARAM_SCHED_PRESSURE_ALGORITHM.
7627 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7630 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
7631 doing an unsigned compare, make sure the second argument is not a
7633 (rs6000_emit_cmove): Don't allow floating point comparisons when
7634 generating ISEL moves.
7636 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
7638 * config/rs6000/e5500.md: New file.
7639 * config/rs6000/e6500.md: New file.
7640 * config/rs6000/rs6000.c (processor_costs): Add new costs for
7642 (rs6000_option_override_internal): Altivec and Spe options not
7643 allowed with e5500. Spe options not allowed with e6500. Increase
7644 move inline limit for e5500 and e6500. Disable string instructions
7645 for e5500 and e6500. Enable branch targets alignment for e5500 and
7646 e6500. Initialize rs6000_cost for e5500 and e6500.
7647 (rs6000_adjust_cost): Add extra scheduling cycles between compare
7648 and brnach for e5500 and e6500.
7649 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
7650 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
7652 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
7653 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
7655 Include e5500.md and e6500.md.
7656 * config/rs6000/rs6000-opt.h (processor_type): Add
7657 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
7658 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
7659 (powerpc*-*-*): Add new cores e5500, e6500.
7660 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
7662 2012-06-05 Richard Guenther <rguenther@suse.de>
7664 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
7666 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
7669 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
7670 is used for x86_64-*-*.
7672 2012-06-05 Richard Guenther <rguenther@suse.de>
7674 PR tree-optimization/30442
7675 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
7676 vectorization stop analysis at the first stmt we cannot compute
7677 a data-reference for instead of giving up completely.
7679 2012-06-05 Richard Guenther <rguenther@suse.de>
7681 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
7682 (partition_alloc): Initialize it.
7683 (partition_has_writes): New function.
7684 (rdg_flag_uses): Adjust.
7685 (rdg_flag_vertex): Likewise.
7686 (rdg_flag_vertex_and_dependent): Likewise.
7687 (rdg_flag_loop_exits): Likewise.
7688 (build_rdg_partition_for_component): Likewise.
7689 (rdg_build_partitions): Likewise.
7691 2012-06-05 Richard Guenther <rguenther@suse.de>
7693 PR tree-optimization/53081
7694 * tree-loop-distribution.c (generate_memset_builtin): Handle all
7695 kinds of byte-sized stores.
7696 (classify_partition): Likewise.
7697 (tree_loop_distribution): Adjust seed statements used for
7698 !flag_tree_loop_distribution.
7700 2012-06-05 Alan Modra <amodra@gmail.com>
7702 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
7703 (rs6000_emit_prologue): Ensure register used for inline saves
7704 of vector regs is not the static chain register. Revise comment.
7706 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
7708 * doc/md.texi (Standard Pattern Names For Generation): Document
7711 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
7714 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
7716 2012-06-04 Jason Merrill <jason@redhat.com>
7718 * dwarf2out.c (is_unit_die): New.
7719 (copy_declaration_context, copy_ancestor_tree): Use it.
7720 (copy_decls_walk): Likewise.
7722 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
7725 * doc/invoke.texi (Wenum-compare): Update documentation.
7727 2012-06-04 Dodji Seketeli <dodji@redhat.com>
7729 PR preprocessor/53463
7730 * parser.c (cp_parser_assignment_expression): Use the location
7731 for the '=' as the default location for the expression.
7733 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
7736 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
7738 (altivec_stvlxl): Ditto.
7739 (altivec_stvrx): Ditto.
7740 (altivec_stvrxl): Ditto.
7742 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
7744 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
7745 (ira_uniform_class_p): New macro.
7747 * ira.c (setup_uniform_class_p): New function.
7748 (setup_allocno_and_important_classes): Call the function.
7749 (print_unform_and_important_classes): New function.
7750 (print_classes): Rename to print_translated_classes.
7751 (ira_debug_allocno_classes): Add call of
7752 print_unform_and_important_classes.
7754 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
7755 classes instead of pressure classes.
7757 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
7760 * trans-mem.c (expand_block_edges): Do not skip the first
7761 statement when resetting the BB.
7763 2012-06-04 Richard Guenther <rguenther@suse.de>
7765 * tree-data-ref.c (stores_from_loop): Remove.
7766 (stmt_with_adjacent_zero_store_dr_p): Likewise.
7767 (stores_zero_from_loop): Likewise.
7768 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
7769 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
7770 (adjacent_store_dr_p): New function.
7771 * tree-loop-distribution.c (generate_memset_builtin): Pass
7772 the RDG, use the already available data-reference.
7773 (generate_code_for_partition): Pass down RDG.
7774 (classify_partition): Inline parts of the former
7775 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
7776 (ldist_gen): Remember if there was any detected builtin and
7777 do less work if not and flag_tree_loop_distribution is not set.
7778 (tree_loop_distribution): Inline and fuse stores_from_loop
7779 and stores_zero_from_loop here.
7781 2012-06-04 Richard Guenther <rguenther@suse.de>
7784 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
7785 create new assembler names.
7787 2012-06-04 Richard Guenther <rguenther@suse.de>
7789 * tree-data-ref.c (struct rdg_vertex_info): Remove.
7790 (rdg_vertex_for_stmt): Simplify using gimple_uid.
7791 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
7792 hashtable. Record stmt data-references.
7793 (hash_stmt_vertex_info): Remove.
7794 (eq_stmt_vertex_info): Likewise.
7795 (hash_stmt_vertex_del): Likewise.
7796 (build_empty_rdg): Simplify.
7797 (build_rdg): Adjust.
7798 (free_rdg): Likewise.
7799 (ref_base_address): Remove.
7800 (have_similar_memory_accesses): Likewise.
7801 * tree-data-ref.h (create_rdg_vertices): Remove.
7802 (struct rdg_vertex): Add datarefs member.
7803 (RDGV_DATAREFS): New define.
7804 (RDG_DATAREFS): Likewise.
7805 (have_similar_memory_accesses): Remove.
7806 (rdg_has_similar_memory_accesses): Likewise.
7807 * tree-loop-distribution.c (ref_base_address): Re-implement here.
7808 (similar_memory_accesses): Re-implement using existing data-references.
7809 (tree_loop_distribution): Initialize stmt uids for the stmt to
7811 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
7812 access stmt vinfo for stmts in loop.
7814 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
7817 * config/m68k/m68k.md ("tablejump"): Fix check for
7818 CASE_VECTOR_PC_RELATIVE.
7820 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7822 * output.h (merge_weak, assemble_alias,
7823 initializer_constant_valid_p,
7824 initializer_constant_valid_for_bitfield_p): Move protos from here...
7825 * tree.h: ... to here.
7826 * cgraphclones.c: Do not include output.h.
7827 * gimplify.c: Likewise.
7828 * reload.c: Likewise.
7829 * recog.c: Likewise.
7830 * tree-ssa-loop-ivopts.c: Likewise.
7831 * tree-switch-conversion.c: Likewise.
7832 * c-parser.c: Likewise.
7833 * c-typeck.c: Likewise.
7834 * Makefile.in: Fix dependencies.
7836 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
7839 * config/avr/avr-stdint.h: New file.
7840 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
7843 2012-06-04 Jakub Jelinek <jakub@redhat.com>
7845 PR tree-optimization/53550
7846 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
7847 is POINTER_TYPE_P, use sizetype as step type instead of type.
7849 2012-06-04 Richard Guenther <rguenther@suse.de>
7851 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
7852 (ref_base_address_1): Likewise.
7853 (remove_similar_memory_refs): Likewise.
7854 * tree-data-ref.h (remove_similar_memory_refs): Remove.
7855 * tree-loop-distribution.c (classify_partition): Do not classify
7856 as builtin if -ftree-loop-distribute-patterns is not enabled.
7857 (fuse_partitions_with_similar_memory_accesses): Inline ...
7858 (ldist_gen): ... here. Fuse all non-builtin partitions if
7859 -ftree-loop-distribution is not enabled. Properly return
7860 the number of created partitions. Do not update SSA form here but ...
7861 (tree_loop_distribution): ... once here for the whole function.
7862 Only walk innermost loops, constrain loops we consider here
7863 further. Do not call remove_similar_memory_refs.
7864 (distribute_loop): Do not check number of loop nodes here.
7866 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7868 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
7870 2012-06-03 Martin Jambor <mjambor@suse.cz>
7872 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
7873 (ipa_get_jf_known_type_base_type): Likewise.
7874 (ipa_get_jf_known_type_component_type): Likewise.
7875 (ipa_get_jf_constant): Likewise.
7876 (ipa_get_jf_pass_through_formal_id): Likewise.
7877 (ipa_get_jf_pass_through_operation): Likewise.
7878 (ipa_get_jf_ancestor_offset): Likewise.
7879 (ipa_get_jf_ancestor_type): Likewise.
7880 (ipa_get_jf_ancestor_formal_id): Likewise.
7881 (ipa_get_jf_member_ptr_pfn): Likewise.
7882 * ipa-prop.c (ipa_set_jf_known_type): New function.
7883 (ipa_set_jf_constant): Likewise.
7884 (ipa_set_jf_simple_pass_through): Likewise.
7885 (ipa_set_jf_arith_pass_through): Likewise.
7886 (ipa_set_ancestor_jf): Likewise.
7887 (fill_member_ptr_cst_jump_function): Moved up and renamed to
7888 ipa_set_jf_member_ptr_cst.
7889 (detect_type_change_1): Use the new jump function creation functions.
7890 (compute_complex_assign_jump_func): Likewise.
7891 (compute_complex_ancestor_jump_func): Likewise.
7892 (compute_known_type_jump_func): Likewise.
7893 (compute_scalar_jump_functions): Likewise.
7894 (compute_pass_through_member_ptrs): Likewise.
7895 (determine_cst_member_ptr): Likewise.
7896 (combine_known_type_and_ancestor_jfs): Likewise.
7897 (try_make_edge_direct_simple_call): Likewise.
7898 (try_make_edge_direct_virtual_call): Likewise.
7899 (update_indirect_edges_after_inlining): Likewise.
7900 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
7901 access functions. Incorporat NOP_EXPR and BINFO handling from its
7903 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
7904 which was in its callers.
7905 (ipa_value_from_jfunc): Use jump function access functions. Some
7906 functionality moved to functions above.
7907 (propagate_vals_accross_ancestor): Likewise.
7908 (propagate_vals_accross_pass_through): Use jump function access
7910 (propagate_accross_jump_function): Likewise.
7911 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
7913 (inline_merge_summary): Likewise.
7915 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7917 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
7918 * config/pa/pa.c (pa_attr_length_millicode_call): Use
7919 MAX_PCREL17F_OFFSET instead of fixed offset.
7920 (pa_attr_length_call): Likewise.
7921 (pa_attr_length_indirect_call): Likewise.
7923 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
7926 * config/sh/sh.opt (mfsca, mfsrra): New options.
7927 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
7929 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
7930 (sinssf2, cossf2): Fold expanders to ...
7931 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
7932 TARGET_FSCA condition.
7933 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
7935 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
7936 -mno-fsca, -mfsrra, -mno-fsrra.
7938 2012-06-03 Matt Turner <mattst88@gmail.com>
7940 * config/mips/4600.md (r4700_imul_si): New.
7941 (r4700_imul_di): New.
7942 (r4700_fmul_single): New.
7943 (r4700_fmul_double): New.
7944 * config/mips/mips-cpus.def: Add r4700.
7945 * config/mips/mips.c: Likewise.
7946 * config/mips/mips.md: Likewise.
7947 * config/mips/mips-tables.opt: Regenerate.
7949 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
7951 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
7952 new function sparc_initial_elimination_offset.
7953 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
7955 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
7958 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
7960 * expmed.c (expand_mult, choose_multiplier): Change
7961 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
7962 * expr.c (convert_modes): Likewise.
7963 * explow.c (plus_constant): Likewise.
7964 * fixed-value.c (fixed_saturate1, fixed_saturate2)
7965 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
7966 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
7967 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
7968 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
7969 (do_fixed_shift, fixed_convert, fixed_convert)
7970 (fixed_convert_from_int, fixed_convert_from_int)
7971 (fixed_convert_from_real): Likewise.
7972 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
7973 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
7974 * varasm.c (output_constructor_bitfield): Likewise.
7975 * tree-vrp.c (register_edge_assert_for_2): Likewise.
7976 * double-int.c (rshift_double, lshift_double): Likewise.
7977 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
7979 * simplify-rtx.c (mode_signbit_p)
7980 (simplify_const_unary_operation, simplify_binary_operation_1)
7981 (simplify_immed_subreg): Likewise.
7982 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
7983 * tree-vect-generic.c (build_replicated_const): Likewise.
7984 * dbxout.c (stabstr_O): Likewise.
7985 * emit-rtl.c (immed_double_int_const, immed_double_const)
7986 (gen_lowpart_common, init_emit_once): Likewise.
7987 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
7988 (widest_int_cst_value, upper_bound_in_type): Likewise.
7989 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
7990 (fixup_unsigned_type): Likewise.
7991 * real.c (real_to_integer2, real_from_integer): Likewise.
7992 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
7993 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
7995 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
7998 * fold-const.c (fold_binary_loc): Refine previous change.
8000 2012-06-01 Olivier Hainque <hainque@adacore.com>
8002 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
8003 the "do {" part of the do-while(0) loop.
8005 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
8007 * config/i386/i386.c (x86_sched_reorder): New function.
8008 Added new function x86_sched_reorder.
8010 2012-06-01 Richard Guenther <rguenther@suse.de>
8012 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
8014 (classify_partition): Likewise.
8016 2012-06-01 Richard Guenther <rguenther@suse.de>
8018 * tree-loop-distribution.c (enum partition_kind): New enum.
8019 (struct partition_s): Add kind and main_stmt members.
8020 (partition_alloc): Initialize kind to PKIND_NORMAL.
8021 (partition_builtin_p): New function.
8022 (copy_loop_before): Remove failure path and assert instead.
8023 (generate_loops_for_partition): Likewise.
8024 (generate_memset_zero): Fold into ...
8025 (generate_memset_builtin): ... this.
8026 (classify_partition): New function with code from
8027 can_generate_builtin and generate_builtin.
8028 (generate_builtin): Remove.
8029 (can_generate_builtin): Likewise.
8030 (fuse_partitions_with_similar_memory_accesses): Call
8031 partition_builtin_p instead of can_generate_builtin.
8032 (rdg_build_partitions): Do not call
8033 fuse_partitions_with_similar_memory_accesses here...
8034 (ldist_gen): ... but here after classifying all partitions.
8035 Remove failure path of generate_code_for_partition.
8036 (generate_code_for_partition): Generate code according
8037 to partition classification.
8039 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
8040 Jonathan Wakely <jwakely.gcc@gmail.com>
8043 * doc/invoke.texi (Warning Options): Explain purpose and differences
8044 between -Wmissing-prototypes and -Wmissing-declarations.
8046 2012-06-01 Christian Bruel <christian.bruel@st.com>
8048 * gcc.c (save_switch): Add user_p parameter.
8049 (read_specs): Likewise.
8050 (set_specs): Likewise.
8051 (validate_switches): Likewise.
8052 (validate_switches_from_spec): Likewise.
8053 (validate_all_switches): Pass on user_p parameter.
8054 (struct spec_list): Add user_p field.
8055 (struct switchstr): Add known field.
8056 (save_switch): Add known parameter.
8057 (INIT_STATIC_SPEC): Initialize user_p;
8058 (driver_unknown_option_callbac): call save_switch if
8059 OPT_SPECIAL_unknown.
8060 (driver_handle_option): Propagate OPT_specs.
8061 (do_spec_1): Set validated only if known.
8062 (check_live_switch): Likewise.
8063 (validate_switches): Set validated if known or user_spec.
8065 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
8067 Add CRIS atomic patterns for 1, 2, and 4 bytes.
8068 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
8069 * config/cris/cris-protos.h: Declare it.
8070 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
8071 (TARGET_DEFAULT): Add alignment by 32.
8072 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
8073 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
8074 TARGET_CPU_DEFAULT == 32.
8075 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
8076 * config/cris/cris.md: Include sync.md. Avoid allocating specific
8077 numbers by replacing the define_constants for all UNSPECs with the
8078 equivalent define_c_enum construct.
8079 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
8080 * config/cris/sync.md: New file.
8082 2012-05-31 Matt Turner <mattst88@gmail.com>
8084 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
8085 (r4600_imul_di): New.
8086 (r4600_idiv_si): Rename from r4600_idiv.
8087 (r4600_idiv_di): New.
8089 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8091 * output.h (__gcc_host_wide_int__): Move to hwint.h.
8092 (decl_default_tls_model): Move to tree.h
8093 (dump_file): Move to system.h.
8094 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
8095 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
8096 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
8097 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
8098 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
8099 dbxout_stab_value_internal_label,
8100 dbxout_stab_value_internal_label_diff): Move from here ...
8101 * dbxout.h: ... to here.
8102 * system.h (dump_file): Moved here from output.h.
8103 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
8104 * tree.h (decl_default_tls_model): Moved here from output.h.
8105 * varasm.c (default_stabs_asm_out_destructor,
8106 default_stabs_asm_out_constructor): Move from here ...
8107 * dbxout.c: ... to here.
8109 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
8111 * collect2.h (dump_file): Rename to dump_ld_file.
8112 * collect2.c: Likewise.
8113 * tlink.c: Likewise.
8115 * alias.c: Do not include output.h.
8116 * auto-inc-dec.c: Likewise.
8117 * bt-load.c: Likewise.
8118 * caller-save.c: Likewise.
8120 * cfgbuild.c: Likewise.
8121 * cfgcleanup.c: Likewise.
8122 * cfglayout.c: Likewise.
8123 * cfgloop.c: Likewise.
8124 * cfgloopanal.c: Likewise.
8125 * cfgloopmanip.c: Likewise.
8126 * cfgrtl.c: Likewise.
8127 * cgraph.c: Likewise.
8128 * cgraphclones.c: Likewise.
8129 * combine-stack-adj.c: Likewise.
8130 * combine.c: Likewise.
8131 * cprop.c: Likewise.
8133 * cselib.c: Likewise.
8134 * dbgcnt.c: Likewise.
8135 * df-problems.c: Likewise.
8136 * df-scan.c: Likewise.
8137 * dojump.c: Likewise.
8138 * fwprop.c: Likewise.
8140 * graph.c: Likewise.
8141 * haifa-sched.c: Likewise.
8142 * hw-doloop.c: Likewise.
8143 * ipa-inline-transform.c: Likewise.
8144 * ipa-pure-const.c: Likewise.
8145 * ipa-reference.c: Likewise.
8146 * ipa-utils.c: Likewise.
8147 * ira-build.c: Likewise.
8148 * ira-emit.c: Likewise.
8150 * loop-doloop.c: Likewise.
8151 * loop-invariant.c: Likewise.
8152 * loop-iv.c: Likewise.
8153 * loop-unroll.c: Likewise.
8154 * loop-unswitch.c: Likewise.
8155 * lto-cgraph.c: Likewise.
8156 * lto-section-in.c: Likewise.
8157 * lto-streamer-in.c: Likewise.
8159 * mode-switching.c: Likewise.
8160 * postreload-gcse.c: Likewise.
8161 * postreload.c: Likewise.
8162 * predict.c: Likewise.
8163 * profile.c: Likewise.
8165 * reg-stack.c: Likewise.
8166 * regcprop.c: Likewise.
8167 * regmove.c: Likewise.
8168 * regstat.c: Likewise.
8169 * reload1.c: Likewise.
8170 * sched-ebb.c: Likewise.
8171 * sel-sched-dump.c: Likewise.
8172 * simplify-rtx.c: Likewise.
8173 * stor-layout.c: Likewise.
8174 * store-motion.c: Likewise.
8175 * tracer.c: Likewise.
8176 * tree-affine.c: Likewise.
8177 * tree-cfg.c: Likewise.
8178 * tree-cfgcleanup.c: Likewise.
8179 * tree-dfa.c: Likewise.
8180 * tree-into-ssa.c: Likewise.
8181 * tree-nomudflap.c: Likewise.
8182 * tree-optimize.c: Likewise.
8183 * tree-pretty-print.c: Likewise.
8184 * tree-profile.c: Likewise.
8185 * tree-ssa-address.c: Likewise.
8186 * tree-ssa-ccp.c: Likewise.
8187 * tree-ssa-copy.c: Likewise.
8188 * tree-ssa-dom.c: Likewise.
8189 * tree-ssa-loop-ch.c: Likewise.
8190 * tree-ssa-loop-im.c: Likewise.
8191 * tree-ssa-loop-manip.c: Likewise.
8192 * tree-ssa-loop-niter.c: Likewise.
8193 * tree-ssa-loop-prefetch.c: Likewise.
8194 * tree-ssa-loop-unswitch.c: Likewise.
8195 * tree-ssa-loop.c: Likewise.
8196 * tree-ssa-propagate.c: Likewise.
8197 * tree-ssa-structalias.c: Likewise.
8198 * tree-ssa-tail-merge.c: Likewise.
8199 * tree-ssa-threadedge.c: Likewise.
8200 * tree-ssa-threadupdate.c: Likewise.
8201 * tree-ssa-uncprop.c: Likewise.
8202 * tree-ssa-uninit.c: Likewise.
8203 * tree-ssa.c: Likewise.
8204 * value-prof.c: Likewise.
8205 * var-tracking.c: Likewise.
8208 * config/m32r/m32r.c: Include dbxout.h.
8209 * config/pa/pa.c: Likewise.
8210 * config/rs6000/rs6000.c: Likewise.
8212 * Makefile.in: Fix dependencies.
8213 * config/rs6000/t-rs5000: Likewise.
8215 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
8217 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
8218 * gimple.h (block_in_transaction): Check for flag_tm.
8220 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
8222 PR tree-optimization/52558
8223 * cfg.c (alloc_aux_for_edge): Fix comment.
8224 (alloc_aux_for_edge): Remove static.
8225 * basic-block.h (alloc_aux_for_edge): Protoize.
8226 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
8227 (execute_sm_if_changed_flag): New.
8228 (execute_sm_if_changed_flag_set): New.
8229 (execute_sm): Do not generate data races unless requested.
8230 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
8231 (tree_ssa_lim_finalize): Call free_aux_for_edges.
8232 * gimple.h (block_in_transaction): New.
8233 (gimple_in_transaction): Use block_in_transaction.
8235 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8238 * config/avr/avr.opt (-msp8): Document it.
8239 * doc/invoke.texi (AVR Options): Ditto. And document related
8242 2012-05-31 Diego Novillo <dnovillo@google.com>
8244 * configure.ac (CXX_FOR_BUILD): Define and substitute.
8245 (BUILD_CXXFLAGS): Define and substitute.
8246 * Makefile.in (BUILD_CXXFLAGS): Define.
8247 (CXX_FOR_BUILD): Define.
8248 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
8249 (LINKER_FOR_BUILD): Likewise.
8250 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
8251 (BUILD_LINKERFLAGS): Likewise.
8252 * configure: Regenerate.
8254 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8256 * Makefile.in: Fix many dependencies.
8257 * tree-profile.c: Don't include regs.h.
8258 * tree-vectorizer.c: Don't include cfglayout.h.
8259 * tree-vect-stmts.c: Likewise.
8260 * tree-vect-slp.c: Likewise.
8261 * tree-vect-loop.c: Likewise.
8262 * reg-stack.c: Likewise.
8263 * tree-ssa-loop-manip.c: Likewise.
8264 * toplev.c: Likewise.
8265 * varasm.c: Don't include cfglayout.h, basic-block.h,
8266 and tree-iterator.h.
8267 * tree-cfgcleanup.c: Don't include cfglayout.h.
8268 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
8269 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
8270 * cgraphclones.c: Don't include plugin.h.
8272 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8274 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
8275 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
8276 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
8278 2012-05-31 Richard Guenther <rguenther@suse.de>
8280 * tree-loop-distribution.c (struct partition_s): New struct,
8281 typedef and vector type.
8282 (partition_alloc, partition_free): New functions.
8283 (generate_loops_for_partition, generate_builtin,
8284 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
8285 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
8286 build_rdg_partition_for_component, can_generate_builtin,
8287 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
8288 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
8289 number_of_rw_in_partition, partition_contains_all_rw,
8290 ldist_gen): Use partition_t instead of bitmap.
8292 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8294 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
8295 * doc/avr-mmcu.texi: Regenerate.
8297 2012-05-31 Richard Guenther <rguenther@suse.de>
8299 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
8300 Use FOR_EACH_SSA_DEF_OPERAND.
8301 (generate_builtin): Adjust.
8302 (stmt_generated_in_another_partition): Remove.
8303 (add_scalar_computations_to_partition): Likewise.
8304 (rdg_build_partitions): Do not call
8305 add_scalar_computations_to_partition.
8307 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
8309 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
8310 double ints throughout.
8311 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
8312 Check that the position of the field is representable as an integer.
8314 2012-05-31 Richard Guenther <rguenther@suse.de>
8316 * tree-data-ref.c (dr_analyze_innermost): Properly convert
8317 the MEM_REF offset to sizetype.
8319 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8321 * doc/invoke.texi (AVR Options): Fix typos.
8323 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
8325 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
8327 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
8328 non-v32 into --march=v0_v10.
8330 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8332 * ira-int.h (target_ira_int): Rename x_move_cost to
8333 x_ira_register_move_cost, x_may_move_in_cost to
8334 x_ira_may_move_in_cost and x_may_move_out_cost to
8335 x_ira_may_move_out_cost. Delete the old fields with
8336 those names and also x_ira_max_register_move_cost,
8337 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
8338 (move_cost, may_move_in_cost, may_move_out_cost)
8339 (ira_max_register_move_cost, ira_max_may_move_in_cost)
8340 (ira_max_may_move_out_cost): Delete.
8341 * ira.c (init_move_cost): Rename to...
8342 (ira_init_register_move_cost): ...this, deleting the old
8343 function with that name. Apply above variable renamings.
8344 Retain asserts for null fields.
8345 (ira_init_once): Don't initialize register move costs here.
8346 (free_register_move_costs): Apply above variable renamings.
8347 Remove code for deleted fields.
8349 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8351 * ira.c (init_move_cost): Adjust choice of subclasses to match
8352 the current ira_init_register_move_cost choice. Use
8353 ira_class_subset_p instead of reg_class_subset_p.
8354 (ira_init_register_move_cost): Assert that move_cost,
8355 may_move_in_cost and may_move_out_cost already hold the desired
8356 values for their ira_* equivalents. For the latter two,
8357 ignore classes that can't store a register of the given mode.
8359 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8361 * ira.c (setup_allocno_and_important_classes): Use
8362 ira_class_hard_regs_num to check whether a class has any
8363 allocatable registers.
8364 (ira_init_register_move_cost): Likewise.
8366 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8368 * ira.c (init_move_cost): Adjust local variable names to match
8369 file conventions. Use ira_assert instead of gcc_assert.
8371 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8373 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
8374 Move these definitions and associated target_globals fields to...
8375 * ira-int.h: ...here.
8376 * rtl.h (init_move_cost): Delete.
8377 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
8378 * ira.c: ...here, making the latter static.
8380 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8382 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
8383 and ira_register_move_cost instead of init_move_cost and move_cost.
8385 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8387 * ira.h (target_ira): Delete x_ira_available_class_regs.
8388 (ira_available_class_regs): Delete.
8389 * ira.c (setup_available_class_regs): Delete.
8390 (setup_alloc_classes): Don't call it.
8391 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
8392 ira_available_class_regs.
8393 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
8394 (model_spill_cost): Likewise.
8395 * ira-build.c (low_pressure_loop_node_p): Likewise.
8396 * ira-color.c (color_pass): Likewise.
8397 * ira-emit.c (change_loop): Likewise.
8398 * ira-lives.c (inc_register_pressure, dec_register_pressure)
8399 (single_reg_class, ira_implicitly_set_insn_hard_regs)
8400 (process_bb_node_lives): Likewise.
8401 * loop-invariant.c (gain_for_invariant): Likewise.
8403 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8406 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
8407 (pa_section_type_flags): New.
8408 (pa_legitimate_constant_p): Revert previous change.
8410 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
8412 * ira.c (allocate_initial_values): Make static.
8414 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
8416 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
8417 Generate tls_initial_exec_64_sun only when !TARGET_X32.
8419 2012-05-30 Richard Guenther <rguenther@suse.de>
8422 * fold-const.c (fold_binary_loc): Make sure to call
8423 fold_plusminus_mult_expr with the original sign of operands.
8425 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
8427 * Makefile.in: Fix many dependencies.
8428 (DWARF2_H): Depend on dwarf2.def.
8429 (RTL_ERROR_H): Depend on rtl-error.h.
8430 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
8431 all gimple-pretty-print.h and tree-pretty-print.h references.
8433 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
8435 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
8438 2012-05-30 Richard Guenther <rguenther@suse.de>
8441 * tree-emutls.c (gen_emutls_addr): Do not add globals to
8444 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
8446 * explow.c (probe_stack_range): Restore simple control flow and stop
8447 again when the probe cannot be generated if HAVE_check_stack.
8449 2012-05-30 Jakub Jelinek <jakub@redhat.com>
8451 PR rtl-optimization/53519
8452 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
8453 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
8455 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8457 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
8459 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
8462 * doc/tm.texi: Update.
8463 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
8464 * target.def (force_at_comp_dir): New hook.
8465 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
8466 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
8468 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
8470 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
8472 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
8473 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
8475 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
8478 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
8479 flag_unsafe_math_optimizations is set.
8480 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
8481 Update description of -mfused-madd.
8483 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
8486 * config/sh/predicates.md (atomic_arith_operand,
8487 atomic_logical_operand): New predicates.
8488 * config/sh/sh.c (sh_option_override): Check atomic options.
8489 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
8490 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
8491 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
8492 UNSUPPORTED_HARD_ATOMIC_CPU.
8493 * config/sh/sync.md: Update description comments.
8494 (I12): New mode iterator.
8495 (fetchop_predicate, fetchop_constraint): New code attributes.
8496 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
8497 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8498 atomic_fetch_<fetchop_name>si_hard,
8499 atomic_fetch_<fetchop_name><mode>_hard,
8500 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
8501 atomic_<fetchop_name>_fetchsi_hard,
8502 atomic_<fetchop_name>_fetch<mode>_hard,
8503 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
8504 atomic_test_and_set_hard): New insns.
8505 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
8506 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
8507 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
8508 atomic_test_and_set_soft): Use same formatting for the first line of
8509 the asm block as in new insns above.
8510 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
8511 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
8512 atomic_test_and_set): Integrate new *_hard insns into expanders.
8513 * config/sh/sh.opt (mhard-atomic): New option.
8514 * doc/invoke.texi (SH Options): Document it.
8516 2012-05-29 Meador Inge <meadori@codesourcery.com>
8518 * c-decl.c (c_push_function_context): Always create a new language
8520 (c_pop_function_context): Clear the language function created in
8521 c_push_function_context.
8523 2012-05-29 Matt Turner <mattst88@gmail.com>
8525 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
8526 (define_bypass "ev6_fcmov"): New.
8528 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
8530 * integrate.c: Remove.
8531 * integrate.h: Remove.
8532 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
8533 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
8534 * config/rs6000/t-rs6000: Likewise
8535 * config/spu/t-spu-elf: Likewise.
8536 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
8537 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
8538 from integrate.h to here.
8539 (initial_value_entry): New prototype.
8540 * reload.h (allocate_initial_values): Remove prototype.
8541 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
8542 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
8544 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
8545 set_decl_abstract_flags, set_block_abstract_flags): Move from
8546 integrate.c to here, the only user.
8547 * expmed.c (extract_fixed_bit_field): Remove outdated comment
8549 * function.c: Don't include integrate.h.
8550 (struct initial_value_pair, struct initial_value_struct,
8551 get_hard_reg_initial_val, has_hard_reg_initial_val,
8552 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
8553 integrate.c to here.
8554 (initial_value_entry): New function.
8555 * genemit.c (main): Don't print integrate.h include line.
8556 * ira.c: Don't include integrate.h.
8557 (allocate_initial_values): Move from integrate.c to here.
8558 (ira): Update allocate_initial_values call.
8559 * tree-inline.c: Don't include integrate.h.
8560 (function_attribute_inlinable_p): Moved from integrate.c to here.
8561 * cfgexpand.c: Don't include integrate.h.
8562 * except.c: Likewise.
8563 * langhooks.c: Likewise.
8564 * passes.c: Likewise.
8565 * toplev.c: Likewise.
8566 * config/frv/frv.c: Likewise.
8567 * config/pa/pa.c: Likewise.
8568 * config/spu/spu.c: Likewise.
8569 * config/epiphany/epiphany.c: Likewise.
8570 * config/mep/mep.c: Likewise.
8571 * config/score/score.c: Likewise.
8572 * config/picochip/picochip.c: Likewise.
8573 * config/sh/sh.c: Likewise.
8574 * config/alpha/alpha.c: Likewise.
8575 * config/microblaze/microblaze.c: Likewise.
8576 * config/mips/mips.c: Likewise.
8577 * config/v850/v850.c: Likewise.
8578 * config/mmix/mmix.c: Likewise.
8579 * config/bfin/bfin.c: Likewise.
8580 * config/arm/arm.c: Likewise.
8581 * config/s390/s390.c: Likewise.
8582 * config/m32r/m32r.c: Likewise.
8583 * config/rs6000/rs6000.c: Likewise.
8584 * config/c6x/c6x.c: Include function.h instead of integrate.h.
8585 * config/tilegx/tilegx.c: Likewise.
8586 * config/tilepro/tilepro.c: Likewise.
8588 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
8590 * config/avr/t-avr (s-avr-mmcu-texi): Call
8591 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
8593 2012-05-29 Michael Matz <matz@suse.de>
8595 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
8596 assign_temp): Remove 'keep' argument.
8597 (mark_temp_addr_taken): Remove prototype.
8598 * tree.h (expand_decl): Remove prototype.
8599 * function.c (struct temp_slot): Remove addr_taken and keep member.
8600 (assign_stack_temp_for_type) Don't initialize above, remove
8602 (assign_stack_temp, assign_temp): Remove keep argument.
8603 (mark_temp_addr_taken): Remove.
8604 (preserve_temp_slots): Remove handling of addr_taken and keep members.
8605 (free_temp_slots): Ditto.
8606 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
8608 * stmt.c (expand_asm_operands): Remove dead code.
8609 (expand_decl): Remove.
8610 * c-decl.c (finish_struct): Don't call expand_decl.
8611 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
8612 and assign_stack_temp.
8613 * calls.c (save_fixed_argument_area, initialize_argument_information,
8614 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
8615 * expmed.c (extract_bit_field_1): Ditto.
8616 * expr.c (emit_group_load_1, emit_group_store,
8617 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
8618 store_field, expand_constructor, expand_cond_expr_using_cmove,
8619 expand_expr_real_2, expand_expr_real_1): Ditto.
8620 * stmt.c (expand_asm_operands, expand_return): Ditto.
8622 * function.c (pop_temp_slots): Call free_temp_slots.
8623 * calls.c (store_one_arg): Don't call preserve_temp_slots or
8625 * expr.c (expand_assignment): Don't call free_temp_slots.
8627 * config/arm/arm.c (neon_expand_vector_init): Ditto.
8628 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
8629 (ix86_expand_vector_extract): Ditto.
8630 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
8631 ia64_expand_movxf_movrf): Ditto.
8632 * config/mips/mips.c (mips_expand_vi_general): Ditto.
8633 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
8634 extendsfdf2): Ditto.
8635 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
8636 rs6000_expand_vector_set, rs6000_expand_vector_extract,
8637 rs6000_allocate_stack_temp): Ditto.
8638 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
8639 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8640 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
8641 sparc_expand_vector_init): Ditto.
8643 2012-05-29 Michael Matz <matz@suse.de>
8645 * c-tree.h (c_expand_decl): Remove prototype.
8647 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
8649 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
8650 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
8651 COMPOUND_LITERAL_EXPR.
8652 * function.c (expand_function_start): Don't call expand_decl,
8653 instead assert that we have RTL assigned.
8654 * tree-ssa-live.c (remove_unused_locals): Clear
8655 nonlocal_goto_save_area if its backing variable is removed.
8656 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
8658 (expand_decl): Assert that this does nothing.
8659 * calls.c (expand_call): Don't call mark_temp_addr_taken.
8661 2012-05-29 Richard Guenther <rguenther@suse.de>
8663 PR tree-optimization/53516
8664 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
8666 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8668 2012-05-29 Joseph Myers <joseph@codesourcery.com>
8670 * LANGUAGES: Fix typos.
8671 * Makefile.in: Fix typos.
8672 * alias.c: Fix typos.
8673 * auto-inc-dec.c: Fix typos.
8674 * bb-reorder.c: Fix typos.
8675 * cfgcleanup.c: Fix typos.
8676 * cgraph.c: Fix typos.
8677 * cgraph.h: Fix typos.
8678 * cgraphunit.c: Fix typos.
8679 * collect2-aix.h: Fix typos.
8680 * collect2.c: Fix typos.
8681 * compare-elim.c: Fix typos.
8682 * config/alpha/vms.h: Fix typos.
8683 * config/arm/README-interworking: Fix typos.
8684 * config/arm/arm.c: Fix typos.
8685 * config/arm/iterators.md: Fix typos.
8686 * config/arm/vxworks.h: Fix typos.
8687 * config/avr/avr.c: Fix typos.
8688 * config/avr/avr.h: Fix typos.
8689 * config/avr/avr.md: Fix typos.
8690 * config/avr/builtins.def: Fix typos.
8691 * config/c6x/c6x.c: Fix typos.
8692 * config/cr16/cr16.c: Fix typos.
8693 * config/cr16/cr16.md: Fix typos.
8694 * config/cris/cris.md: Fix typos.
8695 * config/darwin.c: Fix typos.
8696 * config/darwin.opt: Fix typos.
8697 * config/i386/i386-c.c: Fix typos.
8698 * config/i386/i386.c: Fix typos.
8699 * config/ia64/ia64.c: Fix typos.
8700 * config/m68k/cf.md: Fix typos.
8701 * config/mep/mep.c: Fix typos.
8702 * config/microblaze/microblaze.c: Fix typos.
8703 * config/microblaze/microblaze.h: Fix typos.
8704 * config/mn10300/mn10300.c: Fix typos.
8705 * config/mn10300/mn10300.md: Fix typos.
8706 * config/pa/pa.c: Fix typos.
8707 * config/picochip/picochip.h: Fix typos.
8708 * config/rs6000/a2.md: Fix typos.
8709 * config/rs6000/rs6000.c: Fix typos.
8710 * config/rs6000/vector.md: Fix typos.
8711 * config/rx/rx.md: Fix typos.
8712 * config/rx/rx.opt: Fix typos.
8713 * config/s390/2097.md: Fix typos.
8714 * config/s390/s390.c: Fix typos.
8715 * config/s390/s390.h: Fix typos.
8716 * config/sh/sh.c: Fix typos.
8717 * config/sh/sh.md: Fix typos.
8718 * config/sparc/sync.md: Fix typos.
8719 * config/spu/spu.c: Fix typos.
8720 * config/spu/spu.md: Fix typos.
8721 * config/vms/vms.c: Fix typos.
8722 * config/vxworks-dummy.h: Fix typos.
8723 * config/vxworks.h: Fix typos.
8724 * cselib.c: Fix typos.
8725 * df-scan.c: Fix typos.
8727 * doc/extend.texi: Fix typos.
8728 * doc/install.texi: Fix typos.
8729 * doc/invoke.texi: Fix typos.
8730 * doc/md.texi: Fix typos.
8731 * doc/plugins.texi: Fix typos.
8732 * doc/rtl.texi: Fix typos.
8734 * dwarf2asm.c: Fix typos.
8735 * dwarf2out.c: Fix typos.
8736 * except.h: Fix typos.
8737 * expr.c: Fix typos.
8738 * fold-const.c: Fix typos.
8740 * gcse.c: Fix typos.
8741 * genautomata.c: Fix typos.
8742 * gengtype-state.c: Fix typos.
8743 * gengtype.c: Fix typos.
8744 * genhooks.c: Fix typos.
8745 * gimple-fold.c: Fix typos.
8746 * gimple-pretty-print.c: Fix typos.
8747 * gimple.c: Fix typos.
8748 * gimple.h: Fix typos.
8749 * gimplify.c: Fix typos.
8750 * graphite-interchange.c: Fix typos.
8751 * graphite-sese-to-poly.c: Fix typos.
8752 * ifcvt.c: Fix typos.
8753 * input.c: Fix typos.
8754 * ipa-cp.c: Fix typos.
8755 * ipa-inline-analysis.c: Fix typos.
8756 * ipa-inline-transform.c: Fix typos.
8757 * ipa-inline.c: Fix typos.
8758 * ipa-pure-const.c: Fix typos.
8759 * ipa-ref.h: Fix typos.
8760 * ipa-reference.c: Fix typos.
8761 * ipa-utils.c: Fix typos.
8763 * ira-emit.c: Fix typos.
8764 * ira-lives.c: Fix typos.
8765 * lto-streamer.c: Fix typos.
8766 * lto-streamer.h: Fix typos.
8767 * lto-wrapper.c: Fix typos.
8769 * mode-switching.c: Fix typos.
8770 * modulo-sched.c: Fix typos.
8771 * plugin.c: Fix typos.
8772 * postreload.c: Fix typos.
8773 * sched-deps.c: Fix typos.
8774 * sel-sched-ir.c: Fix typos.
8775 * sel-sched-ir.h: Fix typos.
8776 * sel-sched.c: Fix typos.
8777 * sese.c: Fix typos.
8778 * stor-layout.c: Fix typos.
8779 * target-hooks-macros.h: Fix typos.
8780 * target.def: Fix typos.
8781 * trans-mem.c: Fix typos.
8782 * tree-eh.c: Fix typos.
8783 * tree-predcom.c: Fix typos.
8784 * tree-sra.c: Fix typos.
8785 * tree-ssa-address.c: Fix typos.
8786 * tree-ssa-loop-ivopts.c: Fix typos.
8787 * tree-ssa-loop-niter.c: Fix typos.
8788 * tree-ssa-math-opts.c: Fix typos.
8789 * tree-ssa-pre.c: Fix typos.
8790 * tree-ssa-propagate.c: Fix typos.
8791 * tree-ssa-reassoc.c: Fix typos.
8792 * tree-ssa-sccvn.c: Fix typos.
8793 * tree-ssa-ter.c: Fix typos.
8794 * tree-ssa-uninit.c: Fix typos.
8795 * tree-ssanames.c: Fix typos.
8796 * tree-vect-generic.c: Fix typos.
8797 * tree-vect-slp.c: Fix typos.
8798 * tree.c: Fix typos.
8799 * tree.h: Fix typos.
8800 * varasm.c: Fix typos.
8801 * varpool.c: Fix typos.
8803 2012-05-29 Joseph Myers <joseph@codesourcery.com>
8805 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
8807 2012-05-29 Richard Guenther <rguenther@suse.de>
8809 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
8811 (add_referenced_var_1): Re-organize. Assert we are not
8813 (remove_referenced_var): Likewise.
8814 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
8815 * tree-mudflap.c (execute_mudflap_function_ops): Do not
8816 call add_referenced_var on globals.
8817 * matrix-reorg.c (transform_access_sites): Likewise.
8819 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
8821 * alias.c (reg_known_value): Make this a VEC.
8822 (reg_known_equiv_p): Make this an sbitmap.
8823 (reg_known_value_size): Remove.
8824 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
8825 set_reg_known_equiv_p): Update for reg_known_value and
8826 reg_known_value_size data structure change.
8827 (init_alias_analysis, end_alias_analysis): Likewise.
8829 2012-05-29 Jakub Jelinek <jakub@redhat.com>
8832 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
8833 to avoid leaking memory. No need to handle memory allocation
8834 failure. Double string_len on each reallocation instead of adding 2.
8835 * gcov.c (read_line): Likewise.
8837 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
8839 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
8841 * config/cris/cris.md ("trap"): Define, enabled for
8842 TARGET_TRAP_USING_BREAK8.
8843 * config/cris/cris.opt (mtrap-using-break8): New option.
8845 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
8848 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
8851 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
8853 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
8854 (Standard Names): Fix typos in documentation of atomic patterns.
8856 2012-05-27 Nathan Sidwell <nathan@acm.org>
8858 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
8860 2012-05-26 Jason Merrill <jason@redhat.com>
8863 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
8864 about array compound literals.
8866 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
8868 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
8869 if CLEANUP_NO_INSN_DEL.
8870 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
8871 from cfg_layout_merge_blocks.
8872 (emit_nop_for_unique_locus_between): New function.
8873 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
8874 (cfg_layout_merge_blocks): Likewise.
8876 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
8877 Paolo Bonzini <bonzini@gnu.org>
8879 * df-scan.c (df_def_record_1): Assert a parallel must contain an
8880 EXPR_LIST at this point. Receive the LOC and move its extraction...
8881 (df_defs_record): ... here. Change if-else to a switch statement.
8882 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
8883 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
8884 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
8885 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
8886 regs_invalidated_by_call.
8887 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
8890 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
8893 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
8894 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
8896 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8898 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
8899 software floating point emulation. No longer build the multilibs
8900 with -mstrict-align.
8902 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
8905 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
8906 accessed indirectly.
8907 (ipa_tm_create_version): Same.
8909 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
8912 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
8913 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
8915 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8918 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
8919 (ix86_expand_vec_perm): Use int mode instead of float.
8920 (expand_vec_perm_pshufb): Remove handling of useseless type
8923 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
8926 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
8927 gnu_ld variables to yes.
8928 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
8929 (HAVE_GNU_AS): Likewise.
8930 * config.in: Regenerate.
8931 * configure: Likewise.
8933 2012-05-25 Tristan Gingold <gingold@adacore.com>
8935 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
8936 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
8937 and preferred_alignment.
8939 2012-05-25 Tristan Gingold <gingold@adacore.com>
8941 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
8943 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
8945 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
8946 volatile bitfields case.
8948 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
8950 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
8951 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
8952 (adjacent_mem_locations): Move some code to and call...
8953 (get_memref_parts): ...new function.
8954 (mem_locations_overlap): New function.
8955 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
8956 (is_mem_ref): Rename to...
8957 (find_mem_ref): ...this. Return MEM rtx.
8958 (get_store_dest): Remove function.
8959 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
8960 new parameter and adjust calls.
8961 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
8962 mem refs overlap for true_store_to_load_dep_costly.
8963 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
8964 passed to adjacent_mem_locations.
8965 (is_costly_group): Walk resolved dependency list.
8966 (force_new_group): Emit group ending nop for Power6/Power7.
8967 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
8968 (group_ending_nop): New define_insn.
8970 2012-05-24 Dodji Seketeli <dodji@redhat.com>
8972 Make unwound macro expansion trace less redundant
8973 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
8974 context of macro definition in the trace, when it's redundant.
8977 2012-05-24 Richard Guenther <rguenther@suse.de>
8980 * tree-profile.c (tree_profiling): Cleanup the CFG if
8981 execute_fixup_cfg requests it.
8983 2012-05-24 Richard Guenther <rguenther@suse.de>
8985 * tree-flow.h (create_var_ann): Remove.
8986 * tree-dfa.c (create_var_ann): Remove and inline into its
8988 (add_referenced_var_1): ... here.
8989 * varpool.c (add_new_static_var): Do not call add_referenced_var
8991 * gimple-fold.c (canonicalize_constructor_val): Likewise.
8992 * tree-switch-conversion.c (build_one_array): Likewise.
8993 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
8994 * tree-flow-inline.h (gimple_referenced_vars): Guard against
8996 * tree-inline.c (remap_gimple_op_r): Likewise. Check
8997 gimple_referenced_vars instead of gimple_in_ssa_p.
8998 (copy_tree_body_r): Likewise.
8999 (setup_one_parameter): Likewise.
9000 (declare_return_variable): Likewise.
9001 (tree_function_versioning): Likewise.
9003 2012-05-24 Jakub Jelinek <jakub@redhat.com>
9005 PR tree-optimization/53465
9006 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
9007 vr0 into *vr, then vrp_meet that.
9008 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
9009 have any equivalences.
9010 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
9013 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
9015 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
9017 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
9018 check end_regno - 1 is a hard register.
9020 2012-05-24 Richard Guenther <rguenther@suse.de>
9022 * varpool.c (add_new_static_var): Remove call to create_var_ann.
9023 * tree-ssa-operands.c (create_vop_var): Likewise.
9025 2012-05-24 Richard Guenther <rguenther@suse.de>
9028 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
9030 (remove_unused_locals): Pass global_unused_vars to
9031 remove_unused_scope_block_p. Restore code walking all
9032 referenced vars and pruning them.
9034 2012-05-23 Jan Hubicka <jh@suse.cz>
9036 * tree.h (alias_diag_flags): Remove.
9037 (alias_pair): Remove emitted_diags.
9038 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
9039 symbol_alias_set_t, symbol_alias_set_destroy,
9040 symbol_alias_set_contains, propagate_aliases_backward): Remove.
9041 * toplev.c (compile_file): Do not call finish_aliases_2
9042 * cgraphunit.c (cgraph_process_new_functions): Do not call
9044 (handle_alias_pairs): Output diagnostics about aliases to externals.
9045 (assemble_thunks_and_aliases): Use do_assemble_alias.
9046 (output_weakrefs): Likewise.
9047 (finalize_compilation_unit): Do not call finish_aliases_1.
9048 * ipa.c (symtab_remove_unreachable_nodes): De not call
9049 remove_unreachable_alias_pairs.
9050 * varasm.c (do_assemble_alias): Export.
9051 (symbol_alias_set_create, symbol_alias_set_destroy,
9052 symbol_alias_set_contains, symbol_alias_set_insert,
9053 propagate_aliases_forward, propagate_aliases_backward,
9054 propagate_aliases_backward, trivially_visible_alias,
9055 trivially_defined_alias, remove_unreachable_alias_pairs,
9056 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
9057 * output.h (do_assemble_alias): Declare.
9058 * varpool.c (varpool_remove_unreferenced_decls): Do not call
9061 2012-05-23 Martin Jambor <mjambor@suse.cz>
9063 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
9065 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
9067 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
9069 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
9070 (iterative_hash_gimple_type): Adjust comment.
9071 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
9072 domain for an array type instead of the domain type itself.
9074 2012-05-23 Richard Guenther <rguenther@suse.de>
9076 PR tree-optimization/53438
9077 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
9079 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
9082 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
9083 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
9086 2012-05-23 Richard Guenther <rguenther@suse.de>
9088 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
9089 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
9090 via the global_unused_vars bitmap.
9091 (remove_unused_locals): Handle global vars in local-decls via
9092 a global_unused_vars bitmap instead of the used flag in the
9093 var annotation. Simplify global variable handling and removal.
9095 2012-05-22 Jan Hubicka <jh@suse.cz>
9098 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
9099 from other partitions.
9101 2012-05-22 Jan Hubicka <jh@suse.cz>
9104 * symtab.c (symtab_register_node): Fix ordering issue.
9106 2012-05-22 Steven Drake <sbd@NetBSD.org>
9108 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
9110 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
9112 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
9113 Use strip_name_encoding target hook.
9115 2012-05-22 Richard Guenther <rguenther@suse.de>
9117 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
9118 (init_function_for_compilation): Remove.
9119 * tree-dfa.c (find_vars_r): Take struct function argument.
9120 (find_referenced_vars_in): Adjust.
9121 * tree-ssa-operands.c (clobber_stats): Remove.
9122 (create_vop_var): Take struct function argument. Mark
9123 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
9124 (init_ssa_operands): Take struct function argument.
9125 (fini_ssa_operands): Do not dump dead stats.
9126 * tree-ssa-operands.h (init_ssa_operands): Take struct function
9128 * cgraphunit.c (init_lowered_empty_function): Adjust.
9129 * lto-streamer-in.c (input_cfg): Likewise.
9130 * tree-inline.c (initialize_cfun): Likewise.
9131 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
9132 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
9133 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
9134 virtual operands are not registers.
9136 2012-05-22 Richard Guenther <rguenther@suse.de>
9138 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
9140 2012-05-22 Richard Guenther <rguenther@suse.de>
9143 * tree-inline.c (setup_one_parameter): Create a dummy init
9144 statement for unused parameters when not optimizing.
9146 2012-05-22 Richard Guenther <rguenther@suse.de>
9148 * tree-flow.h (add_referenced_var_1): Declare.
9149 (add_referenced_var): Define.
9150 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
9151 (add_referenced_var): Rename to ...
9152 (add_referenced_var_1): ... this. Take struct function argument.
9154 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9157 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
9158 * config/arm/arm.c (arm_validize_comparison): Define.
9159 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
9160 arm_validize_comparison.
9161 ("cbranchdi4"): Likewise.
9162 ("cstoredi4"): Likewise.
9163 ("movsicc"): Likewise.
9164 ("movsfcc"): Likewise.
9165 ("movdfcc"): Likewise.
9167 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
9169 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
9170 the mw_reg_pool size.
9172 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
9174 PR tree-optimization/53336
9175 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
9176 non-integer integral types to offset type and vice versa.
9178 2012-05-22 Alan Modra <amodra@gmail.com>
9180 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
9181 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
9182 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
9183 V_SAVE_INLINE): Delete.
9184 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
9185 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
9186 For ELF targets, use out-of-line restores for -Os and any number
9187 of regs if the restore exits, and out-of-line gp save for two or
9188 more regs. Use save_reg_p to test for holes in reg restore set.
9189 Replace "#if" with "if".
9191 2012-05-22 Alan Modra <amodra@gmail.com>
9193 * config/rs6000/rs6000.c (save_reg_p): New function.
9194 (first_reg_to_save, first_fp_reg_to_save): Use it here.
9195 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
9196 (emit_frame_save): Use gen_frame_store.
9197 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
9198 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
9200 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
9201 vrsave, toc, gp and fp restores.
9203 2012-05-22 Alan Modra <amodra@gmail.com>
9205 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
9206 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
9207 Move function pointer variables after forward declarations.
9208 (rs6000_builtin_support_vector_misalignment): Make static.
9209 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
9210 (rs6000_function_value, rs6000_can_eliminate): Likewise.
9212 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
9214 PR rtl-optimization/53373
9215 * caller-save.c (save_call_clobbered_regs): Look into a possible
9216 PARALLEL manually rather than using single_set on a call insn.
9218 2012-05-21 Jakub Jelinek <jakub@redhat.com>
9220 PR tree-optimization/53436
9221 * omp-low.c (omp_build_component_ref): New function.
9222 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
9224 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
9226 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
9228 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
9229 Do not print '.' here. Output operand lossage error for unhandled
9234 <case 'z'>: Hardcode "code" argument into error strings.
9236 <case 'D'>: Merge AVX and non-AVX codes.
9237 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
9238 Update call to put_condition_code.
9240 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
9242 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
9244 (clzsi2): New expander.
9245 (*clzsi2_68k): New insn.
9246 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
9248 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
9250 * gimple.h (gimple_set_in_transaction): Remove.
9251 (gimple_in_transaction): Look in BB instead.
9252 (gimple_statement_base): Remove in_transaction field.
9253 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
9254 * trans-mem.c (compute_transaction_bits): Place transaction bit
9255 information into basic blocks.
9257 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
9259 * expr.c (get_def_for_expr_class): Define only if
9260 HAVE_conditional_move.
9261 (convert_tree_comp_to_rtx): Likewise.
9263 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
9266 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
9268 (ffssi2_no_cmove): Ditto.
9269 (*ffs<mode>_1): Remove insn pattern.
9270 (*tzcnt<mode>_1): New insn pattern.
9271 (*bsf<mode>1): Ditto.
9273 2012-05-21 Richard Guenther <rguenther@suse.de>
9275 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
9276 more referenced vars.
9277 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
9278 flag on variables that have a var-annotation.
9280 2012-05-21 Joseph Myers <joseph@codesourcery.com>
9283 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
9284 from folded operands before wrapping another around the
9285 conditional expression.
9287 2012-05-21 Jakub Jelinek <jakub@redhat.com>
9289 PR tree-optimization/53366
9290 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
9291 tests if complex_numbers == 2, but there are non-complex number loads
9294 PR tree-optimization/53409
9295 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
9296 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
9298 PR tree-optimization/53410
9299 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
9300 instead of build_int_cst (type, 0) where vector types might be
9301 involved. Instead of build_int_cst (type, 1) convert the original
9302 integer_onep argument to the desired type.
9304 2012-05-21 Michael Matz <matz@suse.de>
9306 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
9307 (simplify_test_exp): Handle one more case of distributive law,
9308 decrease cost threshold.
9309 (tests_attr_p, get_attr_order): New functions.
9310 (optimize_attrs): Use topological order, inline only cheap values.
9311 (write_attr_set): Reset our_known_true after some time.
9313 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
9316 * config/i386/i386.c (type_natural_mode): Warn passing SSE
9317 vector argument without SSE enabled changes the ABI.
9319 2012-05-21 Richard Guenther <rguenther@suse.de>
9321 PR tree-optimization/53408
9322 * tree-vect-loop.c (vectorizable_induction): Properly check
9323 the restriction that we cannot handle induction results from
9324 the inner loop outside of the outer loop.
9326 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
9329 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
9330 (UNSPECV_RDRAND): This.
9331 (rdrand<mode>_1): Updated.
9333 2012-05-21 Richard Guenther <rguenther@suse.de>
9335 * tree-loop-distribution.c (can_generate_builtin): Reject
9338 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
9340 * Makefile.in (options.c): Add options.h to included header
9343 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
9345 * tree-parloops.c : Add myself to contributors, update
9346 TODO list, add link to wiki.
9348 2012-05-21 Alan Modra <amodra@gmail.com>
9350 * config/rs6000/predicates.md (input_operand): Don't match
9351 constant pool addresses. Remove label_ref, high and plus from
9352 match_code list. Remove redundant CONSTANT_P test.
9353 (splat_input_operand): Similarly update match_code list.
9354 (small_toc_ref): New predicate.
9355 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
9356 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
9357 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
9358 register checks to..
9359 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
9360 generated by create_TOC_reference.
9361 (rs6000_legitimize_address): Update cerate_TOC_reference call.
9362 (rs6000_delegitimize_address): Handle new rtl for toc refs.
9363 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
9364 (use_toc_relative_ref): New function, split out from..
9365 (rs6000_emit_move): ..here. Remove redundant tests. Update
9366 create_TOC_reference calls.
9367 (rs6000_legitimize_reload_address): Formatting. Handle splitting
9368 of medium/large model toc addresses. Use use_toc_relative_ref.
9369 (print_operand): Formatting, style. Adjust for toc changes.
9370 (print_operand_address): Likewise.
9371 (rs6000_output_addr_const_extra): Likewise.
9372 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
9373 than a PLUS. Use this formulation for both high and low part
9374 of -mcmodel=medium/large toc reference too. Before reload,
9375 always use the small model formulation.
9376 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
9377 a PLUS in high part of addresses here.
9378 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9379 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9380 (largetoc_high, largetoc_low): Move earlier. Cope when no
9382 (largetoc_high_plus): New insn.
9383 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
9384 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
9385 (tocref): ..instead do so here, new insn and split.
9387 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
9389 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9390 RDRND, F16C and FSGSBASE.
9392 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9394 PR rtl-optimzation/53373
9395 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
9396 call pattern. Update split patterns.
9397 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
9398 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
9400 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
9402 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
9405 2012-05-18 Jan Hubicka <jh@suse.cz>
9407 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
9408 (cgraph_process_new_functions): Process also aliases.
9409 * lto-streamer-out.c (struct sets): Remove.
9410 (trivally_defined_alias): Remove.
9411 (output_alias_pair_p): Remove.
9412 (output_unreferenced_globals): Remove.
9413 (produce_symtab); Do not handle alias pairs.
9414 (produce_asm_for_decls): Likewise.
9415 * lto-streamer-in.c (input_alias_pairs): Remove.
9416 (lto_read_body): Do not input alias pairs.
9417 (lto_input_constructors_and_inits): Remove.
9419 2012-05-18 Jan Hubicka <jh@suse.cz>
9421 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
9424 2012-05-18 Jan Hubicka <jh@suse.cz>
9426 * cgraphbuild.c (record_reference): Update.
9427 * lto-cgraph.c (lto_output_varpool_node): External vars
9428 are not in other partition even if they are not output
9429 in current partition.
9430 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
9432 (canonicalize_constructor_val): Take FROM_DECL argument.
9433 (fold_ctor_reference, fold_string_cst_ctor_reference,
9434 fold_array_ctor_reference, fold_nonarray_ctor_reference,
9435 fold_ctor_reference): Likewise.
9436 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
9437 * gimple.h (gimple_fold_builtin): Likewise.
9439 2012-05-18 Olivier Hainque <hainque@adacore.com>
9441 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
9442 $(libsubdir) as libexecsubdir.
9444 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9446 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
9447 relied on signed overflow behavior.
9449 2012-05-18 Richard Guenther <rguenther@suse.de>
9451 PR tree-optimization/53346
9452 * tree-loop-distribution.c (ldist_gen): Make sure to apply
9453 builtin transform even when only a single partition with
9454 all reads/writes exists.
9456 2012-05-18 Richard Guenther <rguenther@suse.de>
9458 PR tree-optimization/53390
9459 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
9462 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9464 * tree-ssa-reassoc.c (bip_map): Remove decl.
9465 (completely_remove_stmt): Remove function.
9466 (remove_def_if_absorbed_call): Remove function.
9467 (remove_visited_stmt_chain): Remove __builtin_powi handling.
9468 (possibly_move_powi): Remove function.
9469 (rewrite_expr_tree): Remove calls to possibly_move_powi.
9470 (rewrite_expr_tree_parallel): Likewise.
9471 (attempt_builtin_powi): Build multiplies explicitly rather than
9472 relying on the ops vector and rank system.
9473 (transform_stmt_to_copy): New function.
9474 (transform_stmt_to_multiply): Likewise.
9475 (reassociate_bb): Handle leftover operations after __builtin_powi
9476 optimization; build a final multiply if necessary.
9478 2012-05-18 Jan Hubicka <jh@suse.cz>
9480 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
9481 (mark_functions_to_output): Fix sanity check.
9482 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
9484 2012-05-18 Richard Guenther <rguenther@suse.de>
9486 * tree-flow.h (mark_symbols_for_renaming): Remove.
9487 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
9488 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
9489 (copy_debug_stmt): Likewise.
9490 (expand_call_inline): Likewise.
9491 (declare_return_variable): Mark the return variable for renaming
9494 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
9496 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
9498 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
9499 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
9500 (ashrdi3,lshrdi3): Likewise.
9501 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
9503 2012-05-18 Meador Inge <meadori@codesourcery.com>
9505 PR rtl-optimization/53352
9506 * cse.c (equiv_constant): Ignore paradoxical subregs.
9508 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
9510 PR rtl-optimization/53125
9511 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
9512 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
9513 die in the basic block. Correctly top off REG_FREQ and
9514 REG_FREQ_CALLS_CROSSED.
9516 (regstat_compute_ri): Allocate and free local_live_last_luid.
9518 (regstat_bb_compute_calls_crossed): Correctly top off
9519 REG_FREQ_CALLS_CROSSED.
9521 2012-05-17 Jan Hubicka <jh@suse.cz>
9523 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
9524 constructor over decl without.
9525 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
9526 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
9527 * cgraphunit.c (process_function_and_variable_attributes): Finalize
9529 (mark_functions_to_output): Also accept bodies for functions with
9531 (output_in_order): Skip external vars.
9532 * lto-cgraph.c (lto_output_node): External functions are never in other
9534 (lto_output_varpool_node): Likewise.
9535 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
9536 forgotten initializers.
9537 * ipa.c (process_references): Handle external vars.
9538 (symtab_remove_unreachable_nodes): Update to handle external vars.
9539 (varpool_externally_visible_p): External vars are externally visible.
9540 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
9541 * varpool.c (varpool_remove_node): Remove constructor.
9542 (decide_is_variable_needed): Handle externals.
9543 (varpool_remove_unreferenced_decls): Likewise.
9545 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
9547 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
9548 (enable_warning_as_error): Do not special case Wuninitialized.
9549 * optc-gen.awk: Add sanity checks.
9551 2012-05-17 Jan Hubicka <jh@suse.cz>
9553 * ipa-reference.c (is_proper_for_analysis): Do not check flags
9554 that might change as result of global optimization.
9555 (analyze_function): Do not check analyzed and externally_visible
9556 flags; be happy about address dereferences.
9557 (propagate): Prune all_module_statics so it really contains just
9558 statics; prune all the local summaries.
9559 (ipa_reference_write_optimization_summary): Simplify.
9561 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
9563 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
9564 * config/m68k/m68k-tables.opt: Regenerated.
9565 * doc/invoke.texi (M680x0 Options): Document.
9567 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
9568 Patrick Marlier <patrick.marlier@gmail.com>
9570 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
9573 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9575 * configure: Regenerated.
9577 2012-05-16 Andrew Pinski <apinski@cavium.com>
9579 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
9582 2012-05-16 David S. Miller <davem@davemloft.net>
9584 * jump.c (delete_related_insns): If we remove a CALL, make sure
9585 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
9587 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9589 PR tree-optimization/53217
9590 * tree-ssa-reassoc.c (bip_map): New static variable.
9591 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
9592 (attempt_builtin_powi): Save feeding multiplies on a stack.
9593 (reassociate_bb): Create and destroy bip_map.
9595 2012-05-16 Olivier Hainque <hainque@adacore.com>
9597 * Makefile.in (install-no-fixedincludes): New target, former toplevel
9598 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
9599 Add comments and improve stamp preservation across the whole sequence.
9600 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
9602 2012-05-16 Richard Guenther <rguenther@suse.de>
9604 * tree-inline.c (insert_init_stmt): Do not call
9605 mark_symbols_for_renaming.
9606 (setup_one_parameter): Avoid initializing unused parameters.
9607 (declare_return_variable): Properly handle DECL_BY_REFERENCE
9608 return vars in SSA form.
9610 2012-05-16 Richard Guenther <rguenther@suse.de>
9612 * tree-flow.h (get_virtual_var): Remove.
9613 * tree-dfa.c (get_virtual_var): Likewise.
9615 2012-05-16 Richard Guenther <rguenther@suse.de>
9617 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
9618 Remove set-only bitmap of new names.
9619 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
9621 * tree-flow.h (ssa_names_to_replace): Remove.
9622 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
9624 2012-05-16 Richard Guenther <rguenther@suse.de>
9626 PR tree-optimization/53364
9627 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
9628 detect a view-conversion of the decl.
9630 2012-05-16 Dodji Seketeli <dodji@redhat.com>
9632 PR preprocessor/7263
9633 * c-tree.h (enum c_declspec_word): Declare new enum.
9634 (struct c_declspecs::locations): New member.
9635 (declspecs_add_qual, declspecs_add_scspec)
9636 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
9638 * c-decl.c (build_null_declspecs): Initialize the new struct
9639 c_declspecs::locations member.
9640 (declspecs_add_addrspace): Take a location parameter for the
9641 address space. Store it onto declaration specifiers.
9642 (declspecs_add_qual): Likewise, take a location parameter for the
9644 (declspecs_add_type): Likewise, take a location parameter for the
9646 (declspecs_add_scspec): Likewise, take a location parameter for
9647 the storage class specifier.
9648 (declspecs_add_attrs): Likewise, take a location parameter for the
9650 (declspecs_add_alignas): Likewise, take a location parameter for
9652 (finish_declspecs): For diagnostics, use the location of the
9653 relevant declspec, instead of the global input_location.
9654 * c-parser.c (c_parser_parameter_declaration): Pass the precise
9655 virtual location of the declspec to the declspecs-setters.
9656 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
9659 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
9661 * configure.ac: Stack protector enabling for Android targets.
9662 * configure: Regenerate.
9664 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
9666 * ira.c (pseudo_move_insn): Delete.
9667 (find_moveable_pseudos): Don't set it.
9668 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
9669 the definitions of the original pseudo. Delete all of them.
9671 2012-05-16 Olivier Hainque <hainque@adacore.com>
9673 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9675 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
9676 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
9677 * config/rs6000/8540.md: indicate that the units/patterns apply to
9680 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
9681 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
9682 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
9683 related flags, check that what is queried is supported by the selected
9684 configuration. Rework the single/double_float and MASK_STRING resets to
9685 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
9686 costs for PROCESSOR_PPC8548 as well.
9687 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
9688 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
9689 statement instead of a sequence of ifs.
9691 * config/rs6000/rs6000.h (TARGET_E500): Remove.
9692 (TARGET_NO_LWSYNC): Adjust accordingly.
9693 * config/rs6000/e500.h (TARGET_E500): Remove.
9694 (CHECK_E500_OPTIONS): Adjust accordingly.
9695 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
9696 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
9697 * config/rs6000/linuxspe.h: Likewise.
9698 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
9699 superfluous comments.
9700 * config/rs6000/e500-double.h: Remove.
9702 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
9703 default to with_cpu=8548 if --enable-e500-double, and to 8540
9705 (set misc flags section): For powerpc*|rs6000*, remove inclusion
9706 of e500-double.h for --enable-e500-double.
9708 2012-05-16 Olivier Hainque <hainque@adacore.com>
9710 * Makefile.in (s-header-vars): Resort to -n instead of trailing
9711 -e d in sed invocation.
9713 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
9715 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
9717 * doc/tm.texi: Regenerate.
9719 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9721 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
9723 2012-05-15 Jakub Jelinek <jakub@redhat.com>
9726 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
9727 that operands[2] is either immediate, or q_regs_operand.
9729 2012-05-15 Richard Guenther <rguenther@suse.de>
9731 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
9732 (assemble_thunk): Likewise. Manually rename and register
9735 2012-05-15 Richard Guenther <rguenther@suse.de>
9737 PR tree-optimization/53355
9738 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
9741 2012-05-15 Tristan Gingold <gingold@adacore.com>
9743 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
9745 2012-05-15 Richard Guenther <rguenther@suse.de>
9747 * gimple.c (gimple_set_modified): Move ...
9748 * gimple.h (gimple_set_modified): ... here.
9750 2012-05-15 Tristan Gingold <gingold@adacore.com>
9752 * ira-color.c (move_spill_restore): Add a guard.
9754 2012-05-15 Tristan Gingold <gingold@adacore.com>
9756 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
9759 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
9761 * gimplify.c (gimplify_init_constructor): Do a block move for very
9762 small objects as well.
9764 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
9766 * ira.c (find_moveable_pseudos): Skip registers whose
9767 DF_REG_EQ_USE_COUNT is nonzero.
9769 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
9771 * doc/md.texi (fma): Define to only be applicable for single rounding.
9773 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
9776 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
9777 generate target register for "load" class builtins.
9780 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
9783 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
9784 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
9785 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
9786 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
9787 (<sse>_movu<ssemodesuffix>): New expander.
9788 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
9789 (avx_movdqu<avxmodesuffix>): New expander.
9790 (*sse2_movdqu): Rename from sse2_movdqu.
9791 (sse2_movdqu): New expander.
9793 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
9796 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
9797 (canonicalize_perm): ... new function.
9798 (expand_vec_perm_2vperm2f128_vshuf): New function.
9799 (ix86_expand_vec_perm_const_1): Call it.
9801 2012-05-14 Andrew Pinski <apinski@cavium.com>
9802 H.J. Lu <hongjiu.lu@intel.com>
9803 Jakub Jelinek <jakub@redhat.com>
9806 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
9809 2012-05-14 Jakub Jelinek <jakub@redhat.com>
9811 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
9812 lineno 1 the same as lineno 0 before first start file directive.
9813 (optimize_macinfo_range): Likewise.
9815 * dwarf2out.c (have_macinfo): Define.
9816 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
9817 attribute, don't force empty compilation unit and don't emit any
9818 .debug_macinfo/.debug_macro section if macinfo_table is empty.
9820 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
9823 * config/avr/avr.c (avr_const_address_lo16): Remove.
9824 (avr_assemble_integer): Print ".byte lo8(x)",
9825 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
9826 .warning if 3-byte address is assembled.
9827 * doc/extend.texi (AVR Named Address Spaces): Document that
9828 binutils 2.23 is needed to assemble 3-byte addresses.
9830 2012-05-14 Richard Guenther <rguenther@suse.de>
9832 * tree-vect-data-refs.c (vect_setup_realignment): Remove
9833 call to mark_symbols_for_renaming.
9834 (vect_permute_load_chain): Likewise.
9835 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
9836 instead of calling mark_symbols_for_renaming.
9837 * tree-vect-stmts.c (read_vector_array): Remove call to
9838 mark_symbols_for_renaming.
9839 (write_vector_array): Likewise.
9840 (vectorizable_call): Likewise.
9841 (vectorizable_store): Likewise.
9842 (vectorizable_load): Likewise.
9843 * matrix-reorg.c (transform_allocation_sites): Likewise.
9844 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
9845 (create_expression_by_pieces): Likewise.
9847 2012-05-14 Richard Guenther <rguenther@suse.de>
9849 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
9850 of statements for renaming.
9851 (force_gimple_operand_1): Likewise, consistently for both
9852 calls to force_gimple_operand and force_gimple_operand_gsi.
9854 2012-05-14 Richard Guenther <rguenther@suse.de>
9856 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
9857 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
9859 (expand_omp_for): Likewise.
9860 (expand_omp_for_generic): Adjust conditional add to referenced vars.
9861 Use make_rename_temp for temporaries that should be rewritten into
9863 (expand_omp_for_static_nochunk): Likewise.
9864 (expand_omp_atomic_pipeline): Likewise.
9866 2012-05-14 Richard Guenther <rguenther@suse.de>
9868 PR tree-optimization/53331
9869 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
9871 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
9873 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9876 * doc/options.texi: (LangEnabledBy): Document it.
9877 * optc-gen.awk: Handle LangEnabledBy.
9878 * opth-gen.awk: Generate declaration for lang-specific functions.
9879 * opt-read.awk: Record lang numbers.
9880 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
9881 (lang_sanitized_name): New.
9883 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
9885 * attribs.c (decl_attributes): Avoid emitting a warning if
9887 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
9888 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
9889 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
9890 define a string "1".
9891 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
9892 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
9893 BUILT_IN_STRCPY): Use it for these functions.
9894 * postreload.c (reload_combine): Deal with SETs inside
9895 CALL_INSN_FUNCTION_USAGE.
9896 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
9897 Look for REG_RETURNED notes and use a cheap restore if possible.
9898 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
9899 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
9900 * ira-build.c (ira_create_allocno, create_cap_allocno,
9901 propagate_allocno_info, propagate_some_info_from_allocno,
9902 copy_info_to_removed_store_destination, ira_flattening): Handle it.
9903 * ira-lives.c (pseudo_regno_single_word_and_live_p,
9904 find_call_crossed_cheap_reg): New static functions.
9905 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
9906 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
9907 a REG_RETURNED note in that case.
9908 * ira.c (setup_reg_renumber): Change assert to allow cases where
9909 allocnos only cross calls for which they are cheap to restore.
9910 * ira-costs.c (ira_tune_allocno_costs): Compare
9911 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
9913 * reg-notes.def (REG_RETURNED): New note.
9914 * cse.c (cse_insn): Likewise.
9915 * sched-deps.c (sched_analyze_insn): Likewise.
9916 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
9917 * calls.c (decl_return_flags): New static function.
9918 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
9919 functions that return one of their arguments.
9920 * regcprop.c (struct kill_set_value_data): New.
9921 (kill_set_value): Interpret data as a pointer to such a struct.
9922 Do nothing if the caller wants the register to be ignored.
9923 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
9925 2012-05-14 Richard Guenther <rguenther@suse.de>
9927 PR tree-optimization/53340
9928 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
9930 2012-05-14 Richard Guenther <rguenther@suse.de>
9932 * gimplify.c (gimplify_expr): Remove odd code.
9934 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
9936 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
9937 into a PLUS_EXPR byte offset.
9939 * tree-ssa-pre.c (can_value_number_call): Delete.
9940 (compute_avail): Skip all statements with side effects.
9941 <GIMPLE_CALL>: Skip calls to internal functions.
9943 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
9945 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
9947 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9949 * common.opt (Wtype-limits): Use EnabledBy.
9951 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
9953 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
9954 (pushtf splitter): Ditto.
9956 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
9957 (<code>tf2): Enable for TARGET_SSE.
9958 (*absnegtf2_sse): Ditto.
9959 (copysign<mode>3): Enable TFmode for TARGET_SSE.
9960 (copysign<mode>3_const): Ditto.
9961 (copysign<mode>3_var): Ditto.
9962 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
9963 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
9964 (*<code>tf3): Ditto.
9965 * config/i386/i386.c (struct builtin_description bdesc_args)
9966 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
9967 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
9968 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
9969 Emit a normal call if SSE isn't available.
9971 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
9973 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
9974 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
9975 (<code><mode>3): Ditto.
9976 (*andnot<mode>3): Ditto.
9977 (*andnottf3): Ditto.
9978 (*<code><mode>3): Ditto.
9981 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9983 * optc-gen.awk: Error instead of warning for conflicting help.
9985 2012-05-12 Jason Merrill <jason@redhat.com>
9988 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
9991 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
9993 * function.c (requires_stack_frame_p): If the function can throw
9994 non-call exceptions, return true if the insn can throw internally.
9996 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
9998 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
10000 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
10002 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
10003 ORDERED and UNORDERED conditions.
10005 2012-05-11 Richard Guenther <rguenther@suse.de>
10007 * tree-flow.h (referenced_var_check_and_insert): Remove.
10008 (find_new_referenced_vars): Likewise.
10009 * tree-dfa.c (referenced_var_check_and_insert): Make static.
10010 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
10011 * tree-inline.c (copy_bb): Use find_referenced_vars_in
10012 instead of find_new_referenced_vars.
10013 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
10015 2012-05-11 Richard Guenther <rguenther@suse.de>
10017 * tree-pass.h (pass_rest_of_compilation,
10018 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
10020 * passes.c (pass_all_optimizations, pass_postreload,
10021 pass_all_early_optimizations): Make static.
10022 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
10023 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
10024 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
10025 (delete_tree_ssa): Do not call fini_phinodes.
10026 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
10028 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
10031 * doc/options.texi (EnabledBy): Document
10032 * opts.c: Include opts.h and options.h before tm.h.
10033 (finish_options): Do not handle some sub-options here...
10034 (common_handle_option): ... instead call common_handle_option_auto
10036 * optc-gen.awk: Handle EnabledBy.
10037 * opth-gen.awk: Declare common_handle_option_auto.
10038 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
10039 (Wmaybe-uninitialized): Likewise.
10040 (Wunused-but-set-variable): Likewise.
10041 (Wunused-function): Likewise.
10042 (Wunused-label): Likewise.
10043 (Wunused-value): Likewise.
10044 (Wunused-variable): Likewise.
10045 * opt-read.awk: Create opt_numbers array.
10047 2012-05-11 Richard Guenther <rguenther@suse.de>
10049 PR tree-optimization/53295
10050 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
10052 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
10053 strides when analyzing data-references in a loop context.
10054 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
10055 non-constant strides for now.
10056 (vect_enhance_data_refs_alignment): Ignore data references
10057 that are strided loads.
10058 (vect_analyze_data_ref_access): Handle non-constant strides.
10059 (vect_check_strided_load): Verify the data-reference is a load.
10060 (vect_analyze_data_refs): Restructure to make strided load
10061 support not dependent on gather support.
10062 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
10063 when doing strided or gather loads.
10064 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
10065 integer_zerop to compare stride with zero.
10067 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
10069 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
10071 2012-05-11 Jan Hubicka <jh@suse.cz>
10074 * varpool.c (varpool_assemble_decl): Also output constat pool entries
10075 that output_constant_pool missed.
10077 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
10079 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
10080 MULTILIB_EXTRA_OPTS.
10082 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
10085 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
10087 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
10089 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
10090 optimization for TARGET_AVX.
10091 (*movti_internal_sse): Ditto.
10092 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
10093 (*movdi_internal): Ditto.
10094 (*movsi_internal): Ditto.
10095 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
10096 (*movdf_internal_rex64): Ditto.
10097 (*movfd_internal): Ditto.
10098 (*movsf_internal): Ditto.
10099 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
10101 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10103 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
10104 reference as size attribute.
10106 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10107 Tristan Gingold <gingold@adacore.com>
10109 * doc/md.texi (Standard Names): Document probe_stack_address.
10110 * explow.c (emit_stack_probe): Handle probe_stack_address.
10111 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
10112 (UNSPECV_PROBE_STACK_RANGE): Likewise.
10113 (probe_stack_address): New insn.
10114 (probe_stack_range): Likewise.
10115 * config/ia64/ia64.c: Include common/common-target.h.
10116 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
10117 checking is enabled.
10118 (ia64_emit_probe_stack_range): New function.
10119 (output_probe_stack_range): Likewise.
10120 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
10121 builtin stack checking is enabled.
10122 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
10123 and UNSPECV_PROBE_STACK_ADDRESS.
10124 (unknown_for_bundling_p): New predicate.
10125 (group_barrier_needed): Use important_for_bundling_p.
10126 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
10127 (issue_nops_and_insn): Likewise.
10128 (bundling): Likewise.
10129 (final_emit_insn_group_barriers): Likewise.
10130 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
10131 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
10132 (STACK_CHECK_PROTECT): Likewise.
10133 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10135 2012-05-10 Jan Hubicka <jh@suse.cz>
10137 * ipa-inline.c (update_all_callee_keys): Remove.
10138 (inline_small_functions): Simplify priority updating.
10140 2012-05-10 Jan Hubicka <jh@suse.cz>
10142 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
10144 2012-05-10 Jan Hubicka <jh@suse.cz>
10146 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
10147 (symtab_remove_unreachable_nodes): ... this one.
10148 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
10149 * cgraphunit.c (ipa_passes): Update.
10150 * cgraphclones.c (cgraph_materialize_all_clones): Update.
10151 * cgraph.c (cgraph_release_function_body): Only turn initial
10152 into error mark when initial was previously set.
10153 * ipa-inline.c (ipa_inline): Update.
10154 * ipa.c: Include ipa-inline.h
10155 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
10156 (enqueue_node): New function.
10157 (process_references): Update.
10158 (symtab_remove_unreachable_nodes): Cleanup.
10159 * passes.c (execute_todo, execute_one_pass): Update.
10161 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
10163 PR rtl-optimization/53125
10164 * ira.c (ira): Call find_moveable_pseudos and
10165 move_unallocated_pseudos if only ira_conflicts_p is true.
10167 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
10169 * config/i386/i386.md (*movoi_internal_avx): Handle
10170 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
10171 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
10172 (*movti_internal_sse): Ditto.
10173 (*movtf_internal): Ditto.
10174 * config/i386/sse.md (ssePSmode): New mode attribute.
10175 (*move<mode>_internal): Use ssePSmode.
10176 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
10177 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
10178 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
10179 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
10181 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10183 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
10184 DECL_ORIGINAL_TYPE if it is present.
10186 2012-05-10 Nick Clifton <nickc@redhat.com>
10189 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
10190 a "0" constraint to being a (match_dup 0).
10192 2012-05-10 Richard Guenther <rguenther@suse.de>
10194 * stor-layout.c (byte_from_pos): Amend comment.
10196 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10198 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
10199 Document requirement to call in constructors.
10201 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
10203 2012-05-10 Richard Guenther <rguenther@suse.de>
10205 * tree.h (TYPE_IS_SIZETYPE): Remove.
10206 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
10207 (extract_muldiv_1): Likewise.
10208 * gimple.c (gtc_visit): Likewise.
10209 (gimple_types_compatible_p): Likewise.
10210 (iterative_hash_canonical_type): Likewise.
10211 (gimple_canonical_types_compatible_p): Likewise.
10212 * gimplify.c (gimplify_one_sizepos): Likewise.
10213 * print-tree.c (print_node): Likewise.
10214 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
10216 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10219 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
10220 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
10221 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
10222 instead of xop_mulv2div2di3_low.
10223 (xop_p<macs>dql): Fix vec_select selector.
10224 (xop_p<macs>dqh): Ditto.
10225 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
10226 (xop_mulv2div2di3_high): Ditto.
10228 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10231 * diagnostic.h (diagnostic_context): Add last_location.
10232 * diagnostic.c (diagnostic_initialize): Initialize it.
10233 (diagnostic_show_locus): Use it.
10235 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10237 * doc/extend.texi (Function Attributes): Point xref to section
10240 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10242 * config/i386/i386.c (*movdf_internal_rex64): Remove
10243 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
10244 Calculate "mode" attribute according to
10245 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
10246 (*movdf_internal): Ditto.
10248 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10251 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
10252 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
10253 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10254 or when optimizing for size.
10255 * config/i386/sse.md (*mov<mode>_internal): Remove
10256 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
10257 Calculate "mode" attribute according to optimize_function_for_size_p
10258 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
10259 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
10260 depending on the mode of the instruction. Calculate "mode" attribute
10261 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
10262 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
10263 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
10265 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
10268 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
10269 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
10270 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
10271 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
10272 (expand_prologue): Move initialization of cfun->machine->is_naked,
10273 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
10274 (avr_set_current_function): ...this new static function.
10275 (TARGET_SET_CURRENT_FUNCTION): New define.
10276 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
10277 checking attributes of current_function_decl.
10278 (avr_regs_to_save): Ditto.
10279 (signal_function_p): Rename to avr_signal_function_p.
10280 (interrupt_function_p): Rename to avr_interrupt_function_p.
10282 * doc/extend.texi (Function Attributes): Better explanation of
10283 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
10284 alphabetical order.
10286 2012-05-09 Michael Matz <matz@suse.de>
10288 PR tree-optimization/53185
10289 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
10290 peeling when we see strided loads.
10292 2012-05-09 Matthias Klose <doko@ubuntu.com>
10294 * gcc-ar.c (main): Don't check for execute bits for the plugin.
10296 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10298 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
10299 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
10300 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
10301 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
10302 (USE_LOAD_POST_INCREMENT): Define.
10303 (USE_LOAD_PRE_INCREMENT): Define.
10304 (USE_LOAD_POST_DECREMENT): Define.
10305 (USE_LOAD_PRE_DECREMENT): Define.
10306 (USE_STORE_PRE_DECREMENT): Define.
10307 (USE_STORE_PRE_INCREMENT): Define.
10308 (USE_STORE_POST_DECREMENT): Define.
10309 (USE_STORE_POST_INCREMENT): Define.
10310 (arm_auto_incmodes): Add enumeration.
10311 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
10312 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
10314 2012-05-09 Jakub Jelinek <jakub@redhat.com>
10316 PR tree-optimization/53226
10317 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
10318 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
10319 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
10320 doesn't need to be revisited, look for earliest stmt with
10321 !gimple_plf (stmt, GF_PLF_1) if something changed.
10323 2012-05-09 Terry Guo <terry.guo@arm.com>
10325 * genmultilib: Update copyright dates.
10326 * doc/fragments.texi: Ditto.
10328 2012-05-09 Terry Guo <terry.guo@arm.com>
10330 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
10331 * genmultilib (MULTILIB_REQUIRED): New.
10332 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
10334 2012-05-09 Richard Guenther <rguenther@suse.de>
10336 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
10337 (vect_do_peeling_for_loop_bound): Likewise.
10338 (vect_do_peeling_for_alignment): Likewise.
10339 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
10340 (vect_do_peeling_for_loop_bound): Get check_profitability and
10341 threshold as parameters.
10342 (vect_do_peeling_for_alignment): Likewise.
10343 (vect_loop_versioning): Likewise.
10344 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
10345 and threshold here. Control where to put the check here.
10347 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
10349 PR middle-end/53249
10350 * dwarf2out.h (get_address_mode): Move declaration to...
10352 * dwarf2out.c (get_address_mode): Move definition to...
10353 * rtlanal.c: ...here.
10354 * var-tracking.c (get_address_mode): Delete.
10355 * combine.c (find_split_point): Use get_address_mode instead of
10356 targetm.addr_space.address_mode.
10357 * cselib.c (cselib_record_sets): Likewise.
10358 * dse.c (canon_address, record_store): Likewise.
10359 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10360 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
10361 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
10362 (expand_expr_real_1): Likewise.
10363 * ifcvt.c (noce_try_cmove_arith): Likewise.
10364 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
10365 * reload.c (find_reloads): Likewise.
10366 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
10367 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
10369 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
10371 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
10372 information from the instruction produced.
10374 2012-05-09 Richard Guenther <rguenther@suse.de>
10376 * stor-layout.c (bit_from_pos): Document.
10377 (byte_from_pos): Likewise. Optimize.
10378 (pos_from_bit): Likewise.
10379 (normalize_offset): Use pos_from_bit instead of replicating it.
10381 2012-05-09 Alan Modra <amodra@gmail.com>
10384 * config/rs6000/rs6000.c (gen_frame_set): New function.
10385 (gen_frame_load, gen_frame_store): New functions.
10386 (rs6000_savres_rtx): Use the above.
10387 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
10388 Correct mode used for CR2 in save/restore_world patterns.
10389 Don't emit instructions for eh_return frame unwind reg info.
10391 2012-05-08 Jan Hubicka <jh@suse.cz>
10393 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
10395 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
10397 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
10399 (compile_file): Do not output variables.
10400 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
10402 * langhooks.c: Include timevar.h
10403 (write_global_declarations): Finalize compilation unit after wrapup;
10404 set timevars correctly.
10405 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
10406 not to be added to varpool.
10407 * varpool.c (varpool_assemble_decl): Sanity check that we are called
10408 only on cases where it makes sense; skip constant pool and value expr
10411 2012-05-08 David S. Miller <davem@davemloft.net>
10413 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
10414 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
10415 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
10417 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
10419 PR rtl-optimization/53278
10420 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
10421 speed_p code from earlier patch.
10423 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10426 * config/sh/sh.md (*branch_true, *branch_false): New insns.
10428 2012-05-08 Teresa Johnson <tejohnson@google.com>
10430 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
10431 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
10433 2012-05-08 Jan Hubicka <jh@suse.cz>
10435 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
10436 (cgraph_create_node_1): Rename to ...
10437 (cgraph_create_empty_node): ... this one; export.
10438 (cgraph_create_node): Update.
10439 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
10440 (cgraph_create_edge_including_clones): Likewise.
10441 (cgraph_find_replacement_node): Likewise.
10442 (cgraph_clone_edge): Likewise.
10443 (cgraph_clone_node): Likewise.
10444 (clone_function_name): Likewise.
10445 (cgraph_create_virtual_clone): Likewise.
10446 (cgraph_remove_node_and_inline_clones): Likewise.
10447 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
10448 * cgraph.h: Reorder declarations so they match file of origin.
10449 (cgraph_create_empty_node): Declare.
10450 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
10451 (cgraph_copy_node_for_versioning): Likewise.
10452 (cgraph_function_versioning): Likewise.
10453 (cgraph_materialize_clone): Likewise.
10454 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10455 (cgraph_materialize_all_clones): Likewise.
10456 * cgraphclones.c: New file.
10457 * Makefile.in: Update for cgraphclones.
10459 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
10462 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
10463 (ix86_rtx_costs): Handle SET.
10465 2012-05-08 Michael Matz <matz@suse.de>
10467 * basic-block.h (struct rtl_bb_info): Remove visited member and
10468 move head_ member to ...
10469 (struct basic_block_def.basic_block_il_dependent): ... the new
10470 member x, replacing but containing old member rtl.
10471 (enum bb_flags): New BB_VISITED flag.
10472 (BB_HEADER, BB_FOOTER): New macros.
10474 * jump.c (mark_all_labels): Adjust.
10475 * cfgcleanup.c (try_optimize_cfg): Adjust.
10476 * cfglayout.c (record_effective_endpoints): Adjust.
10477 (relink_block_chain): Ditto (and don't fiddle with visited).
10478 (fixup_reorder_chain): Adjust.
10479 (fixup_fallthru_exit_predecessor): Ditto.
10480 (cfg_layout_duplicate_bb): Ditto.
10481 * combine.c (update_cfg_for_uncondjump): Adjust.
10482 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
10483 (bb_visited_trace): New accessor.
10484 (mark_bb_visited): Move in front.
10485 (rotate_loop): Use bb_visited_trace.
10486 (find_traces_1_round): Ditto.
10487 (emit_barrier_after): Ditto.
10488 (copy_bb): Ditto, and initialize visited on resize.
10489 (reorder_basic_blocks): Initize visited member.
10490 (duplicate_computed_gotos): Clear bb flags at start, use
10493 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
10494 (rtl_verify_flow_info_1): Ditto.
10495 (cfg_layout_split_block): Ditto.
10496 (cfg_layout_delete_block): Ditto.
10497 (cfg_layout_merge_blocks): Ditto.
10498 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
10500 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
10503 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
10504 when a constant source operand matches an "I" constraint, the "no
10505 CC0 change" applies to a register-destination only, not a
10506 strict_low_part-destination.
10508 2012-05-08 Richard Guenther <rguenther@suse.de>
10510 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
10511 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
10513 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
10515 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
10517 * doc/avr-mmcu.texi: New auto-generated file.
10518 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
10519 to document all valid -mmcu= arguments.
10521 * config/avr/avr.h (arch_info_s): New struct definition.
10522 * config/avr/avr-devices.c (avr_texinfo): New variable.
10523 * config/avr/gen-avr-mmcu-texi.c: New file.
10524 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
10526 2012-05-08 Dehao Chen <dehao@google.com>
10528 * predict.c (find_qualified_ssa_name): New.
10529 (find_ssa_name_in_expr): New.
10530 (find_ssa_name_in_assign_stmt): New.
10531 (is_comparison_with_loop_invariant_p): New.
10532 (is_bound_expr_similar): New.
10533 (predict_iv_comparison): New.
10534 (predict_loops): Add heuristic for loop-nested branches that compare an
10535 induction variable to a loop bound variable.
10536 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
10538 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
10540 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
10541 TARGET_BDVER2 defines where appropriate.
10543 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
10545 * configure.ac (PLUGIN_LD): Rename into...
10546 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
10547 * config.in: Regenerate.
10548 * configure: Likewise.
10549 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
10551 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
10553 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
10554 computation using the precision of the index type.
10555 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
10556 (fold_array_ctor_reference): Do index computations in the index type.
10558 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
10560 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
10561 down to plus_constant.
10562 (expand_epilogue): Ditto.
10564 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10566 * postreload.c (reload_cse_regs): Make static.
10567 * reload.h (reload_cse_regs): Remove prototype.
10569 2012-05-07 Richard Henderson <rth@redhat.com>
10571 * config/alpha/alpha.md (clear_cache): New pattern.
10573 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10575 PR middle-end/53245
10576 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
10577 is folded to a type boundary value, verify that the resulting case
10578 label is still a care range.
10580 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
10582 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
10583 only for TARGET_GENERIC, when not optimizing for size.
10584 (*ffs<mode>_1): Ditto.
10586 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10588 * tree-cfg.c (verify_gimple_switch): Tighten checks.
10590 2012-05-07 Jakub Jelinek <jakub@redhat.com>
10592 PR tree-optimization/53239
10593 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
10594 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
10596 2012-05-07 Richard Guenther <rguenther@suse.de>
10598 PR tree-optimization/53195
10599 * tree-inline.c (setup_one_parameter): Properly add referenced
10600 vars from the parameters new known value.
10602 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10604 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
10605 (sched_branch_type): Remove.
10606 (m68k_sched_md_init_global): Don't allocate it.
10607 (m68k_sched_md_finish_global): Don't free it.
10608 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
10609 * config/m68k/m68k.md: Set the type of insns using
10610 m68k_sched_branch_type to bcc directly.
10612 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10614 * config/sol2.c (solaris_override_options): New function.
10615 * config/sol2-protos.h (solaris_override_options): Declare.
10616 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
10618 2012-05-07 Richard Guenther <rguenther@suse.de>
10620 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
10621 whether we failed to compute data dependences.
10622 (loop_prefetch_arrays): Fail if we failed.
10624 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
10625 Paolo Bonzini <bonzini@gnu.org>
10627 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
10628 Emit bsf when optimizing for size.
10629 (*ffs<mode>_1): Ditto.
10631 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
10634 * config/sh/sh.c (sh_rtx_costs): Handle SET.
10636 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
10639 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
10640 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
10641 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
10643 (*bswapdi2_doubleword): New insn pattern.
10644 (*bswap<mode>2): Rename from *bswap<mode>2_1.
10646 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
10648 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
10649 (mips_set_reg_reg_cost): Likewise.
10650 (mips_rtx_costs): Handle SET.
10652 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
10654 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
10655 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
10656 to compute the cost of moves. Set the mode of the target register.
10658 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
10660 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
10661 plus_constant function.
10662 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
10663 that the mode is sensible.
10664 (use_anchored_address, round_push, allocate_dynamic_stack_space)
10665 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
10668 * alias.c (canon_rtx): Likewise.
10669 (init_alias_analysis): Likewise.
10670 * builtins.c (expand_builtin_return_addr)
10671 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
10672 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
10673 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
10674 (expand_builtin_stpcpy): Likewise.
10675 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
10676 (compute_argument_addresses, internal_arg_pointer_based_exp)
10677 (expand_call, emit_library_call_value_1): Likewise.
10678 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
10679 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
10680 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
10681 * cse.c (insert_const_anchor, find_reg_offset_for_const)
10682 (use_related_value, fold_rtx): Likewise.
10683 * cselib.c (cselib_subst_to_values): Likewise.
10684 * dse.c (record_store, check_mem_read_rtx): Likewise.
10685 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
10686 * emit-rtl.c (adjust_address_1): Likewise.
10687 * except.c (sjlj_emit_function_enter)
10688 (expand_builtin_extract_return_addr)
10689 (expand_builtin_frob_return_addr): Likewise.
10690 * expmed.c (expand_divmod): Likewise.
10691 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
10692 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
10693 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
10694 * function.c (assign_stack_local_1)
10695 (instantiate_virtual_regs_in_rtx): Likewise.
10696 * optabs.c (prepare_cmp_insn): Likewise.
10697 * recog.c (offsettable_address_addr_space_p): Likewise.
10698 * reload.c (find_reloads_address, form_sum)
10699 (find_reloads_subreg_address): Likewise.
10700 * reload1.c (init_reload, eliminate_regs_1)
10701 (eliminate_regs_in_insn): Likewise.
10702 * simplify-rtx.c (simplify_unary_operation_1)
10703 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
10704 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
10705 (vt_add_function_parameter): Likewise.
10707 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
10708 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
10709 * config/alpha/alpha.c (alpha_legitimize_address_1)
10710 (get_unaligned_address, alpha_expand_unaligned_load)
10711 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
10712 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
10713 (alpha_expand_builtin_establish_vms_condition_handler)
10714 (alpha_setup_incoming_varargs, emit_frame_store_1)
10715 (alpha_expand_prologue, alpha_expand_epilogue)
10716 (alpha_use_linkage): Likewise.
10717 * config/alpha/alpha.md: Likewise.
10719 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
10720 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
10721 (thumb_legitimize_address, arm_gen_load_multiple_1)
10722 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
10723 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
10724 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
10725 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
10726 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
10727 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
10728 (thumb_expand_movmemqi, arm_set_return_address)
10729 (thumb_set_return_address): Likewise.
10730 * config/arm/arm.md: Likewise.
10732 * config/avr/avr.c (avr_incoming_return_addr_rtx)
10733 (avr_prologue_setup_frame, expand_epilogue)
10734 (avr_const_address_lo16): Likewise.
10736 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
10737 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
10738 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
10739 (bfin_output_mi_thunk): Likewise.
10741 * config/c6x/c6x.c (c6x_initialize_trampoline)
10742 (c6x_output_mi_thunk): Likewise.
10744 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
10745 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
10747 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
10748 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
10749 (cris_emit_movem_store, cris_trampoline_init): Likewise.
10750 * config/cris/cris.md: Likewise.
10752 * config/darwin.c (machopic_indirect_data_reference)
10753 (machopic_legitimize_pic_address): Likewise.
10755 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
10756 (epiphany_expand_prologue, epiphany_expand_epilogue)
10757 (epiphany_trampoline_init): Likewise.
10758 * config/epiphany/epiphany.md: Likewise.
10760 * config/fr30/fr30.c (fr30_move_double): Likewise.
10762 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
10763 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
10764 (frv_index_memory, unspec_got_name, frv_find_base_term)
10765 (frv_output_dwarf_dtprel): Likewise.
10767 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
10768 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
10770 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
10771 * config/i386/i386.c (setup_incoming_varargs_64)
10772 (setup_incoming_varargs_ms_64, choose_baseaddr)
10773 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
10774 (ix86_emit_probe_stack_range, ix86_expand_prologue)
10775 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
10776 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
10777 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
10778 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
10779 (x86_output_mi_thunk): Likewise.
10780 * config/i386/i386.md: Likewise.
10782 * config/ia64/ia64.c (ia64_expand_load_address)
10783 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
10784 (do_spill, ia64_trampoline_init): Likewise.
10786 * config/iq2000/iq2000.c (iq2000_va_start)
10787 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
10788 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
10789 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
10791 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10793 * config/m32c/m32c.c (m32c_return_addr_rtx)
10794 (m32c_expand_insv): Likewise.
10796 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
10797 (m32r_legitimize_pic_address, m32r_print_operand)
10798 (m32r_print_operand_address): Likewise.
10800 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
10801 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
10802 (EH_RETURN_HANDLER_RTX): Likewise.
10803 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
10804 (m68k_expand_epilogue, legitimize_pic_address)
10805 (m68k_output_mi_thunk): Likewise.
10806 * config/m68k/m68k.md: Likewise.
10808 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
10809 (mcore_expand_epilog): Likewise.
10810 * config/mcore/mcore.md: Likewise.
10812 * config/mep/mep.c (mep_allocate_initial_value)
10813 (mep_expand_prologue, mep_expand_epilogue): Likewise.
10815 * config/microblaze/microblaze.c (double_memory_operand)
10816 (microblaze_block_move_loop): Likewise.
10818 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
10819 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
10820 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
10821 (mips_expand_prologue, mips_epilogue_set_cfa)
10822 (mips_expand_epilogue): Likewise.
10823 * config/mips/mips.md: Likewise.
10825 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
10826 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
10828 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
10829 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
10831 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
10832 (EH_RETURN_HANDLER_RTX): Likewise.
10833 * config/moxie/moxie.c (moxie_static_chain): Likewise.
10835 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
10836 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
10837 (pa_return_addr_rtx, hppa_builtin_saveregs)
10838 (pa_trampoline_init): Likewise.
10839 * config/pa/pa.md: Likewise.
10841 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
10843 * config/picochip/picochip.c (picochip_static_chain): Likewise.
10845 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
10846 * config/rs6000/rs6000.c (rs6000_legitimize_address)
10847 (setup_incoming_varargs, print_operand, rs6000_return_addr)
10848 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
10849 (rs6000_emit_epilogue)
10850 (rs6000_machopic_legitimize_pic_address): Likewise.
10852 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10854 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
10855 (DYNAMIC_CHAIN_ADDRESS): Likewise.
10856 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
10857 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
10858 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
10859 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
10860 (s390_emit_epilogue, s390_function_profiler): Likewise.
10861 * config/s390/s390.md: Likewise.
10863 * config/score/score.c (score_add_offset, score_prologue): Likewise.
10865 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
10866 (sh_output_mi_thunk): Likewise.
10867 * config/sh/sh.md: Likewise.
10869 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
10870 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
10871 * config/sparc/sparc.c (sparc_legitimize_pic_address)
10872 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
10873 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
10874 (emit_and_preserve): Likewise.
10875 * config/sparc/sparc.md: Likewise.
10877 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10878 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
10879 (spu_setup_incoming_varargs, ea_load_store_inline)
10880 (spu_expand_load): Likewise.
10882 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
10883 (combine_bnp): Likewise.
10885 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10886 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
10887 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
10889 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10890 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
10891 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
10893 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
10894 * config/v850/v850.md: Likewise.
10896 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
10897 (EH_RETURN_HANDLER_RTX): Likewise.
10898 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
10899 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
10900 (print_operand_address, vax_trampoline_init): Likewise.
10902 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
10903 (xtensa_function_value_regno_p): Likewise.
10905 2012-05-04 Andrew Pinski <apinski@cavium.com>
10907 * expr.c (get_def_for_expr_class): New function.
10908 (convert_tree_comp_to_rtx): New function.
10909 (expand_cond_expr_using_cmove): New function.
10910 (expand_expr_real_2 <case COND_EXPR>): Call
10911 expand_cond_expr_using_cmove first and return if it succeeds.
10912 Remove the check for HAVE_conditional_move since we should have
10913 already converted it to a conditional move.
10914 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
10915 modes of DImode for 32bits and TImode.
10917 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
10920 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
10921 (print_md_ptr_loc, print_c_condition): Use them.
10922 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
10923 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
10924 attr_file, dfa_file, latency_file): New global variables.
10925 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
10926 write_upcase, write_indent, write_length_unit_log, write_test_expr,
10927 write_attr_get, write_insn_cases, write_eligible_delay,
10928 write_const_num_delay_slots): Accept FILE pointer and toss it around.
10929 Update all callers.
10930 (write_header, open_outfile, handle_arg): New funcions.
10931 (make_automaton_attrs): Write prototypes as extern to the output
10933 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
10934 names from the command line. Open the output files and write out
10935 internal functions for DFA functions to dfa_file_name, insn latency
10936 functions to latency_file_name, and everything else to attr_file.
10937 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
10938 (BACKEND): Build libbackend first.
10939 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
10940 (.PRECIOUS): Likewise.
10941 (insn-dfatab.o): New rule.
10942 (insn-latencytab.o): New rule.
10943 (simple_rtl_generated_c): Do not include insn-attrtab.c.
10944 (s-attrtab): New rule.
10946 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
10948 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
10949 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
10950 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
10951 * reorg.c (get_jump_flags): Do not set the removed flags.
10953 * doc/md.texi (attr_flag): Update for abovementioned changes.
10955 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
10958 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
10959 (TARGET_CMOV): Rename from TARGET_CMOVE.
10960 (TARGET_CMOVE): New define.
10961 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
10962 Do not set TARGET_CMOVE here.
10964 2012-05-04 Dodji Seketeli <dodji@redhat.com>
10966 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
10967 * opts.c (finish_options): Activate -Wunused-local-typedefs if
10968 -Wunused is activated.
10969 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
10971 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10973 * config/s390/s390.md (*movmem_short, *clrmem_short)
10974 (*cmpmem_short): Move the mode check from the insn condition to
10977 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10979 PR tree-optimization/52633
10980 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
10981 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
10982 (vect_recog_over_widening_pattern): Remove handling of code that was
10983 already detected as over-widening pattern. Remove special handling
10984 of "unsigned" cases. Instead, support general case of conversion
10985 of the shift result to another type.
10987 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10989 * tree-vect-patterns.c (vect_single_imm_use): New function.
10990 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
10991 (vect_recog_over_widening_pattern): Likewise.
10992 (vect_recog_widen_shift_pattern): Likewise.
10994 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10996 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
10997 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
10998 (vect_recog_widen_mult_pattern): Likewise.
10999 (vect_operation_fits_smaller_type): Likewise.
11000 (vect_recog_over_widening_pattern): Likewise.
11001 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
11003 2012-05-04 Richard Guenther <rguenther@suse.de>
11006 * lto-wrapper.c (merge_and_complain): Complain about mismatches
11007 of -freg-struct-return and -fpcc-struct-return.
11008 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
11009 from the input file options and ignore those from the link
11012 2012-05-04 Richard Guenther <rguenther@suse.de>
11014 PR tree-optimization/53168
11015 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
11016 memory reads when the result is a constant we can pun.
11018 2012-05-04 Richard Guenther <rguenther@suse.de>
11020 * common.opt (flto-report): Do not mark as Optimization.
11022 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
11025 * recog.c (constrain_operands): If extra constraints are present, also
11026 accept pseudo-registers with equivalent memory locations during reload.
11028 2012-05-04 Olivier Hainque <hainque@adacore.com>
11030 * collect2.c (may_unlink_output_file): New global.
11031 (maybe_unlink): Honor it.
11032 * collect2.h: Add extern for it.
11033 * tlink.c (do_tlink): Set it to true if the link succeeded.
11035 2012-05-04 Olivier Hainque <hainque@adacore.com>
11037 * gcc.c (eval_spec_function): Finalize/restore the current string
11038 obstack state as part of the context push/pop operations.
11040 2012-05-04 Bin Cheng <bin.cheng@arm.com>
11042 PR rtl-optimization/52804
11043 * reload1.c (reload_reg_reaches_end_p): Check whether successor
11044 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
11045 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
11046 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
11047 RELOAD_FOR_OUTADDR_ADDRESS.
11049 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
11052 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
11053 for macro expansion.
11055 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11057 * flags.h (flag_permissive): Do not declare.
11058 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
11060 * toplev.c (flag_permissive): Do not define.
11061 * c-tree.h (system_header_p): Delete unused.
11063 2012-05-03 David S. Miller <davem@davemloft.net>
11066 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
11067 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
11068 (sparc_emit_float_lib_cmp): Likewise.
11070 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11073 * config/rs6000/rs6000.md (bswapdi splitters): If
11074 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
11075 default) is used, generate an alternate sequence that does not
11076 depend on using indexed addressing.
11078 2012-05-03 Jason Merrill <jason@redhat.com>
11080 * gengtype.c (write_types): Fix warning message.
11081 (write_local): Likewise.
11083 2012-05-02 Jason Merrill <jason@redhat.com>
11085 * dwarf2out.c (struct external_ref, build_local_stub): New.
11086 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
11087 (optimize_external_refs, optimize_external_refs_1): New.
11088 (change_AT_die_ref): New.
11089 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
11090 (build_abbrev_table): Take the external refs hashtable.
11091 (output_comp_unit): Get it from optimize_external_refs and pass it in.
11093 2012-05-03 Jan Hubicka <jh@suse.cz>
11095 PR middle-end/53093
11096 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
11098 2012-05-03 Jan Hubicka <jh@suse.cz>
11100 PR middle-end/53106
11101 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
11103 2012-05-03 Jason Merrill <jason@redhat.com>
11105 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
11106 use_debug_types to discriminate the die_id union.
11107 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
11108 (build_abbrev_table, output_die): Likewise.
11109 (prune_unused_types_walk_attribs): Likewise.
11110 (generate_type_signature, copy_declaration_context): Set it.
11111 (remove_child_or_replace_with_skeleton): Set it.
11112 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
11113 check use_debug_types.
11114 (dwarf2out_finish): Do break_out_includes after .debug_types.
11116 2012-05-03 Jason Merrill <jason@redhat.com>
11118 * dwarf2out.c (modified_type_die): Use scope_die_for.
11119 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
11120 (uses_local_type_r, uses_local_type): New.
11121 (scope_die_for): Keep a type that uses a local type in local scope.
11122 Use get_context_die for namespace and type scope.
11124 2012-05-03 Jason Merrill <jason@redhat.com>
11126 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
11128 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
11129 (dwarf2out_finish): Likewise.
11131 2012-05-03 Martin Jambor <mjambor@suse.cz>
11133 * builtins.c (get_object_alignment_1): Return whether we can determine
11134 the alignment or conservatively assume byte alignment. Return the
11135 alignment by reference. Use get_pointer_alignment_1 for dereference
11137 (get_pointer_alignment_1): Return whether we can determine the
11138 alignment or conservatively assume byte alignment. Return the
11139 alignment by reference. Use get_ptr_info_alignment to get SSA name
11141 (get_object_alignment): Update call to get_object_alignment_1.
11142 (get_object_or_type_alignment): Likewise, fall back to type alignment
11143 only when it returned false.
11144 (get_pointer_alignment): Update call to get_pointer_alignment_1.
11145 * fold-const.c (get_pointer_modulus_and_residue): Update call to
11146 get_object_alignment_1.
11147 * ipa-prop.c (ipa_modify_call_arguments): Update call to
11148 get_pointer_alignment_1.
11149 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
11150 of MEM_REF or TARGET_MEM_REF only when it returns false.
11151 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
11152 get_object_alignment_1.
11153 (ccp_finalize): Use set_ptr_info_alignment.
11154 * tree.h (get_object_alignment_1): Update declaration.
11155 (get_pointer_alignment_1): Likewise.
11156 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
11157 (dump_gimple_stmt): Likewise.
11158 * tree-flow.h (ptr_info_def): Updated comments of fields align and
11160 (get_ptr_info_alignment): Declared.
11161 (mark_ptr_info_alignment_unknown): Likewise.
11162 (set_ptr_info_alignment): Likewise.
11163 (adjust_ptr_info_misalignment): Likewise.
11164 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
11165 and set alignment of SSA names.
11166 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
11167 mark_ptr_info_alignment_unknown.
11168 * tree-ssanames.c (get_ptr_info_alignment): New function.
11169 (mark_ptr_info_alignment_unknown): Likewise.
11170 (set_ptr_info_alignment): Likewise.
11171 (adjust_ptr_info_misalignment): Likewise.
11172 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
11173 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11175 (bump_vector_ptr): Likewise.
11176 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
11177 (vectorizable_store): Likewise.
11178 (vectorizable_load): Likewise.
11180 2012-05-03 Michael Matz <matz@suse.de>
11182 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
11183 in front of basic_block_def.
11184 (struct basic_block_def): Make il.gimple the full struct, not a
11186 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
11188 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
11189 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
11190 NULL il.gimple, which can't happen anymore.
11191 * gimple.h (bb_seq): il.gimple can't be NULL.
11192 (bb_seq_add): Ditto.
11193 (set_bb_seq): Adjust.
11194 (gsi_start_bb, gsi_last_bb): Tidy.
11195 * lto-streamer-in.c (make_new_block): Don't zero members that
11196 are zeroed already, don't allocate a gimple_bb_info.
11197 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
11198 (remove_bb): Clear all il.gimple members.
11199 (gimple_verify_flow_info): Adjust for flat il.gimple.
11200 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
11202 * coretypes.h (const_gimple_seq): Remove typedef.
11203 * gimple.h (gimple_seq_first): Take gimple_seq.
11204 (gimple_seq_first_stmt): Ditto.
11205 (gimple_seq_last): Ditto.
11206 (gimple_seq_last_stmt): Ditto.
11207 (gimple_seq_empty_p): Ditto.
11209 2012-05-03 Richard Guenther <rguenther@suse.de>
11211 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
11213 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
11214 (compute_avail): Do not add possibly trapping operations to
11215 EXP_GEN if they might not be executed in the block.
11217 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
11219 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
11221 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
11223 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
11224 information as early as possible. Update dominance info instead of
11227 2012-05-03 Richard Guenther <rguenther@suse.de>
11229 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
11230 (union_contains_value): Remove.
11231 (vro_valid_in_sets): Likewise.
11232 (op_valid_in_sets): New function.
11233 (valid_in_sets): Use op_valid_in_sets.
11234 (insert_into_preds_of_block): Move dumping ...
11235 (do_regular_insertion): ... here.
11236 (do_partial_partial_insertion): ... and here. Dump that
11237 we've found a partial partial redundancy.
11238 (insert): Dump the current insert iteration.
11240 2012-05-03 Jakub Jelinek <jakub@redhat.com>
11243 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
11244 append program name to it and pass that as first argument
11245 to make_relative_prefix. Always pass standard_libexec_prefix
11246 as last argument to make_relative_prefix. If
11247 make_relative_prefix returns NULL, fall back to
11248 standard_libexec_prefix.
11251 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
11255 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
11256 mode, return that mode.
11259 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
11260 define __ATOMIC_HLE_* macros here.
11261 (ix86_target_macros): But here, using cpp_define_formatted.
11263 2012-05-03 Richard Guenther <rguenther@suse.de>
11265 PR tree-optimization/53144
11266 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
11268 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
11269 with SSA name values.
11270 (vn_reference_lookup_3): Adjust callers.
11272 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11274 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
11275 has_fma4 for AMD processors with both fma3 and fma4 support.
11277 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
11280 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
11283 2012-05-03 Michael Matz <matz@suse.de>
11286 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
11287 (dse_enter_block): Properly iterate the whole sequence even
11288 if the last statement was removed.
11290 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
11292 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
11293 unset flag_jump_tables.
11294 * stmt.c (expand_case): Remove special flag_pic case conditional
11295 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
11297 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11299 * common/config/s390/s390-common.c (s390_option_optimization_table):
11300 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
11301 default when optimizing.
11303 2012-05-02 Martin Jambor <mjambor@suse.cz>
11306 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
11307 of a variable when the contect is a function.
11309 2012-05-02 Michael Matz <matz@suse.de>
11311 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
11312 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
11313 (const_gimple_seq_node): Remove.
11314 (gimple_seq_node): Typedef as gimple.
11315 (struct gimple_statement_base): Add next and prev members,
11316 adjust all WORD markers in using structs.
11317 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
11318 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
11319 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
11320 gimple are the same.
11321 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
11322 gimple_seq, adjust.
11323 (gimple_init_singleton): New function.
11324 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
11325 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
11326 (gsi_stmt): Adjust.
11327 (gsi_stmt_ptr): Remove.
11328 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
11330 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
11331 again, adjust for above changes.
11332 (update_call_edge_frequencies): Adjust for above changes.
11333 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
11334 (gsi_insert_seq_nodes_after): Ditto.
11335 (gsi_split_seq_after): Ditto.
11336 (gsi_set_stmt): Ditto.
11337 (gsi_split_seq_before): Ditto.
11338 (gsi_remove): Ditto.
11339 (gsi_insert_seq_before_without_update): Don't free sequence.
11340 (gsi_insert_seq_after_without_update): Ditto.
11341 (gsi_replace): Assert some more invariants.
11342 (gsi_insert_before_without_update, gsi_insert_after_without_update):
11344 (gsi_for_stmt): Don't search for stmt.
11345 (gsi_insert_on_edge_immediate): Tidy.
11347 * gimple.c (gimple_alloc_k): Remove "sequences".
11348 (gimple_seq_cache): Remove.
11349 (gimple_alloc_stat): Make stmt a singleton sequence.
11350 (gimple_seq_alloc, gimple_seq_free): Remove.
11351 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
11352 (gimple_copy): Ditto.
11353 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
11354 create iterator from correct sequence.
11355 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
11357 2012-05-02 Michael Matz <matz@suse.de>
11359 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
11361 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
11362 sequence, lazily allocate it.
11363 (bb_seq_addr): New function.
11364 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
11365 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
11366 (gsi_none): New function.
11367 (gsi_start_bb): Adjust.
11368 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
11369 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
11370 (gsi_last_bb): Adjust.
11372 * tree-flow-inline.h (phi_nodes_ptr): New function.
11374 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
11375 datastructure and interface change.
11376 (gsi_insert_seq_before_without_update): Ditto.
11377 (gsi_insert_seq_nodes_after): Ditto.
11378 (gsi_insert_seq_after_without_update): Ditto.
11379 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
11380 (gsi_split_seq_before): Ditto.
11381 (gsi_start_phis): Adjust.
11382 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
11383 (vect_transform_loop): Ditto.
11384 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
11385 gimple_seq_copy): Don't use gimple_seq_alloc.
11386 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
11387 (gimplify_seq_add_seq): Ditto.
11388 * lto-streamer-in.c (make_new_block): Ditto.
11389 * tree-cfg.c (create_bb): Ditto.
11390 * tree-sra.c (initialize_parameter_reductions): Ditto.
11392 2012-05-02 Michael Matz <matz@suse.de>
11394 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
11395 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
11396 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
11397 set_bb_seq): Move down to after gimple_statement_d definition.
11399 2012-05-02 Michael Matz <matz@suse.de>
11401 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
11402 gsi_replace_with_seq, instead of inserting itself.
11403 * gimple-iterator.c (gsi_replace_with_seq): New function.
11404 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
11405 iterator instead of statement, advance it.
11406 (ssa_forward_propagate_and_combine): Adjust call to above.
11408 2012-05-02 Michael Matz <matz@suse.de>
11410 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
11412 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
11413 * tree-nested.c (walk_gimple_omp_for): Ditto.
11414 * trans-mem.c (lower_transaction): Ditto.
11415 * tree-eh.c (do_return_redirection): Ditto.
11416 (do_goto_redirection): Ditto.
11417 (lower_try_finally_switch): Ditto.
11418 * gimplify.c (gimplify_stmt): Ditto.
11419 (gimplify_scan_omp_clauses): Ditto.
11420 (gimplify_omp_for): Ditto.
11421 (gimplify_function_tree): Ditto.
11422 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
11423 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
11424 (mf_build_check_statement_for): Ditto.
11425 (mx_register_decls): Ditto.
11426 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
11427 and don't use itertors to append.
11428 (insert_stmts): Ditto.
11429 (insert_out_of_ssa_copy): Ditto.
11430 (insert_out_of_ssa_copy_on_edge): Ditto.
11432 2012-05-02 Michael Matz <matz@suse.de>
11434 * gimple.h (gimple_bind_body_ptr): New function.
11435 (gimple_bind_body): Use it.
11436 (gimple_catch_handler): Use gimple_catch_handler_ptr.
11437 (gimple_eh_filter_failure_ptr): New function.
11438 (gimple_eh_filter_failure): Use it.
11439 (gimple_eh_else_n_body_ptr): New function.
11440 (gimple_eh_else_n_body): Use it.
11441 (gimple_eh_else_e_body_ptr): New function.
11442 (gimple_eh_else_e_body): Use it.
11443 (gimple_try_eval_ptr): New function.
11444 (gimple_try_eval): Use it.
11445 (gimple_try_cleanup_ptr): New function.
11446 (gimple_try_cleanup): Use it.
11447 (gimple_wce_cleanup_ptr): New function.
11448 (gimple_wce_cleanup): Use it.
11449 (gimple_omp_body_ptr): New function.
11450 (gimple_omp_body): Use it.
11451 (gimple_omp_for_pre_body_ptr): New function.
11452 (gimple_omp_for_pre_body): Use it.
11453 (gimple_transaction_body_ptr): New function.
11454 (gimple_transaction_body): Use it.
11455 (gsi_split_seq_before): Adjust to return nothing and take pointer
11457 (gsi_set_stmt): Declare.
11458 (gsi_replace_with_seq): Declare.
11459 (walk_gimple_seq_mod): Declare.
11460 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
11462 * gimple-iterator.c (gsi_set_stmt): New function.
11463 (gsi_split_seq_before): Return new sequence via pointer argument.
11464 (gsi_replace): Use gsi_set_stmt.
11466 * tree-ssa-loop-im.c (move_computations_stmt): First remove
11468 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
11469 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
11471 (reserve_phi_args_for_new_edge): Change call to above,
11474 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
11475 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
11476 iterators. Adjust call to lower_omp.
11477 (lower_lastprivate_clauses): Adjust call to lower_omp.
11478 (lower_reduction_clauses): Ditto.
11479 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
11480 (lower_omp_sections): Don't explicitely count sequence length,
11481 nullify lowered bodies earlier, ensure stmts are part of only
11482 one sequence, adjust call to lower_omp.
11483 (lower_omp_single): Ensure stmts are part of only one sequence,
11484 adjust call to lower_omp.
11485 (lower_omp_master): Ditto.
11486 (lower_omp_ordered): Ditto.
11487 (lower_omp_critical): Ditto.
11488 (lower_omp_for): Ditto.
11489 (lower_omp_taskreg): Ditto, tidy.
11490 (lower_omp_1): Adjust calls to lower_omp.
11491 (execute_lower_omp): Ditto.
11492 (lower_omp): Adjust to take pointer to sequence.
11493 (diagnose_sb_2): Use walk_gimple_seq_mod.
11494 (diagnose_omp_structured_block_errors): Ditto and set possibly
11495 changed function body.
11496 * gimple-low.c (lower_function_body): Set function body after
11498 (lower_sequence): Adjust to take pointer to sequence.
11499 (lower_omp_directive): Ensure stmt isn't put twice into the
11500 sequence, adjust call to lower_sequence.
11501 (lower_stmt): Adjust calls to lower_sequence.
11502 (lower_gimple_bind): Ditto.
11503 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
11504 * tree-nested.c (walk_body): Take pointer to sequence, use
11505 walk_gimple_seq_mod.
11506 (walk_function): Adjust call to walk_body, set possibly changed body.
11507 (walk_gimple_omp_for): Adjust calls to walk_body.
11508 (convert_nonlocal_omp_clauses): Ditto.
11509 (convert_nonlocal_reference_stmt): Ditto.
11510 (convert_local_omp_clauses): Ditto.
11511 (convert_local_reference_stmt): Ditto.
11512 (convert_tramp_reference_stmt): Ditto.
11513 (convert_gimple_call): Ditto.
11514 (convert_nl_goto_reference): Use local iterator copy.
11515 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
11516 but taking pointer to sequence, ensure gsi_start is called with
11518 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
11519 asserting that the sequence head didn't change.
11520 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
11521 walk_gimple_seq_mod.
11522 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
11523 (execute_lower_tm): Ditto, and set possibly changed body.
11524 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
11525 call gsi_start with that lvalue.
11526 (replace_goto_queue_stmt_list): Ditto.
11527 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
11528 (replace_goto_queue): Ditto.
11529 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
11530 (lower_try_finally_onedest): Ditto.
11531 (lower_try_finally_copy): Ditto.
11532 (lower_try_finally_switch): Ditto.
11533 (lower_try_finally): Ditto.
11534 (lower_eh_filter): Ditto.
11535 (lower_eh_must_not_throw): Ditto.
11536 (lower_cleanup): Ditto.
11537 (lower_eh_constructs_2): Ditto.
11538 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
11539 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
11540 set possibly changed body.
11541 (optimize_double_finally): Call gsi_start with lvalue.
11543 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
11544 (gimple_split_block): Ditto.
11545 (gimple_merge_blocks): Use gsi_start_phis.
11546 (move_stmt_r): Use walk_gimple_seq_mod.
11547 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
11548 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
11549 (rebuild_cgraph_edges): Ditto.
11550 (cgraph_rebuild_references): Ditto.
11551 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
11552 * tree-inline.c (copy_phis_for_bb): Ditto.
11553 * tree-ssa-dce.c: Ditto.
11555 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
11557 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
11558 Andi Kleen <ak@linux.intel.com>
11560 * coretypes.h (MEMMODEL_MASK): New.
11561 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
11562 and return new variable.
11563 (expand_builtin_atomic_exchange): Mask memmodel values.
11564 (expand_builtin_atomic_compare_exchange): Ditto.
11565 (expand_builtin_atomic_load): Ditto.
11566 (expand_builtin_atomic_store): Ditto.
11567 (expand_builtin_atomic_clear): Ditto.
11568 * doc/extend.texi: Mention port-dependent memory model flags.
11569 * config/i386/cpuid.h (bit_HLE): New.
11570 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11572 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
11573 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
11574 (ix86_target_string)<-mhle>: New.
11575 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
11576 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
11577 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
11578 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
11579 enabled for generic, generic64 and core-avx2.
11580 (ix86_print_operand): Generate HLE lock prefixes.
11581 (ix86_memmodel_check): New.
11582 (TARGET_MEMMODEL_CHECK): Ditto.
11583 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
11584 (IX86_HLE_ACQUIRE): Ditto.
11585 (IX86_HLE_RELEASE): Ditto.
11586 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
11587 * config/i386/i386.opt (mhle): Ditto.
11588 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
11589 success model to instruction emitter.
11590 (atomic_fetch_add<mode>): Ditto.
11591 (atomic_exchange<mode>): Ditto.
11592 (atomic_add<mode>): Ditto.
11593 (atomic_sub<mode>): Ditto.
11594 (atomic_<code><mode>): Ditto.
11595 (*atomic_compare_and_swap_doubledi_pic): Ditto.
11596 (atomic_compare_and_swap_single<mode>): Define and use argument
11598 (atomic_compare_and_swap_double<mode>): Ditto.
11599 * configure.ac: Check if assembler support HLE prefixes.
11600 * configure: Regenerate.
11601 * config.in: Ditto.
11603 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
11605 PR middle-end/53153
11606 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
11608 (gimplify_switch_expr): ... here.
11609 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
11610 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
11611 to clean up case labels with values outside the index type range.
11612 (simplify_gimple_switch): Call it if something changed.
11613 Remove strange and unnecessary assert.
11615 2012-05-02 Richard Guenther <rguenther@suse.de>
11617 * fold-const.c (div_if_zero_remainder): sizetypes no longer
11619 (int_const_binop_1): New worker for int_const_binop with
11620 overflowable parameter. Pass it through to force_fit_type_double.
11621 (int_const_binop): Wrap around int_const_binop_1 with overflowable
11623 (size_binop_loc): Call int_const_binop_1 with overflowable equal
11624 to minus one, forcing overflow detection for even unsigned types.
11625 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
11626 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
11627 * stor-layout.c (initialize_sizetypes): sizetypes no longer
11629 (layout_type): For zero-sized arrays ignore overflow on the
11631 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
11632 (bit_value_binop_1): Likewise.
11633 * tree.c (double_int_to_tree): Likewise.
11634 (double_int_fits_to_tree_p): Likewise.
11635 (force_fit_type_double): Likewise.
11636 (host_integerp): Likewise.
11637 (int_fits_type_p): Likewise.
11638 * varasm.c (output_constructor_regular_field): Sign-extend the
11639 field-offset to cater for negative offsets produced by the Ada
11641 * omp-low.c (extract_omp_for_data): Convert the loop step to
11642 signed for pointer adjustments.
11644 2012-05-02 Richard Guenther <rguenther@suse.de>
11646 * tree.c (valid_constant_size_p): New function.
11647 * tree.h (valid_constant_size_p): Declare.
11648 * cfgexpand.c (expand_one_var): Adjust check for too large
11649 variables by using valid_constant_size_p.
11650 * varasm.c (assemble_variable): Likewise.
11652 * c-decl.c (grokdeclarator): Properly check for sizes that
11653 cover more than half of the address-space.
11655 2012-05-02 Jakub Jelinek <jakub@redhat.com>
11657 PR tree-optimization/53163
11658 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
11659 return value from compute_all_dependences.
11661 PR rtl-optimization/53160
11662 * ree.c (combine_reaching_defs): Handle the case where cand->insn
11663 has been modified by ree pass already.
11665 2012-05-01 Ian Lance Taylor <iant@google.com>
11668 * c-decl.c (build_compound_literal): Make the decl readonly if it
11669 an array of a readonly type.
11670 * gimplify.c (gimplify_compound_literal_expr): Add fallback
11671 parameter. Change all callers. If the decl is not addressable
11672 and is not an l-value, make it readonly.
11674 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
11676 * ira.c (allocated_reg_info_size): New static variable.
11677 (expand_reg_info): Manage it. Call
11678 setup_preferred_alternate_classes_for_new_pseudos.
11679 (ira): Don't do it here. Remove local allocated_reg_info_size,
11680 set the global before calling find_moveable_pseudos.
11681 (find_moveable_pseudos): Call expand_reg_info rather than
11684 2012-05-01 Richard Henderson <rth@redhat.com>
11686 * common.opt (fsync-libcalls): New.
11687 * doc/invoke.texi: Document it.
11688 * optabs.c (init_sync_libfuncs): Honor it.
11690 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
11691 Richard Sandiford <r.sandiford@uk.ibm.com>
11693 PR rtl-optimization/52543
11694 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
11696 * lower-subreg.h: New file.
11697 * target-globals.h (this_target_lower_subreg): Declare.
11698 (target_globals): Add lower_subreg;
11699 (restore_target_globals): Restore this_target_lower_subreg.
11700 * target-globals.c: Include it.
11701 (default_target_globals): Add default_target_lower_subreg.
11702 (save_target_globals): Initialize target_lower_subreg.
11703 * rtl.h (init_lower_subreg): Added declaration.
11704 * toplev.c (backend_init_target): Call initializer for lower-subreg
11706 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
11707 (default_target_lower_subreg): New variable.
11708 (this_target_lower_subreg): Likewise.
11709 (twice_word_mode, choices): New macros.
11710 (shift_cost, compute_splitting_shift, compute_costs)
11711 (init_lower_subreg): New functions.
11712 (resolve_simple_move): Add speed_p argument. Check choices.
11713 (find_pseudo_copy): Don't check the mode size here.
11714 (resolve_simple_move): Assert the mode size.
11715 (find_decomposable_shift_zext): Add speed_p argument and return
11716 a bool. Check choices.
11717 (resolve_shift_zext): Add comment.
11718 (dump_shift_choices, dump_choices): New functions.
11719 (decompose_multiword_subregs): Dump list of profitable
11720 transformations. Add code to skip non profitable transformations.
11721 Update calls to simple_move and find_decomposable_shift_zext.
11723 2012-05-01 Ian Bolton <ian.bolton@arm.com>
11724 Sameera Deshpande <sameera.deshpande@arm.com>
11725 Greta Yorsh <greta.yorsh@arm.com>
11727 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
11728 (thumb1_unexpanded_epilogue): ...this.
11729 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
11730 (thumb1_unexpanded_epilogue): ...this.
11731 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
11732 (thumb1_unexpanded_epilogue): ...this.
11734 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
11736 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
11737 comparing enumeration values. Update comments.
11739 2012-05-01 Alan Modra <amodra@gmail.com>
11742 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
11743 load_cr_save, add_crlr_cfa_restore): New functions.
11744 (rs6000_restore_saved_cr): Rename to..
11745 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
11746 (rs6000_emit_epilogue): Use new functions. Adjust condition
11747 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
11748 regs when using out-of-line restore only when shrink wrapping.
11750 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11752 PR middle-end/53136
11753 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
11754 calls to cgraph_node_name in xstrdup.
11755 (ipa_make_edge_direct_to_target): Ditto.
11756 * cgraph.c (dump_cgraph_node): Ditto.
11757 * tree-sra.c (convert_callers_for_node): Ditto.
11758 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
11759 * ipa-cp.c (perhaps_add_new_callers): Ditto.
11760 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
11761 (cgraph_materialize_all_clones): Ditto.
11762 * ipa-inline.c (report_inline_failed_reason): Ditto.
11763 (want_early_inline_function_p): Ditto.
11764 (edge_badness): Ditto.
11765 (update_edge_key): Ditto.
11766 (flatten_function): Ditto.
11767 (ipa_inline): Ditto.
11768 (inline_always_inline_functions): Ditto.
11769 (early_inline_small_functions): Ditto.
11771 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11774 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
11775 constraints 0 and 1.
11777 012-04-30 Jan Hubicka <jh@suse.cz>
11779 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
11780 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
11781 (cgraph_add_to_same_comdat_group): Remove.
11782 (cgraph_add_asm_node): Move to cgraphunit.c.
11783 (cgraph_make_decl_local): Move to symtab.c
11784 (cgraph_make_node_local_1): Update.
11785 (cgraph_can_remove_if_no_direct_calls_and): Update.
11786 (used_from_object_file_p): Update.
11787 (resolution_used_from_other_file_p): Move to symtab.c
11788 (cgraph_used_from_object_file_p): move to symtab.c
11789 (verify_cgraph_node): Verify same comdat groups.
11790 * cgraph.h (cgraph_asm_node): Rename to ...
11791 (asm_node): ... this one.
11792 (cgraph_asm_nodes): Rename to ...
11793 (asm_nodes): ... this one.
11794 (symtab_add_to_same_comdat_group): New function.
11795 (symtab_dissolve_same_comdat_group_list): New function.
11796 (symtab_used_from_object_file_p): Declare.
11797 (symtab_make_decl_local): Declare.
11798 (cgraph_add_to_same_comdat_group): Remove.
11799 (cgraph_add_asm_node): Remove.
11800 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
11802 (cgraph_finalize_compilation_unit): Rename to ...
11803 (finalize_compilation_unit): ... this one.
11804 (cgraph_optimize): Rename to ....
11805 (compile): ... this one.
11806 (add_asm_node): Declare.
11807 (fixup_same_cpp_alias_visibility): Declare.
11808 (cgraph_make_decl_local): Remove.
11809 (varpool_assemble_pending_decls): Rename to ...
11810 (varpool_output_variables): ... this one.
11811 (varpool_remove_unreferenced_decls): Remove.
11812 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
11813 (preserve_function_body_p): Make static.
11814 * toplev.c (compile_file): Update comments; update.
11815 * cgraphunit.c: Update comments.
11816 (cgraph_expand_all_functions): Rename to ...
11817 (expand_all_functions): ... this one; update.
11818 (cgraph_mark_functions_to_output): Rename to ...
11819 (mark_functions_to_output): ... this one; cleanup.
11820 (cgraph_output_pending_asms): Remove prototype.
11821 (asm_nodes, asm_last_node): New static vars.
11822 (cgraph_process_new_functions): Update.
11823 (cgraph_reset_node): Cleanup; add comment.
11824 (cgraph_add_new_function): Update.
11825 (cgraph_output_pending_asms): Rename to ...
11826 (output_asm_statements): ... this one.
11827 (add_asm_node): New function.
11828 (fixup_same_cpp_alias_visibility): New function based on code
11829 in cgraph_analyze_function.
11830 (cgraph_analyze_function): Use it.
11831 (cgraph_order_sort): Update.
11832 (cgraph_output_in_order): Update.
11833 (cgraph_function_versioning): Update.
11834 (cgraph_optimize): Rename to ...
11835 (compile): ... this one; initialize streamer hooks here.
11836 (cgraph_finalize_compilation_unit): Rename to ...
11837 (finalize_compilation_unit): ... this one; do not initialize streamer
11839 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
11840 * dwarf2out.c: Update ocmment.
11841 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
11842 * method.c (use_thunk): Likewise.
11843 * semantics.c (maybe_add_lambda_conv_op): Likewise.
11844 * decl2.c (maybe_emit_vtables): Likewise.
11845 (cp_write_global_declarations): Use finalize_compilation_unit.
11846 * parser.c (cp_parser_asm_definition): Use add_asm_node.
11847 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
11848 * c-decl.c (c_write_global_declarations): Use
11849 finalize_compilation_unit.
11850 * langhooks.c (write_global_declarations): Update.
11851 * ipa.c (cgraph_externally_visible_p): Update.
11852 (dissolve_same_comdat_group_list): Remove.
11853 (function_and_variable_visibility): Update.
11854 * symtab.c: Inlcude lto-streamer.h and rtl.h
11855 (ld_plugin_symbol_resolution_names): New.
11856 (symtab_add_to_same_comdat_group): New.
11857 (symtab_dissolve_same_comdat_group_list): New.
11858 (resolution_used_from_other_file_p): Move here from cgraph.c
11859 (symtab_used_from_object_file_p): New.
11860 (symtab_make_decl_local): New.
11861 * passes.c (register_pass): Update comments.
11862 * c-parser.c (c_parser_asm_definition): Update.
11863 * varpool.c (varpool_analyze_node): Use
11864 fixup_same_cpp_alias_visibility.
11865 (varpool_remove_unreferenced_decls): Make static.
11866 (varpool_assemble_pending_decls): Rename to ...
11867 (varpool_output_variables): ... this one; call
11868 varpool_remove_unreferenced_decls.
11869 (varpool_used_from_object_file_p): Remove.
11871 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
11874 * c-typeck.c (build_array_ref): Call
11875 convert_vector_to_pointer_for_subscript.
11876 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
11878 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11880 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
11881 to compile-time "mode == <MODE>mode" checks.
11882 (and splitter): Ditto.
11884 2012-04-30 Richard Henderson <rth@redhat.com>
11886 * config/arm/arm.md (UNSPEC_LL): New.
11887 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
11888 (arm_load_exclusivedi): Use %H0.
11890 2012-04-30 Jason Merrill <jason@redhat.com>
11892 * dwarf2out.c (comdat_symbol_id): Add const.
11893 (union die_symbol_or_type_node): Add const to die_symbol.
11894 (output_die_symbol, output_die, output_comp_unit): Adjust.
11896 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
11898 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
11899 * config/arm/neon.md (negdi2_neon): New insn.
11900 Also add splitters for core and NEON registers.
11902 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
11904 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
11905 (arm_print_operand): Add 'x' format.
11906 * config/arm/constraints.md (Dn): Allow const_int.
11907 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
11908 Use 'x' format to print constants.
11909 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
11910 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
11912 (movdi_vfp_cortexa8): Likewise.
11914 2012-04-30 Ian Bolton <ian.bolton@arm.com>
11915 Sameera Deshpande <sameera.deshpande@arm.com>
11916 Greta Yorsh <greta.yorsh@arm.com>
11918 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
11919 * config/arm/arm.c (ldm_stm_operation_p): New function.
11920 * config/arm/predicates.md (load_multiple_operation): Update predicate.
11921 (store_multiple_operation): Likewise.
11923 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
11924 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
11925 * config/arm/predicates.md (load_multiple_operation): Add arguments.
11926 (store_multiple_operation): Likewise.
11928 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11930 * config/i386/i386.md (and<mode>3): Expand masking operations with
11931 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
11932 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
11934 2012-04-30 Dodji Seketeli <dodji@redhat.com>
11936 Add -Wvarargs option
11937 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
11938 argument for the various warning_at calls.
11939 * docs/invoke.texi: Update the documentation.
11941 2012-04-30 Dodji Seketeli <dodji@redhat.com>
11943 Switch -ftrack-macro-expansion=2 on by default.
11944 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
11947 Fix va_start related location
11948 * builtins.c (fold_builtin_next_arg): Unwinds to the first
11949 location in real source code.
11951 Make conversion warnings work on NULL with -ftrack-macro-expansion
11952 * input.h (expansion_point_location_if_in_system_header): Declare
11954 * input.c (expansion_point_location_if_in_system_header): Define it.
11956 Fix -Wuninitialized for -ftrack-macro-expansion
11957 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
11958 declaration. Use linemap_location_before_p for source locations.
11960 Strip "<built-in>" loc from displayed expansion context
11961 * input.c (expand_location_1): When expanding to spelling location
11962 in a context of a macro expansion, skip reserved system header
11963 locations. Update comments. * tree-diagnostic.c
11964 (maybe_unwind_expanded_macro_loc): Likewise.
11966 Make expand_location resolve to locus in main source file
11967 * input.c (expand_location_1): New. Takes a parameter to choose
11968 whether to resolve the location to spelling or expansion point.
11969 Was factorized from ...
11970 (expand_location): ... here.
11971 (expand_location_to_spelling_point): New. Implemented in terms of
11973 * diagnostic.c (diagnostic_build_prefix): Use the new
11974 expand_location_to_spelling_point instead of expand_location.
11976 Fix PCH crash on GTYed pointer-to-scalar field of a struct
11977 * gengtype.c (write_types_process_field): Force second argument of
11978 the call to the PCH object hierarchy walker to be 'x'.
11980 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
11982 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
11983 predicate to discriminate types.
11985 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
11987 * doc/invoke.texi (Wmissing-format-attribute): Document as an
11988 alias of Wsuggest-attribute=format.
11989 * c-typeck.c (convert_for_assignment): Replace
11990 Wmissing-format-attribute with Wsuggest-attribute=format.
11991 (digest_init): Likewise.
11993 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11995 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
11996 * common.opt (Wmissing-noreturn): Alias of
11997 -Wsuggest-attribute=noreturn.
11999 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
12002 * config/cris/cris.md (andqu): New peephole2.
12003 (andu): Tweak head comment.
12005 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
12006 Steven Bosscher <steven@gcc.gnu.org>
12007 Maxim Kuvyrkov <maxim@codesourcery.com>
12009 PR tree-optimization/38785
12010 * common.opt (ftree-partial-pre): New option.
12011 * doc/invoke.texi: Document it.
12012 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
12013 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
12014 benefit speed path.
12015 (execute_pre): Use flag_tree_partial_pre.
12017 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12020 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
12023 2012-04-27 Ollie Wild <aaw@google.com>
12025 * doc/invoke.texi (Wliteral-suffix): Document new option.
12027 2012-04-27 Tom Tromey <tromey@redhat.com>
12029 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
12030 (dwarf_tag_name): Use get_DW_TAG_name.
12031 (dwarf_attr_name): Use get_DW_AT_name.
12032 (dwarf_form_name): Use get_DW_FORM_name.
12033 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
12035 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
12037 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
12038 arguments are -1 and 0, by negating the result of the conditional.
12040 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
12043 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
12045 2012-04-27 Richard Guenther <rguenther@suse.de>
12047 * tree-flow.h (is_hidden_global_store): Remove.
12048 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
12049 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
12050 (stmt_may_clobber_global_p): Likewise.
12051 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
12052 (stmt_may_clobber_global_p): Likewise.
12053 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
12054 stmt_may_clobber_global_p.
12055 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
12057 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
12059 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
12062 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
12063 reorganize some fields and update comments. Rename bit_test_uniq
12064 and bit_test_count to uniq resp. count. Remove bit_test_bb.
12065 (collect_switch_conv_info): New function, collects info about a
12066 GIMPLE_SWITCH into a struct switch_conv_info.
12067 (check_range): Simplify to use pre-recorded info. Fix think-o in
12068 range-branch ratio check.
12069 (check_process_case): Remove function.
12070 (check_all_empty_except_final): New function, verifies that all
12071 non-final basic blocks are empty.
12072 (process_switch): Simplify to use pre-recorded info. Call
12073 collect_switch_conv_info to do that. Assert that degenerate switch
12074 statements have been cleaned up.
12076 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
12078 PR middle-end/27139
12079 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
12081 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12084 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
12086 2012-04-27 Tom de Vries <tom@codesourcery.com>
12088 PR tree-optimization/51879
12089 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
12090 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
12092 (defs_to_varying): ... here. Don't set use_processed.
12093 (visit_reference_op_call): Handle gimple_vdef.
12094 Handle case that lhs is NULL_TREE.
12095 (visit_use): Use mark_use_processed. Handle calls with side-effect
12096 using visit_reference_op_call.
12098 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12100 * sched-deps.c (fixup_sched_groups): Rename to...
12101 (chain_to_prev_insn): ...this.
12102 (chain_to_prev_insn_p): New function.
12103 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
12105 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12107 * sched-int.h (_haifa_insn_data): Move priority_status.
12109 (INSN_MODEL_INDEX): New macro.
12110 * haifa-sched.c (insn_delay): New function.
12111 (sched_regno_pressure_class): Update commentary.
12112 (mark_regno_birth_or_death): Pass the liveness bitmap and
12113 pressure array as arguments, instead of using curr_reg_live and
12114 curr_reg_pressure. Only update the pressure if the bit in the
12115 liveness set has changed.
12116 (initiate_reg_pressure_info): Always trust the live-in set for
12117 SCHED_PRESSURE_MODEL.
12118 (initiate_bb_reg_pressure_info): Update call to
12119 mark_regno_birth_or_death.
12120 (dep_list_size): Take the list as argument.
12121 (calculate_reg_deaths): New function, extracted from...
12122 (setup_insn_reg_pressure_info): ...here.
12123 (MODEL_BAR): New macro.
12124 (model_pressure_data, model_insn_info, model_pressure_limit)
12125 (model_pressure_group): New structures.
12126 (model_schedule, model_worklist, model_insns, model_num_insns)
12127 (model_curr_point, model_before_pressure, model_next_priority):
12129 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
12130 (MODEL_INSN_INFO, MODEL_INSN): New macros.
12131 (model_index, model_update_limit_points_in_group): New functions.
12132 (model_update_limit_points, model_last_use_except): Likewise.
12133 (model_start_update_pressure, model_update_pressure): Likewise.
12134 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
12135 (model_excess_cost, model_dump_pressure_points): Likewise.
12136 (model_set_excess_costs): Likewise.
12137 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
12138 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
12139 schedule as an alternative tie-breaker. Update the call to
12141 (ready_sort): Call model_set_excess_costs.
12142 (update_register_pressure): Update call to mark_regno_birth_or_death.
12143 Rely on that function to check liveness rather than doing it here.
12144 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
12145 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
12146 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
12147 (model_record_pressure, model_record_pressures): New functions.
12148 (model_record_final_pressures, model_add_successors_to_worklist)
12149 (model_promote_predecessors, model_choose_insn): Likewise.
12150 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
12151 (model_start_schedule, model_finalize_pressure_group): Likewise.
12152 (model_end_schedule): Likewise.
12153 (schedule_insn): Say when we're scheduling the next instruction
12154 in the model schedule.
12155 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
12156 (queue_to_ready): Do not add instructions that are
12157 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
12158 Always allow the next instruction in the model schedule to be added.
12159 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
12160 and delay for SCHED_PRESSURE_MODEL too.
12161 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
12162 SCHED_PRIORITY_MODEL, but also take the DFA into account.
12163 (schedule_block): Call model_start_schedule and model_end_schedule.
12164 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
12165 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12166 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
12168 (sched_finish): Update accordingly.
12169 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12170 to SCHED_PRESSURE_MODEL.
12171 (add_jump_dependencies): Update call to dep_list_size.
12172 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
12173 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12174 to SCHED_PRESSURE_MODEL.
12175 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
12176 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
12177 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
12178 handling to SCHED_PRESSURE_MODEL.
12180 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12182 * common.opt (fsched-pressure-algorithm=): New option.
12183 * flag-types.h (sched_pressure_algorithm): New enum.
12184 * sched-int.h (sched_pressure_p): Replace with...
12185 (sched_pressure): ...this new variable.
12186 * haifa-sched.c (sched_pressure_p): Replace with...
12187 (sched_pressure): ...this new variable.
12188 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
12189 (update_reg_and_insn_max_reg_pressure, schedule_insn)
12190 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
12191 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
12192 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12193 (sched_analyze_insn): Likewise.
12194 * sched-rgn.c (schedule_region): Likewise.
12195 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
12197 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
12199 * PR middle-end/52997
12200 * ira.c (find_moveable_pseudos): Call resize_reg_info.
12202 PR middle-end/52940
12203 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
12204 * expr.c (convert_move): Honor unsignedp when extending partial int
12206 * genmodes.c (complete_mode): Don't clear component field of partial
12208 (emit_mode_inner): Don't emit it however.
12209 (calc_wider_mode): Partial int modes widen to their component.
12211 2012-04-26 David S. Miller <davem@davemloft.net>
12213 * config/sparc/niagara4.md: New file.
12214 * config/sparc/sparc.md: Include it.
12215 * config/sparc/sparc.c (niagara4_costs): New processor costs.
12216 (sparc_option_override): Use it.
12217 (sparc_use_sched_lookahead): Return 2 for niagara4.
12218 (sparc_issue_rate): Likewise.
12220 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
12221 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
12222 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
12223 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
12224 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
12225 alignaddrldi_vis): Set type to gsr.
12226 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
12227 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
12228 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
12229 v<vis3_shift_patname><mode>3, fmean16_vis,
12230 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
12231 fucmp<code>8<P:mode>_vis): Set type to fga.
12232 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
12233 * config/sparc/niagara.md: Likewise.
12234 * config/sparc/niagara2.md: Likewise.
12235 * config/sparc/ultra3.md: Likewise, and fix type matching for
12236 us3_ialuX reservation.
12238 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12240 * reload.c (find_reloads): Change the loop nesting when trying an
12241 alternative with swapped operands.
12243 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12245 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
12246 comment. Delete unused parameter first_exp_point_map.
12247 (virt_loc_aware_diagnostic_finalizer): Update call.
12249 2012-04-26 Michael Hope <michael.hope@linaro.org>
12250 Richard Earnshaw <rearnsha@arm.com>
12252 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
12253 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
12254 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
12255 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
12257 2012-04-25 Sriraman Tallam <tmsriram@google.com>
12259 * doc/extend.texi: Document avx2 support.
12260 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
12262 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
12265 * config/cris/cris.md ("*andhi_lowpart_v32")
12266 ("*andqi_lowpart_v32"): Change first input-only operand from
12267 a (match_operand ...) to (match_dup 0). Drop alternatives with
12268 const_int-matching constraints for redundancy.
12269 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
12270 three-operand alternative.
12272 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12275 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
12276 instead expand it as zero extension.
12278 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
12281 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
12283 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12285 * common.opt (flag_debug_types_section): Default to 0.
12286 (dwarf_version): Default to 4.
12287 (dwarf_record_gcc_switches): Default to 1.
12288 (dwarf_strict): Default to 0.
12289 * toplev.c (process_options): Don't handle dwarf_strict
12290 or dwarf_version here.
12291 * config/vxworks.c (vxworks_override_options): Don't
12292 test whether dwarf_strict or dwarf_version are negative,
12293 instead test !global_options_set.x_dwarf_*.
12294 * config/darwin.c (darwin_override_options): Default to
12296 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
12297 and -fno-debug-types-section are now the default.
12299 2012-04-25 Jan Hubicka <jh@suse.cz>
12301 * cgraphunit.c: Update toplevel comment.
12302 (tree_rest_of_compilation): Merge into cgraph_expand_function.
12303 (cgraph_analyze_function): Make static.
12304 (cgraph_decide_is_function_needed): Make static.
12305 (cgraph_add_new_function): Use expand_function instead of
12306 rest_of_compilation.
12307 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
12308 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
12310 (cgraph_inline_p): Remove.
12311 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
12312 (init_cgraph): Add comment.
12313 * cgraphbuild.c (record_reference, mark_address, mark_load,
12314 mark_store): Do not call analyze_expr hook.
12315 * cgraph.c: Update toplevel comment.
12316 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
12317 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
12318 Move fere from cgraphunit.c
12319 (cgraph_mark_force_output_node): Move to cgraph.h
12320 * cgraph.h: Reorder so the comments match the function placement.
12321 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
12322 (cgraph_mark_force_output_node): Move here from cgraph.c
12323 * tree.c (free_lang_data): Do not clear analyze_expr hook.
12324 * ipa-inline-transform.c (preserve_function_body_p): New function.
12325 (inline_transform): Update.
12326 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
12327 * langhooks.h (lang_hooks_for_callgraph): Remove.
12328 (lang_hooks): Remove callgraph.
12329 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
12330 * varpool.c: Remove out of date comment.
12331 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
12332 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
12334 2012-04-25 Jan Hubicka <jh@suse.cz>
12336 PR middle-end/53089
12337 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
12338 forward declaration.
12339 (cgraph_finalize_function): Finalize them here.
12340 * symtab.c (dump_symtab): Dump ctors and dtors.
12342 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12344 PR middle-end/52979
12345 * stor-layout.c (get_best_mode): Don't return mode with bitsize
12346 larger than maxbits. Don't compute maxbits modulo align.
12347 Also check that unit bytes long store at bitpos / unit * unit
12348 doesn't affect bits beyond bitregion_end.
12349 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
12350 would not fit into bitregion_start ... bitregion_end + 1 bit region.
12351 (store_split_bit_field): Decrease unit close to end of bitregion_end
12352 if access is restricted in order to avoid mutual recursion.
12354 PR tree-optimization/53058
12355 * double-int.h (double_int_max_value, double_int_min_value): New
12357 * double-int.c (double_int_max_value, double_int_min_value): New
12359 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
12360 or GT_EXPR with double_int_max_value instead of double_int_mask.
12362 2012-04-25 Richard Guenther <rguenther@suse.de>
12364 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12365 * tree-vect-loop.c (vect_transform_loop): Adjust.
12366 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
12367 the maximum number of iterations for the epilogue loop.
12368 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
12370 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12373 * c-typeck.c (set_nonincremental_init,
12374 set_nonincremental_init_from_string): Pass true instead of false
12375 as IMPLICIT to add_pending_init.
12377 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12379 * c-typeck.c (pop_init_level): Improve diagnostics.
12381 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
12383 * compare-elim.c (try_eliminate_compare): Also handle operands with
12384 implicit extensions.
12386 2012-04-25 Alan Modra <amodra@gmail.com>
12388 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
12389 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
12390 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
12391 (no_global_regs_above): Delete.
12392 (no_global_regs): New function.
12393 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
12394 value for load multiple test.
12395 (savres_routine_syms): Increase size.
12396 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
12397 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
12398 rather than a number of boolean flags. Update all callers.
12399 (rs6000_savres_routine_name): Generate vector save/restore names.
12400 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
12401 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
12402 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
12403 and using_store_multiple. Expand uses. Don't always use r11 as
12404 frame reg when needed for out-of-line saves. Set up initial offset
12405 for out-of-line vector saves when buying stack frame. Handle pointer
12406 reg setup for out-of-line fp save. Emit call to out-of-line vector
12407 save function. Choose r11 or r12 for vrsave reg when available for
12409 (rs6000_output_function_prologue): Don't emit .extern for ELF.
12410 (rs6000_emit_epilogue): Choose a better frame reg when restoring
12411 from back-chain to suit out-of-line vector restore functions. Emit
12412 call to out-of-line vector restore function. Adjust register used
12413 for cr restore. Tweak pointer register setup for gpr restore.
12414 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
12416 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
12417 (V_SAVE_INLINE): Define.
12418 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
12420 2012-04-25 Alan Modra <amodra@gmail.com>
12422 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
12423 out-of-line save/restore for large frames. Don't disable
12424 out-of-line saves on ABI_AIX when using static chain reg.
12425 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
12426 clobber static chain reg, and tweak for out-of-line gpr saves
12429 2012-04-25 Alan Modra <amodra@gmail.com>
12431 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
12432 (rs6000_emit_prologue): Use the above to catch register overlap.
12434 2012-04-25 Alan Modra <amodra@gmail.com>
12436 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
12437 decl. Move logic selecting update reg to callers. Update all callers.
12438 (rs6000_emit_allocate_stack): Add copy_off param.
12439 (emit_frame_save): Don't handle reg+reg addressing.
12440 (ptr_regno_for_savres): New function, extracted from..
12441 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
12442 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
12443 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
12444 frame offset adjustment for out-of-line save with copy from sp.
12445 Simplify condition controlling whether cr is saved early or
12446 late. Use ptr_regno_for_savres to verify correct reg is set
12447 up for out-of-line saves. Pass the actual pointer reg used to
12448 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
12449 function. Rearrange spe vars so code is similar to that
12450 elsewhere in this function. Don't update frame_off when spe
12451 save code will restore r11. Use emit_frame_save for spe and
12452 gpr saves. Consolidate darwin out-of-line gpr setup with that
12453 for other abis. Don't assume frame_offset is zero and frame
12454 reg is sp when setting up altivec reg saves, and calculate
12455 exact offset requirement.
12456 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
12457 spe restore code. Consolidate darwin out-of-line gpr setup
12458 with that for other abis.
12460 2012-04-25 Alan Modra <amodra@gmail.com>
12462 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
12463 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
12465 (emit_frame_save): Delete frame_ptr param. Rename total_size to
12467 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
12468 and emit_frame_save calls. Cope with possibly missing note.
12470 2012-04-24 Sriraman Tallam <tmsriram@google.com>
12472 * config/i386/i386.c (build_processor_model_struct): New function.
12473 (make_var_decl): New function.
12474 (fold_builtin_cpu): New function.
12475 (ix86_fold_builtin): New function.
12476 (make_cpu_type_builtin): New function.
12477 (ix86_init_platform_type_builtins): New function.
12478 (ix86_expand_builtin): Expand new builtins by folding them.
12479 (ix86_init_builtins): Make new builtins to detect CPU type.
12480 (TARGET_FOLD_BUILTIN): New macro.
12481 (IX86_BUILTIN_CPU_INIT): New enum value.
12482 (IX86_BUILTIN_CPU_IS): New enum value.
12483 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
12484 * config/i386/i386-builtin-types.def: New function type.
12485 * testsuite/gcc.target/builtin_target.c: New testcase.
12486 * doc/extend.texi: Document builtins.
12488 2012-04-24 Olivier Hainque <hainque@adacore.com>
12490 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
12491 * toplev.c (process_options): Default to dwarf_version 2.
12492 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
12493 and dwarf_version 2.
12495 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12497 * tree-pretty-print.h (default_tree_printer): Do not declare.
12498 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
12500 (default_tree_diagnostic_starter): Make static.
12501 (default_tree_printer): Move to here. Make static.
12502 (tree_diagnostics_defaults): New.
12503 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
12504 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
12505 * toplev.c: Do not include tree-pass.h.
12506 (default_tree_printer): Move from here.
12507 (general_init): Use tree_diagnostics_defaults.
12509 2012-04-24 Chao-ying Fu <fu@mips.com>
12511 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
12512 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
12513 * config/mips/gnu-user.h
12514 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
12515 (GNU_USER_TARGET_LINK_SPEC): New define.
12516 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
12517 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
12518 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
12519 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
12520 GNU_USER_TARGET_ENDFILE_SPEC.
12521 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
12522 (GNU_USER_TARGET_LINK_SPEC): New define.
12523 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
12524 * config/mips/linux-common.h: New file.
12526 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12529 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
12530 (altivec_build_resolved_builtin): Call fully_fold_convert.
12532 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
12535 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
12537 2012-04-24 Richard Guenther <rguenther@suse.de>
12539 PR tree-optimization/53085
12540 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
12543 2012-04-24 Richard Guenther <rguenther@suse.de>
12545 * tree-if-conv.c (main_tree_if_conversion): Move bb under
12548 2012-04-24 Jim Meyering <meyering@redhat.com>
12550 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
12551 absence of an define_enum call.
12553 2012-04-24 Richard Guenther <rguenther@suse.de>
12555 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
12556 the epilogue loop is not re-used as unvectorized version
12557 record the its maximum number of iterations.
12559 2012-04-24 Andrew Pinski <apinski@cavium.com>
12561 * tree-ssa-forwprop.c (simplify_bitwise_binary):
12562 Don't directly use def1/def2.
12564 2012-04-24 Richard Guenther <rguenther@suse.de>
12566 PR tree-optimization/53098
12567 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
12570 2012-04-24 Andrew Pinski <apinski@cavium.com>
12573 * tree-ssa-forwprop.c (defcodefor_name): New function.
12574 (simplify_bitwise_binary): Use defcodefor_name instead of manually
12575 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
12576 Simplify "(~X | Y) & X" to "X & Y" and
12577 "(~X & Y) | X" to "X | Y".
12579 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12581 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
12582 validate_change to add clobbers if IN_GROUP is nonzero.
12583 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
12584 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
12586 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
12588 * config/s390/s390.c (insn_invalid_p): Likewise.
12590 2012-04-24 Jakub Jelinek <jakub@redhat.com>
12592 PR middle-end/53084
12593 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
12594 (output_addressed_constants): Likewise.
12596 PR middle-end/52999
12597 * varasm.c (get_section): Don't ICE for section conflicts with
12598 built-in section kinds.
12600 2012-04-23 DJ Delorie <dj@redhat.com>
12602 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
12603 (LIBSTDCXX): Change to CPP2.
12605 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
12608 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
12611 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
12613 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
12614 (*addsi_2_zext): Ditto.
12615 (*add<mode>_3): Ditto.
12616 (*addsi_3_zext): Ditto.
12617 (*add<mode>_5): Ditto.
12619 2012-04-23 Andrew Pinski <apinski@cavium.com>
12621 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
12622 (C & B) to (A OP0) & B.
12624 2012-04-23 Martin Jambor <mjambor@suse.cz>
12626 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
12627 temporaries created for a bitfield (reverting revision 122014).
12629 2012-04-23 Richard Guenther <rguenther@suse.de>
12631 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
12632 the condition using is_gimple_condexpr and avoid the not necessary
12634 (set_prologue_iterations): Likewise.
12635 (vect_loop_versioning): Likewise.
12637 2012-04-23 Richard Guenther <rguenther@suse.de>
12639 PR tree-optimization/53070
12640 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
12641 (main_tree_if_conversion): Verify we succeeded in that.
12643 2012-04-23 Jan Hubicka <jh@suse.cz>
12645 * lto-symtab.c (lto_cgraph_replace_node): Do not call
12646 mark_reahcable_node.
12647 * cgraph.c (cgraph_remove_node): Do not clear reachable.
12648 (cgraph_mark_reachable_node): Remove.
12649 (cgraph_mark_force_output_node): Do not set reachable.
12650 (dump_cgraph_node): Do not dump reachable.
12651 (cgraph_create_virtual_clone): Do not set reachable.
12652 * cgraph.h (cgraph_node): Remove reachable flag.
12653 (varpool_node): Remove reachable flag.
12654 (cgraph_mark_if_needed): Remove.
12655 (cgraph_mark_reachable_node): Remove.
12656 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
12657 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
12659 (cgraph_add_new_function): Likewise.
12660 (cgraph_mark_if_needed): Remove.
12661 (cgraph_analyze_function): Do not set target as reachable.
12662 (process_function_and_variable_attributes): Do not care about
12664 (cgraph_analyze_functions): Do not set reachable flags.
12665 (cgraph_mark_functions_to_output): Do not check reachability.
12666 (cgraph_copy_node_for_versioning): Do not set reachable flag.
12667 (dbxout_expand_expr): Update.
12668 * c-decl.c (merge_decls): Do not track changed externs.
12669 * ipa.c: Include pointer-set.h
12670 (enqueue_cgraph_node): Use reachable pointer set.
12671 (process_references): Likewise.
12672 (cgraph_remove_unreachable_nodes): Likewise.
12673 (whole_program_function_and_variable_visibility): Do not recompute
12675 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
12677 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
12679 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
12681 2012-04-23 Richard Guenther <rguenther@suse.de>
12684 * c-typeck.c (build_binary_op): Fix typo.
12686 2012-04-23 Jakub Jelinek <jakub@redhat.com>
12688 PR tree-optimizations/52891
12689 * tree-vect-patterns.c (adjust_bool_pattern): Use
12690 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
12691 but with non-standard precision.
12693 2012-04-22 Jan Hubicka <jh@suse.cz>
12695 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
12698 2012-04-22 Jan Hubicka <jh@suse.cz>
12700 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
12701 * cgraphbuild.c (record_reference, record_type_list, mark_address,
12702 mark_load, mark_store): Do not mark varpool nodes as needed.
12703 * cgraph.c (cgraph_new_nodes): Remove.
12704 (cgraph_create_function_alias): Do not mark nodes as reachable.
12705 (cgraph_add_thunk): Likewise.
12706 (cgraph_mark_reachable_node): Do not manage the queue.
12707 * cgraph.h (cgraph_node): Remove next_needed.
12708 (varpool_nodes_queue): Remove next_needed and prev_needed.
12709 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
12710 (cgraph_new_nodes): Declare.
12711 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
12712 (varpool_analyze_pending_decls): Remove.
12713 (varpool_analyze_node): New.
12714 (varpool_mark_needed_node): Remove.
12715 (varpool_first_variable, varpool_next_variable): New inlines.
12716 (varpool_first_static_initializer, varpool_next_static_initializer):
12718 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
12719 (varpool_first_defined_variable): New inline.
12720 (varpool_next_defined_variable): New inline
12721 (FOR_EACH_VARIABLE): Reimplement.
12722 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
12723 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
12725 * cgraphunit.c (cgraph_new_nodes): Declare here.
12726 (enqueue_node): New function.
12727 (cgraph_process_new_functions): update for new
12728 node set; when constructing cgraph enqueue node for processing.
12729 (cgraph_add_new_function): Use new node set.
12730 (process_function_and_variable_attributes): Do not set varpool needed
12732 (referred_to_p): New function.
12733 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
12734 when varpool is in construction.
12735 (cgraph_analyze_functions): Rewrite.
12736 (cgraph_expand_all_functions): Update.
12737 (cgraph_output_in_order): Do not analyze pending decls; do not set
12739 (cgraph_optimize): Do not analyze pending decls.
12740 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
12741 in other partition; do not mark node as needed.
12742 * dwarf2out.c (reference_to_unused): Use analyzed flag.
12743 (premark_types_used_by_global_vars_helper): Likewise.
12744 * ipa.c (process_references): Do not call varpool_mark_needed_node.
12745 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
12747 (function_and_variable_visibility): Do not mark node as needed.
12748 (whole_program_function_and_variable_visibility): Likewise.
12749 * Makefile.in (gt-varpool.h): No longer needed.
12750 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
12751 (ipa_write_summaries): Do not use needed flag.
12752 * varpool.c: Do not include gt-varpool.h
12753 (x_varpool_nodes_queue, x_varpool_last_needed_node,
12754 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
12755 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
12757 (varpool_remove_node): Do not update the lists.
12758 (dump_varpool_node): Do not dump needed flag.
12759 (varpool_enqueue_needed_node): Remove.
12760 (varpool_mark_needed_node): Remove.
12761 (varpool_reset_queue): Remove.
12762 (varpool_finalize_decl): Move to cgraphunit.c
12763 (varpool_analyze_node): New functions based on former
12764 varpool_analyze_pending_decls.
12765 (varpool_analyze_pending_decls): Remove.
12766 (varpool_assemble_decl): Do not update the lists.
12767 (enqueue_node): New function.
12768 (varpool_remove_unreferenced_decls): Rewrite.
12769 (varpool_empty_needed_queue): Remove.
12770 (add_new_static_var): Do not mark node as needed.
12771 (varpool_create_variable_alias): Handle expansion state
12773 * except.c (output_ttype): Do not mark node as needed.
12774 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
12775 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
12777 * tree-switch-conversion.c (build_one_array): Likewise.
12779 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12782 * doc/invoke.texi (pedantic): Rename to Wpedantic.
12783 * common.opt (Wpedantic): New.
12784 (pedantic): Alias Wpedantic.
12785 * diagnostic.c (warning_at): Likewise.
12786 * c-decl.c (diagnose_mismatched_decls): Likewise.
12787 (build_array_declarator): Likewise.
12788 (mark_forward_parm_decls):
12789 (check_bitfield_type_and_width): Likewise.
12790 (grokdeclarator): Likewise.
12791 (grokfield): Likewise.
12792 (finish_struct): Likewise.
12793 (build_enumerator): Likewise.
12794 (store_parm_decls_oldstyle): Likewise.
12795 (declspecs_add_qual): Likewise.
12796 (declspecs_add_type): Likewise.
12797 (finish_declspecs): Likewise.
12798 * c-typeck.c (composite_type): Likewise.
12799 (comp_target_types): Likewise.
12800 (build_array_ref): Likewise.
12801 (pointer_diff): Likewise.
12802 (build_unary_op): Likewise.
12803 (build_conditional_expr): Likewise.
12804 (build_c_cast): Likewise.
12805 (convert_for_assignment): Likewise.
12806 (maybe_warn_string_init): Likewise.
12807 (digest_init): Likewise.
12808 (pop_init_level): Likewise.
12809 (set_init_index): Likewise.
12810 (c_finish_goto_label): Likewise.
12811 (c_finish_return): Likewise.
12812 (do_case): Likewise.
12813 (build_binary_op): Likewise.
12814 * c-parser.c (static): Likewise.
12815 (c_parser_external_declaration): Likewise.
12816 (c_parser_declaration_or_fndef): Likewise.
12817 (c_parser_static_assert_declaration_no_se): Likewise.
12818 (c_parser_enum_specifier): Likewise.
12819 (c_parser_struct_or_union_specifier): Likewise.
12820 (c_parser_struct_declaration): Likewise.
12821 (c_parser_alignas_specifier): Likewise.
12822 (c_parser_braced_init): Likewise.
12823 (c_parser_initelt): Likewise.
12824 (c_parser_compound_statement_nostart): Likewise.
12825 (c_parser_conditional_expression): Likewise.
12826 (c_parser_alignof_expression): Likewise.
12827 (c_parser_postfix_expression): Likewise.
12828 (c_parser_postfix_expression_after_paren_): Likewise.
12829 (c_parser_objc_class_instance_variables): Likewise.
12830 (c_parser_objc_method_definition): Likewise.
12831 (c_parser_objc_methodprotolist): Likewise.
12833 2012-04-22 Ian Lance Taylor <iant@google.com>
12835 * godump.c (go_output_typedef): Dump size of structs.
12837 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
12839 Correcting transform_to_exit_first_loop + fix to PR46886
12840 * tree-parloops.c (transform_to_exit_first_loop): Remove
12841 setting of number of iterations according to the loop pattern.
12842 Duplicate from entry to exit->src instead of loop->latch.
12843 (pallelize_loops): Remove the condition preventing do-while loops.
12844 * tree-cfg.c (bool bb_in_region_p): New.
12845 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
12846 Adjust redirection of the duplicated iteration.
12848 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
12851 * rtl.def (ADDRESS): Use "i" rather than "w".
12852 * rtl.h (find_base_term): Delete.
12853 (may_be_sp_based_p): Declare.
12854 * rtl.c (rtx_code_size): Remove ADDRESS special case.
12855 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
12856 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
12857 * alias.c: ...here.
12858 (find_base_term): Make static.
12859 (may_be_sp_based_p): New function.
12860 * dse.c (record_store): Use it.
12861 * store-motion.c (store_killed_in_insn): Likewise.
12863 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
12865 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
12867 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12870 * c-typeck.c (inform_declaration): New.
12871 (build_function_call_vec): Do not pretty-print
12872 expressions when caret is enabled.
12873 (convert_arguments): Use inform_declaration.
12875 2012-04-20 Jim Meyering <meyering@redhat.com>
12877 * genmodes.c (make_complex_modes): Don't truncate a mode name of
12878 length 7 or more when prepending a "C". Suggested by Richard Guenther.
12880 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12882 PR rtl-optimization/44214
12883 * fold-const.c (exact_inverse): New function.
12884 (fold_binary_loc): Fold vector and complex division by constant into
12885 multiply by recripocal with flag_reciprocal_math; fold vector division
12886 by constant into multiply by reciprocal with exact inverse.
12888 2012-04-20 Jan Hubicka <jh@suse.cz>
12890 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
12892 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
12893 (cgraph_remove_node): Update.
12894 (cgraph_mark_needed_node): Remove.
12895 (cgraph_mark_force_output_node): New.
12896 (dump_cgraph_node): Do not dump needed flag.
12897 (cgraph_node_cannot_be_local_p_1): Update.
12898 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
12899 * cgraph.h (symtab_node_base): Add force_output flag.
12900 (cgraph_node): Remove needed flag.
12901 (varpool_node): Remove force_output flag.
12902 (cgraph_mark_needed_node): Remove.
12903 (cgraph_mark_force_output_node): New.
12904 (cgraph_only_called_directly_or_aliased_p,
12905 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
12906 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
12907 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
12908 (cgraph_add_new_function): Update.
12909 (cgraph_mark_if_needed): Update.
12910 (verify_cgraph_node): Update.
12911 (cgraph_analyze_function): Alias target is reachable.
12912 (process_function_and_variable_attributes): Update: externally_visible
12913 flag makes function reachable.
12914 (cgraph_analyze_functions): Update dumping.
12915 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12916 input_overwrite_node, input_varpool_node): Update streaming.
12917 * lto-streamer-out.c (produce_symtab): Use force_output.
12918 * ipa.c (process_references): Weakrefs must be processed.
12919 (cgraph_remove_unreachable_nodes): Likewise; update for new
12921 (varpool_externally_visible_p): Weakrefs are externally visible
12922 even if they are not.
12923 (function_and_variable_visibility): Update; when processing alias
12924 pair force the targets to be output.
12925 (whole_program_function_and_variable_visility): Use
12926 mark_reachable_node.
12927 * trans-mem.c (ipa_tm_mark_needed_node): Remove
12928 (ipa_tm_mark_force_output_node): New function.
12929 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
12930 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
12932 * varasm.c (mark_decl_referenced): Update.
12933 (find_decl_and_mark_needed): Remove.
12934 (find_decl): New function.
12935 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
12936 alias targets as needed.
12937 (dump_tm_clone_pairs): Update.
12938 * tree-inline.c (copy_bb): Update check.
12939 * symtab.c (dump_symtab_base): Dump force_output.
12940 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
12941 * passes.c (execute_todo): Fix dumping.
12942 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
12943 (varpool_analyze_pending_decls): Alias target is reachable.
12944 (varpool_create_variable_alias): Finalize weakrefs.
12946 2012-04-20 Jakub Jelinek <jakub@redhat.com>
12949 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
12950 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
12951 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
12952 macros instead of constants.
12953 * dse.c (record_store): Check for SP ADDRESS by comparing
12954 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
12955 XEXP to be stack_pointer_rtx.
12957 2012-04-20 Richard Guenther <rguenther@suse.de>
12959 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
12960 update_call_from_tree when propagating into a call.
12962 2012-04-20 Alan Modra <amodra@gmail.com>
12964 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
12965 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
12966 sp_offset to frame_off. Move world save code earlier.
12968 2012-04-20 Richard Guenther <rguenther@suse.de>
12970 PR tree-optimization/53050
12971 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
12972 Do only one transform on COND_EXPRs at the same time.
12974 2012-04-19 Jan Hubicka <jh@suse.cz>
12976 * symtab.c (dump_symtab_base): Revert accidental checkin.
12978 2012-04-20 Alan Modra <amodra@gmail.com>
12981 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
12982 static chain, set REST_INLINE_FPRS too.
12984 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
12986 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
12989 2012-04-20 Richard Guenther <rguenther@suse.de>
12991 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
12992 loops that can never run more often than the vectorization factor.
12994 2012-04-19 Jan Hubicka <jh@suse.cz>
12996 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
12998 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
13000 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
13002 2012-04-19 Jim Meyering <meyering@redhat.com>
13004 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
13005 We verified above that the string(including trailing NUL) fits in buf,
13006 so just use memcpy.
13008 2012-04-19 Richard Guenther <rguenther@suse.de>
13010 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
13011 for dumping DECL_SECTION_NAME.
13013 2012-04-19 Michael Matz <matz@suse.de>
13015 PR middle-end/52977
13016 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
13017 (struct tree_vector): Adjust GTY length.
13018 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
13020 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
13022 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
13023 caller emitted the length calulation already.
13024 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
13025 before handling any of the fields for structs.
13027 2012-04-19 Richard Guenther <rguenther@suse.de>
13029 PR tree-optimization/53031
13030 * tree-vrp.c (adjust_range_with_scev): Revert back to
13031 using max_loop_iterations.
13033 2012-04-19 Michael Matz <matz@suse.de>
13035 * diagnostic.c (emit_diagnostic): Move va_end call after user
13037 (warning, warning_at, pedwarn, permerror): Ditto.
13039 2012-04-19 Richard Guenther <rguenther@suse.de>
13041 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
13044 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
13047 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
13048 the case *(X+const).
13050 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13052 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
13054 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13057 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
13058 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
13060 2012-04-19 Richard Guenther <rguenther@suse.de>
13062 PR rtl-optimization/44688
13063 * loop-iv.c (determine_max_iter): Only return max_iter.
13064 (iv_number_of_iterations): Also use the recorded loop bound
13065 on the maximum number of iterations.
13066 * loop-unroll.c (decide_unroll_runtime_iterations): Use
13067 max_iter to avoid unrolling loops that do not roll.
13068 (decide_unroll_stupid): Likewise.
13070 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
13072 * targhooks.c (default_case_values_threshold): Fix code style nit.
13074 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
13075 case range and type folding from here...
13076 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
13077 type, as documented in tree.def.
13079 2012-04-18 Jan Hubicka <jh@suse.cz>
13081 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
13083 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
13084 cgraph hash and same comdat groups.
13085 (cgraph_optimize): Verify symbol table.
13086 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
13087 (dissolve_same_comdat_group_list): Work on symtab nodes.
13088 (function_and_variable_visibility): Dissolve variable same comdat group
13090 * symtab.c: Include timevar.h
13091 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
13093 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
13095 * tree-switch-conversion.c (info): Remove global pass info.
13096 (check_range, check_process_case, check_final_bb, create_temp_arrays,
13097 free_temp_arrays, gather_default_values, build_constructors,
13098 array_value_type, build_one_array, build_arrays, gen_def_assigns,
13099 fix_phi_nodes, gen_inbound_check): Pass info around from ...
13100 (process_switch): ... here. Unify message format. Return a const
13101 char pointer to the failure reason message.
13102 (do_switchconv): Unify message format. Update process_switch usage.
13104 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
13105 * tree-cfg.c (edge_to_cases): Fix documentation.
13107 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
13109 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
13111 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13113 PR tree-optimization/52976
13114 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
13115 (possibly_move_powi): New function.
13116 (rewrite_expr_tree): Call possibly_move_powi.
13117 (rewrite_expr_tree_parallel): Likewise.
13118 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
13119 call add_to_ops_vec instead.
13121 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13123 PR tree-optimization/52976
13124 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
13125 (decrement_power): Likewise.
13126 (propagate_op_to_single_use): Likewise.
13127 (zero_one_operation): Handle __builtin_pow* calls in linearized
13128 expression trees; factor logic into propagate_op_to_single_use.
13129 (undistribute_ops_list): Allow operands with repeat counts > 1.
13131 2012-04-18 Richard Guenther <rguenther@suse.de>
13133 PR tree-optimization/44688
13134 * cfgloop.h (record_niter_bound): Declare.
13135 * tree-ssa-loop-niter.c (record_niter_bound): Export.
13136 Update the estimation with the upper bound here...
13137 (estimate_numbers_of_iterations_loop): ... instead of here.
13138 Do not forcefully reset a recorded upper bound.
13139 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
13140 Record the maximum number of loop iterations of the prologue loop.
13142 2012-04-18 Jan Hubicka <jh@suse.cz>
13144 * lto-symtab.c (lto_cgraph_replace_node): Update.
13145 * cgraphbuild.c (record_reference, record_type_list,
13146 record_eh_tables, mark_address, mark_load, mark_store): Update.
13147 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
13148 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
13150 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
13151 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
13152 * reload.c: Fix typo in comment.
13153 * rtlanal.c: Likewise.
13154 * tree-emultls.c (gen_emutls_addr): Update.
13155 * ipa-reference.c (analyze_function): Update.
13156 * cgraphunit.c (cgraph_analyze_function,
13157 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
13159 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
13160 (ipa_remove_reference): Likewise.
13161 (ipa_remove_all_refering): Rename to ...
13162 (ipa_remove_all_referring): ... this one; update.
13163 (ipa_dump_references): Update.
13164 (ipa_dump_referring): Update.
13165 (ipa_clone_references): Update.
13166 (ipa_clone_refering): Rename to ...
13167 (ipa_clone_referring): ... this one; update.
13168 (ipa_ref_cannot_lead_to_return): Update.
13169 (ipa_ref_has_aliases_p): Update.
13170 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
13172 (ipa_ref_type): Remove.
13173 (ipa_ref_ptr_u): Remove.
13174 (ipa_ref): Remove referencing, refered, refered_index, refering_type
13175 and refered_type; add referring, referred and referred_index.
13176 (ipa_ref_list): Rename refering to referring.
13177 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
13178 ipa_clone_references, ipa_clone_referring): Update prototypes.
13179 * lto-cgraph.c (referenced_from_other_partition_p): Update.
13180 (lto_output_ref): Update.
13181 (add_references): Update.
13182 (input_varpool_node): Update.
13183 (input_refs): Update.
13184 * ipa-ref-inline.h (ipa_ref_node): Update.
13185 (ipa_ref_varpool_node): Update.
13186 (ipa_ref_referring_node): Update.
13187 (ipa_ref_referring_varpool_node): Update.
13188 (ipa_ref_referring_ref_list): Update.
13189 (ipa_ref_referred_ref_list): Update.
13190 (ipa_ref_list_first_referring): Update.
13191 (ipa_empty_ref_list): Update.
13192 (ipa_ref_list_refering_iterate): Rename to ...
13193 (ipa_ref_list_referring_iterate): ... this one.
13194 * cse.c: Update comment.
13195 * ipa-utils.c (ipa_reverse_postorder): Update.
13196 * tree-ssa-alias.c: Update.
13197 * ipa-inline.c (reset_edge_caches): Update.
13198 (update_caller_keys): Update.
13199 * ipa-inline.h: Update comments.
13200 * jump.c: Update comment.
13201 * alias.c: Likewise.
13202 * ipa.c (process_references): Update.
13203 (cgraph_remove_unreachable_nodes): Likewise.
13204 (ipa_discover_readonly_nonaddressable_var): Likewise.
13205 (cgraph_address_taken_from_non_vtable_p): Likewise.
13206 * trans-mem.c (ipa_tm_execute): Update.
13207 * simplify-rtx.c: Fix comment.
13208 * rtl.c: Fix comment.
13209 * symtab.c (symtab_unregister_node): Update.
13210 * varpool.c (dump_varpool_node): Update.
13211 (varpool_analyze_pending_decls): Update.
13212 (assemble_aliases): Update.
13213 (varpool_for_node_and_aliases): Update.
13215 2012-04-18 Richard Guenther <rguenther@suse.de>
13217 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
13218 use_undefined_p parameter.
13219 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13220 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13222 (estimate_numbers_of_iterations): Likewise.
13223 (estimated_loop_iterations): Adjust.
13224 (max_loop_iterations): Likewise.
13225 (scev_probably_wraps_p): Likewise.
13226 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13227 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
13228 not max_loop_iterations.
13229 (execute_vrp): Remove explicit number of iterations estimation.
13231 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
13233 * config/i386/linux-common.h: New.
13235 * config.gcc: Add i386/linux-common.h before
13236 all i386/linux.h and i386/linux64.h usages.
13238 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
13239 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
13240 * config/i386/gnu-user64.h: Likewise.
13242 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
13243 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
13244 (GNU_USER_TARGET_MATHFILE_SPEC): New.
13245 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
13247 2012-04-18 Jan Hubicka <jh@suse.cz>
13249 * cgraph.c (cgraph_node_name): Remove.
13250 (dump_cgraph_node): Use dump_symtab_base; reformat.
13251 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
13252 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
13254 (cgraph_node_name, varpool_node_name): Remove.
13255 (cgraph_node_asm_name, varpool_node_asm_name,
13256 cgraph_node_name, varpool_node_name): New.
13257 * tree-pass.h (TODO_dump_cgraph): Rename to ...
13258 (TODO_dump_symtab): ... this one.
13259 * ipa-cp (pass_ipa_cp): Update.
13260 * ia-reference.c (generate_summary, read_write_all_from_decl,
13261 propagate, ipa_reference_read_optimization_summary): Update.
13262 * cgraphunit.c (cgraph_analyze_functions): Update.
13263 (cgraph_optimize): Update.
13264 * ipa-ref.c (ipa_dump_references): Update.
13265 (ipa_dump_refering): Update.
13266 * ipa-inline.c (pass_ipa_inline): Update.
13267 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
13268 * ipa.c (pass_ipa_function_visibility,
13269 pass_ipa_whole_program_visibility): Update.
13270 * tree-sra.c (pass_early_ipa_sra): Update.
13271 * symtab.c: Include langhooks.h
13272 (symtab_node_asm_name): New.
13273 (symtab_node_name): New.
13274 (symtab_type_names): New static var.
13275 (dump_symtab_base): New.
13276 (dump_symtab_node, dump_symtab): New.
13277 (debug_symtab_node, debug_symtab): New.
13278 * tree-ssa-structalias.c: Dump symbol table.
13279 * pases.c (execute_todo): Handle TODO_dump_symtab instead
13280 of TODO_dump_cgraph.
13281 * varpoo.c (varpool_node_name): Remove.
13282 (dump_varpool_node): Use dump_symtab_base; reformat.
13284 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13286 * doc/invoke.texi (Language Independent Options): @item should be
13289 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
13292 * rtl.c (rtx_code_size): Handle ADDRESS.
13294 2012-04-17 Tom de Vries <tom@codesourcery.com>
13296 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
13297 is not a STMT_LIST.
13299 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
13302 * config/i386/sync.md (atomic_<code><mode>): Rename to
13303 atomic_<logic><mode>.
13305 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
13307 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
13308 * alias.c (reg_base_value): Expand and update comment.
13309 (arg_base_value): New variable.
13310 (unique_id): Move up file.
13311 (unique_base_value, unique_base_value_p, known_base_value_p): New.
13312 (find_base_value): Use arg_base_value and known_base_value_p.
13313 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
13314 (find_base_term): Use known_base_value_p.
13315 (base_alias_check): Use unique_base_value_p.
13316 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
13317 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
13319 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
13321 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
13323 2012-04-17 Michael Matz <matz@suse.de>
13325 PR tree-optimization/18437
13326 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
13327 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
13328 (vect_check_strided_load): Declare.
13329 * tree-vect-data-refs.c (vect_check_strided_load): New function.
13330 (vect_analyze_data_refs): Use it to accept strided loads.
13331 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
13333 2012-04-17 Richard Guenther <rguenther@suse.de>
13335 PR middle-end/53011
13336 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
13337 loops when redirecting an entry or latch edge.
13339 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
13341 * sel-sched.c (sel_global_init): Revert previous change.
13343 2012-04-17 Richard Guenther <rguenther@suse.de>
13345 * tree-flow.h (array_at_struct_end_p): Move declaration ...
13346 * tree.h (array_at_struct_end_p): ... here.
13347 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
13348 * expr.c (array_at_struct_end_p): ... here. Rewrite.
13350 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
13352 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
13353 COST_TABLE): Remove.
13354 (estimate_case_costs): Remove.
13355 (expand_case): Do not call estimate_case_costs
13356 to set use_cost_table.
13357 (balance_case_nodes): Do not use use_cost_table.
13359 2012-04-16 Jan Hubicka <jh@suse.cz>
13361 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
13362 (hash_node, eq_node): Remove.
13363 (cgraph_create_node): Do not handle hashtable.
13364 (cgraph_get_node): Remove.
13365 (cgraph_insert_node_to_hashtable): Remove.
13366 (hash_node_by_assembler_name): Remove.
13367 (eq_assembler_name): Remove.
13368 (cgraph_node_for_asm): Rewrite.
13369 (cgraph_find_replacement_node): Break out from ...
13370 (cgraph_remove_node): ... here; do not maintain hashtables.
13371 (change_decl_assembler_name): Remove.
13372 (cgraph_clone_node): Do not maintain hashtables.
13373 * cgraph.h (const_symtab_node): New typedef.
13374 (cgraph_insert_node_to_hashtable): Remove.
13375 (symtab_get_node, symtab_node_for_asm,
13376 symtab_insert_node_to_hashtable): Declare.
13377 (cgraph_find_replacement_node): Declare.
13378 (cgraph_get_node, varpool_get_node): Turn into inlines.
13379 (cgraph, varpool): Work sanely on NULL pointers.
13380 (FOR_EACH_SYMBOL): New walker.
13381 * ipa-inline-transform.c (save_inline_function_body): Use
13382 symtab_insert_node_to_hashtable.
13383 * symtab.c: Include ggc.h and diagnostics.h
13384 (symtab_hash, assembler_name_hash): New static vars;
13385 (hash_node, eq_node, hash_node_by_assembler_name,
13386 eq_assembler_name, insert_to_assembler_name_hash,
13387 unlink_from_assembler_name_hash): New.
13388 (symtab_register_node): Update hashtables.
13389 (symtab_insert_node_to_hashtable): New.
13390 (symtab_unregister_node): Update hashtables.
13391 (symtab_get_node): New.
13392 (symtab_node_for_asm): New.
13393 (change_decl_assembler_name): New.
13394 * Makefile.in (symtab.o): Needs GTY.
13395 * varpool.c (varpool_hash): Remove.
13396 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
13397 (varpool_node): Rewrite using varpool_get_node.
13398 (varpool_remove_node): DO not maintain hashtables.
13399 (varpool_node_for_asm): Rewrite.
13401 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
13403 * doc/invoke.texi: Copy-edit to put verbs in the present tense
13404 when describing the current behavior of GCC.
13406 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
13408 * genemit.c (gen_exp): Remove ADDRESS handling.
13409 * genoutput.c (scan_operands): Likewise.
13410 * genpeep.c (match_rtx): Likewise.
13411 * genrecog.c (add_to_sequence): Likewise.
13413 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
13415 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
13417 2012-04-16 Martin Jambor <mjambor@suse.cz>
13419 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
13422 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
13425 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
13426 hints for 'A' operand types.
13428 2012-04-16 Jan Hubicka <jh@suse.cz>
13430 * cgraph.h (symtab_node_base): Add next and previous pointers.
13431 (cgraph_node): Remove next and preivous pointers.
13432 (varpool_node): Likewise; remove next/previous GTY marker;
13433 it is not type safe.
13434 (symtab_node_def): Update GTY marker
13435 (x_cgraph_nodes, cgraph_nodes): Remove.
13436 (symtab_nodes): New function.
13437 (cgraph_order): Rename to ...
13438 (symtab_order): ... this one.
13439 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
13441 (x_varpool_nodes, varpool_nodes): Remove.
13442 (FOR_EACH_STATIC_VARIABLE): Update.
13443 (symtab_function_p, symtab_variable_p): New function.
13444 (FOR_EACH_VARIABLE): Update.
13445 (varpool_first_variable, varpool_next_variable): New functions.
13446 (FOR_EACH_VARIABLE): Update.
13447 (cgraph_first_defined_function): Update.
13448 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
13449 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
13450 (cgraph_first_function, cgraph_next_function): New.
13451 (FOR_EACH_FUNCTION): Update.
13452 (cgraph_first_function_with_gimple_body,
13453 cgraph_next_function_with_gimple_body): Update.
13454 * symtab.c: New file.
13455 * cgraph.c: Update copyright dates.
13456 (x_cgraph_nodes, cgraph_order): Remove.
13457 (NEXT_FREE_NODE): Update.
13458 (SET_NEXT_FREE_NODE): New.
13459 (cgraph_create_node_1): Remove common code.
13460 (cgraph_create_node): Remove common code; call symtab_register_node.
13461 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
13462 (cgraph_add_asm_node): Update.
13463 (cgraph_clone_node): Register new node.
13464 * cgraphunit.c (process_function_and_variable_attributes): Update.
13465 (cgraph_analyze_functions): Update.
13466 (cgraph_analyze_functions): Update.
13467 (cgraph_output_in_order): Update.
13468 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
13470 * ipa-inline.c (recursive_inlining): Update.
13471 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
13472 * ipa.c (cgraph_remove_unreachable_nodes): Update.
13473 * Makefile.in: Add symtab.o
13474 * varpool.c (x_varpool_nodes): Remove
13475 (varpool_node): Remove common code; call symtab_register_node.
13476 (varpool_remove_node): Remove common code; call symtab_unregister_node.
13478 2012-04-16 Richard Guenther <rguenther@suse.de>
13480 PR middle-end/52977
13481 * tree.h (VECTOR_CST_NELTS): Adjust.
13482 (struct tree_vector): Add explicit length field.
13483 (make_vector_stat): Declare.
13484 (make_vector): Define.
13485 * tree.c (make_vector_stat): New function.
13486 (build_vector_stat): Use it.
13487 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
13489 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13491 PR tree-optimization/52976
13492 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
13493 (undistribute_ops_list): Ops with repeat counts aren't eligible for
13495 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
13497 2012-04-16 Jan Hubicka <jh@suse.cz>
13499 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
13501 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
13502 walkers to walk cgraph and varpool.
13503 * cgraph.c (cgraph_node_for_asm): Likewise.
13504 (dump_cgraph): Likewise.
13505 * value-prof.c (init_node_map): Likewise.
13506 * tree.c (free_lang_data_in_cgraph): Likewise.
13507 * tree-emutls.c: (ipa_lower_emutls): Likewise.
13508 * ipa-reference.c (generate_summary, propagate): Likewise.
13509 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
13510 cgraph_mark_functions_to_output, cgraph_output_in_order,
13511 output_weakrefs, cgraph_materialize_all_clones,
13512 cgraph_optimize): Likewise.
13513 * lto-cgraph.c (merge_profile_summaries): Likewise.
13514 (input_cgraph): Likewise.
13515 * ipa-pure-const.c (generate_summary): Likewise.
13516 (propagate): Likwise.
13517 * ipa-utils.c (ipa_reduced_postorder): Likewise.
13518 (ipa_free_postorder_info): Likewise.
13519 (ipa_reverse_postorder): Likewise.
13520 * ipa-inline.c (ipa_inline): Likewise.
13521 * matrix-reorg.c (find_matrices_decl): Likewise.
13522 (matrix_reorg): Likewise.
13523 * tree-vectorizer.c (increase_alignment): Likewise.
13524 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
13525 (function_and_variable_visibility): Likewise.
13526 (whole_program_function_and_variable_visibility): Likewise.
13527 (ipa_cdtor_merge): Likewise.
13528 * trans-mem.c (ipa_tm_execute): Likewise.
13529 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
13530 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
13531 (ipa_print_all_params): Likewise.
13532 (ipa_update_after_lto_read): Likewise.
13533 * tree-profie.c (tree_profiling): Likewise.
13534 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
13535 * passes.c (dump_passes): Likewise.
13536 (do_per_function): Likewise.
13537 (ipa_write_summaries): Likewise.
13538 * varpool.c (dump_varpool): Likewise.
13539 (varpool_node_for_asm): Likewise.
13540 (varpool_assemble_pending_decls): Likewise.
13542 2012-04-16 Richard Guenther <rguenther@suse.de>
13544 PR tree-optimization/52975
13545 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
13546 condition but always mark it with TRUTH_NOT_EXPR.
13548 2012-04-16 Richard Guenther <rguenther@suse.de>
13550 PR tree-optimization/52975
13551 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
13552 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
13553 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
13554 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
13556 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
13558 * config/i386/sse.md (ssse3_plusminus): New code iterator.
13559 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
13560 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
13561 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
13562 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
13563 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
13564 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
13566 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
13567 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
13568 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
13569 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
13570 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
13571 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
13573 (xop_plus): New code iterator.
13574 (macs): New code attribute.
13576 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
13577 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
13579 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
13580 xop_plus code iterator.
13581 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
13582 xop_plus code iterator.
13583 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
13584 xop_plus code iterator.
13585 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
13586 xop_plus code iterator.
13588 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
13589 any_extend code iterator.
13590 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
13591 any_extend code iterator.
13592 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
13593 any_extend code iterator.
13594 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
13595 any_extend code iterator.
13596 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
13597 any_extend code iterator.
13598 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
13599 any_extend code iterator.
13601 2012-04-14 Tom de Vries <tom@codesourcery.com>
13603 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
13604 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
13605 DELETED_LABEL note, and move it to ...
13606 * cfgrtl.c (delete_insn): ... here. Change return type to void.
13607 (delete_insn_and_edges): Likewise.
13608 (delete_insn_chain): Handle new return type of delete_insn. Delete
13609 chain backwards rather than forwards.
13610 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
13612 * cfglayout.c (fixup_reorder_chain): Delete unused label.
13614 2012-04-14 Jan Hubicka <jh@suse.cz>
13616 * cgraph.h: Update copyrights;
13617 (symtab_node): Turn to union typedef.
13618 (symtab_node_base): New structure.
13619 (symtab_type): Add SYMTAB_SYMBOL tag.
13620 (cgraph_node): Annotate some pinters with nested_ptr.
13621 (varpool_node): Likewise.
13622 (cgraph_local_info): Remove lto_file_data
13623 and externally_visible.
13624 (cgraph_node): Remove decl; same_comdat_group list;
13625 aux; ref_list; order; address_taken; reachable_from_other_parittion,
13626 in_other_partition; resolution.
13627 (varpool_node): Remove decl; same_comdat_group;
13628 ref_list; lto_file_data; aux; order; resolution; externally_visible;
13629 used_from_other_partition; in_other_partition.
13630 (symtab_node_def): New union.
13631 (cgraph, varpool): Update.
13632 (varpool_first_static_initializer, varpool_next_static_initializer,
13633 cgraph_only_called_directly_or_aliased_p,
13634 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
13635 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
13636 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
13638 * cgraph.c: Likewise.
13639 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
13640 * cgraphbuild.c: Likewise.
13641 * lto-symtab.c: Likewise.
13642 * c-gimplify.c: Likewise.
13643 * value-prof.c: Likewise.
13644 * tree.c: Likewise.
13645 * ipa-cp.c: Likewise.
13646 * tree-emutls.c: Likewise.
13647 * ipa-inline-transform.c: Likwise.
13648 * ipa-reference.c: Likewise.
13649 * cgraphunit.c: Likewise.
13650 * ipa-ref.c: Likewise.
13651 * lto-cgraph.c: Likewise.
13652 * ipa-ref-inline.h: Likewise.
13653 * ipa-pure-const.c: Likewise.
13654 * lto-streamer-out.c: Likewise.
13655 * ipa-utils.c: Likewise.
13656 * ipa-inline.c: Likewise.
13657 * matrix-reorg.c: Likewise.
13658 * tree-eh.c: Likewise.
13659 * tree-vectorizer.c: Likewise.
13660 * ipa-split.c: Likewise.
13662 * trans-mem.c: Likewise.
13663 * ipa-inline-analysis.c: Likewise.
13664 * gimplify.c: Likewise.
13665 * cfgexpand.c: Likewise.
13666 * tree-sra.c: Likewise.
13667 * ipa-prop.c: Likewise.
13668 * varasm.c: Likewise.
13669 * tree-nested.c: Likewise.
13670 * tree-inline.c: Likewise.
13671 * tree-profile.c: Likewise.
13672 * tree-ssa-structalias.c: Likewise.
13673 * passes.c: Likewise.
13674 * varpool.c: Likewise.
13676 2012-04-14 Tom de Vries <tom@codesourcery.com>
13678 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
13679 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
13680 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
13682 (gsi_advance_fw_nondebug_nonlocal): New function.
13683 (local_def): Removed function.
13684 (same_succ_hash): Use stmt_local_def.
13685 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
13686 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
13688 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13690 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
13691 and __ILP32__ for x32.
13693 2012-04-13 Martin Jambor <mjambor@suse.cz>
13695 PR middle-end/52939
13696 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
13697 fold_ctor_reference returns a zero constant.
13699 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
13701 * config.gcc: Add i386/gnu-user-common.h before all
13702 i386/gnu-user.h and i386/gnu-user64.h usages.
13704 * config/i386/gnu-user-common.h: New.
13706 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
13707 (CC1_SPEC): Likewise.
13708 (ENDFILE_SPEC): Likewise.
13709 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
13710 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
13711 (TARGET_OS_CPP_BUILTINS): Likewise.
13712 (LIBGCC2_HAS_TF_MODE): Likewise.
13713 (LIBGCC2_TF_CEXT): Likewise.
13714 (TF_SIZE): Likewise.
13715 (TARGET_ASM_FILE_END): Likewise.
13716 (STACK_CHECK_MOVING_SP): Likewise.
13717 (STACK_CHECK_STATIC_BUILTIN): Likewise.
13718 * config/i386/gnu-user64.h: Likewise.
13720 2012-04-13 Martin Jambor <mjambor@suse.cz>
13722 * expr.c (expand_expr_real_1): Pass type, not the expression, to
13723 set_mem_attributes for a memory temporary. Do not call the function
13724 for the memory temporary created for a bitfield.
13726 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13729 * df.h (enum debug_temp_where): New.
13730 (dead_debug_init, dead_debug_finish) Declare.
13731 (dead_debug_add, dead_debug_insert_temp): Declare.
13732 (struct dead_debug_use, struct dead_debug): Moved from...
13733 * df-problems.c: ... here.
13734 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
13736 (df_create_unused_note): Likewise.
13737 (df_set_dead_notes_for_mw): Move comment where it belongs.
13738 (dead_debug_init): Export.
13739 (dead_debug_reset_uses): New, factored out of...
13740 (dead_debug_finish): ...this. Export.
13741 (dead_debug_reset): Remove.
13742 (dead_debug_add): Export.
13743 (dead_debug_insert_before): Rename to...
13744 (dead_debug_insert_temp): ... this. Add where argument. Export.
13745 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
13746 Return insertion count.
13747 (df_note_bb_compute): Adjust.
13748 * dce.c (word_dce_process_block): Adjust dead debug uses.
13749 (dce_process_block): Likewise.
13751 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13753 * df-problems.c (df_note_bb_compute): Do not take note of
13754 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
13756 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13759 * var-tracking.c (expand_depth): New type.
13760 (onepart_aux, expand_loc_callback_data): Change depth type to it.
13761 (loc_exp_dep_alloc): Adjust initializer.
13762 (update_depth): Use new type. Add entryvals.
13763 (vt_expand_var_loc_chain): Take note of expansions with
13764 ENTRY_VALUEs, but don't accept them right away. Run an optional
13765 second pass accepting the minimum ENTRY_VALUE count found in the
13767 (vt_expand_loc_callback, INIT_ELCD): Adjust.
13769 2012-04-13 Tom de Vries <tom@codesourcery.com>
13771 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
13772 parameters vuse and vuse_escaped.
13773 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
13774 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
13777 2012-04-13 Richard Guenther <rguenther@suse.de>
13779 PR tree-optimization/52969
13780 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
13781 the condition for the COND_EXPR and handle predicate negation
13782 by swapping the COND_EXPR arms.
13784 2012-04-13 Nick Clifton <nickc@redhat.com>
13786 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
13787 TODO_dump_func flag.
13789 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
13791 PR rtl-optimization/52203
13792 PR rtl-optimization/52715
13794 Revert the 2012-03-07 fix for PR 52203.
13795 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
13796 the insn does not modify DFA right before issuing, adjust
13797 issue_rate accordingly.
13799 2012-04-13 Richard Guenther <rguenther@suse.de>
13802 * c-typeck.c (pointer_diff): Remove bogus assert.
13804 2012-04-13 Richard Guenther <rguenther@suse.de>
13807 * convert.c (convert_to_pointer): Remove special-casing of zero.
13809 2012-04-13 Joey Ye <joey.ye@arm.com>
13811 * config/arm/constraints.md (Pe): New constraint.
13812 * config/arm/arm.md: New split for imm 256-510.
13814 2012-04-13 Terry Guo <terry.guo@arm.com>
13816 * config/arm/arm-cores.def: Added core cortex-m0plus.
13817 * config/arm/arm-tune.md: Regenerated.
13818 * config/arm/arm-tables.opt: Regenerated.
13819 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
13821 2012-04-13 Alan Modra <amodra@gmail.com>
13824 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
13825 tie regs on destination of sets. Delete forward declaration.
13826 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
13827 (rs6000_emit_prologue): Likewise.
13828 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
13830 (is_mem_ref): Use tie_operand to recognise stack ties.
13831 * config/rs6000/predicates.md (tie_operand): New.
13832 * config/rs6000/rs6000.md (restore_stack_block): Generate new
13834 (restore_stack_nonlocal): Likewise.
13835 (stack_tie): Update.
13836 (frame_tie): Delete.
13838 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13840 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
13841 HOST_WIDE_INT_PRINT_DEC in format strings.
13843 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
13846 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
13847 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
13848 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
13849 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
13850 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
13851 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
13852 avx2_permvarv8si using VI4F_256 mode iterator.
13853 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
13854 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
13855 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
13856 gen_avx2_permvarv8sf.
13857 (expand_vec_perm_pshufb): Ditto.
13859 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13862 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
13863 the list of options to enable the FCFID instruction.
13864 (TARGET_EXTRA_BUILTINS): Adjust comment.
13866 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13868 PR tree-optimization/18589
13869 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
13870 (operand_entry): Add count field.
13871 (add_repeat_to_ops_vec): New function.
13872 (completely_remove_stmt): Likewise.
13873 (remove_def_if_absorbed_call): Likewise.
13874 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
13875 (acceptable_pow_call): New function.
13876 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
13877 entries with repeat counts when found.
13878 (repeat_factor_d): New struct and associated typedefs.
13879 (repeat_factor_vec): New static vector variable.
13880 (compare_repeat_factors): New function.
13881 (get_reassoc_pow_ssa_name): Likewise.
13882 (attempt_builtin_powi): Likewise.
13883 (reassociate_bb): Call attempt_builtin_powi.
13884 (fini_reassoc): Two new calls to statistics_counter_event.
13886 2012-04-12 Richard Guenther <rguenther@suse.de>
13888 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
13889 * cgraph.h (tree_rest_of_compilation): Remove.
13890 * cgraph.c (cgraph_add_new_function): Move ...
13891 * cgraphunit.c (cgraph_add_new_function): ... here.
13892 (tree_rest_of_compilation): Make static.
13893 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
13894 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
13895 gate_all_early_local_passes, execute_all_early_local_passes,
13896 pass_early_local_passes, gate_all_early_optimizations,
13897 pass_all_early_optimizations): Move ...
13898 * passes.c (gate_all_optimizations, pass_all_optimizations,
13899 gate_all_early_local_passes, execute_all_early_local_passes,
13900 pass_early_local_passes, gate_all_early_optimizations,
13901 pass_all_early_optimizations): ... here.
13902 * tree-optimize.c (execute_free_datastructures): Remove.
13903 * tree-flow.h (execute_free_datastructures): Remove.
13904 * tree-optimize.c (execute_init_datastructures,
13905 pass_init_datastructures): Move ...
13906 * tree-ssa.c (execute_init_datastructures,
13907 pass_init_datastructures): ... here.
13908 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
13909 execute_free_datastructures.
13911 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
13913 * dbgcnt.def (ira_move): New counter.
13914 * ira-int.h (ira_create_new_reg): Declare function.
13915 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
13916 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
13917 no longer static. All callers changed.
13918 * ira.c: Include "dbgcnt.h".
13919 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
13920 move_unallocated_pseudos): New static functions.
13921 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
13922 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
13923 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
13924 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
13925 to the pseudos generated in find_moveable_pseudos.
13926 * Makefile.in (ira.o): Add $(DBGCNT_H).
13928 2012-04-12 Richard Guenther <rguenther@suse.de>
13930 PR tree-optimization/52943
13931 * tree-chrec.h (chrec_is_positive): Remove.
13932 * tree-scalar-evolution.c (chrec_is_positive): Move ...
13933 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
13934 Return false for a constant zero instead of negative.
13935 (analyze_siv_subscript_cst_affine): Handle zero difference
13936 in the initial condition explicitely.
13938 2012-04-12 Richard Guenther <rguenther@suse.de>
13940 * tree-parloops.c (parallelize_loops): Also consult the upper
13941 bound for the number of iterations.
13942 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13943 (loop_prefetch_arrays): Likewise.
13945 2012-04-12 Richard Guenther <rguenther@suse.de>
13947 * cfgloop.h (estimated_loop_iterations_int): Ditch
13948 'conservative' parameter.
13949 (max_stmt_executions_int): Likewise.
13950 (estimated_loop_iterations): Likewise.
13951 (max_stmt_executions): Likewise.
13952 (max_loop_iterations): Declare.
13953 (max_loop_iterations_int): Likewise.
13954 (estimated_stmt_executions): Likewise.
13955 (estimated_stmt_executions_int): Likewise.
13956 * tree-ssa-loop-niter.c (estimated_loop_iterations):
13958 (max_loop_iterations): ... this.
13959 (estimated_loop_iterations_int): Split parts to ...
13960 (max_loop_iterations_int): ... this.
13961 (max_stmt_executions_int): Split parts to ...
13962 (estimated_stmt_executions_int): ... this.
13963 (max_stmt_executions): Split parts to ...
13964 (estimated_stmt_executions): ... this.
13965 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
13966 * predict.c (predict_loops): Likewise.
13967 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
13968 (analyze_siv_subscript_cst_affine): Likewise.
13969 (compute_overlap_steps_for_affine_1_2): Likewise.
13970 (analyze_subscript_affine_affine): Likewise.
13971 (init_omega_for_ddr_1): Likewise.
13972 * tree-parloops.c (parallelize_loops): Likewise.
13973 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13974 (may_eliminate_iv): Likewise.
13975 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13976 (loop_prefetch_arrays): Likewise.
13977 * tree-vrp.c (adjust_range_with_scev): Likewise.
13979 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
13981 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
13982 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
13984 (dump_table): Use bool type for need_align and have_df variables.
13985 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
13986 (regs_used): Remove register modifier.
13987 (barrier_align): Move variables slot, credit, jump_to_next
13988 into if block above for loop. Use bool type for jump_to_next.
13989 (sh_function_arg): Use NULL_RTX instead of 0.
13991 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
13993 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
13994 (bswapsi2): New expander.
13996 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
13998 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
13999 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
14001 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
14003 PR rtl-optimization/52876
14004 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
14005 Don't call mark_reg_pointer for incompatible pointer sign extension.
14007 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
14010 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
14012 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
14013 comparisons against TYPE_PRECISION.
14014 * tree-ssa-forwprop.c (combine_conversions): Likewise.
14016 2012-04-11 Xinliang David Li <davidxl@google.com>
14018 * tree-passes.h: Remove TODO_dump_func.
14019 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
14020 * trans-mem.c: Remove TODO_dump_func.
14021 * ira.c: Remove TODO_dump_func.
14023 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
14025 * config/i386/i386.c (ix86_option_override_internal): Check
14026 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
14027 after TARGET_64BIT is updated.
14029 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14031 * config/sh/sh.h: Remove old secondary reload code.
14033 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14035 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
14036 (ready_reorder): ... this function.
14038 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
14040 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
14043 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
14044 insns so that no other insn is queued for a time before them.
14046 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
14049 2012-04-11 Richard Guenther <rguenther@suse.de>
14051 PR middle-end/52621
14052 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
14053 consider loop nesting.
14054 (evolution_function_is_univariate_p): Properly check the remainder
14057 2012-04-11 Richard Guenther <rguenther@suse.de>
14059 PR middle-end/52918
14060 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
14062 2012-04-11 Nick Clifton <nickc@redhat.com>
14064 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
14065 information, if requested.
14067 * config/rx/rx.c (rx_expand_prologue): Likewise.
14069 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
14070 Michael Matz <matz@suse.de>
14073 * rtlanal.c (unsigned_reg_p): New function.
14074 Update copyright notice dates.
14075 * rtl.h (unsigned_reg_p): Prototype it.
14076 Update copyright notice dates.
14077 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
14079 * expr.c (expand_expr_real_1): Set register attributes.
14080 * stmt.c (expand_case): Likewise.
14082 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14085 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
14086 consider_sh2a and allow_zero.
14087 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
14088 (disp_addr_displacement): New function.
14089 (sh_address_cost): Use disp_addr_displacement function instead
14090 of DISP_ADDR_OFFSET.
14091 (sh_legitimate_address_p): Adapt to changed
14092 sh_legitimate_index_p declaration.
14093 (sh_find_mov_disp_adjust): Remove HImode check.
14094 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
14095 disp_addr_displacement and max_mov_insn_displacement.
14096 (max_mov_insn_displacement): Remove HImode check.
14097 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
14098 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
14099 * config/sh/constraints.md (K05, K13): New constraints.
14100 (K12): Correct comment.
14101 (Sdd): Do not use DISP_ADDR_P macro.
14102 (Snd, Sbw): Use satisfies_constraint_Sdd.
14103 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
14104 (*extendhisi2_compact, movhi_i): Remove.
14105 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
14106 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
14107 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
14108 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
14109 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
14110 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
14111 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
14113 Add new peepholes for HImode displacement addressing.
14115 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14117 * config/sh/sh.h (SIDI_OFF): Remove.
14118 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
14119 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
14120 or operand_subword.
14122 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
14125 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
14126 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
14127 * doc/md.texi (Standard Names): Add bswap.
14128 * builtin-types.def (BT_UINT16): New primitive type.
14129 (BT_FN_UINT16_UINT16): New function type.
14130 * builtins.def (BUILT_IN_BSWAP16): New.
14131 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
14132 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
14133 expand_builtin_bswap.
14134 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
14135 (fold_builtin_1): Likewise.
14136 (is_inexpensive_builtin): Likewise.
14137 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
14138 missing bits for bswap to libcall code.
14139 * tree.c (build_common_tree_nodes): Build uint16_type_node.
14140 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
14141 (uint16_type_node): New define.
14142 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
14143 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
14145 (rs6000_init_builtins): Likewise.
14146 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
14148 2012-04-11 Tristan Gingold <gingold@adacore.com>
14150 * doc/extend.texi (Type Attributes): Move paragraph.
14152 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14155 * diagnostic.h (show_caret): Declare.
14156 (caret_max_width): Declare.
14157 (diagnostic_show_locus): Declare.
14158 * diagnostic.c (diagnostic_initialize): Initialize to false.
14159 (diagnostic_show_locus): New.
14160 (diagnostic_report_diagnostic): Call it.
14161 (getenv_columns): New.
14162 (adjust_line): New.
14163 (diagnostic_set_caret_max_width): New.
14164 * input.c (read_line): New.
14165 (location_get_source_line): New.
14166 * input.h (location_get_source_line): Declare.
14167 * toplev.c (general_init): Initialize show_caret from options.
14168 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
14169 * opts.c (common_handle_option): Likewise.
14170 * pretty-print.h (pp_get_prefix): New.
14171 (pp_base_get_prefix): New.
14172 * common.opt (fdiagnostics-show-caret): New option.
14173 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
14175 2012-04-11 Richard Guenther <rguenther@suse.de>
14177 PR rtl-optimization/52881
14178 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
14180 2012-04-11 Richard Guenther <rguenther@suse.de>
14182 PR tree-optimization/52912
14183 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
14184 manipulation code we are threading through a loop header
14185 to an exit destination.
14187 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
14189 * tree.h (warn_if_unused_value): Move declaration from here.
14190 * stmt.c (warn_if_unused_value): Move definition from here.
14192 2012-04-10 Michael Matz <matz@suse.de>
14194 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
14196 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
14197 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
14198 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
14199 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
14200 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
14201 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
14202 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
14203 (vect_record_strided_load_vectors): Rename to
14204 vect_record_grouped_load_vectors.
14205 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
14206 Rename use of above macros.
14207 (vect_verify_datarefs_alignment): Ditto.
14208 (vector_alignment_reachable_p): Ditto.
14209 (vect_peeling_hash_get_lowest_cost): Ditto.
14210 (vect_enhance_data_refs_alignment): Ditto.
14211 (vect_analyze_group_access): Ditto and rename stride to groupsize.
14212 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
14213 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
14214 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
14215 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
14216 (vect_record_strided_load_vectors): Rename to
14217 vect_record_grouped_load_vectors.
14218 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
14219 (destroy_loop_vec_info): Ditto.
14220 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
14221 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
14222 (vect_analyze_slp): Ditto.
14223 (new_bb_vec_info): Ditto.
14224 (destroy_bb_vec_info): Ditto.
14225 (vect_schedule_slp_instance): Ditto and rename strided_store to
14227 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
14228 vect_cost_group_size.
14229 (vect_model_store_cost): Rename use of above macros and call
14230 to vect_cost_strided_group_size.
14231 (vect_model_load_cost): Ditto.
14232 (vectorizable_store): Ditto, rename strided_store to grouped_store
14233 and calls to renamed tree-vectorizer.h functions.
14234 (vectorizable_load): Ditto.
14235 (vect_transform_stmt): Rename use of above macros and strided_store
14238 2012-04-10 Jan Hubicka <jh@suse.cz>
14240 * cgraph.h: Remove misledaing comment on ipa-ref.h.
14241 (symtab_type): New enum.
14242 (symtab_node): New structure.
14243 (cgraph_node, varpool_node): Add symbol base type.
14244 (cgraph, varpool): New accestor functions.
14245 * cgraph.c (cgraph_create_node_1): Set symbol type.
14246 * varpool.c (varpool_node): Set symbol type.
14248 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
14249 Richard Sandiford <rdsandiford@googlemail.com>
14251 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
14253 2012-04-10 Richard Guenther <rguenther@suse.de>
14255 PR middle-end/52888
14256 * gimple-low.c (gimple_check_call_args): Properly account for
14257 compatible aggregate types.
14259 2012-04-10 Richard Guenther <rguenther@suse.de>
14261 * toplev.h (tree_rest_of_compilation): Remove.
14262 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14263 * cgraph.h (tree_rest_of_compilation): Declare.
14264 * tree-optimize.c (tree_rest_of_compilation): Move ...
14265 * cgraphunit.c (tree_rest_of_compilation): ... here.
14266 * cgraph.c (cgraph_add_new_function): Adjust.
14267 * Makefile.in (tree-optimize.o): Adjust.
14268 (cgraphunit.o): Likewise.
14270 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
14272 PR tree-optimization/52870
14273 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
14274 presumed pattern statement is within the same loop or basic block.
14276 2012-04-10 Tristan Gingold <gingold@adacore.com>
14278 * gengtype.c (main): Make uintptr_t a known type.
14280 2012-04-10 Richard Guenther <rguenther@suse.de>
14282 * tree-pass.h (tree_lowering_passes): Remove.
14283 * tree-optimize.c (tree_lowering_passes): Remove.
14284 * cgraph.c (cgraph_add_new_function): Inline relevant parts
14285 of tree_lowering_passes, avoid redundant call of early local passes.
14286 * cgraphunit.c (cgraph_lower_function): Fold into ...
14287 (cgraph_analyze_function): ... its single caller. Inline
14288 relevant parts of tree_lowering_passes.
14290 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
14293 * config/pa/pa.opt: Remove SIO and GNU_LD.
14295 2012-04-09 Jan Hubicka <jh@suse.cz>
14300 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
14301 boundary, add its target too.
14302 * lto.c (add_references_to_partition): Add also aliased nodes.
14303 (add_cgraph_node_to_partition,
14304 add_varpool_node_to_partition): Work on nodes, not functions/variables;
14305 when adding alias, add also the aliased object.
14307 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
14310 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
14311 VOIDmode immediate operands.
14312 * config/i386/constraints.md (Wz): New constraint.
14313 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
14315 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
14318 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
14319 the DECL generated for the special GOT helper.
14321 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
14323 * config/sh/constraints.md: Update list of constraints in
14325 (Sr0): Remove unused memory constraint.
14327 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14329 * tree-pretty-print.h: Update comment.
14331 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
14333 * config/sh/sh.md: Use braced string notation where applicable.
14334 (*prefetch_i4, prefetch_m2a): Merge into ...
14335 (*prefetch): ... this new insn.
14337 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14339 * config/sh/sh.h (high_life_started): Remove
14340 * config/sh/predicates.md (general_movdst_operand): Use
14341 'reload_in_progress' instead of 'high_life_started'.
14342 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
14343 divsi_inv_fp): Likewise.
14345 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14347 * config/sh/sh-protos.h (prepare_move_operands): Return void
14349 * config/sh/sh.c (prepare_move_operands): Likewise.
14350 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
14352 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14354 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
14355 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
14356 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
14357 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
14358 commutative_float_operator, noncommutative_float_operator,
14359 sh_handle_pragma): Remove.
14361 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
14363 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
14364 Use @option markup on command-line options. Use @samp markup on
14365 literal keywords to options. Use @code markup on code fragments.
14366 Use other markup in preference to quotation marks in the text.
14367 Add markup to some passages without any.
14369 2012-04-06 Mike Stump <mikestump@comcast.net>
14371 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
14373 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14375 * config/sh/sh.c (hi_const): Remove.
14376 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
14379 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14381 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
14383 * config/sh/sh.c (sh_expand_t_scc): Likewise.
14384 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
14385 calling sh_expand_t_scc.
14387 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14389 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
14390 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
14391 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
14392 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
14393 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
14394 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
14395 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
14396 sh2a_is_function_vector_call): Use bool as return type.
14397 (sh_pass_in_reg_p): Remove.
14398 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
14399 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
14400 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
14401 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
14402 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
14403 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
14404 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
14405 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
14406 sh_loads_bankedreg_p): Use bool as return type.
14407 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
14408 'register' modifier.
14410 2012-04-06 Matt Turner <mattst88@gmail.com>
14412 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
14414 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
14416 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
14417 of the destination isn't also a FP_REGS register.
14419 2012-04-05 Teresa Johnson <tejohnson@google.com>
14420 H.J. Lu <hongjiu.lu@intel.com>
14422 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
14423 * config/i386/i386.md (move immediate to memory peephole2):
14424 Add cases for HImode move when LCP stall avoidance is needed.
14425 * config/i386/i386.c (initial_ix86_tune_features): Initialize
14426 X86_TUNE_LCP_STALL entry.
14428 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
14431 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
14432 CONST_INT operands, zero-extended with AND.
14434 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
14437 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
14438 first argument instead of mode size. Move displacement calculations
14440 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
14441 ... these new functions.
14442 (disp_adjust): Remove max_mov_disp field.
14443 (sh_legitimate_index_p): Use max_mov_insn_displacement and
14444 mov_insn_alignment_mask.
14445 (sh_address_cost): Use max_mov_insn_displacement.
14447 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
14449 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
14450 (arch_enabled): Handle new arch types.
14451 (one_cmpldi2): Add NEON support.
14453 2012-04-05 Richard Guenther <rguenther@suse.de>
14455 * gimple.c (walk_gimple_op): Compute val_only for the LHS
14456 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
14457 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
14458 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
14459 ... here and make static.
14460 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
14463 2012-04-05 Richard Guenther <rguenther@suse.de>
14465 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
14466 basic-block before removing it.
14468 2012-04-05 Richard Guenther <rguenther@suse.de>
14470 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
14471 version namespace as we release the freelist.
14473 2012-04-05 Richard Guenther <rguenther@suse.de>
14475 * tree-nrv.c (tree_nrv): Release VDEFs.
14476 * tree-sra.c (sra_modify_constructor_assign): Likewise.
14477 (sra_modify_assign): Likewise.
14478 * tree-vect-stmts.c (vect_remove_stores): Likewise.
14479 * tree-vect-loop.c (vect_transform_loop): Likewise.
14480 * tree-ssa-dom.c (optimize_stmt): Likewise.
14481 * tree-vect-slp.c (vect_schedule_slp): Likewise.
14482 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
14484 2012-04-05 Richard Guenther <rguenther@suse.de>
14486 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
14488 * gimple.h (gsi_remove): Adjust.
14489 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
14490 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
14491 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
14492 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
14493 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
14494 * tree-ssa-pre.c (eliminate): Likewise.
14496 2012-04-04 Mike Stump <mikestump@comcast.net>
14498 * doc/rtl.texi (const_double): Document as sign-extending.
14499 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
14500 * emit-rtl.c (immed_double_int_const): Refine to state the
14502 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
14503 CONST_DOUBLE integers.
14504 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
14505 negative values are converted. Fix conversions bigger than
14506 HOST_BITS_PER_WIDE_INT.
14507 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
14508 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
14509 * explow.c (plus_constant_mode): Add.
14510 (plus_constant): Implement with plus_constant_mode.
14511 * rtl.h (plus_constant_mode): Add.
14513 2012-04-04 Richard Guenther <rguenther@suse.de>
14515 PR tree-optimization/52808
14516 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
14517 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
14519 2012-04-04 Tristan Gingold <gingold@adacore.com>
14521 * expr.c (expand_expr_real_2): Handle larger sizetype in
14524 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
14526 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
14527 to m2a-single instead of m2e.
14529 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
14531 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
14532 Change type of BITOFFSET to signed. Make sure the lower bound of
14533 the computed range is non-negative by adjusting OFFSET and BITPOS.
14534 (expand_assignment): Adjust call to get_bit_range.
14536 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
14538 * h8300/h8300.c (h8300_current_function_monitor_function_p):
14539 New function. Added to check monitor functions.
14540 (h8300_option_override): Modified to generate error/warning
14541 messages for invalid combinations of different command line
14543 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
14544 save EXR on stack for monitor function in case of H8S target
14545 when "-mno-exr" is passed.
14546 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
14548 * doc/invoke.texi: Document H8S options.
14550 2012-04-03 Tristan Gingold <gingold@adacore.com>
14552 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
14553 of gcc_AC_FUNC_MMAP_BLACKLIST.
14554 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
14555 * Makefile.in (aclocal_deps): Add mmap.m4.
14556 * configure: Regenerate.
14557 * aclocal.m4: Regenerate.
14559 2012-04-03 Richard Guenther <rguenther@suse.de>
14561 PR tree-optimization/52808
14562 * tracer.c (tail_duplicate): Return whether we have duplicated
14564 (tracer): If we have duplicated any block, cleanup the CFG.
14565 * cfghooks.c (duplicate_block): If we duplicated a loop
14566 header but not its loop, destroy the loop because it now has
14568 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
14569 the cfg manipulation routines we are not creating a multiple
14572 2012-04-03 Tristan Gingold <gingold@adacore.com>
14574 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
14576 (vms_c_common_override_options): Allow parameterless variadic
14579 2012-04-03 Jakub Jelinek <jakub@redhat.com>
14581 PR tree-optimization/52835
14582 * tree-data-ref.c (build_rdg): Return NULL if
14583 compute_data_dependences_for_loop failed.
14585 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
14587 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
14588 for REAL_CST as well.
14589 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
14590 In the bitfield case, if the value is a REAL_CST, convert it first to
14593 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
14595 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
14596 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
14597 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
14599 * config/i386/biarchx32.h: New.
14601 2012-04-02 Anatoly Sokolov <aesok@post.ru>
14603 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
14604 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14605 (arm_preferred_reload_class): New function.
14607 2012-04-02 Richard Guenther <rguenther@suse.de>
14609 PR tree-optimization/52756
14610 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
14611 (thread_through_loop_header): After threading through the loop latch
14612 remove the split part from the loop and clear further threading
14613 opportunities that would create a multiple entry loop.
14615 2012-04-02 Richard Guenther <rguenther@suse.de>
14617 PR rtl-optimization/52800
14618 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
14619 CLEANUP_CFG_CHANGED.
14621 2012-04-02 Richard Guenther <rguenther@suse.de>
14623 PR middle-end/52803
14624 * loop-init.c (gate_handle_loop2): Destroy loops here if
14625 we don't enter RTL loop optimizers.
14627 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
14630 2012-03-29 Richard Guenther <rguenther@suse.de>
14632 * rtl.h (extended_count): Remove.
14633 * combine.c (extended_count): Remove.
14635 2012-04-02 Dodji Seketeli <dodji@redhat.com>
14638 * pt.c (more_specialized_fn): Don't apply decay conversion to
14639 types of function parameters.
14641 2012-04-02 Tristan Gingold <gingold@adacore.com>
14643 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
14644 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
14645 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
14646 (ggc_pch_this_base): Use uintptr_t instead of size_t.
14648 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14651 * config/i386/i386.c (ix86_option_override_internal): Don't
14652 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
14654 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
14656 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
14657 (stmt_can_make_abnormal_goto): Use it.
14658 (is_ctrl_altering_stmt): Likewise.
14660 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
14661 Kaz Kojima <kkojima@gcc.gnu.org>
14663 * config/sh/sh.c (push_regs): Skip banked registers when
14664 resbank attribute is specified.
14665 (sh_expand_epilogue): Likewise.
14667 2012-03-30 Richard Henderson <rth@redhat.com>
14670 * combine-stack-adj.c (prev_active_insn_bb): New.
14671 (next_active_insn_bb): New.
14672 (force_move_args_size_note): New.
14673 (combine_stack_adjustments_for_block): Use it.
14675 2012-03-30 Richard Henderson <rth@redhat.com>
14677 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
14678 (ix86_expand_vector_init_duplicate): Initialize it.
14679 (expand_vec_perm_palignr): Likewise.
14680 (ix86_expand_vec_perm_const): Likewise.
14681 (ix86_vectorize_vec_perm_const_ok): Likewise.
14682 (expand_vec_perm_blend): Use it.
14683 (expand_vec_perm_vpermil): Likewise.
14684 (expand_vec_perm_pshufb): Likewise.
14685 (expand_vec_perm_1): Likewise.
14686 (expand_vec_perm_pshuflw_pshufhw): Likewise.
14687 (expand_vec_perm_interleave2): Likewise.
14688 (expand_vec_perm_vpermq_perm_1): Likewise.
14689 (expand_vec_perm_vperm2f128): Likewise.
14690 (expand_vec_perm_interleave3): Likewise.
14691 (expand_vec_perm_vperm2f128_vblend): Likewise.
14692 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14693 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
14694 (expand_vec_perm_broadcast): Likewise.
14695 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14697 2012-03-30 Richard Henderson <rth@redhat.com>
14699 * dwarf2out.c (gen_variable_die): Initialize off.
14701 2012-03-30 Tristan Gingold <gingold@adacore.com>
14703 * config/vms/vms-f.c: New file.
14704 * config/vms/t-vms (vms-f.o): New rule.
14705 * config.gcc (*-*-*vms*): Define fortran_target_objs.
14707 2012-03-30 Richard Guenther <rguenther@suse.de>
14709 PR tree-optimization/52754
14710 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
14711 propagate arbitrary addresses into really plain dereferences.
14713 2012-03-30 Richard Guenther <rguenther@suse.de>
14715 PR middle-end/52772
14716 * except.c (emit_to_new_bb_before): Move loop updating ...
14717 (dw2_build_landing_pads): ... here. Use a proper block for
14718 querying the loop father.
14720 2012-03-30 Tristan Gingold <gingold@adacore.com>
14722 * config/ia64/ia64.c (ia64_section_type_flags): Remove
14723 common_object attribute handling.
14724 (SECTION_VMS_OVERLAY): Remove
14725 (ia64_vms_common_object_attribute): Replace abort with an assert.
14726 Do not set DECL_SECTION_NAME.
14727 (ia64_vms_output_aligned_decl_common): Handle common_object
14729 (ia64_vms_elf_asm_named_section): Remove.
14730 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
14732 2012-03-30 Richard Guenther <rguenther@suse.de>
14734 PR middle-end/52786
14735 * double-int.c (rshift_double): Remove not needed cast.
14737 2012-03-30 Richard Guenther <rguenther@suse.de>
14739 * tree-affine.h (print_aff): Remove.
14740 * tree-affine.c (print_aff): Make static.
14741 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
14742 (get_references_in_stmt): Likewise.
14743 (print_direction_vector): Likewise.
14744 (print_dir_vectors): Likewise.
14745 (print_dist_vectors): Likewise.
14746 (dump_subscript): Likewise.
14747 (dump_ddrs): Likewise.
14748 (dump_dist_dir_vectors): Likewise.
14749 (dump_data_references): Likewise.
14750 (dump_data_dependence_relation): Likewise.
14751 (dump_data_dependence_direction): Likewise.
14752 (dump_rdg_vertex): Likewise.
14753 (dump_rdg_component): Likewise.
14754 (debug_ddrs): Declare.
14755 (struct data_ref_loc_d): Move ...
14756 * tree-data-ref.c (struct data_ref_loc_d): ... here.
14757 (get_references_in_stmt): Make static.
14758 (dump_data_references): Likewise.
14759 (dump_subscript): Likewise.
14760 (print_direction_vector): Likewise.
14761 (print_dir_vectors): Likewise.
14762 (print_dist_vectors): Likewise.
14763 (dump_data_dependence_relation): Likewise.
14764 (dump_dist_dir_vectors): Likewise.
14765 (dump_ddrs): Likewise.
14766 (dump_rdg_vertex): Likewise.
14767 (dump_rdg_component): Likewise.
14768 (debug_ddrs): New function.
14769 (access_matrix_get_index_for_parameter): Remove.
14771 2012-03-30 Tristan Gingold <gingold@adacore.com>
14773 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
14774 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
14775 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
14776 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
14777 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
14778 (vms_patch_builtins): Handle new flags
14779 * config/vms/vms-crtlmap.map: Completed using nm on
14780 c and math system libraries.
14781 * config/vms/make-crtlmap.awk: Handle any number of flags.
14783 2012-03-30 Martin Jambor <mjambor@suse.cz>
14785 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
14786 is a builtin_stack_save in a dominating BB.
14788 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
14790 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
14791 crossing 128bit lane boundary.
14793 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
14795 * ira-color.c (setup_left_conflict_sizes_p): Process all
14796 conflicting objects.
14798 2012-03-29 Jakub Jelinek <jakub@redhat.com>
14800 PR tree-optimization/52760
14801 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
14802 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
14804 2012-03-29 Richard Guenther <rguenther@suse.de>
14806 * cgraph.h (cgraph_materialize_all_clones): Remove.
14807 (reset_inline_failed): Likewise.
14808 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
14809 * cgraphbuild.c (reset_inline_failed): Remove.
14810 * rtl.h (cse_main): Remove.
14811 (extended_count): Likewise.
14812 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
14813 (cse_main): Make static.
14814 * combine.c (extended_count): Remove.
14815 (dump_combine_stats): Mark as DEBUG_FUNCTION.
14816 * basic-block.h (reorder_basic_blocks): Remove.
14817 * bb-reorder.c (reorder_basic_blocks): Make static.
14818 * Makefile.in (dse.o): Remove dse.h dependency.
14820 * dse.c (gate_dse): Remove.
14821 (clear_alias_mode_eq): Likewise.
14822 (clear_alias_mode_hash): Likewise.
14823 (dse_record_singleton_alias_set): Likewise.
14824 (dse_invalidate_singleton_alias_set): Likewise.
14826 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
14828 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
14829 crtbegin_so%O%s for -shared.
14830 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
14832 2012-03-29 Richard Guenther <rguenther@suse.de>
14834 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
14835 (add_to_value): Remove.
14836 (print_value_expressions): Likewise.
14837 * tree-ssa-pre.c (add_to_value): Make static.
14838 (print_value_expressions): Likewise.
14839 * gimple.h (gimple_adjust_this_by_delta): Remove.
14840 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
14842 2012-03-29 Richard Guenther <rguenther@suse.de>
14844 PR middle-end/50708
14845 * double-int.h (rshift_double): Remove.
14846 * double-int.c (lshift_double): Use absu_hwi to make count positive.
14847 (rshift_double): Make static, take unsigned count argument,
14848 remove handling of negative count argument.
14849 (double_int_rshift): Dispatch to lshift_double.
14851 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
14853 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
14854 OPTION_MASK_ABI_64.
14856 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
14857 (SPEC_X32): Likewise.
14858 (MULTILIB_DEFAULTS): Likewise.
14860 * config/i386/i386.c (isa_opts): Remove -m64.
14861 (ix86_target_string): Properly handle -m32/-m64/-mx32.
14862 (ix86_option_override_internal): Properly
14863 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
14864 handle -m32, -m64 and -mx32.
14866 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
14867 with OPTION_ABI_X32. Moved after TARGET_LP64.
14868 (TARGET_LP64): Changed to OPTION_ABI_64.
14870 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
14871 (mx32): Replace ISA_X32 with ABI_X32.
14873 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
14875 * tree.c (tree_size) <VECTOR_CST>: New case.
14877 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
14879 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
14880 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
14882 2012-03-28 Jakub Jelinek <jakub@redhat.com>
14884 PR middle-end/52691
14885 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
14886 __builtin_va_start to __builtin_next_arg if the latter is
14887 builtin_decl_explicit_p rather than when it is not.
14889 PR middle-end/52750
14890 * tree-vect-generic.c (vector_element): Perform multiplication
14891 for pos in bitsizetype type instead of idx type.
14893 2012-03-28 Richard Guenther <rguenther@suse.de>
14895 * loop-init.c (loop_optimizer_init): If loops are preserved
14896 perform incremental initialization of required loop features.
14897 (loop_optimizer_finalize): If loops are to be preserved only
14898 clean up optional loop features.
14899 (rtl_loop_done): Forcefully free loops here.
14900 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
14901 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
14903 (construct_init_block): Likewise.
14904 (construct_exit_block): Likewise.
14905 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
14906 the CFG after expanding.
14907 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
14908 If we needed to calculate them, free them afterwards.
14909 * tree-pass.h (PROP_loops): New define.
14910 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
14911 * basic-block.h (CLEANUP_CFG_CHANGED): New.
14912 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
14913 (cleanup_cfg): If we did something and have loops around, fix them up.
14914 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
14915 with CLEANUP_CFG_CHANGED.
14916 * cfghooks.c (merge_blocks): If we merge a loop header into
14917 its predecessor, update the loop structure.
14918 (duplicate_block): If we copy a loop latch, adjust loop state
14919 to note we may have multiple latches.
14920 (delete_basic_block): Mark loops for fixup if we remove a loop.
14921 * cfganal.c (forwarder_block_p): Protect loop latches, headers
14923 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
14924 (cfg_layout_can_merge_blocks_p): Likewise.
14925 * cprop.c (bypass_block): If we create a loop with multiple
14926 entries, mark it for removal.
14927 * except.c (emit_to_new_bb_before): Add the new basic-block
14929 * tree-eh.c (lower_resx): Likewise.
14930 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
14931 (expand_omp_taskreg): Likewise.
14932 * tree-inline.c (initialize_cfun): Likewise.
14933 * tree-mudflap.c (add_bb_to_loop): Prototype.
14934 (mf_build_check_statement_for): Properly add new basic-blocks
14936 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
14937 if we remove a loop.
14938 (thread_through_loop_header): Likewise.
14939 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
14940 new basic-blocks to existing loops.
14941 (expand_transaction): Likewise.
14942 * Makefile.in (except.o): Add $(CFGLOOP_H).
14943 (expr.o): Likewise.
14944 (cgraph.o): Likewise.
14945 (cprop.o): Likewise.
14946 (cfgexpand.o): Likewise.
14947 (cfganal.o): Likewise.
14948 (trans-mem.o): Likewise.
14949 (tree-eh.o): Likewise.
14951 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
14954 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
14955 (avr_builtin_decl): New static function.
14956 (struct avr_builtin_description, avr_bdesc): Move up.
14957 Add GTY marker. Add field fndecl. Remove redundant field id.
14958 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
14959 (avr_expand_builtin): Code cleanup because .id is removed.
14961 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
14964 * config.gcc (tm_file): Remove avr/multilib.h.
14966 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
14968 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
14969 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
14970 * config/avr/t-avr: Remove generation of multilib.h.
14971 * config/avr/t-multilib: Regenerate.
14972 * config/avr/multilib.h: Remove.
14973 * config/avr/avr.opt (-msp8): New option.
14974 (avr_sp8): New variable.
14975 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
14976 * config/avr/avr.h (AVR_HAVE_SPH): New define.
14977 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
14978 (avr_device_to_sp8): New prototype.
14979 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
14980 (DRIVER_SELF_SPECS): New define.
14981 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
14982 __AVR_SP8__, __AVR_HAVE_SPH__.
14983 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
14984 AVR_HAVE_8BIT_SP to decide if SP_H is present.
14985 (avr_file_start): Ditto.
14987 2012-03-28 Jakub Jelinek <jakub@redhat.com>
14990 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
14991 instead of 8 in adjust_address.
14993 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
14995 PR middle-end/51893
14996 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
14999 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
15002 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
15003 Rearrange conditional logic. Move displacement address calculations
15005 (sh_find_mov_disp_adjust): ... this new function.
15007 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
15009 * config/arm/arm.opt (mapcs): Remove MaskExists.
15010 * config/cris/linux.opt (mno-gotplt): Likewise.
15011 * config/i386/i386.opt (mhard-float): Likewise.
15013 (mno-sse4): Likewise.
15014 * config/m68k/m68k.opt (mhard-float): Likewise.
15015 * config/mep/mep.op (mcop32): Likewise.
15016 * config/pa/pa-hpux.opt (msio): Likewise.
15017 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
15018 * config/picochip/picochip.opt (mlittle): Likewise.
15019 * config/sh/sh.opt (mrenesas): Likewise.
15020 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
15021 * config/sparc/sparc.opt (mhard-float): Likewise.
15022 * config/v850/v850.opt (mv850es): Likewise.
15023 * config/vax/vax.opt (mg-float): Likewise.
15025 2012-03-27 Martin Jambor <mjambor@suse.cz>
15027 PR middle-end/52693
15028 * tree-sra.c (sra_modify_assign): Do not call
15029 load_assign_lhs_subreplacements when working with an unscalarizable
15032 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
15035 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
15037 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
15038 * config/i386/i386.c: Include reload.h.
15039 (ix86_legitimize_reload_address): New function.
15041 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
15043 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
15044 hasn't been allocated. Define a target macro for Mask and
15045 InverseMask if it hasn't been defined. Remove MaskExists handling.
15047 * doc/options.texi: Remove MaskExists.
15049 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
15052 * config/sh/sh.c (find_barrier): Add equality check of last_got
15053 to avoid going above orig insn. Update comments.
15055 2012-03-27 Richard Guenther <rguenther@suse.de>
15057 PR middle-end/52720
15058 * fold-const.c (try_move_mult_to_index): Handle &x.array more
15061 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
15063 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
15064 of a unit before computing the offset in units.
15065 * expr.c (get_bit_range): Return the null range if the enclosing record
15066 is part of a larger bit field.
15068 2012-03-27 Tristan Gingold <gingold@adacore.com>
15070 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
15071 * config/ia64/ia64.md: Remove mode in template.
15072 Sign extend operand in expand_simple_binop.
15073 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
15074 CASE_VECTOR_MODE instead of TARGET_ILP32.
15075 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
15077 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
15079 * varasm.c (assemble_external): #if 0 out the new assert from the
15080 previous commit, it breaks the Java and Go front ends.
15082 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
15084 * toplev.c (check_global_declaration_1): Do not call assemble_external.
15085 * expr.c (emit_block_move_libcall_fn): Likewise.
15086 (clear_storage_libcall_fn): Likewise.
15087 (expand_expr_addr_expr_1): Likewise.
15088 (expand_expr_real_1): Likewise.
15089 * calls.c (rtx_for_function_call): Likewise.
15091 * varasm.c (assemble_external): Assert this function is only called
15092 during or after expanding to RTL.
15094 2012-03-26 Martin Jambor <mjambor@suse.cz>
15096 PR tree-optimization/50052
15097 * tree-sra.c (tree_non_aligned_mem_p): Removed.
15098 (tree_non_aligned_mem_for_access_p): Likewise.
15099 (build_accesses_from_assign): Removed strict alignment requirements
15101 (access_precludes_ipa_sra_p): Likewise.
15103 2012-03-26 Richard Guenther <rguenther@suse.de>
15105 PR tree-optimization/52701
15106 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
15107 compute and set the evolution part of PHI nodes.
15109 2012-03-26 Richard Guenther <rguenther@suse.de>
15111 PR tree-optimization/52721
15112 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
15114 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
15116 PR tree-optimization/52686
15117 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15120 2012-03-26 Tristan Gingold <gingold@adacore.com>
15122 * config/alpha/vms.h (LINK_SPEC): Simplify.
15123 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
15124 (NAME__MAIN, SYMBOL__MAIN): Remove.
15125 (VMS_DEBUG_MAIN_POINTER): Remove.
15126 * config/ia64/vms.h: Likewise.
15127 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
15128 code to vms.c. Call vms_start_function.
15129 * config/ia64/ia64.c (ia64_start_function): Likewise.
15130 * config/vms/vms-protos.h (vms_start_function): Declare.
15131 * config/vms/vms.c (vms_start_function): New function.
15132 * config/vms/vms.h (MATH_LIBRARY): Define.
15133 (VMS_DEBUG_MAIN_POINTER): Define.
15135 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
15137 PR rtl-optimization/52629
15138 * reload1.c (count_pseudo): Short-circuit common case.
15139 (count_spilled_pseudo): Return early for pseudos without hard regs.
15140 Assert that the pseudo has got a hard reg before manipulating it.
15142 2012-03-24 Jan Hubicka <jh@suse.cz>
15145 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
15146 (decide_is_variable_needed): Do not handle toplevel reorder here.
15147 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
15148 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
15151 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15153 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
15154 and str_bitsize instead of more convoluted expressions.
15156 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15159 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
15161 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15164 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
15166 2012-03-23 Martin Jambor <mjambor@suse.cz>
15168 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
15170 2012-03-23 Richard Guenther <rguenther@suse.de>
15172 PR tree-optimization/52678
15173 * tree-vectorizer.h (struct _stmt_vec_info): Add
15174 loop_phi_evolution_part member.
15175 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
15176 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
15177 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
15178 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15179 Use the cached evolution part and the PHI nodes value from
15180 the loop preheader edge instead of re-analyzing the evolution.
15182 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15184 * config/mips/mips-tables.opt: Update.
15185 * config/mips/mips.md (processor): Add xlp.
15186 * config/mips/mips-cpus.def: Add xlp.
15187 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
15189 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
15190 * doc/invoke.texi: Mention XLP.
15192 2012-03-22 Jakub Jelinek <jakub@redhat.com>
15194 PR middle-end/52547
15195 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
15196 on any new_local_var_chain vars declared during recursing on
15197 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
15199 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
15201 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
15202 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
15203 (ASM_OUTPUT_LOCAL): Ditto.
15204 (ASM_OUTPUT_COMMON): Remove.
15205 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
15206 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
15208 2012-03-22 Jan Hubicka <jh@suse.cz>
15210 PR middle-end/51737
15211 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
15213 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
15214 * ipa-inline-transform.c (save_inline_function_body): Remove
15215 copied clone if needed.
15216 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
15218 2012-03-22 Richard Guenther <rguenther@suse.de>
15220 PR middle-end/52666
15221 * fold-const.c (fold_ternary_loc): Fix typo.
15223 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
15226 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
15227 (unspecv): Add UNSPECV_MEMORY_BARRIER.
15228 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
15229 (delay_cycles_1, delay_cycles_2): Ditto.
15230 (delay_cycles_3, delay_cycles_4): Ditto.
15231 (nopv, *nopv): Ditto.
15232 (sleep, *sleep): Ditto.
15233 (wdr, *wdr): Ditto.
15235 2012-03-22 Richard Guenther <rguenther@suse.de>
15237 PR tree-optimization/52548
15238 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
15239 because of clobbers.
15240 (prune_clobbered_mems): New function.
15241 (compute_antic_aux): Use it to prune ANTIC_OUT.
15242 (compute_partial_antic_aux): Use it to prune PA_IN.
15243 (compute_avail): Only insert expressions into EXP_GEN that are not
15244 invalidated when translated up to the beginning of the block.
15246 2012-03-22 Richard Guenther <rguenther@suse.de>
15248 PR tree-optimization/52638
15249 * tree-vect-stmts.c (vect_init_vector_1): New function, split
15251 (vect_init_vector): ... here. Handle scalar vector inits.
15252 (vect_get_vec_def_for_operand): Adjust.
15253 (vectorizable_load): Likewise.
15255 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
15257 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
15258 (alpha*-*-freebsd*): Ditto.
15259 (alpha*-*-netbsd*): Ditto.
15260 (alpha*-*-openbsd*): Ditto.
15261 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
15262 (DWARF2_DEBUGGING_INFO): Remove.
15263 (PREFERRED_DEBUGGING_TYPE): Remove.
15264 (ASM_FINAL_SPEC): Remove.
15265 (IDENT_ASM_OP): Remove.
15266 (ASM_OUTPUT_IDENT): Remove.
15267 (SKIP_ASM_OP): Remove.
15268 (ASM_OUTPUT_SKIP): Remove.
15269 (ALIGN_ASM_OP): Remove.
15270 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
15271 (ASM_OUTPUT_CASE_LABEL): Remove.
15272 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
15273 (COMMON_ASM_OP): Remove.
15274 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
15275 (ASCII_DATA_ASM_OP): Remove.
15276 (READONLY_DATA_SECTION_ASM_OP): Remove.
15277 (INIT_SECTION_ASM_OP): Remove.
15278 (FINI_SECTION_ASM_OP): Remove.
15279 (ASM_SECTION_START_OP): Remove.
15280 (ASM_OUTPUT_SECTION_START_FILE): Remove.
15281 (TARGET_ASM_NAMED_SECTION): Remove.
15282 (TARGET_ASM_SELECT_SECTION): Remove.
15283 (MAKE_DECL_ONE_ONLY): Remove.
15284 (TYPE_ASM_OP): Remove.
15285 (SIZE_ASM_OP): Remove.
15286 (ASM_WEAKEN_LABEL): Remove.
15287 (TYPE_OPERAND_FMT): Remove.
15288 (ASM_DECLARE_RESULT): Remove.
15289 (ASM_DECLARE_OBJECT_NAME): Remove.
15290 (ASM_FINISH_DECLARE_OBJECT): Remove.
15291 (ELF_ASCII_ESCAPES): Remove.
15292 (ELF_STRING_LIMIT): Remove.
15293 (STRING_ASM_OP): Remove.
15294 (ASM_OUTPUT_EXTERNAL): Remove.
15295 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
15296 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
15298 (ASM_DECLARE_FUNCTION_NAME): Ditto.
15299 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
15300 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
15301 (ASM_OUTPUT_SKIP): Ditto.
15302 (READONLY_DATA_SECTION_ASM_OP): Remove.
15303 (USER_LABEL_PREFIX): Remove.
15304 (ASM_OUTPUT_ASCII): Remove.
15305 (ASM_OUTPUT_CASE_LABEL): Remove.
15306 (NO_DOLLAR_IN_LABEL): Undefine.
15308 2012-03-22 Richard Guenther <rguenther@suse.de>
15310 PR tree-optimization/52459
15311 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
15312 PHI insertion for calls.
15314 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
15316 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
15317 find_sets_in_insn, canonicalize_insn): Split out from ...
15318 (cse_insn): ... here.
15319 (invalidate_from_clobbers): Take an insn instead of the pattern.
15321 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
15324 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
15325 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
15326 * config/sh/sh.md (sindf2, cosdf2): Remove.
15328 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
15331 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
15332 prologue for unwinder and profiler.
15334 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
15336 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
15337 Introduce emul_name to select the right linker emulation for
15338 powerpc64-*-freebsd*.
15339 * configure: Regenerate.
15340 * config.gcc: Add bits to support powerpc64-*-freebsd*.
15341 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
15342 * config/rs6000/freebsd64.h: New file.
15343 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
15345 (rs6000_savres_strategy): Likewise.
15346 (rs6000_savres_routine_name): Likewise.
15347 (rs6000_elf_file_end): Likewise.
15348 * config/rs6000/t-freebsd64: New file.
15349 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
15350 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
15352 * config/rs6000/freebsd64.h: Remove duplicated entries from last
15354 * config/rs6000/t-freebsd64: Likewise.
15356 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
15358 PR rtl-optimization/52543
15360 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
15361 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
15362 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
15363 (avr_load_libgcc_p): Restrict to __flash loads.
15364 (avr_out_lpm): Only handle 1-byte loads from __flash.
15365 (avr_load_lpm): New function.
15366 (avr_find_unused_d_reg): Remove.
15367 (avr_out_lpm_no_lpmx): Remove.
15368 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
15369 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
15370 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
15371 (load_<mode>, load_<mode>_clobber): New insns.
15372 (mov<mode>): For multi-byte move from non-generic
15373 16-bit address spaces: Expand to load_<mode> resp.
15374 load_<mode>_clobber.
15375 (load<mode>_libgcc): Remove expander.
15376 (split-lpmx): Remove split.
15378 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
15380 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
15381 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
15382 All callers changed.
15383 (Fixed_core_reg): New feature.
15384 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
15386 * neon-testgen.ml: Handle Fixed_core_reg.
15388 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
15390 * config/arm/arm.c (thumb2_reorg): Add complete support
15391 for 16-bit instructions.
15392 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
15394 2012-03-21 Richard Guenther <rguenther@suse.de>
15396 PR tree-optimizer/52636
15397 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
15398 to the appropriate type.
15400 2012-03-21 Richard Guenther <rguenther@suse.de>
15402 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
15404 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
15405 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
15406 * passes.c (init_optimization_passes): Remove pass_init_function,
15407 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
15408 * tree-pass.h (pass_init_function): Remove.
15409 (pass_jump): Remove.
15410 (pass_initial_value_sets): Remove.
15411 (pass_unshare_all_rtl): Remove.
15412 * integrate.c (pass_initial_value_sets): Remove.
15413 * emit-rtl.c (pass_unshare_all_rtl): Remove.
15414 * tree.h (init_function_for_compilation): Remove.
15415 * function.c (init_function_for_compilation): Remove.
15416 (pass_init_function): Remove.
15417 * cfgcleanup.c (rest_of_handle_jump): Remove.
15418 (pass_jump): Remove.
15420 2012-03-20 Jason Merrill <jason@redhat.com>
15422 * tree-streamer-in.c (streamer_alloc_tree): Call
15423 ggc_alloc_zone_cleared_tree_node instead of
15424 ggc_alloc_zone_cleared_tree_node_stat.
15426 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
15428 * doc/extend.texi (Template Instantiation): Remove anachronisms.
15430 2012-03-20 Jakub Jelinek <jakub@redhat.com>
15433 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
15434 (ix86_expand_vec_perm_const_1): Call it.
15436 * config/i386/i386.c (vselect_insn): New variable.
15437 (init_vselect_insn): New function.
15438 (expand_vselect, expand_vselect_insn): Add testing_p argument.
15439 Call init_vselect_insn if vselect_insn is NULL. Adjust
15440 PATTERN (vselect_insn), instead of creating a new insn each time,
15441 only emit a copy of it if not testing and recog has been successful.
15442 (expand_vec_perm_pshufb, expand_vec_perm_1,
15443 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
15447 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
15448 ("enabled" attribute): Handle avx2 and noavx2 isas.
15449 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
15451 (vec_dup<mode>): Add avx2 =x,x alternative.
15452 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
15453 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
15454 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
15455 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
15457 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
15458 if possible, handle also V8SFmode.
15460 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
15462 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
15463 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
15464 reg_or_zero_operand predicate.
15465 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
15467 2012-03-20 Jakub Jelinek <jakub@redhat.com>
15469 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
15470 If operand isn't UNSPEC, return 0.
15472 2012-03-20 Richard Guenther <rguenther@suse.de>
15474 * tree-pass.h (pass_rtl_eh): Remove.
15475 * except.c (gate_handle_eh): Likewise.
15476 (rest_of_handle_eh): Likewise.
15477 (pass_rtl_eh): Likewise.
15478 (finish_eh_generation): Export.
15479 * except.h (finish_eh_generation): Declare.
15480 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
15481 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
15482 after expanding stack alignment. Instead of compacting blocks
15485 2012-03-20 Richard Guenther <rguenther@suse.de>
15487 * stor-layout.c (finish_bitfield_representative): Fallback
15488 to conservative maximum size if the padding up to the next
15489 field cannot be computed as a constant.
15490 (finish_bitfield_layout): If we cannot compute the distance
15491 between the start of the bitfield representative and the
15492 bitfield member start a new representative.
15493 * expr.c (get_bit_range): The distance between the start of
15494 the bitfield representative and the bitfield member is zero
15495 if the field offsets are not constants.
15497 2012-03-20 Tristan Gingold <gingold@adacore.com>
15499 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
15500 convert in lowercase.
15501 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
15502 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
15503 * stor-layout.c (sizetype_tab): Adjust.
15504 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
15505 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
15506 instead of type_kind_last.
15507 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
15508 instead of size_int_kind.
15509 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
15510 * doc/tm.texi: Regenerate.
15511 * defaults.h (SIZETYPE): Provide a default value.
15512 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
15513 (SIZETYPE): Define.
15515 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
15517 * config/sh/sh.md: Use braced string notation where applicable.
15519 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15521 * config/i386/i386.md (allocate_stack): Simplify.
15523 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15525 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
15526 copy_to_mode_reg (Pmode, ...).
15527 (expand_builtin_frame_address): Ditto.
15528 * expr.c (emit_block_move_via_libcall): Ditto.
15529 (set_storage_via_libcall): Ditto.
15531 * config/i386/i386.c (ix86_expand_movmem): Ditto.
15532 (ix86_expand_setmem): Ditto.
15533 (ix86_trampoline_init): DItto.
15534 * config/i386/i386.md (cmpstrnsi): Ditto.
15536 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
15538 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
15539 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
15540 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
15541 (SH Options): Likewise.
15543 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15545 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
15546 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
15547 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
15548 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
15549 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
15552 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
15554 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
15555 * config/i386/i386.c (ix86_decompose_address): Use
15556 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
15557 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
15558 thread pointer to a register.
15561 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
15563 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
15564 if Pmode != word_mode.
15565 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
15566 Pmode == SImode for TARGET_X32.
15568 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
15569 (tls_initial_exec_x32): Likewise.
15571 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
15574 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
15575 DISP_ADDR_OFFSET): New macros.
15576 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
15577 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
15578 (sh_legitimize_address): Add QImode displacement handling.
15579 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
15581 (sh_secondary_reload): Add QImode displacement handling.
15582 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
15583 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
15584 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
15585 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
15586 to register operands only.
15587 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
15588 (extendqihi2): Change insn to expander.
15589 (*extendqihi2_compact_reg): New insn.
15590 (movqi_i, movqi): Replace with ...
15591 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
15592 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
15593 Add new peepholes for QImode displacement addressing.
15595 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
15598 * doc/invoke.texi: Document -Wuseless-cast.
15600 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
15602 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
15603 * tree.h (handled_component_p): Reorder cases.
15604 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
15605 not initialize unsignedp.
15606 (loc_list_from_tree): Likewise.
15607 (fortran_common): Likewise.
15608 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
15610 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15612 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
15613 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
15614 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
15615 (ix86_split_long_move): Ditto.
15616 (legitimize_tls_address): Use ix86_gen_sub3.
15617 (construct_plt_address): Assert that Pmode == DImode.
15619 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
15621 * config/i386/i386.md: Remove empty predicates and/or constraints.
15622 * config/i386/sync.md: Ditto.
15623 * config/i386/sse.md: Ditto.
15624 * config/i386/mmx.md: Ditto.
15625 * config/i386/pentium.md: Ditto.
15626 * config/i386/athlon.md: Ditto.
15628 2012-03-16 Richard Guenther <rguenther@suse.de>
15630 PR tree-optimization/52603
15631 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
15635 2012-03-14 Richard Guenther <rguenther@suse.de>
15637 PR tree-optimization/52571
15638 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
15639 flag_section_anchors check ...
15640 (vect_can_force_dr_alignment_p): ... here.
15642 2012-03-16 Martin Jambor <mjambor@suse.cz>
15644 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
15645 memory through MEM_REFs by calling extract_bit_field.
15647 2012-03-16 Richard Guenther <rguenther@suse.de>
15649 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
15650 and REFERENCE_TYPE interpretations.
15651 (can_native_interpret_type_p): New function.
15652 (fold_ternary_loc): Use native encode/interpret to fold
15653 BIT_FIELD_REFs of constants.
15655 2012-03-16 Richard Guenther <rguenther@suse.de>
15657 PR middle-end/52584
15658 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
15659 of vector constants and constructors.
15661 2012-03-16 Richard Guenther <rguenther@suse.de>
15663 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
15664 VIEW_CONVERT_EXPR to convert constants.
15665 (vect_is_simple_use): Treat all constants as vec_constant_def.
15667 2012-03-16 Richard Guenther <rguenther@suse.de>
15668 Kai Tietz <ktietz@redhat.com>
15670 PR middle-end/48814
15671 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
15672 side-effects completely in the pre-queue and use a temporary
15675 2012-03-16 Richard Guenther <rguenther@suse.de>
15677 * stor-layout.c (finish_bitfield_representative): Fall back
15678 to the conservative maximum size if we cannot compute the
15679 size of the tail padding.
15681 2012-03-16 Tristan Gingold <gingold@adacore.com>
15683 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
15684 __CRTL_VER and __VMS_VER.
15685 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
15686 and vms_c_get_vms_ver.
15687 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
15689 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
15690 (VMS_DEFAULT_VMS_VER): Define.
15691 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
15692 (VMS_DEFAULT_VMS_VER): Define.
15694 2012-03-16 Richard Guenther <rguenther@suse.de>
15696 * tree-vect-loop.c (get_initial_def_for_induction): Use
15697 build_constructor directly.
15698 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
15699 build_vector_from_val.
15700 * tree.c (build_vector_from_val): Avoid creating a constructor
15701 first when we want a constant vector.
15703 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15705 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
15707 2012-03-16 Richard Guenther <rguenther@suse.de>
15709 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
15710 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
15711 (struct tree_vector): Remove elements member, add variable size
15713 (build_vector_stat): Declare.
15714 (build_vector): Define in terms of build_vector_stat.
15715 * tree.c (build_vector): Rename to ...
15716 (build_vector_stat): ... this. Take array of trees as parameter.
15717 (build_vector_from_ctor): Adjust.
15718 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
15719 initializer_zerop): Adjust.
15720 * cfgexpand.c (expand_debug_expr): Likewise.
15721 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
15722 const_vector_from_tree): Likewise.
15723 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
15724 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
15725 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
15726 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
15727 (lto_input_ts_vector_tree_pointers): Adjust.
15728 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
15729 (write_ts_vector_tree_pointers): Adjust.
15730 * varasm.c (const_hash_1, compare_constant, copy_constant,
15731 output_constant): Adjust.
15732 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
15733 * print-tree.c (print_node): Adjust.
15734 * tree-pretty-print.c (dump_generic_node): Adjust.
15735 * tree-vect-generic.c (uniform_vector_p, vector_element,
15736 lower_vec_perm): Adjust.
15737 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
15738 * tree-vect-slp.c (vect_get_constant_vectors,
15739 vect_transform_slp_perm_load): Adjust.
15740 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
15741 * expmed.c (make_tree): Adjust.
15742 * config/i386/i386.c (ix86_expand_builtin): Adjust.
15743 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
15744 and implementation.
15745 (sparc_fold_builtin): Adjust.
15747 2012-03-16 Tristan Gingold <gingold@adacore.com>
15749 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
15750 * config/vms/vms-stdint.h: New file.
15752 2012-03-16 Tristan Gingold <gingold@adacore.com>
15754 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
15755 (ia64-hp-*vms*): Replaced by ...
15756 (*-*-*vms*): ... This new entry.
15758 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15761 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
15762 (ix86_expand_vec_perm_const_1): Use it.
15765 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
15766 (avx2_permv4df): Remove.
15767 (avx2_permv4di): Macroize into...
15768 (avx2_perm<mode>): ... this using VI8F_256 iterator.
15769 (avx2_permv4di_1): Macroize into...
15770 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
15772 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
15774 * combine.c (apply_distributive_law): Do not distribute SUBREG.
15776 2012-03-15 Ira Rosen <irar@il.ibm.com>
15777 Ulrich Weigand <ulrich.weigand@linaro.org>
15779 * tree-vect-patterns.c (widened_name_p): Rename to ...
15780 (type_conversion_p): ... this. Add new argument to determine
15781 if it's a promotion or demotion operation. Check for
15782 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
15783 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
15785 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
15786 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
15788 (vect_recog_mixed_size_cond_pattern): Likewise and allow
15789 non-constant then and else clauses.
15791 2012-03-15 Ira Rosen <irar@il.ibm.com>
15792 Ulrich Weigand <ulrich.weigand@linaro.org>
15794 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
15795 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
15796 vect_pattern_recog.
15797 * tree-vect-patterns.c (widened_name_p): Pass basic block
15798 info to vect_is_simple_use.
15799 (vect_recog_dot_prod_pattern): Fail for basic blocks.
15800 (vect_recog_widen_sum_pattern): Likewise.
15801 (vect_handle_widen_op_by_const): Support basic blocks.
15802 (vect_operation_fits_smaller_type,
15803 vect_recog_over_widening_pattern): Likewise.
15804 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
15805 Update call to vect_is_simple_use.
15806 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
15808 (check_bool_pattern): Add an argument, update call to
15809 vect_is_simple_use and the recursive calls.
15810 (vect_recog_bool_pattern): Update relevant function calls.
15812 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
15813 (vect_pattern_recog_1): Check for reduction only in loops.
15814 (vect_pattern_recog): Add new argument. Support basic blocks.
15815 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
15816 info to vect_is_simple_use_1.
15817 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
15818 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
15820 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15821 Andrew Pinski <apinski@cavium.com>
15823 PR middle-end/52592
15824 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
15825 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
15826 calls instead of __builtin_ir{int,ound}*.
15828 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15830 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
15833 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15835 * config.gcc (target_type_format_char): New. Document it. Set it for
15837 * configure.ac (gnu_unique_option): Use target_type_format_char
15838 in test. Comment rationale.
15839 * configure: Regenerate .
15841 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15843 PR tree-optimization/52267
15844 * tree-vrp.c (masked_increment): New function.
15845 (register_edge_assert_for_2): Derive ASSERT_EXPRs
15846 from (X & CST1) cmp CST2 tests.
15848 2012-03-15 Richard Guenther <rguenther@suse.de>
15850 PR middle-end/52580
15851 * tree-data-ref.c (subscript_dependence_tester_1): Check
15852 all dimensions for non-conflicting access functions.
15854 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15857 * doc/invoke.texi [C++ Language Options]: Document
15858 -ftemplate-backtrace-limit.
15860 2012-03-15 Tristan Gingold <gingold@adacore.com>
15862 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
15863 before a parameter.
15865 2012-03-15 Tristan Gingold <gingold@adacore.com>
15867 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
15868 use DW_OP_call_frame_cfa.
15870 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
15873 * config/i386/i386-opts.h (pmode): New.
15875 * config/i386/i386.c (ix86_option_override_internal): Properly
15876 check and set ix86_pmode.
15878 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
15880 * config/i386/i386.opt (maddress-mode=): New.
15882 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
15884 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15886 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
15887 (dwarf2out_do_cfi_asm): Likewise.
15888 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
15890 (add_data_member_location_attribute): Likewise.
15891 (gen_array_type_die): Likewise.
15892 (gen_subprogram_die): Likewise.
15893 (gen_producer_string): Likewise.
15894 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
15895 Remove MIPS_DEBUGGING_INFO handling.
15896 (sdb_debug_hooks): Likewise.
15897 (sdbout_begin_block): Likewise.
15898 (sdbout_end_block): Likewise.
15899 (sdbout_begin_prologue): Likewise.
15900 (sdbout_start_source_file): Likewise.
15901 (sdbout_end_source_file): Likewise.
15902 (sdbout_init): Likewise.
15903 * system.h (MIPS_DEBUGGING_INFO): Poison.
15905 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15907 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
15908 (alpha_file_start) [MS_STAMP]: Remove.
15910 * config/alpha/elf.h (TARGET_GAS): Remove.
15911 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
15912 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
15913 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
15914 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
15915 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
15916 (alpha*-*-freebsd*): Likewise.
15917 (alpha*-*-netbsd*): Likewise.
15918 (alpha*-*-openbsd*): Likewise.
15919 (alpha*-*-*): Remove target_cpu_default2.
15920 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
15922 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
15923 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
15924 * config/alpha/alpha.c (print_operand): Always assume
15925 TARGET_AS_SLASH_BEFORE_SUFFIX.
15926 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
15927 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
15928 ("*builtin_setjmp_receiver_er_1"): Remove.
15929 * config/alpha/alpha.opt (malpha-as): Remove.
15931 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
15933 Remove DEC Unix reference.
15935 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
15936 (EXTENDED_COFF): Remove.
15937 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
15938 (EXTENDED_COFF): Don't undef.
15939 * config/alpha/alpha.c (alpha_file_start): Always assume
15941 Don't set targetm.asm_file_start_file_directive.
15942 [!OBJECT_FORMAT_ELF]: Remove.
15943 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
15945 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
15946 (DBX_DEBUGGING_INFO): Remove.
15947 (MIPS_DEBUGGING_INFO): Remove.
15948 (PREFERRED_DEBUGGING_TYPE): Remove.
15949 (DBX_OUTPUT_SOURCE_LINE): Remove.
15950 (SDB_OUTPUT_SOURCE_LINE): Remove.
15951 (DBX_CONTIN_LENGTH): Remove.
15952 (NO_DBX_FUNCTION_END): Remove.
15953 (ASM_STABS_OP): Remove.
15954 (ASM_STABN_OP): Remove.
15955 (ASM_STABD_OP): Remove.
15956 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
15957 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
15958 (PUT_SDB_DEF): Remove.
15959 (PUT_SDB_PLAIN_DEF): Remove.
15960 (PUT_SDB_TYPE): Remove.
15961 (sdb_label_count): Remove.
15962 (PUT_SDB_BLOCK_START): Remove.
15963 (PUT_SDB_BLOCK_END): Remove.
15964 (PUT_SDB_FUNCTION_START): Remove.
15965 (PUT_SDB_FUNCTION_END): Remove.
15966 (PUT_SDB_EPILOGUE_END): Remove.
15967 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
15968 (MIPS_DEBUGGING_INFO): Don't undef.
15969 (DBX_DEBUGGING_INFO): Don't undef.
15970 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
15971 (MIPS_DEBUGGING_INFO): Don't undef.
15972 (DBX_DEBUGGING_INFO): Don't undef.
15973 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
15974 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
15976 (alpha_start_function): Likewise.
15977 (sdb_label_count): Remove.
15978 (alpha_output_filename): Remove DBX_DEBUG handling.
15979 (alpha_file_start): Likewise.
15981 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15983 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
15984 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
15985 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
15987 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
15988 (ld_tls_support): Remove Solaris 8 references.
15989 (lwp_dir, lwp_spec): Remove support for alternate thread library.
15990 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
15991 * configure: Regenerate.
15992 * config.in: Regenerate.
15994 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
15995 * config/i386/sol2.h: Remove Solaris 8 references.
15997 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
15998 (i?86-*-solaris2.9): ... this.
15999 Remove Solaris 8 references.
16000 (Specific, *-*-solaris2*): Document Solaris 8 removal.
16001 Remove Solaris 8 references.
16003 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16005 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
16006 (mips-sgi-irix6.5*): Remove.
16007 * config.host (mips-sgi-irix*): Remove.
16008 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
16009 (set_have_as_tls): Remove *-*-irix6*.
16010 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
16011 * configure: Regenerate.
16013 * config/mips/iris6.h: Remove.
16014 * config/mips/iris6.opt: Remove.
16015 * config/mips/t-irix6: Remove.
16017 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
16018 (TARGET_IRIX6): Remove.
16019 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
16020 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
16021 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
16023 (mips_file_start): Likewise.
16024 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
16026 * config/mips/driver-native.c [__sgi__]: Remove.
16027 (host_detect_local_cpu) [__sgi__]: Remove.
16029 * config/mips/gnu-user.h: Remove iris5.h reference.
16031 * config/mips/mips-modes.def: Remove IRIX 6 reference.
16032 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
16033 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
16036 * gcc.c (main): Move asm_debug initialization ...
16037 (asm_debug): ... here.
16039 * ginclude/stddef.h (__STDDEF_H__): Don't define.
16041 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
16042 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
16043 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
16044 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
16045 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
16046 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
16048 * doc/tm.texi: Regenerate.
16050 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
16052 (MIPS Options, -march): Remove IRIX reference.
16053 * doc/install.texi (Binaries, SGI IRIX): Remove.
16054 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
16056 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
16058 2012-03-14 Martin Jambor <mjambor@suse.cz>
16060 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
16061 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
16062 (expand_expr_real_1): Do not handle misalignment if modifier is
16065 2012-03-14 Richard Guenther <rguenther@suse.de>
16067 PR middle-end/52584
16068 * tree-vect-generic.c (type_for_widest_vector_mode): Take
16069 element type instead of mode, use build_vector_type_for_mode
16070 instead of the langhook, build a vector of proper signedness.
16071 (expand_vector_operations_1): Adjust.
16073 2012-03-14 Richard Guenther <rguenther@suse.de>
16075 PR middle-end/52582
16076 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
16077 a cgraph node for a FUNCTION_DECL that comes from a constructor.
16078 (gimple_get_virt_method_for_binfo): Likewise.
16080 2012-03-14 Richard Guenther <rguenther@suse.de>
16082 PR tree-optimization/52571
16083 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
16084 flag_section_anchors check ...
16085 (vect_can_force_dr_alignment_p): ... here. Do not re-align
16086 DECL_COMMON variables.
16088 2012-03-14 Richard Guenther <rguenther@suse.de>
16090 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
16091 * stor-layout.c (start_bitfield_representative): New function.
16092 (finish_bitfield_representative): Likewise.
16093 (finish_bitfield_layout): Likewise.
16094 (finish_record_layout): Call finish_bitfield_layout.
16095 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
16096 for QUAL_UNION_TYPE fields.
16097 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
16098 Stream DECL_BIT_FIELD_REPRESENTATIVE.
16099 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
16101 PR middle-end/52080
16102 PR middle-end/52097
16103 PR middle-end/48124
16104 * expr.c (get_bit_range): Unconditionally extract bitrange
16105 from DECL_BIT_FIELD_REPRESENTATIVE.
16106 (expand_assignment): Adjust call to get_bit_range.
16108 2012-03-14 Richard Guenther <rguenther@suse.de>
16110 PR middle-end/52578
16111 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
16112 the outermost conversion is a sign-change only.
16113 (fold_binary_loc): Disregard widening and sign-changing
16114 conversions when we determine if two variables are equal
16116 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
16117 (T1)x if the outermost conversion is a sign-change only.
16119 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
16122 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
16124 * config/i386/predicates.md (constant_call_address_operand): Declare
16125 as special predicate. Update all uses.
16127 2012-03-13 Jakub Jelinek <jakub@redhat.com>
16130 * c-parser.c (c_parser_postfix_expression)
16131 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
16133 * config/i386/smmintrin.h: Avoid /* within a comment.
16134 * config/i386/nmmintrin.h: Likewise.
16136 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16138 * config/i386/i386.md (xbegin): Remove constraint from expander.
16140 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16142 * config/i386/predicates.md (constant_call_address_operand): Declare
16143 as special predicate. Update all uses.
16144 * config/i386/i386.md: Remove mode from constant_call_address_operand
16146 * config/i386/i386.c (ix86_output_call_insn): Call
16147 constant_call_address_operand with VOIDmode.
16149 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16151 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
16152 AND zero extended address correctly.
16154 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16156 * config/i386/predicates.md (tls_symbolic_operand): Declare as
16158 (tls_modbase_operand): Ditto.
16159 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
16160 tls_modbase_operand predicates.
16162 2012-03-13 Martin Jambor <mjambor@suse.cz>
16164 * expr.c (expand_assignment): Handle misaligned scalar writes to
16165 memory through top-level MEM_REFs by calling store_bit_field.
16167 2012-03-13 Richard Guenther <rguenther@suse.de>
16169 PR middle-end/52134
16170 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
16171 if Y is a constant multiple of 1 << CST.
16173 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
16176 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
16177 offset (size) to a value the insns can deal with.
16178 (expand_epilogue): Ditto.
16180 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16182 * config/arm/neon.ml (ops): Fixup expected instructions for
16183 unsigned vector compares.
16185 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16187 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
16188 addresses only when %reg is not in word mode.
16190 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16192 * config/microblaze/microblaze.md: Fix typo.
16193 * tree-if-conv.c: Likewise.
16194 * tree-vect-patterns.c: Likewise.
16196 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16198 * config.gcc (extra_passes): Remove.
16199 * configure.ac (extra_passes): Don't substitute.
16200 * configure: Regenerate.
16201 * Makefile.in (EXTRA_PASSES): Remove.
16202 (GCC_PASSES): Remove $(EXTRA_PASSES).
16203 (MOSTLYCLEANFILES): Likewise.
16204 (native): Likewise.
16205 (install-common): Likewise.
16207 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16209 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
16210 * config/i386/i386.c (ix86_decompose_address): Use
16211 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
16212 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
16213 thread pointer to a register.
16215 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16217 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
16218 on tls_symbolic_operand.
16219 (tls_global_dynamic_64_<mode>): Likewise.
16221 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16224 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
16225 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
16227 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16230 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
16231 type from reg_class_t to enum reg_class.
16232 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
16234 2012-03-12 Andrew Pinski <apinski@cavium.com>
16236 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
16237 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
16238 (value_replacement): Likewise.
16239 (empty_block_p): Check also if the PHIs for the block are empty.
16241 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16244 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
16245 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
16246 r184615 from 2012-02-28.
16248 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16250 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
16251 (ix86_gen_tls_local_dynamic_base_64): Likewise.
16252 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
16253 and ix86_gen_tls_local_dynamic_base_64.
16254 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
16255 ix86_gen_tls_local_dynamic_base_64.
16257 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
16258 (*tls_global_dynamic_64_<mode>): This.
16259 (tls_global_dynamic_64): Renamed to ...
16260 (tls_global_dynamic_64_<mode>): This.
16261 (*tls_local_dynamic_base_64): Renamed to ...
16262 (*tls_local_dynamic_base_64_<mode>): This.
16263 (tls_local_dynamic_base_64): Renamed to ...
16264 (tls_local_dynamic_base_64_<mode>): This.
16266 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16268 * config/i386/i386.c (ix86_option_override_internal): Properly
16269 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
16270 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
16271 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
16272 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16274 * config/i386/sse.md (sse3_monitor64): Renamed to ...
16275 (sse3_monitor64_<mode>): This.
16277 2012-03-12 Tristan Gingold <gingold@adacore.com>
16279 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
16280 (ia64_function_arg_advance): Ditto.
16282 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16284 * config.gcc (mips*-*-openbsd*): Remove.
16285 * config/mips/openbsd.h: Remove.
16286 * config/mips/sdb.h: Remove.
16288 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
16289 * config/mips/mips.c (sdb_label_count): Remove.
16290 (mips_debugger_offset): Remove #if 0 code.
16291 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
16292 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
16294 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16296 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
16297 binutils reference.
16298 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
16299 Update binutils references.
16300 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
16301 Update binutils reference.
16302 Update Sun as/GNU ld caveat.
16303 Document binutils largefile requirement for LTO plugin.
16304 Remove reference to alternate libpthread.
16306 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16308 * config.gcc (alpha*-dec-osf5.1*): Remove.
16309 * config.host (alpha*-dec-osf*): Remove.
16310 * configure.ac (*-*-osf*): Remove.
16311 (alpha*-dec-osf*): Remove.
16312 * configure: Regenerate.
16314 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
16315 config/alpha/va_list.h, config/alpha/x-osf: Remove.
16317 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
16318 * config/alpha/alpha.c (struct machine_function): Update comment.
16319 (alpha_start_function): Remove Tru64 UNIX as handling for
16321 * config/alpha/alpha.md ("exception_receiver"): Remove
16322 TARGET_LD_BUGGY_LDGP.
16323 ("*exception_receiver_2"): Likewise.
16324 * except.c (finish_eh_generation): Remove Tru64 reference.
16325 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
16326 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
16327 * target.def (handle_pragma_extern_prefix): Remove.
16329 * Makefile.in (mips-tfile.o-warn): Remove.
16330 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
16331 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
16332 * mips-tdump.c, mips-tfile.c: Remove.
16334 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
16336 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
16337 (Specific, alpha*-dec-osf5.1): Note removal.
16338 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
16340 * doc/tm.texi: Regenerate.
16341 * doc/trouble.texi (Cross-Compiler Problems): Remove.
16343 2012-03-12 Richard Guenther <rguenther@suse.de>
16345 * config/arm/arm.c (neon_dereference_pointer): Do not call
16346 covert during RTL expansion.
16348 2012-03-12 Tristan Gingold <gingold@adacore.com>
16350 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
16351 Options. Mention -mpointer-size.
16353 2012-03-12 Richard Guenther <rguenther@suse.de>
16355 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
16356 build_nonstandard_integer_type.
16358 2012-03-12 Richard Guenther <rguenther@suse.de>
16360 * tree.c (signed_or_unsigned_type_for): Use
16361 build_nonstandard_integer_type.
16362 (signed_type_for): Adjust documentation.
16363 (unsigned_type_for): Likewise.
16364 * tree-pretty-print.c (dump_generic_node): Use standard names
16365 for non-standard integer types if available.
16367 2012-03-12 Tristan Gingold <gingold@adacore.com>
16369 * config/vms/vms.opt: Add vms-opts.h header.
16370 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
16372 (-mvms-return-codes): Document.
16373 (-mpointer-size): New option.
16374 (vms_pointer_size): Add enumeration.
16375 * config/vms/vms-opts.h: New file.
16376 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
16377 __INITIAL_POINTER_SIZE.
16378 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
16379 (C_COMMON_OVERRIDE_OPTIONS): Define.
16380 (DWARF2_ADDR_SIZE): Define.
16381 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
16382 * config/vms/vms-protos.h (vms_c_common_override_options):
16384 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
16385 if -mno-pointer-size.
16386 (vms_c_common_override_options): New function.
16387 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
16388 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
16389 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
16390 and flag_vms_pointer_size.
16391 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
16392 * config.gcc (*-*-*vms*): Define xm_file.
16393 (alpha*-dec-*vms*): Do not define xm_file.
16394 (alpha64-dec-*vms*): Remove.
16395 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
16398 2012-03-12 Jakub Jelinek <jakub@redhat.com>
16400 PR tree-optimization/51721
16401 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
16402 if (int) unsvar cmp CST.
16404 2012-03-12 Richard Guenther <rguenther@suse.de>
16406 * tree-sra.c (create_access_replacement): Only rename the replacement
16407 if we can rewrite it into SSA form. Properly mark register typed
16408 replacements that we cannot rewrite with TREE_ADDRESSABLE.
16409 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
16410 for aggregate or BLKmode results.
16412 2012-03-12 Jakub Jelinek <jakub@redhat.com>
16414 PR tree-optimization/52533
16415 * tree-vrp.c (register_edge_assert_for_2): Use double_int
16416 type for mask, only handle shifts by non-zero in-range
16417 shift count, for LE_EXPR and GT_EXPR if new_val is
16418 maximum, don't add the assertion.
16420 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
16422 * doc/invoke.texi: Document -mrtm option.
16423 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
16424 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
16425 (ix86_handle_option): Handle OPT_mrtm.
16426 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
16428 (x86_64-*-*): Ditto.
16429 * i386-builtin-types.def (INT_FTYPE_VOID): New.
16430 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16432 (ix86_target_string): Define -mrtm option.
16434 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
16436 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
16437 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
16438 IX86_BUILTIN_XTEST.
16439 (bdesc_special_args): Ditto.
16440 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
16441 (ix86_expand_special_args_builtin): Handle new built-in type.
16442 (ix86_expand_builtin): Handle XABORT instruction.
16443 * config/i386/i386.h (TARGET_RTM): New.
16444 * config/i386/i386.md (UNSPECV_XBEGIN): New.
16445 (UNSPECV_XEND): Ditto.
16446 (UNSPECV_XABORT): Ditto.
16447 (UNSPECV_XTEST): Ditto.
16454 * config/i386/i386.opt (mrtm): New.
16455 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
16456 * config/i386/rtmintrin.h: New header.
16457 * config/i386/xtestintrin.h: Ditto.
16459 2012-03-12 Tristan Gingold <gingold@adacore.com>
16461 * ginclude/stddef.h: Adjust previous patch.
16462 Use __VMS__ instead of VMS.
16464 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
16466 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
16467 Also convert sequences with CC setting arithmetic instruction.
16469 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
16471 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
16472 from C Language Options to Preprocessor Options.
16473 (C Dialect Options): Move -no-integrated-cpp documentation
16475 (Preprocessor Options): ...to here. Rewrite the description
16476 so it makes more sense, and remove discussion of merging front ends.
16478 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16480 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
16482 (ix86_expand_setmem): Likewise.
16484 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
16486 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
16489 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16491 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
16492 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
16494 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16496 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
16498 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16500 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
16503 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16504 Uros Bizjak <ubizjak@gmail.com>
16506 * config/i386/predicates.md (call_insn_operand): Allow
16507 constant_call_address_operand in Pmode only.
16508 (sibcall_insn_operand): Ditto.
16509 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
16510 (*call_vzeroupper): Ditto.
16512 (*sibcall_vzeroupper): Ditto.
16513 (*call_value): Ditto.
16514 (*call_value_vzeroupper): Ditto.
16515 (*sibcall_value): Ditto.
16516 (*sibcall_value_vzeroupper): Ditto.
16517 (*indirect_jump): Ditto.
16518 (*tablejump_1): Ditto.
16519 (indirect_jump): Convert memory address to word mode for TARGET_X32.
16520 (tablejump): Ditto.
16521 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
16524 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
16527 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
16528 Use movrt_negc instead of negc pattern for non-SH2A.
16529 (*movnegt): Remove.
16530 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
16532 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
16534 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
16535 if Pmode != word_mode.
16536 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
16537 Pmode == SImode for TARGET_X32.
16539 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
16540 (tls_initial_exec_x32): Likewise.
16542 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
16544 PR rtl-optimization/52528
16545 * combine.c (can_combine_p): Add setting of subst_low_luid
16546 before call to expand_field_assignment().
16548 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
16550 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
16551 and related program names.
16553 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
16555 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
16557 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
16560 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
16561 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
16562 to set code to 'q'.
16563 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
16564 (*movdi_internal_rex64): Use %E operand modifier for lea.
16565 (*movsi_internal): Ditto.
16567 (*lea<mode>_2): Ditto.
16568 (*lea_{3,4,5,6}_zext): Ditto.
16569 (*tls_global_dynamic_32_gnu): Ditto.
16570 (*tls_global_dynamic_64): Ditto.
16571 (*tls_dynamic_gnu2_lea_32): Ditto.
16572 (*tls_dynamic_gnu2_lea_64): Ditto.
16573 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
16575 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16577 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
16578 redefine to be NULL if the current bit-size is different from the
16579 configured bit-size.
16581 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
16582 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
16583 set the default tuning. Add asserts to make sure the cpu and tune
16584 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
16585 test whether the index is set, instead of > 0.
16586 (rs6000_file_start): Do not reset the default cpu if the current
16587 bit-size is different from the configured bit-size.
16589 2012-03-09 Tristan Gingold <gingold@adacore.com>
16591 * config/vms/vms-crtlmap.map: Add comments.
16592 Add entries needed to build Ada RTS.
16594 2012-03-09 Tristan Gingold <gingold@adacore.com>
16596 * ginclude/stddef.h: Do not define __size_t on VMS.
16598 2012-03-09 Tristan Gingold <gingold@adacore.com>
16600 * c-tree.h (c_default_pointer_mode): New variable.
16601 * c-decl.c (c_default_pointer_mode): New variable.
16602 (c_build_pointer_type): New function.
16603 (grokdeclarator): Call c_build_pointer_type instead
16604 of build_pointer_type.
16606 * config/vms/vms-c.c: Include c-tree.h
16607 (saved_pointer_mode): New variable.
16608 (handle_pragma_pointer_size): New function.
16609 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
16610 (vms_c_register_pragma): Register __pointer_size and
16611 __required_pointer_size pragmas.
16613 2012-03-09 Tristan Gingold <gingold@adacore.com>
16615 * config/vms/vms-c.c (vms_construct_include_filename): New function.
16616 (vms_c_register_includes): Reference it.
16618 2012-03-09 Andrew Pinski <apinski@cavium.com>
16620 PR middle-end/51988
16621 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
16622 print_generic_expr.
16623 (tree_ssa_phiopt_worker): Go through all the PHIs for
16624 value_replacement instead of just the singleton one.
16625 (value_replacement): Change return type to int. Return 0 instead of
16627 Allow the middle basic block to contain more than just the defining
16629 Handle non empty middle basic blocks.
16630 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
16632 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
16634 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
16635 array reference and component reference.
16636 (analyze_scalar_evolution_for_address_of): New.
16638 2012-03-08 Jie Zhang <jzhang918@gmail.com>
16641 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
16642 (hwloop_pattern_reg): Fix set but not used warning.
16643 (bfin_reorg_loops): Remove unused parameter.
16644 (bfin_reorg): Update use of bfin_reorg_loops.
16646 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
16648 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
16649 with integer parameters in registers.
16650 (gen_push): Push register in word_mode instead of Pmode.
16651 (ix86_emit_save_regs): Likewise.
16652 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
16653 (gen_pop): Pop register in word_mode instead of Pmode.
16654 (ix86_emit_restore_regs_using_pop): Likewise.
16655 (ix86_expand_prologue): Replace Pmode with word_mode for push
16656 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
16657 restore RAX and R10 in word_mode.
16658 (ix86_emit_restore_regs_using_mov): Restore integer registers
16660 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
16662 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
16663 (ix86_split_long_move): Likewise.
16665 * config/i386/i386.md (W): New.
16666 (*push<mode>2_prologue): Replace :P with :W.
16667 (*pop<mode>1): Likewise.
16668 (*pop<mode>1_epilogue): Likewise.
16669 (push/pop peephole2): Use word_mode scratch registers.
16671 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
16673 * config/i386/predicates.md (indirect_branch_operand): Simplify.
16675 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
16677 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
16678 for constants in [-63,63].
16680 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
16684 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
16686 * config/i386/i386.c (ix86_print_operand_address): Only handle
16687 zero-extended DImode addresses.
16689 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16691 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
16692 * configure: Regenerate.
16694 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
16697 * config/avr/avr.c (avr_mem_clobber): New static function.
16698 (avr_expand_delay_cycles): Add memory clobber operand to
16699 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
16700 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
16701 (enable_interrupt, disable_interrupt): New expander.
16702 (nopv, sleep, wdr): New expanders.
16703 (delay_cycles_1): Add memory clobber.
16704 (delay_cycles_2): Add memory clobber.
16705 (delay_cycles_3): Add memory clobber.
16706 (delay_cycles_4): Add memory clobber.
16707 (cli_sei): New insn from former "enable_interrupt",
16708 "disable_interrupt" with memory clobber.
16709 (*wdt): New insn from former "wdt" with memory clobber.
16710 (*nopv): Similar, but for "nopv".
16711 (*sleep): Similar, but for "sleep".
16713 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
16714 Kaz Kojima <kkojima@gcc.gnu.org>
16717 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
16718 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
16719 (SUBTARGET_OVERRIDE_OPTIONS): Define.
16721 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
16723 * config/i386/predicates.md (x86_64_zext_general_operand): New.
16724 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
16725 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
16727 2012-03-07 Walter Lee <walt@tilera.com>
16729 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
16730 REG_CFA_* notes for the stack pointer.
16731 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
16732 EH_RETURN_STACKADJ_RTX.
16733 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
16734 generate REG_CFA_* notes for the stack pointer.
16735 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
16736 by EH_RETURN_STACKADJ_RTX.
16738 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16740 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
16741 when __AVR_3_BYTE_PC__ is defined.
16743 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
16745 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
16746 (ix86_print_operand): Handle '^'.
16747 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
16748 using P mode iterator. Add %^ to asm template to conditionally emit
16750 (*rep_movdi_rex64): Ditto.
16751 (*strsetdi_rex_1): Ditto.
16752 (*rep_stosdi_rex64): Ditto.
16753 (*strmov{si,hi,qi}_1): Add %^ to asm template to
16754 conditionally emit addr32 prefix.
16755 (*rep_mov{si,qi}): Ditto.
16756 (*strset{si,hi,qi}): Ditto.
16757 (*rep_stos{si,qi}): Ditto.
16758 (*cmpstrnqi_nz_1): Ditto.
16759 (*cmpstrnqi_1): Ditto.
16760 (*strlenqi_1): Ditto.
16762 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
16764 * config/i386/i386.c (function_value_64): Return pointers in
16765 word_mode instead of Pmode.
16766 (ix86_promote_function_mode): Likewise.
16768 2012-03-07 Richard Guenther <rguenther@suse.de>
16770 * coverage.c (get_gcov_type): Use type_for_mode.
16771 (get_gcov_unsigned_t): Likewise.
16772 * expr.c (store_constructor): Use type_for_mode.
16773 (try_casesi): Likewise.
16774 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
16775 (add_standard_iv_candidates): Use standard type trees.
16776 * dojump.c (do_jump): Remove dead code.
16778 2012-03-07 Richard Guenther <rguenther@suse.de>
16780 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
16782 2012-03-07 Richard Guenther <rguenther@suse.de>
16784 * convert.c (strip_float_extensions): Move ...
16785 * tree.c (strip_float_extensions): ... here.
16787 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16790 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
16792 2012-03-07 Richard Guenther <rguenther@suse.de>
16794 * omp-low.c (extract_omp_for_data): Use signed_type_for.
16795 (expand_omp_for_generic): Likewise.
16796 (expand_omp_for_static_nochunk): Likewise.
16797 (expand_omp_for_static_chunk): Likewise.
16798 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
16799 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16800 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16801 Use unsigned_type_for.
16802 (vect_create_cond_for_align_checks): Use signed_type_for.
16804 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
16806 PR rtl-optimization/52203
16807 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
16808 all callers to pass NULL except ...
16809 (reset_sched_cycles_in_current_ebb): ... here, save the value
16810 in new variable 'empty'. Increase issue_rate only for
16813 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
16816 * Makefile.in: Let install-gcc-ar depend on installdirs,
16817 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
16818 Don't double canonicalize if cross-compiling.
16820 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16823 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
16824 to: RAMPZ, RAMPY, RAMPX, RAMPD.
16825 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
16827 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16830 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
16832 * config/avr/avr.md (xload_8): Adjust insn length.
16834 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16837 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
16838 if RAMPZ affects reading from RAM.
16840 2012-03-07 Richard Guenther <rguenther@suse.de>
16844 * doc/invoke.texi (Precompiled Headers): Remove sentence that
16845 suggests you can include PCHs from inside another header.
16847 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
16849 PR middle-end/52515
16850 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
16852 2012-03-07 Kai Tietz <ktietz@redhat.com>
16854 * doc/invoke.texi (fwritable-relocated-rdata): Document
16855 new Cygwin/MinGW target option.
16856 * config/i386/winnt.c (i386_pe_unique_section): Ignore
16857 reloc if flag -fwritable-relocated-rdata is not set.
16858 (i386_pe_section_type_flags): Likewise.
16859 * config/i386/cygming.opt (fwritable-relocated-rdata):
16860 Add new flag variable flag_writable_rel_rdata.
16862 2012-03-07 Richard Guenther <rguenther@suse.de>
16864 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
16865 precision against gimple constraints.
16867 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
16869 PR middle-end/52372
16870 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
16872 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
16873 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
16875 (init_emit_regs): Move associated initialization to...
16876 (init_emit_once): ...here.
16878 2012-03-06 Richard Henderson <rth@redhat.com>
16880 * config/m68k/m68k.h (ISA_HAS_TAS): New.
16881 * config/m68k/sync.md (atomic_test_and_set): Use it.
16882 (atomic_test_and_set_1): Likewise.
16884 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16887 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
16888 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
16889 (vector_ltgt<mode>): Likewise.
16890 (vector_ordered<mode>): Likewise.
16891 (vector_unordered<mode>): Likewise.
16892 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
16894 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
16896 * trans-mem.c: New typedef for tm_region_p.
16897 Define vector types for tm_region_p.
16898 (tm_region_init): Replace region_worklist to a vector called
16901 2012-03-06 Richard Guenther <rguenther@suse.de>
16903 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
16904 MEM_REF with constant pointer operand.
16906 2012-03-06 Richard Guenther <rguenther@suse.de>
16908 PR middle-end/52493
16909 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
16911 2012-03-06 Tristan Gingold <gingold@adacore.com>
16913 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
16914 (external_model_kind): Improve documentation.
16915 (vms_pragma_extern_model): Handle relaxed_redef.
16916 (vms_c_register_pragma): Allow expansion for nomember_alignment.
16918 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
16920 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
16921 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
16922 Some more notes on EIND usage and reorder EIND subsection.
16924 2012-03-06 Tristan Gingold <gingold@adacore.com>
16926 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
16927 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
16929 2012-03-06 Tristan Gingold <gingold@adacore.com>
16931 * config/vms/t-vmsnative (version): Define.
16932 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
16934 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
16936 PR rtl-optimization/52250
16937 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
16938 to put note list into. Unconditionally call move_bb_info.
16939 (move_bb_info): Do not assert the blocks being in the same region,
16940 just drop the note list if they are not.
16942 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
16945 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
16946 and use unified expansion logic.
16947 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
16948 closer to the existing movt insn.
16949 (negc): Rename insn to *negc. Add new expander.
16950 (movnegt): Use xor pattern for T bit negation. Reserve helper
16951 constant for negc pattern.
16952 (*movnegt): New insn and splitter.
16954 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
16956 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
16959 2012-03-05 Richard Henderson <rth@redhat.com>
16961 * genemit.c (main): Include "target.h" in insn-emit.c.
16962 * Makefile.in (insn-emit.o): Depend on TARGET_H.
16963 * config/sh/sync.md (atomic_test_and_set): Reference
16964 targetm.atomic_test_and_set_trueval instead of
16965 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
16967 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
16969 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
16972 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
16974 * langhooks.c (add_builtin_type): New function.
16975 * langhooks.h (add_builtin_type): Export it.
16976 * config/mep/mep.c (mep_init_builtins): Use it.
16977 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
16979 2012-03-05 Jakub Jelinek <jakub@redhat.com>
16982 * tree.h (BLOCK_SAME_RANGE): Define.
16983 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
16984 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
16985 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
16986 isn't equal to supercontext fragment's fragment chain.
16987 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
16989 (blocks_nreverse_all): Likewise.
16990 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
16991 BLOCK_SUPERCONTEXT to supercontext fragment instead of
16992 supercontext fragment's fragment origin.
16993 * dwarf2out.c (add_high_low_attributes): If stmt has the same
16994 range as its parent (or parents thereof etc.), use the parent's
16995 DW_AT_ranges value instead of creating a new .debug_ranges range.
16997 2012-03-05 Richard Henderson <rth@redhat.com>
17000 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
17001 * omp-low.c (expand_omp_atomic): Assume anything aligned to
17002 BIGGEST_ALIGNMENT is aligned.
17004 2012-03-05 Richard Henderson <rth@redhat.com>
17006 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
17007 * config/sh/sh.c: ... here.
17009 2012-03-05 Richard Henderson <rth@redhat.com>
17012 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
17013 instead of calling negqi2 directly.
17015 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
17017 PR middle-end/52463
17018 * trans-mem.c (tm_region_init): Use last_basic_block.
17020 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
17022 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
17023 * config/sh/sync.md (atomic_test_and_set): New expander.
17024 (tasb, atomic_test_and_set_soft): New insns.
17025 * config/sh/sh.opt (menable-tas): New option.
17026 * doc/invoke.texi (SH Options): Document it.
17028 2012-03-05 Richard Guenther <rguenther@suse.de>
17030 * cfgloop.c (verify_loop_structure): Verify dominators before
17032 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
17033 dominators from here.
17034 * graphite-scop-detection.c (create_sese_edges): Likewise.
17035 * loop-doloop.c (doloop_optimize_loops): Likewise.
17036 * loop-init.c (loop_optimizer_init): Likewise.
17037 * loop-unroll.c (unroll_and_peel_loops): Likewise.
17038 * loop-unswitch.c (unswitch_loops): Likewise.
17039 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
17040 * tree-parloops.c (parallelize_loops): Likewise. Verify
17041 only when checking is enabled.
17042 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
17044 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
17046 * genautomata.c (parse_automata_opt): New static function.
17047 (initiate_automaton_gen): Remove all option handling code. Remove
17048 argc argument. All callers changed.
17049 (main): Call init_rtx_reader_args_cb with the new function as argument.
17051 2012-03-05 Richard Guenther <rguenther@suse.de>
17053 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
17054 * tree-if-conv.c (combine_blocks): Free post-dominator info
17056 * tree-parloops.c (create_parallel_loop): Free and re-compute
17057 dominator info after breaking it.
17059 2012-03-05 Richard Guenther <rguenther@suse.de>
17061 PR middle-end/52353
17062 * optabs.h (trapv_unoptab_p): New function.
17063 (trapv_binoptab_p): Likewise.
17064 * optabs.c (expand_binop): Use emit_libcall_block_1 with
17065 a proper equiv_may_trap argument.
17066 (expand_unop): Likewise.
17067 (emit_libcall_block_1): Take extra argument whether the
17068 instruction may trap. Renamed from ...
17069 (emit_libcall_block): ... this. New wrapper.
17071 2012-03-05 Jakub Jelinek <jakub@redhat.com>
17073 PR tree-optimization/51721
17074 * tree-vrp.c (register_edge_assert_for_2): If comparing
17075 lhs of right shift by constant with an integer constant,
17076 add ASSERT_EXPRs for the rhs1 of the right shift.
17078 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
17080 2012-03-05 Richard Guenther <rguenther@suse.de>
17082 * tree.c (integer_zerop): Handle VECTOR_CSTs.
17083 (integer_onep): Likewise.
17084 (integer_all_onesp): Likewise.
17086 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
17088 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
17090 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17092 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
17093 instead of TARGET_64BIT.
17095 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17097 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
17100 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17102 * config/i386/i386.c (ix86_print_operand_address): Only handle
17103 zero-extended DImode addresses.
17105 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
17107 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
17108 taken and cputaken as bool.
17110 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
17112 * config/i386/constraints.md (Ya): New internal constraint.
17113 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
17114 (*zero_extendsidi2_rex64): Add x,x alternative.
17115 (*zero_extendsidi2): Ditto. Add o,0 alternative.
17116 Remove flags reg clobber. Adjust corresponding splits.
17117 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
17118 zero_extendqisi2 expanders using SWI12 mode iterator.
17119 (zero_extend<mode>si2_and): Macroize insn from
17120 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
17122 (*zero_extend<mode>si2): Macroize insn from
17123 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
17124 (*zero_extend*2_movzbl_and): Remove insn patterns.
17125 (zero_extendqihi2_and): Merge corresponding splitter.
17126 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
17127 (*zero_extend*2_movzbl_and): Remove insn patterns.
17128 (*anddi_1): Split TYPE_IMOVX instructions.
17129 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
17131 (and->zext splitter): Add splitter pattern.
17132 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
17134 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
17136 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
17138 (Debugging Options): Likewise.
17139 (Optimize Options): Likewise.
17140 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
17141 with other architectures. Use official processor names with correct
17142 spelling/capitalization. Fix formatting and grammar issues.
17143 (i386 and x86-64 Windows Options): Similar cleanup here.
17145 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17147 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
17149 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17151 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
17152 DBX_REGISTER_NUMBER.
17154 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17156 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
17157 operand is CONST_INT. Take COSTS_N_INSNS into account.
17158 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
17161 2012-03-02 Richard Henderson <rth@redhat.com>
17163 * optabs.c (expand_atomic_test_and_set): Honor
17164 atomic_test_and_set_trueval even when atomic_test_and_set
17165 optab is not in use.
17167 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
17171 * config/sh/sh.c (sh_register_move_cost): Increase cost between
17172 GENERAL_REGS and FP_REGS for SImode.
17174 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17177 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
17178 (absdi2): New expander.
17179 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
17181 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17183 * config/sh/sync.md (atomic_exchange<mode>): New expander.
17184 (atomic_exchange<mode>_soft): New insn.
17186 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17188 * config/sh/sync.md: Update copyright notice dates.
17189 (atomic_compare_and_swap<mode>): Use SImode for return value instead
17191 (atomic_compare_and_swap<mode>_soft): Likewise.
17193 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17196 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
17197 * config/sh/sh.c: Update copyright notice dates.
17198 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
17199 alignment for TARGET_HARD_SH4.
17200 (sh_option_override): Reduce default function alignment. Set
17201 loop alignment to 4 bytes when not optimizing for size.
17203 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
17205 PR middle-end/50335
17206 * doc/invoke.texi (floop-flatten): Remove.
17207 * toplev.c (process_options): Remove references to flag_loop_flatten.
17208 * tree-ssa-loop.c (gate_graphite_transform): Same.
17209 * common.opt (floop-flatten): Obsolete.
17210 * graphite-poly.c (apply_poly_transforms): Remove reference to
17212 * Makefile.in (graphite-flattening.o): Remove.
17213 * graphite-flattening.c: Remove.
17215 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17217 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
17218 having mode compatible with the mode of previous compare. Substitute
17219 compare mode of previous compare with the mode, compatible
17220 with eliminated and previous compare.
17222 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
17224 * config/rs6000/dfp.md (floatdidd2): New define_insn.
17226 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17228 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
17229 compatible with CCGOCmode and CCGCmode.
17231 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
17233 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
17235 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
17237 * config/arm/arm.c (arm_sat_operator_match): New function.
17238 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
17239 * config/arm/arm.md ("insn" attribute): Add "sat" value.
17240 ("SAT", "SATrev"): New code iterators.
17241 ("SATlo", "SAThi"): New code iterator attributes.
17242 ("*satsi_<SAT:code>"): New pattern.
17243 ("*satsi_<SAT:code>_shift"): Likewise.
17244 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
17245 and "shift" attributes.
17246 ("arm_usatsihi"): Add "insn" attribute.
17247 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
17248 by powers of two. Do not allow shift by 32.
17250 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17253 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
17254 to pass the argument in the register of "natural" mode.
17256 2012-03-02 Richard Guenther <rguenther@suse.de>
17258 PR tree-optimization/52406
17259 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
17260 (struct indices): Add unconstrained_base member.
17261 (struct dr_alias): Remove unused vops member.
17262 (DR_UNCONSTRAINED_BASE): New define.
17263 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
17264 add indices to allow their disambiguation. Make DR_BASE_OBJECT
17265 be an artificial access that covers the whole indexed object,
17266 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
17267 plain decl base-objects to their MEM_REF variant.
17268 (dr_may_alias_p): When the base-object of either data reference
17269 has unknown size use only points-to information.
17270 (compute_affine_dependence): Make dumps easier to read and
17272 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
17273 DR_REF when looking for packed references.
17274 (vect_supportable_dr_alignment): Likewise.
17276 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
17278 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
17279 Improve conditions for peepholes of loads followed by commutative
17281 * config/arm/ldmstm.md: Regenerated.
17283 2012-03-02 Richard Guenther <rguenther@suse.de>
17285 * BASE-VER: Set to 4.8.0.
17287 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
17289 * config.gcc (obsolete): Add all ARM targets using the FPA.
17290 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
17291 * doc/install.texi: Avoid references to obsolete ARM ports.
17293 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
17295 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
17297 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
17298 Joern Rennecke <joern.rennecke@embecosm.com>
17300 * doc/extend.texi: Expand and update information on interrupt
17301 attribute for Epiphany.
17303 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17305 * config/sh/sh-protos.h: Update copyright notice dates.
17306 * config/sh/sh.h: Likewise.
17307 * config/sh/sh.md: Likewise.
17308 * config/sh/constraints.md: Likewise.
17309 * config/sh/predicates.md: Likewise.
17311 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17313 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
17314 * config/sh/sh.c (tertiary_reload_operand): Likewise.
17316 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17318 * config/sh/constraints.md: Fix comment typo.
17320 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17323 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
17324 unsigned HOST_WIDE_INT.
17325 (zvdep_imm64): Likewise.
17326 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
17327 (vdepi_and): Likewise.
17328 Likewise for unamed 64-bit patterns.
17329 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
17331 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
17334 PR rtl-optimization/52417
17335 * cselib.c (cselib_any_perm_equivs): New variable.
17336 (cselib_reset_table): Check that it's not set when not
17337 preserving constants.
17338 (cselib_add_permanent_equiv): Set it.
17339 (cselib_have_permanent_equivalences): New.
17340 (cselib_init, cselib_finish): Reset it.
17341 * cselib.h (cselib_have_permanent_equivalences): Declare.
17342 * alias.c (get_addr): Restore earlier behavior when there
17343 aren't permanent equivalences.
17345 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
17347 * config/mn10300/mn10300-modes.def: Fix copyright notice.
17348 * config/v850/v850-modes.def: Fix copyright notice.
17350 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
17352 * doc/extend.texi (AVR Built-in Functions): Document
17353 __builtin_avr_flash_segment.
17355 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
17356 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
17357 (*split.flash_segment): New insn-and-split.
17358 * config/avr/avr.c (avr_init_builtins): Add local variables:
17359 const_memx_void_node, const_memx_ptr_type_node,
17360 char_ftype_const_memx_ptr.
17362 2012-03-01 Jakub Jelinek <jakub@redhat.com>
17364 PR tree-optimization/52445
17365 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
17366 add ssa_name_ver, offset and size fields and change store field
17368 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
17369 (add_or_mark_expr): Likewise. Only consider previous stores
17370 with the same size and offset.
17371 (nt_init_block): Only look at gimple_assign_single_p stmts,
17372 doesn't look at rhs2.
17374 2012-03-01 Richard Guenther <rguenther@suse.de>
17376 PR middle-end/52443
17377 * tree-cfg.c (verify_gimple_assign_unary): Allow any
17378 conversions from integral types to pointer types.
17380 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
17382 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
17383 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
17384 unintentionally removed in r184616.
17386 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17388 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
17391 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17392 Uros Bizjak <ubizjak@gmail.com>
17395 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
17396 alternatives, add "e" constraint to the new last alternative
17397 and ! to last 3 alternatives.
17399 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17401 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
17402 DW_AT_artificial attributes at the end of the processing.
17403 (gen_array_type_die): Likewise.
17404 (gen_enumeration_type_die): Likewise.
17405 (gen_struct_or_union_type_die): Likewise.
17406 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
17409 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17411 PR middle-end/52419
17412 * expr.c (expand_assignment): If doing misaligned store that doesn't
17413 cover all mode bits, perform a RMW cycle.
17415 PR tree-optimization/52429
17416 * tree-parloops.c (separate_decls_in_region_debug): Return early
17417 if var is LABEL_DECL.
17419 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17421 PR tree-optimization/52424
17422 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
17423 calling dom_thread_across_edge.
17425 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17427 * config/avr/avr.c: Move definition of TARGET macros to end of file.
17429 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17431 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
17432 * config/avr/avr.c (avr_output_bld): Remove unused function.
17433 (avr_out_sbxx_branch): Use "%T" to print bit position.
17435 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17437 * config/avr/avr.md: Untabify.
17439 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17441 * config/avr/avr.md (eqne): New code iterator.
17442 (*dec-and-branchsi): Use it in text peephole's condition.
17443 (*dec-and-branchhi): Ditto.
17444 (*dec-and-branchqi): Ditto.
17446 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17449 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
17450 the device does not have the skip-bug.
17452 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
17454 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
17455 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
17456 -mpretend-cmove): New.
17458 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17461 * df.h (struct df_d): Adjust comment that hard_regs_live_count
17462 doesn't count DEBUG_INSN refs.
17463 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
17464 for DEBUG_INSN refs.
17466 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17470 2012-02-20 Richard Guenther <rguenther@suse.de>
17471 PR tree-optimization/52298
17472 * tree-vect-stmts.c (vectorizable_load): Properly use
17473 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
17475 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
17477 PR middle-end/51752
17478 * gimple.h (gimple_in_transaction): New.
17479 (gimple_set_in_transaction): New.
17480 (struct gimple_statement_base): Add in_transaction field.
17481 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
17483 (tree_ssa_lim_initialize): Compute transaction bits.
17484 * tree.h (compute_transaction_bits): Protoize.
17485 * trans-mem.c (tm_region_init): Use the heap to store BB
17487 (compute_transaction_bits): New.
17489 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17491 * gcc.c (display_help): Document --help=common and sort entries
17494 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17496 * doc/install.texi: Document check-$LANG specific shortcuts
17498 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17501 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
17503 * config/arm/arm_neon.h: Regenerate.
17504 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
17505 (neon_vcgeu): New insn.
17506 (neon_vcgtu): Likewise.
17507 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
17508 (ops): Unsigned comparison intrinsics call a different builtin.
17510 2012-02-28 Richard Guenther <rguenther@suse.de>
17513 * config/i386/i386.c (ix86_expand_vector_set): Fix element
17514 ordering for the VEC_CONCAT for two element vectors for
17515 V2SFmode, V2SImode and V2DImode.
17517 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
17520 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
17521 detecting big-endian triplets.
17523 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
17525 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
17526 mode if there is no type information available.
17528 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
17530 PR tree-optimization/53207
17531 * doc/invoke.texi: Document as experimental and relying on graphite.
17533 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17535 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
17536 of initializer to changes from r184614.
17538 2012-02-28 Richard Guenther <rguenther@suse.de>
17540 PR tree-optimization/52395
17541 * tree-sra.c (build_ref_for_offset): Also look at the base
17542 TYPE_ALIGN when figuring out the alignment of the replacement.
17544 2012-02-28 Richard Guenther <rguenther@suse.de>
17546 PR tree-optimization/52402
17547 * ipa-prop.c (ipa_modify_call_arguments): Properly use
17548 mis-aligned types when creating the accesses at the call site.
17550 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17552 * config/avr/builtins.def: New file.
17553 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
17554 * config/avr/avr.c (enum avr_builtin_id): Use it.
17555 (avr_init_builtins): Use it. And use avr_bdesc.
17556 (bdesc_1arg): Remove.
17557 (bdesc_2arg): Remove.
17558 (bdesc_3arg): Remove.
17559 (struct avr_builtin_description): Add field n_args.
17560 (avr_bdesc): New static variable using builtins.def.
17561 (avr_expand_builtin): Use it.
17562 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
17563 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
17564 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
17566 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17569 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
17570 match only one single hard register with respective hard reg rtx.
17571 (movmemx_<mode>): Ditto.
17572 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
17573 insn anatomy of movmem[x]_<mode>.
17574 (avr_out_movmem): Same for printing assembler and operand usage.
17576 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17580 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
17581 address spaces located outside of device flash.
17583 * config/avr/avr.h (base_arch_s): Remove field n_segments.
17584 (mcu_type_s): Add field n_flash.
17585 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
17586 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
17587 (AVR_MCU): Add N_FLASH argument.
17588 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
17589 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
17590 macro __FLASH<n> if that address space makes sense for the device.
17591 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
17592 outside of target flash.
17593 (avr_asm_named_section): Ditto.
17594 (avr_asm_select_section): Ditto.
17595 (avr_addr_space_convert): Ditto.
17596 (avr_emit_movmemhi): Ditto.
17597 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
17598 address space is outside of device flash.
17599 (avr_insert_attributes): Ditto.
17600 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
17601 avr_current_arch->n_segments.
17603 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
17606 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
17607 (*movabs<mode>_2): Likewise.
17609 2012-02-27 Jakub Jelinek <jakub@redhat.com>
17612 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
17613 s_register_operand in the test instead of REG_P. Don't call
17614 gen_reg_rtx if it won't be used.
17616 PR tree-optimization/52376
17617 * ipa-split.c (split_function): Ignore CLOBBER stmts.
17619 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
17621 * ifcvt.c (noce_get_condition): Check condition variable is not
17622 small_register_classes_for_mode_p before accepting.
17624 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
17626 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
17628 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17631 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17632 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
17634 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
17636 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
17638 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
17640 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17642 * config/sh/predicates.md: Remove blank lines.
17643 * config/sh/sh.c: Fix typos in comments.
17644 * config/sh/constraints.md: Likewise.
17645 * config/sh/sh.md: Remove blank lines.
17646 Fix typos in comments. Use ;; as comment characters.
17648 2012-02-26 Walter Lee <walt@tilera.com>
17650 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
17651 (replace_mov_pcrel_step2): Ditto.
17653 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
17656 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
17657 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
17658 and locs that reference values newer than the non-canonical value
17659 at hand. Return the canonical value as a worst case.
17660 (memrefs_conflict_p): Walk canonical value's locs.
17663 * cselib.c (preserve_only_constants): Rename to...
17664 (preserve_constants_and_equivs): ... this. Split out...
17665 (invariant_or_equiv_p): ... this. Preserve plus expressions
17666 of other preserved expressions too.
17667 (cselib_reset_table): Adjust.
17668 * var-tracking.c (reverse_op): Use canonical value to build
17671 2012-02-23 Kai Tietz <ktietz@redhat.com>
17673 * config/i386/i386.c (ix86_delegitimize_address): Handle
17674 UNSPEC_PCREL plus displacement.
17676 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
17679 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
17680 to test for unusedness in st X addressing.
17682 2012-02-24 Richard Guenther <rguenther@suse.de>
17684 PR middle-end/52361
17685 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
17686 (is_gimple_reg_type): Move inline ...
17687 * gimple.h (is_gimple_reg_type): ... here.
17689 2012-02-24 Richard Guenther <rguenther@suse.de>
17691 PR middle-end/52361
17692 * passes.c (execute_function_todo): When verifying SSA form
17693 verify gimple form first.
17694 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
17696 2012-02-24 Richard Guenther <rguenther@suse.de>
17698 PR middle-end/52355
17699 * fold-const.c (fold_addr_of_array_ref_difference): New function.
17700 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
17702 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17704 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
17706 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17708 * tree-phinodes.c (make_phi_node): Mark static.
17709 * tree-flow.h (make_phi_node): Remove extern decl.
17710 * doc/gimple.texi (make_phi_node): Remove documentation.
17712 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17714 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
17715 * tree-ssa-sccvn.c (print_scc): Ditto.
17717 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17719 * doc/passes.texi (Full redundancy elimination): Fix typo.
17721 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17723 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
17725 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
17728 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
17730 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
17733 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
17735 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
17737 * config/avr/avr.md (code_stdname): Add ior, xor.
17738 (xior): New code iterator.
17739 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
17740 (*<code_stdname><mode>qi.byte1-3): Ditto.
17742 2012-02-23 Jakub Jelinek <jakub@redhat.com>
17744 PR tree-optimization/52019
17745 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
17748 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17750 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
17751 HAVE_INITFINI_ARRAY to work around namespace pollution in
17752 certain versions of newlib system headers.
17753 * config.in: Regenerate.
17754 * configure: Regenerate.
17755 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
17756 instead of HAVE_INITFINI_ARRAY.
17758 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
17761 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
17762 is not offsettable memory reference.
17764 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17767 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
17768 setting avr_need_clear_bss_p for __gnu_lto* symbols.
17770 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17772 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
17773 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
17775 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17777 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
17778 library on Solaris 8 even without TLS support.
17779 * configure: Regenerate.
17781 2012-02-22 Richard Guenther <rguenther@suse.de>
17783 PR middle-end/52329
17784 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
17785 for GIMPLE_DEBUG stmts.
17787 2012-02-22 Martin Jambor <mjambor@suse.cz>
17789 PR middle-end/51782
17790 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
17791 according to the base object.
17793 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17795 PR rtl-optimization/50063
17796 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
17797 and 2 (8-bit SP) in operand 2.
17798 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
17799 setup to use movhi_sp_r instead of vanilla move to write SP.
17800 Adjust REG_CFA notes to superseed unspec.
17801 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
17803 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
17804 known to be off) only with TARGET_NO_INTERRUPTS. Never use
17805 irq_state 1 (IRQ known to be on) here.
17807 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
17809 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
17811 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
17812 assign_hard_reg): Likewise.
17814 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17816 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
17818 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17820 * config/avr/avr.md
17821 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
17822 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
17824 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17826 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
17827 prototype from here to...
17828 * config/avr/avr.h: ...here.
17830 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
17833 * thumb2.md (thumb2_shiftsi3_short): Split register and
17834 immediate shifts. For register shifts tie operands 0 and 1.
17835 (peephole2 for above): Check that register-controlled shifts
17836 have suitably tied operands.
17838 2012-02-21 Quentin Neill <quentin.neill@amd.com>
17841 * config/i386/bdver1.md (bdver1_call, bdver1_push,
17842 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
17843 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
17844 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
17845 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
17846 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
17847 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
17848 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
17849 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
17850 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
17851 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
17852 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
17853 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
17854 bdver1_ssevector_avx256_unaligned_load,
17855 bdver1_ssevector_sse128_unaligned_load,
17856 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
17857 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
17858 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
17859 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
17860 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
17861 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
17862 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
17863 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
17864 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
17865 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
17866 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
17867 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
17868 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
17869 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
17870 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
17871 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
17872 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
17873 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
17874 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
17875 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
17876 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
17877 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
17878 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
17879 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
17880 bdver1_ssediv_double_load, bdver1_ssediv_double,
17881 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
17882 Add "bdver2" attribute.
17884 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17886 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
17887 default if possible and not specified otherwise.
17889 2012-02-21 Richard Guenther <rguenther@suse.de>
17891 PR middle-end/52314
17892 * gimplify.c (create_tmp_from_val): Use the main variant type
17893 for the type of the temporary we create.
17895 2012-02-21 Richard Guenther <rguenther@suse.de>
17897 PR tree-optimization/52324
17898 * gimplify.c (gimplify_expr): When re-gimplifying expressions
17899 do not gimplify a MEM_REF address operand if it is already
17902 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17904 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
17905 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
17907 2012-02-21 Richard Guenther <rguenther@suse.de>
17909 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
17910 nested_in_vect_loop.
17912 2012-02-21 Jakub Jelinek <jakub@redhat.com>
17914 PR tree-optimization/52318
17915 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
17916 vdef also to non-pure/const call stmts in the sequence.
17918 2012-02-21 Tristan Gingold <gingold@adacore.com>
17920 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
17922 2012-02-20 David S. Miller <davem@davemloft.net>
17924 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
17925 don't use the "rd %pc" instruction on v9 for PIC register loads.
17927 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
17929 PR middle-end/52141
17930 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
17931 in a transaction safe function.
17933 2012-02-20 Kai Tietz <ktietz@redhat.com>
17936 * stor-layout.c (place_field): Handle desired_align for
17939 2012-02-20 Richard Guenther <rguenther@suse.de>
17941 PR tree-optimization/52298
17942 * tree-vect-stmts.c (vectorizable_store): Properly use
17943 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
17945 (vectorizable_load): Likewise.
17946 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
17947 Access DR_STEP after ensuring it is not NULL.
17949 2012-02-20 Jakub Jelinek <jakub@redhat.com>
17951 PR tree-optimization/52286
17952 * fold-const.c (fold_binary_loc): For (X & C1) | C2
17953 optimization use double_int_to_tree instead of build_int_cst_wide,
17954 rewrite to use double_int vars.
17956 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17959 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
17961 Remove -e 0 from $gcc_cv_ld invocation.
17962 Only use __GLIBC_PREREQ if defined.
17963 Enable on Solaris since Solaris 8 patch.
17964 (gcc_SUN_LD_VERSION): New macro.
17965 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
17966 gcc_SUN_LD_VERSION for version number format.
17967 * configure: Regenerate.
17968 * varasm.c (get_elf_initfini_array_priority_section): Set
17969 SECTION_NOTYPE for non-default priority.
17970 Use get_section instead of get_unnamed_section to emit
17971 .init_array/.fini_array with default priority.
17973 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
17975 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
17976 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
17977 (mips_start_unique_function, mips_output_mips16_rdhwr)
17978 (mips_code_end): New functions.
17979 (TARGET_ASM_CODE_END): Define.
17981 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
17983 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
17984 to stubs with non-sibling calls.
17986 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
17988 * doc/invoke.texi (-fira-* options): Copy-edit.
17989 (ira-* parameters): Copy-edit.
17991 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
17993 * doc/invoke.texi: Minor copy-edits to bring into conformance with
17994 GCC coding conventions.
17996 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
17998 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
17999 when used as adjectives.
18001 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
18003 * doc/invoke.texi: Clean up "that"/"which" confusion.
18005 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
18007 * system.h: Poison SMALL_REGISTER_CLASSES
18008 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
18009 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
18011 2012-02-16 Jakub Jelinek <jakub@redhat.com>
18013 PR tree-optimization/52285
18014 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
18015 when deciding if a call is a tail call or tail recursion.
18017 2012-02-16 Kai Tietz <ktietz@redhat.com>
18019 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
18020 interger-constant displacement for UNSPEC_PCREL.
18022 2012-02-16 Jakub Jelinek <jakub@redhat.com>
18024 PR rtl-optimization/52208
18025 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
18026 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
18028 PR tree-optimization/52255
18029 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
18030 loop->header has virtual PHI, but exit_e->dest doesn't, add
18031 virtual PHI to exit_e->dest and adjust all uses after the loop.
18034 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
18035 children with clone_tree_hash, not after it.
18037 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
18039 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
18040 extended identifiers.
18042 2012-02-16 Jakub Jelinek <jakub@redhat.com>
18044 PR middle-end/51929
18045 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
18046 a same_body_alias, also test whether e->callee isn't a former
18047 or current clone of the decl this is a same body alias of.
18049 PR translation/52264
18050 * cgraphunit.c (verify_cgraph_node): Fix a typo.
18052 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
18054 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
18056 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18059 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
18060 force_reg instead of copy_to_reg for better optimization. Force
18061 non-register or memory operands into a register.
18063 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
18065 * extend.texi: Reserve upper bits of memory model for future use.
18067 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
18068 Anatoly Sokolov <aesok@post.ru>
18069 Eric Weddington <eric.weddington@atmel.com>
18072 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
18073 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
18074 Rewrite initializers for .macro.
18075 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
18076 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
18077 atxmega32d4, atxmega32x1.
18078 avrxmega4: atxmega64a3, atxmega64d3.
18079 avrxmega5: atxmega64a1, atxmega64a1u.
18080 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
18081 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
18082 avrxmega7: atxmega128a1, atxmega128a1u.
18083 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
18084 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
18085 (struct base_arch_s): Rename reserved to xmega_p.
18086 Rename reserved2 to have_rampd.
18087 (AVR_XMEGA): New define.
18088 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
18089 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
18090 * config/avr/predicates.md (io_address_operand): Take into
18091 account SFR offset.
18092 (low_io_address_operand): Ditto.
18093 (high_io_address_operand): Ditto.
18094 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
18095 (enabled, movhi_sp_r): Use them.
18096 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
18097 cpp_define_formatted to built-in define __AVR_ARCH__.
18098 (__AVR_XMEGA__): New built-in define.
18099 (__AVR_HAVE_RAMPD__): New built-in define.
18100 (__AVR_HAVE_RAMPX__): New built-in define.
18101 (__AVR_HAVE_RAMPY__): New built-in define.
18102 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
18104 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
18105 (avr_option_override): Initialize them.
18106 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
18107 (avr_init_expanders): Initialize them. No more block several calls.
18108 (emit_push_sfr): New static function.
18109 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
18111 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
18112 (avr_print_operand): Print addreeses as symbols for
18113 RAMPX, RAMPY, RAMPD, CCP.
18114 (output_movhi): Handle AVR_XMEGA when writing to SP.
18115 (avr_out_movhi_mr_r_xmega): New static function.
18116 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
18117 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
18118 __RAMPD__, __CCP__ as needed.
18120 * config/avr/multilib.h: Regenerate.
18121 * config/avr/t-multilib: Regenerate.
18122 * config/avr/avr-tables.opt: Regenerate.
18124 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
18126 PR tree-optimization/50561
18127 * graphite-flattening.c (lst_project_loop): Do not
18128 remove old scattering dimensions after flattening.
18129 (lst_do_flatten): Likewise.
18131 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
18133 * doc/extend.texi (AVR Built-in Functions): Remove doc for
18134 __builtin_avr_map8, __builtin_avr_map16.
18135 Document __builtin_avr_insert_bits.
18137 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
18138 (insert_bits): New insn.
18139 (adjust_len.map_bits): Rename to insert_bits.
18140 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
18141 * avr-protos.h (avr_out_map_bits): Remove.
18142 (avr_out_insert_bits, avr_has_nibble_0xf): New.
18143 * config/avr/constraints.md (Cxf,C0f): New.
18144 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
18145 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
18146 New built-in define __BUILTIN_AVR_INSERT_BITS.
18147 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
18148 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
18149 (avr_move_bits): Rewrite.
18150 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
18152 (avr_map_op_t): New typedef.
18153 (avr_map_op): New static variable.
18154 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
18155 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
18156 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
18157 (bdesc_3arg, avr_expand_triop_builtin): New.
18158 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
18159 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
18160 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
18161 (avr_map_equal_p, avr_map_sig_p): Remove.
18162 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
18163 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18164 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
18165 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18166 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
18167 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18169 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
18171 * config/c6x/c6x.md (reserve_cycles): New attribute.
18172 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
18173 don't reserve functional units after the branch occurs.
18175 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
18177 PR middle-end/52142
18178 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
18179 functions into non-tm_pure functions.
18181 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
18184 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
18185 (iterative_hash_canonical_type): Likewise.
18186 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
18189 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
18191 * haifa-sched.c (prune_ready_list): Ensure that if there is a
18192 sched-group insn, it either remains alone or the entire list is pruned.
18194 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
18196 * doc/install.texi (Prerequisites): Fix grammar.
18197 (Configuration): Likewise.
18199 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
18201 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
18202 MPC as part of GCC before describing configuring with --with-gmp etc.
18203 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
18204 sources are present.
18206 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18209 * dwarf2out.c (clone_tree_hash): New function.
18210 (copy_decls_walk): Use it instead of clone_tree.
18212 2012-02-14 Richard Guenther <rguenther@suse.de>
18214 PR tree-optimization/52244
18215 PR tree-optimization/51528
18216 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
18217 replacements for integral types.
18219 2012-02-14 Walter Lee <walt@tilera.com>
18221 * config.gcc: Handle tilegx and tilepro.
18222 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
18223 tilegx and tilepro.
18224 Add HAVE_AS_TLS check for tilegx and tilepro.
18225 * configure: Regenerate.
18226 * doc/contrib.texi: Add Mat Hostetter and self.
18227 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
18228 Document instruction intrinsics and network accessing intrinsics.
18229 (TILEPro Built-in Functions): New node. Document instruction
18230 intrinsics and network accessing intrinsics.
18231 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
18232 (Specific, tilepro-*-linux*): Likewise.
18233 * doc/invoke.texi (TILE-Gx Options): New section.
18234 (TILEPro Options): New section.
18235 * doc/md.texi (TILE-Gx): New section.
18236 (TILEPro): New section.
18237 * common/config/tilegx/tilegx-common.c: New file.
18238 * common/config/tilepro/tilepro-common.c: New file.
18239 * config/tilegx/constraints.md: New file.
18240 * config/tilegx/linux.h: New file.
18241 * config/tilegx/mul-tables.c: New file.
18242 * config/tilegx/predicates.md: New file.
18243 * config/tilegx/sync.md: New file.
18244 * config/tilegx/t-tilegx: New file.
18245 * config/tilegx/tilegx-builtins.h: New file.
18246 * config/tilegx/tilegx-c.c: New file.
18247 * config/tilegx/tilegx-generic.md: New file.
18248 * config/tilegx/tilegx-modes.def: New file.
18249 * config/tilegx/tilegx-multiply.h: New file.
18250 * config/tilegx/tilegx-protos.h: New file.
18251 * config/tilegx/tilegx.c: New file.
18252 * config/tilegx/tilegx.h: New file.
18253 * config/tilegx/tilegx.md: New file.
18254 * config/tilegx/tilegx.opt: New file.
18255 * config/tilepro/constraints.md: New file.
18256 * config/tilepro/gen-mul-tables.cc: New file.
18257 * config/tilepro/linux.h: New file.
18258 * config/tilepro/mul-tables.c: New file.
18259 * config/tilepro/predicates.md: New file.
18260 * config/tilepro/t-tilepro: New file.
18261 * config/tilepro/tilepro-builtins.h: New file.
18262 * config/tilepro/tilepro-c.c: New file.
18263 * config/tilepro/tilepro-generic.md: New file.
18264 * config/tilepro/tilepro-modes.def: New file.
18265 * config/tilepro/tilepro-multiply.h: New file.
18266 * config/tilepro/tilepro-protos.h: New file.
18267 * config/tilepro/tilepro.c: New file.
18268 * config/tilepro/tilepro.h: New file.
18269 * config/tilepro/tilepro.md: New file.
18270 * config/tilepro/tilepro.opt: New file.
18272 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18274 PR tree-optimization/52210
18275 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
18276 vect_model_simple_cost with two entry vect_def_type array instead
18277 of an address of dt.
18279 2012-02-14 Richard Guenther <rguenther@suse.de>
18282 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
18283 Do not stream DECL_QUALIFIER.
18284 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
18285 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
18286 (find_decls_types_r): Do not walk DECL_QUALIFIER.
18288 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18291 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
18294 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18297 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
18298 * cselib.c (cselib_subst_to_values_from_insn): New function.
18299 * sched-deps.c (add_insn_mem_dependence,
18300 sched_analyze_1, sched_analyze_2): Use it.
18302 2012-02-13 Jan Hubicka <jh@suse.cz>
18304 PR middle-end/52214
18305 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
18307 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
18309 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
18310 (GTM_SELF_SPECS): Define if not already defined.
18311 (driver_self_specs): Add GTM_SELF_SPECS.
18312 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
18313 (GTM_SELF_SPECS): Define.
18314 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
18315 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
18317 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18319 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
18322 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
18324 PR middle-end/52230
18325 * omp-low.c (expand_omp_for): If a static schedule without chunk size
18326 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
18328 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
18331 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
18333 2012-02-13 Richard Guenther <rguenther@suse.de>
18335 PR translation/52211
18336 * passes.c (enable_disable_pass): Fix typo.
18338 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18340 PR middle-end/52209
18341 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
18342 XOR for reduce_bit_field if type is unsigned.
18344 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
18346 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
18347 disallow changes from SFmode to mode with different size in FP regs.
18349 2012-02-12 Robert Millan <rmh@gnu.org>
18350 Gerald Pfeifer <gerald@pfeifer.com>
18352 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
18355 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
18357 PR rtl-optimization/52175
18358 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
18359 to frame-related instructions.
18361 2012-02-10 Jason Merrill <jason@redhat.com>
18364 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
18365 (demangle_new_symbols): Fill it.
18366 (scan_linker_output): Walk it.
18367 (start_tweaking): Split out from scan_linker_output.
18368 (maybe_tweak): Update sym->chosen.
18369 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
18371 2012-02-11 Jakub Jelinek <jakub@redhat.com>
18374 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
18376 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
18378 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
18379 having the same mode as previous compare.
18381 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
18383 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
18384 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
18385 (nonlocal_goto_internal): Likewise.
18386 (nonlocal_goto): Emit a use and an indirect jump directly.
18388 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
18391 * doc/extend.texi : Update comments for __atomic_compare_exchange and
18392 __atomic_{is,always}_lock_free.
18394 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
18397 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
18398 negative constant address for TARGET_X32.
18400 2012-02-10 Richard Henderson <rth@redhat.com>
18402 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
18403 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
18404 for GIMPLE_TRANSACTION. Tidy if's into a switch.
18406 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18407 Ira Rosen <irar@il.ibm.com>
18409 PR tree-optimization/50031
18410 * targhooks.c (default_builtin_vectorization_cost): Handle
18411 vec_promote_demote.
18412 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
18413 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
18414 all types of reduction and pattern statements.
18415 (vect_estimate_min_profitable_iters): Likewise.
18416 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
18417 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
18418 for explicit realigns.
18419 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
18420 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
18421 vec_promote_demote.
18422 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18423 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
18424 vec_perm for VSX and handle vec_promote_demote.
18426 2012-02-10 Jakub Jelinek <jakub@redhat.com>
18428 PR middle-end/52177
18429 * builtins.c (fold_builtin_atomic_always_lock_free,
18430 expand_builtin_atomic_always_lock_free,
18431 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
18432 Return and/or test boolean_true_node/boolean_false_node instead of
18433 integer_one_node/integer_zero_node.
18435 2012-02-10 Jan Hubicka <jh@suse.cz>
18437 PR middle-end/48600
18438 * predict.c (predict_paths_for_bb): Prevent looping.
18439 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
18441 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
18443 * config/arm/arm.c (output_move_double): In one case properly
18444 count number of instructions that will be emitted.
18446 2012-02-10 Richard Guenther <rguenther@suse.de>
18448 PR translation/52193
18449 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
18451 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
18453 PR middle-end/52140
18454 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
18456 2012-02-09 Jakub Jelinek <jakub@redhat.com>
18459 * var-tracking.c (emit_note_insn_var_location): If
18460 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
18461 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
18462 non-NOTE_DURING_CALL_P insn.
18464 2012-02-09 Bin Cheng <bin.cheng@arm.com>
18466 PR middle-end/51867
18467 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
18469 2012-02-08 Magnus Granberg <zorry@gentoo.org>
18472 * gcc.c (switch_matches) Support switches with separated form,
18475 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
18477 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
18479 (RAMPZ_ADDR): Ditto.
18480 * config/avr/avr.c (avr_addr_t): New typedef.
18481 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
18482 (avr_init_expanders): Initialize it.
18483 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
18485 (expand_epilogue): Ditto.
18486 (avr_print_operand): Ditto.
18487 (avr_file_start): Ditto.
18488 (avr_emit_movmemhi): Ditto.
18490 2012-02-08 Richard Guenther <rguenther@suse.de>
18492 PR tree-optimization/46886
18493 * tree-flow.h (do_while_loop_p): Declare.
18494 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
18495 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
18497 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
18499 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
18500 always succeed for integers larger than a native word.
18502 2012-02-08 Richard Guenther <rguenther@suse.de>
18504 PR rtl-optimization/52170
18505 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
18506 properly handle integer vector modes.
18508 2012-02-08 Jakub Jelinek <jakub@redhat.com>
18510 PR gcov-profile/52150
18511 * coverage.c: Include target.h.
18512 (build_var): Call targetm.strip_name_encoding on the assembler name.
18513 Change one _ into . or $ if the target allows it.
18514 * Makefile.in (coverage.o): Depend on $(TARGET_H).
18516 PR rtl-optimization/52139
18517 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
18518 is a BARRIER after emit_insn_after_noloc, move BB_END
18519 to the last non-BARRIER insn before it.
18521 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
18523 PR middle-end/24306
18524 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
18525 (mips_gimplify_va_arg_expr): Call it instead of
18526 std_gimplify_va_arg_expr.
18528 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18530 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
18531 message for -mno-pointers-to-nested-function.
18533 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
18535 PR middle-end/51994
18536 * expr.c (get_inner_reference): If there is an offset, add a negative
18537 bit position to it (if any).
18539 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18541 PR rtl-optimization/52060
18542 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
18543 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
18544 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
18545 and/or i0src_copy2 when needed.
18547 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18549 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
18550 or LTOPLUGINSONAME if have_c.
18552 * config/freebsd-spec.h: Add comment about what macros can be defined
18554 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
18555 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
18558 2012-02-07 Richard Guenther <rguenther@suse.de>
18560 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
18561 newline in -alias dumps.
18563 2012-02-07 Kai Tietz <ktietz@redhat.com>
18564 Dave Korn <dave.korn.cygwin@gmail.com>
18567 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
18568 Take care that typinfo gets dllexport-attribute.
18570 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18572 PR middle-end/52074
18573 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
18574 if modifier < EXPAND_SUM call force_operand on the result.
18576 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
18578 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
18579 adding __forwarder_dst__ prefix if a forwarder_section attribute is
18581 (epiphany_function_type): Replace types for specific interrupts with
18582 EPIPHANY_FUNCTION_INTERRUPT.
18583 (EPIPHANY_INTERRUPT_P): Update.
18584 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
18585 New static function.
18586 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
18587 <disinterrupt>: Affects type identity.
18588 (epiphany_handle_interrupt_attribute): Handle variable number of
18590 (epiphany_compute_function_type): Update for new
18591 epiphany_function_type definition.
18592 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
18593 handlers with a longcall forwarder.
18594 (epiphany_start_function): Handle multiple interrupt arguments and/or
18595 forwarder_section attribute.
18597 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
18600 2012-02-07 Alan Modra <amodra@gmail.com>
18603 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
18606 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18608 PR tree-optimization/50969
18609 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
18610 use vec_perm rather than vector_stmt.
18611 (vect_model_load_cost): Likewise.
18612 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
18613 vec_perm to be the same as other vector statements.
18614 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
18615 cost of vec_perm for TARGET_VSX.
18617 2012-02-06 Richard Guenther <rguenther@suse.de>
18619 PR tree-optimization/52115
18620 * tree-sra.c (access_has_replacements_p): New function.
18621 (sra_modify_assign): Use it to decide whether a use is uninitialized.
18623 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
18625 PR middle-end/52047
18626 * trans-mem.c (expand_call_tm): Add an assertion.
18627 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
18630 2012-02-06 Richard Guenther <rguenther@suse.de>
18632 PR tree-optimization/50955
18633 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
18634 raise cost of expressions that replace an address with an
18635 expression based on a different pointer.
18637 2012-02-06 Jakub Jelinek <jakub@redhat.com>
18640 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
18641 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
18643 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
18646 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
18647 -Weffc++ and specify guidelines come from second edition.
18649 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
18651 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
18652 (sibcall_value_multiple_internal, call_split, call_internal_direct)
18653 (call_direct_split, call_value_split, call_value_internal_direct)
18654 (call_value_direct_split, call_value_multiple_split): Use jal and
18655 jal_macro attributes.
18657 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
18659 * reload1.c (reload_regs_reach_end_p): Replace with...
18660 (reload_reg_rtx_reaches_end_p): ...this function.
18661 (new_spill_reg_store): Update commentary.
18662 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
18663 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
18664 before setting new_spill_reg_store.
18665 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
18666 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
18667 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
18668 for non-spill reload registers.
18670 2012-02-05 Ira Rosen <irar@il.ibm.com>
18672 PR tree-optimization/52091
18673 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
18674 (vect_is_simple_use_1): Likewise.
18675 * tree-vect-loop.c (vectorizable_reduction): Update calls
18676 to vect_is_simple_use_1 and vect_is_simple_use.
18677 (vectorizable_live_operation): Likewise.
18678 * tree-vect-patterns.c (widened_name_p,
18679 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
18680 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
18681 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
18682 vectorizable_shift,vectorizable_operation, vectorizable_store,
18683 vectorizable_load): Likewise.
18684 (vect_is_simple_cond): Add an argument, pass it to
18685 vect_is_simple_use_1.
18686 (vectorizable_condition): Update calls to vect_is_simple_cond,
18687 vect_is_simple_use.
18688 (vect_is_simple_use): Add an argument, the statement in which
18689 OPERAND is used. Check that if OPERAND's def stmt is a double
18690 reduction phi node, the use is a phi node too.
18691 (vect_is_simple_use_1): Add an argument, pass it to
18692 vect_is_simple_use.
18693 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
18694 to vect_is_simple_use.
18696 2012-02-04 Jakub Jelinek <jakub@redhat.com>
18698 PR rtl-optimization/52095
18699 * modulo-sched.c (dump_insn_locator): New function.
18700 (loop_canon_p, sms_schedule): Use it.
18702 PR rtl-optimization/52113
18703 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
18704 even for decomposable shift/zext insns.
18706 2012-02-03 Jakub Jelinek <jakub@redhat.com>
18707 Zdenek Dvorak <ook@ucw.cz>
18709 PR rtl-optimization/52092
18710 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
18711 on get_iv_value result.
18713 2012-02-02 Andrew Pinski <apinski@cavium.com>
18715 PR middle-end/47982
18716 PR middle-end/43967
18717 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
18719 2012-02-02 Jakub Jelinek <jakub@redhat.com>
18721 PR middle-end/48071
18722 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
18724 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
18726 PR rtl-optimization/49800
18727 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
18728 (sched_finish): Call regstat_free_n_sets_and_refs.
18730 2012-02-02 Jia Liu <proljc@gmail.com>
18732 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
18735 2012-02-02 Jan Hubicka <jh@suse.cz>
18736 Tom de Vries <tom@codesourcery.com>
18738 PR middle-end/51998
18739 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
18740 * varpool.c (varpool_analyze_pending_decls): Likewise.
18742 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
18743 Jayant R Sonar <jayant.sonar@kpitcummins.com>
18745 * config.gcc: Add cr16-* support.
18747 * doc/extend.texi: Document cr16 extensions.
18748 * doc/install.texi: Document cr16 install.
18749 * doc/invoke.texi: Document cr16 options.
18750 * doc/md.texi: Document cr16 constraints.
18752 * common/config/cr16/cr16-common.c: New file.
18753 * config/cr16/cr16.c: New file.
18754 * config/cr16/cr16.h: New file.
18755 * config/cr16/cr16.md: New file.
18756 * config/cr16/cr16.opt: New file.
18757 * config/cr16/cr16-protos.h: New file.
18758 * config/cr16/predicates.md: New file.
18759 * config/cr16/constraints.md: New file.
18760 * config/cr16/t-cr16: New file.
18762 2012-02-02 Jakub Jelinek <jakub@redhat.com>
18765 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
18766 that operands[2] is either immediate, or q_regs_operand.
18768 PR tree-optimization/52073
18769 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
18770 a pattern stmt for pattern uses, ignore uses outside of the loop.
18772 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
18774 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
18775 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
18776 (OUT_AS1, OUT_AS2): Remove.
18778 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
18780 PR rtl-optimization/51374
18781 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
18782 to cross other volatile_refs_p insns.
18784 2012-02-01 Richard Guenther <rguenther@suse.de>
18786 * doc/invoke.texi (fno-inline): Clarify documentation.
18787 (finline-small-functions): Likewise.
18788 (finline-functions): Likewise.
18789 * common.opt (finline): Adjust comment and documentation.
18790 (finline-small-functions): Clarify documentation.
18791 (finline-functions): Likewise.
18792 (finline-functions-called-once): Likewise.
18794 2012-02-01 Tristan Gingold <gingold@adacore.com>
18796 * c-typeck.c (composite_type): Keep mode for pointers.
18798 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
18800 * function.h (regno_reg_rtx): Adjust comment.
18801 * reginfo.c (init_reg_modes_target): Only use the previous mode
18802 if it fits within one register. Remove MIPS comment.
18804 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18807 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
18809 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18811 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
18812 to srak instruction.
18814 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
18816 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
18818 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18823 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
18825 2012-01-31 Richard Guenther <rguenther@suse.de>
18827 PR tree-optimization/51528
18828 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
18831 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18836 * ree.c (add_removable_extension): Change def_map argument
18837 to unsigned *, store in def_map 1 + offset into *insn_list vector
18838 instead of pointers into the vector.
18839 (find_removable_extensions): Adjust caller.
18841 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
18843 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
18844 Transform all "* quoted-c-code" to { c-code }.
18845 Remove redundant test for "optimize" in combine patterns.
18846 Move (include "avr-dimode.md") to end of file.
18848 2012-01-30 Bin Cheng <bin.cheng@arm.com>
18851 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18852 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
18854 2012-01-30 Richard Guenther <rguenther@suse.de>
18856 PR tree-optimization/52028
18857 * tree-loop-distribution.c (ldist_gen): Properly update
18860 2012-01-30 Jakub Jelinek <jakub@redhat.com>
18863 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
18864 set_cur_line_info_table if not emitting debug info.
18866 PR tree-optimization/52046
18867 * tree-vect-patterns.c (check_bool_pattern): Give up if
18868 a comparison could throw.
18871 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
18873 2012-01-30 Richard Guenther <rguenther@suse.de>
18875 PR tree-optimization/52045
18876 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
18877 SSA form if cfgcleanup did anything.
18879 2012-01-30 Richard Guenther <rguenther@suse.de>
18881 PR tree-optimization/52045
18882 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
18883 before computing final todo.
18885 2012-01-30 Richard Guenther <rguenther@suse.de>
18887 PR tree-optimization/51528
18888 * tree-sra.c (sra_modify_assign): Re-factor in preparation
18891 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
18893 * df-problems.c (df_kill_notes): Check that the use refers
18894 to the note under examination.
18896 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
18899 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
18900 parameter and use short-lived pseudos.
18901 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
18902 (sparc_expand_vector_init): Const-ify local variables and adjust
18903 calls to above functions.
18905 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
18907 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
18909 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
18911 * doc/invoke.texi: Make usage of "compile time" and
18912 "run time"/"runtime" consistent throughout the file.
18914 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
18916 * config/alpha/alpha.c (alpha_option_override): Default to
18917 full IEEE compliance mode for Go language.
18919 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
18921 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
18922 (LINK_SSP_SPEC): Define.
18924 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18927 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
18930 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
18932 * doc/invoke.texi: Correct hyphenation of "floating point",
18933 "double precision", and related terminology throughout the file.
18935 2012-01-28 Jakub Jelinek <jakub@redhat.com>
18938 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
18939 arm_general_register_operand predicate for operand 2 instead of
18942 2012-01-27 Ian Lance Taylor <iant@google.com>
18945 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
18946 * builtins.c (expand_builtin_init_trampoline): Add onstack
18947 parameter. Change caller.
18948 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
18949 * tree.c (build_common_builtin_nodes): Declare
18950 __builtin_init_heap_trampoline.
18952 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
18954 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
18955 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
18956 * config/avr/avr.c: Ditto.
18957 (avr_regnames): Remove because unused.
18958 * config/avr/avr.md (*cpse.ne): New peephole.
18959 (*cpse.eq): New peephole from former cpse peepholes.
18961 2012-01-27 Michael Eager <eager@eagercon.com>
18963 * config/microblaze.c (microblaze_emit_compare): Correct
18964 test after pcmp instruction.
18966 2012-01-27 Richard Guenther <rguenther@suse.de>
18968 PR tree-optimization/52020
18969 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
18971 2012-01-27 Richard Guenther <rguenther@suse.de>
18973 * ipa-pure-const.c (check_stmt): Clobbers do not make a
18974 function non-const/pure.
18976 2012-01-27 Richard Guenther <rguenther@suse.de>
18978 PR tree-optimization/50444
18979 * tree-sra.c (build_ref_for_offset): Properly adjust the
18980 MEM_REF type for unaligned accesses.
18982 2012-01-27 Richard Guenther <rguenther@suse.de>
18984 PR tree-optimization/50444
18985 * expr.c (mem_ref_refers_to_non_mem_p): New function.
18986 (expand_assignment): Use it. Properly handle misaligned
18987 bases when expanding stores to component references.
18988 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
18989 refactor that case.
18991 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
18993 PR middle-end/51389
18994 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
18995 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
18996 * tree-data-ref.c (find_data_references_in_loop): Make static.
18997 (compute_all_dependences): Change return type to bool. Bail out
18998 for too many datarefs in a loop. Move the hunk resetting the data
18999 dependences vector from ...
19000 (compute_data_dependences_for_loop): ... here. Account for
19001 compute_all_dependences returning false.
19002 (compute_data_dependences_for_bb): Likewise.
19003 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
19004 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
19006 2012-01-27 Richard Guenther <rguenther@suse.de>
19008 PR middle-end/51959
19009 * expr.c (store_field): Use the alias-set of the scratch memory
19012 2012-01-27 Tom de Vries <tom@codesourcery.com>
19014 PR tree-optimization/51990
19015 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
19017 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
19019 2012-01-27 Jakub Jelinek <jakub@redhat.com>
19022 * var-tracking.c (reverse_op): Don't add any reverse operation
19023 if V already has any constant locations.
19025 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
19027 * doc/invoke.texi: Correct usage of "command line" (noun)
19028 vs "command-line" (adjective) throughout.
19030 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
19032 * doc/invoke.texi (Language Independent Options): Move
19033 -Wcoverage-mismatch blurb from here....
19034 (Warning Options): ...to here.
19036 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
19038 * config/rs6000/rs6000.c (rs6000_option_override_internal):
19039 Set rs6000_always_hint to false for 476.
19041 2012-01-27 Matthias Klose <doko@ubuntu.com>
19043 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
19045 * incpath.c (add_standard_paths): Likewise.
19047 2012-01-27 Richard Henderson <rth@redhat.com>
19049 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
19050 * config/m68k/sync.md (atomic_test_and_set): Rename from
19051 sync_test_and_setqi and adjust the operands.
19052 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
19053 and unconditionally enable.
19055 2012-01-27 Richard Henderson <rth@redhat.com>
19057 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
19058 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
19059 (ldstub): Rename from ldstubqi.
19060 (ldstub<I24MODE>): Remove.
19062 2012-01-27 Richard Henderson <rth@redhat.com>
19064 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
19065 * c-cppbuiltin.c (cpp_atomic_builtins): Define
19066 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
19067 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
19068 * doc/tm.texi: Rebuild.
19070 2012-01-27 Richard Henderson <rth@redhat.com>
19072 * optabs.c (gen_atomic_test_and_set): Remove default.
19073 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
19075 2012-01-26 Jakub Jelinek <jakub@redhat.com>
19077 PR rtl-optimization/51978
19078 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
19079 (combine_reaching_defs): Likewise.
19080 (struct re_info): Remove.
19081 (add_removable_extension): Remove x and data arguments,
19082 add insn, insn_list and def_map. Use the arguments directly
19083 instead of using struct re_info.
19084 (find_removable_extensions): Don't call add_removable_extension
19085 through note_stores, instead just call it with single_set
19086 result if non-NULL.
19087 (find_and_remove_re): Pass curr_cand->expr instead of
19088 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
19090 2012-01-26 Michael Matz <matz@suse.de>
19092 PR tree-optimization/46590
19093 * cfgexpand.c: Revert last change (r183305).
19094 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
19096 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
19097 checking for emptiness.
19099 2012-01-26 Jakub Jelinek <jakub@redhat.com>
19101 PR middle-end/51895
19102 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
19103 non-addressable non-BLKmode base correctly.
19105 2012-01-26 Michael Matz <matz@suse.de>
19107 PR tree-optimization/48794
19108 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
19109 regions referenced from RESX/EH_DISPATCH.
19111 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19113 * config/s390/s390.h: Make BRANCH_COST an option.
19114 * config/s390/s390.opt: New option -mbranch-cost.
19116 2012-01-26 Richard Henderson <rth@redhat.com>
19118 Revert 2012-01-24 change:
19119 * trans-mem.c (requires_barrier): Do not instrument thread local
19120 variables and emit save/restore for them.
19122 2012-01-25 Jakub Jelinek <jakub@redhat.com>
19124 PR middle-end/51986
19125 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
19128 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
19130 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
19133 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
19136 Rename __pgm to __flash.
19137 Rename __pgm1 to __flash1.
19138 Rename __pgm2 to __flash2.
19139 Rename __pgm3 to __flash3.
19140 Rename __pgm4 to __flash4.
19141 Rename __pgm5 to __flash5.
19142 Rename __pgmx to __memx.
19143 * doc/extend.texi (AVR Named Address Spaces)
19144 Rename address space names as indicated above.
19145 * config/avr/avr.c (avr_addrspace): Ditto.
19147 * config/avr/avr-protos.h
19148 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
19149 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
19150 * config/avr/predicates.md: Ditto.
19151 * config/avr/avr.c Ditto, and
19152 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
19153 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
19155 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
19156 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
19157 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
19158 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
19159 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
19160 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
19161 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
19162 * config/avr/avr.c: Ditto.
19163 * config/avr/avr.md: Ditto.
19165 2012-01-25 Jason Merrill <jason@redhat.com>
19168 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
19170 2012-01-25 Jakub Jelinek <jakub@redhat.com>
19172 PR tree-optimization/51987
19173 * tree-data-ref.c (get_references_in_stmt): Handle references in
19174 non-volatile GIMPLE_ASM.
19176 2012-01-25 Richard Guenther <rguenther@suse.de>
19178 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
19179 bases are dereferenced.
19181 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
19183 PR rtl-optimization/48374
19184 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
19186 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
19188 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
19189 compute_data_dependences_for_loop returns false.
19190 * tree-parloops.c (loop_parallel_p): Likewise.
19192 2012-01-25 Richard Guenther <rguenther@suse.de>
19194 * tree.h (get_pointer_alignment_1): Declare.
19195 * builtins.c (get_pointer_alignment_1): New function.
19196 (get_pointer_alignment): Use it.
19198 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19200 PR rtl-optimization/48308
19201 * combine.c (enum undo_kind): Add UNDO_LINKS.
19202 (struct undo): Add member l to other_contents and where.
19203 (do_SUBST_LINK): New.
19205 (try_combine): Handle LOG_LINKS for the dummy i1 case.
19206 (undo_all): Handle UNDO_LINKS.
19208 2012-01-25 Richard Henderson <rth@redhat.com>
19210 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
19213 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19215 * optabs.c (gen_atomic_test_and_set): Use each argument.
19217 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19219 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
19220 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
19221 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
19222 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
19223 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
19224 TARGET_PAIRED_SINGLE_FLOAT.
19226 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19228 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
19229 (in_struct, return_val): Remove MEM documentation.
19230 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
19231 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
19232 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
19234 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19235 * cfgexpand.c (add_alias_set_conflicts): Likewise.
19236 * expr.c (store_field): Likewise.
19237 * function.c (assign_stack_temp_for_type): Likewise.
19238 * ifcvt.c (noce_try_cmove_arith): Likewise.
19239 * reload1.c (reload): Likewise.
19240 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
19241 (alpha_set_memflags): Likewise.
19242 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
19244 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19246 * rtl.h (true_dependence, canon_true_dependence): Remove varies
19248 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
19249 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
19250 (true_dependence_1, true_dependence, canon_true_dependence): Remove
19252 * cselib.c (cselib_rtx_varies_p): Delete.
19253 (cselib_invalidate_mem): Update call to canon_true_dependence.
19254 * dse.c (record_store, check_mem_read_rtx): Likewise.
19255 (scan_reads_nospill): Likewise.
19256 * cse.c (check_dependence): Likewise.
19257 (cse_rtx_varies_p): Delete.
19258 * expr.c (safe_from_p): Update call to true_dependence.
19259 * ira.c (validate_equiv_mem_from_store): Likewise.
19260 (memref_referenced_p): Likewise.
19261 * postreload-gcse.c (find_mem_conflicts): Likewise.
19262 * sched-deps.c (sched_analyze_2): Likewise.
19263 * store-motion.c (load_kills_store): Likewise.
19264 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
19265 * gcse.c (mems_conflict_for_gcse_p): Likewise.
19266 (compute_transp): Update call to canon_true_dependence.
19268 2012-01-25 Richard Henderson <rth@redhat.com>
19270 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
19271 (maybe_emit_atomic_test_and_set): New.
19272 (expand_sync_lock_test_and_set): Use it.
19273 (expand_atomic_test_and_set): Likewise.
19274 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
19275 the implementation; clarify implementation defined details.
19276 * doc/md.texi (atomic_test_and_set): Document.
19278 2012-01-25 Richard Henderson <rth@redhat.com>
19280 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
19282 2012-01-25 Richard Henderson <rth@redhat.com>
19285 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
19286 to effect no-op split.
19288 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
19291 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
19292 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
19293 (BT_FN_VOID_PTR_INT_SIZE): New.
19294 (BT_FN_UINT_UINT_VAR): Remove.
19295 (BT_FN_UINT32_UINT32_VAR): New.
19296 (BT_FN_DOUBLE_VPTR): Remove.
19297 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
19299 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
19300 (_ITM_changeTransactionMode): Same.
19301 (_ITM_memmoveRtWt): Change return type to void.
19302 (_ITM_memcpyRtWt): Same.
19303 (_ITM_memsetW): Same.
19304 (_ITM_RaRD): Change types to double.
19309 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
19311 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
19312 Patrick Marlier <patrick.marlier@gmail.com>
19314 * trans-mem.c (requires_barrier): Do not instrument thread local
19315 variables and emit save/restore for them.
19317 2012-01-24 Jason Merrill <jason@redhat.com>
19320 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
19321 output static aliases.
19323 2012-01-24 Jakub Jelinek <jakub@redhat.com>
19326 * common.opt (-pie, -shared, pie, shared): Change from Common to
19328 * gcc.c (display_help): Display help for -pie and -shared.
19330 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
19333 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
19334 Remove note on size/offset limitation.
19335 (AVR Variable Attributes): Add example how to read data located
19336 with progmem. Refer to named address spaces.
19337 * doc/invoke.texi (AVR Options): Fix typo.
19339 2012-01-24 Richard Guenther <rguenther@suse.de>
19341 Forward-port to trunk
19342 2010-09-21 Jakub Jelinek <jakub@redhat.com>
19344 PR middle-end/45678
19345 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
19346 op0 isn't sufficiently aligned and there is movmisalignM
19347 insn for mode, use it to load op0 into a temporary register.
19349 2012-01-24 Jakub Jelinek <jakub@redhat.com>
19352 * target.def (const_not_ok_for_debug_p): New hook.
19353 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
19355 * doc/tm.texi: Regenerated.
19356 * dwarf2out.c (const_ok_for_output_1): If
19357 targetm.const_not_ok_for_debug_p returns true, fail.
19358 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
19360 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
19362 2012-01-23 Kai Tietz <ktietz@redhat.com>
19365 * config/i386/predicates.md (symbolic_operand): Allow
19366 UNSPEC_PCREL as PIC expression for lea.
19367 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
19368 * config/i386/i386.c (ix86_delegitimize_address): Handle
19369 UNSPEC_PCREL for none-MEM, too.
19371 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
19373 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
19374 (ipa_tm_create_version_alias): Same.
19376 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
19379 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
19380 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
19382 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
19383 Patrick Marlier <patrick.marlier@gmail.com>
19384 Iain Sandoe <developer@sandoe-acoustics.co.uk>
19387 * lto-wrapper.c (run_gcc): Pass the LTO section name to
19388 simple_object_start_read.
19390 2012-01-23 Richard Guenther <rguenther@suse.de>
19393 PR tree-optimization/51895
19394 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
19395 parameter decomposition into BLKmode components.
19397 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
19399 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
19400 fake variables for restrict-qualified pointers whose pointed-to type
19401 contains a placeholder.
19403 2012-01-23 Richard Guenther <rguenther@suse.de>
19405 PR tree-optimization/51949
19406 * ipa-split.c (execute_split_functions): Do not split malloc functions.
19408 2012-01-23 Jakub Jelinek <jakub@redhat.com>
19410 PR rtl-optimization/51933
19411 * ree.c (transform_ifelse): Return true right away if dstreg is
19412 already wider or equal to cand->mode.
19413 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
19414 (make_defs_and_copies_lists): Remove defs_list and copies_list
19415 arguments, add state argument, just truncate state->work_list
19416 instead of always allocating and freeing the vector. Assert that
19417 get_defs succeeds instead of returning 2. Changed return type to bool.
19418 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
19419 have ext_src_mode, see if it has been modified already with the
19420 right kind of extension and has been extended before from the
19421 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
19422 just return true. Remember the original mode in state->modified array.
19423 (combine_reaching_defs): Add state argument. Don't allocate and
19424 free here def_list, copied_list and vec vectors, instead just
19425 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
19426 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
19427 Add state variable, clear vectors in it, initialize state.modified
19428 if needed. Free all the vectors at the end and state.modified too.
19429 Don't skip a candidate if the extension expression has been modified.
19431 2012-01-22 Douglas B Rupp <rupp@gnat.com>
19434 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
19435 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
19436 (extra_options) interix.opt -> i386/interix.opt"
19437 (extra_objs):Add winnt-stubs.o
19438 * configure.ac: Add interix to target_os .comm on PE check.
19439 * configure: Regenerate.
19440 * config/interix3.h: Delete and move bits to..
19441 * config/interix.h: Delete and move bits to..
19442 * config/i386/i386-interix3.h: Delete and move bits to..
19443 * config/i386/i386-interix.h: ..here.
19444 (TARGET_CPU_DEFAULT): Remove redefinition.
19445 (TARGET_ASM_CONSTRUCTOR): Undefine.
19446 (SUBTARGET_SWITCHES): Define for ms-bitfields.
19447 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
19448 (PTRDIFF_TYPE): Define.
19449 (LONG_DOUBLE_TYPE_SIZE): Define.
19450 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19451 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19452 (TARGET_SECTION_TYPE_FLAGS): Define.
19453 (ASM_DECLARE_FUNCTION_NAME): Define.
19454 (ASM_OUTPUT_EXTERNAL): Define.
19455 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
19456 (ASM_OUTPUT_ALIGNED_BSS): Define.
19457 (PCC_BITFIELD_TYPE_MATTERS): Define.
19458 (USE_CONST_SECTION): Define.
19459 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
19460 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19461 (SUPPORTS_ONE_ONLY): Remove.
19462 (I386_PE_STRIP_ENCODING): Define.
19463 * config/interix.opt: Delete and move bits to..
19464 * config/i386/interix.opt: ..here. New.
19465 (mpe-aligned-commons): Add.
19466 * config/i386/t-interix: Add copyright header.
19467 (winnt-stubs.o): Add rule.
19469 2012-01-22 Jason Merrill <jason@redhat.com>
19472 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
19473 for extra name aliases.
19475 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
19477 PR rtl-optimization/51924
19478 * ree.c (combine_set_extension): Improve debugging message.
19479 (combine_reaching_defs): Likewise.
19480 (get_defs): Rename confusingly named variable.
19481 (find_and_remove_re): Skip a candidate if the extension expression has
19484 2012-01-21 Robert Millan <rmh@gnu.org>
19485 Gerald Pfeifer <gerald@pfeifer.com>
19487 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
19488 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
19490 2012-01-20 Jakub Jelinek <jakub@redhat.com>
19492 PR tree-optimization/51914
19493 * tree-vect-stmts.c (vectorizable_conversion): For
19494 cvt_type && modifier == WIDEN, put temporary with cvt_type
19495 at the beginning of vec_dsts and set vec_dest to temporary
19498 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
19500 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
19502 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
19504 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
19505 * config/rs6000/rs6000.c: Likewise.
19507 2012-01-20 Jakub Jelinek <jakub@redhat.com>
19510 * config/arm/arm.c (arm_count_output_move_double_insns): Call
19511 output_move_double on a copy of operands array.
19513 2012-01-20 Cary Coutant <ccoutant@google.com>
19514 Dodji Seketeli <dodji@redhat.com>
19517 * dwarf2out.c (copy_declaration_context): Return ref to parent
19518 of declaration DIE, if necessary.
19519 (remove_child_or_replace_with_skeleton): Add new parameter; update
19520 caller. Place skeleton DIE under parent DIE of original declaration.
19521 Move call to copy_declaration_context to here ...
19522 (break_out_comdat_types): ... from here.
19524 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19526 PR rtl-optimization/51856
19527 * reload.c (find_reloads_subreg_address): Set the address_reloaded
19530 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19533 * config/arm/arm.c (arm_print_operand): Correct output of alignment
19534 hints for neon loads and stores.
19536 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
19540 * doc/extend.texi (Named Address Spaces): Split into subsections.
19541 (AVR Named Address Spaces): New subsection.
19542 (M32C Named Address Spaces): New subsection.
19543 (RL78 Named Address Spaces): New subsection.
19544 (SPU Named Address Spaces): New subsection.
19545 (Variable Attributes): New anchor "AVR Variable Attributes".
19546 (AVR Variable Attributes): Rewrite and avoid wording
19547 "address space" in this context.
19548 * doc/invoke.texi (AVR Options): Rewrite and add documentation
19549 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
19550 (AVR Built-in Macros): New subsubsection therein.
19551 * doc/md.texi (AVR constraints): Remove "C04", "R".
19553 2012-01-20 Richard Guenther <rguenther@suse.de>
19555 PR tree-optimization/51903
19556 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
19557 when removing stmts.
19559 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19562 * config/arm/arm.c (arm_load_pic_register): Use
19563 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
19564 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
19565 (arm_pic_static_addr): Likewise.
19566 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
19567 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
19568 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
19569 (pic_load_addr_unified): New.
19571 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
19574 * function.c (instantiate_virtual_regs_in_insn): Use
19575 delete_insn_and_edges when removing a wrong asm insn.
19577 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
19579 PR rtl-optimization/40761
19580 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
19581 Add new member loop_num.
19582 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
19583 (ira_build): Remove the parameter.
19585 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
19586 (ira.c): Do not build CFG loops for one region allocation. Remove
19587 argument from ira_build call.
19589 * ira-build.c (init_loop_tree_node): New function.
19590 (create_loop_tree_nodes): Use it. Separate the case when CFG
19591 loops are not built.
19592 (more_one_region_p): Check current_loops.
19593 (finish_loop_tree_nodes): Separate the case when CFG loops are not
19595 (add_loop_to_tree): Process loop equal to NULL too.
19596 (form_loop_tree): Separate the case when CFG loops are not built.
19597 Use explicitly number for the root.
19598 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
19600 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
19601 instead of loop->num.
19602 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
19603 (mark_all_loops_for_removal): Ditto.
19604 (remove_unnecessary_regions): Separate the case when CFG loops
19606 (ira_build): Remove the parameter. Use explicit number of regions
19607 when CFG loops are not built.
19609 * ira-color.c (print_loop_title): Separate the case for the root node.
19610 Use loop_num instead of loop->num.
19611 (move_spill_restore): Use loop_num instead of loop->num.
19613 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
19614 (change_loop): Ditto.
19615 (change_loop): Use loop_num instead of loop->num.
19617 * ira-lives.c (process_bb_node_lives): Ditto.
19619 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
19621 * ira-conflicts.c (print_allocno_conflicts): Ditto.
19623 2012-01-19 Jakub Jelinek <jakub@redhat.com>
19625 PR libmudflap/40778
19626 * tree-mudflap.c (mf_artificial): New function.
19627 (execute_mudflap_function_ops, execute_mudflap_function_decls,
19628 mx_register_decls, mudflap_enqueue_decl): Use it.
19631 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
19632 numbers in the insn pattern.
19634 2012-01-19 Michael Matz <matz@suse.de>
19636 PR tree-optimization/46590
19637 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
19638 use it in remembering which conflicts we already created.
19639 (add_scope_conflicts): Adjust call to above, (de)allocate helper
19642 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
19645 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
19646 (merge_and_complain): Same.
19648 2012-01-19 Jakub Jelinek <jakub@redhat.com>
19651 * config/initfini-array.h: Guard content of the header
19652 with #ifdef HAVE_INITFINI_ARRAY.
19653 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
19654 Add initfini-array.h to tm_file here.
19655 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
19656 * config.gcc: Don't add initfini-array.h to tm_file here.
19657 * configure: Regenerated.
19659 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
19661 PR rtl-optimization/51505
19662 * df-problems.c (df_kill_notes): New parameter live. Update comment.
19663 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
19664 (df_note_bb_compute): Update the call to df_kill_notes.
19666 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
19668 * trans-mem.c (requires_barrier): Remove call to is_global_var.
19670 2012-01-18 Richard Guenther <rguenther@suse.de>
19672 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
19673 of conversions to void *.
19675 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19676 Richard Sandiford <rdsandiford@googlemail.com>
19678 PR middle-end/50325
19679 PR middle-end/51192
19680 * optabs.h (simplify_expand_binop): Declare.
19681 * optabs.c (simplify_expand_binop): Make global.
19682 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
19683 endian targets if the source cannot be exactly covered by word
19686 2012-01-17 Jakub Jelinek <jakub@redhat.com>
19689 * hard-reg-set.h (struct hard_reg_set_container): New type.
19690 * target.h (struct hard_reg_set_container): Forward declare.
19691 * target.def (set_up_by_prologue): New target hook.
19692 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
19693 * doc/tm.texi: Regenerated.
19694 * function.c (thread_prologue_and_epilogue_insns): Change
19695 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
19696 Call targetm.set_up_by_prologue on it.
19697 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
19698 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
19700 2012-01-17 Nick Clifton <nickc@redhat.com>
19702 * config/rx/rx.c (rx_can_use_simple_return): New function.
19703 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
19704 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
19706 2012-01-17 Richard Guenther <rguenther@suse.de>
19708 PR middle-end/51782
19709 * expr.c (expand_assignment): Take address-space information
19710 from the address operand of MEM_REF and TARGET_MEM_REF.
19711 (expand_expr_real_1): Likewise.
19713 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19715 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
19716 reload dump is requested.
19718 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
19721 * trans-mem.c (requires_barrier): Call may_be_aliased.
19723 2012-01-17 Jakub Jelinek <jakub@redhat.com>
19725 PR tree-optimization/51877
19726 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
19727 call arguments and fndecls compare equal, instead return false if they
19728 don't. Return true only if lhs1 and lhs2 are either both NULL, or
19729 both SSA_NAMEs that are valueized the same, or they satisfy
19732 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19734 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
19736 * configure: Regenerate.
19738 2012-01-16 Jan Hubicka <jh@suse.cz>
19742 * convert.c (convert_to_integer): Use fold_convert for
19743 converting an INTEGER_CST to integer type.
19745 2012-01-16 Jason Merrill <jason@redhat.com>
19748 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
19750 2012-01-16 Jakub Jelinek <jakub@redhat.com>
19753 * config/s390/s390.c (s390_chunkify_start): Don't skip
19754 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
19755 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
19756 If insn is followed by NOTE_INSN_VAR_LOCATION or
19757 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
19758 Don't use location of note insns.
19760 PR tree-optimization/51865
19761 * tree-inline.c (tree_function_versioning): Call remap_decl
19762 on DECL_RESULT whenever it has VOID_TYPE_P type.
19764 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
19766 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
19767 for calls to locally-binding MIPS16 functions if only the return
19768 type uses float regs.
19770 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
19771 Richard Sandiford <rdsandiford@googlemail.com>
19773 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
19774 (SYMBOL_32_HIGH): Likewise.
19775 (mips_output_tls_reloc_directive): Declare.
19776 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
19777 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
19778 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
19779 (mips_lo_relocs, mips_hi_relocs): Make extern.
19780 (mips16_stub_function): Move up file.
19781 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
19782 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
19783 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
19784 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
19785 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
19786 (mips_get_tp): Add MIPS16 support.
19787 (mips_legitimize_tls_address): Remove MIPS16 sorry().
19788 Generalize DTPREL and TPREL handling.
19789 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
19790 Add MIPS16 TLS support.
19791 (mips_output_tls_reloc_directive): New function.
19792 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
19793 * config/mips/predicates.md (symbolic_operand_with_high)
19794 (tls_reloc_operand): New predicates.
19795 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
19796 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
19797 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
19798 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
19799 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
19800 (*tls_get_tp_mips16_call_<mode>): Likewise.
19802 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
19804 PR rtl-optimization/51821
19805 * recog.c (peep2_find_free_register): Determine clobbered registers
19808 2012-01-14 Denis Chertykov <chertykov@gmail.com>
19811 * config/avr/avr-protos.h: Revert change of 2012-01-09.
19812 * config/avr/avr.c: Likewise.
19813 * config/avr/avr.h: Likewise.
19815 2012-01-13 Ian Lance Taylor <iant@google.com>
19818 * tree.h (TYPE_QUALS): Add cast to int.
19819 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
19821 2012-01-13 Ian Lance Taylor <iant@google.com>
19823 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
19824 comparing param_index to VEC_length result.
19826 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
19828 * c-decl.c: Do not include tree-mudflap.h
19829 * tree-optimize.c: Likewise.
19830 * Makefile.in: Update dependencies.
19832 2012-01-13 Richard Guenther <rguenther@suse.de>
19835 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
19836 variable-sized result always use RSO.
19838 2012-01-12 DJ Delorie <dj@redhat.com>
19840 * cfgexpand.c (convert_debug_memory_address): Allow any valid
19841 pointer type, not just the default pointer type.
19843 2012-01-09 Richard Henderson <rth@redhat.com>
19844 Denis Chertykov <chertykov@gmail.com>
19847 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
19848 * config/avr/avr.c (avr_can_eliminate): Simplify.
19849 (avr_initial_elimination_offset): Likewise.
19850 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
19851 (expand_epilogue): Likewise.
19852 (avr_legitimize_address): Gut.
19853 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
19854 (avr_hard_regno_nregs): New.
19855 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
19856 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
19857 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
19858 add soft frame pointer.
19859 (CALL_USED_REGISTERS): Likewise.
19860 (REG_CLASS_CONTENTS): Likewise.
19861 (REGISTER_NAMES): Likewise.
19862 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
19863 (HARD_FRAME_POINTER_REGNUM): New.
19864 (FRAME_POINTER_REGNUM): Use soft frame pointer.
19865 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
19866 remove the HARD_FRAME_POINTER self-elimination.
19868 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
19871 * config/avr/avr.c (avr_encode_section_info): Test for absence of
19872 DECL_EXTERNAL when checking for initializers of progmem variables.
19874 2012-01-12 Ira Rosen <irar@il.ibm.com>
19876 PR tree-optimization/51799
19877 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
19878 that the last operation is a type demotion.
19880 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
19882 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
19883 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
19885 2012-01-11 Jakub Jelinek <jakub@redhat.com>
19888 * combine.c (distribute_notes): If i3 is a noreturn call,
19889 allow old_size to be equal to args_size and make sure the
19890 noreturn call gets REG_ARGS_SIZE note.
19891 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
19892 on noreturn calls even when the delta is 0.
19894 2012-01-11 Nathan Sidwell <nathan@acm.org>
19896 * gcov.c (STRING_SIZE): Remove.
19897 (generate_results): Erase annotations for source files with no
19898 coverage information.
19900 (output_lines): Use it.
19902 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
19904 * gimple.h (gimplify_body): Remove first argument.
19905 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
19906 pointer set here, instead just pass DATA to walk_tree.
19907 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
19908 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
19909 (unvisit_body): Likewise, but with unmark_visited.
19910 (gimplify_body): Remove BODY_P argument and adjust.
19911 (gimplify_function_tree): Adjust call to gimplify_body.
19912 * omp-low.c (finalize_task_copyfn): Likewise.
19914 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
19916 * tree.h (build_function_decl_skip_args): Add boolean parameter.
19917 (build_function_type_skip_args): Delete.
19918 * tree.c (build_function_type_skip_args): Make static and add
19919 SKIP_RETURN parameter. Fix thinko in the handling of variants.
19920 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
19921 pass it to build_function_type_skip_args.
19922 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
19923 (tree_function_versioning): Likewise.
19924 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
19925 build_function_decl_skip_args.
19926 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
19927 and pass it to build_function_decl_skip_args/tree_function_versioning.
19928 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
19929 * ipa-inline-transform.c (save_inline_function_body): Likewise.
19930 * trans-mem.c (ipa_tm_create_version): Likewise.
19931 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
19932 * tree-inline.c (declare_return_variable): Remove always-true test.
19933 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
19934 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
19935 * ipa-split.c (split_function): Skip the return value for the split
19936 part if it doesn't return.
19938 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19940 PR tree-optimization/49642
19941 * ipa-split.c (forbidden_dominators): New variable.
19942 (check_forbidden_calls): New function.
19943 (dominated_by_forbidden): Likewise.
19944 (consider_split): Check for forbidden dominators.
19945 (execute_split_functions): Initialize and free forbidden
19946 dominators info; call check_forbidden_calls.
19948 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19950 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
19952 2012-01-11 Nick Clifton <nickc@redhat.com>
19954 * config/rx/rx.md (return): Define pattern.
19956 2012-01-11 Richard Guenther <rguenther@suse.de>
19958 * doc/extend.texi (malloc attribute): Adjust according to
19961 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
19962 Patrick Marlier <patrick.marlier@gmail.com>
19964 PR middle-end/51516
19965 * trans-mem.c (get_cg_data): Traverse aliases if requested.
19966 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
19967 (ipa_tm_note_irrevocable): Same.
19968 (ipa_tm_scan_irr_block): Same.
19969 (ipa_tm_decrement_clone_counts): Same.
19970 (ipa_tm_scan_irr_function): Same.
19971 (ipa_tm_create_version_alias): Same.
19972 (ipa_tm_create_version): Same.
19973 (ipa_tm_transform_calls_redirect): Same.
19974 (ipa_tm_transform_calls): Same.
19975 (ipa_tm_transform_transaction): Same.
19976 (ipa_tm_execute): Same.
19978 2012-01-10 Richard Guenther <rguenther@suse.de>
19980 PR middle-end/51806
19981 * opts.c (common_handle_option): Handle -Werror.
19983 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
19985 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
19988 2012-01-10 Jason Merrill <jason@redhat.com>
19990 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
19993 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19995 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
19996 supports R_386_TLS_GD_PLT reloc.
19997 (gcc_cv_as_ix86_tlsldmplt): Check if linker
19998 supports R_386_TLS_LDM_PLT reloc.
19999 * configure: Regenerate.
20000 * config.in: Regenerate.
20002 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
20005 Extend __pgmx semantics to linearize memory.
20006 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
20007 determine if code comes inline or from libgcc.
20008 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
20009 (movmem_qi, movmem_qi): Set constraint #2 to "n".
20010 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
20011 (movmemx_qi, movmemx_hi): New insns.
20012 (xload_<mode>_libgcc): Rewrite to new insn condition.
20013 (xload_<mode>): Remove insns.
20014 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
20015 cases that don't satisfy avr_xload_libgcc_p().
20016 (avr_addr_space_convert): Allow converting in any direction.
20017 (avr_addr_space_subset_p): Return always true.
20018 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
20019 (avr_emit_movmemhi): Ditto.
20020 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
20021 (avr_out_movmem): Ditto.
20022 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
20023 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
20024 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
20025 (avr_encode_section_info): Encode 'progmem' in symbol flags.
20026 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
20028 2012-01-10 Richard Guenther <rguenther@suse.de>
20030 PR tree-optimization/50913
20031 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
20032 Require data-refs to be representable by Graphite with respect
20035 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
20037 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
20038 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
20040 2012-01-10 Tom de Vries <tom@codesourcery.com>
20042 PR rtl-optimization/51271
20043 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
20044 handling annulled branch.
20046 2012-01-10 Richard Henderson <rth@redhat.com>
20048 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
20049 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
20050 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
20051 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
20052 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
20053 arm_expand_vec_perm_const): New.
20054 * config/arm/arm-protos.h: Update.
20055 * config/arm/neon.md (UNSPEC_VCONCAT): New.
20056 (*neon_vswp<VDQX>): New.
20057 (neon_vcombine<VDX>): Use neon_split_vcombine.
20058 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
20059 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
20060 (vec_perm<VE>): New.
20062 2012-01-10 Richard Henderson <rth@redhat.com>
20064 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
20065 use it if reload_completed.
20066 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
20067 arm_output_asm_insn, arm_process_output_memory_barrier,
20068 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
20069 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
20070 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
20071 arm_process_output_sync_insn, arm_output_sync_insn,
20072 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
20073 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
20074 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
20075 (emit_unlikely_jump): New.
20076 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
20077 (arm_split_atomic_op): New.
20078 * config/arm/arm-protos.h: Update.
20079 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
20080 (struct arm_sync_generator): Remove.
20081 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
20082 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
20083 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
20084 (VUNSPEC_LL, VUNSPEC_SC): New.
20085 (sync_result, sync_memory, sync_required_value, sync_new_value,
20086 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
20087 (attr length): Don't use arm_sync_loop_insns.
20088 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
20089 (movsfcc, movdfcc): Likewise.
20090 * config/arm/constraints.md (Ua): New.
20091 * config/arm/prediates.md (mem_noofs_operand): New.
20092 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
20093 (sync_clobber, sync_t2_reqd): Remove.
20094 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
20095 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
20096 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
20097 (arm_sync_compare_and_swap<SIDI>): Remove.
20098 (arm_sync_compare_and_swap<NARROW>): Remove.
20099 (arm_sync_lock_test_and_set<SIDI>): Remove.
20100 (arm_sync_lock_test_and_set<NARROW>): Remove.
20101 (arm_sync_new_<syncop><SIDI>): Remove.
20102 (arm_sync_new_<syncop><NARROW>): Remove.
20103 (arm_sync_new_nand<SIDI>): Remove.
20104 (arm_sync_new_nand<NARROW>): Remove.
20105 (arm_sync_old_<syncop><SIDI>): Remove.
20106 (arm_sync_old_<syncop><NARROW>): Remove.
20107 (arm_sync_old_nand<SIDI>): Remove.
20108 (arm_sync_old_nand<NARROW>): Remove.
20109 (*memory_barrier): Merge arm_output_memory_barrier.
20110 (atomic_compare_and_swap<QHSD>): New.
20111 (atomic_compare_and_swap<NARROW>_1): New.
20112 (atomic_compare_and_swap<SIDI>_1): New.
20113 (atomic_exchange<QHSD>): New.
20114 (cas_cmp_operand, cas_cmp_str): New.
20115 (atomic_op_operand, atomic_op_str): New.
20116 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
20117 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
20118 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
20119 (arm_load_exclusive<NARROW>): New.
20120 (arm_load_exclusivesi, arm_load_exclusivedi): New.
20121 (arm_store_exclusive<QHSD>): New.
20123 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20125 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
20126 reload patterns if -mvsx-scalar-memory.
20128 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
20129 generated, even -mno-vsx-scalar-double was used.
20130 (vsx_xscvdpsp_scalar): Likewise.
20131 (vsx_xscvspdp_scalar2): Likewise.
20133 2012-01-09 Tom de Vries <tom@codesourcery.com>
20134 Andrew Pinski <apinski@cavium.com>
20137 * reorg.c (fill_slots_from_thread): Don't speculate
20138 frame-related insns.
20140 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
20142 * sched-int.h (bb_note): Move to...
20143 * basic-block.h: ...here.
20144 * haifa-sched.c (bb_note): Move to...
20145 * cfgrtl.c: ...here.
20146 * function.c (next_block_for_reg): New function.
20147 (move_insn_for_shrink_wrap): Likewise.
20148 (prepare_shrink_wrap): Rewrite to use the above.
20150 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
20152 * gimple.c (is_gimple_non_addressable): Remove.
20153 * gimple.h: Remove is_gimple_non_addressable.
20154 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
20155 is_gimple_non_addressable.
20156 * trans-mem.c (expand_assign_tm): Same.
20158 2012-01-09 Richard Guenther <rguenther@suse.de>
20160 PR tree-optimization/51775
20161 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
20162 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
20164 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20166 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
20168 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
20170 2012-01-09 Richard Guenther <rguenther@suse.de>
20172 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
20174 2012-01-08 Jan Hubicka <jh@suse.cz>
20176 PR tree-optimize/51680
20177 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
20178 on when known_vals needs to be computed; cleanup.
20180 2012-01-08 Jan Hubicka <jh@suse.cz>
20182 PR tree-optimize/51694
20183 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
20185 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
20187 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
20188 for -std=c++98 and -std=c++11 too.
20190 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
20192 * cfgloop.c (cancel_loop): Add free() of bbs array.
20194 2012-01-07 Jan Hubicka <jh@suse.cz>
20196 PR tree-optimization/51600
20197 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
20198 that benefits small functions.
20200 2012-01-07 Jan Hubicka <jh@suse.cz>
20202 * ipa-inline.c (want_inline_small_function_p): Fix formating.
20204 2012-01-07 Jan Hubicka <jh@suse.cz>
20206 PR tree-optimization/51680
20207 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
20208 whose inlining reduce unit size.
20210 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
20213 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
20214 Add canonical node to containing_mem chain after the non-canonical
20215 one, even if there weren't any locs to propagate.
20216 (remove_useless_values): Keep only canonical values.
20217 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
20218 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
20219 canonicalize mem_chain elements that are not discarded.
20221 2012-01-06 Jakub Jelinek <jakub@redhat.com>
20224 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
20225 before emitting functions.
20227 PR gcov-profile/50127
20228 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
20229 clear_aux_for_blocks.
20231 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
20234 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
20236 2012-01-06 Arnaud Charlet <charlet@adacore.com>
20238 * c-decl.c (ext_block): Moved up.
20239 (collect_all_refs, for_each_global_decl): Take ext_block into account.
20241 2012-01-06 Han Shen <shenhan@google.com>
20243 Translate built-in include paths for sysroot.
20244 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
20245 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
20247 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
20248 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
20250 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
20251 control whether sysroot should be prepended to gxx include dir.
20253 * configure: Regenerate.
20255 2012-01-06 Torvald Riegel <triegel@redhat.com>
20257 PR rtl-optimization/51771
20258 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
20259 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
20261 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
20263 PR tree-optimization/51315
20264 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
20265 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
20267 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
20270 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
20271 for shrp pattern. Correctly handle and fixup shift variable.
20272 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
20274 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20277 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
20278 note when !ACCUMULATE_OUTGOING_ARGS.
20280 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
20282 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
20284 (extract_range_from_unary_expr_1): Avoid useless computations.
20286 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20288 PR rtl-optimization/51767
20289 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
20290 of jump_block and add an extra edge for degenerated asm gotos.
20292 PR middle-end/51768
20293 * stmt.c (check_unique_operand_names): Don't ICE during error
20294 reporting if i is from labels chain.
20296 PR middle-end/44777
20297 * profile.c (branch_prob): Split bbs that have exit edge
20298 and need a fake entry edge too.
20300 2012-01-05 Jan Hubicka <jh@suse.cz>
20302 PR middle-end/49710
20303 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
20306 2012-01-05 Richard Guenther <rguenther@suse.de>
20309 * tree-streamer-out.c (write_ts_optimization): New function.
20310 (streamer_write_tree_body): Call it.
20311 * tree-streamer-in.c (lto_input_ts_optimization): New function.
20312 (streamer_read_tree_body): Call it.
20313 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
20315 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20317 PR middle-end/51761
20318 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
20319 * gimplify.c (gimplify_cleanup_point_expr): Save and set
20320 in_cleanup_point_expr before gimplify_stmt call and restore it
20322 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
20323 in_cleanup_point_expr is false.
20325 2012-01-05 Richard Guenther <rguenther@suse.de>
20327 PR middle-end/51764
20328 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
20330 * toplev.c (process_options): Reject combining mudflap and LTO.
20331 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
20333 2012-01-05 Richard Guenther <rguenther@suse.de>
20335 PR tree-optimization/51760
20336 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
20338 (bit_value_unop): Handle UNDEFINED operands.
20339 (bit_value_binop): Likewise.
20341 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
20343 * config/avr/avr.c (avr_replace_prefix): Remove.
20344 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
20345 (avr_asm_function_rodata_section): Ditto.
20346 (avr_asm_select_section): Ditto.
20348 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
20350 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
20353 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20356 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
20357 calls that have any non-fake successor edges.
20360 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
20362 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
20364 PR tree-optimization/51624
20365 * tree-sra.c (build_ref_for_model): When replicating a chain of
20366 COMPONENT_REFs, stop as soon as the offset would become negative.
20368 2012-01-04 Jakub Jelinek <jakub@redhat.com>
20371 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
20372 in .debug_loc on the floor.
20374 2012-01-04 Andrew Pinski <apinski@cavium.com>
20376 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
20378 2012-01-04 Andrew Pinski <apinski@cavium.com>
20379 Adam Nemet <anemet@caviumnetworks.com>
20381 * config/mips/mips.md (size): Add SI and DI.
20382 (SIZE): New mode attribute.
20383 (U): New code attribute.
20384 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
20385 (mips_lbux_<mode>): Delete.
20386 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
20387 (mips_lhx): Use gen_mips_lhx_extsi.
20388 (mips_lhx_<mode>): Delete.
20389 (mips_lwx): Delete.
20390 (mips_l<size>x): New expand.
20391 (mips_lwx_<mode>): Delete.
20392 (mips_l<GPR:size>x_<P:mode>): New pattern.
20393 (*mips_lw<u>x_<P:mode>_ext): Likewise.
20394 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
20395 * config/mips/mips.c (mips_lx_address_p): New function.
20396 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
20397 (dsp64): New availability predicate.
20398 (mips_builtins): Add an entry for __builtin_mips_ldx.
20399 * config/mips/mips.h (ISA_HAS_LBX): New define.
20400 (ISA_HAS_LBUX): Likewise.
20401 (ISA_HAS_LHX): Likewise.
20402 (ISA_HAS_LHUX): Likewise.
20403 (ISA_HAS_LWX): Likewise.
20404 (ISA_HAS_LWUX): Likewise.
20405 (ISA_HAS_LDX): Likewise.
20406 * doc/extend.texi (__builtin_mips_ldx): Document.
20408 2012-01-04 Tristan Gingold <gingold@adacore.com>
20410 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
20411 when long pointers are used.
20412 * config.build (*-*-*vms*): Handle all OpenVMS targets.
20413 (alpha64-dec-*vms*, alpha*-dec-*vms*)
20414 (ia64-hp-*vms*): Remove.
20415 * config/vms/xm-vms64.h: Delete.
20417 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20419 PR middle-end/51472
20420 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
20422 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20424 * opts.c (finish_options): Remove duplicate sorry.
20426 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20428 PR middle-end/51696
20429 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
20432 2012-01-04 Richard Guenther <rguenther@suse.de>
20434 PR middle-end/51750
20435 * tree.c (size_low_cst): New function.
20436 * tree.h (size_low_cst): Declare.
20437 * fold-const.c (fold_comparison): Use it to extract the low
20438 part of the POINTER_PLUS_EXPR offset.
20440 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
20442 Fix clearing ZERO_REG
20443 * config/avr/avr.md (cc): Add alternative "ldi".
20444 (movqi_insn): Use it in cc attribute.
20445 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
20446 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
20447 (output_reload_insisf): Use ZERO_REG to pre-clear register.
20449 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20451 * configure: Regenerate.
20453 2012-01-04 Richard Guenther <rguenther@suse.de>
20455 PR tree-optimization/49651
20456 * tree-ssa-structalias.c (type_can_have_subvars): New function.
20457 (var_can_have_subvars): Use it.
20458 (get_constraint_for_1): Only consider subfields if there can be any.
20460 2012-01-03 Jakub Jelinek <jakub@redhat.com>
20463 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
20464 to its new canonical_cselib_val and the cselib_val was in
20465 first_containing_mem chain, but the canonical_cselib_val was not,
20466 add the latter into the chain.
20467 (cselib_invalidate_mem): Compare canonical_cselib_val of
20468 addr_list chain elt with v.
20471 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
20472 dwarf2out_undef): Allocate e.info using ggc_strdup instead
20474 (output_macinfo_op): Don't ggc_strdup fd->filename.
20475 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
20476 then ggc_strdup it. Don't free inc->info or cur->info.
20477 (output_macinfo): Don't free ref->info or file->info.
20479 2012-01-03 Ira Rosen <irar@il.ibm.com>
20481 PR tree-optimization/51269
20482 * tree-vect-loop-manip.c (set_prologue_iterations): Make
20483 first_niters a pointer.
20484 (slpeel_tree_peel_loop_to_edge): Likewise.
20485 (vect_do_peeling_for_loop_bound): Update call to
20486 slpeel_tree_peel_loop_to_edge.
20487 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
20488 here. Remove it from the parameters list.
20489 (vect_do_peeling_for_alignment): Update calls and compute
20490 wide_prolog_niters.
20492 2012-01-03 Richard Guenther <rguenther@suse.de>
20494 PR tree-optimization/51070
20495 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
20496 Properly handle calls.
20498 2012-01-03 Richard Guenther <rguenther@suse.de>
20500 PR tree-optimization/51692
20501 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
20502 the LHS of allocation stmts.
20504 2012-01-03 Olivier Hainque <hainque@adacore.com>
20506 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
20508 2012-01-03 Olivier Hainque <hainque@adacore.com>
20510 * collect2.c (main): In AIX specific computations for vector
20511 insertions, use CONST_CAST2 to cast from char ** to const char **.
20513 2012-01-03 Richard Guenther <rguenther@suse.de>
20516 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
20517 the context of a limbo DIE when it does not already exist.
20519 2012-01-03 Jakub Jelinek <jakub@redhat.com>
20521 PR tree-optimization/51719
20522 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
20523 but direct call is, clear direct call's lhs and don't add fallthrough
20524 edge from dcall_bb to join_bb and PHIs.
20526 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20528 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
20529 the instructions emitted by the pattern.
20530 ("*TDC_insn_<mode>"): Add comment.
20532 2012-01-03 Richard Guenther <rguenther@suse.de>
20534 PR middle-end/51730
20535 * fold-const.c (fold_comparison): Properly canonicalize
20536 tree offset and HOST_WIDE_INT bit position.
20538 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
20540 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
20541 operands for extzv pattern.
20543 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20546 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
20549 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
20551 * doc/invoke.texi (-flto and related options): Copy-edit.
20553 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20555 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
20557 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20559 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
20562 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20564 * expr.h (move_by_pieces_ninsns): Declare.
20565 * expr.c (move_by_pieces_ninsns): Make external.
20566 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
20567 (mips_store_by_pieces_p): Likewise.
20568 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
20569 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
20570 * config/mips/mips.c (mips_move_by_pieces_p): New function.
20571 (mips_store_by_pieces_p): Likewise.
20573 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20575 * passes.c (register_one_dump_file): Free full_name.
20577 * reload1.c (reload): Don't allocate reg_max_ref_width here.
20578 (calculate_elim_costs_all_insns): Free offsets_at and
20579 offsets_known_at at the end and clear the pointers.
20581 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20583 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
20584 this option introduced in r180739.
20586 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20589 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
20590 (tmake_file target=avr): Add avr/t-multilib.
20592 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
20593 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
20594 * config/avr/genmultilib.awk: New file.
20595 * config/avr/t-multilib: New auto-generated file.
20596 * config/avr/multilib.h: New auto-generated file.
20597 * config/avr/t-avr (AVR_MCUS): New variable.
20598 (genopt.sh): Use it.
20599 (s-mlib): Depend on t-multilib.
20600 (t-multilib, multilib.h): New dependencies.
20601 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
20602 (MULTILIB_OPTIONS): Remove.
20603 (MULTILIB_MATCHES): Remove.
20604 (MULTILIB_DIRNAMES): Remove.
20605 (MULTILIB_EXCEPTIONS): Remove:
20606 * config/avr/genopt.sh: Don't use hard coded file name;
20607 pass AVR_MCUS from t-avr instead.
20609 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20611 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
20613 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20615 Implement light-weight DImode support.
20616 * config/avr/avr-dimode.md: New file.
20617 * config/avr/avr.md: Include it.
20618 (adjust_len): Add plus64, compare64.
20619 (HIDI): Remove code iterator.
20620 (code_stdname): New code attribute.
20621 (rotx, rotsmode): Remove DI.
20622 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
20624 * config/avr/avr-protos.h (avr_have_dimode): New.
20625 (avr_out_plus64, avr_out_compare64): New.
20626 * config/avr/avr.c (avr_out_compare): Handle DImode.
20627 (avr_have_dimode): New variable definition and initialization.
20628 (avr_out_compare64, avr_out_plus64): New functions.
20629 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
20630 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
20631 (avr_compare_pattern): Skip DImode comparisons.
20633 2012-01-02 Revital Eres <revital.eres@linaro.org>
20635 * ddg.c (def_has_ccmode_p): New function.
20636 (add_cross_iteration_register_deps,
20637 create_ddg_dep_from_intra_loop_link): Call it.
20639 2012-01-02 Richard Guenther <rguenther@suse.de>
20642 * invoke.texi (fassociative-math): Remove spurious paranthesis.
20644 2012-01-01 Jakub Jelinek <jakub@redhat.com>
20646 * gcc.c (process_command): Update copyright notice dates.
20647 * gcov.c (print_version): Likewise.
20648 * gcov-dump.c (print_version): Likewise.
20649 * mips-tfile.c (main): Likewise.
20650 * mips-tdump.c (main): Likewise.
20652 2012-01-01 Ira Rosen <irar@il.ibm.com>
20654 PR tree-optimization/51704
20655 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
20656 a use is inside the basic block or loop before accessing its vect info.
20658 2012-01-01 Jan Hubicka <jhjh@suse.cz>
20660 PR rtl-optimization/51069
20661 * cfgloopmanip.c (remove_path): Removing path making irreducible
20662 region unconditional makes BB part of the region.
20664 2012-01-01 Jakub Jelinek <jakub@redhat.com>
20666 PR tree-optimization/51683
20667 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
20668 calls with side-effects.
20669 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20671 Copyright (C) 2012 Free Software Foundation, Inc.
20673 Copying and distribution of this file, with or without modification,
20674 are permitted in any medium without royalty provided the copyright
20675 notice and this notice are preserved.