1 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
3 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
5 (*prefetch_media): Move insn below expander.
6 (*prefetch): Fix condition to allow SH3.
8 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
11 * config/sh/sh.md: Add splits for inverted compare and branch
13 (*cmpeqsi_t): New insn.
14 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
15 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
16 replacement insn list and not in the preparation statements.
17 (clrt, sett): Add mt_group attribute.
19 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
22 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
24 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
27 * config/sh/predicates.md (mem_index_disp_operand): Check for
28 arith_reg_operand instead of REG_P.
30 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
32 * reload1.c (replaced_subreg, gen_reload): Add
33 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
35 2012-08-11 Jan Hubicka <jh@suse.cz>
37 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
38 symtab_node sectoin name; it confuses plugin.
40 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
42 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
43 in the va_list_vars bitmap by num_ssa_names.
45 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
47 * config/i386/sse.md (xop integer multiply/add insns): Use
48 register_operand for operand 3 predicate.
49 (xop_phadd<u>bq): Fix vec_select selectors.
51 2012-08-11 Martin Jambor <mjambor@suse.cz>
54 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
55 * ipa-inline-analysis.c (agg_position_info): New type.
56 (add_condition): New parameter aggpos, also store agg_contents, by_ref
58 (dump_condition): Also dump aggregate conditions.
59 (evaluate_conditions_for_known_args): Also handle aggregate
60 conditions. New parameter known_aggs.
61 (evaluate_properties_for_edge): Gather known aggregate contents.
62 (inline_node_duplication_hook): Pass NULL known_aggs to
63 evaluate_conditions_for_known_args.
64 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
65 (unmodified_parm_or_parm_agg_item): New function.
66 (set_cond_stmt_execution_predicate): Handle values passed in
68 (set_switch_stmt_execution_predicate): Likewise.
69 (will_be_nonconstant_predicate): Likewise.
70 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
71 ipa_get_indirect_edge_target.
72 (estimate_calls_size_and_time): New parameter known_aggs, pass it
73 recrsively to itself and to estimate_edge_devirt_benefit.
74 (estimate_node_size_and_time): New vector known_aggs, pass it o
75 functions which need it.
76 (remap_predicate): New parameter offset_map, use it to remap aggregate
78 (remap_edge_summaries): New parameter offset_map, pass it recursively
79 to itself and to remap_predicate.
80 (inline_merge_summary): Also create and populate vector offset_map.
81 (do_estimate_edge_time): New vector of known aggregate contents,
82 passed to functions which need it.
83 (inline_read_section): Stream new fields of condition.
84 (inline_write_summary): Likewise.
85 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
86 contents. Let all local callers pass NULL for known_aggs.
88 2012-08-11 Jan Hubicka <jh@suse.cz>
90 * lto-cgraph.c (output_cgraph): Rename to ...
91 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
92 (input_cgraph): Rename to ...
93 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
94 * lto-streamer-out.c (create_output_block): Do not set
96 (produce_asm): Likewise.
97 (lto_output_toplevel_asms): Likewise.
98 (produce_asm_for_decls): Likewise.
99 (lto_output): Use output_symtab.
100 * lto-section-in.c (lto_section_name): Update.
101 * lto-section-out.c (lto_destroy_simple_output_block): Remove
103 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
104 rename LTO_section_cgraph to LTO_section_symtab_nodes.
105 (struct lto_header): Remove section_type.
107 2012-08-11 Jan Hubicka <jh@suse.cz>
109 * cgraph.h (vector types for symtab_node): Add.
110 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
111 for new symtab encoder.
112 (ipa_reference_read_optimization_summary): Likewise.
113 * lto-cgraph.c (output_varpool): Remove.
114 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
115 (LTO_cgraph_tags): Rename to ...
116 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
117 (lto_cgraph_encoder_new): Rename to ...
118 (lto_symtab_encoder_new): ... this on.
119 (lto_cgraph_encoder_encode): Rename to ...
120 (lto_symtab_encoder_encode): ... this one.
121 (lto_cgraph_encoder_delete): Rename to ...
122 (lto_symtab_encoder_delete): ... this one.
123 (lto_cgraph_encoder_deref): Rename to ...
124 (lto_symtab_encoder_deref): ... this one.
125 (lto_cgraph_encoder_encode_body_p): Rename to ...
126 (lto_symtab_encoder_encode_body_p): ... this one.
127 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
128 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
129 lto_varpool_encoder_deref): Remove.
130 (lto_varpool_encoder_encode_initializer_p): Rename to ...
131 (lto_symtab_encoder_encode_initializer_p): ... this one.
132 (lto_set_varpool_encoder_encode_initializer): Rename to ...
133 (lto_set_symtab_encoder_encode_initializer): ... this one.
134 (lto_output_edge): Update.
135 (lto_output_node): Update.
136 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
137 (lto_output_ref): Drop varpool_encoder; update.
138 (add_node_to): Update.
139 (add_references): Update.
140 (output_outgoing_cgraph_edges): Update.
141 (output_refs): Update.
142 (compute_ltrans_boundary): Update.
143 (output_cgraph): Update; output varpools too.
144 (input_overwrite_node): Update.
145 (output_varpool): Remove.
146 (input_node): Update.
148 (input_edge): Update.
149 (input_cgraph_1): Update; input varpool too; unify fixup code.
150 (input_varpool_1): Remove.
151 (input_refs): Update.
152 (input_cgraph): Update.
153 (output_node_opt_summary): Update.
154 (input_cgraph_opt_section): Update.
155 (input_cgraph_opt_summary): Update.
156 * ipa-pure-const.c (pure_const_write_summary): Update.
157 (pure_const_read_summary): Update.
158 * lto-streamer-out.c (lto_write_tree): Update.
159 (lto_output): Likewise.
160 (produce_symtab): Update.
161 (produce_asm_for_decls): Update.
162 * ipa-inline-analysis.c (inline_read_section): Update.
163 (inline_write_summary): Update.
164 * ipa-prop.c (ipa_write_node_info): Update.
165 (ipa_prop_read_section): Update.
166 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
167 (lto_symtab_encoder_d): ... this one; add initializer.
168 (lto_cgraph_encoder_t): Rename to ...
169 (lto_symtab_encoder_t): ... this one.
170 (lto_cgraph_encoder_size): Rename to ...
171 (lto_symtab_encoder_size): ... this one.
172 (lto_varpool_encoder_d): ... remove.
173 (lto_varpool_encoder_t): Remove.
174 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
175 add symtab_node_encoder.
176 (lto_file_decl_data): Likewise.
177 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
178 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
179 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
180 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
181 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
182 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
183 lto_varpool_encoder_encode_initializer_p): Remove.
184 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
185 lto_symtab_encoder_t, lto_symtab_encoder_encode,
186 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
187 lto_symtab_encoder_encode_initializer_p): New.
189 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
191 * config/i386/i386.md (isa): Add fma and fma4.
192 (enabled): Handle fma and fma4.
193 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
194 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
195 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
196 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
197 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
198 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
200 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
202 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
203 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
204 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
206 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
208 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
209 variants of PLUS and MULT simple LEA patterns. Disable PLUS
210 patterns for TARGET_OPT_AGU.
212 2012-08-10 Richard Guenther <rguenther@suse.de>
214 * Makefile.in (OBJS): Remove matrix-reorg.o.
215 (matrix-reorg.o): Remove dependence rule.
216 (GTFILES): Remove matrix-reorg.c.
217 * matrix-reorg.c: Remove.
218 * passes.c (init_optimization_passes): Do not schedule
219 pass_ipa_matrix_reorg.
220 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
221 * common.opt (fipa-matrix-reorg): Stub out.
222 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
224 2012-08-10 Richard Guenther <rguenther@suse.de>
227 * fold-const.c (fold_ternary_loc): Do not reverse the mask
228 when canonicalizing it when folding VEC_PERM_EXPR.
230 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
233 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
234 Use cand_type to determine whether pointer arithmetic will be generated.
236 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
238 * doc/sourcebuild.texi: Document long_neq_int effective target.
240 2012-08-10 Richard Guenther <rguenther@suse.de>
242 PR tree-optimization/54109
243 * tree-ssa-forwprop.c
244 (forward_propagate_addr_into_variable_array_index): Remove.
245 (forward_propagate_addr_expr_1): Adjust.
247 2012-08-10 Richard Guenther <rguenther@suse.de>
249 * tree-cfg.c (dump_function_to_file): Make sure to dump
250 anonymous SSA names when there are no local decls.
252 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
254 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
255 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
256 (mark_phi_for_rewrite): Likewise.
257 (compute_global_livein): Use VEC_reserve outside the innermost
258 loop and VEC_quick_push instead of VEC_safe_push in that loop.
259 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
260 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
261 the correct initial size.
263 2012-08-10 Richard Guenther <rguenther@suse.de>
265 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
266 (need_creation): Remove.
267 (get_representative_for): Use anonymous named SSA names.
268 (create_expression_by_pieces): Likewise.
269 (insert_into_preds_of_block): Likewise.
270 (init_pre): Do not init removed vars.
271 (fini_pre): Do not free need_creation.
272 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
274 * tree-ssa-loop-manip.c (create_iv): Likewise.
275 * value-prof.c (gimple_divmod_fixed_value): Likewise.
276 (gimple_mod_pow2): Likewise.
277 (gimple_mod_subtract): Likewise.
278 (gimple_ic): Likewise.
279 (gimple_stringop_fixed_value): Likewise.
280 * tree-ssa-phiopt.c (condstoretemp): Remove.
281 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
282 (conditional_replacement): Likewise.
283 (abs_replacement): Likewise.
284 (cond_store_replacement): Likewise.
285 (cond_if_else_store_replacement_1): Likewise.
286 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
287 (rewrite_bittest): Likewise.
288 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
289 and build anonymous SSA names.
290 (undistribute_ops_list): Adjust.
291 (eliminate_redundant_comparison): Use anonymous SSA names.
292 (rewrite_expr_tree_parallel): Likewise.
293 (get_reassoc_pow_ssa_name): Remove.
294 (attempt_builtin_powi): Adjust.
295 (reassociate_bb): Likewise.
296 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
297 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
298 (build_arrays): Likewise.
299 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
300 (create_tailcall_accumulator): Likewise.
301 * tree-vect-generic.c (expand_vector_divmod): Likewise.
302 * tree-profile.c (gcov_type_tmp_var): Remove.
303 (gimple_init_edge_profiler): Do not initialize it and use anonymous
305 (gimple_gen_ic_profiler): Likewise.
306 (tree_profiling): Adjust.
307 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
308 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
309 (powi_as_mults_1): Likewise.
310 (powi_as_mults): Likewise.
311 (build_and_insert_call): Adjust.
312 (build_and_insert_binop): Likewise.
313 (build_and_insert_ref): Likewise.
314 (build_and_insert_cast): Likewise.
315 (gimple_expand_builtin_pow): Likewise.
316 (gimple_expand_builtin_cabs): Likewise.
317 (execute_optimize_bswap): Use anonymous SSA names.
318 (convert_mult_to_widen): Likewise.
319 (convert_plusminus_to_widen): Likewise.
320 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
321 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
322 * tree-if-conv.c (ifc_temp_var): Likewise.
323 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
324 * tree-parloops.c (take_address_of): Likewise.
325 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
326 (vect_permute_load_chain): Likewise.
327 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
328 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
329 (vect_handle_widen_op_by_const): Likewise.
330 (vect_operation_fits_smaller_type): Likewise.
331 (vect_recog_over_widening_pattern): Likewise.
332 * tree-vect-stmts.c (vect_init_vector): Likewise.
333 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
334 (simplify_float_conversion_using_ranges): Likewise.
336 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
338 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
339 target mask of __builtin_ia32_rdseed_di_step builtin.
341 2012-08-10 Richard Guenther <rguenther@suse.de>
343 PR tree-optimization/54027
344 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
345 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
346 to handle LSHIFT_EXPR with a constant.
348 2012-08-10 Richard Guenther <rguenther@suse.de>
350 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
352 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
354 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
355 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
356 SSA names by passing a type instead of a variable decl.
357 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
358 (copy_ssa_name_fn): Handle anonymous SSA names.
359 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
360 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
361 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
362 dump SSA names without a name as <anon>.
363 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
364 going to expand a decl.
365 (gimple_expand_cfg): Assign all SSA names of a partition the
366 decl we created for its leader.
367 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
368 (verify_ssa_name): Handle anonymous SSA names.
369 (verify_def): Likewise.
370 * tree-predcom.c (eliminate_temp_copies): Likewise.
371 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
372 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
373 anonymous SSA names with the same type.
374 (mark_all_vars_used_1): Handle anonymous SSA names.
375 (verify_live_on_entry): Likewise.
376 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
377 (create_outofssa_var_map): Adjust with respect to conflicts we
378 compute for anonymous SSA names. Do not restrict abnormal
380 (coalesce_partitions): Do not restrict abnormal coalescing.
381 Assert we only ever coalesce variables we computed conflicts for.
382 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
384 * expr.c (expand_expr_real_1): Handle anonymous SSA names
385 expanded from IVOPTs by creating a raw REG here.
386 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
387 (dump_function_to_file): Dump anonymous SSA names alongside
388 with their types in the variable list.
389 (verify_gimple_return): Guard use of SSA_NAME_VAR.
390 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
391 (rewrite_into_ssa): Make SSA names anonymous.
392 * tree-ssa-structalias.c (alias_get_name): Rewrite.
393 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
395 (warn_uninitialized_phi): Likewise.
396 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
397 anonymous SSA names to the expander.
398 (determine_iv_cost): Anonymous SSA names are artificial.
399 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
400 Handle anonymous SSA names.
401 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
402 or if NULL, the type of the SSA name.
403 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
404 remap names as anonymous where appropriate.
405 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
406 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
407 according to what we create conflicts for in out-of-SSA
409 * tree-parloops.c (separate_decls_in_region_name): Handle
411 (add_field_for_name): Likewise.
412 * tree.c (get_name): Handle SSA names.
413 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
415 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
417 * tree-sra.c (create_access_replacement): Give up generating
418 a DECL_DEBUG_EXPR for SSA names in the memory reference.
419 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
420 * tree-complex.c (get_component_ssa_name): Handle anonymous
422 (set_component_ssa_name): Likewise.
423 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
424 * tree-object-size.c (collect_object_sizes_for): Handle
425 uninitialized SSA names properly.
426 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
428 * ipa-split.c (test_nonssa_use): Likewise.
429 (consider_split): Likewise.
430 (mark_nonssa_use): Likewise.
432 2012-08-09 Jan Hubicka <jh@suse.cz>
435 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
436 parameter; honnor it.
437 * ipa-inline.c (recursive_inlining): Update call
439 (inline_small_functions): Likewise.
440 (ipa_inline): Likewise.
441 (inline_always_inline_functions): Likewise.
442 (early_inline_small_functions): Likewise.
443 (flatten_function): Do separate update of summary info.
444 * ipa-inline.h (inline_update_overall_summary): Declare.
445 (inline_call): Update.
446 * ipa-inline-analysis.c (inline_merge_summary): Break out
448 (inline_update_overall_summary): Likewise.
450 2012-08-09 Richard Henderson <rth@redhat.com>
452 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
454 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
455 performing the compare for the restart loop.
457 2012-08-09 DJ Delorie <dj@redhat.com>
459 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
460 SET before extracting SET_SRC.
461 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
463 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
466 * config/sh/sh-protos (shift_insns_rtx): Delete.
467 (sh_ashlsi_clobbers_t_reg_p): Add.
468 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
469 ext_shift_amounts): Merge arrays of ints to array of structs.
470 Adapt usage of arrays throughout the file.
471 (shift_insns_rtx): Delete unused function.
472 (sh_ashlsi_clobbers_t_reg_p): New function.
473 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
474 final shift sequence will clobber T_REG.
475 (ashlsi3_n): Split only if the final shift sequence will not
477 (ashlsi3_n_clobbers_t): New insn_and_split.
479 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
481 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
482 instead of looking at sbitmap n_bits member directly.
483 * gcse.c (hoist_code): Likewise.
484 * sched-rgn.c (split_edges): Likewise.
485 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
486 update_ssa): Likewise.
488 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
490 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
491 single unit register class for classes that contain registers form
493 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
494 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
496 2012-08-09 Martin Jambor <mjambor@suse.cz>
498 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
499 offset, updated all users. New field agg_contents.
500 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
501 (ipa_pass_through_data): New field agg_preserved.
502 (ipa_ancestor_jf_data): Likewise.
503 (ipa_member_ptr_cst): Removed.
504 (ipa_agg_jf_item): New type.
505 (ipa_agg_jump_function): Likewise.
506 (ipa_jump_func): New field agg. Removed field member_cst.
507 (ipa_get_jf_pass_through_agg_preserved): New function.
508 (ipa_get_jf_ancestor_agg_preserved): Likewise.
509 (ipa_get_jf_member_ptr_pfn): Removed.
510 (ipa_find_agg_cst_for_param): Declare.
511 (ipa_load_from_parm_agg): Likewise.
512 * ipa-prop.c (param_analysis_info): Fields modified and
513 visited_statements rename to parm_modified and parm_visited_statements
514 respectively, added fields ref_modified, ref_visited_statements,
515 pt_modified and pt_visited_statements.
516 (ipa_print_node_jump_functions_for_edge): Do not dump const member
517 functions. Dump agg_preserved flags and aggregate jump functions.
518 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
519 (ipa_set_ancestor_jf): Likewise.
520 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
521 (ipa_set_jf_member_ptr_cst): Removed.
522 (is_parm_modified_before_stmt): Logic reversed, renamed to
523 parm_preserved_before_stmt_p. Cache visited bitmap only for
524 naked DECL parameters. All callers updated.
525 (load_from_unmodified_param): Allow NULL parms_ainfo.
526 (parm_ref_data_preserved_p): New function.
527 (parm_ref_data_pass_through_p): Likewise.
528 (ipa_load_from_parm_agg_1): Likewise.
529 (ipa_load_from_parm_agg): Likewise.
530 (compute_complex_assign_jump_func): Check if aggregate contents are
532 (compute_complex_ancestor_jump_func): Likewise.
533 (compute_scalar_jump_functions): Removed.
534 (type_like_member_ptr_p): Also check field position are known and sane.
535 (compute_pass_through_member_ptrs): Removed.
536 (determine_cst_member_ptr): Likewise.
537 (ipa_known_agg_contents_list): New type.
538 (determine_known_aggregate_parts): New function.
539 (compute_cst_member_ptr_arguments): Removed.
540 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
541 functions (scalar, aggregate and member pointer).
542 (ipa_get_member_ptr_load_param): Incorporate into
543 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
544 (ipa_note_param_call): Clear agg_contents.
545 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
546 from aggregates. In such cases, store offset of the called field.
547 (ipa_analyze_node): Initialize new fields of param_analysis_info.
548 (update_jump_functions_after_inlining): Handle aggregate contents.
549 (ipa_find_agg_cst_for_param): New function.
550 (try_make_edge_direct_simple_call): Handle called aggregate values.
551 (update_indirect_edges_after_inlining): Make sure aggregate preserving
552 jump functions comply with type compatibility requirements.
553 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
554 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
555 jump functions. Do not stream member pointer constant jump functions.
556 (ipa_read_jump_function): Likewise.
557 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
559 (ipa_read_indirect_edge_info): Likewise.
561 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
564 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
565 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
566 mem_index_disp_operand predicate.
568 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
571 * config/sh/sh.md: Add negc extu sequence peephole.
572 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
573 (*movrt_negc): New insn.
574 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
576 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
577 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
579 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
581 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
584 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
585 Use arith_reg_operand predicate instead of register_operand.
586 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
589 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
591 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
592 (alpha_pad_function_end): ... this. Also insert NOP between
593 sibling call and GP load.
594 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
596 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
598 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
599 * config/i386/x86intrin.h: Likewise.
600 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
601 OPTION_MASK_ISA_ADX from needed options for
602 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
603 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
604 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
606 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
608 PR rtl-optimization/53701
609 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
610 Process not only expr's vinsns but all old vinsns from expr's
612 (update_and_record_unavailable_insns): Clarify comment.
614 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
616 * reload.c (find_valid_class_1): New static function.
617 (push_reload): Use it when reloading a SYMBOL_REG as the inner
618 of a subreg. Keep better track of needed classes for the
619 secondary memory case.
620 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
622 * reload1.c (replaced_subreg): New static function.
623 (gen_reload): Use it when deciding whether to use secondary
626 2012-08-09 Richard Guenther <rguenther@suse.de>
628 * tree.h (SSA_VAR_P): Simplify.
629 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
630 * fold-const.c (fold_comparison): Check for default def first
631 before checking for PARM_DECL.
632 * tree-complex.c (get_component_ssa_name): Likewise.
633 * tree-inline.c (remap_ssa_name): Likewise.
634 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
635 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
636 (find_what_p_points_to): Likewise.
637 * tree-ssa-operands.c (add_stmt_operand): Simplify.
639 2012-08-08 Joseph Myers <joseph@codesourcery.com>
641 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
642 IOR to a constant if one operand has side effects.
644 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
646 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
647 value operand as MEM to expand_atomic_compare_and_swap.
649 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
650 nonimmediate_operand for old value; generate load and store if
652 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
655 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
658 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
660 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
661 a gimple_reg if checking is enabled.
662 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
663 * tree-into-ssa (compute_global_livein): Change the worklist
664 type from an array to a VEC.
666 2012-08-08 Richard Guenther <rguenther@suse.de>
668 * tree-ssa-operands.h (virtual_operand_p): Declare.
669 * tree-ssa-operands.c (virtual_operand_p): New predicate.
670 * gimple.c (is_gimple_reg): Use virtual_operand_p.
671 * tree-into-ssa.c (prepare_block_for_update): Likewise.
672 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
674 2012-08-08 Richard Guenther <rguenther@suse.de>
676 * tree-call-cdce.c (check_pow): Simplify.
677 (gen_conditions_for_pow_int_base): Likewise.
678 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
679 virtual operands here.
680 * tree-ssa-operands.c (get_name_decl): Remove unused function.
681 * gimplify.c (gimple_regimplify_operands): Remove dead code.
682 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
683 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
684 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
685 (gimple_stringop_fixed_value): Likewise.
686 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
687 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
688 in the bitmap alongside shifted DECL_UIDs.
689 (va_list_counter_struct_op): Likewise.
690 (va_list_ptr_read): Likewise.
691 (va_list_ptr_write): Likewise.
692 (check_va_list_escapes): Likewise.
693 (check_all_va_list_escapes): Likewise.
694 (execute_optimize_stdarg): Likewise.
695 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
697 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
698 H.J. Lu <hongjiu.lu@intel.com>
700 PR rtl-optimization/54157
701 * combine.c (gen_lowpart_for_combine): Don't return identity
702 for CONST or symbolic reference.
704 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
706 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
707 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
708 (ix86_handle_option): Handle madx option.
709 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
710 (x86_64-*-*): Likewise.
711 * config/i386/adxintrin.h: New header.
712 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
714 * config/i386/i386-builtin-types.def
715 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
716 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
717 * config/i386/i386-c.c: Define __ADX__ if needed.
718 * config/i386/i386.c (ix86_target_string): Define -madx option.
720 (ix86_option_override_internal): Handle new option.
721 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
722 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
723 IX86_BUILTIN_ADDCARRYX64.
724 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
725 (ix86_expand_builtin): Handle these built-ins.
726 (ix86_expand_args_builtin): Handle new function types.
727 * config/i386/i386.h (TARGET_ADX): New.
728 * config/i386/i386.md (adcx<mode>3): New define_insn.
729 * config/i386/i386.opt (madx): New.
730 * config/i386/x86intrin.h: Include adxintrin.h.
732 2012-08-08 Nick Clifton <nickc@redhat.com>
734 * config/rl78/rl78.c: Include tree-pass.h.
736 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
739 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
740 (build_insn_chain): Make live_subregs_used a bitmap.
741 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
742 Use sbitmap_free to free the live_subreg sbitmaps.
745 * ifcvt.c: Include pointer-set.h.
746 (cond_move_process_if_block): Change type of then_regs and
747 else_regs from alloca'd array to pointer_sets.
748 (check_cond_move_block): Update for this change.
749 (cond_move_convert_if_block): Likewise.
750 * Makefile.in: Fix dependencies for ifcvt.o.
752 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
754 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
755 (incr_vec): New static var.
756 (incr_vec_len): Likewise.
757 (address_arithmetic_p): Likewise.
758 (stmt_cost): Remove dead assignment.
759 (dump_incr_vec): New function.
760 (cand_abs_increment): Likewise.
761 (lazy_create_slsr_reg): Likewise.
762 (incr_vec_index): Likewise.
763 (count_candidates): Likewise.
764 (record_increment): Likewise.
765 (record_increments): Likewise.
766 (unreplaced_cand_in_tree): Likewise.
767 (optimize_cands_for_speed_p): Likewise.
768 (lowest_cost_path): Likewise.
769 (total_savings): Likewise.
770 (analyze_increments): Likewise.
771 (ncd_for_two_cands): Likewise.
772 (nearest_common_dominator_for_cands): Likewise.
773 (profitable_increment_p): Likewise.
774 (insert_initializers): Likewise.
775 (introduce_cast_before_cand): Likewise.
776 (replace_rhs_if_not_dup): Likewise.
777 (replace_one_candidate): Likewise.
778 (replace_profitable_candidates): Likewise.
779 (analyze_candidates_and_replace): Handle candidates with SSA-name
782 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
784 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
785 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
786 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
787 clear pp_needs_newline.
788 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
789 of pp_base_flush before the above change.
790 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
792 * diagnostic.c (diagnostic_finish): Likewise.
793 (diagnostic_report_diagnostic): Likewise.
794 (verbatim): Likewise.
795 (error_recursion): Likewise.
796 * tree-pretty-print.c (print_generic_stmt): Likewise.
797 (print_generic_stmt_indented): LIkewise.
798 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
799 (print_gimple_seq): Likewise.
800 (gimple_dump_bb_buff): Likewise.
802 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
805 * var-tracking.c (var_lowpart): Exit early for matched modes.
807 2012-08-07 Richard Henderson <rth@redhat.com>
809 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
810 atomic_compare_and_swapsi_internal name change.
811 (s390_expand_insv): Try RISBG last, not requiring operands in
812 registers but forcing them there. Try a limited form of ICM.
813 (s390_two_part_insv): New.
814 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
815 * config/s390/s390.md (UNSPEC_MOVA): New.
816 (TDSI): Remove mode iterator.
817 (DGPR, DINT, TDI): New mode iterators.
818 (td): New mode attribute.
819 (mem_signal_fence): New.
820 (mem_thread_fence): Rename from memory_barrier; update for model arg.
821 (mem_thread_fence_1): Rename from *memory_barrier.
822 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
823 (atomic_loaddi_1, atomic_loadti_1): New.
824 (atomic_storedi_1, atomic_storeti_1): New.
825 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
826 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
827 (atomic_compare_and_swap<DGPR>_internal): New.
828 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
829 (*atomic_compare_and_swap<TDI>_1): New.
830 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
831 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
832 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
833 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
834 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
835 (sync_new_<ATOMIC><HQI>): Remove.
836 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
837 (atomic_<ATOMIC>_fetch<HQI>): New.
838 (sync_lock_test_and_set<HQI>): Remove.
839 (atomic_exchange<HQI>): New.
841 2012-08-07 Paul Brook <paul@codesourcery.com>
842 Sandra Loosemore <sandra@codesourcery.com>
844 * except.c (switch_to_exception_section): Place tables for
845 DECL_ONE_ONLY functions in comdat groups.
847 2012-08-07 Richard Guenther <rguenther@suse.de>
849 * tree-flow.h (copy_ssa_name_fn): New function.
850 (duplicate_ssa_name_fn): Likewise.
851 * tree-flow-inline.h (copy_ssa_name): New function.
852 (duplicate_ssa_name): Likewise.
853 * tree-ssanames.c (copy_ssa_name_fn): New function.
854 (duplicate_ssa_name): Rename to ...
855 (duplicate_ssa_name_fn): ... this and adjust.
856 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
857 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
859 (slpeel_update_phi_nodes_for_guard2): Likewise.
860 (slpeel_tree_peel_loop_to_edge): Likewise.
861 (vect_loop_versioning): Likewise.
862 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
863 (create_parallel_loop): Likewise.
864 * ipa-split.c (split_function): Likewise.
865 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
866 (vect_create_epilog_for_reduction): Likewise.
867 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
868 (vect_setup_realignment): Likewise.
869 * tree-vect-stmts.c (vectorizable_load): Likewise.
870 * tree-switch-conversion.c (build_one_array): Likewise.
871 (gen_def_assigns): Likewise.
872 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
873 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
874 create_zero_dim_array with the SSA name.
875 (rewrite_phi_out_of_ssa): Likewise.
876 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
878 2012-08-07 Richard Guenther <rguenther@suse.de>
880 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
881 bit of the old name when we clear the slot.
882 * tree-ssa-live.c (remove_unused_locals): Release any default
883 def associated with an unused var.
884 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
886 2012-08-07 Richard Guenther <rguenther@suse.de>
888 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
889 we rewrite into SSA form.
890 (rewrite_enter_block): Adjust.
891 * gimple-iterator.c (gsi_replace): Also allow replacement with
892 a stmt without a lhs.
893 * tree-ssa-live.c (remove_unused_locals): Remove code handling
894 clobbers of SSA names.
895 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
896 for variables we access through the local chain.
897 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
898 clobber full decls only.
900 2012-08-07 Richard Guenther <rguenther@suse.de>
902 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
903 * tree-phinodes.c (make_phi_node): Allow a NULL var.
904 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
905 * tree-complex.c (update_phi_components): Likewise.
906 * tree-ssa-loop-manip.c (create_iv): Likewise.
907 (add_exit_phis_edge): Likewise.
908 (split_loop_exit_edge): Likewise.
909 (tree_transform_and_unroll_loop): Likewise.
910 * value-prof.c (gimple_ic): Likewise.
911 (gimple_stringop_fixed_value): Likewise.
912 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
913 * omp-low.c (expand_parallel_call): Likewise.
914 (expand_omp_for_static_chunk): Likewise.
915 (expand_omp_atomic_pipeline): Likewise.
916 * tree-parloops.c (create_phi_for_local_result): Likewise.
917 (transform_to_exit_first_loop): Likewise.
918 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
919 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
920 * tree-predcom.c (initialize_root_vars): Likewise.
921 (initialize_root_vars_lm): Likewise.
922 * sese.c (sese_add_exit_phis_edge): Likewise.
923 * gimple-streamer-in.c (input_phi): Likewise.
924 * tree-inline.c (copy_phis_for_bb): Likewise.
925 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
926 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
927 (gimple_duplicate_bb): Likewise.
929 2012-08-07 Nick Clifton <nickc@redhat.com>
931 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
932 stack usage if requested.
934 2012-08-06 Cary Coutant <ccoutant@google.com>
936 * cgraphunit.c (assemble_thunk): Add source line info.
937 * final.c (final): Check for non-null cfg pointer.
939 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
940 Maxim Kuvyrkov <maxim@codesourcery.com>
941 Julian Brown <julian@codesourcery.com>
943 * config/mips/24k.md (r24k_unknown_store): Delete special handling
945 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
946 (r24k_int_cop, r24k_int_multi)
947 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
948 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
949 instead of store_data_bypass_p.
950 * config/mips/74k.md (r74k_int_store): Delete special handling for
952 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
953 Use mips_store_data_bypass_p instead of store_data_bypass_p.
955 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
957 PR tree-optimization/51938
958 PR tree-optimization/52005
959 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
961 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
962 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
965 2012-08-06 Olivier Hainque <hainque@adacore.com>
967 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
968 the target, attach the new decl to that, not to the template section.
970 2012-08-06 Tom de Vries <tom@codesourcery.com>
972 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
975 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
977 * doc/invoke.texi: Document AMD btver2.
978 * doc/extend.texi: Document AMD btver1 and btver2.
980 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
981 Richard Sandiford <rdsandiford@googlemail.com>
983 * config/mips/mips.c (mips_option_override): Check -fpic
984 for compatibility with -mabicalls and ABI.
986 2012-08-04 Catherine Moore <clm@codesourcery.com>
987 Sandra Loosemore <sandra@codesourcery.com>
989 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
990 (ir_xlr_alu): Remove clz.
991 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
993 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
995 * arm.c (arm_gen_constant): Use SImode when preparing operands for
998 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
1000 * config/i386/i386.h (QI_REGNO_P): New define.
1001 (ANY_QI_REGNO_P): Ditto.
1002 (GENERAL_REGNO_P): Use IN_RANGE macro.
1003 (QI_REG_P): Use QI_REGNO_P.
1004 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
1005 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
1006 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
1007 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
1008 register is a general register.
1010 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
1012 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
1013 incdec_operand predicate to return INC or DEC insn mnemonic.
1014 Add %K operand modifier.
1015 (atomic_add<mode>): Use incdec_operand predicate to
1016 return INC or DEC insn mnemonic.
1017 (atomic_dec<mode>): Ditto.
1019 2012-08-03 Michael Matz <matz@suse.de>
1021 PR tree-optimization/54146
1022 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
1023 (add_scope_conflicts): Iterate in RPO order.
1024 (add_stack_protection_conflicts): Iterate over the other triangle.
1025 (fini_vars_expansion): Clear stack_vars_sorted.
1027 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
1029 PR tree-optimization/30318
1030 * double-int.c (mul_double_wide_with_sign): New function.
1031 (mul_double_with_sign): Call the new function.
1032 * double-int.h (mul_double_wide_with_sign): Declare the new function.
1033 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
1034 Handle integer types that wrap on overflow.
1035 (quad_int_cmp): New helper function.
1036 (quad_int_pair_sort): Likewise.
1038 2012-08-03 Richard Guenther <rguenther@suse.de>
1040 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
1041 is_gimple_reg on the SSA name, not its variable.
1042 (vect_update_ivs_after_vectorizer): Likewise.
1043 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1044 * tree-if-conv.c (if_convertible_phi_p): Likewise.
1045 (predicate_scalar_phi): Likewise.
1046 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
1047 (vect_analyze_scalar_cycles_1): Likewise.
1048 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
1049 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
1050 * tree-ssa-reassoc.c (phi_rank): Likewise.
1051 * tree-parloops.c (separate_decls_in_region_name): Use
1052 replace_ssa_name_symbol.
1053 * tree-predcom.c (base_names_in_chain_on): Likewise.
1054 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
1056 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
1057 (create_mul_imm_cand): Likewise.
1058 (create_add_ssa_cand): Likewise.
1059 (create_add_imm_cand): Likewise.
1060 (slsr_process_add): Likewise.
1061 * tree-inline.c (remap_ssa_name): Do not set the type of the
1063 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
1064 Check for default def first.
1066 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
1068 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
1070 * sched-vis.c (print_pattern): Handle SEQUENCE also.
1072 2012-08-02 Richard Henderson <rth@redhat.com>
1076 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
1077 * cfgexpand.c (gimple_expand_cfg): Initialise it.
1078 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
1079 alignment requirements given the known alignment of dynamic_offset.
1080 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
1082 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1084 * cfgexpand.c (expand_debug_locations): Encapsulate test for
1085 CONST_DOUBLE in macro.
1086 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
1087 * cprop.c (implicit_set_cond_p): Ditto.
1088 * cselib.c (rtx_equal_for_cselib_1): Ditto.
1089 * expmed.c (expand_mult): Ditto.
1090 * expr.c (convert_modes): Ditto.
1091 * ira-costs.c (record_reg_classes): Ditto.
1092 * ira-lives.c (single_reg_class): Ditto.
1093 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
1094 * print-rtl.c (print_rtx): Ditto.
1095 * recog.c (simplify_while_replacing, const_double_operand)
1096 (asm_operand_ok, constrain_operands): Ditto.
1097 * reg-stack.c (subst_stack_regs_pat): Ditto.
1098 * reload.c (find_reloads, find_equiv_reg): Ditto.
1099 * rtlanal.c (replace_rtx): Remove test.
1100 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
1101 test for CONST_DOUBLE in macro.
1102 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
1103 (simplify_unary_operation_1, simplify_const_unary_operation)
1104 (simplify_binary_operation_1, simplify_const_binary_operation)
1105 (simplify_relational_operation_1)
1106 (simplify_const_relational_operations)
1107 (implify_subreg): Ditto.
1108 * varasm.c (output_constant_pool_2): Ditto.
1109 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
1110 * rtl.def (CONST_DOUBLE): Updated comments.
1112 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1115 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
1116 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
1117 (mips16_rewrite_pool_constant): Make a copy of the pool constant
1118 before adding to a PC-relative table.
1119 (mips16_lay_out_constants): Add a SPLIT_P parameter.
1120 (mips16_load_branch_target, mips16_split_long_branches): New functions.
1121 (mips_reorg): Update call to mips16_lay_out_constants.
1122 Call mips16_split_long_branches.
1123 * config/mips/predicates.md (pc_or_label_operand): Delete.
1124 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
1125 Move the extended_mips16 handling further down.
1126 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
1127 with explicit label_ref and pc. Follow the usual operand numbering.
1128 (*branch_equality<mode>_mips16_inverted): New pattern.
1129 (*jump_mips16): Add length attribute.
1130 (indirect_jump_and_restore_<mode>): New pattern.
1131 (consttable_int): Call mips_strip_unspec_address on the operand.
1133 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1135 * recog.c (split_insn): Copy the original SET_SRC before using
1138 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
1140 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
1142 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
1144 PR tree-optimization/53805
1145 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
1146 UNORDERED_EXPR even for trapping floating point.
1148 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
1152 * ipa-inline-analysis.c (inline_free_summary): Return if
1153 inline_edge_summary_vec is NULL.
1155 * ipa-split.c (execute_split_functions): Check if a function
1156 is inlinable only if inline_edge_summary_vec != NULL.
1158 * ipa.c (symtab_remove_unreachable_nodes): Restore
1159 cgraph_propagate_frequency call when something was changed.
1160 (free_inline_summary): New function.
1161 (pass_ipa_free_inline_summary): New pass.
1163 * passes.c (init_optimization_passes): Add
1164 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
1166 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
1168 * tree-pass.h (pass_ipa_free_inline_summary): New.
1170 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
1172 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
1175 2012-08-02 Richard Guenther <rguenther@suse.de>
1177 * tree-into-ssa.c (struct common_info_d): New struct.
1178 (struct var_info_d, struct ssa_name_info): Use it.
1179 (get_ssa_name_ann): Adjust.
1180 (get_phi_state, set_phi_state): Remove.
1181 (get_common_info): New function.
1182 (get_current_def, set_current_def): Adjust.
1183 (get_def_blocks_for): Take a common info as param.
1184 (set_def_block): Call get_common_info once.
1185 (set_livein_block): Likewise.
1186 (find_def_blocks_for): Adjust.
1187 (insert_phi_nodes): Likewise.
1188 (register_new_def): Call get_common_info once.
1189 (get_reaching_def): Likewise.
1190 (rewrite_debug_stmt_uses): Likewise.
1191 (rewrite_leave_block): Likewise.
1192 (dump_currdefs): Likewise.
1193 (debug_var_infos_r): Adjust.
1194 (register_new_update_single): Call get_common_info once.
1195 (maybe_replace_use_in_debug_stmt): Likewise.
1196 (rewrite_update_leave_block): Likewise.
1197 (mark_use_interesting): Adjust.
1198 (create_new_def_for): Likewise.
1199 (update_ssa): Likewise.
1201 2012-08-02 Michael Matz <matz@suse.de>
1203 * tree-ssa-live.c (set_is_used): Return a bool.
1204 (mark_all_vars_used): Don't take data argument.
1205 (mark_all_vars_used_1): Adjust calls to above, merge handling
1206 of local and global vars.
1207 (remove_unused_scope_block_p): Don't take global_unused_vars,
1208 merge handling of local and global vars.
1209 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
1210 use is_used_p for local and global vars.
1212 2012-08-02 Richard Guenther <rguenther@suse.de>
1214 * tree-flow.h (make_rename_temp): Remove.
1215 * tree-dfa.c (make_rename_temp): Likewise.
1216 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
1217 instead of make_rename_temp.
1218 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1219 expand_omp_atomic_pipeline): Likewise.
1220 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
1221 build_tm_store, expand_call_tm, expand_transaction,
1222 ipa_tm_insert_gettmclone_call): Likewise.
1223 * tree-complex.c (expand_complex_div_wide): Likewise.
1224 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
1226 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
1228 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
1229 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
1230 gimple_mod_subtract): Likewise.
1232 2012-08-02 Richard Guenther <rguenther@suse.de>
1234 * tree-flow.h (set_default_def): Rename to ...
1235 (set_ssa_default_def): ... this. Take a struct function argument.
1236 (gimple_default_def): Rename to ...
1237 (ssa_default_def): ... this.
1238 (get_or_create_ssa_default_def): New function.
1239 * tree-dfa.c: Likewise.
1240 (dump_variable): Adjust.
1241 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
1242 for used parameters.
1243 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
1245 (split_function): Likewise.
1246 * lto-streamer-in.c (input_ssa_names): Adjust.
1247 * omp-low.c (expand_omp_taskreg): Likewise.
1248 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
1249 * tree-complex.c (init_parameter_lattice_values): Adjust.
1250 (get_component_ssa_name): Likewise.
1251 (update_parameter_components): Likewise.
1252 * tree-inline.c (remap_ssa_name): Likewise.
1253 (setup_one_parameter): Likewise.
1254 (initialize_inlined_parameters): Likewise.
1255 (declare_return_variable): Likewise.
1256 (expand_call_inline): Likewise.
1257 (tree_function_versioning): Likewise.
1258 * tree-into-ssa.c (get_default_def_for): Remove.
1259 (get_reaching_def): Use get_or_create_ssa_default_def instead.
1260 * tree-predcom.c (replace_ref_with): Adjust.
1261 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
1262 (is_unused_scalar_param): Likewise.
1263 (ptr_parm_has_direct_uses): Likewise.
1264 (sra_ipa_reset_debug_stmts): Likewise.
1265 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
1266 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1267 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1268 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
1269 avoid repeated default def lookups.
1270 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
1271 * tree-tailcall.c (arg_needs_copy_p): Adjust.
1272 (tree_optimize_tail_calls_1): Likewise.
1274 2012-08-02 Richard Guenther <rguenther@suse.de>
1276 PR tree-optimization/50672
1278 2012-08-01 Richard Guenther <rguenther@suse.de>
1280 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
1281 (replace_block_by): Adjust.
1283 2012-08-02 Richard Guenther <rguenther@suse.de>
1285 * tree-dfa.c (referenced_var_lookup): Remove.
1286 (find_referenced_vars): Remove.
1287 (pass_referenced_vars): Likewise.
1288 (make_rename_temp): Do not add referenced vars.
1289 (dump_referenced_vars): Remove.
1290 (debug_referenced_vars): Likewise.
1291 (dump_dfa_stats): Do not dump referenced var stats.
1292 (find_vars_r): Remove.
1293 (find_referenced_vars_in): Likewise.
1294 (referenced_var_check_and_insert): Likewise.
1295 (add_referenced_var_1): Likewise.
1296 (remove_referenced_var): Likewise.
1297 * tree-flow.h (referenced_var_lookup): Likewise.
1298 (struct gimple_df): Remove referenced_vars member.
1299 (typedef referenced_var_iterator): Remove.
1300 (FOR_EACH_REFERENCED_VAR): Likewise.
1301 (num_referenced_vars): Likewise.
1302 (debug_referenced_vars, dump_referenced_vars): Likewise.
1303 (add_referenced_var_1, add_referenced_var): Likewise.
1304 (remove_referenced_var): Likewise.
1305 (find_referenced_vars_in): Likewise.
1306 * tree-flow-inline.h (gimple_referenced_vars): Remove.
1307 (first_referenced_var): Likewise.
1308 (end_referenced_vars_p): Likewise.
1309 (next_referenced_var): Likewise.
1310 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
1311 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
1313 * tree-into-ssa.c (dump_decl_set): Likewise.
1314 (pass_build_ssa): Do not require PROP_referenced_vars.
1315 * tree-ssa.c (target_for_debug_bind): Virtual operands are
1316 not suitable, but all register type vars are.
1317 (init_tree_ssa): Do not allocate referenced vars.
1318 (delete_tree_ssa): Do not free referenced vars.
1319 * cgraphunit.c (init_lowered_empty_function): Do not set
1320 PROP_referenced_vars.
1321 (assemble_thunk): Do not add referenced vars.
1322 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1323 (gimplify_and_update_call_from_tree): Likewise.
1324 * gimple-streamer-in.c (input_bb): Likewise.
1325 * passes.c (init_optimization_passes): Do not run
1326 pass_referenced_vars.
1327 (dump_properties): Do not dump PROP_referenced_vars.
1328 * tree-inline.c (remap_decl): Do not add referenced vars.
1329 (remap_gimple_op_r): Likewise.
1330 (copy_tree_body_r): Likewise.
1331 (copy_bb): Likewise.
1332 (setup_one_parameter): Likewise.
1333 (declare_return_variable): Likewise.
1334 (copy_decl_for_dup_finish): Likewise.
1335 (copy_arguments_for_versioning): Likewise.
1336 (tree_function_versioning): Likewise.
1337 * tree-pass.h (PROP_referenced_vars): Remove.
1338 (pass_referenced_vars): Likewise.
1339 * tree-profile.c (gimple_gen_edge_profiler): Do not add
1341 (gimple_gen_interval_profiler): Likewise.
1342 (gimple_gen_pow2_profiler): Likewise.
1343 (gimple_gen_one_value_profiler): Likewise.
1344 (gimple_gen_ic_profiler): Likewise.
1345 (gimple_gen_average_profiler): Likewise.
1346 (gimple_gen_ior_profiler): Likewise.
1347 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
1348 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
1349 (move_stmt_op): Likewise.
1350 * tree-ssa-operands.c (create_vop_var): Likewise.
1351 * gimple-low.c (record_vars_into): Likewise.
1352 * gimplify.c (gimple_regimplify_operands): Likewise.
1353 (force_gimple_operand_1): Likewise.
1354 * omp-low.c (expand_omp_for_generic): Likewise.
1355 (expand_omp_for_static_chunk): Likewise.
1356 (expand_omp_atomic_pipeline): Likewise.
1357 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
1358 (translate_clast_assignment): Likewise.
1359 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
1360 (handle_scalar_deps_crossing_scop_limits): Likewise.
1361 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1362 * ipa-split.c (split_function): Likewise.
1363 * matrix-reorg.c (transform_access_sites): Likewise.
1364 * trans-mem.c (tm_log_add): Likewise.
1365 (ipa_tm_insert_gettmclone_call): Likewise.
1366 * tree-complex.c (create_one_component_var): Likewise.
1367 * tree-if-conv.c (ifc_temp_var): Likewise.
1368 * tree-parloops.c (take_address_of): Likewise.
1369 (initialize_reductions): Likewise.
1370 (separate_decls_in_region_name): Likewise.
1371 (create_call_for_reduction_1): Likewise.
1372 (separate_decls_in_region): Likewise.
1373 * tree-predcom.c (predcom_tmp_var): Likewise.
1374 (reassociate_to_the_same_stmt): Likewise.
1375 * tree-sra.c (build_ref_for_offset): Likewise.
1376 (create_access_replacement): Likewise.
1377 (get_replaced_param_substitute): Likewise.
1378 (sra_ipa_reset_debug_stmts): Likewise.
1379 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
1380 (rewrite_bittest): Likewise.
1381 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
1382 * tree-ssa-loop-manip.c (create_iv): Likewise.
1383 (tree_transform_and_unroll_loop): Likewise.
1384 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
1385 (build_and_insert_call): Likewise.
1386 (gimple_expand_builtin_cabs): Likewise.
1387 (execute_optimize_bswap): Likewise.
1388 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1389 (abs_replacement): Likewise.
1390 (cond_store_replacement): Likewise.
1391 (cond_if_else_store_replacement_1): Likewise.
1392 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1393 * tree-ssa-pre.c (get_representative_for): Likewise.
1394 (create_expression_by_pieces): Likewise.
1395 (insert_into_preds_of_block): Likewise.
1396 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
1397 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
1398 (eliminate_redundant_comparison): Likewise.
1399 (rewrite_expr_tree_parallel): Likewise.
1400 (get_reassoc_pow_ssa_name): Likewise.
1401 * tree-ssa-strlen.c (get_string_length): Likewise.
1402 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
1403 (build_arrays): Likewise.
1404 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1405 (create_tailcall_accumulator): Likewise.
1406 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
1407 (vect_create_addr_base_for_vector_ref): Likewise.
1408 (vect_permute_store_chain): Likewise.
1409 (vect_permute_load_chain): Likewise.
1410 * tree-vect-generic.c (expand_vector_divmod): Likewise.
1411 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
1412 (vect_build_loop_niters): Likewise.
1413 (vect_generate_tmps_on_preheader): Likewise.
1414 (vect_update_ivs_after_vectorizer): Likewise.
1415 (vect_gen_niters_for_prolog_loop): Likewise.
1416 (vect_do_peeling_for_alignment): Likewise.
1417 (vect_create_cond_for_align_checks): Likewise.
1418 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
1419 (vect_handle_widen_op_by_const): Likewise.
1420 (vect_operation_fits_smaller_type): Likewise.
1421 (vect_recog_over_widening_pattern): Likewise.
1422 * tree-vect-stmts.c (vect_init_vector): Likewise.
1424 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1427 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
1429 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1432 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
1433 falling back to copy_rtx on non-autoinc machines.
1434 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
1436 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
1439 * valtrack.h, valtrack.c: New.
1440 * Makefile.in (VALTRACK_H): New.
1441 (OBJS): Add valtrack.o.
1443 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
1444 * combine.c: Include valtrack.h.
1445 (make_compound_operation): Publish.
1446 (cleanup_auto_inc_dec): Move to valtrack.c.
1447 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
1448 (propagate_for_debug): Likewise. Add this_basic_block parameter.
1450 * cselib.c: Include valtrack.h.
1452 * df-problems.c: Likewise.
1453 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
1454 (dead_debug_finish, dead_debug_add): Likewise.
1455 (dead_debug_insert_temp): Likewise.
1456 * df.h (struct dead_debug_use): Move to valtrack.h.
1457 (struct dead_debug, enum debug_temp_where): Likewise.
1458 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
1459 (dead_debug_finish, dead_debug_add): Likewise.
1460 (dead_debug_insert_temp): Likewise.
1461 * rtl.h (make_compound_operation): Declare.
1463 2012-08-01 Catherine Moore <clm@codesourcery.com>
1464 Sandra Loosemore <sandra@codesourcery.com>
1466 * config/mips/mips-cpus.def (34kn): New.
1467 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
1468 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
1469 * config/mips/mips-tables.opt: Regenerate.
1470 * doc/invoke.texi (MIPS Options): Document -march=34kn.
1472 2012-08-01 Richard Henderson <rth@redhat.com>
1474 * expmed.h (NUM_MODE_PARTIAL_INT): New.
1475 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
1476 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
1477 (struct expmed_op_costs): Likewise.
1478 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
1479 (expmed_mode_index): New.
1480 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
1481 (convert_cost_ptr): Likewise.
1482 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
1483 (init_expmed_one_conv): Split out from ...
1484 (init_expmed_one_mode): ... here. Iterate conversions over
1485 partial integer modes too.
1486 (init_expmed): Iterate over partial integer modes too.
1488 2012-08-01 Richard Henderson <rth@redhat.com>
1490 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
1491 (m32c_init_libfuncs): Remove.
1492 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
1493 (cstore<QHPSI>4): New expander.
1495 2012-08-01 Richard Guenther <rguenther@suse.de>
1497 * tree-flow-inline.h (referenced_var): Remove.
1498 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
1500 * tree-sra.c (candidates): New global hashtable.
1501 (candidate): New function.
1502 (sra_initialize): Initialize candidates.
1503 (sra_deinitialize): Free candidates.
1504 (disqualify_candidate): Remove candidate from candidates.
1505 (maybe_add_sra_candidate): New function.
1506 (find_var_candidates): Walk over all local decls and parameters,
1507 add candidates to candidates hashtable.
1508 (find_param_candidates): Add candidates to candidates hashtable.
1509 (analyze_all_variable_accesses): Use candidate instead of
1512 2012-08-01 Tom de Vries <tom@codesourcery.com>
1514 * tree-vrp.c (find_case_label_ranges): New function.
1515 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
1516 find_case_label_ranges instead of find_case_label_range. Handle second
1519 2012-08-01 Michael Matz <matz@suse.de>
1521 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
1522 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
1523 (dump_dfa_stats): Don't dump stats about var anns.
1524 (collect_dfa_stats): Don't collect them.
1525 (add_referenced_var_1): Don't set var annotation pointers.
1526 (remove_referenced_var): Ditto, and only remove it it's in the
1529 * tree-flow-inline.h (var_ann): Remove.
1530 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
1532 * tree-inline.c (remapped_type): Remove.
1533 (can_be_nonlocal): Most variable will be considered live here,
1534 return false earlier.
1535 (remap_decls): Don't call var_ann, all variables will be considered
1537 (copy_debug_stmt): Ditto, and use is_global_var.
1539 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
1540 determine if a variable was referred to, not var_ann.
1541 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
1542 (remove_unused_locals): Ditto.
1543 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
1544 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
1545 * tree.c (copy_node_stat): Don't clear var ann pointer.
1546 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
1548 (DECL_VAR_ANN_PTR): Remove.
1550 2012-08-01 Michael Matz <matz@suse.de>
1552 * tree-flow.h (struct var_ann_d): Rename used member.
1553 (set_is_used): Don't declare.
1554 * tree-flow-inline.h (clear_is_used): Remove.
1555 (set_is_used, is_used_p): Move to ...
1556 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
1558 (usedvars): New bitmap.
1559 (dump_scope_block): Don't dump unusedness.
1560 (remove_unused_locals): Allocate and free usedvars.
1561 * tree-nrv.c (tree_nrv): Don't clear used flags here.
1563 2012-08-01 Michael Matz <matz@suse.de>
1565 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
1567 * tree-ssa-live.h (struct _var_map): Remove basevars member.
1568 (VAR_ANN_BASE_INDEX): Remove.
1569 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
1570 of var annotation to compress index space. Don't deal with above
1572 (var_map_base_fini): Don't free basevars.
1573 (init_var_map): Don't clear basevars.
1575 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
1577 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
1578 base_name to base_expr.
1579 (struct cand_chain_d): Likewise.
1580 (base_cand_hash): Likewise.
1581 (base_cand_eq): Likewise.
1582 (record_potential_basis): Likewise.
1583 (alloc_cand_and_find_basis): Likewise.
1584 (create_mul_ssa_cand): Likewise.
1585 (create_mul_imm_cand): Likewise.
1586 (create_add_ssa_cand): Likewise.
1587 (create_add_imm_cand): Likewise.
1588 (slsr_process_cast): Likewise.
1589 (slsr_process_copy): Likewise.
1590 (dump_candidate): Likewise.
1591 (base_cand_dump_callback): Likewise.
1592 (unconditional_cands_with_known_stride_p): Likewise.
1593 (cand_increment): Likewise.
1595 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
1597 PR tree-optimization/46556
1598 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
1599 (base_cand_map): Change to hash table.
1600 (base_cand_hash): New function.
1601 (base_cand_free): Likewise.
1602 (base_cand_eq): Likewise.
1603 (lookup_cand): Change base_cand_map to hash table.
1604 (find_basis_for_candidate): Likewise.
1605 (base_cand_from_table): Exclude CAND_REF.
1606 (restructure_reference): New function.
1607 (slsr_process_ref): Likewise.
1608 (find_candidates_in_block): Call slsr_process_ref.
1609 (dump_candidate): Handle CAND_REF.
1610 (base_cand_dump_callback): New function.
1611 (dump_cand_chains): Change base_cand_map to hash table.
1612 (replace_ref): New function.
1613 (replace_refs): Likewise.
1614 (analyze_candidates_and_replace): Call replace_refs.
1615 (execute_strength_reduction): Change base_cand_map to hash table.
1617 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
1619 * config/i386/i386.c (ix86_address_subreg_operand): Reject
1621 (ix86_print_operand_address): Assert that parts.base and parts.index
1622 are non-NULL after call to simplify_subreg.
1624 2012-08-01 Richard Guenther <rguenther@suse.de>
1626 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
1628 2012-08-01 Richard Guenther <rguenther@suse.de>
1630 * graphite-clast-to-gimple.c (translate_clast_user): Rename
1632 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
1634 * tree-call-cdce.c (tree_call_cdce): Use
1635 mark_virtual_operands_for_renaming.
1636 * tree-eh.c (sink_clobbers): Simplify.
1637 * tree-flow.h (mark_sym_for_renaming): Remove.
1638 (mark_virtual_operands_for_renaming): New function.
1639 * tree-if-conv.c (tree_if_conversion): Use
1640 mark_virtual_operands_for_renaming.
1641 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
1642 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
1643 (mark_virtual_operands_for_renaming): New function.
1644 * tree-loop-distribution.c (tree_loop_distribution): Use
1645 mark_virtual_operands_for_renaming.
1646 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
1647 update stmts, use mark_virtual_operands_for_renaming.
1648 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
1649 (replace_block_by): Adjust.
1650 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
1651 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
1652 mark_virtual_operands_for_renaming.
1653 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
1654 * tree-vectorizer.c (vectorize_loops): Likewise.
1656 2012-08-01 Richard Guenther <rguenther@suse.de>
1658 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
1659 add ssa_renaming_needed and rename_vops flags.
1660 (SYMS_TO_RENAME): Remove.
1661 (symbol_marked_for_renaming): Likewise.
1662 (mark_virtual_ops_for_renaming): Likewise.
1663 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
1665 (mark_for_renaming, marked_for_renaming): New functions.
1666 (symbol_marked_for_renaming): Remove.
1667 (dump_currdefs): Adjust.
1668 (maybe_replace_use): Likewise.
1669 (maybe_replace_use_in_debug_stmt): Likewise.
1670 (maybe_register_def): Likewise.
1671 (rewrite_update_phi_arguments): Likewise.
1672 (rewrite_update_enter_block): Likewise.
1673 (fini_ssa_renamer): Clear update SSA status here ...
1674 (delete_update_ssa): ... not here. Free rename set.
1675 (prepare_block_for_update): Compute which decls need renaming.
1676 (dump_update_ssa): Adjust.
1677 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
1678 (need_ssa_update_p): Adjust.
1679 (insert_updated_phi_nodes_for): Likewise.
1680 (update_ssa): Likewise.
1681 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
1682 for virtual and real operands.
1683 (finalize_ssa_uses): Likewise.
1684 * tree-ssanames.c (init_ssanames): Adjust.
1685 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
1686 execute_update_addresses_taken): Add bitmap to keep track of which
1687 candidates are suitable for rewriting and later renaming by SSA update.
1688 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
1689 * tree-dfa.c (make_rename_temp): Do not mark real operands for
1691 * cgraphunit.c (assemble_thunk): Likewise.
1692 * gimplify.c (gimple_regimplify_operands): Likewise.
1693 (force_gimple_operand_1): Likewise.
1694 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1695 * tree-inline.c (declare_return_variable): Likewise.
1696 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
1697 mark_virtual_ops_for_renaming.
1698 (create_stores_for_reduction): Likewise.
1699 (create_loads_and_stores_for_name): Likewise.
1700 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
1701 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
1702 (execute_load_motion): Likewise.
1703 (remove_stmt): Likewise.
1704 (execute_pred_commoning_chain): Likewise.
1705 * tree-sra.c (create_access_replacement): Do not rename real operands.
1706 (get_unrenamed_access_replacement): Unify with ...
1707 (get_access_replacement): ... this.
1708 (get_repl_default_def_ssa_name): Adjust.
1709 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
1711 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
1712 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
1714 2012-07-31 DJ Delorie <dj@redhat.com>
1716 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
1717 extensions for TPF, unless specifically selected.
1719 2012-08-01 Alan Modra <amodra@gmail.com>
1722 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
1723 of lo_sum offsets. Comment. Assert mode at least word size
1724 rather than bypassing powerpc64 word offset check.
1726 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
1728 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
1729 costs for vec_perm and vec_promote_demote down to more natural values.
1730 (struct _rs6000_cost_data): New data structure.
1731 (rs6000_density_test): New function.
1732 (rs6000_init_cost): Change to use rs6000_cost_data.
1733 (rs6000_add_stmt_cost): Likewise.
1734 (rs6000_finish_cost): Perform density test when vectorizing a loop.
1736 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1738 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
1739 of RTX_UNARY function-like operations. Print unknown expression
1740 RTX classes as pseudo-functions.
1741 (print_pattern): Simplify return pattern printing.
1742 (dump_insn_slim): Print the value of notes as a pattern for proper
1743 printing of CFA notes.
1745 2012-07-31 Dehao Chen <dehao@google.com>
1747 * predict.c (tree_estimate_probability_driver): Normalize the
1748 loop when initializing the loop optimizer.
1750 2012-07-31 Richard Guenther <rguenther@suse.de>
1752 * tree-flow.h (struct var_ann_d): Remove need_phi_state
1753 and current_def members.
1754 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
1755 (def_blocks): Remove.
1756 (struct var_info_d): New.
1757 (var_infos): New hashtable.
1758 (struct ssa_name_info): Add def_blocks member.
1759 (get_ssa_name_ann): Adjust.
1760 (get_var_info): New function.
1761 (get_phi_state, set_phi_state, get_current_def,
1762 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
1763 (insert_phi_nodes_compare_def_blocks): Rename to ...
1764 (insert_phi_nodes_compare_var_infos): ... this and adjust.
1765 (insert_phi_nodes): Adjust.
1766 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
1767 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
1768 (debug_def_blocks_r): Rename to ...
1769 (debug_var_infos_r): ... this and adjust.
1770 (var_info_hash): New function.
1771 (var_info_eq): Likewise.
1772 (rewrite_blocks): Adjust.
1773 (init_ssa_renamer): Likewise.
1774 (fini_ssa_renamer): Likewise.
1775 (delete_update_ssa): Likewise.
1776 (update_ssa): Likewise.
1777 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
1779 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
1781 PR tree-optimization/53773
1782 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
1783 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
1784 * tree-vect-loop.c (new_loop_vec_info): Initialize
1785 LOOP_VINFO_OPERANDS_SWAPPED field.
1786 (destroy_loop_vec_info): Restore canonical form.
1787 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
1788 (vect_is_simple_reduction_1): Likewise.
1790 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1792 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
1793 start of each new line.
1794 * final.c (final_scan_insn): If the final dump is requested as
1795 slim RTL, dump slim RTL to the assembly file also.
1797 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
1801 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
1804 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
1806 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1807 only if producer writes to the register given by regno.
1809 2012-07-31 Nick Clifton <nickc@redhat.com>
1811 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
1812 support for reporting stack usage.
1814 * config/frv/frv.c (QUAD): Fix typo.
1815 (frv_expand_prologue): Report stack usage.
1817 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
1820 * gengtype.c (struct walk_type_data): Add have_this_obj field.
1821 (walk_type): For functions that take a this_obj argument and
1822 that process fields with a GTY((length)) argument, write the
1823 test that write_types_local_process_field will write also at the
1824 head of the loop, effectively unswitching the loop.
1825 (write_func_for_structure, write_local_func_for_structure): Clear
1826 have_this_obj before calling walk_type.
1827 (write_local_func_for_structure): Set have_this_obj before walk_type.
1828 (write_array): Set have_this_obj for output of local pointer walking
1829 functions but not for marker functions.
1830 (write_types_local_process_field): Assert have_this_obj is set.
1832 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
1835 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
1838 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1839 * targhooks.c (default_mode_dependent_address_p): Delete code
1840 for GO_IF_MODE_DEPENDENT_ADDRESS.
1841 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
1842 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
1843 * doc/tm.texi: Regenerate.
1844 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
1845 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
1847 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1848 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1849 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1850 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
1851 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
1852 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
1854 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1856 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
1858 * expmed.h (NUM_MODE_VECTOR_INT): Define.
1859 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
1860 (struct target_expmed): Convert x_mul_highpart_cost and
1861 x_mul_widen_cost fields to be indexed by integer modes.
1862 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
1863 of type struct expmed_op_cheap. Convert other cost fields to be
1864 of type struct_expmed_op_costs.
1865 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
1866 indexing of respective fields.
1867 (expmed_op_cheap_ptr): New function.
1868 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
1869 (expmed_op_cost_ptr): New function.
1870 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
1871 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
1872 sdiv_cost_ptr, udiv_cost_ptr): Call it.
1874 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
1875 Julian Brown <julian@codesourcery.com>
1877 * doc/invoke.texi (MIPS Options): Document -mno-float.
1878 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
1881 2012-07-30 Joseph Myers <joseph@codesourcery.com>
1883 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
1885 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1888 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
1889 for special cases. Don't initialize coeff and is_neg.
1891 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1892 Richard Earnshaw <rearnsha@arm.com>
1894 * target.def (vector_alignment): New target hook.
1895 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
1896 * doc/tm.texi: Regenerate.
1897 * targhooks.c (default_vector_alignment): New function.
1898 * targhooks.h (default_vector_alignment): Add prototype.
1899 * stor-layout.c (layout_type): Use targetm.vector_alignment.
1900 * config/arm/arm.c (arm_vector_alignment): New function.
1901 (TARGET_VECTOR_ALIGNMENT): Define.
1903 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
1904 vector type alignment instead of size.
1905 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
1906 element type size directly instead of computing it from alignment.
1907 Fix variable naming and comment.
1909 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
1910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1912 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
1913 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
1914 (ix86_handle_option): Handle mrdseed option.
1915 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
1916 (x86_64-*-*): Likewise.
1917 * config/i386/prfchwintrin.h: New header.
1918 * config/i386/cpuid.h (bit_RDSEED): New.
1919 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1921 * config/i386/i386-c.c: Define __RDSEED__ if needed.
1922 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
1924 (ix86_option_override_internal): Handle new option.
1925 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
1926 (ix86_builtins): Add enum entries for RDSEED* builtins.
1927 (ix86_init_mmx_sse_builtins): Define new builtins.
1928 (ix86_expand_builtin): Expand RDSEED* builtins.
1929 * config/i386/i386.h (TARGET_RDSEED): New.
1930 * config/i386/i386.md (rdseed<mode>_1): New.
1931 * config/i386/i386.opt (mrdseed): New.
1932 * config/i386/x86intrin.h: Include rdseedintrin.h.
1934 2012-07-30 Richard Guenther <rguenther@suse.de>
1936 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
1937 (rewrite_stmt): Likewise.
1938 (rewrite_enter_block): Likewise.
1939 (pass_build_ssa): Do not update virtual SSA form during TODO.
1940 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
1941 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
1943 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
1946 * config/gcc/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
1949 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
1952 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
1953 Use t_reg_operand predicate. Add split for negated case.
1954 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
1955 * config/sh/sh.c (expand_ashiftrt): Likewise.
1957 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
1960 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
1961 of trying to emit ashlsi3_n.
1963 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1964 Steven Bosscher <steven@gcc.gnu.org>
1966 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
1967 option applications and option being applied to arrays of atomic types.
1968 (walk_type): Allow "atomic" option on strings too.
1969 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
1970 for the array field.
1971 * vec.h: Describe the atomic object "A" type of the macros in
1973 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
1974 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
1975 * doc/gty.texi: Clarify that GTY option "length" is only for
1976 arrays of non-atomic objects. Fix typo in the description of the
1979 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
1981 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
1982 zero-extended addresses. Return false if the address has less
1983 than two components.
1984 (ix86_split_lea_for_addr): Unconditionally convert target and
1985 all address operands to requested mode.
1986 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
1987 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
1989 (zero-extended add splitter): New splitter to conditionally split
1990 non-destructive adds.
1991 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
1993 2012-07-28 Alan Modra <amodra@gmail.com>
1996 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
1997 multi-gpr reload to cases where predicate passes. Do the same for
1998 64-bit multi-gpr reload.
2000 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
2002 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
2003 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
2004 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
2005 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
2006 macro definitions and re-purpose as inline functions.
2007 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
2008 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
2009 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
2010 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
2011 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
2012 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
2013 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
2014 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
2015 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
2017 (convert_cost_ptr): New function, split out from...
2018 (set_convert_cost, convert_cost): ...here.
2019 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
2020 * gimple-ssa-strength-reduction.c: Likewise.
2022 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
2024 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
2025 diagnostic_initialize.
2027 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
2030 * config/sh/sh.c (shiftcosts): Remove case where first operand
2031 is a const_int. Move COSTS_N_INSNS usage into caller ...
2032 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
2033 calculated instead of MAX_COST.
2035 2012-07-27 Richard Guenther <rguenther@suse.de>
2037 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
2038 check whether SSA form is not up-to-date.
2039 * tree-flow.h (name_mappings_registered_p): Remove.
2040 * tree-into-ssa.c (struct repl_map_d): Remove.
2041 (repl_tbl): Likewise.
2042 (struct ssa_name_info): Add repl_set member.
2043 (update_ssa_obstack): New static global.
2044 (get_ssa_name_ann): Initialize repl_set.
2045 (clear_ssa_name_info): Assert age did not wrap.
2046 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
2047 (names_replaced_by): Adjust.
2048 (add_to_repl_tbl): Likewise.
2049 (dump_tree_ssa_stats): Likewise.
2050 (init_update_ssa): Initialize update_ssa_obstack.
2051 (delete_update_ssa): Free update_ssa_obstack.
2052 (name_mappings_registered_p): Remove.
2053 (update_ssa): Adjust.
2055 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2057 * config/rs6000/constraints.md: Delete "q" constraint.
2058 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
2059 Delete the "q" alternative.
2060 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
2061 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
2062 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
2063 adjust to MQ_REGNO removal.
2064 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
2066 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
2067 (enum reg_class): Adjust comment. Delete MQ_REGS.
2068 (REG_CLASS_CONTENTS): Adjust.
2069 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
2070 * config/rs6000/rs6000.md: Delete MQ_REGNO.
2071 (movsi_internal1, movsi_internal1_single, movhi_internal,
2072 movqi_internal, movcc_internal1, movsf_hardfloat,
2073 movsf_softfloat): Delete the "q" alternative.
2074 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
2075 ctr<mode>_internal6): Delete "q" constraint.
2077 2012-07-27 Richard Guenther <rguenther@suse.de>
2079 * tree-into-ssa.c (def_blocks_p): New typedef.
2080 (insert_phi_nodes_compare_def_blocks): New function.
2081 (insert_phi_nodes): Do not walk over referenced vars, instead
2082 walk over recorded def_blocks, record relevant ones and sort
2083 them to avoid repeated hashtable lookups.
2085 2012-07-27 Richard Guenther <rguenther@suse.de>
2087 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
2088 Remove param documentation.
2089 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
2090 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
2091 * tree-flow.h (mark_set_for_renaming): Remove.
2092 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
2093 (add_new_name_mapping): Remove bookkeeping code.
2094 (dump_update_ssa): Remove stats dumping code.
2095 (init_update_ssa): Remove stats allocation code.
2096 (delete_update_ssa): Remove stats freeing code.
2097 (mark_set_for_renaming): Remove.
2098 (switch_virtuals_to_full_rewrite_p): Likewise.
2099 (switch_virtuals_to_full_rewrite): Likewise.
2100 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
2102 2012-07-27 Marek Polacek <polacek@redhat.com>
2104 * cgraphunit.c: Rename varpool_finalize_variable to
2105 varpool_finalize_decl in a comment.
2107 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2109 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
2110 Delete code for -mno-power, -mpower, and -mpower2.
2111 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
2112 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2114 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
2115 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
2116 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2118 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
2119 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
2120 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2122 (TARGET_POWER): Delete.
2123 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
2124 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2126 (TARGET_POWER): Delete.
2127 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
2128 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
2130 (TARGET_POWER): Delete.
2131 * config/rs6000/darwin.h (TARGET_POWER): Delete.
2132 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
2133 support for -mpower, -mpower2, and -mno-power.
2134 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2136 (rs6000_cpu_cpp_builtins): Likewise.
2137 * config/rs6000/rs6000-cpus.def: Likewise.
2138 * config/rs6000/rs6000-tables.opt: Regenerate.
2139 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
2140 (rs6000_option_override_internal): Adjust.
2141 (rs6000_conditional_register_usage): Adjust.
2142 (rs6000_emit_move): Adjust.
2143 (rs6000_common_init_builtins): Adjust.
2144 (rs6000_init_libfuncs): Adjust.
2145 (rs6000_output_function_prologue): Adjust.
2146 (rs6000_adjust_cost): Adjust.
2147 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
2148 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
2150 (TARGET_DEFAULT): Adjust.
2151 (PROCESSOR_POWER): Delete.
2152 (SHIFT_COUNT_TRUNCATED): Adjust.
2153 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
2154 (extendqisi2_power): Delete.
2155 (extendqisi2_no_power): Adjust.
2156 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
2158 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
2159 (anonymous doz insn patterns): Delete.
2161 (abssi2_power): Delete.
2162 (abssi2_nopower): Adjust.
2163 (nabs_power, nabs_nopower): Likewise.
2164 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
2165 Likewise. Delete anonymous post-reload splitter.
2166 (mulsi3_no_mq_internal1): rename to...
2167 (mulsi3_internal1): New define_insn.
2168 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
2170 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
2171 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
2172 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
2173 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
2174 quous_call): Likewise.
2175 (maskir_internal1, maskir_internal2, maskir_internal3,
2176 maskir_internal4, maskir_internal5, maskir_internal6,
2177 maskir_internal7, maskir_internal8): Delete.
2178 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
2179 (anonymous sl insn patterns): Delete.
2180 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
2181 (lshrsi3_64): Adjust.
2182 (anonymous sr insn patterns): Delete.
2183 (anonymous rrib insn patterns): Delete.
2184 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
2185 (anonymous sra insn patterns): Delete.
2186 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
2187 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
2188 fctiwz_<mode>): Adjust.
2189 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
2190 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
2191 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
2192 umulsi3_highpart_no_mq): Adjust.
2193 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
2194 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
2195 lshrdi3_internal1): Adjust.
2196 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
2197 (movti_power): Delete.
2198 (movti_string): Adjust.
2199 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
2200 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
2201 stmsi4_power, stmsi3_power): Delete.
2202 (anonymous movmemsi insn patterns): Adjust.
2203 (lfq_power2, stfq_power2): Delete.
2204 (eq<mode>, eq<mode>_compare): Adjust.
2205 (eqsi_power): Delete.
2207 (anonymous le, lt, ge, gt insn patterns): Delete.
2208 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
2209 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
2210 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2211 MULTILIB_MATCHES): Adjust.
2212 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
2213 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
2214 Delete -mcpu=power and -mcpu=power2 documentation.
2216 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
2218 * config/rs6000/601.md: New file.
2219 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
2221 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
2222 * config/rs6000/driver-rs6000.c (detect_processor_aix,
2223 struct asm_names): Likewise.
2224 * config/rs6000/rios1.md: Delete file.
2225 * config/rs6000/rios2.md: Delete file.
2226 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
2228 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
2229 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
2230 * config/rs6000/rs6000-tables.opt: Regenerated.
2231 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
2233 (rs6000_option_override_internal): Delete support for RIOS CPUs.
2234 (rs6000_conditional_register_usage): Adjust comment.
2235 (rs6000_issue_rate):Delete support for RIOS CPUs.
2236 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
2238 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
2239 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
2240 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
2242 (include "rios1.md", include "rios2.md"): Delete.
2243 (include "601.md"): New.
2244 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
2246 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
2248 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
2249 rios2.md . Add 601.md .
2251 2012-07-26 Richard Henderson <rth@redhat.com>
2253 * doc/extend.texi (attribute): Document hot/cold for labels.
2254 * predict.c (tree_estimate_probability_bb): Handle hot/cold
2255 attributes on user labels.
2256 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
2258 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
2259 Sandra Loosemore <sandra@codesourcery.com>
2261 * cse.c (find_comparison_args): Check for cycles of any length.
2263 2012-07-26 Nick Clifton <nickc@redhat.com>
2265 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
2266 (mn10300_get_live_callee_saved_regs): If requested return a count
2267 of the number of bytes in the mask.
2268 (mn10300_expand_prologue): Add argument to invocation of
2269 mn10300_get_live_callee_regs.
2270 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
2271 mn10300_get_live_callee_saved_regs.
2272 (mn10300_initial_offset): Likewise.
2273 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
2275 * config/mn10300/mn10300.md (return_ret): Add argument to
2276 invocation of mn10300_get_live_callee_saved_regs.
2278 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
2281 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
2282 pointer difference check.
2284 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
2286 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
2287 (mbc_entry_eq): Likewise.
2288 (mult_costs): Likewise.
2289 (cost_tables_exist): Likewise.
2290 (initialize_costs): Likewise.
2291 (finalize_costs): Likewise.
2292 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
2293 (add_regs_cost): Remove.
2294 (multiply_regs_cost): Likewise.
2295 (add_const_cost): Likewise.
2296 (extend_or_trunc_reg_cost): Likewise.
2297 (negate_reg_cost): Likewise.
2298 (struct mbc_entry): Likewise.
2299 (multiply_by_const_cost): Likewise.
2300 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
2301 change multiply_by_const_cost to mult_by_coeff_cost.
2302 (force_expr_to_var_cost): Likewise.
2303 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
2304 (get_computation_cost_at): Change add_regs_cost calls to add_cost
2305 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
2306 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
2307 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
2308 * tree-ssa-address.c (expmed.h): New #include.
2309 (most_expensive_mult_to_index): Change multiply_by_const_cost to
2311 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
2312 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
2313 neg_cost, and convert_cost instead of IVOPTS interfaces.
2314 (execute_strength_reduction): Remove calls to initialize_costs and
2316 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
2317 (init_expmed_one_mode): Initialize convert rtx_def; initialize
2318 x_convert_cost for related modes.
2319 (mult_by_coeff_cost): New function.
2320 * expmed.h (NUM_MODE_INT): New #define.
2321 (struct target_expmed): Add x_convert_cost matrix.
2322 (set_convert_cost): New inline function.
2323 (convert_cost): Likewise.
2324 (mult_by_coeff_cost): New extern decl.
2325 * tree-flow.h (initialize_costs): Remove decl.
2326 (finalize_costs): Likewise.
2327 (multiply_by_const_cost): Likewise.
2328 (add_regs_cost): Likewise.
2329 (multiply_regs_cost): Likewise.
2330 (add_const_cost): Likewise.
2331 (extend_or_trunc_reg_cost): Likewise.
2332 (negate_reg_cost): Likewise.
2333 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
2334 (tree-ssa-address.o): Update dependencies.
2336 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
2338 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
2339 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
2340 (TEST_BIT): Make a static inline function for stronger type checking.
2341 (SET_BIT): Don't handle sbitmaps with popcount.
2342 (RESET_BIT): Likewise.
2343 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
2344 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
2345 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
2346 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
2347 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
2348 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
2349 * sparseset.h: Add explanation of sparse set representation.
2351 2012-07-26 Richard Guenther <rguenther@suse.de>
2353 PR tree-optimization/54098
2354 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
2355 original range was UNDEFINED.
2357 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2359 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
2362 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
2365 * config/sh/sh.opt (mzdcbranch): New option.
2366 * doc/invoke.texi: Document it.
2367 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
2368 instead of TARGET_HARD_SH4.
2369 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
2370 for TARGET_HARD_SH4.
2372 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2375 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
2377 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
2378 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
2379 from expander. Do not emit shift insn for not-SHMEDIA case.
2380 (ashlsi3_std): Replace with ...
2381 (ashlsi3_k, ashlsi3_d): ... these new insns.
2382 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
2383 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
2384 (gen_ashift_hi): Make static.
2385 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
2388 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
2389 Jim Wilson <jimwilso@cisco.com>
2391 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
2392 TARGET_BIG_ENDIAN_DEFAULT.
2394 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
2396 * gimple-low.c (lower_try_catch): New function.
2397 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
2398 <GIMPLE_CATCH>: Delete.
2399 <GIMPLE_EH_FILTER>: Likewise.
2401 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
2403 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
2404 of BIT_FIELD_REF for ignored results.
2405 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
2406 CONSTRUCTOR has vector type before using vector accessors on it.
2407 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
2408 #2 of BIT_FIELD_REF.
2409 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
2410 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
2411 not process operand #1 and #2.
2412 (convert_local_reference_op): Likewise.
2413 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
2415 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
2416 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
2418 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
2419 (build6_stat): Delete.
2420 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
2422 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
2424 PR tree-optimization/30318
2425 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
2427 [MINUS_EXPR]: Merge with PLUS_EXPR.
2429 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
2430 Paul Brook <paul@codesourcery.com>
2433 * target.def (warn_func_return): New hook.
2434 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
2435 * doc/tm.texi: Regenerate.
2436 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2438 * ipa-pure-const.c (warn_function_noreturn): Check
2439 targetm.warn_func_return.
2440 * tree-cfg.c (execute_warn_function_return): Likewise.
2441 * config/spu/spu.c (spu_warn_func_return): New.
2442 (TARGET_WARN_FUNC_RETURN): Define.
2443 * config/rx/rx.c (rx_warn_func_return): New.
2444 (TARGET_WARN_FUNC_RETURN): Define.
2445 * config/avr/avr.c (avr_warn_func_return): New.
2446 (TARGET_WARN_FUNC_RETURN): Define.
2447 * config/arm/arm.c (arm_warn_func_return): New.
2448 (TARGET_WARN_FUNC_RETURN): Define.
2449 * config/mcore/mcore.c (mcore_warn_func_return): New.
2450 (TARGET_WARN_FUNC_RETURN): Define.
2451 (saved_warn_return_type, saved_warn_return_type_count): Remove.
2452 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
2454 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2456 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
2457 function to implement assembler dialects.
2458 (output_asm_insn): Use do_assembler_dialects.
2459 (asm_fprintf): Likewise.
2461 2012-07-25 Richard Henderson <rth@redhat.com>
2464 * libfuncs.h: Don't include optabs.h.
2465 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
2466 * optabs.c (hash_libfunc): Don't cast members to int.
2467 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
2469 2012-07-25 Dodji Seketeli <dodji@redhat.com>
2471 * basic-block.c: Fix typo in comment.
2473 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
2474 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2476 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
2477 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
2478 (ix86_handle_option): Handle mprfchw option.
2479 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
2480 (x86_64-*-*): Likewise.
2481 * config/i386/prfchwintrin.h: New header.
2482 * config/i386/cpuid.h (bit_PRFCHW): New.
2483 (bit_BMI): Formatting fix.
2484 (bit_HLE): Likewise.
2485 (bit_RTM): Likewise.
2486 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2488 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
2489 * config/i386/i386.c (ix86_target_string): Define
2490 -mprfchw option. Formatting fixes.
2491 (PTA_HLE): Formatting fix.
2493 (ix86_option_override_internal): Handle new option.
2494 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
2495 * config/i386/i386.h (TARGET_PRFCHW): New.
2496 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
2497 * config/i386/i386.opt (mprfchw): New.
2498 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
2499 * config/i386/x86intrin.h: Include prfchwintrin.h.
2501 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
2503 * config/i386/i386.md (stack_protect_set): Disable the pattern
2504 for Android since Android libc (bionic) does not provide random
2505 value for stack protection guard at gs:0x14. Guard value
2506 will be provided from external symbol (default implementation).
2507 (stack_protect_set_<mode>): Likewise.
2508 (stack_protect_test): Likewise.
2509 (stack_protect_test_<mode>): Likewise.
2510 * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
2511 not have Bionic by default
2512 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
2513 Macro OPTION_BIONIC is defined in this file and provides Bionic
2514 accessibility status
2516 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
2518 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
2520 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2523 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
2524 (case ${target}): Add btver2.
2525 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2526 -march=native recognize btver2 processors.
2527 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2528 btver2 def_and_undef
2529 * config/i386/i386.c (struct processor_costs btver2_cost): New
2531 (m_BTVER2): New definition.
2532 (m_AMD_MULTIPLE): Includes m_BTVER2.
2533 (initial_ix86_tune_features): Add btver2 tune.
2534 (processor_target_table): Add btver2 entry.
2535 (static const char *const cpu_names): Add btver2 entry.
2536 (software_prefetching_beneficial_p): Add btver2.
2537 (ix86_option_override_internal): Add btver2 instruction sets.
2538 (ix86_issue_rate): Add btver2.
2539 (ix86_adjust_cost): Add btver2.
2540 * config/i386/i386.h (TARGET_BTVER2): New definition.
2541 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
2542 (enum processor_type): Add PROCESSOR_BTVER2.
2543 * config/i386/i386.md (define_attr "cpu"): Add btver2.
2545 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
2547 * doc/tm.texi: Regenerate.
2548 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
2549 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
2550 (default_finish_cost): Add prologue and epilogue costs.
2551 * targhooks.h (default_add_stmt_cost): Change parameter list.
2552 (default_finish_cost): Likewise.
2553 * target.def (init_cost): Change documentation string.
2554 (add_stmt_cost): Change documentation string and parameter list.
2555 (finish_cost): Likewise.
2556 * target.h (vect_cost_model_location): New enum.
2557 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
2558 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
2560 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
2561 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
2562 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
2563 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
2565 (struct _stmt_vec_info): Remove cost substruct.
2566 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
2567 (stmt_vinfo_set_outside_of_loop_cost): Remove.
2568 (builtin_vectorization_cost): New function.
2569 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
2570 (add_stmt_cost): Change parameter list.
2571 (finish_cost): Likewise.
2572 (vect_model_simple_cost): Likewise.
2573 (vect_model_store_cost): Likewise.
2574 (vect_model_load_cost): Likewise.
2575 (record_stmt_cost): Likewise.
2576 (vect_get_load_cost): Likewise.
2577 (vect_get_known_peeling_cost): Likewise.
2578 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
2579 list; call record_stmt_cost for prologue and epilogue costs.
2580 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
2581 prologue and epilogue costs; remove computation of vec_outside_cost;
2582 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
2583 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
2584 costs; call add_stmt_cost for prologue and epilogue costs.
2585 (vect_model_induction_cost): Revise call to add_stmt_cost for body
2586 costs; call add_stmt_cost for prologue costs.
2587 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
2588 list for function and arguments for calls to vect_get_load_cost and
2589 vect_get_store_cost.
2590 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
2591 vect_get_data_access_cost and vect_get_known_peeling_cost; use
2592 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
2593 latter call and discard their results; rename stmt_cost_vec to
2594 body_cost_vec; correct possible storage leak for body_cost_vec.
2595 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
2597 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
2598 body_cost_vec; add extra dummy parameter on calls to
2599 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
2600 argument list on call to add_stmt_cost.
2601 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
2602 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
2603 builtin_vectorization_cost; add "where" parameter on call to
2605 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
2606 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
2607 rename stmt_cost_vec to body_cost_vec.
2608 (vect_model_promotion_demotion_cost): Add vect_body argument to call
2609 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
2610 to stmt_vinfo_set_outside_of_loop_cost.
2611 (vect_model_store_cost): Change parameter list; call record_stmt_cost
2612 for prologue costs; add vect_body argument to call to record_stmt_cost;
2613 rename stmt_cost_vec to body_cost_vec; remove call to
2614 stmt_vinfo_set_outside_of_loop_cost.
2615 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
2616 vect_body argument to calls to record_stmt_cost.
2617 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
2618 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
2619 remove call to stmt_vinfo_set_outside_of_loop_cost.
2620 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
2621 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
2622 call record_stmt_cost for prologue costs.
2623 (vectorizable_store): Change argument list for call to
2624 vect_model_store_cost.
2625 (vectorizable_load): Change argument list for call to
2626 vect_model_load_cost.
2627 (new_stmt_vec_info): Remove assignment to
2628 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
2629 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
2630 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
2631 (spu_finish_cost): Add prologue and epilogue costs.
2632 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
2633 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
2634 (i386_finish_cost): Add prologue and epilogue costs.
2635 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
2637 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
2638 (rs6000_finish_cost): Add prologue and epilogue costs.
2639 * tree-vect-slp.c (vect_free_slp_instance): Rename
2640 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
2641 (vect_create_new_slp_node): Remove assignment to
2642 SLP_TREE_OUTSIDE_OF_LOOP_COST.
2643 (vect_get_and_check_slp_defs): Change parameter list; change argument
2644 lists to calls to vect_model_store_cost and vect_model_simple_cost.
2645 (vect_build_slp_tree): Change parameter list; change argument lists
2646 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
2647 recursive self-calls; remove setting of outside_cost from
2648 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
2650 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
2651 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
2652 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
2654 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
2655 body_cost_vec; handle null ci->stmt; add vect_body argument to call
2656 to add_stmt_cost; simplify calls to targetm.vectorize.
2657 builtin_vectorization_cost; return vec_prologue_cost and
2658 vec_epilogue_cost from finish_cost.
2659 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
2660 body_cost_vec; add vect_body argument to call to add_stmt_cost.
2662 2012-07-24 Richard Henderson <rth@redhat.com>
2664 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
2665 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2666 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2667 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2668 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
2670 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2671 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
2672 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
2673 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2674 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
2675 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
2676 * doc/tm.texi: Rebuild.
2678 2012-07-24 Richard Henderson <rth@redhat.com>
2680 * optabs.def: New file.
2681 * Makefile.in (OPTABS_H): Add insn-opinit.h.
2682 (MOSTLYCLEANFILES): Likewise.
2683 (insn-opinit.o): Remove reload.h
2684 (simple_rtl_generated_c): Remove insn-opinit.c.
2685 (s-opinit): New rule.
2686 (build/genopinit.o): Add optabs.def.
2687 * genopinit.c (rtx_upname): New.
2688 (optabs): Extract to optabs.def
2689 (enum optab_tag, struct optab_def_d, optabs): New.
2690 (struct pattern_d, patterns): New.
2691 (match_pattern): Split out from ...
2692 (gen_insn): ... here. Push matches on patterns vec.
2693 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
2694 (header_file_name, source_file_name, handle_arg): New.
2695 (open_outfile): New.
2696 (main): Sort and emit new tables. Generate lookup_handler,
2697 raw_optab_handler, swap_optab_enable.
2698 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
2699 * optabs.c (code_to_optab_): Remove.
2700 (hash_libfunc): Update for optab name change.
2701 (eq_libfunc): Likewise.
2702 (convert_optab_libfunc): Update computation of optab member;
2703 use the new convlib_def table.
2704 (optab_libfunc): Similarly.
2705 (set_optab_libfunc, set_conv_libfunc): Likewise.
2706 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
2707 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
2708 (init_optabs): Don't call them; export the data to optabs.def.
2709 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
2710 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
2711 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
2712 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
2713 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
2714 (gen_int_signed_fixed_libfunc): Likewise.
2715 (gen_int_unsigned_fixed_libfunc): Likewise.
2716 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
2717 (gen_ufloat_conv_libfunc): Likewise.
2718 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
2719 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2720 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
2721 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
2722 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
2723 (debug_optab_libfuncs): Update for optab representation change.
2724 * optabs.h: Include insn-opinit.h.
2725 (optab, convert_optab, direct_optab): New typedefs.
2726 (struct optab_handlers, struct widening_optab_handlers): Remove.
2727 (struct optab_libcall_d): Rename from optab_d; remove code_,
2728 handlers, widening members.
2729 (struct convert_optab_libcall_d): Rename from convert_optab_d;
2730 remove code_ and handlers members.
2731 (enum optab_index, enum convert_optab_index): Remove.
2732 (enum direct_optab_index): Remove.
2733 (code_to_optab_): Fix array range.
2734 (optab_to_code): Covert to inline function.
2735 (optab_to_code_, convlib_def, normlib_def): Declare.
2736 (raw_optab_handler, swap_optab_enable): Declare.
2737 (unknown_optab): Remove; export to optabs.def
2738 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
2739 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
2740 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
2741 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
2742 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
2743 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
2744 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
2745 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
2746 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
2747 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
2748 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
2749 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
2750 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
2751 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
2752 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
2753 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
2754 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
2755 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
2756 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
2757 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
2758 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
2759 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
2760 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
2761 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
2762 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
2763 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
2764 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
2765 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
2766 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
2767 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
2768 vec_realign_load_optab, vec_widen_umult_hi_optab,
2769 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
2770 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
2771 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
2772 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
2773 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
2774 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
2775 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
2776 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
2777 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
2778 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
2779 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
2780 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
2781 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
2782 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
2783 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
2784 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
2785 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
2786 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
2787 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
2788 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
2789 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
2790 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
2791 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
2792 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
2793 atomic_exchange_optab, atomic_compare_and_swap_optab,
2794 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
2795 atomic_sub_fetch_optab, atomic_and_fetch_optab,
2796 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
2797 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
2798 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
2799 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
2800 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
2801 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
2802 atomic_thread_fence_optab, atomic_signal_fence_optab,
2803 vec_perm_optab, vec_perm_const_optab): Likewise.
2804 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
2805 and x_direct_optab_table members; add pat_enable.
2806 (optab_table, convert_optab_table, direct_optab_table): Remove.
2807 (optab_handler): Use raw_optab_handler.
2808 (widening_optab_handler, convert_optab_handler): Likewise.
2809 (set_optab_handler, set_widening_optab_handler): Remove.
2810 (set_convert_optab_handler, set_direct_optab_handler): Remove.
2811 (direct_optab_handler): Defer to optab_handler.
2812 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
2814 2012-07-24 Jason Merrill <jason@redhat.com>
2816 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
2817 match MEM_STAT_DECL.
2818 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
2820 2012-07-24 Richard Henderson <rth@redhat.com>
2822 * optabs.h (struct optab_d): Rename code member to code_.
2823 (struct convert_optab_h): Likewise.
2824 (code_to_optab_): Rename from code_to_optab.
2825 (code_to_optab, optab_to_code): New.
2826 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
2827 * ifcvt.c (noce_emit_move_insn): Likewise.
2828 * optabs.c (simplify_expand_binop): Use optab_to_code.
2829 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
2830 (avoid_expensive_constant, expand_binop_directly): Likewise.
2831 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
2832 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
2833 (have_insn_for, debug_optab_libfuncs): Likewise.
2834 (init_optab, init_optabv, init_convert_optab): Update for optab
2837 * libfuncs.h: Include optabs.h.
2838 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
2839 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
2840 (lto-streamer-in.o, dwarf2out.o): Update deps.
2842 * optabs.h (unknown_optab): New.
2843 * builtins.c (interclass_mathfn_icode): Use it.
2844 * dojump.c (do_compare_rtx_and_jump): Likewise.
2845 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
2846 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
2847 (expand_vector_operations_1): Likewise.
2848 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
2849 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
2851 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
2853 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
2855 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2858 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
2860 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
2862 ("neon_vld3_lane<mode>":VMQ): Likewise.
2863 ("neon_vld3_dup<mode>":VDX): Likewise.
2864 ("neon_vst3_lane<mode>":VD): Likewise.
2865 ("neon_vst3_lane<mode>":VMQ): Likewise.
2867 2012-07-24 Roland McGrath <mcgrathr@google.com>
2869 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
2870 stack alignment padding.
2872 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
2875 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
2876 negative constant address for TARGET_X32 ...
2877 (ix86_decompose_address): ... here. Reject constant addresses
2878 that don't satisfy x86_64_immediate_operand predicate.
2880 2012-07-24 Julian Brown <julian@codesourcery.com>
2882 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
2884 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
2886 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
2887 Move test to check that there is a popcount function for the the number
2888 of bits in SBITMAP_ELT_BITS to sbitmap.c.
2889 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
2890 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
2892 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
2893 * configure: Regenerate.
2894 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
2895 (GCC_MEM_STAT_ARGUMENTS): New define.
2896 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
2897 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
2898 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
2899 FINAL_PASS_MEM_STAT): Define.
2900 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
2901 * ggc.h (ggc_record_overhead, ggc_free_overhead,
2902 ggc_prune_overhead_list): Remove internal prototypes, they are defined
2903 already in ggc-internal.h.
2904 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
2906 (add_statistics): Likewise.
2907 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
2908 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
2909 wrappers around "survived" and "stats" members.
2910 (alloc_large_page): Always initialize survived.
2911 (ggc_internal_alloc_zone_stat): Likewise.
2912 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
2913 GATHER_STATISTICS is non-0.
2914 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
2915 (sweep_pages): Always increase survived.
2916 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
2917 (calculate_average_page_survival): Always define.
2918 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
2919 (ggc_print_statistics): Likewise.
2920 (ggc_pch_read): Likewise.
2921 * ggc-page.c (struct globals): Always define "stats" member.
2922 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
2923 (ggc_free): Likewise.
2924 (ggc_collec): Likewise.
2925 (ggc_print_statistics): Likewise.
2926 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
2927 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
2928 * gimple.h (enum gimple_alloc_kind): Always define.
2929 (gimple_alloc_kind): Likewise.
2930 * tree-flow.h (phinodes_print_statistics): Always define.
2931 (ssanames_print_statistics): Likewise.
2932 * vec.h (vec_heap_free): Always define.
2933 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
2934 * alloc-pool.c (alloc_pool_descriptor): Always define.
2935 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
2936 (empty_alloc_pool): Likewise.
2937 (pool_alloc): Likewise.
2938 (pool_free): Likewise.
2939 (dump_alloc_pool_statistics): Likewise.
2940 (print_statistics): Always define.
2941 * bitmap.c (struct bitmap_descriptor): Always define.
2942 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
2943 (register_overhead): Always define.
2944 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
2945 (bitmap_element_allocate): Likewise.
2946 (bitmap_elt_clear_from): Likewise.
2947 (bitmap_obstack_alloc_stat): Likewise.
2948 (bitmap_gc_alloc_stat): Likewise.
2949 (bitmap_obstack_free): Likewise.
2950 (bitmap_find_bit): Likewise.
2951 (bitmap_ior_and_into): Likewise.
2952 (bitmap_print): Likewise.
2953 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
2954 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
2955 (gimple_alloc_kind_names): Likewise.
2956 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
2957 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
2958 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
2959 rtvec_alloc_sizes): Always define.
2960 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
2961 (rtx_alloc_stat): Likewise.
2962 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
2963 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
2964 tree_node_sizes, tree_node_kind_names): Always define.
2965 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
2967 (type_hash_canon): Likewise.
2968 (dump_tree_statistics): Likewise.
2969 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
2971 (ssanames_print_statistics): Likewise.
2972 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
2973 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
2974 (phinodes_print_statistics): Likewise.
2975 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
2976 * vec.c (struct vec_descriptor): Always define.
2977 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
2978 vec_descriptor, rester_overhead, free_overhead): Likewise.
2979 (cmp_statistic): Likewise.
2980 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
2981 (vec_heap_o_reserve_1): Likewise.
2982 (dump_vec_loc_statistics): Likewise.
2984 2012-07-24 Richard Guenther <rguenther@suse.de>
2986 PR tree-optimization/53616
2987 * tree-loop-distribution.c (ldist_gen): Do not change
2988 partition ordering when merging partitions.
2990 2012-07-24 Alan Modra <amodra@gmail.com>
2994 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
2995 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
2996 Adjust all rs6000_legitimate_offset_address_p calls.
2997 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
2998 (rs6000_secondary_reload_gpr): Declare.
2999 (rs6000_legitimate_offset_address_p): Update prototype.
3000 (rs6000_offsettable_memref_p): Delete.
3001 (rs6000_secondary_reload_ppc64): Delete.
3002 * config/rs6000/rs6000.c (address_offset): New function.
3003 (mem_operand_gpr): Likewise.
3004 (rs6000_legitimate_offset_address_p): Add worst_case param. When
3005 not worst_case assume class of regs with least restrictive offsets.
3007 (legitimate_lo_sum_address_p): Simplify register mode tests.
3008 (rs6000_legitimize_address): Likewise. Assume best case offset
3009 addressing. Combine ELF and MACHO lo_sum code.
3010 (rs6000_mode_dependent_address): Correct offset addressing limits.
3011 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
3012 Use reg_mode to help rs6000_legitimate_offset_address_p.
3013 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
3014 gpr load/store when offset too large.
3015 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
3016 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
3017 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
3018 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
3019 d->m,m->d,d->d. Correct size of gpr load/store.
3020 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
3022 (movti_ppc64): Likewise.
3023 (movdi_internal32): Likewise. Also disparage fprs.
3024 (movdi_mfpgpr, movdi_internal64): Likewise.
3025 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
3026 (movtf_softfloat): Order alternatives.
3027 (extenddftf2_internal): Use 'm' and 'Y' for store.
3028 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
3029 (stack_protect_setdi, stack_protect_testdi): Likewise.
3030 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
3031 (movdf_softfloat64): Likewise.
3032 (reload_<mode>_store): Adjust reload_di_store to provide
3033 reload_si_store as well.
3034 (reload_<mode>_load): Likewise.
3036 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3039 * config/sh/predicates.md (general_movsrc_operand,
3040 general_movdst_operand): Reject T_REG.
3041 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
3042 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
3043 Remove T_REG alternatives.
3044 (*negtstsi): New insn.
3046 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3049 * config/sh/sh.md (mulsf3_ie): Delete.
3050 (mulsf3_i4): Rename to mulsf3_i.
3051 (mulsf3): Emit mulsf3_i insn.
3053 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
3055 * config/sh/sh.md (addc1, subc1): Delete.
3056 (adddi3_compact): Use addc instead of addc1.
3057 (subdi3_compact): Use subc instead of subc1.
3059 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
3061 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
3062 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
3063 split_cost argument signed.
3064 (ix86_avoid_lea_for_add): Cleanup.
3065 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
3066 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
3067 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
3069 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
3071 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
3073 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
3076 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
3077 * config/i386/i386.c (ix86_print_operand_address): Ditto.
3078 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
3079 addresses. Prevent zero extensions of CONST_INT operands.
3081 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
3083 * sbitmap.h (struct int_list): Remove.
3084 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
3085 Remove prototypes of non-existing function.
3086 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
3087 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
3089 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
3090 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
3091 * basic-block.h: ... here.
3092 * sbitmap.c: Do not include basic-block.h.
3093 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
3094 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
3095 * cfganal.c: ... here.
3096 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
3097 * gcse.c (compute_code_hoist_vbeinout): Likewise.
3098 * lcm.c (compute_antinout_edge, compute_available): Likewise.
3099 * Makefile.in: Fix sbitmap.o dependencies.
3101 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3102 Nick Clifton <nickc@redhat.com>
3104 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
3105 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
3106 (unused) parameter to void *.
3108 2012-07-23 Richard Guenther <rguenther@suse.de>
3110 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
3111 instead of referenced vars.
3113 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
3115 * coverage.c: Refer to "notes file" instead of "graph file"
3116 in all comments. Explain history of bbg prefix.
3117 * gcov-io.h: Likewise.
3119 (find_source): Likewise in fnotice.
3120 (read_graph_file): Likewise.
3121 (read_count_file): Likewise.
3122 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
3123 and "data file" explicitly in the explanation of the files.
3125 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
3127 PR tree-optimization/53881
3128 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
3129 for each label and compare them instead of labels.
3131 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
3133 * opts.c (common_handle_option): Do not set
3134 flag_value_profile_transformations for -fprofile-generate.
3135 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
3136 (BB_TO_GCOV_INDEX): Remove.
3137 (output_location): Don't use it.
3138 (branch_prob): Likewise. Don't fiddle with the index of
3139 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
3140 (find_spanning_tree):
3141 * gcov.c (struct function_info): Document that blocks 0 and 1
3142 are the entry resp. exit blocks in gcov, too, like in GCC itself.
3143 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
3144 blocks identification.
3145 (output_lines): Likewise.
3146 * value-prof.c (gimple_value_profile_transformations): Do not
3147 test flag_value_profile_transformations again.
3148 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
3149 transformation functions.
3150 (gimple_values_to_profile):
3151 Don't test flag_value_profile_transformations
3152 * tree-profile.c (tree_profiling): Assert that the cgraph is in
3153 the CGRAPH_STATE_IPA_SSA state.
3154 Do not set, or look at, after_tree_profile.
3155 * function.h (struct function): Remove after_tree_profile bit.
3156 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
3157 * tree-inline.c (initialize_cfun): Don't copy it.
3158 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
3159 * lto-streamer-in.c (input_struct_function_base): Likewise.
3161 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
3163 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
3164 (SH_DYNAMIC_SHIFT_COST): Use it.
3165 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
3166 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
3167 Add sanity check for input value. Add function description.
3168 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
3169 lshrsi3_d): Use TARGET_DYNSHIFT.
3171 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
3173 * config/sh/sh.md (negc): Delete expander.
3174 (*negc): Rename insn to negc.
3176 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
3179 * config/i386/i386.md (*lea): New insn pattern.
3181 (*lea<mode>_2): Ditto.
3182 (*lea_{3,4,5,6}_zext): Ditto.
3183 * config/i386/predicates.md (lea_address_operand): Do not reject
3184 zero-extended address operands.
3185 * config/i386/constraints.md (j): Remove address constraint.
3186 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
3188 (ix86_print_operand_address): Handle SImode subreg of an address.
3189 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
3191 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
3193 Emit executable-stack note correctly for CRIS targets.
3194 * config/cris/cris.c (cris_file_end): New function.
3195 (TARGET_ASM_FILE_END): Define.
3197 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
3198 Maxim Kuvyrkov <maxim@codesourcery.com>
3199 NetLogic Microsystems Inc.
3201 * config/mips/mips.c (mips_issue_rate): Handle XLP.
3202 * config/mips/mips.md: Include xlp.md.
3203 * config/mips/xlp.md: New file.
3205 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
3207 PR gcov-profile/32543
3208 * profile.c (branch_prob): Update total_num_edges_instrumented and
3209 report the number of edges to instrument.
3211 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
3213 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
3215 2012-07-21 Andrew Pinski <apinski@cavium.com>
3217 * config/mips/mips.md (*popcountdi2_trunc): New pattern
3218 to handle popcount of a truncation.
3220 2012-07-21 Andrew Pinski <apinski@cavium.com>
3222 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
3223 Add a bool argument.
3224 * config/mips/mips.c (mips_block_move_straight): Update call to
3225 mips_expand_ext_as_unaligned_load.
3226 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
3227 Accept DImode dest when the width is that of SImode.
3228 * config/mips/mips.md (extv): Update call to
3229 mips_expand_ext_as_unaligned_load.
3232 2012-07-21 Andrew Pinski <apinski@cavium.com>
3234 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
3237 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
3239 * config/mips/mips.md (define_attr sync_*): Move before "type".
3240 (define_attr "type"): New values "atomic" and "syncloop".
3241 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
3242 Set "type" attribute.
3243 * config/mips/generic.md (generic_atomic, generic_syncloop):
3245 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
3246 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
3247 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
3248 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
3249 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
3250 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
3251 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
3252 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
3253 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
3255 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
3257 * config/sh/sh.md: Group and sort shift related patterns.
3258 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
3260 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
3262 * config/cris/cris.c (cris_asm_output_ident): Remove unused
3263 local variables section_asm_op, size, buf.
3265 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
3266 Steven Bosscher <steven@gcc.gnu.org>
3268 * config/rs6000/power4.md (power4-store-update): Fix reservation.
3269 (power4-three): Likewise.
3271 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
3272 Greta Yorsh <Greta.Yorsh@arm.com>
3274 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
3275 * config/arm/arm-cores.def (cortex-a15): Use it.
3277 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
3278 Greta Yorsh <Greta.Yorsh@arm.com>
3280 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
3281 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
3282 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
3283 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
3284 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
3285 (arm_fa726te_tune): Likewise.
3287 2012-07-20 Richard Guenther <rguenther@suse.de>
3289 * tree-dfa.c (collect_dfa_stats): Simplify.
3290 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
3292 * cfgexpand.c (estimated_stack_frame_size): Walk over local
3293 decls instead of referenced vars.
3294 * tree-ssa.c (delete_tree_ssa): Simplify.
3295 * tree-tailcall.c (find_tail_calls): Walk over local decls
3296 instead of referenced vars.
3297 (add_virtual_phis): Remove.
3298 (tree_optimize_tail_calls_1): Instead mark the virtual operand
3301 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
3303 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
3304 (brief_dump_cfg): Update prototype to take flags argument.
3305 (check_bb_profile): Remove prototype.
3306 * tracer.c (tracer): Update brief_dump_cfg calls.
3307 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
3308 Call dump_bb_info before and after the cfghook dump_bb. Terminate
3309 the dump with a newline.
3310 (dump_flow_info): Do not call check_bb_profile.
3311 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
3312 (check_bb_profile): Make static. Take indent and flags arguments.
3313 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
3314 check_bb_profile. Print one edge per line.
3315 (brief_dump_cfg): Take a flags argument, and filter out
3316 TDF_COMMENT and TDF_DETAILS.
3317 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
3318 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
3319 dump_bb_info here, it is already called from dump_bb. Idem for
3321 (dump_gimple_bb_footer): Likewise.
3322 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
3323 avoid broken dumps for statement histograms.
3324 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
3325 not call pp_flush here, the buffer should be empty.
3326 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
3327 * sched-vis.c (debug_bb_slim): Likewise.
3328 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
3329 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
3330 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
3331 (dump_function_to_file): Do not call check_bb_profile on
3332 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
3333 Use dump_bb instead of gimple_dump_bb.
3334 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
3335 * passes.c (execute_function_dump): Always call print_rtl_with_bb
3337 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
3338 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
3339 bottom of each basic block.
3341 2012-07-20 Richard Guenther <rguenther@suse.de>
3343 PR tree-optimization/54031
3344 * tree-ssa-ccp.c (get_value_from_alignment): Use
3345 get_pointer_alignment_1.
3347 2012-07-20 Richard Guenther <rguenther@suse.de>
3349 * tree-inline.c (add_local_variables): Remove check_var_ann
3350 parameter and dead code.
3351 (expand_call_inline): Adjust.
3352 (tree_function_versioning): Likewise.
3354 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3357 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
3358 of just the first one.
3360 2012-07-20 Richard Guenther <rguenther@suse.de>
3362 * builtins.c (get_object_alignment_2): Correct offset handling
3363 when using type alignment of a MEM_REF kind base.
3365 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
3368 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
3369 (_lzcnt_u64): Ditto.
3371 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3373 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
3375 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3377 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
3378 defining statement is a SSA name that occurs in abnormal PHIs.
3380 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
3382 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
3385 2012-07-19 Jakub Jelinek <jakub@redhat.com>
3387 PR rtl-optimization/53942
3388 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
3389 directly from likely spilled non-fixed hard registers, move them
3392 2012-07-19 Steve Ellcey <sellcey@mips.com>
3394 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
3397 2012-07-19 Jason Merrill <jason@redhat.com>
3400 * dwarf2out.c (get_die_parent): New.
3401 (generate_type_signature): Use it.
3403 2012-07-19 Richard Henderson <rth@redhat.com>
3405 * config/ia64/vect.md (smulv4hi3_highpart): New.
3406 (umulv4hi3_highpart): New.
3407 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
3408 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
3409 (udot_prodv8qi, sdot_prodv8qi): Remove.
3410 (sdot_prodv4hi, udot_prodv4hi): Remove.
3411 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
3412 * config/ia64/ia64-protos.h: Update.
3414 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
3415 vectors larger than UNITS_PER_WORD.
3417 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
3418 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
3419 dummy != CODE_FOR_nothing value.
3421 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
3423 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
3424 * doc/tm.texi: Regenerate.
3425 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
3426 * config/sh/sh.h (MODE_AFTER): Update.
3427 * config/epiphany/epiphany.h (MODE_AFTER): Update.
3429 2012-07-19 Jakub Jelinek <jakub@redhat.com>
3432 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
3433 (cleanup_tree_cfg_bb): Don't call it.
3434 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
3437 2012-07-19 Christian Bruel <christian.bruel@st.com>
3440 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
3442 2012-07-19 Richard Guenther <rguenther@suse.de>
3443 Eric Botcazou <ebotcazou@adacore.com>
3445 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
3446 about transition from invariant to known bits.
3447 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
3449 2012-07-19 Richard Guenther <rguenther@suse.de>
3451 PR tree-optimization/53970
3452 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
3454 2012-07-19 Tristan Gingold <gingold@adacore.com>
3455 Richard Henderson <rth@redhat.com>
3457 * opts.c (finish_options): Handle UI_SEH.
3458 * expr.c (build_personality_function): Handle UI_SEH.
3459 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
3460 * coretypes.h (unwind_info_type): Add UI_SEH.
3461 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
3463 (i386_pe_seh_init_sections): Likewise.
3464 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
3465 (TARGET_ASM_INIT_SECTIONS): Define.
3466 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3467 (i386_except_unwind_info): New function.
3469 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
3470 Chao-ying Fu <fu@mips.com>
3472 * config/mips/mips.opt (mmcu): New option.
3473 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
3474 _mips_mcu when TARGET_MCU.
3475 (ASM_SPEC): Pass mcu options to the assembler.
3476 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
3478 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
3480 * config.gcc (v850-*-rtems*): New target.
3481 * config/v850/rtems.h: New.
3482 * config/v850/t-rtems: New.
3484 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
3486 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
3487 of flags controlling optimization; add -ftree-slsr to list of flags
3488 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
3489 enabled by default at -O2; add -fvect-cost-model to list of flags
3490 enabled by default at -O3; document -fhoist-adjacent-loads and
3492 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
3493 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
3495 * common.opt: Add -ftree-slsr with flag_tree_slsr.
3497 2012-07-18 Jie Zhang <jzhang918@gmail.com>
3498 Julian Brown <julian@codesourcery.com>
3500 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
3501 (arm_size_rtx_costs): Likewise.
3502 (neon_valid_immediate): Add a case for double 0.0.
3504 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
3505 Mark Shinwell <shinwell@codesourcery.com>
3506 Julian Brown <julian@codesourcery.com>
3508 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
3509 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
3510 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
3511 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
3513 * config/arm/arm.md (neon_type): Update comment.
3515 2012-07-18 Richard Guenther <rguenther@suse.de>
3517 PR tree-optimization/53970
3518 * tree.h (contains_packed_reference): Remove.
3519 * expr.c (contains_packed_reference): Likewise.
3520 * tree-vect-data-refs.c (not_size_aligned): New function.
3521 (vector_alignment_reachable_p): Use it.
3522 (vect_supportable_dr_alignment): Likewise.
3524 2012-07-18 Richard Guenther <rguenther@suse.de>
3526 * tree.h (get_object_or_type_alignment): Remove.
3527 * builtins.c (get_object_alignment_2): New function copied from
3528 get_object_alignment_1. Take extra argument to indicate whether
3529 we take the address of EXP. Rework to use type alignment information
3530 if not, and return whether the result is an approximation or not.
3531 (get_object_alignment_1): Wrap around get_object_alignment_2.
3532 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
3533 we take the address.
3534 (get_object_or_type_alignment): Remove.
3535 * expr.c (expand_assignment): Call get_object_alignment.
3536 (expand_expr_real_1): Likewise.
3538 2012-07-18 Nick Clifton <nickc@redhat.com>
3540 * doc/invoke.texi (ARM Options): Document -munaligned-access.
3542 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
3544 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
3545 expander. Use arith_reg_dest predicate.
3546 (rotldi3, rotrdi3): Remove constraints in expander.
3547 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
3548 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
3551 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
3554 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
3556 * config/sh/sh.c (sh_option_override): Do not change
3557 flag_finite_math_only. Set TARGET_IEEE to complement of
3558 flag_finite_math_only.
3559 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
3560 of mieee and mno-ieee behavior.
3562 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
3564 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
3566 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
3568 * dumpfile.h (TDF_COMMENT): New define.
3569 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
3570 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
3571 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
3572 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
3573 Move to new file cfg-flags.h.
3574 (enum cfg_edge_flags): New enum, using cfg-flags.h.
3575 (EDGE_ALL_FLAGS): Compute value automatically.
3576 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
3577 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
3578 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
3579 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
3580 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
3581 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
3582 (BB_ALL_FLAGS): New, compute value automatically.
3583 (dump_bb_info): Update prototype.
3584 (dump_edge_info): Update prototype.
3585 * cfg-flags.h: New file.
3586 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
3587 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
3588 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
3589 (debug_bb): Update dump_bb call.
3590 (dump_cfg_bb_info): Remove.
3591 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
3592 Adjust verbosity using TDF_* flags. Check that the basic block flags
3593 are within the range of BB_ALL_FLAGS.
3594 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
3595 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
3596 first for consistency with other dump functions.
3597 (dump_bb): Update prototype accordingly.
3598 * cfghooks.c: Include dumpfile.h.
3599 (verify_flow_info): Update dump_edge_info calls.
3600 (dump_bb): Take a flags argument and pass it around.
3601 Use dump_bb_info to dump common information about a basic block.
3602 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
3603 (debug_flow_info): Moved here from cfgrtl.c.
3604 * profile.c (is_edge_inconsistent): Update dump_bb calls.
3605 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
3606 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
3607 print_rtl_slim_with_bb): Remove prototypes.
3608 (dump_insn_slim): Adjust prototype to take a const_rtx.
3609 (print_rtl_with_bb): Adjust prototype.
3610 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
3611 * sched-vis.c (dump_insn_slim): Take a const_rtx.
3612 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
3613 (print_rtl_slim_with_bb): Remove.
3614 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
3615 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
3616 for that. Prototype here near DEBUG_FUNCTION marker.
3617 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
3619 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
3620 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
3621 (remove_bb): Update dump_bb call.
3622 (gimple_debug_bb): Use dump_bb.
3623 (dump_function_to_file): Update gimple_dump_bb call.
3624 (print_loops_bb): Likewise.
3625 * tree-flow.h (gimple_dump_bb): Update prototype.
3626 * gimple-pretty-print.c (dump_bb_header): Rename to
3627 dump_gimple_bb_header. Write to a stream instead of a pretty
3628 printer. Use dump_bb_info to dump basic block info.
3629 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
3630 stream instead of a pretty printer. Use dump_bb_info.
3631 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
3632 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
3633 dump_gimple_bb_footer.
3634 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
3635 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
3636 (print_rtl_with_bb): Take a flags argument and pass it around.
3637 Use dump_insn_slim if TDF_SLIM.
3638 (dump_bb_info): Removed and re-incarnated in cfg.c.
3639 (dump_flow_info): Moved to cfghooks.c.
3640 (debug_flow_info): Moved to cfghooks.c.
3641 * passes.c (execute_function_dump): Unconditionally use
3642 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
3643 * final.c (dump_basic_block_info): Update dump_edge_info calls.
3644 * tree-vrp.c (dump_asserts_for): Likewise.
3645 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
3646 * tree-if-conv.c (if_convertible_bb_p): Don't look at
3647 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
3648 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
3649 for the same reason.
3650 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
3652 2012-07-17 Richard Guenther <rguenther@suse.de>
3654 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
3655 vars here, use create_tmp_reg where appropriate.
3656 (vect_create_addr_base_for_vector_ref): Do not add referenced
3657 vars here, use create_tmp_reg where appropriate.
3658 (vect_create_data_ref_ptr): Likewise.
3659 (vect_create_destination_var): Likewise.
3660 (vect_permute_store_chain): Likewise.
3661 (vect_permute_load_chain): Likewise.
3662 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3664 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3665 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
3666 (vect_handle_widen_op_by_const): Likewise.
3667 * tree-vect-stmts.c (vect_init_vector): Likewise.
3668 (vectorizable_load): Likewise.
3670 2012-07-17 Tom de Vries <tom@codesourcery.com>
3672 * hwint.c: Fix loop range.
3674 2012-07-17 Tom de Vries <tom@codesourcery.com>
3676 * double-int.h (double_int_popcount): New inline function.
3677 * hwint.c (popcount_hwi): New function.
3678 * hwint.h (popcount_hwi): Declare function. New inline function.
3680 2012-07-17 Richard Henderson <rth@redhat.com>
3682 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
3684 (vectorizable_conversion): Update supportable_widening_operation call.
3685 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
3686 (vect_recog_widen_shift_pattern): Likewise.
3687 * tree-vectorizer.h: Update decl.
3689 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3690 Ulrich Weigand <ulrich.weigand@linaro.org>
3692 * common/config/arm/arm-common.c (arm_option_optimization_table):
3693 Enable -fsched-pressure by default while optimizing.
3694 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
3695 pressure algorithm by default.
3697 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
3699 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
3700 (CONST_OK_FOR_I10): Move macro to ...
3701 * config/sh/sh.c: ... here.
3702 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
3705 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
3707 * config/sh/sh.md: Delete mov related define_peephole patterns.
3709 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
3712 * doc/install.texi (Installing GCC): Refer to instructions for
3713 released versions. Fix hyphenation.
3715 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3717 * config/spu/spu.c (targetm): Move to bottom of file.
3718 (spu_attribute_table): Likewise.
3719 (spu_option_override, spu_init_builtins, spu_builtin_decl,
3720 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
3721 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
3722 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
3723 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
3724 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
3725 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
3726 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
3727 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
3728 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
3729 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
3730 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
3731 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
3732 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
3733 spu_encode_section_info, spu_legitimize_address,
3734 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
3735 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
3736 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
3737 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
3738 spu_section_type_flags, spu_select_section, spu_unique_section,
3739 spu_trampoline_init, spu_conditional_register_usage,
3740 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
3741 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
3742 spu_setup_incoming_varargs): Remove prototypes.
3743 (spu_legitimize_address): Add "static" to definition.
3745 2012-07-16 Jakub Jelinek <jakub@redhat.com>
3747 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
3749 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
3751 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
3752 before calling gsi_stmt.
3754 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
3757 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
3759 * config/i386/i386.md (stack_protect_set): Disable the pattern
3760 for Android since Android libc (bionic) does not provide random
3761 value for stack protection guard at gs:0x14. Guard value
3762 will be provided from external symbol (default implementation).
3763 (stack_protect_set_<mode>): Likewise.
3764 (stack_protect_test): Likewise.
3765 (stack_protect_test_<mode>): Likewise.
3767 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
3771 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
3774 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
3776 * opts.c (default_option): Add -fvect-cost-model to default options
3779 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3781 * graphite-clast-to-gimple.c, graphite-dependences.c,
3782 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
3783 for pass TODO flags.
3784 * Makefile.in: Fix dependencies.
3786 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3788 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
3789 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3791 * function.c (stack_protect_epilogue): Use expand_call to expand
3792 targetm.stack_protect_fail.
3793 * stmt.c (expand_expr_stmt): Remove now-unused function.
3794 * tree.h (expand_expr_stmt): Remove prototype.
3795 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
3796 hook must return a CALL_EXPR.
3797 * doc/tm.texi: Regenerate.
3799 * emit-rtl.c (emit_label_before): Do not allow the same label
3800 to be emitted twice.
3801 (emit_label_after): Likewise.
3802 (emit_label): Likewise.
3804 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
3805 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
3806 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
3807 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
3809 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3811 * system.h (dump_file): Do not define.
3812 * tree-pass.h: Include dumpfile.h, which is a new file containing...
3813 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
3814 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
3815 dump_flag_name, dump_file, dump_flags, dump_file_name,
3816 get_dump_file_info, struct dump_file_info): all of this, moved to...
3817 * dumpfile.h: Here, new file.
3818 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
3819 (dump_stmt): Remove prototype for C++ specific function.
3820 (dump_enumerated_decls): Move prototype from here...
3821 * tree-flow.h (dump_enumerated_decls): ... to here.
3822 (get_ref_base_and_extent) Move prototype from here ...
3823 * tree.h (get_ref_base_and_extent) ... to here.
3824 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
3825 gimple-pretty-print.h is enough. Do not include tree-dump.h,
3826 include timevar.h and dumpfile.h instead.
3827 (struct numbered_tree_d, compare_decls_by_uid,
3828 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
3829 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
3830 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
3831 Do not include timevar.h.
3832 * tree.c: Do not include timevar.h.
3833 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
3835 (dump_cfg_stats): Use current_function_name.
3836 (gimple_cfg2vcg): Likewise.
3837 (dump_function_to_file): Likewise.
3838 * df-scan.c: Do not include tree-pass.h and timevar.h.
3840 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
3841 use print_current_pass.
3842 * df-problems.c: Include dumpfile.h.
3843 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
3844 leads to errors in the code not selected.
3845 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
3846 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
3847 * lcm.c: Include dumpfile.h.
3848 Remove obsolete include of insn-attr.h.
3849 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
3850 missing probability notes.
3851 * stmt.c: Include dumpfile.h.
3852 (emit_case_decision_tree): Re-enable printing expand details only
3854 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
3855 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
3856 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
3857 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
3858 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
3859 function.c, fwprop.c, gcse.c, gimple-fold.c,
3860 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
3861 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
3862 graphite-dependences.c, graphite-interchange.c,
3863 graphite-optimize-isl.c, graphite-poly.c,
3864 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
3865 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
3866 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
3867 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
3868 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
3869 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
3870 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
3871 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
3872 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
3873 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
3874 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
3875 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
3876 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
3877 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
3878 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
3879 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
3880 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
3881 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
3882 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
3883 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
3884 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
3885 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
3886 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
3887 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
3888 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
3889 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3890 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3891 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
3892 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
3893 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
3894 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
3895 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
3896 tree-ssa-uncprop.c, tree-ssa-uninit.c,
3897 tree-switch-conversion.c, tree-tailcall.c,
3898 tree-vect-data-refs.c, tree-vect-loop.c,
3899 tree-vect-loop-manip.c, tree-vectorizer.c,
3900 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
3901 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
3902 only if needed. If tree-pass.h is included, do not include timevar.h
3903 and dumpfile.h. If tree-pass.h is not included but dump_file, or
3904 dump_flags, or the TDF_* flags are used, include dumpfile.h.
3905 If gimple-pretty-print.h is included, don't include
3906 tree-pretty-print.h. Remove assorted unnecessary includes.
3908 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
3909 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
3910 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
3912 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
3913 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
3914 spu/t-spu-elf: Fix dependencies.
3916 2012-07-16 Dehao Chen <dehao@google.com>
3919 2012-07-10 Dehao Chen <dehao@google.com>
3921 * tree.h (phi_arg_d): New field.
3922 * tree-flow-inline.h (gimple_phi_arg_block): New function.
3923 (gimple_phi_arg_block_from_edge): New function.
3924 (gimple_phi_arg_set_block): New function.
3925 (gimple_phi_arg_has_block): New function.
3926 (redirect_edge_var_map_block): New function.
3927 * tree-flow.h (_edge_var_map): New field.
3928 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
3929 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
3930 redirect_edge_var_map_add.
3931 * tree-outof-ssa.c (_elim_graph): New field.
3932 (insert_partition_copy_on_edge): New parameter.
3933 (insert_value_copy_on_edge): New parameter.
3934 (insert_rtx_to_part_on_edge): New parameter.
3935 (insert_part_to_rtx_on_edge): New parameter.
3936 (elim_graph_add_edge): New parameter.
3937 (elim_graph_remove_succ_edge): New parameter.
3938 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
3939 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
3940 (new_elim_graph): Add block debug info.
3941 (clear_elim_graph): Likewise.
3942 (delete_elim_graph): Likewise.
3943 (elim_graph_add_node): Likewise.
3944 (elim_graph_add_edge): Likewise.
3945 (elim_graph_remove_succ_edge): Likewise.
3946 (eliminate_build): Likewise.
3947 (elim_forward): Likewise.
3948 (elim_unvisited_predecessor): Likewise.
3949 (elim_backward): Likewise.
3950 (elim_create): Likewise.
3951 (eliminate_phi): Likewise.
3952 (insert_backedge_copies): Likewise.
3953 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
3955 (rewrite_add_phi_arguments): Likewise.
3956 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
3957 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3958 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
3959 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
3960 * tree-ssa-loop-manip.c (create_iv): Likewise.
3961 (add_exit_phis_edge): Likewise.
3962 (split_loop_exit_edge): Likewise.
3963 (copy_phi_node_args): Likewise.
3964 (tree_transform_and_unroll_loop): Likewise.
3965 * value-prof.c (gimple_ic): Likewise.
3966 (gimple_stringop_fixed_value): Likewise.
3967 * tree-tailcall.c (add_successor_phi_arg): Likewise.
3968 (eliminate_tail_call): Likewise.
3969 (create_tailcall_accumulator): Likewise.
3970 (tree_optimize_tail_calls_1): Likewise.
3971 * tree-phinodes.c (add_phi_arg): Likewise.
3972 (make_phi_node): Likewise.
3973 (resize_phi_node): Likewise.
3974 (remove_phi_arg_num): Likewise.
3975 * omp-low.c (expand_parallel_call): Likewise.
3976 (expand_omp_for_static_chunk): Likewise.
3977 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
3979 (slpeel_update_phi_nodes_for_guard1): Likewise.
3980 (slpeel_update_phi_nodes_for_guard2): Likewise.
3981 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3982 (set_prologue_iterations): Likewise.
3983 (slpeel_tree_peel_loop_to_edge): Likewise.
3984 (vect_loop_versioning): Likewise.
3985 * tree-parloops.c (create_phi_for_local_result): Likewise.
3986 (transform_to_exit_first_loop): Likewise.
3987 (create_parallel_loop): Likewise.
3988 * ipa-split.c (split_function): Likewise.
3989 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
3990 (vect_create_epilog_for_reduction): Likewise.
3991 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3992 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
3993 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
3994 (cond_if_else_store_replacement_1): Likewise.
3995 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
3996 (remove_forwarder_block_with_phi): Likewise.
3997 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
3998 * tree-predcom.c (initialize_root_vars): Likewise.
3999 (initialize_root_vars_lm): Likewise.
4000 * sese.c (sese_add_exit_phis_edge): Likewise.
4001 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
4002 * tree-ssa.c (flush_pending_stmts): Likewise.
4003 (redirect_edge_var_map_add): Likewise.
4004 (ssa_redirect_edge): Likewise.
4005 * gimple-streamer-in.c (input_phi): Likewise.
4006 * tree-vect-stmts.c (vectorizable_load): Likewise.
4007 * tree-inline.c (copy_phis_for_bb): Likewise.
4008 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4009 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
4010 * tree-cfg.c (reinstall_phi_args): Likewise.
4011 (gimple_make_forwarder_block): Likewise.
4012 (add_phi_args_after_copy_edge): Likewise.
4013 (gimple_duplicate_sese_tail): Likewise.
4015 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
4017 * config/i386/i386.md (stack_protect_set): Disable the pattern
4018 for Android since Android libc (bionic) does not provide random
4019 value for stack protection guard at gs:0x14. Guard value
4020 will be provided from external symbol (default implementation).
4021 (stack_protect_set_<mode>): Likewise.
4022 (stack_protect_test): Likewise.
4023 (stack_protect_test_<mode>): Likewise.
4025 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
4027 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
4028 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
4029 CONSTANT_P and cris_legitimate_address_p.
4030 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
4031 (cris_preferred_reload_class): Don't return GENERAL_REGS as
4032 preferred to MOF_SRP_REGS.
4034 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
4035 of library functions for basic atomic compare-and-swap.
4036 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
4037 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
4038 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
4039 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
4040 ("atomic_compare_and_swap<mode>")
4041 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
4042 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
4043 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
4044 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
4045 (atomic_op_op_pred): Ditto.
4046 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
4047 reflect the change to include %2 in expansion. All callers changed.
4048 (qm3): New mode_attr.
4049 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
4050 as predicate for operand 2.
4051 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
4052 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
4053 constraint for operand 2.
4054 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
4055 nonmemory_operand for operand 3.
4056 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
4057 exclude memory. Improve emitted sync code for v10 and v32. Use
4058 <qm3> instead of <m> for size designator for cmp.
4059 ("atomic_compare_and_swap<mode>"): Change predicate to
4060 nonmemory_operand for operand 3. Add FIXME.
4061 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
4062 constraints for operand 3 to exclude memory.
4063 ("atomic_fetch_<atomic_op_name><mode>")
4064 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
4065 calls on result of call to need_atomic_barrier_p.
4067 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
4069 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
4071 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
4072 and mtlo. Adjust move_type->type mapping.
4073 (may_clobber_hilo): Split mthilo into mthi and mtlo.
4074 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
4075 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
4076 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
4077 instead of mthilo and mfhilo.
4078 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
4079 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
4080 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
4081 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
4082 Use mflo instead of mfhilo.
4083 * config/mips/10000.md (r10k_arith): Split mthilo.
4084 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
4085 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
4086 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
4087 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
4089 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
4090 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
4092 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
4093 * config/mips/5400.md (ir_vr54_hilo): Likewise.
4094 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
4095 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
4096 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
4097 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
4098 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
4099 * config/mips/generic.md (generic_hilo): Likewise.
4100 * config/mips/loongson2ef.md (ls2_alu): Likewise.
4101 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
4102 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
4103 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
4104 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
4105 * config/mips/xlr.md (xlr_hilo): Likewise.
4107 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
4108 Sandra Loosemore <sandra@codesourcery.com>
4110 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
4112 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
4114 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
4117 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4119 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
4121 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
4124 * config/spu/spu.c (spu_init_cost): Mark static.
4125 (spu_add_stmt_cost): Likewise.
4126 (spu_finish_cost): Likewise.
4127 (spu_destroy_cost_data): Likewise.
4128 * config/i386/i386.c (ix86_init_cost): Mark static.
4129 (ix86_add_stmt_cost): Likewise.
4130 (ix86_finish_cost): Likewise.
4131 (ix86_destroy_cost_data): Likewise.
4132 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
4133 (rs6000_add_stmt_cost): Likewise.
4134 (rs6000_finish_cost): Likewise.
4135 (rs6000_destroy_cost_data): Likewise.
4137 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
4139 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
4140 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
4141 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
4143 * alloc-pool.h (pool_alloc): Likewise.
4145 * final.c (final): Do not loop to find max_uid.
4147 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
4149 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
4150 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
4152 2012-07-13 Richard Guenther <rguenther@suse.de>
4154 PR tree-optimization/53907
4155 * tree-ssa-forwprop.c (associate_pointerplus): New function.
4156 (ssa_forward_propagate_and_combine): Call it.
4158 2012-07-13 Richard Guenther <rguenther@suse.de>
4160 PR tree-optimization/53922
4161 * tree-vrp.c (value_inside_range): Change prototype to take
4162 min/max instead of value-range.
4163 (range_includes_zero_p): Likewise. Return the result from
4165 (extract_range_from_binary_expr_1): Adjust to handle dont-know
4166 return value from range_includes_zero_p.
4167 (extract_range_from_unary_expr_1): Likewise.
4168 (compare_range_with_value): Likewise.
4169 (vrp_meet_1): Likewise.
4171 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
4173 * doc/tm.texi: Regenerate.
4174 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
4175 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4176 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4177 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4178 * targhooks.c (default_init_cost): New function.
4179 (default_add_stmt_cost): Likewise.
4180 (default_finish_cost): Likewise.
4181 (default_destroy_cost_data): Likewise.
4182 * targhooks.h (default_init_cost): New decl.
4183 (default_add_stmt_cost): Likewise.
4184 (default_finish_cost): Likewise.
4185 (default_destroy_cost_data): Likewise.
4186 * target.def (init_cost): New DEFHOOK.
4187 (add_stmt_cost): Likewise.
4188 (finish_cost): Likewise.
4189 (destroy_cost_data): Likewise.
4190 * target.h (struct _stmt_vec_info): New extern decl.
4191 (stmt_vectype): Likewise.
4192 (stmt_in_inner_loop_p): Likewise.
4193 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
4194 (stmt_vector_for_cost): New VEC/typedef.
4195 (add_stmt_info_to_vec): New function.
4196 (struct _slp_tree): Remove cost.inside_of_loop field.
4197 (struct _slp_instance): Remove cost.inside_of_loop field; add
4198 stmt_cost_vec field.
4199 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
4200 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
4201 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
4202 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
4203 (struct _loop_vec_info): Add target_cost_data field.
4204 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
4205 (struct _bb_vec_info): Add target_cost_data field.
4206 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
4207 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
4208 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
4209 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
4210 (init_cost): New function.
4211 (add_stmt_cost): Likewise.
4212 (finish_cost): Likewise.
4213 (destroy_cost_data): Likewise.
4214 (vect_model_simple_cost): Change parameter list.
4215 (vect_model_store_cost): Likewise.
4216 (vect_model_load_cost): Likewise.
4217 (record_stmt_cost): New extern decl.
4218 (vect_get_load_cost): Change parameter list.
4219 (vect_get_store_cost): Likewise.
4220 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
4221 (destroy_loop_vec_info): Call destroy_cost_data.
4222 (vect_estimate_min_profitable_iters): Remove old calculation of
4223 inside costs; call finish_cost instead.
4224 (vect_model_reduction_cost): Call add_stmt_cost instead of old
4225 inside-costs calculation.
4226 (vect_model_induction_cost): Likewise.
4227 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
4228 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
4229 and vect_get_store_cost to obtain the value to return.
4230 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
4231 vect_get_data_access_cost and store it in the minimum peeling
4233 (vect_peeling_hash_choose_best_peeling): Change the parameter list
4234 to add a (stmt_vector_for_cost *) output parameter, and set its value.
4235 (vect_enhance_data_refs_alignment): Ignore the new return value from
4236 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
4237 vect_peeling_hash_choose_best_peeling and pass its contents to the
4239 * tree-vect-stmts.c (stmt_vectype): New function.
4240 (stmt_in_inner_loop_p): Likewise.
4241 (record_stmt_cost): Likewise.
4242 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
4243 record_stmt_cost instead of old calculation; don't call
4244 stmt_vinfo_set_inside_of_loop_cost.
4245 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
4246 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
4247 (vect_model_store_cost): Add stmt_cost_vec parameter; call
4248 record_stmt_cost instead of old calculation; add stmt_cost_vec
4249 parameter to vect_get_store_cost call; don't call
4250 stmt_vinfo_set_inside_of_loop_cost.
4251 (vect_get_store_cost): Add stmt_cost_vec parameter; call
4252 record_stmt_cost instead of old calculation.
4253 (vect_model_load_cost): Add stmt_cost_vec parameter; call
4254 record_stmt_cost instead of old calculation; add stmt_cost_vec
4255 parameter to vect_get_load_cost call; don't call
4256 stmt_vinfo_set_inside_of_loop_cost.
4257 (vect_get_load_cost): Add stmt_cost_vec parameter; call
4258 record_stmt_cost instead of old calculation.
4259 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
4260 (vectorizable_conversion): Likewise.
4261 (vectorizable_assignment): Likewise.
4262 (vectorizable_shift): Likewise.
4263 (vectorizable_operation): Likewise.
4264 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
4265 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
4266 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
4267 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
4268 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4269 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4270 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4271 (spu_init_cost): New function.
4272 (spu_add_stmt_cost): Likewise.
4273 (spu_finish_cost): Likewise.
4274 (spu_destroy_cost_data): Likewise.
4275 * config/i386/i386.c (ix86_init_cost): New function.
4276 (ix86_add_stmt_cost): Likewise.
4277 (ix86_finish_cost): Likewise.
4278 (ix86_destroy_cost_data): Likewise.
4279 (TARGET_VECTORIZE_INIT_COST): New macro def.
4280 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4281 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4282 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4283 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
4284 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
4285 (TARGET_VECTORIZE_FINISH_COST): Likewise.
4286 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4287 (rs6000_init_cost): New function.
4288 (rs6000_add_stmt_cost): Likewise.
4289 (rs6000_finish_cost): Likewise.
4290 (rs6000_destroy_cost_data): Likewise.
4291 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
4292 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
4293 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
4294 stmt_cost_vec parameter to vect_model_store_cost and
4295 vect_model_simple_cost calls.
4296 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
4297 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
4298 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
4299 calculating cost more than once for loads; remove inside_cost
4300 parameter from recursive vect_build_slp_tree calls; call
4301 record_stmt_cost instead of old calculation.
4302 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
4303 the instance; free it on premature exit; remove inside_cost parameter
4304 from vect_build_slp_tree call; add stmt_cost_vec parameter to
4305 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
4306 (new_bb_vec_info): Call init_cost.
4307 (destroy_bb_vec_info): Call destroy_cost_data.
4308 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
4309 statement recorded with an SLP instance; call finish_cost instead of
4310 the old calculation.
4311 (vect_update_slp_costs_according_to_vf): Record statement costs from
4312 SLP instances, multiplying by the appropriate number of copies; don't
4313 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
4315 2012-07-13 Richard Guenther <rguenther@suse.de>
4318 * builtins.c (get_pointer_alignment_1): Handle constant
4321 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
4322 Steven Bosscher <steven@gcc.gnu.org>
4323 Bernd Schmidt <bernds@codesourcery.com>
4325 PR rtl-optimization/53908
4326 * df-problems.c (can_move_insns_across): When doing
4327 memory-reference book-keeping, handle call insns.
4329 2012-07-13 Richard Guenther <rguenther@suse.de>
4331 * gimple.c (gimple_types_compatible_p_1): Remove redundant
4332 type attribute comparisons.
4333 (gimple_canonical_types_compatible_p): Likewise.
4335 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
4337 PR rtl-optimization/53176
4338 * rtlanal.c (rtx_cost): Adjust default cost for X with a
4339 UNITS_PER_WORD factor for all X according to the size of
4340 its mode, not just for SUBREGs with untieable modes.
4341 Handle SET. Use factor * factor for MULT, DIV, UDIV,
4344 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
4346 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
4347 QImode and HImode splitters. Use ix86_comparison_operator.
4348 Explicitly match FLAGS_REG.
4349 (DFmode cmove splitter): Explicitly match FLAGS_REG.
4351 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4353 * expr.h (can_move_by_pieces): Move prototype from here ...
4354 * tree.h (can_move_by_pieces): ... to here.
4355 * optabs.h (set_widening_optab_handler): Use XCNEW.
4356 * gimplify.c: Do not include expr.h.
4358 * toplev.c: Do not include dwarf2out.h.
4359 * config/ia64/ia64.c: Likewise.
4360 * config/sparc/sparc.c: Likewise.
4361 * config/sparc/t-sparc (sparc.o): Fix dependencies.
4363 * Makefile.in (toplev.o): Fix dependencies
4364 (c-family/c-gimplify.o): Likewise.
4365 (c-family/c-common.o): Likewise.
4367 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4369 * basic-block.h (struct edge_def): Use basic_block instead of
4371 * cfgloop.h (struct loop_exit, struct loop): Likewise.
4372 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
4373 instead of union tree_node *.
4374 * rtl.h (union rtunion_def, emit_insn_before_noloc,
4375 emit_insn_after_noloc, add_insn_before, add_insn_after,
4376 debug_bb_slim): Likewise.
4377 * tree-inline.h (struct copy_body_data): Likewise.
4378 * sched-rgn.c (dump_region_dot): Likewise.
4379 * gimple.h (struct gimple_statement_base, gimple_set_bb,
4380 gsi_move_to_bb_end): Likewise.
4381 * sched-vis.c (debug_bb_slim): Likewise.
4382 (debug_bb_n_slim): Likewise.
4383 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
4384 (mn10300_block_contains_call):
4386 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
4389 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
4392 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
4394 * doc/extend.texi (Namespace Association): Alter cautionary text.
4396 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
4399 * config/sh/sh.md: Remove displacement addresssing related splits.
4401 2012-07-10 Xinliang David Li <davidxl@google.com>
4403 * doc/invoke.texi: New option documented.
4404 * flag-types.h: New enum type.
4405 * gimplify.c (gimplify_bind_expr): Control
4406 clobber generation with new option.
4407 (gimplify_target_expr): Ditto.
4408 * common.opt: New option.
4410 2012-07-10 Julian Brown <julian@codesourcery.com>
4412 * config/arm/arm.md (movsi): Don't split symbol refs here.
4413 (define_split): New.
4415 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
4418 * config/m68k/m68k.c (m68k_epilogue_uses): New.
4419 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
4420 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
4422 2012-07-10 Richard Henderson <rth@redhat.com>
4424 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
4425 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
4426 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
4427 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
4428 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
4429 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
4430 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
4431 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
4432 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
4433 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
4434 (bdesc_args): Remove entries to match.
4435 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
4436 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4437 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4438 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
4439 (rs6000_builtin_mul_widen_odd): Remove.
4440 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4441 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4442 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
4443 (spu_builtin_mul_widen_odd): Remove.
4444 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
4445 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
4446 * doc/tm.texi.in: Don't document the removed hooks.
4448 * tree-vect-stmts.c (supportable_widening_operation): Expand
4449 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
4451 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
4452 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
4453 * optabs.c (can_mult_highpart_p): New.
4454 (expand_mult_highpart): New.
4455 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
4456 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
4457 by pieces if can_mult_highpart_p.
4458 (expand_vector_divmod): Use can_mult_highpart_p and always
4459 generate MULT_HIGHPART_EXPR.
4460 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4461 * tree-vect-stmts.c (vectorizable_operation): Likewise.
4463 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
4464 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
4465 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
4466 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
4467 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
4468 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
4469 * config/spu/spu-builtins.def: Update pattern names to match.
4471 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
4472 from altivec_vmuleub.
4473 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
4474 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
4475 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
4476 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
4477 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
4478 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
4479 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
4480 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
4482 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
4484 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
4485 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
4486 (mulv4si3): Remove XOP test shadowed by SSE4 test.
4487 * config/i386/i386.c (bdesc_args): Update pattern names.
4488 (ix86_expand_sse2_mulvxdi3): Likewise.
4489 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
4490 shadowed by SSE4 test.
4492 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
4493 * cfgexpand.c (expand_debug_expr): Handle them.
4494 * expr.c (expand_expr_real_2): Likewise.
4495 * fold-const.c (fold_binary_loc): Likewise.
4496 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
4497 * optabs.c (optab_for_tree_code): Likewise.
4498 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4499 * tree-inline.c (estimate_operator_cost): Likewise.
4500 * tree-pretty-print.c (dump_generic_node): Likewise.
4501 * tree.c (commutative_tree_code): Likewise.
4502 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4503 Handle type change before looking up optab.
4504 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
4505 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
4506 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
4507 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
4508 * genopinit.c (optabs): Initialize them.
4509 * doc/md.texi: Document them.
4511 2012-07-10 Dehao Chen <dehao@google.com>
4513 * tree.h (phi_arg_d): New field.
4514 * tree-flow-inline.h (gimple_phi_arg_block): New function.
4515 (gimple_phi_arg_block_from_edge): New function.
4516 (gimple_phi_arg_set_block): New function.
4517 (gimple_phi_arg_has_block): New function.
4518 (redirect_edge_var_map_block): New function.
4519 * tree-flow.h (_edge_var_map): New field.
4520 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
4521 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
4522 redirect_edge_var_map_add.
4523 * tree-outof-ssa.c (_elim_graph): New field.
4524 (insert_partition_copy_on_edge): New parameter.
4525 (insert_value_copy_on_edge): New parameter.
4526 (insert_rtx_to_part_on_edge): New parameter.
4527 (insert_part_to_rtx_on_edge): New parameter.
4528 (elim_graph_add_edge): New parameter.
4529 (elim_graph_remove_succ_edge): New parameter.
4530 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
4531 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
4532 (new_elim_graph): Add block debug info.
4533 (clear_elim_graph): Likewise.
4534 (delete_elim_graph): Likewise.
4535 (elim_graph_add_node): Likewise.
4536 (elim_graph_add_edge): Likewise.
4537 (elim_graph_remove_succ_edge): Likewise.
4538 (eliminate_build): Likewise.
4539 (elim_forward): Likewise.
4540 (elim_unvisited_predecessor): Likewise.
4541 (elim_backward): Likewise.
4542 (elim_create): Likewise.
4543 (eliminate_phi): Likewise.
4544 (insert_backedge_copies): Likewise.
4545 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
4547 (rewrite_add_phi_arguments): Likewise.
4548 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
4549 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
4550 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
4551 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
4552 * tree-ssa-loop-manip.c (create_iv): Likewise.
4553 (add_exit_phis_edge): Likewise.
4554 (split_loop_exit_edge): Likewise.
4555 (copy_phi_node_args): Likewise.
4556 (tree_transform_and_unroll_loop): Likewise.
4557 * value-prof.c (gimple_ic): Likewise.
4558 (gimple_stringop_fixed_value): Likewise.
4559 * tree-tailcall.c (add_successor_phi_arg): Likewise.
4560 (eliminate_tail_call): Likewise.
4561 (create_tailcall_accumulator): Likewise.
4562 (tree_optimize_tail_calls_1): Likewise.
4563 * tree-phinodes.c (add_phi_arg): Likewise.
4564 (make_phi_node): Likewise.
4565 (resize_phi_node): Likewise.
4566 (remove_phi_arg_num): Likewise.
4567 * omp-low.c (expand_parallel_call): Likewise.
4568 (expand_omp_for_static_chunk): Likewise.
4569 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
4571 (slpeel_update_phi_nodes_for_guard1): Likewise.
4572 (slpeel_update_phi_nodes_for_guard2): Likewise.
4573 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4574 (set_prologue_iterations): Likewise.
4575 (slpeel_tree_peel_loop_to_edge): Likewise.
4576 (vect_loop_versioning): Likewise.
4577 * tree-parloops.c (create_phi_for_local_result): Likewise.
4578 (transform_to_exit_first_loop): Likewise.
4579 (create_parallel_loop): Likewise.
4580 * ipa-split.c (split_function): Likewise.
4581 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4582 (vect_create_epilog_for_reduction): Likewise.
4583 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4584 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
4585 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4586 (cond_if_else_store_replacement_1): Likewise.
4587 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4588 (remove_forwarder_block_with_phi): Likewise.
4589 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
4590 * tree-predcom.c (initialize_root_vars): Likewise.
4591 (initialize_root_vars_lm): Likewise.
4592 * sese.c (sese_add_exit_phis_edge): Likewise.
4593 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
4594 * tree-ssa.c (flush_pending_stmts): Likewise.
4595 (redirect_edge_var_map_add): Likewise.
4596 (ssa_redirect_edge): Likewise.
4597 * gimple-streamer-in.c (input_phi): Likewise.
4598 * tree-vect-stmts.c (vectorizable_load): Likewise.
4599 * tree-inline.c (copy_phis_for_bb): Likewise.
4600 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4601 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
4602 * tree-cfg.c (reinstall_phi_args): Likewise.
4603 (gimple_make_forwarder_block): Likewise.
4604 (add_phi_args_after_copy_edge): Likewise.
4605 (gimple_duplicate_sese_tail): Likewise.
4607 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
4610 * config/sh/sh.c (sequence_insn_p): New function.
4611 (find_barrier, sh_insn_length_adjustment): Use it.
4613 2012-07-09 Iain Sandoe <iain@codesourcery.com>
4616 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
4618 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
4619 SUBTARGET_FOLD_BUILTIN.
4620 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
4621 SUBTARGET_FOLD_BUILTIN.
4623 2012-07-09 Iain Sandoe <iain@codesourcery.com>
4625 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
4626 runtime exceptions model setting from here ...
4627 * config/darwin.c (darwin_override_options): ... to here.
4629 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
4631 PR tree-optimization/53887
4632 * tree-cfg.c (group_case_labels_stmt): Make non-static.
4633 * tree-flow.h (group_case_labels_stmt): Add prototype.
4634 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
4635 to pre-process every switch.
4637 2012-07-09 Jason Merrill <jason@redhat.com>
4640 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
4641 (type_hash_eq): Likewise.
4643 2012-07-09 Tom de Vries <tom@codesourcery.com>
4644 Richard Guenther <rguenther@suse.de>
4646 * tree-ssa-ccp.c (optimize_unreachable): New function.
4647 (execute_fold_all_builtins): Use optimize_unreachable to optimize
4648 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
4650 2012-07-09 Richard Guenther <rguenther@suse.de>
4653 * graphite-optimize-isl.c: Make sure CU is not empty.
4655 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
4657 * gensupport.c (init_rtx_reader_args_cb): Start counting code
4658 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
4659 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
4660 the LAST_INSN_CODE marker at the end.
4661 * genoutput.c (nothing): New static struct data.
4662 (idata): Initialize to ¬hing.
4663 (idata_end): Initialize to ¬hing.next.
4664 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
4666 * genpeep.c (insn_code_number): Remove global variable.
4667 (gen_peephole): Take it as an argument instead.
4668 (main): Take insn_code_number from read_md_rtx.
4669 * optabs.h: Revert r161809:
4670 (optab_handlers): Change type of insn_code back to insn_code.
4671 (optab_handler, widening_optab_handler, set_optab_handler,
4672 set_widening_optab_handler, convert_optab_handler,
4673 set_convert_optab_handler, direct_optab_handler,
4674 set_direct_optab_handler): Remove int casts.
4675 Revert to treating the insn_code field as "insn_code".
4677 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
4679 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
4680 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
4681 * config/sh/sh-protos.h: Declare it.
4683 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4685 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
4686 (dump_fixup_graph): Use current_function_name.
4687 (adjust_cfg_counts): Likewise.
4688 * ira-conflicts.c: Do not include tree.h.
4689 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
4691 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
4694 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
4696 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4698 * basic-block.h: Re-group most prototypes per file.
4699 (struct edge_list): Remove num_blocks field.
4700 (dump_bb_info): Adjust prototypes.
4701 (dump_reg_info): Move prototype to regs.h.
4702 * function.h: Do not include tree.h.
4703 Include vec.h, vecir.h, input.h and machmode.h to compensate.
4704 (function_name): New prototype.
4705 * gimple.h: Include tree.h to compensate for basic-block.h change.
4706 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
4707 * regs.h (dump_reg_info): Prototype here.
4708 * regset.h: Adjust file reference in comment.
4709 (debug_regset): Remove prototype.
4710 * rtl.h: Include flags.h for flag_var_tracking_assignments.
4711 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
4712 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
4713 (dump_reg_info, dump_flow_info): Remove prototypes.
4714 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
4715 to here, the only user. Make static.
4716 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
4717 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
4718 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
4719 tree-pass.h, cfgloop.h, and tree-flow.h.
4720 Include basic-block.h, the first header I'd expect to be included.
4721 (reg_obstack): Move to df-core.c.
4722 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
4723 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
4724 (redirect_edge_succ_nodup): Move to cfghooks.c.
4725 (dump_regset, debug_regset): Move to df-core.c.
4726 (dump_bb_info): Move to cfgrtl.c.
4727 (dump_reg_info): Move to regstat.c.
4728 (dump_flow_info): Move to cfgrtl.c.
4729 (debug_flow_info): Likewise.
4730 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
4731 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
4732 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
4733 (flow_active_insn_p, forwarder_block_p, can_fallthru,
4734 could_fall_through): Move to cfgrtl.c.
4735 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
4736 (create_edge_list): Do not set edge_list's removed num_blocks.
4737 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
4738 (flow_nodes_print): Remove.
4739 (flow_edge_list_print): Remove.
4740 (inverted_post_order_compute): Use FOR_ALL_BB.
4741 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
4742 Do not call dump_reg_info.
4743 (debug_flow_info): Moved from cfg.c
4744 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
4745 to avoid looking at TDF_* flags from tree-pass.h.
4746 (flow_active_insn_p, forwarder_block_p, can_fallthru,
4747 could_fall_through): Moved from cfganal.c.
4748 (print_rtl_with_bb): Adjust dump_bb_info calls.
4749 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
4750 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
4751 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
4752 * cselib.c: Include tree.h with a FIXME.
4753 * df-core.c (reg_obstack): Moved from cfg.c.
4754 (dump_regset): Likewise.
4755 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
4756 * final.c (compute_alignments): Call dump_reg_info before
4758 * function.c (function_name): New function.
4759 (current_function_name): Use it.
4760 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
4762 * ira-conflicts.c: Include tree.h with a note.
4763 * regstat.c (dump_reg_info): Moved here from cfg.c.
4764 * loop-init.c: Include regs.h instead of hard-reg-set.h.
4765 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
4766 (rtl_loop_done): Likewise.
4767 * mcf.c: Include tree.h before langhooks.h.
4768 * predict.c (maybe_hot_count_p): Assert we have cfun.
4769 (probably_never_executed_bb_p): Likewise.
4770 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
4771 instead of dump_flow_info.
4772 * sched-deps.c: Include tree.h with a FIXME.
4773 (call_may_noreturn_p): Add FIXME note why this function has to
4774 look at function decls instead of function decl flags.
4775 * sched-vis.c: Include tree.h with a FIXME.
4776 (print_rtl_slim): Adjust dump_bb_info uses.
4777 * statistics.c (statistics_fini_pass_2): Use current_function_name
4778 to avoid including tree.h.
4779 (statistics_counter_event): Use function_name for the same reason.
4780 (statistics_histogram_event): Likewise.
4781 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
4782 instead of dump_flow_info.
4783 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
4784 before dump_flow_info.
4785 * doc/cfg.texi: Update CFG documentation.
4786 * Makefile.in (RTL_H): Depend on FLAGS_H.
4787 (GIMPLE_H): Depend on TREE_H.
4788 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
4789 but no longer on TREE_H.
4790 (C_COMMON_H): Depend on TREE_H.
4791 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
4792 sched-deps.o, sched-vis.o): Fixup dependencies.
4794 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4796 * alias.h: Do not include coretypes.h in header files.
4797 * cppbuiltin.h: Likewise.
4798 * double-int.h: Likewise.
4799 * gimple-fold.h: Likewise.
4800 * flags.h: Likewise.
4801 * tree-ssa-alias.h: Likewise.
4802 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
4803 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
4804 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
4806 (ALIAS_H): Do not depend on coretypes.h.
4807 (FLAGS_H): Likewise.
4808 (realmpfr.o): Depend on coretypes.h.
4810 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4812 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
4813 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
4815 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
4817 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
4818 (TARGET_FPA): Delete definition.
4819 (TARGET_MAVERICK): Likewise.
4820 (TARGET_FPA_EMU2): Likewise.
4821 (arm_fp_model): Remove FPA and Maverick models.
4822 (arm_arch_cirrus): Delete declaration.
4823 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
4824 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
4825 (CALL_USED_REGISTERS): Likewise.
4826 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
4827 (FIRST_VFP_REGNUM): Renumbered.
4828 (D7_VFP_REGNUM): Chain definition.
4829 (LAST_LO_VFP_REGNUM): Likewise.
4830 (FIRST_HI_VFP_REGNUM): Likewise.
4831 (LAST_HI_VFP_REGNUM): Likewise.
4832 (FIRST_IWMMXT_GR_REGNUM): Likewise.
4833 (LAST_IWMMXT_GR_REGNUM): Likewise.
4834 (FIRST_IWMMXT_REGNUM): Likewise.
4835 (LAST_IWMMXT_REGNUM): Likewise.
4836 (FRAME_POINTER_REGNUM): Renumbered.
4837 (ARG_POINTER_REGNUM): Renumbered.
4838 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
4839 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
4840 (HARD_REGNO_REGNUM): Remove FPA support.
4841 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
4842 (reg_class): Likewise.
4843 (REG_CLASS_NAMES): Likewise.
4844 (REG_CLASS_CONTENTS): Likewise.
4845 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
4846 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
4847 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
4848 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
4849 Reorganize. Use AAPCS preferred names.
4850 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
4852 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
4853 * arm.c (FL_CIRRUS): Delete definition.
4854 (arm_arch_cirrus): Delete variable.
4855 (arm_float_words_big_endian): Delete function.
4856 (cirrus_memory_offset): Delete function.
4857 (output_mov_long_double_fpa_from_arm): Delete function.
4858 (output_mov_long_double_arm_from_fpa): Delete function.
4859 (output_mov_double_fpa_from_arm): Delete function.
4860 (output_mov_double_arm_from_fpa): Delete function.
4861 (emit_sfm): Delete function.
4862 (maybe_get_arm_condition_code): Update comment.
4863 (arm_file_start): Always use softvfp for softfloat systems.
4864 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
4865 (arm_option_override): Remove FPA and Maverick support. Always
4866 default to vfp as the fallback FPU format.
4867 (use_return_insn): Remove FPA support.
4868 (arm_get_frame_offsets): Likewise.
4869 (arm_save_coproc_regs): Likewise.
4870 (arm_canonicalize_comparison): Remove Maverick support.
4871 (arm_select_cc_mode): Likewise.
4872 (arm_gen_compare_reg): Likewise.
4873 (arm_print_operand): Likewise.
4874 (arm_libcall_value_1): Remove FPA and Maverick support.
4875 (arm_function_value_regno_p): Likewise.
4876 (arm_apply_result_size): Likewise.
4877 (arm_legitimate_index_p): Likewise.
4878 (thumb2_legitimate_index_p): Likewise.
4879 (legitimize_reload_address): Likewise.
4880 (arm_register_move_cost): Likewise.
4881 (arm_hard_regno_mode_ok): Likewise.
4882 (arm_regno_class): Likewise.
4883 (arm_dbx_register_number): Likewise.
4884 (arm_emit_unwind_sequence): Likewise.
4885 (arm_conditional_register_usage): Likewise.
4886 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
4887 (cirrus_memory_offset): Likewise.
4888 (output_move_long_double_fpa_from_arm): Likewise.
4889 (output_move_long_double_arm_from_fpa): Likewise.
4890 (output_move_double_fpa_from_arm): Likewise.
4891 (output_move_double_arm_from_fpa): Likewise.
4892 (arm_float_words_big_endian): Likewise.
4893 * arm.md (CC_REGNUM): Renumbered.
4894 (VFPCC_REGNUM): Moved here. Renumbered.
4895 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
4896 (attr fpu): Remove FPA and Maverick support.
4897 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
4898 * arm-cores.def (ep9312): Remove Maverick support.
4899 * arm-arches.def (ep9312): Delete architecture.
4900 * arm-tables.opt: Regenerated.
4902 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
4904 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
4906 PR tree-optimization/53881
4907 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
4908 comparing labels to establish uniqueness of a switch case target,
4909 use the CFG instead.
4911 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
4913 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
4914 due to negative shift amount.
4916 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
4918 Fix configure test for "stack protector support in target C library".
4919 * configure.ac (test_prefix, test_exec_prefix): Move setting from
4920 inside sysroot handling to before and outside it.
4921 * configure: Regenerate.
4923 2012-07-06 Kai Tietz <ktietz@redhat.com>
4926 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
4927 as "/mingw/include".
4929 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
4932 * var-tracking.c (vt_add_function_parameter): Convert
4933 internal_arg_pointer into arg_pointer-based address even
4936 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
4938 PR rtl-optimization/53827
4941 * alias.c (memrefs_conflict_p): Adjust offset and size by the
4942 same amount for alignment ANDs.
4944 2012-07-06 Tom de Vries <tom@codesourcery.com>
4946 PR tree-optimization/51879
4947 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
4948 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
4949 (visit_use): Also call visit_reference_op_call for calls with a vdef.
4951 2012-07-06 Tom de Vries <tom@codesourcery.com>
4953 PR tree-optimization/52009
4954 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
4955 value numbers of gimple_vdef.
4956 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
4958 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
4959 (vn_reference_insert): Add and handle vdef parameter.
4960 (visit_reference_op_load): Add argument to vn_reference_insert call.
4961 (visit_reference_op_store): Find value number of vdef of store. Insert
4962 value number of vdef of store.
4964 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
4966 * config/i386/i386.md (simple lea to add peephole): Also transform
4967 RTXes where second PLUS operand matches output.
4969 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
4971 * config/i386/i386.c (construct_plt_address): Make static.
4972 * config/i386/i386-protos.h (construct_plt_address): Remove.
4974 2012-07-06 Nick Clifton <nickc@redhat.com>
4976 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
4977 default_encode_section_info.
4979 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
4982 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
4983 emit PIC sequence for fnaddr symbol reference in advance.
4985 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
4988 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
4990 * dwarf2out.c (function_possibly_abstracted_p): New static function.
4991 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
4992 cgraph_function_possibly_inlined_p.
4993 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
4994 (process_scope_var): Do not emit concrete instances of abstracted
4995 nested functions from here.
4996 (gen_decl_die): Emit the abstract instance if the function is possibly
4997 abstracted and not only possibly inlined.
4998 (dwarf2out_finish): Find the first non-abstract parent instance and
4999 attach concrete instances on the limbo list to it.
5001 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5002 Julian Brown <julian@codesourcery.com>
5006 * config/arm/neon-gen.ml (return_by_ptr): Delete.
5007 (print_function): Handle empty strings.
5008 (return): Delete use of return_by_ptr.
5009 (mask_shape_for_shuffle): New function.
5010 (mask_elems): Likewise.
5011 (shuffle_fn): Likewise.
5012 (params): Simplify and remove use of return_by_ptr.
5013 (get_shuffle): New function.
5014 (print_variant): Update.
5015 * config/arm/neon.ml (rev_elems): New function.
5016 (permute_range): Likewise.
5017 (zip_range): Likewise.
5018 (uzip_range): Likewise.
5019 (trn_range): Likewise.
5020 (zip_elems): Likewise.
5021 (uzip_elems): Likewise.
5022 (trn_elems): Likewise.
5023 (features): New enumeration Use_shuffle. Delete ReturnPtr.
5026 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
5027 * config/arm/arm_neon.h: Regenerate.
5029 2012-07-05 Richard Guenther <rguenther@suse.de>
5031 * tree-pretty-print.c (dump_generic_node): Properly test
5032 the result of exact_log2.
5034 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5036 * config/s390/s390-protos.h (s390_expand_movmem)
5037 (s390_expand_cmpmem): Add return value.
5038 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
5039 Return FALSE to use the library function in some cases.
5040 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
5043 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5045 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
5047 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
5049 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
5050 * stmt.c (dump_case_nodes): New.
5051 (expand_case): Split out code generation parts into new functions.
5052 (expand_switch_as_decision_tree_p): Split out from expand_case.
5053 (emit_case_decision_tree): Likewise.
5054 (emit_case_dispatch_table): Likewise.
5056 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5058 * config/arm/iterators.md (SDF): New mode iterator.
5059 (V_if_elem): Add support for SF and DF modes.
5061 (F_constraint): New mode iterator attribute.
5062 (F_fma_type): Likewise.
5063 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
5064 (*fmsub<SDF:mode>4): Likewise.
5065 (*fmnsub<SDF:mode>4): Likewise.
5066 (*fmnadd<SDF:mode>4): Likewise.
5068 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
5070 * expmed.c (expand_mult): Initialize coeff and is_neg.
5072 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
5074 * config/sh/predicates.md (zero_extend_operand): New predicate.
5075 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
5076 zero_extend_operand predicate.
5077 (zero_extendqisi2): Likewise.
5079 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
5082 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
5083 to not call cgraph_propagate_frequency if something was changed.
5085 2012-07-04 Richard Guenther <rguenther@suse.de>
5088 * gimple-fold.c (get_base_constructor): Do not return an
5089 error_mark_node DECL_INITIAL.
5091 2012-07-04 Richard Guenther <rguenther@suse.de>
5093 PR tree-optimization/53844
5094 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
5095 the loop virtual PHI.
5097 2012-07-04 Richard Guenther <rguenther@suse.de>
5099 PR tree-optimization/53849
5100 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
5101 for duplicated locals. Use add_referenced_var_1 to avoid
5102 pushing/popping cfun.
5104 2012-07-04 Kai Tietz <ktietz@redhat.com>
5106 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
5107 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
5109 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
5110 as i386_pe_reloc_rw_mask.
5112 2012-07-04 Richard Guenther <rguenther@suse.de>
5114 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
5115 as in free_lang_data_in_type.
5117 2012-07-04 Tobias Grosser <tobias@grosser.es>
5118 Michael Matz <matz@suse.de>
5120 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
5121 (graphite-optimize-isl.o): Add dependencies.
5122 * common.opt (floop-nest-optimize): New flag.
5123 * doc/invoke.texi (floop-nest-optimize): Document.
5124 * graphite-dependences.c (compute_deps): Export.
5125 * graphite-poly.h (compute_deps): Declare.
5126 * graphite-optimize-isl.c: New file.
5127 * graphite-poly.c (apply_poly_transforms): Run the loop
5129 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
5130 if -floop-nest-optimize is enabled.
5132 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
5134 * config/sh/predicates.md (logical_and_operand): New predicate.
5135 * config/sh/constraints.md (Jmb, Jmw): New constraints.
5136 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
5137 of 0xFFFF constant. Use logical_and_operand predicate and
5138 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
5139 (*andsi3_compact): Make it an insn_and_split. Use
5140 logical_and_operand predicate. Add Jmb,Jmw alternatives.
5142 2012-07-03 Jason Merrill <jason@redhat.com>
5145 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
5147 2012-07-03 Nick Clifton <nickc@redhat.com>
5149 * config/mep/mep.c (mep_reorg_regmove): Use
5150 next_nonnote_non_debug_insn to advance to the next insn. Do not
5151 expect delete_insn to return an rtx.
5153 2012-07-03 Richard Guenther <rguenther@suse.de>
5155 * doc/install.texi (CLooG): Clarify how CLooG needs to be
5156 configured and that it needs to be built against ISL 0.10.
5158 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5160 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
5161 code model string in the error message.
5163 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5166 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
5167 sibcall_insn_operand. Move it to a temporary register if not.
5169 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
5172 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
5175 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5177 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
5179 2012-07-03 Roland McGrath <mcgrathr@google.com>
5181 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
5182 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
5183 * configure: Regenerated.
5184 * config/i386/i386.md (simple_return_internal_long): Use %;
5185 (ctz<mode>2): Likewise.
5188 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
5191 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
5193 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
5194 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
5195 gen_branch_true and gen_branch_false.
5196 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
5198 (branch_true, branch_false): Use t_reg_operand predicate.
5199 (*branch_true, *branch_false): Delete.
5200 (movt): Use t_reg_operand predicate.
5201 (*negnegt): Use negt_reg_operand predicate and fold little and big
5203 (*movtt): Use t_reg_operand and fold little and big endian variants.
5206 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
5208 * stmt.c (emit_case_bit_tests): Remove.
5209 (expand_case): Remove expand_switch_using_bit_tests_p code.
5210 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
5211 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
5212 (lshift_cheap_p): Likewise.
5213 (expand_switch_using_bit_tests_p): Likewise.
5214 (struct case_bit_test): Likewise.
5215 (case_bit_test_cmp): Likewise.
5216 (emit_case_bit_tests): New implementation for GIMPLE.
5217 (gen_inbound_check): Do not release post-dominator info here.
5218 (process_switch): Reorder code. Expand as bit tests if it
5220 (do_switchconv): Release post-dominator info here if something changed.
5221 (struct gimple_opt_pass): Verify more.
5222 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
5224 2012-07-02 Martin Jambor <mjambor@suse.cz>
5227 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
5228 dynamic type change check.
5230 2012-07-02 Richard Guenther <rguenther@suse.de>
5231 Michael Matz <matz@suse.de>
5232 Tobias Grosser <tobias@grosser.es>
5233 Sebastian Pop <sebpop@gmail.com>
5235 * Makefile.in: Remove PPL flags in favor of ISL ones.
5236 (BACKENDLIBS): Remove PPL libs.
5237 (INCLUDES): Remove PPL includes in favor of ISL ones.
5238 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
5239 graphite-cloog-compat.h dependencies.
5240 (graphite-dependences.o): Likewise.
5241 (graphite-poly.o): Likewise.
5242 * configure.ac: Declare ISL vars instead of PPL ones.
5243 * configure: Regenerated.
5244 * doc/install.texi: Replace PPL requirement documentation with ISL one.
5245 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
5246 * graphite-clast-to-gimple.c: Likewise.
5247 * graphite-dependences.c: Likewise.
5248 * graphite-interchange.c: Likewise.
5249 * graphite-poly.h: Likewise.
5250 * graphite-poly.c: Likewise.
5251 * graphite-sese-to-poly.c: Likewise.
5252 * graphite.c: Likewise.
5253 * graphite-scop-detection.c: Re-arrange includes.
5254 * graphite-cloog-util.c: Remove.
5255 * graphite-cloog-util.h: Likewise.
5256 * graphite-ppl.h: Likewise.
5257 * graphite-ppl.c: Likewise.
5258 * graphite-dependences.h: Likewise.
5260 2012-07-02 Richard Guenther <rguenther@suse.de>
5262 Merge from graphite branch
5263 2011-07-21 Tobias Grosser <tobias@grosser.es>
5265 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
5266 Remove graphite-cloog-util.h.
5267 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
5268 build_iv_mapping, translate_clast_user, translate_clast,
5269 free_scattering, initialize_cloog_names, build_cloog_prog,
5270 create_params_index): Do not use old compatibility functions.
5271 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
5272 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
5273 compatibility functions.
5274 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
5276 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
5277 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
5279 * graphite-cloog-compat.h: Remove.
5281 2011-08-09 Tobias Grosser <tobias@grosser.es>
5283 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
5284 of the string, no just a reference.
5285 (clast_name_index): Add a new field, that specifies if we need to free
5287 (free_clast_name_index): If necessary, free the name string.
5288 (clast_name_index_elt_info): Calculate the hash based on the string
5289 content, not the memory location it is stored in.
5290 (clast_name_to_level): Specify that we do not need to free the name.
5291 (clast_name_to_index): Dito.
5292 (clast_name_to_lb_ub): Dito.
5293 (eq_clast_name_indexes): Compare the strings, not their base pointers.
5294 (free_scattering): Removed.
5295 (initialize_cloog_names): Renamed to add_names_to_union_domain().
5296 (add_names_to_union_domain): Changed to work on a union_domain,
5297 instead of a CloogNames structure.
5298 (build_cloog_prog): Removed.
5299 (build_cloog_union_domain): New.
5300 (generate_cloog_input): New.
5301 (scop_to_clast): Use CloogInput instead of CloogProgram.
5302 (print_generated_program): Adapt to new scop_to_clast() and do not
5303 print the CloogProgram any more.
5304 (create_params_index): Removed, functionality integrated in
5305 add_names_to_union_domain().
5306 (gloog): Adapt to new scop_to_clast().
5307 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
5309 2012-01-11 Tobias Grosser <tobias@grosser.es>
5311 * graphite-clast-to-gimple.c (clast_name_to_index,
5312 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
5313 (clast_to_gcc_expression): Add clast_expr_name as a new
5314 case. Do not assume a clast_expr_term points always to a
5316 (type_for_clast_term): Do not assume a clast_expr_term points always to
5318 (type_for_clast_name): New.
5319 (type_for_clast_expr): Add clast_expr_name as a new case.
5321 2011-08-03 Sebastian Pop <sebpop@gmail.com>
5323 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
5324 new_Cloog_Scattering_from_ppl_Polyhedron,
5325 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
5327 2012-07-02 Jakub Jelinek <jakub@redhat.com>
5329 PR tree-optimization/53645
5330 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
5331 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
5333 2012-07-01 Wei Guozhi <carrot@google.com>
5336 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
5337 * config/arm/arm.c (const_ok_for_dimode_op): New function.
5338 * config/arm/constraints.md (Dd): New constraint.
5339 * config/arm/predicates.md (arm_adddi_operand): New predicate.
5340 * config/arm/arm.md (adddi3): Extend it to handle constants.
5341 (arm_adddi3): Likewise.
5342 (addsi3_carryin_<optab>): Extend it to handle sbc case.
5343 (addsi3_carryin_alt2_<optab>): Likewise.
5344 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
5346 2012-06-30 Nathan Sidwell <nathan@acm.org>
5348 * coverage.c (bbg_file_stamp): New.
5349 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
5350 (build_info): Write bbg_file_stamp.
5351 (coverage_init): Initialize bbg_file_stamp. Read counts file
5352 before writing graph header.
5353 (coverage_finish): Don't unlink the data file if we can generate a
5355 * tree.h (crc32_unsigned): Declare.
5356 * tree.c (crc32_unsigned_bits): New, broken out of ...
5357 (crc32_byte): ... here. Use it.
5358 (crc32_unsigned): New.
5360 2012-06-29 Cary Coutant <ccoutant@google.com>
5362 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
5363 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
5364 (gen_variable_die): Likewise.
5365 (gen_namespace_die): Likewise.
5367 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
5369 * tree-eh.c (lower_try_finally_switch): Really put the location of the
5370 last statement of the finally block onto the switch.
5372 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
5375 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
5378 2012-06-29 Sterling Augustine <saugustine@google.com>
5380 * dwarf2out.c (add_pubname): Add comment.
5381 (add_pubtype): Fix indentation.
5382 (gen_enumeration_type_die): Likewise.
5384 2012-06-29 Jakub Jelinek <jakub@redhat.com>
5386 * tree-vect-generic.c (expand_vector_divmod): For even/odd
5387 widening multiply, put even always as first argument to VEC_PERM_EXPR.
5389 2012-06-29 Richard Henderson <rth@redhat.com>
5391 * tree-vect-generic.c: Include target.h.
5392 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
5393 * Makefile.in (tree-vect-generic.o): Update.
5395 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5397 * configure.ac: Remove special gtfiles case for C.
5398 * configure: Regenerate.
5399 * Makefile.in: Remove C front-end hooks and build hooks that
5400 will be picked up from c/Make-lang.in now.
5401 Add tree-mudflap to C_COMMON_OBJS.
5402 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
5403 * config/vms/vms.c: Look for c-tree.h in c/.
5404 * doc/gty.texi: Remove reference to c-config-lang.in.
5405 * doc/sourcebuild.texi: Document the c/ subdirectory.
5407 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5409 * system.h (CASE_USE_BIT_TESTS): Poison.
5410 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
5411 (expand_switch_using_bit_tests_p): ...here.
5412 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
5413 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
5415 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
5417 * system.h (IFCVT_EXTRA_FIELDS): Poison.
5418 (IFCVT_INIT_EXTRA_FIELDS): Poison.
5419 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
5420 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
5421 IFCVT_INIT_EXTRA_FIELDS.
5422 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
5423 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
5425 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
5426 frv_ifcvt_machdep_init.
5427 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
5428 Remove documentation.
5429 (IFCVT_MACHDEP_INIT): Document.
5430 * doc/tm.texi: Regenerate.
5432 2012-06-29 Nick Clifton <nickc@redhat.com>
5434 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
5436 2012-06-29 Jakub Jelinek <jakub@redhat.com>
5438 * tree-vect-stmts.c (vectorizable_operation): Check both
5439 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
5440 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
5442 2012-06-28 Richard Henderson <rth@redhat.com>
5444 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
5446 2012-06-28 Jakub Jelinek <jakub@redhat.com>
5448 PR tree-optimization/51581
5449 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
5450 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
5451 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
5452 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
5453 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
5454 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
5456 PR tree-optimization/53645
5457 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
5458 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
5461 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
5464 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
5465 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
5466 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
5467 avr_hard_regno_call_part_clobbered.
5469 2012-06-28 Richard Guenther <rguenther@suse.de>
5472 * expr.c (expand_expr_real_1): Verify if the type is complete
5473 before inspecting its size.
5475 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
5477 * doc/include/gpl.texi: Remove.
5478 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
5480 2012-06-28 Jakub Jelinek <jakub@redhat.com>
5482 PR tree-optimization/53645
5483 * tree-vect-generic.c (add_rshift): New function.
5484 (expand_vector_divmod): New function.
5485 (expand_vector_operation): Use it for vector integer
5486 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
5487 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
5488 unused lguup variable with dummy_int.
5490 2012-06-28 OLivier Hainque <hainque@adacore.com>
5492 * expr.c (convert_move): Latch mem integer inputs into a
5493 register before expanding a multi-instructions sequence.
5495 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
5496 Uros Bizjak <ubizjak@gmail.com>
5497 Jakub Jelinek <jakub@redhat.com>
5501 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
5502 (vt_finalize): ... here instead, if needed.
5504 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
5509 * dce.c (word_dce_process_block): Check whether inserting debug
5510 temps are needed even for needed insns.
5511 (dce_process_block): Likewise.
5512 * df-problems.c (dead_debug_add): Add comment about multi-regs.
5513 (dead_debug_insert_temp): Likewise. Don't subreg when we're
5514 setting fewer regs than a multi-reg requires.
5516 2012-06-27 Richard Henderson <rth@redhat.com>
5518 * config/alpha/alpha.c (alpha_dimode_u): New.
5519 (alpha_init_builtins): Initialize it, and use it.
5520 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
5521 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
5522 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
5523 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
5524 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
5525 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
5526 (alpha_fold_builtin_ctpop): Likewise.
5527 (alpha_fold_builtin_umulh): Remove.
5528 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
5529 typo in MAX_ARGS check.
5531 2012-06-27 Richard Henderson <rth@redhat.com>
5533 * tree.def (MULT_HIGHPART_EXPR): New.
5534 * cfgexpand.c (expand_debug_expr): Ignore it.
5535 * expr.c (expand_expr_real_2): Handle it.
5536 * fold-const.c (int_const_binop_1): Likewise.
5537 * optabs.c (optab_for_tree_code): Likewise.
5538 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
5539 * tree-inline.c (estimate_operator_cost): Likewise.
5540 * tree-pretty-print.c (dump_generic_node): Likewise.
5541 (op_code_prio, op_symbol_code): Likewise.
5542 * tree.c (commutative_tree_code): Likewise. Also handle
5543 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
5545 2012-06-27 Richard Henderson <rth@redhat.com>
5548 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
5549 in 2012-06-23 change. Adjust two other DImode tests as well.
5551 2012-06-27 Nick Clifton <nickc@redhat.com>
5553 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
5556 2012-06-27 Richard Guenther <rguenther@suse.de>
5559 * tree-chrec.c (chrec_convert_1): Represent truncation to
5560 a type with undefined overflow as truncation to an unsigned
5561 type converted to the type with undefined overflow.
5562 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
5563 the scalar evolution of a truncated widened operation avoid
5564 looking at the non-existing evolution of the widened operation
5567 2012-06-27 Richard Guenther <rguenther@suse.de>
5569 PR tree-optimization/53774
5570 * tree-ssa-reassoc.c (get_rank): All default defs have
5572 (init_reassoc): Precompute rank for all SSA default defs.
5574 2012-06-27 Nick Clifton <nickc@redhat.com>
5576 * config/rx/rx.md (simple_return): Use the simple_return rtx.
5578 2012-06-26 Richard Henderson <rth@redhat.com>
5580 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
5581 and don't fall thru from standard_80387_constant_p to the memory
5584 2012-06-26 Richard Henderson <rth@redhat.com>
5586 * config/i386/i386.c (bdesc_args): Update. Change
5587 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
5588 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
5589 (ix86_builtin_mul_widen_even): Use it.
5590 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
5591 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
5592 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
5594 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
5595 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
5596 (vec_widen_smult_even_v4si): New.
5598 2012-06-26 Richard Henderson <rth@redhat.com>
5600 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
5601 to expander; move guts to ...
5602 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
5603 highparts before shifting up.
5604 * config/i386/i386-protos.h: Update.
5606 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5608 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
5609 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
5610 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
5612 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
5614 * var-tracking.c (vt_add_function_parameter): Use a preserved
5615 VALUE for the MEM address of an incoming parameter.
5617 2012-06-26 Sterling Augustine <saugustine@google.com>
5619 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
5620 (prune_unused_types): Likewise.
5622 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5624 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5625 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
5626 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
5627 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
5628 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
5629 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
5630 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
5631 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
5632 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
5634 * doc/tm.texi: Regenerate.
5635 * doc/cpp.texi: Make example for #error generic.
5636 * config/frv/frv.h: Fix example text to match tm.texi.
5638 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
5640 * tree-pass.h (pass_strength_reduction): New decl.
5641 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
5642 (finalize_costs): Likewise.
5643 * timevar.def (TV_TREE_SLSR): New timevar.
5644 * gimple-ssa-strength-reduction.c: New.
5645 * tree-flow.h (initialize_costs): New decl.
5646 (finalize_costs): Likewise.
5647 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
5648 * passes.c (init_optimization_passes): Add pass_strength_reduction.
5650 2012-06-26 Matt Turner <mattst88@gmail.com>
5652 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
5653 (__builtin_arm_tinsrh): Likewise.
5654 (__builtin_arm_tinsrw): Likewise.
5655 (__builtin_arm_wsadb): Add missing v2si parameter.
5656 (__builtin_arm_wsadh): Likewise.
5657 (__builtin_arm_getwcx): Delete.
5658 (__builtin_arm_setwcx): Delete.
5659 (__builtin_arm_getwcgr0): Add.
5660 (__builtin_arm_getwcgr1): Add.
5661 (__builtin_arm_getwcgr2): Add.
5662 (__builtin_arm_getwcgr3): Add.
5663 (__builtin_arm_setwcgr0): Add.
5664 (__builtin_arm_setwcgr1): Add.
5665 (__builtin_arm_setwcgr2): Add.
5666 (__builtin_arm_setwcgr3): Add.
5668 2012-06-26 Richard Guenther <rguenther@suse.de>
5671 2012-06-21 Richard Guenther <rguenther@suse.de>
5673 * tree-inline.c (estimate_num_insns): Estimate call cost for
5676 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5679 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
5680 * doc/tm.texi: Regenerate.
5682 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
5685 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
5686 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
5687 * doc/tm.texi.in: Remove documentation for unused target macros
5688 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
5689 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
5690 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
5691 TARGET_NARROW_VOLATILE_BITFIELDS.
5692 Document that MD_HANDLE_UNWABI is a macro in libgcc.
5693 * doc/tm.texi: Regenerate.
5694 * system.h: Poison target macros
5695 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
5696 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
5697 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
5698 TARGET_NARROW_VOLATILE_BITFIELDS
5700 2012-06-26 Jan Hubicka <jh@suse.cz>
5703 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
5706 2012-06-26 Dehao Chen <dehao@google.com>
5708 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
5709 source location is consistant with the call stmt.
5711 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
5713 PR tree-optimization/53729
5714 PR tree-optimization/53636
5715 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
5716 vect_verify_datarefs_alignment until after statements have
5717 been marked as relevant/irrelevant.
5718 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
5719 Skip irrelevant statements.
5720 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
5721 instead of STMT_VINFO_RELEVANT.
5722 (vect_get_data_access_cost): Do not check for supportable
5723 alignment before calling vect_get_load_cost/vect_get_store_cost.
5724 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
5725 handling unsupported alignment.
5726 (vect_get_load_cost): Likewise.
5728 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
5730 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
5731 Do not define JMP_BUF_SIZE.
5733 2012-06-26 Jakub Jelinek <jakub@redhat.com>
5735 PR tree-optimization/53748
5736 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
5737 if arg0/arg1 have integral or pointer types.
5739 2012-06-25 Richard Henderson <rth@redhat.com>
5741 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
5742 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
5743 (sdot_prodv4si): New; handle only XOP.
5745 2012-06-25 Richard Henderson <rth@redhat.com>
5747 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
5748 (V2UDI_FUNC_V4USI_V4USI): New.
5749 (V4UDI_FUNC_V8USI_V8USI): New.
5750 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
5751 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
5752 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
5753 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
5754 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
5755 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
5756 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
5757 (bdesc_args): Add them.
5758 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
5759 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
5760 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
5761 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
5762 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
5764 2012-06-25 Richard Henderson <rth@redhat.com>
5766 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
5768 2012-06-25 Richard Henderson <rth@redhat.com>
5770 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
5772 (ix86_expand_vec_interleave): New.
5773 (ix86_expand_mul_widen_evenodd): New.
5774 (ix86_expand_mul_widen_hilo): New.
5775 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
5776 * config/i386/i386.md (u_bool) New code attr.
5777 * config/i386/predicates.md
5778 (nonimmediate_or_const_vector_operand): Remove.
5779 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
5780 both AVX and SSE4_1.
5781 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
5782 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
5783 (vec_widen<s>mult_hi_v8si): Remove.
5784 (vec_widen<s>mult_lo_v8si): Remove.
5785 (vec_widen_smult_hi_v4si): Remove.
5786 (vec_widen_smult_lo_v4si): Remove.
5787 (vec_widen_umult_hi_v4si): Remove.
5788 (vec_widen_umult_lo_v4si): Remove.
5789 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
5790 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
5791 * config/i386/i386-protos.h: Update.
5793 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
5795 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
5796 (neon_vld1_dup): Restrict to VQ operands.
5797 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
5799 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5800 James Greenhalgh <james.greenhalgh@arm.com>
5802 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
5803 (TARGET_FMA): New macro.
5804 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
5805 (TARGET_ARM_ARCH): Likewise.
5806 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
5807 (TARGET_V6M, TARGET_V7M): Likewise.
5808 (TARGET_ARM_ARCH_PROFILE): Likewise.
5809 (TARGET_ARM_FEATURE_LDREX): Likewise.
5810 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
5811 (ARM_MIN_ENUM_SIZE): Likewise.
5812 * config/arm/arm.c (arm_file_start): Refactor appropriately.
5813 (base_architecture): New enumeration.
5814 (arm_base_arch): New global variable.
5815 (processors): Add field base_arch.
5816 (ARM_ARCH, ARM_CORE): Adjust accordingly.
5817 (arm_option_override): Add initialization of arm_base_arch.
5818 * doc/cpp.texi (system-specific predefined macros.): Change.
5820 2012-06-25 Jakub Jelinek <jakub@redhat.com>
5823 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
5824 of x x x in the vmovlps load alternative.
5826 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
5829 * df.h (dead_debug_add): Remove third argument.
5830 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
5831 REG that we want to replace instead.
5832 (dead_debug_insert_temp): Use the REGNO of the reg that we want
5833 to replace instead of DF_REF_REGNO. Require there to always be
5834 at least one such use. Check for cases where the same location
5835 has more than df_ref associated with it.
5836 (df_note_bb_compute): Remove third dead_debug_add argument.
5837 * dce.c (word_dce_process_block): Likewise.
5839 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
5841 * config/v850/v850.c: Remove redundant extern declarations for
5842 last_assemble_variable_decl and size_directive_output.
5844 * doc/tm.texi.in: Document JMP_BUF_SIZE.
5845 * doc/tm.texi: Regenerate.
5846 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
5847 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
5848 * config/stormy16/stormy16.h: Likewise.
5850 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
5852 * doc/sourcebuild.texi: Add missing subdirectories.
5854 2012-06-25 Tristan Gingold <gingold@adacore.com>
5856 * config/i386/i386.h: Fix typo.
5858 2012-06-25 Tristan Gingold <gingold@adacore.com>
5860 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
5861 (seh_cfa_adjust_cfa): ... that function.
5862 (seh_emit_stackalloc): Do not emit out of range values.
5863 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
5864 UNSPEC_DEF_CFA constants.
5865 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
5866 * config/i386/i386.c (ix86_frame_pointer_required): Required
5867 for very large frames on SEH target.
5868 (ix86_compute_frame_layout): Save area is before frame pointer
5869 on SEH target. Handle very large frames.
5870 (ix86_expand_prologue): Likewise.
5872 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
5874 * output.h: (current_function_is_leaf,
5875 current_function_sp_is_unchanging,
5876 current_function_uses_only_leaf_regs): Remove.
5877 * function.c (current_function_is_leaf,
5878 current_function_sp_is_unchanging,
5879 current_function_uses_only_leaf_regs): Remove.
5880 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
5881 instead of current_function_uses_only_leaf_regs.
5882 * function.h (struct rtl_data): New fields sp_is_unchanging,
5883 is_leaf, uses_only_leaf_regs.
5884 * resource.c (init_resource_info): Replace current_function_is_leaf,
5885 current_function_sp_is_unchanging, and
5886 current_function_uses_only_leaf_regs with new crtl fields.
5887 * sdbout.c (sdbout_symbol): Likewise.
5888 * df-core.c (rest_of_handle_df_initialize): Likewise.
5889 * ira.c (ira): Likewise.
5890 * final.c (final_start_function): Likewise.
5891 * reorg.c (fill_simple_delay_slots): Likewise.
5892 * regrename.c (check_new_reg_p): Likewise.
5893 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
5894 (notice_stack_pointer_modification): Likewise.
5895 * dbxout.c (dbxout_symbol): Likewise.
5896 (dbxout_parms): Likewise.
5897 * sel-sched.c (init_regs_for_mode): Likewise.
5898 * dwarf2out.c (dbx_reg_number): Likewise.
5899 (multiple_reg_loc_descriptor): Likewise.
5900 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
5901 (gen_pop): Likewise.
5902 (ix86_select_alt_pic_regnum): Likewise.
5903 (ix86_compute_frame_layout): Likewise.
5904 (ix86_finalize_stack_realign_flags): Likewise.
5905 (ix86_expand_epilogue): Likewise.
5906 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
5907 * config/h8300/h8300.c (byte_reg): Likewise.
5908 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
5909 (c6x_save_reg): Likewise.
5910 (c6x_compute_frame_layout): Likewise.
5911 * config/pa/pa.c (pa_compute_frame_size): Likewise.
5912 (pa_output_function_prologue): Likewise.
5913 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
5914 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
5915 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
5916 (sparc_expand_prologue): Likewise.
5917 (sparc_flat_expand_prologue): Likewise.
5918 (sparc_asm_function_prologue): Likewise.
5919 (sparc_output_mi_thunk): Likewise.
5920 (sparc_frame_pointer_required): Likewise.
5921 * config/epiphany/epiphany.c (epiphany_compute_function_type):
5923 (epiphany_compute_frame_size): Likewise.
5924 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
5925 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
5926 (cris_frame_pointer_required): Likewise.
5927 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
5928 (tilepro_current_function_is_leaf): Likewise.
5929 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
5930 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
5931 * config/ia64/ia64.c (find_gr_spill): Likewise.
5932 (ia64_compute_frame_size): Likewise.
5933 (ia64_can_eliminate): Likewise.
5934 (ia64_initial_elimination_offset): Likewise.
5935 * config/m68k/m68k.c (m68k_save_reg): Likewise.
5936 (m68k_expand_epilogue): Likewise.
5937 * config/rx/rx.c (rx_get_stack_layout): Likewise.
5938 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
5939 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
5941 (picochip_output_frame_debug): Likewise.
5942 * config/sh/sh.c (sh_media_register_for_return): Likewise.
5943 (sh_allocate_initial_value): Likewise.
5944 (sh_output_mi_thunk): Likewise.
5945 * config/microblaze/microblaze.c (microblaze_must_save_register):
5947 (compute_frame_size): Likewise.
5948 (microblaze_initial_elimination_offset): Likewise.
5949 (microblaze_expand_prologue): Likewise.
5950 (microblaze_expand_epilogue): Likewise.
5951 * config/frv/frv.c (frv_expand_epilogue): Likewise.
5952 (frv_frame_pointer_required): Likewise.
5953 * config/spu/spu.c (get_pic_reg): Likewise.
5954 (direct_return): Likewise.
5955 (spu_expand_prologue): Likewise.
5956 (spu_expand_epilogue): Likewise.
5957 (spu_initial_elimination_offset): Likewise.
5958 * config/mips/mips.c (mips_global_pointer): Likewise.
5959 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5960 (mips_compute_frame_info): Likewise.
5961 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
5962 (mep_reload_pointer): Likewise.
5963 * config/rl78/rl78.c (need_to_save): Likewise.
5964 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
5965 * config/score/score.c (score_compute_frame_size): Likewise.
5966 (score_function_prologue): Likewise.
5967 * config/bfin/bfin.c (must_save_p): Likewise.
5968 (expand_prologue_reg_save): Likewise.
5969 (expand_epilogue_reg_restore): Likewise.
5970 (bfin_frame_pointer_required): Likewise.
5971 (n_regs_saved_by_prologue): Likewise.
5972 (add_to_reg): Likewise.
5973 (expand_interrupt_handler_prologue): Likewise.
5974 (expand_interrupt_handler_epilogue): Likewise.
5975 (bfin_expand_prologue): Likewise.
5976 * config/avr/avr.c (avr_regs_to_save): Likewise.
5977 (avr_prologue_setup_frame): Likewise.
5978 (expand_epilogue): Likewise.
5979 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5980 (s390_register_info): Likewise.
5981 (s390_frame_info): Likewise.
5982 (s390_init_frame_layout): Likewise.
5983 (s390_emit_prologue): Likewise.
5986 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
5988 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
5989 * vmsdbgout: Do not undefine it if defined.
5990 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
5991 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
5992 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
5994 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
5996 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
5998 2012-06-23 Richard Henderson <rth@redhat.com>
6001 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
6002 V*QImode shifts and multiply.
6003 (ix86_expand_vecop_qihi): Support shifts.
6004 * config/i386/i386.md (any_shift): New code iterator.
6005 * config/i386/sse.md (ashlv16qi3): Merge ...
6006 (<any_shiftrt>v16qi3): ... into ...
6007 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
6008 to support SSE and AVX.
6010 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
6011 parameter into src and dest.
6012 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
6013 (vec_unpacks_hi_<V124_AVX2>): Likewise.
6014 (vec_unpacku_lo_<V124_AVX2>): Likewise.
6015 (vec_unpacks_lo_<V124_AVX2>): Likewise.
6016 * config/i386/i386-protos.h: Update.
6018 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
6019 pure expander; move expansion code ...
6020 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
6021 * config/i386/i386-protos.h: Update.
6023 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
6025 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
6026 (popcntb<mode>2): Add attribute type popcnt.
6027 (popcntd<mode>2): Ditto.
6028 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
6029 * config/rs6000/power5.md (define_insn_reservation): Ditto.
6030 * config/rs6000/power7.md (define_insn_reservation): Ditto.
6031 * config/rs6000/476.md (define_insn_reservation): Ditto.
6032 * config/rs6000/power6.md (define_insn_reservation): New
6033 reservation for popcnt instructions.
6035 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
6037 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
6039 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
6042 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
6044 * config/i386/i386.c (ix86_option_override_internal): Allow
6045 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
6047 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
6050 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
6052 * double-int.c (double_int_multiple_of): New function.
6053 * double-int.h (double_int_multiple_of): New decl.
6054 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
6055 (mbc_entry_hash): New forward decl.
6056 (mbc_entry_eq): Likewise.
6057 (zero_cost): Change to no_cost.
6058 (mult_costs): New static var.
6059 (cost_tables_exist): Likewise.
6060 (initialize_costs): New function.
6061 (finalize_costs): Likewise.
6062 (tree_ssa_iv_optimize_init): Call initialize_costs.
6063 (add_cost): Change to add_regs_cost; distinguish costs by speed.
6064 (multiply_regs_cost): New function.
6065 (add_const_cost): Likewise.
6066 (extend_or_trunc_reg_cost): Likewise.
6067 (negate_reg_cost): Likewise.
6068 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
6070 (get_address_cost): Change add_cost to add_regs_cost; change
6071 multiply_by_cost to multiply_by_const_cost.
6072 (force_expr_to_var_cost): Change zero_cost to no_cost; change
6073 add_cost to add_regs_cost; change multiply_by_cost to
6074 multiply_by_const_cost.
6075 (split_cost): Change zero_cost to no_cost.
6076 (ptr_difference_cost): Likewise.
6077 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
6078 to multiply_by_const_cost.
6079 (get_computation_cost_at): Change add_cost to add_regs_cost; change
6080 multiply_by_cost to multiply_by_const_cost.
6081 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
6082 (determine_iv_cost): Change add_cost to add_regs_cost.
6083 (iv_ca_new): Change zero_cost to no_cost.
6084 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
6085 * tree-ssa-address.c (most_expensive_mult_to_index): Change
6086 multiply_by_cost to multiply_by_const_cost.
6087 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
6088 (add_regs_cost): New decl.
6089 (multiply_regs_cost): Likewise.
6090 (add_const_cost): Likewise.
6091 (extend_or_trunc_reg_cost): Likewise.
6092 (negate_reg_cost): Likewise.
6094 2012-06-22 Richard Guenther <rguenther@suse.de>
6096 Merge from graphite branch
6097 2011-08-10 Sebastian Pop <sebpop@gmail.com>
6099 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
6101 2012-01-13 Tobias Grosser <tobias@grosser.es>
6103 * tree-flow.h (parallelized_function_p): Declare.
6104 * tree-parloops.c (parallelized_function_p): Export.
6105 * graphite.c (graphite_transform_loops): Do not run graphite on
6106 already parallel functions.
6108 2012-06-22 Alan Modra <amodra@gmail.com>
6110 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
6111 return mem. Convert to indirect addressing if not indirect or
6112 indexed. Adjust all callers.
6114 2012-06-22 Richard Guenther <rguenther@suse.de>
6116 * gcov-iov.c: Include bconfig.h and system.h.
6118 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
6120 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
6122 2012-06-22 Richard Guenther <rguenther@suse.de>
6124 PR gcov-profile/53744
6125 * gcov-iov.c (main): Treat "" and "prerelease" the same.
6127 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
6130 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
6131 for GNU Fortran if in strict DWARF2 mode.
6133 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
6135 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
6136 DECL_IGNORED_P non-reg vars even if they are used.
6138 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6142 * var-tracking.c (vt_get_canonicalize_base): New.
6143 (vt_canonicalize_addr, vt_stack_offset_p): New.
6144 (vt_canon_true_dep): New.
6145 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
6146 (clobber_overlaping_mems): Use vt_canonicalize_addr.
6148 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6152 * var-tracking.c (vt_initialize): Record initial offset between
6153 arg pointer and stack pointer.
6155 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6159 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
6162 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6166 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
6168 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6170 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
6172 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
6175 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
6177 2012-06-21 Meador Inge <meadori@codesourcery.com>
6180 * c-decl.c (c_push_function_context): Restore the behavior to reuse
6181 the language function allocated for -Wunused-local-typedefs.
6182 (c_pop_function_context): If necessary, clear the language function
6183 created in c_push_function_context. Always clear out the
6184 x_cur_stmt_list field of the restored language function.
6186 2012-06-21 Sterling Augustine <saugustine@google.com>
6187 Cary Coutant <ccoutant@google.com>
6189 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
6190 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
6191 (comdat_type_struct): New field 'skeleton_die'.
6192 (breakout_comdat_types): Update it.
6193 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
6194 is_namespace_die. Fix minor style violation. Call want_pubnames.
6195 (add_pubname_string): Call want_pubnames.
6196 (add_pubtype): Rework logic for calculating type name. Call
6197 is_namespace_die. Call want_pubnames.
6198 (output_pubnames): Move conditional logic deciding when to produce the
6199 section from dwarf2out_finish. Use new skeleton_die field.
6200 (base_type_die): Call add_pubtype.
6201 (gen_enumeration_type_die): Unconditionally call add_pubtype.
6202 (gen_subprogram_die): Adjust calls to add_pubname.
6203 (gen_namespace_die): Call add_pubname_string.
6204 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
6205 produce pubnames and pubtypes sections to output_pubnames.
6206 * common.opt (-gpubnames): New option.
6207 * doc/invoke.texi: Document it.
6209 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
6211 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
6213 2012-06-21 Michael Matz <matz@suse.de>
6216 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
6219 2012-06-21 Richard Guenther <rguenther@suse.de>
6221 * tree-inline.c (estimate_num_insns): Estimate call cost for
6224 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
6226 * tree.h (DECL_SOURCE_COLUMN): New accessor.
6228 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6230 * config/i386/i386.md (SINCOS): New int iterator.
6231 (sincos): New int attribute.
6232 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
6233 SINCOS int iterator.
6234 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
6235 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
6237 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6239 * config/i386/i386.md (RDFSGSBASE): New int iterator.
6240 (WRFSGSBASE): Ditto.
6241 (fsgs): New int attribute.
6242 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
6243 RDFSGSBASE int iterator.
6244 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
6245 WRFSGSBASE int iterator.
6247 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6249 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
6250 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
6251 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
6252 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
6255 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6257 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
6259 2012-06-20 Richard Guenther <rguenther@suse.de>
6261 PR tree-optimization/30318
6262 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
6264 (range_int_cst_singleton_p): But explicitely here.
6265 (zero_nonzero_bits_from_vr): And here.
6266 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
6267 to cover all cases we can perform arbitrary precision
6268 arithmetic with double-ints.
6269 (intersect_ranges): Handle adjacent anti-ranges.
6271 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6273 * config/i386/i386.md (rounding_insn): New int attribute.
6274 (<rounding_insn>xf2): Macroize insn from
6275 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
6276 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
6278 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
6280 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
6281 (ieee_maxmin): New int attribute.
6282 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
6283 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
6285 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6287 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
6288 * config/arm/arm.c: Do not include c-pragma.h.
6289 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
6290 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
6291 to arm_emit_eabi_attribute.
6292 * arm-c.c: Do not include output.h.
6293 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
6294 call to arm_emit_eabi_attribute.
6295 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
6297 2012-06-20 Richard Guenther <rguenther@suse.de>
6299 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6300 Allow adjusting alignment of user-aligned decls again.
6302 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6304 * config/rl78/rl78-c.c: Remove unnecessary includes.
6306 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
6308 * config/cris/cris.c: Include cgraph.h.
6309 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
6311 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
6313 * emit-rtl.c (need_atomic_barrier_p): New function.
6314 * emit-rtl.h (need_atomic_barrier_p): Declare it.
6315 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
6316 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
6317 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
6318 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
6319 (mips_process_sync_loop): Use generic version instead.
6321 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
6323 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
6326 2012-06-19 Tom de Vries <vries@codesourcery.com>
6327 Maxim Kuvyrkov <maxim@codesourcery.com>
6329 * config/mips/constraints.md (ZR): New constraint.
6330 * config/mips/predicates.md (mem_noofs_operand): New predicate.
6331 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
6332 * config/mips/mips.h (TARGET_XLP): Define.
6333 (TARGET_SYNC_AFTER_SC): Update.
6334 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
6335 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
6336 XLP-specific swap and ldadd patterns.
6337 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
6339 2012-06-19 Tom de Vries <vries@codesourcery.com>
6340 Maxim Kuvyrkov <maxim@codesourcery.com>
6342 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
6343 (mips_emit_post_atomic_barrier_p): New static functions.
6344 (mips_process_sync_loop): Use them. Emit sync memory barriers in
6345 accordance with memory model semantics. Add return of CMP result for
6347 * config/mips/mips.md: Update comment.
6348 (sync_cmp): New attribute.
6349 (sync_memmodel): New attribute replacing sync_release_barrier.
6350 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
6351 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
6352 (sync_lock_test_and_set, test_and_set_12): Update.
6353 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
6354 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
6356 2012-06-19 Joseph Myers <joseph@codesourcery.com>
6358 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
6359 mov_si<mode>_e500_subreg0.
6360 (*mov_si<mode>_e500_subreg0_elf_low)
6361 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
6363 2012-06-19 Richard Henderson <rth@redhat.com>
6365 * config/alpha/alpha.c: Include params.h.
6366 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
6367 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
6369 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6371 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
6372 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
6373 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
6375 * doc/tm.texi: Regenerate.
6376 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
6378 * config/darwin-c.c: Include target.h.
6379 (darwin_objc_declare_unresolved_class_reference): New function.
6380 (darwin_objc_declare_class_definition): New function.
6381 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
6382 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
6384 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
6386 * target.def (output_ident): New hook.
6387 * targhooks.h (default_asm_output_ident_directive): Add prototype.
6388 * varasm.c (assemble_asm): Only prefix a tab if the string does not
6389 already start with one.
6390 (default_asm_output_ident_directive): New function to emit
6391 .ident as a top-level asm node while parsing, or directly to
6392 asm_out_file after parsing.
6393 * toplev.c (compile_file): Print a GCC .ident with
6394 targetm.asm_out.output_ident.
6395 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
6396 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
6397 * doc/tm.texi: Update.
6399 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
6400 (TARGET_ASM_OUTPUT_IDENT): Define.
6401 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
6402 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
6403 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
6404 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
6405 (TARGET_ASM_OUTPUT_IDENT): Define.
6406 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
6407 (TARGET_ASM_OUTPUT_IDENT): Define.
6409 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
6410 * config/cris/cris.c (cris_asm_output_ident): New function.
6411 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
6413 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
6415 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
6416 (microblaze_asm_output_ident): Rewrite to work similar to
6417 default_asm_output_ident_directive for front-end .idents.
6418 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
6419 (TARGET_ASM_OUTPUT_IDENT): Define.
6421 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
6422 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
6424 * config/rx/rx.c: Include cgraph.h for add_asm_node.
6425 (rx_asm_output_ident): New function, similar to
6426 default_asm_output_ident_directive, but handle AS100 syntax also, so
6427 that #ident also works for rx in AS100 syntax.
6428 (TARGET_ASM_OUTPUT_IDENT): Define.
6429 * config/rx/rx.h (IDENT_ASM_OP): Remove.
6431 * Makefile.in: Fix dependencies for c-family/c-lex.o.
6433 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
6435 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
6436 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
6438 (*fist<mode>2_<rounding>_1): Macroize insn from
6439 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
6440 (fistdi2_<rounding>): Macroize insn from
6441 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
6442 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
6443 corresponding splitters from fistdi2_{floor,ceil} and corresponding
6444 splitters using FIST_ROUNDING int iterator.
6445 (fist<mode>2_<rounding>): Macroize insn from
6446 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
6447 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
6448 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
6449 splitters using FIST_ROUNDING int iterator.
6450 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
6451 using FIST_ROUNDING int iterator.
6453 2012-06-19 Richard Henderson <rth@redhat.com>
6455 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
6456 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
6457 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
6458 * config/i386/sse.md (sse2_mulv4si3): Delete.
6459 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
6460 nonimmediate_or_const_vector_operand.
6462 2012-06-19 Richard Henderson <rth@redhat.com>
6464 * expmed.c (struct init_expmed_rtl): Split ...
6465 (init_expmed_one_mode): ... out of ...
6466 (init_expmed): ... here. Initialize integer vector modes also.
6467 (synth_mult): Handle integer vector modes.
6468 (choose_mult_variant): Likewise.
6469 (expand_mult_const): Likewise.
6470 (expand_mult): Likewise.
6471 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
6473 2012-06-19 Richard Henderson <rth@redhat.com>
6475 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
6476 integral vector modes.
6478 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
6480 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
6481 (rounding): New int attribute.
6483 (frndintxf2_<rounding>): Macroize insn from
6484 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
6485 (frndintxf2_<rounding>_i387): Macroize insn from
6486 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
6488 2012-06-19 Richard Guenther <rguenther@suse.de>
6490 * tree-vrp.c (union_ranges): New function.
6491 (vrp_meet_1): Use union_ranges.
6492 (vrp_meet): Dump what we union and call vrp_meet_1.
6494 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
6496 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
6497 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
6498 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
6499 (attr write_conflict, attr core_cycles): Update.
6500 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
6502 2012-06-19 Richard Guenther <rguenther@suse.de>
6504 * tree-vrp.c (intersect_ranges): Handle more cases.
6505 (vrp_intersect_ranges): Dump what we intersect and call ...
6506 (vrp_intersect_ranges_1): ... this.
6508 2012-06-19 Richard Guenther <rguenther@suse.de>
6510 PR tree-optimization/53708
6511 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
6512 user-supplied alignment and alignment of decls with the used
6515 2012-06-18 Lawrence Crowl <crowl@google.com>
6517 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
6518 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
6519 (TV_PHASE_STREAM_IN): New.
6520 (TV_PHASE_STREAM_OUT): New.
6521 * timevar.c (validate_phases): New.
6522 (timevar_print): Call validate_phases.
6523 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
6524 to TV_PHASE_OPT_GEN.
6525 * langhooks.c (write_global_declarations): Rename use of
6526 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
6527 TV_PHASE_CHECK_DBGINFO.
6528 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
6529 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
6530 lang_hooks.decls.final_write_globals.
6532 2012-06-18 David Edelshn <dje.gcc@gmail.com>
6534 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
6536 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
6539 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
6540 (*sse4_2_pcmpistr_unaligned): New.
6542 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6543 Sameera Deshpande <sameera.deshpande@arm.com>
6544 Greta Yorsh <greta.yorsh@arm.com>
6546 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
6547 * config/arm/arm.c (print_multi_reg): Remove.
6548 (vfp_output_fldmd): Likewise.
6549 (arm_output_epilogue): Likewise.
6550 * config/arm/arm.md (epilogue_insns): Update condition and code.
6552 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6553 Sameera Deshpande <sameera.deshpande@arm.com>
6554 Greta Yorsh <greta.yorsh@arm.com>
6556 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
6557 * config/arm/arm.c (thumb2_expand_return): New function.
6558 * config/arm/arm.md (return): Update condition and code.
6560 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6561 Sameera Deshpande <sameera.deshpande@arm.com>
6562 Greta Yorsh <greta.yorsh@arm.com>
6564 * config/arm/arm-protos.h (output_return_instruction): New parameter
6565 and int to bool change of parameter types.
6566 * config/arm/arm.c (output_return_instruction): Likewise.
6567 * config/arm/arm.md (arm_simple_return): New pattern.
6568 (arm_return, cond_return, cond_return_inverted): Add new arguments.
6569 * config/arm/thumb2.md (thumb2_return): Update condition and code.
6571 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6572 Sameera Deshpande <sameera.deshpande@arm.com>
6573 Greta Yorsh <greta.yorsh@arm.com>
6575 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
6576 * config/arm/arm.c (arm_expand_epilogue): New function.
6577 * config/arm/arm.md (epilogue): Update condition and code.
6578 (sibcall_epilogue): Likewise.
6580 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6581 Sameera Deshpande <sameera.deshpande@arm.com>
6582 Greta Yorsh <greta.yorsh@arm.com>
6584 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
6585 * config/arm/arm.md (arm_addsi3) Add an alternative.
6587 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6588 Sameera Deshpande <sameera.deshpande@arm.com>
6589 Greta Yorsh <greta.yorsh@arm.com>
6591 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
6592 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
6593 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
6595 2012-06-18 Ian Bolton <ian.bolton@arm.com>
6596 Sameera Deshpande <sameera.deshpande@arm.com>
6597 Greta Yorsh <greta.yorsh@arm.com>
6599 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
6600 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
6601 (pop_multiple_with_return, ldr_with_return) Likewise.
6602 * config/arm/predicates.md (pop_multiple_return) New special predicate.
6603 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
6604 * config/arm/arm.c (arm_output_multireg_pop) New function.
6605 (arm_emit_multi_reg_pop): New function.
6607 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
6609 * config/arm/arm.c (ldm_stm_operation_p): Require SP
6610 as base register for loads if SP is in the register list.
6612 2012-06-18 Richard Guenther <rguenther@suse.de>
6614 PR tree-optimization/53693
6615 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
6616 Reject operands with more than one use.
6618 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
6620 PR tree-optimization/53703
6621 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
6622 correctly set bb_for_def[12].
6624 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
6626 * config/vax/vax.h (VMS_TARGET): Remove.
6628 2012-06-18 Richard Guenther <rguenther@suse.de>
6630 * tree-vrp.c (extract_range_from_assert): Split out range
6632 (intersect_ranges): New function.
6633 (vrp_intersect_ranges): Likewise.
6635 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6637 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
6640 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
6642 * doc/md.texi: Document int iterators.
6643 * read-rtl.c (ints): New iterator group.
6644 (find_int): Int iterator group callback.
6645 (apply_int_iterator): Likewise.
6646 (apply_iterators): Traverse int iterator table and add all the used
6648 (initialize_iterators): Initialize data structures and callbacks for
6650 (read_rtx): Parse and read mappings for int iterators.
6651 (read_rtx_code): Record int iterator usage.
6653 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
6656 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
6657 performing an addition.
6659 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6661 * output.h (split_double): Move prototype to rtl.h.
6662 (constructor_static_from_elts_p): Move prototype to tree.c.
6663 * rtl.h (split_double): Moved here from output.h.
6664 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
6665 * final.c (split_double): Move from here ...
6666 * rtlanal.c (split_double): ... to here.
6667 * expr.c: Do not include output.h.
6669 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6671 * cfglayout.h: Remove.
6672 * cfglayout.c: Remove.
6673 * function.h (struct function): Remove x_last_location field.
6674 * function.c: Do not include cfglayout.h.
6675 (expand_function_start): Do not call no-op force_next_line_note.
6676 (expand_function_end): Likewise.
6677 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
6678 (unlink_insn_chain): Moved here from cfglayout.c.
6679 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
6680 into_cfg_layout_mode, outof_cfg_layout_mode,
6681 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
6682 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
6683 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
6684 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
6685 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
6686 cfg_layout_finalize): Likewise.
6687 (rtl_can_remove_branch_p): Likewise.
6688 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
6689 (duplicate_insn_chain): Likewise.
6690 (force_next_line_note): Remove prototype.
6691 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
6692 (last_location): Remove #define to emit.x_last_location.
6693 (force_next_line_note): Remove no-op function.
6694 (init_emit): Don't set x_last_location.
6695 (block_locators_locs, block_locators_blocks, locations_locators_locs,
6696 locations_locators_vals, prologue_locator, epilogue_locator,
6697 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
6698 Move POD to here from cfglayout.c.
6699 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
6700 set_curr_insn_source_location, get_curr_insn_source_location,
6701 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
6702 locator_scope, insn_scope, locator_location, locator_line, insn_line,
6703 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
6704 * cfghooks.h: Remove double-include protection.
6705 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
6706 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
6707 * final.c: Do not include cfglayout.h.
6708 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
6709 (reemit_insn_block_notes): Likewise. Make static.
6710 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
6711 operation_could_trap_p, tree_could_throw_p): Move from here...
6712 * tree.h: ... to here.
6713 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
6714 * profile.c: Do not include cfghooks.h.
6715 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
6716 * modulo-sched.c: Likewise.
6717 * loop-unswitch.c: Do not include cfglayout.h.
6718 * sched-ebb.c: Likewise.
6719 * tracer.c: Likewise.
6721 * tree-vect-loop-manip.c: Likewise.
6722 * loop-init.c: Likewise.
6723 * dwarf2out.c: Likewise.
6724 * hw-doloop.c: Likewise.
6725 * loop-unroll.c: Likewise.
6726 * cfgcleanup.c: Likewise.
6727 * bb-reorder.c: Likewise.
6728 * sched-rgn.c: Likewise.
6729 * tree-cfg.c: Likewise.
6730 * config/alpha/alpha.c: Likewise.
6731 * config/spu/spu.c: Likewise.
6732 * config/sparc/sparc.c: Likewise.
6733 * config/sh/sh.c: Likewise.
6734 * config/c6x/c6x.c: Likewise.
6735 * config/ia64/ia64.c: Likewise.
6736 * config/rs6000/rs6000.c: Likewise.
6737 * config/score/score.c: Likewise.
6738 * config/mips/mips.c: Likewise.
6739 * config/bfin/bfin.c: Likewise.
6740 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
6741 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
6742 * config/spu/t-spu-elf (spu.o: $): Likewise.
6743 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
6745 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6747 * cfgloop.h: Do not include rtl.h.
6748 (enum iv_extend_code): New.
6749 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
6750 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
6751 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
6752 an IV_EXTEND_CODE to an RTX_CODE.
6753 (dump_iv_info): Update for rtx_iv field type change.
6754 (iv_constant): Likewise.
6755 (iv_subreg): Likewise.
6756 (iv_extend): Likewise.
6759 (iv_mult): Likewise.
6760 (iv_shift): Likewise.
6761 (get_biv_step_1): Likewise.
6762 (get_biv_step): Likewise.
6763 (iv_analyze_biv): Likewise.
6764 (get_iv_value): Likewise.
6765 (shorten_into_mode): Likewise.
6766 (canonicalize_iv_subregs): Likewise.
6767 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
6768 of MAY_HAVE_DEBUG_INSNS.
6769 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
6770 * tree-ssa-loop-prefetch.c: Likewise.
6772 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6774 * expmed.c (ceil_log2): Move from here...
6775 * hwint.c: ... to here for older GCCs...
6776 * hwint.h: ... and here for newer GCCs.
6777 * rtl.h (ceil_log2): Remove prototype.
6779 * tree-phinodes.c: Do not include rtl.h.
6780 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
6782 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
6784 * config/cris/cris.h (TARGET_ELF): Remove.
6785 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
6786 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
6787 (LOCAL_LABEL_PREFIX): Likewise.
6788 * config/cris/cris.c (cris_target_asm_named_section): Remove.
6789 (cris_option_override): Simpify using TARGET_ELF==1.
6790 (cris_file_start): Likewise.
6791 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
6793 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
6795 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
6797 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
6800 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
6802 2012-06-15 Easwaran Raman <eraman@google.com>
6804 * passes.c (init_optimization_passes): Remove pass_call_cdce
6805 from its current position and insert after pass_dce.
6807 2012-06-15 Walter Lee <walt@tilera.com>
6809 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
6811 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
6813 * arm.c (note_invalid_constants): Don't return a result.
6814 (arm_memory_load_p): Delete function.
6815 (arm_const_double_rtx): Delete iterator variable i;
6816 (fp_immediate_constant): Likewise.
6817 (fp_const_from_val): Likewise.
6819 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
6821 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
6824 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
6825 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
6827 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
6829 * config/avr/avr.c (avr_default_expand_builtin): New function.
6830 (avr_expand_builtin): Use it.
6831 (avr_expand_unop_builtin): Remove.
6832 (avr_expand_binop_builtin): Remove.
6833 (avr_expand_triop_builtin): Remove.
6835 2012-06-15 Michael Matz <matz@suse.de>
6838 * cfgexpand.c (add_alias_set_conflicts): Remove.
6839 (expand_used_vars): Don't call it.
6840 (aggregate_contains_union_type): Remove.
6841 * function.c (n_temp_slots_in_use): New static data.
6842 (make_slot_available, assign_stack_temp_for_type): Update it.
6843 (init_temp_slots): Zero it.
6844 (remove_unused_temp_slot_addresses): Use it for quicker removal.
6845 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
6847 2012-06-15 Michael Matz <matz@suse.de>
6849 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
6850 argument, don't emit assign statement if value is directly usable.
6851 (gimplify_expr): Adjust.
6853 2012-06-15 Michael Matz <matz@suse.de>
6855 * gimplify.c (gimplify_modify_expr): Fold generated statements.
6856 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
6858 2012-06-15 Richard Guenther <rguenther@suse.de>
6860 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
6861 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
6862 we assert for in set_value_range to VR_VARYING.
6864 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
6866 * arm.md (addsf3, adddf3): Use s_register_operand.
6867 (subsf3, subdf3): Likewise.
6868 (mulsf3, muldf3): Likewise.
6869 (difsf3, divdf3): Likewise.
6870 (movsfcc, movdfcc): Likewise.
6871 * predicates.md (f_register_operand): Delete.
6872 (arm_float_rhs_operand): Delete.
6873 (arm_float_add_operand): Delete.
6874 (arm_float_compare_operand): Use s_register_operand when
6876 (cirrus_register_operand): Delete.
6877 (cirrus_fp_register): Delete.
6878 (cirrus_shift_const): Delete.
6879 (cmpdi_operand): Remove Maverick support.
6880 * constraints.md (f, v, H): Delete constraints.
6881 (G): Update documentation.
6882 * arm.c (fp_consts_inited): Convert to bool.
6883 (strings_fp): Delete.
6884 (values_fp): Delete.
6885 (value_fp0): New variable.
6886 (init_fp_table): Simplify logic.
6887 (arm_const_double_rtx): Likewise.
6888 (fp_immediate_constant): Likewise.
6889 (fp_const_from_val): Likewise.
6890 (neg_const_double_rtx_ok_for_fpa): Delete.
6891 * doc/md.texi (ARM constraints): Update documentation.
6893 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
6895 PR tree-optimization/53636
6896 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
6897 stride when doing basic-block vectorization.
6899 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6901 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
6904 2012-06-15 Jakub Jelinek <jakub@redhat.com>
6906 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
6907 allocate and free bbs array for the SLP case.
6909 PR tree-optimization/51581
6910 * expr.h (choose_multiplier): New prototype.
6911 * expmed.c (choose_multiplier): No longer static.
6912 Change multiplier_ptr from rtx * to UHWI *.
6913 (expand_divmod): Adjust callers.
6914 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
6915 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
6916 argument to new_stmt_vec_info. Attempt to optimize also divisions
6917 by non-pow2 constants if integer vector division isn't supported.
6918 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
6919 don't look at pattern stmts and sequences.
6921 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
6924 * common.opt (-fdelete-dead-exceptions): New switch.
6925 * doc/invoke.texi (Code Gen Options): Document it.
6926 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
6927 insn_could_throw_p predicate. Do not skip an insn that could throw
6928 if dead exceptions can be deleted.
6929 (insn_live_p): Likewise, do not return true in that case.
6930 * dce.c (can_alter_cfg): New flag.
6931 (deletable_insn_p): Do not return false for an insn that can throw if
6932 the CFG can be altered and dead exceptions can be deleted.
6933 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
6934 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
6935 predicate. Do not preserve an insn that could throw if dead exceptions
6937 * function.h (struct function): Add can_delete_dead_exceptions flag.
6938 * function.c (allocate_struct_function): Set it.
6939 * lto-streamer-in.c (input_struct_function_base): Stream it.
6940 * lto-streamer-out.c (input_struct_function_base): Likewise.
6941 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
6942 statement that could throw as necessary if dead exceptions can be
6945 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
6947 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
6949 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
6952 * config/sh/sh.md: Add peephole for swapbsi2.
6953 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
6955 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
6957 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
6958 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
6960 2012-06-14 Jakub Jelinek <jakub@redhat.com>
6963 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
6965 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
6967 * arm.c (arm_cirrus_insn_p): Delete.
6968 (cirrus_reorg): Delete.
6969 (arm_reorg): Don't call cirrus_reorg.
6970 (arm_final_prescan_insn_p): Don't check for cirrus insns.
6971 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
6972 (adddi3, subdi3): Remove Maverick support.
6973 (arm_adddi3): Likewise.
6974 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6975 (addsf3, adddf3): Likewise.
6976 (subsf3, subdf3): Likewise.
6977 (mulsf3, muldf3): Likewise.
6978 (ashldi3, ashrdi3, lshrdi3): Likewise.
6979 (floatsisf2, floatsidf2): Likewise.
6980 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
6981 (arm_movdi, thumb1_movdi_insn): Likewise.
6982 (arm_cmpdi_insn): Likewise.
6983 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
6984 (cirrus.md): Don't include.
6985 * cirrus.md: Delete file.
6986 * t-arm (MD_INCLUDES): Remove cirrus.md.
6988 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
6990 * dwarf2out.c (function_possibly_abstracted_p): New static function.
6991 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
6992 cgraph_function_possibly_inlined_p.
6993 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
6994 (process_scope_var): Do not emit concrete instances of abstracted
6995 nested functions from here.
6996 (gen_decl_die): Emit the abstract instance if the function is possibly
6997 abstracted and not only possibly inlined.
6998 (dwarf2out_finish): Find the first non-abstract parent instance and
6999 attach concrete instances on the limbo list to it.
7001 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
7003 * arm.md (divsf3, divdf3): Remove FPA support.
7004 (negsf2, negdf2): Likewise.
7005 (sqrtsf2, sqrtdf2): Likewise.
7006 (movdfcc): Likewise.
7007 (modsf3, moddf3, movxf): Delete.
7008 (push_fp_multi): Delete.
7009 (fpa.md): Don't include it.
7010 * fpa.md: Delete file.
7011 * t-arm (MD_INCLUDES): Remove fpa.md.
7013 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
7015 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
7016 (cost_for_stmt): Remove decl.
7017 (vect_get_single_scalar_iteration_cost): Correct typo in name.
7018 * tree-vect-loop.c (vect_get_cost): Remove.
7019 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
7020 vect_get_stmt_cost rather than vect_get_cost.
7021 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
7023 (vect_estimate_min_profitable_iters): Correct typo in call to
7024 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
7026 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
7028 (vect_model_induction_cost): Likewise.
7029 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
7030 typo in call to vect_get_single_scalar_iteration_cost.
7031 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
7032 (cost_for_stmt): Remove unnecessary function.
7033 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
7035 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
7037 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
7038 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
7039 * arm-tables.opt: Regenerated.
7040 * doc/invoke.texi: Remove references to deleted options.
7042 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
7044 * config/h8300/genmova.sh: Modified to add offset bits of
7045 mova/Sz assembly instruction for memory access.
7046 * config/h8300/h8300.c: Likewise.
7047 * config/h8300/mova.md: Likewise.
7049 2012-06-12 Christian Bruel <christian.bruel@st.com>
7052 * config/sh/sh.c (sh_option_override): Don't force
7053 flag_omit_frame_pointer and maccumulate_outgoing_args.
7054 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
7056 2012-06-14 Richard Guenther <rguenther@suse.de>
7058 * tree-vrp.c (VR_INITIALIZER): New define.
7059 (ranges_from_anti_range): New function.
7060 (extract_range_from_binary_expr_1): Decompose operations on
7061 VR_ANTI_RANGEs to operations on VR_RANGE.
7062 (extract_range_from_unary_expr_1): Likewise.
7063 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
7064 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
7065 extract_range_from_cond_expr, adjust_range_with_scev,
7066 vrp_visit_assignment_or_call, vrp_visit_phi_node,
7067 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
7069 2012-06-13 Richard Henderson <rth@redhat.com>
7071 * hwint.h (HOST_WIDEST_INT_C): New.
7072 (HOST_WIDE_INT_C): New.
7073 (HOST_WIDE_INT_1): Use it.
7074 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
7076 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7079 * var-tracking.c: Include alias.h.
7080 (overlapping_mems): New struct.
7081 (drop_overlapping_mem_locs): New.
7082 (clobber_overlapping_mems): New.
7083 (var_mem_delete_and_set, var_mem_delete): Call it.
7084 (val_bind): Likewise, but only if modified.
7085 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
7086 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
7088 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7091 * var-tracking.c (loc_exp_dep_pool): New.
7092 (vt_emit_notes): Create and release the pool.
7093 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
7094 (emit_notes_in_bb): Likewise.
7095 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
7096 (notify_dependents_of_changed_value): Likewise.
7097 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
7098 variables don't have a VAR_LOC_DEP_LST.
7099 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
7100 VALUEs or MEMs of VALUEs.
7102 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7106 * dce.c (word_dce_process_block): Insert debug temps only if the
7108 (dce_process_block): Likewise, and if debug.used is not empty,
7109 and only after iterating over all DEFs that might mark the insn.
7111 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
7113 * common.opt (ftree-coalesce-inlined-vars): New.
7114 (ftree-coalesce-vars): New.
7115 * doc/invoke.texi: Document them.
7116 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7119 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
7121 * read-rtl.c (mapping): Remove index field. Add current_value field.
7122 Define heap vectors.
7123 (iterator_group): Fix long line. Remove num_builtins field and
7124 uses_iterator fields. Make apply_iterator take a void * parameter.
7125 (iterator_use, atttribute_use): New structures.
7126 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
7127 (current_iterators, iterator_uses, attribute_uses): New variables.
7128 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
7129 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
7130 (map_attr_string, apply_iterator_to_string): Remove iterator
7131 and value parameters. Look through all current iterator values
7132 for a matching attribute.
7133 (mode_attr_index, apply_mode_maps): Delete.
7134 (apply_iterator_to_rtx): Replace with...
7135 (copy_rtx_for_iterators): ...this new function.
7136 (uses_iterator_p, apply_iterator_traverse): Delete.
7137 (apply_attribute_uses, add_current_iterators, apply_iterators): New
7139 (add_mapping): Remove index field. Set current_value field.
7140 (initialize_iterators): Don't set num_builtins and uses_iterator_p
7142 (find_iterator): Delete.
7143 (record_iterator_use, record_attribute_use): New functions.
7144 (record_potential_iterator_use): New function.
7145 (check_code_iterator): Remove handling of bellwether codes.
7146 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
7147 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
7148 parameter. Use the first code iterator value instead of the
7149 bellwether_codes array. Use record_potential_iterator_use for modes.
7151 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
7154 * config/sh/sh.md (bswapsi2): New expander.
7155 (swapbsi2): New insn.
7157 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
7160 * config/i386/i386.c (ix86_tune_cost): New variable.
7161 (ix86_option_override_internal): Set ix86_tune_cost. Use
7162 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
7163 l1_cache_size and l2_cache_size.
7165 2012-06-13 Richard Guenther <rguenther@suse.de>
7167 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
7168 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
7169 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
7170 VR_ANTI_RANGE with VR_ANTI_RANGE.
7172 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
7174 * config.gcc (unsupported): Move obsoleted FPA-based configurations
7176 (obsolete): ... here.
7177 (arm*-*-freebsd*): Remove.
7178 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
7179 (arm*-*-uclinux*): Likewise.
7180 (arm*-*-ecos-elf): Remove.
7181 (arm*-*-rtems*): Remove.
7182 (arm*-*-elf): Remove.
7183 (arm*-wince-pe*): Remove.
7184 (arm, --with-fpu): Remove support for fpa and Maverick variants.
7185 * arm/ecos-elf.h: Delete.
7186 * arm/t-strongarm-elf: Delete.
7187 * arm/rtems-elf.h: Delete.
7188 * arm/wince-pe.h: Delete.
7191 * arm/t-wince-pe: Delete.
7193 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
7195 PR tree-optimization/53647
7196 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
7197 targets with no defined cache line size.
7199 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
7201 * targhooks.c (default_builtin_vectorized_conversion): Handle
7202 vec_construct, using vectype to base cost on subparts.
7203 * target.h (enum vect_cost_for_stmt): Add vec_construct.
7204 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
7205 instead of scalar_to-vec.
7206 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
7207 vec_construct in same way as default for now.
7208 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
7209 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7210 Handle vec_construct, including special case for 32-bit loads.
7212 2012-06-13 Xinyu Qi <xyqi@marvell.com>
7214 * config/arm/arm.c (FL_IWMMXT2): New define.
7215 (arm_arch_iwmmxt2): New variable.
7216 (arm_option_override): Enable use of iWMMXt with VFP.
7217 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
7218 Thumb mode. Set arm_arch_iwmmxt2.
7219 (arm_expand_binop_builtin): Accept VOIDmode op.
7220 (enum arm_builtins): Revise built-in fcode.
7221 (IWMMXT2_BUILTIN): New define.
7222 (IWMMXT2_BUILTIN2): Likewise.
7223 (iwmmx2_mbuiltin): Likewise.
7224 (builtin_description bdesc_2arg): Revise built in declaration.
7225 (builtin_description bdesc_1arg): Likewise.
7226 (arm_init_iwmmxt_builtins): Revise built in initialization.
7227 (arm_expand_builtin): Revise built in expansion.
7228 (arm_output_iwmmxt_shift_immediate): New function.
7229 (arm_output_iwmmxt_tinsr): Likewise.
7230 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
7231 (arm_output_iwmmxt_tinsr): Likewise.
7232 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
7233 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
7234 (rorv4hi3, rorv2si3, rordi3): Likewise.
7235 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
7236 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
7237 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
7238 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
7239 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
7240 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
7241 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
7242 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
7243 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
7244 (ror<mode>3, ror<mode>3_di): Likewise.
7245 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
7246 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
7247 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
7248 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
7249 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
7250 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
7251 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
7252 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
7253 (All instruction patterns): Add wtype attribute.
7254 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
7255 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
7256 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
7257 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
7258 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
7259 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
7260 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
7261 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
7262 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
7263 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
7264 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
7265 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
7266 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
7267 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
7268 (iwmmxt2.md): Include.
7269 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
7270 (TARGET_IWMMXT2): New define.
7271 (TARGET_REALLY_IWMMXT2): Likewise.
7272 (arm_arch_iwmmxt2): Declare.
7273 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
7274 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
7275 Use C name-mangling for intrinsics.
7277 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
7278 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
7279 (_m_from_int): Likewise.
7280 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
7281 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
7282 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
7283 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
7284 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
7285 (_mm_tbcst_pi32): Likewise.
7286 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
7287 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
7288 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
7289 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
7290 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
7291 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
7292 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
7293 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
7294 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
7295 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
7296 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
7297 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
7298 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
7299 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
7300 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
7301 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
7302 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
7303 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
7304 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
7305 (_m_to_int): New define.
7306 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
7307 * config/arm/arm-arches.def (iwmmxt2): Likewise.
7308 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
7310 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
7311 (arch): Add "iwmmxt2".
7312 (arch_enabled): Handle "iwmmxt2".
7313 (wtype): New attribute.
7314 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
7315 (UNSPEC_WALIGNI): New unspec.
7316 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
7317 * config/arm/iterators.md (VMMX2): New mode_iterator.
7318 * config/arm/marvell-f-iwmmxt.md: New file.
7319 * config/arm/iwmmxt2.md: New file.
7321 2012-06-12 Jakub Jelinek <jakub@redhat.com>
7326 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
7327 if type isn't complete.
7329 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
7331 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
7333 2012-06-12 Richard Henderson <rth@redhat.com>
7335 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
7336 iterator instead of INT.
7338 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
7340 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
7341 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
7343 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
7344 (tree_ssa_phiopt): Call gate_hoist_loads.
7345 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
7346 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
7347 hoist_adjacent_loads.
7348 (local_mem_dependence): New function.
7349 (hoist_adjacent_loads): Likewise.
7350 (gate_hoist_loads): Likewise.
7351 * common.opt (fhoist-adjacent-loads): New switch.
7352 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
7354 2012-06-12 Michael Matz <matz@suse.de>
7356 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
7357 (nonoverlapping_memrefs_p): Don't call it here ...
7358 (true_dependence_1): ... but here.
7360 2012-06-12 Richard Guenther <rguenther@suse.de>
7362 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
7363 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
7364 and MEM_SIZE only refines it. Reflect that and be less conservative
7365 if either of the latter is not known.
7367 2012-06-12 Jakub Jelinek <jakub@redhat.com>
7369 PR rtl-optimization/53589
7370 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
7371 discovery even when e->dest != target. If any LABEL_REF points
7372 to e->dest label, redirect it to target's label.
7374 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
7376 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
7377 condition for generating REG_FRAME_RELATED_EXPR note.
7378 (pop): Add code for generating REG_CFA_RESTORE,
7379 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
7380 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
7381 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
7383 2012-06-11 Richard Henderson <rth@redhat.com>
7385 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
7386 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
7388 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
7390 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
7392 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
7393 Mention that this hook needs to be defined for native TLS.
7394 * doc/tm.texi: Regenerate.
7396 2012-06-11 Mike Stump <mikestump@comcast.net>
7398 * emit-rtl.c (init_emit_once): Iterate through the
7399 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
7400 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
7401 all the MIN_MODE_PARTIAL_INT modes anymore.
7403 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7405 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
7407 2012-06-11 Roland McGrath <mcgrathr@google.com>
7409 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
7410 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
7411 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
7414 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
7417 * config/sh/sh.md (fmasf4): New expander.
7418 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
7419 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
7420 * config/sh/sh.opt (mfused-madd): Remove.
7421 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
7422 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
7423 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
7425 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
7428 2012-06-11 Richard Henderson <rth@redhat.com>
7430 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
7432 2012-06-11 Richard Guenther <rguenther@suse.de>
7435 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
7436 replace it with the first non-BLOCK context.
7438 2012-06-11 Richard Guenther <rguenther@suse.de>
7440 * alias.c (aliases_everything_p): Remove.
7441 (DIFFERENT_ALIAS_SETS_P): Likewise.
7442 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
7443 Do not use aliases_everything_p or special-case ANDs. Do not
7444 special-case BLKmode moves.
7445 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
7448 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
7450 Fix CRIS build errors with --enable-build-with-cxx.
7451 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
7452 variable "and" to "andop".
7453 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
7454 temporary variable for memory model, passing C++-type-correct
7455 parameter type to expand_mem_thread_fence.
7456 ("atomic_compare_and_swap<mode>"): Ditto.
7458 2012-06-09 Richard Henderson <rth@redhat.com>
7461 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
7462 (pass_jump): Rename from pass_jump2.
7463 (execute_jump2, pass_jump2): New.
7464 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
7465 perform cfg cleanup here. Move the test of PUSH_ROUNDING
7466 and ACCUMULATE_OUTGOING_ARGS test...
7467 (gate_handle_stack_adjustments): ... here.
7468 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
7469 Place new pass_jump2 after pass_stack_adjustments.
7470 * tree-pass.h (pass_jump): Declare.
7472 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
7474 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
7477 2012-06-08 Richard Henderson <rth@redhat.com>
7480 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
7481 note to a clobber insn when no other insn is available.
7483 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
7485 * config/avr/avr.c (avr_case_values_threshold): Return 7.
7487 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
7489 * genhooks.c (main): Set progname.
7490 (emit_documentation): Remove variable found_start, always bail out
7491 when a place is missing.
7492 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
7494 2012-06-07 Jakub Jelinek <jakub@redhat.com>
7497 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
7498 call walk_gimple_seq_mod instead of walk_gimple_seq.
7499 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
7500 scan_omp_for, scan_omp_sections, scan_omp_single,
7501 execute_lower_omp): Adjust callers.
7502 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
7503 returns false, replace stmt with GIMPLE_NOP.
7504 (check_omp_nesting_restrictions): Instead of issuing warnings,
7505 issue errors and return false if any errors were reported.
7507 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7509 * doc/invoke.texi (fconserve-space): Remove documentation.
7511 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
7513 * config/rs6000/rs6000-tables.opt: Regenerated.
7515 2012-06-06 Richard Guenther <rguenther@suse.de>
7517 PR tree-optimization/53081
7518 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
7519 (adjacent_dr_p): ... this and make it work for reads, too.
7520 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
7521 (struct partition_s): Change main_stmt to main_dr, add
7522 secondary_dr member.
7523 (build_size_arg_loc): Change to date data-reference and not
7525 (build_addr_arg_loc): New function split out from ...
7526 (generate_memset_builtin): ... here. Use it and simplify.
7527 (generate_memcpy_builtin): New function.
7528 (generate_code_for_partition): Adjust.
7529 (classify_partition): Streamline pattern detection. Detect memcpy.
7530 (ldist_gen): Adjust.
7531 (tree_loop_distribution): Adjust seed statements for memcpy
7534 2012-06-06 Matt Turner <mattst88@gmail.com>
7536 * config/arm/mmintrin.h (_mm_empty): New.
7539 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
7541 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
7542 * common.opt (fsched-pressure-algorithm=): Remove.
7543 * flag-types.h (sched_pressure_algorithm): Move to...
7544 * sched-int.h (sched_pressure_algorithm): ...here.
7545 * params.def (sched-pressure-algorithm): New param.
7546 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
7547 * common/config/s390/s390-common.c (s390_option_optimization_table):
7548 Remove OPT_fsched_pressure_algorithm_ entry.
7549 * config/s390/s390.c (s390_option_override): Set a default value for
7550 PARAM_SCHED_PRESSURE_ALGORITHM.
7552 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7555 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
7556 doing an unsigned compare, make sure the second argument is not a
7558 (rs6000_emit_cmove): Don't allow floating point comparisons when
7559 generating ISEL moves.
7561 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
7563 * config/rs6000/e5500.md: New file.
7564 * config/rs6000/e6500.md: New file.
7565 * config/rs6000/rs6000.c (processor_costs): Add new costs for
7567 (rs6000_option_override_internal): Altivec and Spe options not
7568 allowed with e5500. Spe options not allowed with e6500. Increase
7569 move inline limit for e5500 and e6500. Disable string instructions
7570 for e5500 and e6500. Enable branch targets alignment for e5500 and
7571 e6500. Initialize rs6000_cost for e5500 and e6500.
7572 (rs6000_adjust_cost): Add extra scheduling cycles between compare
7573 and brnach for e5500 and e6500.
7574 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
7575 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
7577 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
7578 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
7580 Include e5500.md and e6500.md.
7581 * config/rs6000/rs6000-opt.h (processor_type): Add
7582 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
7583 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
7584 (powerpc*-*-*): Add new cores e5500, e6500.
7585 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
7587 2012-06-05 Richard Guenther <rguenther@suse.de>
7589 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
7591 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
7594 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
7595 is used for x86_64-*-*.
7597 2012-06-05 Richard Guenther <rguenther@suse.de>
7599 PR tree-optimization/30442
7600 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
7601 vectorization stop analysis at the first stmt we cannot compute
7602 a data-reference for instead of giving up completely.
7604 2012-06-05 Richard Guenther <rguenther@suse.de>
7606 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
7607 (partition_alloc): Initialize it.
7608 (partition_has_writes): New function.
7609 (rdg_flag_uses): Adjust.
7610 (rdg_flag_vertex): Likewise.
7611 (rdg_flag_vertex_and_dependent): Likewise.
7612 (rdg_flag_loop_exits): Likewise.
7613 (build_rdg_partition_for_component): Likewise.
7614 (rdg_build_partitions): Likewise.
7616 2012-06-05 Richard Guenther <rguenther@suse.de>
7618 PR tree-optimization/53081
7619 * tree-loop-distribution.c (generate_memset_builtin): Handle all
7620 kinds of byte-sized stores.
7621 (classify_partition): Likewise.
7622 (tree_loop_distribution): Adjust seed statements used for
7623 !flag_tree_loop_distribution.
7625 2012-06-05 Alan Modra <amodra@gmail.com>
7627 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
7628 (rs6000_emit_prologue): Ensure register used for inline saves
7629 of vector regs is not the static chain register. Revise comment.
7631 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
7633 * doc/md.texi (Standard Pattern Names For Generation): Document
7636 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
7639 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
7641 2012-06-04 Jason Merrill <jason@redhat.com>
7643 * dwarf2out.c (is_unit_die): New.
7644 (copy_declaration_context, copy_ancestor_tree): Use it.
7645 (copy_decls_walk): Likewise.
7647 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
7650 * doc/invoke.texi (Wenum-compare): Update documentation.
7652 2012-06-04 Dodji Seketeli <dodji@redhat.com>
7654 PR preprocessor/53463
7655 * parser.c (cp_parser_assignment_expression): Use the location
7656 for the '=' as the default location for the expression.
7658 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
7661 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
7663 (altivec_stvlxl): Ditto.
7664 (altivec_stvrx): Ditto.
7665 (altivec_stvrxl): Ditto.
7667 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
7669 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
7670 (ira_uniform_class_p): New macro.
7672 * ira.c (setup_uniform_class_p): New function.
7673 (setup_allocno_and_important_classes): Call the function.
7674 (print_unform_and_important_classes): New function.
7675 (print_classes): Rename to print_translated_classes.
7676 (ira_debug_allocno_classes): Add call of
7677 print_unform_and_important_classes.
7679 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
7680 classes instead of pressure classes.
7682 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
7685 * trans-mem.c (expand_block_edges): Do not skip the first
7686 statement when resetting the BB.
7688 2012-06-04 Richard Guenther <rguenther@suse.de>
7690 * tree-data-ref.c (stores_from_loop): Remove.
7691 (stmt_with_adjacent_zero_store_dr_p): Likewise.
7692 (stores_zero_from_loop): Likewise.
7693 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
7694 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
7695 (adjacent_store_dr_p): New function.
7696 * tree-loop-distribution.c (generate_memset_builtin): Pass
7697 the RDG, use the already available data-reference.
7698 (generate_code_for_partition): Pass down RDG.
7699 (classify_partition): Inline parts of the former
7700 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
7701 (ldist_gen): Remember if there was any detected builtin and
7702 do less work if not and flag_tree_loop_distribution is not set.
7703 (tree_loop_distribution): Inline and fuse stores_from_loop
7704 and stores_zero_from_loop here.
7706 2012-06-04 Richard Guenther <rguenther@suse.de>
7709 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
7710 create new assembler names.
7712 2012-06-04 Richard Guenther <rguenther@suse.de>
7714 * tree-data-ref.c (struct rdg_vertex_info): Remove.
7715 (rdg_vertex_for_stmt): Simplify using gimple_uid.
7716 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
7717 hashtable. Record stmt data-references.
7718 (hash_stmt_vertex_info): Remove.
7719 (eq_stmt_vertex_info): Likewise.
7720 (hash_stmt_vertex_del): Likewise.
7721 (build_empty_rdg): Simplify.
7722 (build_rdg): Adjust.
7723 (free_rdg): Likewise.
7724 (ref_base_address): Remove.
7725 (have_similar_memory_accesses): Likewise.
7726 * tree-data-ref.h (create_rdg_vertices): Remove.
7727 (struct rdg_vertex): Add datarefs member.
7728 (RDGV_DATAREFS): New define.
7729 (RDG_DATAREFS): Likewise.
7730 (have_similar_memory_accesses): Remove.
7731 (rdg_has_similar_memory_accesses): Likewise.
7732 * tree-loop-distribution.c (ref_base_address): Re-implement here.
7733 (similar_memory_accesses): Re-implement using existing data-references.
7734 (tree_loop_distribution): Initialize stmt uids for the stmt to
7736 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
7737 access stmt vinfo for stmts in loop.
7739 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
7742 * config/m68k/m68k.md ("tablejump"): Fix check for
7743 CASE_VECTOR_PC_RELATIVE.
7745 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7747 * output.h (merge_weak, assemble_alias,
7748 initializer_constant_valid_p,
7749 initializer_constant_valid_for_bitfield_p): Move protos from here...
7750 * tree.h: ... to here.
7751 * cgraphclones.c: Do not include output.h.
7752 * gimplify.c: Likewise.
7753 * reload.c: Likewise.
7754 * recog.c: Likewise.
7755 * tree-ssa-loop-ivopts.c: Likewise.
7756 * tree-switch-conversion.c: Likewise.
7757 * c-parser.c: Likewise.
7758 * c-typeck.c: Likewise.
7759 * Makefile.in: Fix dependencies.
7761 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
7764 * config/avr/avr-stdint.h: New file.
7765 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
7768 2012-06-04 Jakub Jelinek <jakub@redhat.com>
7770 PR tree-optimization/53550
7771 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
7772 is POINTER_TYPE_P, use sizetype as step type instead of type.
7774 2012-06-04 Richard Guenther <rguenther@suse.de>
7776 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
7777 (ref_base_address_1): Likewise.
7778 (remove_similar_memory_refs): Likewise.
7779 * tree-data-ref.h (remove_similar_memory_refs): Remove.
7780 * tree-loop-distribution.c (classify_partition): Do not classify
7781 as builtin if -ftree-loop-distribute-patterns is not enabled.
7782 (fuse_partitions_with_similar_memory_accesses): Inline ...
7783 (ldist_gen): ... here. Fuse all non-builtin partitions if
7784 -ftree-loop-distribution is not enabled. Properly return
7785 the number of created partitions. Do not update SSA form here but ...
7786 (tree_loop_distribution): ... once here for the whole function.
7787 Only walk innermost loops, constrain loops we consider here
7788 further. Do not call remove_similar_memory_refs.
7789 (distribute_loop): Do not check number of loop nodes here.
7791 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7793 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
7795 2012-06-03 Martin Jambor <mjambor@suse.cz>
7797 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
7798 (ipa_get_jf_known_type_base_type): Likewise.
7799 (ipa_get_jf_known_type_component_type): Likewise.
7800 (ipa_get_jf_constant): Likewise.
7801 (ipa_get_jf_pass_through_formal_id): Likewise.
7802 (ipa_get_jf_pass_through_operation): Likewise.
7803 (ipa_get_jf_ancestor_offset): Likewise.
7804 (ipa_get_jf_ancestor_type): Likewise.
7805 (ipa_get_jf_ancestor_formal_id): Likewise.
7806 (ipa_get_jf_member_ptr_pfn): Likewise.
7807 * ipa-prop.c (ipa_set_jf_known_type): New function.
7808 (ipa_set_jf_constant): Likewise.
7809 (ipa_set_jf_simple_pass_through): Likewise.
7810 (ipa_set_jf_arith_pass_through): Likewise.
7811 (ipa_set_ancestor_jf): Likewise.
7812 (fill_member_ptr_cst_jump_function): Moved up and renamed to
7813 ipa_set_jf_member_ptr_cst.
7814 (detect_type_change_1): Use the new jump function creation functions.
7815 (compute_complex_assign_jump_func): Likewise.
7816 (compute_complex_ancestor_jump_func): Likewise.
7817 (compute_known_type_jump_func): Likewise.
7818 (compute_scalar_jump_functions): Likewise.
7819 (compute_pass_through_member_ptrs): Likewise.
7820 (determine_cst_member_ptr): Likewise.
7821 (combine_known_type_and_ancestor_jfs): Likewise.
7822 (try_make_edge_direct_simple_call): Likewise.
7823 (try_make_edge_direct_virtual_call): Likewise.
7824 (update_indirect_edges_after_inlining): Likewise.
7825 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
7826 access functions. Incorporat NOP_EXPR and BINFO handling from its
7828 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
7829 which was in its callers.
7830 (ipa_value_from_jfunc): Use jump function access functions. Some
7831 functionality moved to functions above.
7832 (propagate_vals_accross_ancestor): Likewise.
7833 (propagate_vals_accross_pass_through): Use jump function access
7835 (propagate_accross_jump_function): Likewise.
7836 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
7838 (inline_merge_summary): Likewise.
7840 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7842 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
7843 * config/pa/pa.c (pa_attr_length_millicode_call): Use
7844 MAX_PCREL17F_OFFSET instead of fixed offset.
7845 (pa_attr_length_call): Likewise.
7846 (pa_attr_length_indirect_call): Likewise.
7848 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
7851 * config/sh/sh.opt (mfsca, mfsrra): New options.
7852 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
7854 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
7855 (sinssf2, cossf2): Fold expanders to ...
7856 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
7857 TARGET_FSCA condition.
7858 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
7860 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
7861 -mno-fsca, -mfsrra, -mno-fsrra.
7863 2012-06-03 Matt Turner <mattst88@gmail.com>
7865 * config/mips/4600.md (r4700_imul_si): New.
7866 (r4700_imul_di): New.
7867 (r4700_fmul_single): New.
7868 (r4700_fmul_double): New.
7869 * config/mips/mips-cpus.def: Add r4700.
7870 * config/mips/mips.c: Likewise.
7871 * config/mips/mips.md: Likewise.
7872 * config/mips/mips-tables.opt: Regenerate.
7874 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
7876 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
7877 new function sparc_initial_elimination_offset.
7878 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
7880 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
7883 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
7885 * expmed.c (expand_mult, choose_multiplier): Change
7886 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
7887 * expr.c (convert_modes): Likewise.
7888 * explow.c (plus_constant): Likewise.
7889 * fixed-value.c (fixed_saturate1, fixed_saturate2)
7890 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
7891 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
7892 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
7893 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
7894 (do_fixed_shift, fixed_convert, fixed_convert)
7895 (fixed_convert_from_int, fixed_convert_from_int)
7896 (fixed_convert_from_real): Likewise.
7897 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
7898 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
7899 * varasm.c (output_constructor_bitfield): Likewise.
7900 * tree-vrp.c (register_edge_assert_for_2): Likewise.
7901 * double-int.c (rshift_double, lshift_double): Likewise.
7902 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
7904 * simplify-rtx.c (mode_signbit_p)
7905 (simplify_const_unary_operation, simplify_binary_operation_1)
7906 (simplify_immed_subreg): Likewise.
7907 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
7908 * tree-vect-generic.c (build_replicated_const): Likewise.
7909 * dbxout.c (stabstr_O): Likewise.
7910 * emit-rtl.c (immed_double_int_const, immed_double_const)
7911 (gen_lowpart_common, init_emit_once): Likewise.
7912 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
7913 (widest_int_cst_value, upper_bound_in_type): Likewise.
7914 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
7915 (fixup_unsigned_type): Likewise.
7916 * real.c (real_to_integer2, real_from_integer): Likewise.
7917 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
7918 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
7920 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
7923 * fold-const.c (fold_binary_loc): Refine previous change.
7925 2012-06-01 Olivier Hainque <hainque@adacore.com>
7927 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
7928 the "do {" part of the do-while(0) loop.
7930 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
7932 * config/i386/i386.c (x86_sched_reorder): New function.
7933 Added new function x86_sched_reorder.
7935 2012-06-01 Richard Guenther <rguenther@suse.de>
7937 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
7939 (classify_partition): Likewise.
7941 2012-06-01 Richard Guenther <rguenther@suse.de>
7943 * tree-loop-distribution.c (enum partition_kind): New enum.
7944 (struct partition_s): Add kind and main_stmt members.
7945 (partition_alloc): Initialize kind to PKIND_NORMAL.
7946 (partition_builtin_p): New function.
7947 (copy_loop_before): Remove failure path and assert instead.
7948 (generate_loops_for_partition): Likewise.
7949 (generate_memset_zero): Fold into ...
7950 (generate_memset_builtin): ... this.
7951 (classify_partition): New function with code from
7952 can_generate_builtin and generate_builtin.
7953 (generate_builtin): Remove.
7954 (can_generate_builtin): Likewise.
7955 (fuse_partitions_with_similar_memory_accesses): Call
7956 partition_builtin_p instead of can_generate_builtin.
7957 (rdg_build_partitions): Do not call
7958 fuse_partitions_with_similar_memory_accesses here...
7959 (ldist_gen): ... but here after classifying all partitions.
7960 Remove failure path of generate_code_for_partition.
7961 (generate_code_for_partition): Generate code according
7962 to partition classification.
7964 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
7965 Jonathan Wakely <jwakely.gcc@gmail.com>
7968 * doc/invoke.texi (Warning Options): Explain purpose and differences
7969 between -Wmissing-prototypes and -Wmissing-declarations.
7971 2012-06-01 Christian Bruel <christian.bruel@st.com>
7973 * gcc.c (save_switch): Add user_p parameter.
7974 (read_specs): Likewise.
7975 (set_specs): Likewise.
7976 (validate_switches): Likewise.
7977 (validate_switches_from_spec): Likewise.
7978 (validate_all_switches): Pass on user_p parameter.
7979 (struct spec_list): Add user_p field.
7980 (struct switchstr): Add known field.
7981 (save_switch): Add known parameter.
7982 (INIT_STATIC_SPEC): Initialize user_p;
7983 (driver_unknown_option_callbac): call save_switch if
7984 OPT_SPECIAL_unknown.
7985 (driver_handle_option): Propagate OPT_specs.
7986 (do_spec_1): Set validated only if known.
7987 (check_live_switch): Likewise.
7988 (validate_switches): Set validated if known or user_spec.
7990 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
7992 Add CRIS atomic patterns for 1, 2, and 4 bytes.
7993 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
7994 * config/cris/cris-protos.h: Declare it.
7995 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
7996 (TARGET_DEFAULT): Add alignment by 32.
7997 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
7998 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
7999 TARGET_CPU_DEFAULT == 32.
8000 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
8001 * config/cris/cris.md: Include sync.md. Avoid allocating specific
8002 numbers by replacing the define_constants for all UNSPECs with the
8003 equivalent define_c_enum construct.
8004 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
8005 * config/cris/sync.md: New file.
8007 2012-05-31 Matt Turner <mattst88@gmail.com>
8009 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
8010 (r4600_imul_di): New.
8011 (r4600_idiv_si): Rename from r4600_idiv.
8012 (r4600_idiv_di): New.
8014 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8016 * output.h (__gcc_host_wide_int__): Move to hwint.h.
8017 (decl_default_tls_model): Move to tree.h
8018 (dump_file): Move to system.h.
8019 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
8020 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
8021 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
8022 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
8023 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
8024 dbxout_stab_value_internal_label,
8025 dbxout_stab_value_internal_label_diff): Move from here ...
8026 * dbxout.h: ... to here.
8027 * system.h (dump_file): Moved here from output.h.
8028 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
8029 * tree.h (decl_default_tls_model): Moved here from output.h.
8030 * varasm.c (default_stabs_asm_out_destructor,
8031 default_stabs_asm_out_constructor): Move from here ...
8032 * dbxout.c: ... to here.
8034 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
8036 * collect2.h (dump_file): Rename to dump_ld_file.
8037 * collect2.c: Likewise.
8038 * tlink.c: Likewise.
8040 * alias.c: Do not include output.h.
8041 * auto-inc-dec.c: Likewise.
8042 * bt-load.c: Likewise.
8043 * caller-save.c: Likewise.
8045 * cfgbuild.c: Likewise.
8046 * cfgcleanup.c: Likewise.
8047 * cfglayout.c: Likewise.
8048 * cfgloop.c: Likewise.
8049 * cfgloopanal.c: Likewise.
8050 * cfgloopmanip.c: Likewise.
8051 * cfgrtl.c: Likewise.
8052 * cgraph.c: Likewise.
8053 * cgraphclones.c: Likewise.
8054 * combine-stack-adj.c: Likewise.
8055 * combine.c: Likewise.
8056 * cprop.c: Likewise.
8058 * cselib.c: Likewise.
8059 * dbgcnt.c: Likewise.
8060 * df-problems.c: Likewise.
8061 * df-scan.c: Likewise.
8062 * dojump.c: Likewise.
8063 * fwprop.c: Likewise.
8065 * graph.c: Likewise.
8066 * haifa-sched.c: Likewise.
8067 * hw-doloop.c: Likewise.
8068 * ipa-inline-transform.c: Likewise.
8069 * ipa-pure-const.c: Likewise.
8070 * ipa-reference.c: Likewise.
8071 * ipa-utils.c: Likewise.
8072 * ira-build.c: Likewise.
8073 * ira-emit.c: Likewise.
8075 * loop-doloop.c: Likewise.
8076 * loop-invariant.c: Likewise.
8077 * loop-iv.c: Likewise.
8078 * loop-unroll.c: Likewise.
8079 * loop-unswitch.c: Likewise.
8080 * lto-cgraph.c: Likewise.
8081 * lto-section-in.c: Likewise.
8082 * lto-streamer-in.c: Likewise.
8084 * mode-switching.c: Likewise.
8085 * postreload-gcse.c: Likewise.
8086 * postreload.c: Likewise.
8087 * predict.c: Likewise.
8088 * profile.c: Likewise.
8090 * reg-stack.c: Likewise.
8091 * regcprop.c: Likewise.
8092 * regmove.c: Likewise.
8093 * regstat.c: Likewise.
8094 * reload1.c: Likewise.
8095 * sched-ebb.c: Likewise.
8096 * sel-sched-dump.c: Likewise.
8097 * simplify-rtx.c: Likewise.
8098 * stor-layout.c: Likewise.
8099 * store-motion.c: Likewise.
8100 * tracer.c: Likewise.
8101 * tree-affine.c: Likewise.
8102 * tree-cfg.c: Likewise.
8103 * tree-cfgcleanup.c: Likewise.
8104 * tree-dfa.c: Likewise.
8105 * tree-into-ssa.c: Likewise.
8106 * tree-nomudflap.c: Likewise.
8107 * tree-optimize.c: Likewise.
8108 * tree-pretty-print.c: Likewise.
8109 * tree-profile.c: Likewise.
8110 * tree-ssa-address.c: Likewise.
8111 * tree-ssa-ccp.c: Likewise.
8112 * tree-ssa-copy.c: Likewise.
8113 * tree-ssa-dom.c: Likewise.
8114 * tree-ssa-loop-ch.c: Likewise.
8115 * tree-ssa-loop-im.c: Likewise.
8116 * tree-ssa-loop-manip.c: Likewise.
8117 * tree-ssa-loop-niter.c: Likewise.
8118 * tree-ssa-loop-prefetch.c: Likewise.
8119 * tree-ssa-loop-unswitch.c: Likewise.
8120 * tree-ssa-loop.c: Likewise.
8121 * tree-ssa-propagate.c: Likewise.
8122 * tree-ssa-structalias.c: Likewise.
8123 * tree-ssa-tail-merge.c: Likewise.
8124 * tree-ssa-threadedge.c: Likewise.
8125 * tree-ssa-threadupdate.c: Likewise.
8126 * tree-ssa-uncprop.c: Likewise.
8127 * tree-ssa-uninit.c: Likewise.
8128 * tree-ssa.c: Likewise.
8129 * value-prof.c: Likewise.
8130 * var-tracking.c: Likewise.
8133 * config/m32r/m32r.c: Include dbxout.h.
8134 * config/pa/pa.c: Likewise.
8135 * config/rs6000/rs6000.c: Likewise.
8137 * Makefile.in: Fix dependencies.
8138 * config/rs6000/t-rs5000: Likewise.
8140 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
8142 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
8143 * gimple.h (block_in_transaction): Check for flag_tm.
8145 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
8147 PR tree-optimization/52558
8148 * cfg.c (alloc_aux_for_edge): Fix comment.
8149 (alloc_aux_for_edge): Remove static.
8150 * basic-block.h (alloc_aux_for_edge): Protoize.
8151 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
8152 (execute_sm_if_changed_flag): New.
8153 (execute_sm_if_changed_flag_set): New.
8154 (execute_sm): Do not generate data races unless requested.
8155 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
8156 (tree_ssa_lim_finalize): Call free_aux_for_edges.
8157 * gimple.h (block_in_transaction): New.
8158 (gimple_in_transaction): Use block_in_transaction.
8160 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8163 * config/avr/avr.opt (-msp8): Document it.
8164 * doc/invoke.texi (AVR Options): Ditto. And document related
8167 2012-05-31 Diego Novillo <dnovillo@google.com>
8169 * configure.ac (CXX_FOR_BUILD): Define and substitute.
8170 (BUILD_CXXFLAGS): Define and substitute.
8171 * Makefile.in (BUILD_CXXFLAGS): Define.
8172 (CXX_FOR_BUILD): Define.
8173 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
8174 (LINKER_FOR_BUILD): Likewise.
8175 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
8176 (BUILD_LINKERFLAGS): Likewise.
8177 * configure: Regenerate.
8179 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
8181 * Makefile.in: Fix many dependencies.
8182 * tree-profile.c: Don't include regs.h.
8183 * tree-vectorizer.c: Don't include cfglayout.h.
8184 * tree-vect-stmts.c: Likewise.
8185 * tree-vect-slp.c: Likewise.
8186 * tree-vect-loop.c: Likewise.
8187 * reg-stack.c: Likewise.
8188 * tree-ssa-loop-manip.c: Likewise.
8189 * toplev.c: Likewise.
8190 * varasm.c: Don't include cfglayout.h, basic-block.h,
8191 and tree-iterator.h.
8192 * tree-cfgcleanup.c: Don't include cfglayout.h.
8193 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
8194 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
8195 * cgraphclones.c: Don't include plugin.h.
8197 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8199 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
8200 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
8201 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
8203 2012-05-31 Richard Guenther <rguenther@suse.de>
8205 * tree-loop-distribution.c (struct partition_s): New struct,
8206 typedef and vector type.
8207 (partition_alloc, partition_free): New functions.
8208 (generate_loops_for_partition, generate_builtin,
8209 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
8210 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
8211 build_rdg_partition_for_component, can_generate_builtin,
8212 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
8213 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
8214 number_of_rw_in_partition, partition_contains_all_rw,
8215 ldist_gen): Use partition_t instead of bitmap.
8217 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8219 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
8220 * doc/avr-mmcu.texi: Regenerate.
8222 2012-05-31 Richard Guenther <rguenther@suse.de>
8224 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
8225 Use FOR_EACH_SSA_DEF_OPERAND.
8226 (generate_builtin): Adjust.
8227 (stmt_generated_in_another_partition): Remove.
8228 (add_scalar_computations_to_partition): Likewise.
8229 (rdg_build_partitions): Do not call
8230 add_scalar_computations_to_partition.
8232 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
8234 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
8235 double ints throughout.
8236 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
8237 Check that the position of the field is representable as an integer.
8239 2012-05-31 Richard Guenther <rguenther@suse.de>
8241 * tree-data-ref.c (dr_analyze_innermost): Properly convert
8242 the MEM_REF offset to sizetype.
8244 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
8246 * doc/invoke.texi (AVR Options): Fix typos.
8248 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
8250 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
8252 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
8253 non-v32 into --march=v0_v10.
8255 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8257 * ira-int.h (target_ira_int): Rename x_move_cost to
8258 x_ira_register_move_cost, x_may_move_in_cost to
8259 x_ira_may_move_in_cost and x_may_move_out_cost to
8260 x_ira_may_move_out_cost. Delete the old fields with
8261 those names and also x_ira_max_register_move_cost,
8262 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
8263 (move_cost, may_move_in_cost, may_move_out_cost)
8264 (ira_max_register_move_cost, ira_max_may_move_in_cost)
8265 (ira_max_may_move_out_cost): Delete.
8266 * ira.c (init_move_cost): Rename to...
8267 (ira_init_register_move_cost): ...this, deleting the old
8268 function with that name. Apply above variable renamings.
8269 Retain asserts for null fields.
8270 (ira_init_once): Don't initialize register move costs here.
8271 (free_register_move_costs): Apply above variable renamings.
8272 Remove code for deleted fields.
8274 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8276 * ira.c (init_move_cost): Adjust choice of subclasses to match
8277 the current ira_init_register_move_cost choice. Use
8278 ira_class_subset_p instead of reg_class_subset_p.
8279 (ira_init_register_move_cost): Assert that move_cost,
8280 may_move_in_cost and may_move_out_cost already hold the desired
8281 values for their ira_* equivalents. For the latter two,
8282 ignore classes that can't store a register of the given mode.
8284 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8286 * ira.c (setup_allocno_and_important_classes): Use
8287 ira_class_hard_regs_num to check whether a class has any
8288 allocatable registers.
8289 (ira_init_register_move_cost): Likewise.
8291 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8293 * ira.c (init_move_cost): Adjust local variable names to match
8294 file conventions. Use ira_assert instead of gcc_assert.
8296 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8298 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
8299 Move these definitions and associated target_globals fields to...
8300 * ira-int.h: ...here.
8301 * rtl.h (init_move_cost): Delete.
8302 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
8303 * ira.c: ...here, making the latter static.
8305 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8307 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
8308 and ira_register_move_cost instead of init_move_cost and move_cost.
8310 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
8312 * ira.h (target_ira): Delete x_ira_available_class_regs.
8313 (ira_available_class_regs): Delete.
8314 * ira.c (setup_available_class_regs): Delete.
8315 (setup_alloc_classes): Don't call it.
8316 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
8317 ira_available_class_regs.
8318 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
8319 (model_spill_cost): Likewise.
8320 * ira-build.c (low_pressure_loop_node_p): Likewise.
8321 * ira-color.c (color_pass): Likewise.
8322 * ira-emit.c (change_loop): Likewise.
8323 * ira-lives.c (inc_register_pressure, dec_register_pressure)
8324 (single_reg_class, ira_implicitly_set_insn_hard_regs)
8325 (process_bb_node_lives): Likewise.
8326 * loop-invariant.c (gain_for_invariant): Likewise.
8328 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8331 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
8332 (pa_section_type_flags): New.
8333 (pa_legitimate_constant_p): Revert previous change.
8335 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
8337 * ira.c (allocate_initial_values): Make static.
8339 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
8341 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
8342 Generate tls_initial_exec_64_sun only when !TARGET_X32.
8344 2012-05-30 Richard Guenther <rguenther@suse.de>
8347 * fold-const.c (fold_binary_loc): Make sure to call
8348 fold_plusminus_mult_expr with the original sign of operands.
8350 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
8352 * Makefile.in: Fix many dependencies.
8353 (DWARF2_H): Depend on dwarf2.def.
8354 (RTL_ERROR_H): Depend on rtl-error.h.
8355 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
8356 all gimple-pretty-print.h and tree-pretty-print.h references.
8358 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
8360 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
8363 2012-05-30 Richard Guenther <rguenther@suse.de>
8366 * tree-emutls.c (gen_emutls_addr): Do not add globals to
8369 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
8371 * explow.c (probe_stack_range): Restore simple control flow and stop
8372 again when the probe cannot be generated if HAVE_check_stack.
8374 2012-05-30 Jakub Jelinek <jakub@redhat.com>
8376 PR rtl-optimization/53519
8377 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
8378 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
8380 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8382 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
8384 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
8387 * doc/tm.texi: Update.
8388 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
8389 * target.def (force_at_comp_dir): New hook.
8390 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
8391 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
8393 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
8395 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
8397 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
8398 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
8400 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
8403 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
8404 flag_unsafe_math_optimizations is set.
8405 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
8406 Update description of -mfused-madd.
8408 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
8411 * config/sh/predicates.md (atomic_arith_operand,
8412 atomic_logical_operand): New predicates.
8413 * config/sh/sh.c (sh_option_override): Check atomic options.
8414 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
8415 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
8416 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
8417 UNSUPPORTED_HARD_ATOMIC_CPU.
8418 * config/sh/sync.md: Update description comments.
8419 (I12): New mode iterator.
8420 (fetchop_predicate, fetchop_constraint): New code attributes.
8421 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
8422 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8423 atomic_fetch_<fetchop_name>si_hard,
8424 atomic_fetch_<fetchop_name><mode>_hard,
8425 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
8426 atomic_<fetchop_name>_fetchsi_hard,
8427 atomic_<fetchop_name>_fetch<mode>_hard,
8428 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
8429 atomic_test_and_set_hard): New insns.
8430 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
8431 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
8432 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
8433 atomic_test_and_set_soft): Use same formatting for the first line of
8434 the asm block as in new insns above.
8435 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
8436 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
8437 atomic_test_and_set): Integrate new *_hard insns into expanders.
8438 * config/sh/sh.opt (mhard-atomic): New option.
8439 * doc/invoke.texi (SH Options): Document it.
8441 2012-05-29 Meador Inge <meadori@codesourcery.com>
8443 * c-decl.c (c_push_function_context): Always create a new language
8445 (c_pop_function_context): Clear the language function created in
8446 c_push_function_context.
8448 2012-05-29 Matt Turner <mattst88@gmail.com>
8450 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
8451 (define_bypass "ev6_fcmov"): New.
8453 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
8455 * integrate.c: Remove.
8456 * integrate.h: Remove.
8457 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
8458 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
8459 * config/rs6000/t-rs6000: Likewise
8460 * config/spu/t-spu-elf: Likewise.
8461 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
8462 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
8463 from integrate.h to here.
8464 (initial_value_entry): New prototype.
8465 * reload.h (allocate_initial_values): Remove prototype.
8466 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
8467 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
8469 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
8470 set_decl_abstract_flags, set_block_abstract_flags): Move from
8471 integrate.c to here, the only user.
8472 * expmed.c (extract_fixed_bit_field): Remove outdated comment
8474 * function.c: Don't include integrate.h.
8475 (struct initial_value_pair, struct initial_value_struct,
8476 get_hard_reg_initial_val, has_hard_reg_initial_val,
8477 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
8478 integrate.c to here.
8479 (initial_value_entry): New function.
8480 * genemit.c (main): Don't print integrate.h include line.
8481 * ira.c: Don't include integrate.h.
8482 (allocate_initial_values): Move from integrate.c to here.
8483 (ira): Update allocate_initial_values call.
8484 * tree-inline.c: Don't include integrate.h.
8485 (function_attribute_inlinable_p): Moved from integrate.c to here.
8486 * cfgexpand.c: Don't include integrate.h.
8487 * except.c: Likewise.
8488 * langhooks.c: Likewise.
8489 * passes.c: Likewise.
8490 * toplev.c: Likewise.
8491 * config/frv/frv.c: Likewise.
8492 * config/pa/pa.c: Likewise.
8493 * config/spu/spu.c: Likewise.
8494 * config/epiphany/epiphany.c: Likewise.
8495 * config/mep/mep.c: Likewise.
8496 * config/score/score.c: Likewise.
8497 * config/picochip/picochip.c: Likewise.
8498 * config/sh/sh.c: Likewise.
8499 * config/alpha/alpha.c: Likewise.
8500 * config/microblaze/microblaze.c: Likewise.
8501 * config/mips/mips.c: Likewise.
8502 * config/v850/v850.c: Likewise.
8503 * config/mmix/mmix.c: Likewise.
8504 * config/bfin/bfin.c: Likewise.
8505 * config/arm/arm.c: Likewise.
8506 * config/s390/s390.c: Likewise.
8507 * config/m32r/m32r.c: Likewise.
8508 * config/rs6000/rs6000.c: Likewise.
8509 * config/c6x/c6x.c: Include function.h instead of integrate.h.
8510 * config/tilegx/tilegx.c: Likewise.
8511 * config/tilepro/tilepro.c: Likewise.
8513 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
8515 * config/avr/t-avr (s-avr-mmcu-texi): Call
8516 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
8518 2012-05-29 Michael Matz <matz@suse.de>
8520 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
8521 assign_temp): Remove 'keep' argument.
8522 (mark_temp_addr_taken): Remove prototype.
8523 * tree.h (expand_decl): Remove prototype.
8524 * function.c (struct temp_slot): Remove addr_taken and keep member.
8525 (assign_stack_temp_for_type) Don't initialize above, remove
8527 (assign_stack_temp, assign_temp): Remove keep argument.
8528 (mark_temp_addr_taken): Remove.
8529 (preserve_temp_slots): Remove handling of addr_taken and keep members.
8530 (free_temp_slots): Ditto.
8531 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
8533 * stmt.c (expand_asm_operands): Remove dead code.
8534 (expand_decl): Remove.
8535 * c-decl.c (finish_struct): Don't call expand_decl.
8536 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
8537 and assign_stack_temp.
8538 * calls.c (save_fixed_argument_area, initialize_argument_information,
8539 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
8540 * expmed.c (extract_bit_field_1): Ditto.
8541 * expr.c (emit_group_load_1, emit_group_store,
8542 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
8543 store_field, expand_constructor, expand_cond_expr_using_cmove,
8544 expand_expr_real_2, expand_expr_real_1): Ditto.
8545 * stmt.c (expand_asm_operands, expand_return): Ditto.
8547 * function.c (pop_temp_slots): Call free_temp_slots.
8548 * calls.c (store_one_arg): Don't call preserve_temp_slots or
8550 * expr.c (expand_assignment): Don't call free_temp_slots.
8552 * config/arm/arm.c (neon_expand_vector_init): Ditto.
8553 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
8554 (ix86_expand_vector_extract): Ditto.
8555 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
8556 ia64_expand_movxf_movrf): Ditto.
8557 * config/mips/mips.c (mips_expand_vi_general): Ditto.
8558 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
8559 extendsfdf2): Ditto.
8560 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
8561 rs6000_expand_vector_set, rs6000_expand_vector_extract,
8562 rs6000_allocate_stack_temp): Ditto.
8563 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
8564 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8565 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
8566 sparc_expand_vector_init): Ditto.
8568 2012-05-29 Michael Matz <matz@suse.de>
8570 * c-tree.h (c_expand_decl): Remove prototype.
8572 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
8574 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
8575 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
8576 COMPOUND_LITERAL_EXPR.
8577 * function.c (expand_function_start): Don't call expand_decl,
8578 instead assert that we have RTL assigned.
8579 * tree-ssa-live.c (remove_unused_locals): Clear
8580 nonlocal_goto_save_area if its backing variable is removed.
8581 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
8583 (expand_decl): Assert that this does nothing.
8584 * calls.c (expand_call): Don't call mark_temp_addr_taken.
8586 2012-05-29 Richard Guenther <rguenther@suse.de>
8588 PR tree-optimization/53516
8589 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
8591 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8593 2012-05-29 Joseph Myers <joseph@codesourcery.com>
8595 * LANGUAGES: Fix typos.
8596 * Makefile.in: Fix typos.
8597 * alias.c: Fix typos.
8598 * auto-inc-dec.c: Fix typos.
8599 * bb-reorder.c: Fix typos.
8600 * cfgcleanup.c: Fix typos.
8601 * cgraph.c: Fix typos.
8602 * cgraph.h: Fix typos.
8603 * cgraphunit.c: Fix typos.
8604 * collect2-aix.h: Fix typos.
8605 * collect2.c: Fix typos.
8606 * compare-elim.c: Fix typos.
8607 * config/alpha/vms.h: Fix typos.
8608 * config/arm/README-interworking: Fix typos.
8609 * config/arm/arm.c: Fix typos.
8610 * config/arm/iterators.md: Fix typos.
8611 * config/arm/vxworks.h: Fix typos.
8612 * config/avr/avr.c: Fix typos.
8613 * config/avr/avr.h: Fix typos.
8614 * config/avr/avr.md: Fix typos.
8615 * config/avr/builtins.def: Fix typos.
8616 * config/c6x/c6x.c: Fix typos.
8617 * config/cr16/cr16.c: Fix typos.
8618 * config/cr16/cr16.md: Fix typos.
8619 * config/cris/cris.md: Fix typos.
8620 * config/darwin.c: Fix typos.
8621 * config/darwin.opt: Fix typos.
8622 * config/i386/i386-c.c: Fix typos.
8623 * config/i386/i386.c: Fix typos.
8624 * config/ia64/ia64.c: Fix typos.
8625 * config/m68k/cf.md: Fix typos.
8626 * config/mep/mep.c: Fix typos.
8627 * config/microblaze/microblaze.c: Fix typos.
8628 * config/microblaze/microblaze.h: Fix typos.
8629 * config/mn10300/mn10300.c: Fix typos.
8630 * config/mn10300/mn10300.md: Fix typos.
8631 * config/pa/pa.c: Fix typos.
8632 * config/picochip/picochip.h: Fix typos.
8633 * config/rs6000/a2.md: Fix typos.
8634 * config/rs6000/rs6000.c: Fix typos.
8635 * config/rs6000/vector.md: Fix typos.
8636 * config/rx/rx.md: Fix typos.
8637 * config/rx/rx.opt: Fix typos.
8638 * config/s390/2097.md: Fix typos.
8639 * config/s390/s390.c: Fix typos.
8640 * config/s390/s390.h: Fix typos.
8641 * config/sh/sh.c: Fix typos.
8642 * config/sh/sh.md: Fix typos.
8643 * config/sparc/sync.md: Fix typos.
8644 * config/spu/spu.c: Fix typos.
8645 * config/spu/spu.md: Fix typos.
8646 * config/vms/vms.c: Fix typos.
8647 * config/vxworks-dummy.h: Fix typos.
8648 * config/vxworks.h: Fix typos.
8649 * cselib.c: Fix typos.
8650 * df-scan.c: Fix typos.
8652 * doc/extend.texi: Fix typos.
8653 * doc/install.texi: Fix typos.
8654 * doc/invoke.texi: Fix typos.
8655 * doc/md.texi: Fix typos.
8656 * doc/plugins.texi: Fix typos.
8657 * doc/rtl.texi: Fix typos.
8659 * dwarf2asm.c: Fix typos.
8660 * dwarf2out.c: Fix typos.
8661 * except.h: Fix typos.
8662 * expr.c: Fix typos.
8663 * fold-const.c: Fix typos.
8665 * gcse.c: Fix typos.
8666 * genautomata.c: Fix typos.
8667 * gengtype-state.c: Fix typos.
8668 * gengtype.c: Fix typos.
8669 * genhooks.c: Fix typos.
8670 * gimple-fold.c: Fix typos.
8671 * gimple-pretty-print.c: Fix typos.
8672 * gimple.c: Fix typos.
8673 * gimple.h: Fix typos.
8674 * gimplify.c: Fix typos.
8675 * graphite-interchange.c: Fix typos.
8676 * graphite-sese-to-poly.c: Fix typos.
8677 * ifcvt.c: Fix typos.
8678 * input.c: Fix typos.
8679 * ipa-cp.c: Fix typos.
8680 * ipa-inline-analysis.c: Fix typos.
8681 * ipa-inline-transform.c: Fix typos.
8682 * ipa-inline.c: Fix typos.
8683 * ipa-pure-const.c: Fix typos.
8684 * ipa-ref.h: Fix typos.
8685 * ipa-reference.c: Fix typos.
8686 * ipa-utils.c: Fix typos.
8688 * ira-emit.c: Fix typos.
8689 * ira-lives.c: Fix typos.
8690 * lto-streamer.c: Fix typos.
8691 * lto-streamer.h: Fix typos.
8692 * lto-wrapper.c: Fix typos.
8694 * mode-switching.c: Fix typos.
8695 * modulo-sched.c: Fix typos.
8696 * plugin.c: Fix typos.
8697 * postreload.c: Fix typos.
8698 * sched-deps.c: Fix typos.
8699 * sel-sched-ir.c: Fix typos.
8700 * sel-sched-ir.h: Fix typos.
8701 * sel-sched.c: Fix typos.
8702 * sese.c: Fix typos.
8703 * stor-layout.c: Fix typos.
8704 * target-hooks-macros.h: Fix typos.
8705 * target.def: Fix typos.
8706 * trans-mem.c: Fix typos.
8707 * tree-eh.c: Fix typos.
8708 * tree-predcom.c: Fix typos.
8709 * tree-sra.c: Fix typos.
8710 * tree-ssa-address.c: Fix typos.
8711 * tree-ssa-loop-ivopts.c: Fix typos.
8712 * tree-ssa-loop-niter.c: Fix typos.
8713 * tree-ssa-math-opts.c: Fix typos.
8714 * tree-ssa-pre.c: Fix typos.
8715 * tree-ssa-propagate.c: Fix typos.
8716 * tree-ssa-reassoc.c: Fix typos.
8717 * tree-ssa-sccvn.c: Fix typos.
8718 * tree-ssa-ter.c: Fix typos.
8719 * tree-ssa-uninit.c: Fix typos.
8720 * tree-ssanames.c: Fix typos.
8721 * tree-vect-generic.c: Fix typos.
8722 * tree-vect-slp.c: Fix typos.
8723 * tree.c: Fix typos.
8724 * tree.h: Fix typos.
8725 * varasm.c: Fix typos.
8726 * varpool.c: Fix typos.
8728 2012-05-29 Joseph Myers <joseph@codesourcery.com>
8730 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
8732 2012-05-29 Richard Guenther <rguenther@suse.de>
8734 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
8736 (add_referenced_var_1): Re-organize. Assert we are not
8738 (remove_referenced_var): Likewise.
8739 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
8740 * tree-mudflap.c (execute_mudflap_function_ops): Do not
8741 call add_referenced_var on globals.
8742 * matrix-reorg.c (transform_access_sites): Likewise.
8744 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
8746 * alias.c (reg_known_value): Make this a VEC.
8747 (reg_known_equiv_p): Make this an sbitmap.
8748 (reg_known_value_size): Remove.
8749 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
8750 set_reg_known_equiv_p): Update for reg_known_value and
8751 reg_known_value_size data structure change.
8752 (init_alias_analysis, end_alias_analysis): Likewise.
8754 2012-05-29 Jakub Jelinek <jakub@redhat.com>
8757 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
8758 to avoid leaking memory. No need to handle memory allocation
8759 failure. Double string_len on each reallocation instead of adding 2.
8760 * gcov.c (read_line): Likewise.
8762 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
8764 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
8766 * config/cris/cris.md ("trap"): Define, enabled for
8767 TARGET_TRAP_USING_BREAK8.
8768 * config/cris/cris.opt (mtrap-using-break8): New option.
8770 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
8773 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
8776 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
8778 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
8779 (Standard Names): Fix typos in documentation of atomic patterns.
8781 2012-05-27 Nathan Sidwell <nathan@acm.org>
8783 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
8785 2012-05-26 Jason Merrill <jason@redhat.com>
8788 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
8789 about array compound literals.
8791 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
8793 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
8794 if CLEANUP_NO_INSN_DEL.
8795 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
8796 from cfg_layout_merge_blocks.
8797 (emit_nop_for_unique_locus_between): New function.
8798 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
8799 (cfg_layout_merge_blocks): Likewise.
8801 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
8802 Paolo Bonzini <bonzini@gnu.org>
8804 * df-scan.c (df_def_record_1): Assert a parallel must contain an
8805 EXPR_LIST at this point. Receive the LOC and move its extraction...
8806 (df_defs_record): ... here. Change if-else to a switch statement.
8807 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
8808 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
8809 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
8810 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
8811 regs_invalidated_by_call.
8812 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
8815 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
8818 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
8819 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
8821 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8823 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
8824 software floating point emulation. No longer build the multilibs
8825 with -mstrict-align.
8827 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
8830 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
8831 accessed indirectly.
8832 (ipa_tm_create_version): Same.
8834 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
8837 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
8838 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
8840 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8843 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
8844 (ix86_expand_vec_perm): Use int mode instead of float.
8845 (expand_vec_perm_pshufb): Remove handling of useseless type
8848 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
8851 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
8852 gnu_ld variables to yes.
8853 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
8854 (HAVE_GNU_AS): Likewise.
8855 * config.in: Regenerate.
8856 * configure: Likewise.
8858 2012-05-25 Tristan Gingold <gingold@adacore.com>
8860 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
8861 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
8862 and preferred_alignment.
8864 2012-05-25 Tristan Gingold <gingold@adacore.com>
8866 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
8868 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
8870 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
8871 volatile bitfields case.
8873 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
8875 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
8876 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
8877 (adjacent_mem_locations): Move some code to and call...
8878 (get_memref_parts): ...new function.
8879 (mem_locations_overlap): New function.
8880 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
8881 (is_mem_ref): Rename to...
8882 (find_mem_ref): ...this. Return MEM rtx.
8883 (get_store_dest): Remove function.
8884 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
8885 new parameter and adjust calls.
8886 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
8887 mem refs overlap for true_store_to_load_dep_costly.
8888 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
8889 passed to adjacent_mem_locations.
8890 (is_costly_group): Walk resolved dependency list.
8891 (force_new_group): Emit group ending nop for Power6/Power7.
8892 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
8893 (group_ending_nop): New define_insn.
8895 2012-05-24 Dodji Seketeli <dodji@redhat.com>
8897 Make unwound macro expansion trace less redundant
8898 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
8899 context of macro definition in the trace, when it's redundant.
8902 2012-05-24 Richard Guenther <rguenther@suse.de>
8905 * tree-profile.c (tree_profiling): Cleanup the CFG if
8906 execute_fixup_cfg requests it.
8908 2012-05-24 Richard Guenther <rguenther@suse.de>
8910 * tree-flow.h (create_var_ann): Remove.
8911 * tree-dfa.c (create_var_ann): Remove and inline into its
8913 (add_referenced_var_1): ... here.
8914 * varpool.c (add_new_static_var): Do not call add_referenced_var
8916 * gimple-fold.c (canonicalize_constructor_val): Likewise.
8917 * tree-switch-conversion.c (build_one_array): Likewise.
8918 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
8919 * tree-flow-inline.h (gimple_referenced_vars): Guard against
8921 * tree-inline.c (remap_gimple_op_r): Likewise. Check
8922 gimple_referenced_vars instead of gimple_in_ssa_p.
8923 (copy_tree_body_r): Likewise.
8924 (setup_one_parameter): Likewise.
8925 (declare_return_variable): Likewise.
8926 (tree_function_versioning): Likewise.
8928 2012-05-24 Jakub Jelinek <jakub@redhat.com>
8930 PR tree-optimization/53465
8931 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
8932 vr0 into *vr, then vrp_meet that.
8933 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
8934 have any equivalences.
8935 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
8938 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
8940 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
8942 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
8943 check end_regno - 1 is a hard register.
8945 2012-05-24 Richard Guenther <rguenther@suse.de>
8947 * varpool.c (add_new_static_var): Remove call to create_var_ann.
8948 * tree-ssa-operands.c (create_vop_var): Likewise.
8950 2012-05-24 Richard Guenther <rguenther@suse.de>
8953 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
8955 (remove_unused_locals): Pass global_unused_vars to
8956 remove_unused_scope_block_p. Restore code walking all
8957 referenced vars and pruning them.
8959 2012-05-23 Jan Hubicka <jh@suse.cz>
8961 * tree.h (alias_diag_flags): Remove.
8962 (alias_pair): Remove emitted_diags.
8963 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
8964 symbol_alias_set_t, symbol_alias_set_destroy,
8965 symbol_alias_set_contains, propagate_aliases_backward): Remove.
8966 * toplev.c (compile_file): Do not call finish_aliases_2
8967 * cgraphunit.c (cgraph_process_new_functions): Do not call
8969 (handle_alias_pairs): Output diagnostics about aliases to externals.
8970 (assemble_thunks_and_aliases): Use do_assemble_alias.
8971 (output_weakrefs): Likewise.
8972 (finalize_compilation_unit): Do not call finish_aliases_1.
8973 * ipa.c (symtab_remove_unreachable_nodes): De not call
8974 remove_unreachable_alias_pairs.
8975 * varasm.c (do_assemble_alias): Export.
8976 (symbol_alias_set_create, symbol_alias_set_destroy,
8977 symbol_alias_set_contains, symbol_alias_set_insert,
8978 propagate_aliases_forward, propagate_aliases_backward,
8979 propagate_aliases_backward, trivially_visible_alias,
8980 trivially_defined_alias, remove_unreachable_alias_pairs,
8981 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
8982 * output.h (do_assemble_alias): Declare.
8983 * varpool.c (varpool_remove_unreferenced_decls): Do not call
8986 2012-05-23 Martin Jambor <mjambor@suse.cz>
8988 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
8990 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
8992 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
8994 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
8995 (iterative_hash_gimple_type): Adjust comment.
8996 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
8997 domain for an array type instead of the domain type itself.
8999 2012-05-23 Richard Guenther <rguenther@suse.de>
9001 PR tree-optimization/53438
9002 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
9004 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
9007 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
9008 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
9011 2012-05-23 Richard Guenther <rguenther@suse.de>
9013 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
9014 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
9015 via the global_unused_vars bitmap.
9016 (remove_unused_locals): Handle global vars in local-decls via
9017 a global_unused_vars bitmap instead of the used flag in the
9018 var annotation. Simplify global variable handling and removal.
9020 2012-05-22 Jan Hubicka <jh@suse.cz>
9023 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
9024 from other partitions.
9026 2012-05-22 Jan Hubicka <jh@suse.cz>
9029 * symtab.c (symtab_register_node): Fix ordering issue.
9031 2012-05-22 Steven Drake <sbd@NetBSD.org>
9033 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
9035 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
9037 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
9038 Use strip_name_encoding target hook.
9040 2012-05-22 Richard Guenther <rguenther@suse.de>
9042 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
9043 (init_function_for_compilation): Remove.
9044 * tree-dfa.c (find_vars_r): Take struct function argument.
9045 (find_referenced_vars_in): Adjust.
9046 * tree-ssa-operands.c (clobber_stats): Remove.
9047 (create_vop_var): Take struct function argument. Mark
9048 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
9049 (init_ssa_operands): Take struct function argument.
9050 (fini_ssa_operands): Do not dump dead stats.
9051 * tree-ssa-operands.h (init_ssa_operands): Take struct function
9053 * cgraphunit.c (init_lowered_empty_function): Adjust.
9054 * lto-streamer-in.c (input_cfg): Likewise.
9055 * tree-inline.c (initialize_cfun): Likewise.
9056 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
9057 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
9058 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
9059 virtual operands are not registers.
9061 2012-05-22 Richard Guenther <rguenther@suse.de>
9063 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
9065 2012-05-22 Richard Guenther <rguenther@suse.de>
9068 * tree-inline.c (setup_one_parameter): Create a dummy init
9069 statement for unused parameters when not optimizing.
9071 2012-05-22 Richard Guenther <rguenther@suse.de>
9073 * tree-flow.h (add_referenced_var_1): Declare.
9074 (add_referenced_var): Define.
9075 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
9076 (add_referenced_var): Rename to ...
9077 (add_referenced_var_1): ... this. Take struct function argument.
9079 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9082 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
9083 * config/arm/arm.c (arm_validize_comparison): Define.
9084 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
9085 arm_validize_comparison.
9086 ("cbranchdi4"): Likewise.
9087 ("cstoredi4"): Likewise.
9088 ("movsicc"): Likewise.
9089 ("movsfcc"): Likewise.
9090 ("movdfcc"): Likewise.
9092 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
9094 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
9095 the mw_reg_pool size.
9097 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
9099 PR tree-optimization/53336
9100 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
9101 non-integer integral types to offset type and vice versa.
9103 2012-05-22 Alan Modra <amodra@gmail.com>
9105 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
9106 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
9107 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
9108 V_SAVE_INLINE): Delete.
9109 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
9110 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
9111 For ELF targets, use out-of-line restores for -Os and any number
9112 of regs if the restore exits, and out-of-line gp save for two or
9113 more regs. Use save_reg_p to test for holes in reg restore set.
9114 Replace "#if" with "if".
9116 2012-05-22 Alan Modra <amodra@gmail.com>
9118 * config/rs6000/rs6000.c (save_reg_p): New function.
9119 (first_reg_to_save, first_fp_reg_to_save): Use it here.
9120 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
9121 (emit_frame_save): Use gen_frame_store.
9122 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
9123 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
9125 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
9126 vrsave, toc, gp and fp restores.
9128 2012-05-22 Alan Modra <amodra@gmail.com>
9130 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
9131 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
9132 Move function pointer variables after forward declarations.
9133 (rs6000_builtin_support_vector_misalignment): Make static.
9134 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
9135 (rs6000_function_value, rs6000_can_eliminate): Likewise.
9137 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
9139 PR rtl-optimization/53373
9140 * caller-save.c (save_call_clobbered_regs): Look into a possible
9141 PARALLEL manually rather than using single_set on a call insn.
9143 2012-05-21 Jakub Jelinek <jakub@redhat.com>
9145 PR tree-optimization/53436
9146 * omp-low.c (omp_build_component_ref): New function.
9147 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
9149 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
9151 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
9153 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
9154 Do not print '.' here. Output operand lossage error for unhandled
9159 <case 'z'>: Hardcode "code" argument into error strings.
9161 <case 'D'>: Merge AVX and non-AVX codes.
9162 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
9163 Update call to put_condition_code.
9165 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
9167 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
9169 (clzsi2): New expander.
9170 (*clzsi2_68k): New insn.
9171 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
9173 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
9175 * gimple.h (gimple_set_in_transaction): Remove.
9176 (gimple_in_transaction): Look in BB instead.
9177 (gimple_statement_base): Remove in_transaction field.
9178 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
9179 * trans-mem.c (compute_transaction_bits): Place transaction bit
9180 information into basic blocks.
9182 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
9184 * expr.c (get_def_for_expr_class): Define only if
9185 HAVE_conditional_move.
9186 (convert_tree_comp_to_rtx): Likewise.
9188 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
9191 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
9193 (ffssi2_no_cmove): Ditto.
9194 (*ffs<mode>_1): Remove insn pattern.
9195 (*tzcnt<mode>_1): New insn pattern.
9196 (*bsf<mode>1): Ditto.
9198 2012-05-21 Richard Guenther <rguenther@suse.de>
9200 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
9201 more referenced vars.
9202 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
9203 flag on variables that have a var-annotation.
9205 2012-05-21 Joseph Myers <joseph@codesourcery.com>
9208 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
9209 from folded operands before wrapping another around the
9210 conditional expression.
9212 2012-05-21 Jakub Jelinek <jakub@redhat.com>
9214 PR tree-optimization/53366
9215 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
9216 tests if complex_numbers == 2, but there are non-complex number loads
9219 PR tree-optimization/53409
9220 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
9221 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
9223 PR tree-optimization/53410
9224 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
9225 instead of build_int_cst (type, 0) where vector types might be
9226 involved. Instead of build_int_cst (type, 1) convert the original
9227 integer_onep argument to the desired type.
9229 2012-05-21 Michael Matz <matz@suse.de>
9231 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
9232 (simplify_test_exp): Handle one more case of distributive law,
9233 decrease cost threshold.
9234 (tests_attr_p, get_attr_order): New functions.
9235 (optimize_attrs): Use topological order, inline only cheap values.
9236 (write_attr_set): Reset our_known_true after some time.
9238 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
9241 * config/i386/i386.c (type_natural_mode): Warn passing SSE
9242 vector argument without SSE enabled changes the ABI.
9244 2012-05-21 Richard Guenther <rguenther@suse.de>
9246 PR tree-optimization/53408
9247 * tree-vect-loop.c (vectorizable_induction): Properly check
9248 the restriction that we cannot handle induction results from
9249 the inner loop outside of the outer loop.
9251 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
9254 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
9255 (UNSPECV_RDRAND): This.
9256 (rdrand<mode>_1): Updated.
9258 2012-05-21 Richard Guenther <rguenther@suse.de>
9260 * tree-loop-distribution.c (can_generate_builtin): Reject
9263 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
9265 * Makefile.in (options.c): Add options.h to included header
9268 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
9270 * tree-parloops.c : Add myself to contributors, update
9271 TODO list, add link to wiki.
9273 2012-05-21 Alan Modra <amodra@gmail.com>
9275 * config/rs6000/predicates.md (input_operand): Don't match
9276 constant pool addresses. Remove label_ref, high and plus from
9277 match_code list. Remove redundant CONSTANT_P test.
9278 (splat_input_operand): Similarly update match_code list.
9279 (small_toc_ref): New predicate.
9280 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
9281 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
9282 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
9283 register checks to..
9284 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
9285 generated by create_TOC_reference.
9286 (rs6000_legitimize_address): Update cerate_TOC_reference call.
9287 (rs6000_delegitimize_address): Handle new rtl for toc refs.
9288 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
9289 (use_toc_relative_ref): New function, split out from..
9290 (rs6000_emit_move): ..here. Remove redundant tests. Update
9291 create_TOC_reference calls.
9292 (rs6000_legitimize_reload_address): Formatting. Handle splitting
9293 of medium/large model toc addresses. Use use_toc_relative_ref.
9294 (print_operand): Formatting, style. Adjust for toc changes.
9295 (print_operand_address): Likewise.
9296 (rs6000_output_addr_const_extra): Likewise.
9297 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
9298 than a PLUS. Use this formulation for both high and low part
9299 of -mcmodel=medium/large toc reference too. Before reload,
9300 always use the small model formulation.
9301 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
9302 a PLUS in high part of addresses here.
9303 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9304 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9305 (largetoc_high, largetoc_low): Move earlier. Cope when no
9307 (largetoc_high_plus): New insn.
9308 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
9309 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
9310 (tocref): ..instead do so here, new insn and split.
9312 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
9314 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9315 RDRND, F16C and FSGSBASE.
9317 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9319 PR rtl-optimzation/53373
9320 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
9321 call pattern. Update split patterns.
9322 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
9323 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
9325 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
9327 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
9330 2012-05-18 Jan Hubicka <jh@suse.cz>
9332 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
9333 (cgraph_process_new_functions): Process also aliases.
9334 * lto-streamer-out.c (struct sets): Remove.
9335 (trivally_defined_alias): Remove.
9336 (output_alias_pair_p): Remove.
9337 (output_unreferenced_globals): Remove.
9338 (produce_symtab); Do not handle alias pairs.
9339 (produce_asm_for_decls): Likewise.
9340 * lto-streamer-in.c (input_alias_pairs): Remove.
9341 (lto_read_body): Do not input alias pairs.
9342 (lto_input_constructors_and_inits): Remove.
9344 2012-05-18 Jan Hubicka <jh@suse.cz>
9346 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
9349 2012-05-18 Jan Hubicka <jh@suse.cz>
9351 * cgraphbuild.c (record_reference): Update.
9352 * lto-cgraph.c (lto_output_varpool_node): External vars
9353 are not in other partition even if they are not output
9354 in current partition.
9355 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
9357 (canonicalize_constructor_val): Take FROM_DECL argument.
9358 (fold_ctor_reference, fold_string_cst_ctor_reference,
9359 fold_array_ctor_reference, fold_nonarray_ctor_reference,
9360 fold_ctor_reference): Likewise.
9361 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
9362 * gimple.h (gimple_fold_builtin): Likewise.
9364 2012-05-18 Olivier Hainque <hainque@adacore.com>
9366 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
9367 $(libsubdir) as libexecsubdir.
9369 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9371 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
9372 relied on signed overflow behavior.
9374 2012-05-18 Richard Guenther <rguenther@suse.de>
9376 PR tree-optimization/53346
9377 * tree-loop-distribution.c (ldist_gen): Make sure to apply
9378 builtin transform even when only a single partition with
9379 all reads/writes exists.
9381 2012-05-18 Richard Guenther <rguenther@suse.de>
9383 PR tree-optimization/53390
9384 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
9387 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9389 * tree-ssa-reassoc.c (bip_map): Remove decl.
9390 (completely_remove_stmt): Remove function.
9391 (remove_def_if_absorbed_call): Remove function.
9392 (remove_visited_stmt_chain): Remove __builtin_powi handling.
9393 (possibly_move_powi): Remove function.
9394 (rewrite_expr_tree): Remove calls to possibly_move_powi.
9395 (rewrite_expr_tree_parallel): Likewise.
9396 (attempt_builtin_powi): Build multiplies explicitly rather than
9397 relying on the ops vector and rank system.
9398 (transform_stmt_to_copy): New function.
9399 (transform_stmt_to_multiply): Likewise.
9400 (reassociate_bb): Handle leftover operations after __builtin_powi
9401 optimization; build a final multiply if necessary.
9403 2012-05-18 Jan Hubicka <jh@suse.cz>
9405 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
9406 (mark_functions_to_output): Fix sanity check.
9407 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
9409 2012-05-18 Richard Guenther <rguenther@suse.de>
9411 * tree-flow.h (mark_symbols_for_renaming): Remove.
9412 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
9413 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
9414 (copy_debug_stmt): Likewise.
9415 (expand_call_inline): Likewise.
9416 (declare_return_variable): Mark the return variable for renaming
9419 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
9421 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
9423 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
9424 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
9425 (ashrdi3,lshrdi3): Likewise.
9426 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
9428 2012-05-18 Meador Inge <meadori@codesourcery.com>
9430 PR rtl-optimization/53352
9431 * cse.c (equiv_constant): Ignore paradoxical subregs.
9433 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
9435 PR rtl-optimization/53125
9436 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
9437 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
9438 die in the basic block. Correctly top off REG_FREQ and
9439 REG_FREQ_CALLS_CROSSED.
9441 (regstat_compute_ri): Allocate and free local_live_last_luid.
9443 (regstat_bb_compute_calls_crossed): Correctly top off
9444 REG_FREQ_CALLS_CROSSED.
9446 2012-05-17 Jan Hubicka <jh@suse.cz>
9448 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
9449 constructor over decl without.
9450 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
9451 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
9452 * cgraphunit.c (process_function_and_variable_attributes): Finalize
9454 (mark_functions_to_output): Also accept bodies for functions with
9456 (output_in_order): Skip external vars.
9457 * lto-cgraph.c (lto_output_node): External functions are never in other
9459 (lto_output_varpool_node): Likewise.
9460 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
9461 forgotten initializers.
9462 * ipa.c (process_references): Handle external vars.
9463 (symtab_remove_unreachable_nodes): Update to handle external vars.
9464 (varpool_externally_visible_p): External vars are externally visible.
9465 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
9466 * varpool.c (varpool_remove_node): Remove constructor.
9467 (decide_is_variable_needed): Handle externals.
9468 (varpool_remove_unreferenced_decls): Likewise.
9470 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
9472 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
9473 (enable_warning_as_error): Do not special case Wuninitialized.
9474 * optc-gen.awk: Add sanity checks.
9476 2012-05-17 Jan Hubicka <jh@suse.cz>
9478 * ipa-reference.c (is_proper_for_analysis): Do not check flags
9479 that might change as result of global optimization.
9480 (analyze_function): Do not check analyzed and externally_visible
9481 flags; be happy about address dereferences.
9482 (propagate): Prune all_module_statics so it really contains just
9483 statics; prune all the local summaries.
9484 (ipa_reference_write_optimization_summary): Simplify.
9486 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
9488 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
9489 * config/m68k/m68k-tables.opt: Regenerated.
9490 * doc/invoke.texi (M680x0 Options): Document.
9492 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
9493 Patrick Marlier <patrick.marlier@gmail.com>
9495 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
9498 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9500 * configure: Regenerated.
9502 2012-05-16 Andrew Pinski <apinski@cavium.com>
9504 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
9507 2012-05-16 David S. Miller <davem@davemloft.net>
9509 * jump.c (delete_related_insns): If we remove a CALL, make sure
9510 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
9512 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9514 PR tree-optimization/53217
9515 * tree-ssa-reassoc.c (bip_map): New static variable.
9516 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
9517 (attempt_builtin_powi): Save feeding multiplies on a stack.
9518 (reassociate_bb): Create and destroy bip_map.
9520 2012-05-16 Olivier Hainque <hainque@adacore.com>
9522 * Makefile.in (install-no-fixedincludes): New target, former toplevel
9523 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
9524 Add comments and improve stamp preservation across the whole sequence.
9525 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
9527 2012-05-16 Richard Guenther <rguenther@suse.de>
9529 * tree-inline.c (insert_init_stmt): Do not call
9530 mark_symbols_for_renaming.
9531 (setup_one_parameter): Avoid initializing unused parameters.
9532 (declare_return_variable): Properly handle DECL_BY_REFERENCE
9533 return vars in SSA form.
9535 2012-05-16 Richard Guenther <rguenther@suse.de>
9537 * tree-flow.h (get_virtual_var): Remove.
9538 * tree-dfa.c (get_virtual_var): Likewise.
9540 2012-05-16 Richard Guenther <rguenther@suse.de>
9542 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
9543 Remove set-only bitmap of new names.
9544 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
9546 * tree-flow.h (ssa_names_to_replace): Remove.
9547 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
9549 2012-05-16 Richard Guenther <rguenther@suse.de>
9551 PR tree-optimization/53364
9552 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
9553 detect a view-conversion of the decl.
9555 2012-05-16 Dodji Seketeli <dodji@redhat.com>
9557 PR preprocessor/7263
9558 * c-tree.h (enum c_declspec_word): Declare new enum.
9559 (struct c_declspecs::locations): New member.
9560 (declspecs_add_qual, declspecs_add_scspec)
9561 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
9563 * c-decl.c (build_null_declspecs): Initialize the new struct
9564 c_declspecs::locations member.
9565 (declspecs_add_addrspace): Take a location parameter for the
9566 address space. Store it onto declaration specifiers.
9567 (declspecs_add_qual): Likewise, take a location parameter for the
9569 (declspecs_add_type): Likewise, take a location parameter for the
9571 (declspecs_add_scspec): Likewise, take a location parameter for
9572 the storage class specifier.
9573 (declspecs_add_attrs): Likewise, take a location parameter for the
9575 (declspecs_add_alignas): Likewise, take a location parameter for
9577 (finish_declspecs): For diagnostics, use the location of the
9578 relevant declspec, instead of the global input_location.
9579 * c-parser.c (c_parser_parameter_declaration): Pass the precise
9580 virtual location of the declspec to the declspecs-setters.
9581 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
9584 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
9586 * configure.ac: Stack protector enabling for Android targets.
9587 * configure: Regenerate.
9589 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
9591 * ira.c (pseudo_move_insn): Delete.
9592 (find_moveable_pseudos): Don't set it.
9593 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
9594 the definitions of the original pseudo. Delete all of them.
9596 2012-05-16 Olivier Hainque <hainque@adacore.com>
9598 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9600 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
9601 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
9602 * config/rs6000/8540.md: indicate that the units/patterns apply to
9605 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
9606 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
9607 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
9608 related flags, check that what is queried is supported by the selected
9609 configuration. Rework the single/double_float and MASK_STRING resets to
9610 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
9611 costs for PROCESSOR_PPC8548 as well.
9612 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
9613 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
9614 statement instead of a sequence of ifs.
9616 * config/rs6000/rs6000.h (TARGET_E500): Remove.
9617 (TARGET_NO_LWSYNC): Adjust accordingly.
9618 * config/rs6000/e500.h (TARGET_E500): Remove.
9619 (CHECK_E500_OPTIONS): Adjust accordingly.
9620 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
9621 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
9622 * config/rs6000/linuxspe.h: Likewise.
9623 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
9624 superfluous comments.
9625 * config/rs6000/e500-double.h: Remove.
9627 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
9628 default to with_cpu=8548 if --enable-e500-double, and to 8540
9630 (set misc flags section): For powerpc*|rs6000*, remove inclusion
9631 of e500-double.h for --enable-e500-double.
9633 2012-05-16 Olivier Hainque <hainque@adacore.com>
9635 * Makefile.in (s-header-vars): Resort to -n instead of trailing
9636 -e d in sed invocation.
9638 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
9640 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
9642 * doc/tm.texi: Regenerate.
9644 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
9646 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
9648 2012-05-15 Jakub Jelinek <jakub@redhat.com>
9651 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
9652 that operands[2] is either immediate, or q_regs_operand.
9654 2012-05-15 Richard Guenther <rguenther@suse.de>
9656 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
9657 (assemble_thunk): Likewise. Manually rename and register
9660 2012-05-15 Richard Guenther <rguenther@suse.de>
9662 PR tree-optimization/53355
9663 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
9666 2012-05-15 Tristan Gingold <gingold@adacore.com>
9668 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
9670 2012-05-15 Richard Guenther <rguenther@suse.de>
9672 * gimple.c (gimple_set_modified): Move ...
9673 * gimple.h (gimple_set_modified): ... here.
9675 2012-05-15 Tristan Gingold <gingold@adacore.com>
9677 * ira-color.c (move_spill_restore): Add a guard.
9679 2012-05-15 Tristan Gingold <gingold@adacore.com>
9681 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
9684 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
9686 * gimplify.c (gimplify_init_constructor): Do a block move for very
9687 small objects as well.
9689 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
9691 * ira.c (find_moveable_pseudos): Skip registers whose
9692 DF_REG_EQ_USE_COUNT is nonzero.
9694 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
9696 * doc/md.texi (fma): Define to only be applicable for single rounding.
9698 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
9701 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
9702 generate target register for "load" class builtins.
9705 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
9708 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
9709 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
9710 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
9711 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
9712 (<sse>_movu<ssemodesuffix>): New expander.
9713 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
9714 (avx_movdqu<avxmodesuffix>): New expander.
9715 (*sse2_movdqu): Rename from sse2_movdqu.
9716 (sse2_movdqu): New expander.
9718 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
9721 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
9722 (canonicalize_perm): ... new function.
9723 (expand_vec_perm_2vperm2f128_vshuf): New function.
9724 (ix86_expand_vec_perm_const_1): Call it.
9726 2012-05-14 Andrew Pinski <apinski@cavium.com>
9727 H.J. Lu <hongjiu.lu@intel.com>
9728 Jakub Jelinek <jakub@redhat.com>
9731 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
9734 2012-05-14 Jakub Jelinek <jakub@redhat.com>
9736 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
9737 lineno 1 the same as lineno 0 before first start file directive.
9738 (optimize_macinfo_range): Likewise.
9740 * dwarf2out.c (have_macinfo): Define.
9741 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
9742 attribute, don't force empty compilation unit and don't emit any
9743 .debug_macinfo/.debug_macro section if macinfo_table is empty.
9745 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
9748 * config/avr/avr.c (avr_const_address_lo16): Remove.
9749 (avr_assemble_integer): Print ".byte lo8(x)",
9750 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
9751 .warning if 3-byte address is assembled.
9752 * doc/extend.texi (AVR Named Address Spaces): Document that
9753 binutils 2.23 is needed to assemble 3-byte addresses.
9755 2012-05-14 Richard Guenther <rguenther@suse.de>
9757 * tree-vect-data-refs.c (vect_setup_realignment): Remove
9758 call to mark_symbols_for_renaming.
9759 (vect_permute_load_chain): Likewise.
9760 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
9761 instead of calling mark_symbols_for_renaming.
9762 * tree-vect-stmts.c (read_vector_array): Remove call to
9763 mark_symbols_for_renaming.
9764 (write_vector_array): Likewise.
9765 (vectorizable_call): Likewise.
9766 (vectorizable_store): Likewise.
9767 (vectorizable_load): Likewise.
9768 * matrix-reorg.c (transform_allocation_sites): Likewise.
9769 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
9770 (create_expression_by_pieces): Likewise.
9772 2012-05-14 Richard Guenther <rguenther@suse.de>
9774 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
9775 of statements for renaming.
9776 (force_gimple_operand_1): Likewise, consistently for both
9777 calls to force_gimple_operand and force_gimple_operand_gsi.
9779 2012-05-14 Richard Guenther <rguenther@suse.de>
9781 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
9782 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
9784 (expand_omp_for): Likewise.
9785 (expand_omp_for_generic): Adjust conditional add to referenced vars.
9786 Use make_rename_temp for temporaries that should be rewritten into
9788 (expand_omp_for_static_nochunk): Likewise.
9789 (expand_omp_atomic_pipeline): Likewise.
9791 2012-05-14 Richard Guenther <rguenther@suse.de>
9793 PR tree-optimization/53331
9794 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
9796 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
9798 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9801 * doc/options.texi: (LangEnabledBy): Document it.
9802 * optc-gen.awk: Handle LangEnabledBy.
9803 * opth-gen.awk: Generate declaration for lang-specific functions.
9804 * opt-read.awk: Record lang numbers.
9805 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
9806 (lang_sanitized_name): New.
9808 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
9810 * attribs.c (decl_attributes): Avoid emitting a warning if
9812 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
9813 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
9814 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
9815 define a string "1".
9816 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
9817 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
9818 BUILT_IN_STRCPY): Use it for these functions.
9819 * postreload.c (reload_combine): Deal with SETs inside
9820 CALL_INSN_FUNCTION_USAGE.
9821 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
9822 Look for REG_RETURNED notes and use a cheap restore if possible.
9823 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
9824 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
9825 * ira-build.c (ira_create_allocno, create_cap_allocno,
9826 propagate_allocno_info, propagate_some_info_from_allocno,
9827 copy_info_to_removed_store_destination, ira_flattening): Handle it.
9828 * ira-lives.c (pseudo_regno_single_word_and_live_p,
9829 find_call_crossed_cheap_reg): New static functions.
9830 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
9831 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
9832 a REG_RETURNED note in that case.
9833 * ira.c (setup_reg_renumber): Change assert to allow cases where
9834 allocnos only cross calls for which they are cheap to restore.
9835 * ira-costs.c (ira_tune_allocno_costs): Compare
9836 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
9838 * reg-notes.def (REG_RETURNED): New note.
9839 * cse.c (cse_insn): Likewise.
9840 * sched-deps.c (sched_analyze_insn): Likewise.
9841 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
9842 * calls.c (decl_return_flags): New static function.
9843 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
9844 functions that return one of their arguments.
9845 * regcprop.c (struct kill_set_value_data): New.
9846 (kill_set_value): Interpret data as a pointer to such a struct.
9847 Do nothing if the caller wants the register to be ignored.
9848 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
9850 2012-05-14 Richard Guenther <rguenther@suse.de>
9852 PR tree-optimization/53340
9853 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
9855 2012-05-14 Richard Guenther <rguenther@suse.de>
9857 * gimplify.c (gimplify_expr): Remove odd code.
9859 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
9861 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
9862 into a PLUS_EXPR byte offset.
9864 * tree-ssa-pre.c (can_value_number_call): Delete.
9865 (compute_avail): Skip all statements with side effects.
9866 <GIMPLE_CALL>: Skip calls to internal functions.
9868 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
9870 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
9872 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9874 * common.opt (Wtype-limits): Use EnabledBy.
9876 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
9878 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
9879 (pushtf splitter): Ditto.
9881 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
9882 (<code>tf2): Enable for TARGET_SSE.
9883 (*absnegtf2_sse): Ditto.
9884 (copysign<mode>3): Enable TFmode for TARGET_SSE.
9885 (copysign<mode>3_const): Ditto.
9886 (copysign<mode>3_var): Ditto.
9887 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
9888 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
9889 (*<code>tf3): Ditto.
9890 * config/i386/i386.c (struct builtin_description bdesc_args)
9891 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
9892 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
9893 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
9894 Emit a normal call if SSE isn't available.
9896 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
9898 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
9899 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
9900 (<code><mode>3): Ditto.
9901 (*andnot<mode>3): Ditto.
9902 (*andnottf3): Ditto.
9903 (*<code><mode>3): Ditto.
9906 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
9908 * optc-gen.awk: Error instead of warning for conflicting help.
9910 2012-05-12 Jason Merrill <jason@redhat.com>
9913 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
9916 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
9918 * function.c (requires_stack_frame_p): If the function can throw
9919 non-call exceptions, return true if the insn can throw internally.
9921 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
9923 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
9925 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
9927 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
9928 ORDERED and UNORDERED conditions.
9930 2012-05-11 Richard Guenther <rguenther@suse.de>
9932 * tree-flow.h (referenced_var_check_and_insert): Remove.
9933 (find_new_referenced_vars): Likewise.
9934 * tree-dfa.c (referenced_var_check_and_insert): Make static.
9935 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
9936 * tree-inline.c (copy_bb): Use find_referenced_vars_in
9937 instead of find_new_referenced_vars.
9938 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
9940 2012-05-11 Richard Guenther <rguenther@suse.de>
9942 * tree-pass.h (pass_rest_of_compilation,
9943 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
9945 * passes.c (pass_all_optimizations, pass_postreload,
9946 pass_all_early_optimizations): Make static.
9947 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
9948 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
9949 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
9950 (delete_tree_ssa): Do not call fini_phinodes.
9951 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
9953 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9956 * doc/options.texi (EnabledBy): Document
9957 * opts.c: Include opts.h and options.h before tm.h.
9958 (finish_options): Do not handle some sub-options here...
9959 (common_handle_option): ... instead call common_handle_option_auto
9961 * optc-gen.awk: Handle EnabledBy.
9962 * opth-gen.awk: Declare common_handle_option_auto.
9963 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
9964 (Wmaybe-uninitialized): Likewise.
9965 (Wunused-but-set-variable): Likewise.
9966 (Wunused-function): Likewise.
9967 (Wunused-label): Likewise.
9968 (Wunused-value): Likewise.
9969 (Wunused-variable): Likewise.
9970 * opt-read.awk: Create opt_numbers array.
9972 2012-05-11 Richard Guenther <rguenther@suse.de>
9974 PR tree-optimization/53295
9975 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
9977 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
9978 strides when analyzing data-references in a loop context.
9979 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
9980 non-constant strides for now.
9981 (vect_enhance_data_refs_alignment): Ignore data references
9982 that are strided loads.
9983 (vect_analyze_data_ref_access): Handle non-constant strides.
9984 (vect_check_strided_load): Verify the data-reference is a load.
9985 (vect_analyze_data_refs): Restructure to make strided load
9986 support not dependent on gather support.
9987 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
9988 when doing strided or gather loads.
9989 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
9990 integer_zerop to compare stride with zero.
9992 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
9994 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
9996 2012-05-11 Jan Hubicka <jh@suse.cz>
9999 * varpool.c (varpool_assemble_decl): Also output constat pool entries
10000 that output_constant_pool missed.
10002 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
10004 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
10005 MULTILIB_EXTRA_OPTS.
10007 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
10010 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
10012 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
10014 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
10015 optimization for TARGET_AVX.
10016 (*movti_internal_sse): Ditto.
10017 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
10018 (*movdi_internal): Ditto.
10019 (*movsi_internal): Ditto.
10020 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
10021 (*movdf_internal_rex64): Ditto.
10022 (*movfd_internal): Ditto.
10023 (*movsf_internal): Ditto.
10024 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
10026 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10028 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
10029 reference as size attribute.
10031 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10032 Tristan Gingold <gingold@adacore.com>
10034 * doc/md.texi (Standard Names): Document probe_stack_address.
10035 * explow.c (emit_stack_probe): Handle probe_stack_address.
10036 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
10037 (UNSPECV_PROBE_STACK_RANGE): Likewise.
10038 (probe_stack_address): New insn.
10039 (probe_stack_range): Likewise.
10040 * config/ia64/ia64.c: Include common/common-target.h.
10041 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
10042 checking is enabled.
10043 (ia64_emit_probe_stack_range): New function.
10044 (output_probe_stack_range): Likewise.
10045 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
10046 builtin stack checking is enabled.
10047 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
10048 and UNSPECV_PROBE_STACK_ADDRESS.
10049 (unknown_for_bundling_p): New predicate.
10050 (group_barrier_needed): Use important_for_bundling_p.
10051 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
10052 (issue_nops_and_insn): Likewise.
10053 (bundling): Likewise.
10054 (final_emit_insn_group_barriers): Likewise.
10055 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
10056 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
10057 (STACK_CHECK_PROTECT): Likewise.
10058 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10060 2012-05-10 Jan Hubicka <jh@suse.cz>
10062 * ipa-inline.c (update_all_callee_keys): Remove.
10063 (inline_small_functions): Simplify priority updating.
10065 2012-05-10 Jan Hubicka <jh@suse.cz>
10067 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
10069 2012-05-10 Jan Hubicka <jh@suse.cz>
10071 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
10072 (symtab_remove_unreachable_nodes): ... this one.
10073 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
10074 * cgraphunit.c (ipa_passes): Update.
10075 * cgraphclones.c (cgraph_materialize_all_clones): Update.
10076 * cgraph.c (cgraph_release_function_body): Only turn initial
10077 into error mark when initial was previously set.
10078 * ipa-inline.c (ipa_inline): Update.
10079 * ipa.c: Include ipa-inline.h
10080 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
10081 (enqueue_node): New function.
10082 (process_references): Update.
10083 (symtab_remove_unreachable_nodes): Cleanup.
10084 * passes.c (execute_todo, execute_one_pass): Update.
10086 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
10088 PR rtl-optimization/53125
10089 * ira.c (ira): Call find_moveable_pseudos and
10090 move_unallocated_pseudos if only ira_conflicts_p is true.
10092 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
10094 * config/i386/i386.md (*movoi_internal_avx): Handle
10095 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
10096 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
10097 (*movti_internal_sse): Ditto.
10098 (*movtf_internal): Ditto.
10099 * config/i386/sse.md (ssePSmode): New mode attribute.
10100 (*move<mode>_internal): Use ssePSmode.
10101 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
10102 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
10103 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
10104 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
10106 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
10108 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
10109 DECL_ORIGINAL_TYPE if it is present.
10111 2012-05-10 Nick Clifton <nickc@redhat.com>
10114 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
10115 a "0" constraint to being a (match_dup 0).
10117 2012-05-10 Richard Guenther <rguenther@suse.de>
10119 * stor-layout.c (byte_from_pos): Amend comment.
10121 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10123 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
10124 Document requirement to call in constructors.
10126 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
10128 2012-05-10 Richard Guenther <rguenther@suse.de>
10130 * tree.h (TYPE_IS_SIZETYPE): Remove.
10131 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
10132 (extract_muldiv_1): Likewise.
10133 * gimple.c (gtc_visit): Likewise.
10134 (gimple_types_compatible_p): Likewise.
10135 (iterative_hash_canonical_type): Likewise.
10136 (gimple_canonical_types_compatible_p): Likewise.
10137 * gimplify.c (gimplify_one_sizepos): Likewise.
10138 * print-tree.c (print_node): Likewise.
10139 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
10141 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10144 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
10145 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
10146 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
10147 instead of xop_mulv2div2di3_low.
10148 (xop_p<macs>dql): Fix vec_select selector.
10149 (xop_p<macs>dqh): Ditto.
10150 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
10151 (xop_mulv2div2di3_high): Ditto.
10153 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10156 * diagnostic.h (diagnostic_context): Add last_location.
10157 * diagnostic.c (diagnostic_initialize): Initialize it.
10158 (diagnostic_show_locus): Use it.
10160 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
10162 * doc/extend.texi (Function Attributes): Point xref to section
10165 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10167 * config/i386/i386.c (*movdf_internal_rex64): Remove
10168 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
10169 Calculate "mode" attribute according to
10170 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
10171 (*movdf_internal): Ditto.
10173 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
10176 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
10177 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
10178 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10179 or when optimizing for size.
10180 * config/i386/sse.md (*mov<mode>_internal): Remove
10181 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
10182 Calculate "mode" attribute according to optimize_function_for_size_p
10183 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
10184 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
10185 depending on the mode of the instruction. Calculate "mode" attribute
10186 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
10187 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
10188 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
10190 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
10193 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
10194 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
10195 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
10196 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
10197 (expand_prologue): Move initialization of cfun->machine->is_naked,
10198 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
10199 (avr_set_current_function): ...this new static function.
10200 (TARGET_SET_CURRENT_FUNCTION): New define.
10201 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
10202 checking attributes of current_function_decl.
10203 (avr_regs_to_save): Ditto.
10204 (signal_function_p): Rename to avr_signal_function_p.
10205 (interrupt_function_p): Rename to avr_interrupt_function_p.
10207 * doc/extend.texi (Function Attributes): Better explanation of
10208 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
10209 alphabetical order.
10211 2012-05-09 Michael Matz <matz@suse.de>
10213 PR tree-optimization/53185
10214 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
10215 peeling when we see strided loads.
10217 2012-05-09 Matthias Klose <doko@ubuntu.com>
10219 * gcc-ar.c (main): Don't check for execute bits for the plugin.
10221 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10223 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
10224 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
10225 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
10226 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
10227 (USE_LOAD_POST_INCREMENT): Define.
10228 (USE_LOAD_PRE_INCREMENT): Define.
10229 (USE_LOAD_POST_DECREMENT): Define.
10230 (USE_LOAD_PRE_DECREMENT): Define.
10231 (USE_STORE_PRE_DECREMENT): Define.
10232 (USE_STORE_PRE_INCREMENT): Define.
10233 (USE_STORE_POST_DECREMENT): Define.
10234 (USE_STORE_POST_INCREMENT): Define.
10235 (arm_auto_incmodes): Add enumeration.
10236 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
10237 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
10239 2012-05-09 Jakub Jelinek <jakub@redhat.com>
10241 PR tree-optimization/53226
10242 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
10243 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
10244 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
10245 doesn't need to be revisited, look for earliest stmt with
10246 !gimple_plf (stmt, GF_PLF_1) if something changed.
10248 2012-05-09 Terry Guo <terry.guo@arm.com>
10250 * genmultilib: Update copyright dates.
10251 * doc/fragments.texi: Ditto.
10253 2012-05-09 Terry Guo <terry.guo@arm.com>
10255 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
10256 * genmultilib (MULTILIB_REQUIRED): New.
10257 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
10259 2012-05-09 Richard Guenther <rguenther@suse.de>
10261 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
10262 (vect_do_peeling_for_loop_bound): Likewise.
10263 (vect_do_peeling_for_alignment): Likewise.
10264 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
10265 (vect_do_peeling_for_loop_bound): Get check_profitability and
10266 threshold as parameters.
10267 (vect_do_peeling_for_alignment): Likewise.
10268 (vect_loop_versioning): Likewise.
10269 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
10270 and threshold here. Control where to put the check here.
10272 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
10274 PR middle-end/53249
10275 * dwarf2out.h (get_address_mode): Move declaration to...
10277 * dwarf2out.c (get_address_mode): Move definition to...
10278 * rtlanal.c: ...here.
10279 * var-tracking.c (get_address_mode): Delete.
10280 * combine.c (find_split_point): Use get_address_mode instead of
10281 targetm.addr_space.address_mode.
10282 * cselib.c (cselib_record_sets): Likewise.
10283 * dse.c (canon_address, record_store): Likewise.
10284 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10285 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
10286 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
10287 (expand_expr_real_1): Likewise.
10288 * ifcvt.c (noce_try_cmove_arith): Likewise.
10289 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
10290 * reload.c (find_reloads): Likewise.
10291 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
10292 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
10294 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
10296 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
10297 information from the instruction produced.
10299 2012-05-09 Richard Guenther <rguenther@suse.de>
10301 * stor-layout.c (bit_from_pos): Document.
10302 (byte_from_pos): Likewise. Optimize.
10303 (pos_from_bit): Likewise.
10304 (normalize_offset): Use pos_from_bit instead of replicating it.
10306 2012-05-09 Alan Modra <amodra@gmail.com>
10309 * config/rs6000/rs6000.c (gen_frame_set): New function.
10310 (gen_frame_load, gen_frame_store): New functions.
10311 (rs6000_savres_rtx): Use the above.
10312 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
10313 Correct mode used for CR2 in save/restore_world patterns.
10314 Don't emit instructions for eh_return frame unwind reg info.
10316 2012-05-08 Jan Hubicka <jh@suse.cz>
10318 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
10320 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
10322 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
10324 (compile_file): Do not output variables.
10325 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
10327 * langhooks.c: Include timevar.h
10328 (write_global_declarations): Finalize compilation unit after wrapup;
10329 set timevars correctly.
10330 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
10331 not to be added to varpool.
10332 * varpool.c (varpool_assemble_decl): Sanity check that we are called
10333 only on cases where it makes sense; skip constant pool and value expr
10336 2012-05-08 David S. Miller <davem@davemloft.net>
10338 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
10339 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
10340 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
10342 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
10344 PR rtl-optimization/53278
10345 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
10346 speed_p code from earlier patch.
10348 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
10351 * config/sh/sh.md (*branch_true, *branch_false): New insns.
10353 2012-05-08 Teresa Johnson <tejohnson@google.com>
10355 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
10356 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
10358 2012-05-08 Jan Hubicka <jh@suse.cz>
10360 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
10361 (cgraph_create_node_1): Rename to ...
10362 (cgraph_create_empty_node): ... this one; export.
10363 (cgraph_create_node): Update.
10364 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
10365 (cgraph_create_edge_including_clones): Likewise.
10366 (cgraph_find_replacement_node): Likewise.
10367 (cgraph_clone_edge): Likewise.
10368 (cgraph_clone_node): Likewise.
10369 (clone_function_name): Likewise.
10370 (cgraph_create_virtual_clone): Likewise.
10371 (cgraph_remove_node_and_inline_clones): Likewise.
10372 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
10373 * cgraph.h: Reorder declarations so they match file of origin.
10374 (cgraph_create_empty_node): Declare.
10375 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
10376 (cgraph_copy_node_for_versioning): Likewise.
10377 (cgraph_function_versioning): Likewise.
10378 (cgraph_materialize_clone): Likewise.
10379 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
10380 (cgraph_materialize_all_clones): Likewise.
10381 * cgraphclones.c: New file.
10382 * Makefile.in: Update for cgraphclones.
10384 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
10387 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
10388 (ix86_rtx_costs): Handle SET.
10390 2012-05-08 Michael Matz <matz@suse.de>
10392 * basic-block.h (struct rtl_bb_info): Remove visited member and
10393 move head_ member to ...
10394 (struct basic_block_def.basic_block_il_dependent): ... the new
10395 member x, replacing but containing old member rtl.
10396 (enum bb_flags): New BB_VISITED flag.
10397 (BB_HEADER, BB_FOOTER): New macros.
10399 * jump.c (mark_all_labels): Adjust.
10400 * cfgcleanup.c (try_optimize_cfg): Adjust.
10401 * cfglayout.c (record_effective_endpoints): Adjust.
10402 (relink_block_chain): Ditto (and don't fiddle with visited).
10403 (fixup_reorder_chain): Adjust.
10404 (fixup_fallthru_exit_predecessor): Ditto.
10405 (cfg_layout_duplicate_bb): Ditto.
10406 * combine.c (update_cfg_for_uncondjump): Adjust.
10407 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
10408 (bb_visited_trace): New accessor.
10409 (mark_bb_visited): Move in front.
10410 (rotate_loop): Use bb_visited_trace.
10411 (find_traces_1_round): Ditto.
10412 (emit_barrier_after): Ditto.
10413 (copy_bb): Ditto, and initialize visited on resize.
10414 (reorder_basic_blocks): Initize visited member.
10415 (duplicate_computed_gotos): Clear bb flags at start, use
10418 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
10419 (rtl_verify_flow_info_1): Ditto.
10420 (cfg_layout_split_block): Ditto.
10421 (cfg_layout_delete_block): Ditto.
10422 (cfg_layout_merge_blocks): Ditto.
10423 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
10425 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
10428 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
10429 when a constant source operand matches an "I" constraint, the "no
10430 CC0 change" applies to a register-destination only, not a
10431 strict_low_part-destination.
10433 2012-05-08 Richard Guenther <rguenther@suse.de>
10435 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
10436 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
10438 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
10440 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
10442 * doc/avr-mmcu.texi: New auto-generated file.
10443 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
10444 to document all valid -mmcu= arguments.
10446 * config/avr/avr.h (arch_info_s): New struct definition.
10447 * config/avr/avr-devices.c (avr_texinfo): New variable.
10448 * config/avr/gen-avr-mmcu-texi.c: New file.
10449 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
10451 2012-05-08 Dehao Chen <dehao@google.com>
10453 * predict.c (find_qualified_ssa_name): New.
10454 (find_ssa_name_in_expr): New.
10455 (find_ssa_name_in_assign_stmt): New.
10456 (is_comparison_with_loop_invariant_p): New.
10457 (is_bound_expr_similar): New.
10458 (predict_iv_comparison): New.
10459 (predict_loops): Add heuristic for loop-nested branches that compare an
10460 induction variable to a loop bound variable.
10461 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
10463 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
10465 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
10466 TARGET_BDVER2 defines where appropriate.
10468 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
10470 * configure.ac (PLUGIN_LD): Rename into...
10471 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
10472 * config.in: Regenerate.
10473 * configure: Likewise.
10474 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
10476 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
10478 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
10479 computation using the precision of the index type.
10480 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
10481 (fold_array_ctor_reference): Do index computations in the index type.
10483 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
10485 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
10486 down to plus_constant.
10487 (expand_epilogue): Ditto.
10489 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10491 * postreload.c (reload_cse_regs): Make static.
10492 * reload.h (reload_cse_regs): Remove prototype.
10494 2012-05-07 Richard Henderson <rth@redhat.com>
10496 * config/alpha/alpha.md (clear_cache): New pattern.
10498 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10500 PR middle-end/53245
10501 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
10502 is folded to a type boundary value, verify that the resulting case
10503 label is still a care range.
10505 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
10507 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
10508 only for TARGET_GENERIC, when not optimizing for size.
10509 (*ffs<mode>_1): Ditto.
10511 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10513 * tree-cfg.c (verify_gimple_switch): Tighten checks.
10515 2012-05-07 Jakub Jelinek <jakub@redhat.com>
10517 PR tree-optimization/53239
10518 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
10519 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
10521 2012-05-07 Richard Guenther <rguenther@suse.de>
10523 PR tree-optimization/53195
10524 * tree-inline.c (setup_one_parameter): Properly add referenced
10525 vars from the parameters new known value.
10527 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
10529 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
10530 (sched_branch_type): Remove.
10531 (m68k_sched_md_init_global): Don't allocate it.
10532 (m68k_sched_md_finish_global): Don't free it.
10533 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
10534 * config/m68k/m68k.md: Set the type of insns using
10535 m68k_sched_branch_type to bcc directly.
10537 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10539 * config/sol2.c (solaris_override_options): New function.
10540 * config/sol2-protos.h (solaris_override_options): Declare.
10541 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
10543 2012-05-07 Richard Guenther <rguenther@suse.de>
10545 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
10546 whether we failed to compute data dependences.
10547 (loop_prefetch_arrays): Fail if we failed.
10549 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
10550 Paolo Bonzini <bonzini@gnu.org>
10552 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
10553 Emit bsf when optimizing for size.
10554 (*ffs<mode>_1): Ditto.
10556 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
10559 * config/sh/sh.c (sh_rtx_costs): Handle SET.
10561 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
10564 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
10565 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
10566 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
10568 (*bswapdi2_doubleword): New insn pattern.
10569 (*bswap<mode>2): Rename from *bswap<mode>2_1.
10571 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
10573 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
10574 (mips_set_reg_reg_cost): Likewise.
10575 (mips_rtx_costs): Handle SET.
10577 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
10579 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
10580 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
10581 to compute the cost of moves. Set the mode of the target register.
10583 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
10585 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
10586 plus_constant function.
10587 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
10588 that the mode is sensible.
10589 (use_anchored_address, round_push, allocate_dynamic_stack_space)
10590 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
10593 * alias.c (canon_rtx): Likewise.
10594 (init_alias_analysis): Likewise.
10595 * builtins.c (expand_builtin_return_addr)
10596 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
10597 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
10598 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
10599 (expand_builtin_stpcpy): Likewise.
10600 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
10601 (compute_argument_addresses, internal_arg_pointer_based_exp)
10602 (expand_call, emit_library_call_value_1): Likewise.
10603 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
10604 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
10605 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
10606 * cse.c (insert_const_anchor, find_reg_offset_for_const)
10607 (use_related_value, fold_rtx): Likewise.
10608 * cselib.c (cselib_subst_to_values): Likewise.
10609 * dse.c (record_store, check_mem_read_rtx): Likewise.
10610 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
10611 * emit-rtl.c (adjust_address_1): Likewise.
10612 * except.c (sjlj_emit_function_enter)
10613 (expand_builtin_extract_return_addr)
10614 (expand_builtin_frob_return_addr): Likewise.
10615 * expmed.c (expand_divmod): Likewise.
10616 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
10617 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
10618 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
10619 * function.c (assign_stack_local_1)
10620 (instantiate_virtual_regs_in_rtx): Likewise.
10621 * optabs.c (prepare_cmp_insn): Likewise.
10622 * recog.c (offsettable_address_addr_space_p): Likewise.
10623 * reload.c (find_reloads_address, form_sum)
10624 (find_reloads_subreg_address): Likewise.
10625 * reload1.c (init_reload, eliminate_regs_1)
10626 (eliminate_regs_in_insn): Likewise.
10627 * simplify-rtx.c (simplify_unary_operation_1)
10628 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
10629 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
10630 (vt_add_function_parameter): Likewise.
10632 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
10633 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
10634 * config/alpha/alpha.c (alpha_legitimize_address_1)
10635 (get_unaligned_address, alpha_expand_unaligned_load)
10636 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
10637 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
10638 (alpha_expand_builtin_establish_vms_condition_handler)
10639 (alpha_setup_incoming_varargs, emit_frame_store_1)
10640 (alpha_expand_prologue, alpha_expand_epilogue)
10641 (alpha_use_linkage): Likewise.
10642 * config/alpha/alpha.md: Likewise.
10644 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
10645 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
10646 (thumb_legitimize_address, arm_gen_load_multiple_1)
10647 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
10648 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
10649 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
10650 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
10651 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
10652 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
10653 (thumb_expand_movmemqi, arm_set_return_address)
10654 (thumb_set_return_address): Likewise.
10655 * config/arm/arm.md: Likewise.
10657 * config/avr/avr.c (avr_incoming_return_addr_rtx)
10658 (avr_prologue_setup_frame, expand_epilogue)
10659 (avr_const_address_lo16): Likewise.
10661 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
10662 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
10663 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
10664 (bfin_output_mi_thunk): Likewise.
10666 * config/c6x/c6x.c (c6x_initialize_trampoline)
10667 (c6x_output_mi_thunk): Likewise.
10669 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
10670 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
10672 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
10673 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
10674 (cris_emit_movem_store, cris_trampoline_init): Likewise.
10675 * config/cris/cris.md: Likewise.
10677 * config/darwin.c (machopic_indirect_data_reference)
10678 (machopic_legitimize_pic_address): Likewise.
10680 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
10681 (epiphany_expand_prologue, epiphany_expand_epilogue)
10682 (epiphany_trampoline_init): Likewise.
10683 * config/epiphany/epiphany.md: Likewise.
10685 * config/fr30/fr30.c (fr30_move_double): Likewise.
10687 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
10688 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
10689 (frv_index_memory, unspec_got_name, frv_find_base_term)
10690 (frv_output_dwarf_dtprel): Likewise.
10692 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
10693 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
10695 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
10696 * config/i386/i386.c (setup_incoming_varargs_64)
10697 (setup_incoming_varargs_ms_64, choose_baseaddr)
10698 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
10699 (ix86_emit_probe_stack_range, ix86_expand_prologue)
10700 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
10701 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
10702 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
10703 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
10704 (x86_output_mi_thunk): Likewise.
10705 * config/i386/i386.md: Likewise.
10707 * config/ia64/ia64.c (ia64_expand_load_address)
10708 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
10709 (do_spill, ia64_trampoline_init): Likewise.
10711 * config/iq2000/iq2000.c (iq2000_va_start)
10712 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
10713 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
10714 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
10716 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10718 * config/m32c/m32c.c (m32c_return_addr_rtx)
10719 (m32c_expand_insv): Likewise.
10721 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
10722 (m32r_legitimize_pic_address, m32r_print_operand)
10723 (m32r_print_operand_address): Likewise.
10725 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
10726 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
10727 (EH_RETURN_HANDLER_RTX): Likewise.
10728 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
10729 (m68k_expand_epilogue, legitimize_pic_address)
10730 (m68k_output_mi_thunk): Likewise.
10731 * config/m68k/m68k.md: Likewise.
10733 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
10734 (mcore_expand_epilog): Likewise.
10735 * config/mcore/mcore.md: Likewise.
10737 * config/mep/mep.c (mep_allocate_initial_value)
10738 (mep_expand_prologue, mep_expand_epilogue): Likewise.
10740 * config/microblaze/microblaze.c (double_memory_operand)
10741 (microblaze_block_move_loop): Likewise.
10743 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
10744 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
10745 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
10746 (mips_expand_prologue, mips_epilogue_set_cfa)
10747 (mips_expand_epilogue): Likewise.
10748 * config/mips/mips.md: Likewise.
10750 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
10751 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
10753 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
10754 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
10756 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
10757 (EH_RETURN_HANDLER_RTX): Likewise.
10758 * config/moxie/moxie.c (moxie_static_chain): Likewise.
10760 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
10761 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
10762 (pa_return_addr_rtx, hppa_builtin_saveregs)
10763 (pa_trampoline_init): Likewise.
10764 * config/pa/pa.md: Likewise.
10766 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
10768 * config/picochip/picochip.c (picochip_static_chain): Likewise.
10770 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
10771 * config/rs6000/rs6000.c (rs6000_legitimize_address)
10772 (setup_incoming_varargs, print_operand, rs6000_return_addr)
10773 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
10774 (rs6000_emit_epilogue)
10775 (rs6000_machopic_legitimize_pic_address): Likewise.
10777 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10779 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
10780 (DYNAMIC_CHAIN_ADDRESS): Likewise.
10781 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
10782 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
10783 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
10784 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
10785 (s390_emit_epilogue, s390_function_profiler): Likewise.
10786 * config/s390/s390.md: Likewise.
10788 * config/score/score.c (score_add_offset, score_prologue): Likewise.
10790 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
10791 (sh_output_mi_thunk): Likewise.
10792 * config/sh/sh.md: Likewise.
10794 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
10795 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
10796 * config/sparc/sparc.c (sparc_legitimize_pic_address)
10797 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
10798 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
10799 (emit_and_preserve): Likewise.
10800 * config/sparc/sparc.md: Likewise.
10802 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10803 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
10804 (spu_setup_incoming_varargs, ea_load_store_inline)
10805 (spu_expand_load): Likewise.
10807 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
10808 (combine_bnp): Likewise.
10810 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10811 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
10812 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
10814 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
10815 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
10816 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
10818 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
10819 * config/v850/v850.md: Likewise.
10821 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
10822 (EH_RETURN_HANDLER_RTX): Likewise.
10823 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
10824 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
10825 (print_operand_address, vax_trampoline_init): Likewise.
10827 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
10828 (xtensa_function_value_regno_p): Likewise.
10830 2012-05-04 Andrew Pinski <apinski@cavium.com>
10832 * expr.c (get_def_for_expr_class): New function.
10833 (convert_tree_comp_to_rtx): New function.
10834 (expand_cond_expr_using_cmove): New function.
10835 (expand_expr_real_2 <case COND_EXPR>): Call
10836 expand_cond_expr_using_cmove first and return if it succeeds.
10837 Remove the check for HAVE_conditional_move since we should have
10838 already converted it to a conditional move.
10839 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
10840 modes of DImode for 32bits and TImode.
10842 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
10845 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
10846 (print_md_ptr_loc, print_c_condition): Use them.
10847 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
10848 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
10849 attr_file, dfa_file, latency_file): New global variables.
10850 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
10851 write_upcase, write_indent, write_length_unit_log, write_test_expr,
10852 write_attr_get, write_insn_cases, write_eligible_delay,
10853 write_const_num_delay_slots): Accept FILE pointer and toss it around.
10854 Update all callers.
10855 (write_header, open_outfile, handle_arg): New funcions.
10856 (make_automaton_attrs): Write prototypes as extern to the output
10858 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
10859 names from the command line. Open the output files and write out
10860 internal functions for DFA functions to dfa_file_name, insn latency
10861 functions to latency_file_name, and everything else to attr_file.
10862 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
10863 (BACKEND): Build libbackend first.
10864 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
10865 (.PRECIOUS): Likewise.
10866 (insn-dfatab.o): New rule.
10867 (insn-latencytab.o): New rule.
10868 (simple_rtl_generated_c): Do not include insn-attrtab.c.
10869 (s-attrtab): New rule.
10871 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
10873 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
10874 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
10875 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
10876 * reorg.c (get_jump_flags): Do not set the removed flags.
10878 * doc/md.texi (attr_flag): Update for abovementioned changes.
10880 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
10883 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
10884 (TARGET_CMOV): Rename from TARGET_CMOVE.
10885 (TARGET_CMOVE): New define.
10886 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
10887 Do not set TARGET_CMOVE here.
10889 2012-05-04 Dodji Seketeli <dodji@redhat.com>
10891 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
10892 * opts.c (finish_options): Activate -Wunused-local-typedefs if
10893 -Wunused is activated.
10894 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
10896 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10898 * config/s390/s390.md (*movmem_short, *clrmem_short)
10899 (*cmpmem_short): Move the mode check from the insn condition to
10902 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10904 PR tree-optimization/52633
10905 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
10906 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
10907 (vect_recog_over_widening_pattern): Remove handling of code that was
10908 already detected as over-widening pattern. Remove special handling
10909 of "unsigned" cases. Instead, support general case of conversion
10910 of the shift result to another type.
10912 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10914 * tree-vect-patterns.c (vect_single_imm_use): New function.
10915 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
10916 (vect_recog_over_widening_pattern): Likewise.
10917 (vect_recog_widen_shift_pattern): Likewise.
10919 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10921 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
10922 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
10923 (vect_recog_widen_mult_pattern): Likewise.
10924 (vect_operation_fits_smaller_type): Likewise.
10925 (vect_recog_over_widening_pattern): Likewise.
10926 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
10928 2012-05-04 Richard Guenther <rguenther@suse.de>
10931 * lto-wrapper.c (merge_and_complain): Complain about mismatches
10932 of -freg-struct-return and -fpcc-struct-return.
10933 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
10934 from the input file options and ignore those from the link
10937 2012-05-04 Richard Guenther <rguenther@suse.de>
10939 PR tree-optimization/53168
10940 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
10941 memory reads when the result is a constant we can pun.
10943 2012-05-04 Richard Guenther <rguenther@suse.de>
10945 * common.opt (flto-report): Do not mark as Optimization.
10947 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
10950 * recog.c (constrain_operands): If extra constraints are present, also
10951 accept pseudo-registers with equivalent memory locations during reload.
10953 2012-05-04 Olivier Hainque <hainque@adacore.com>
10955 * collect2.c (may_unlink_output_file): New global.
10956 (maybe_unlink): Honor it.
10957 * collect2.h: Add extern for it.
10958 * tlink.c (do_tlink): Set it to true if the link succeeded.
10960 2012-05-04 Olivier Hainque <hainque@adacore.com>
10962 * gcc.c (eval_spec_function): Finalize/restore the current string
10963 obstack state as part of the context push/pop operations.
10965 2012-05-04 Bin Cheng <bin.cheng@arm.com>
10967 PR rtl-optimization/52804
10968 * reload1.c (reload_reg_reaches_end_p): Check whether successor
10969 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
10970 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
10971 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
10972 RELOAD_FOR_OUTADDR_ADDRESS.
10974 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10977 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
10978 for macro expansion.
10980 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10982 * flags.h (flag_permissive): Do not declare.
10983 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
10985 * toplev.c (flag_permissive): Do not define.
10986 * c-tree.h (system_header_p): Delete unused.
10988 2012-05-03 David S. Miller <davem@davemloft.net>
10991 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
10992 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
10993 (sparc_emit_float_lib_cmp): Likewise.
10995 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10998 * config/rs6000/rs6000.md (bswapdi splitters): If
10999 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
11000 default) is used, generate an alternate sequence that does not
11001 depend on using indexed addressing.
11003 2012-05-03 Jason Merrill <jason@redhat.com>
11005 * gengtype.c (write_types): Fix warning message.
11006 (write_local): Likewise.
11008 2012-05-02 Jason Merrill <jason@redhat.com>
11010 * dwarf2out.c (struct external_ref, build_local_stub): New.
11011 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
11012 (optimize_external_refs, optimize_external_refs_1): New.
11013 (change_AT_die_ref): New.
11014 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
11015 (build_abbrev_table): Take the external refs hashtable.
11016 (output_comp_unit): Get it from optimize_external_refs and pass it in.
11018 2012-05-03 Jan Hubicka <jh@suse.cz>
11020 PR middle-end/53093
11021 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
11023 2012-05-03 Jan Hubicka <jh@suse.cz>
11025 PR middle-end/53106
11026 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
11028 2012-05-03 Jason Merrill <jason@redhat.com>
11030 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
11031 use_debug_types to discriminate the die_id union.
11032 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
11033 (build_abbrev_table, output_die): Likewise.
11034 (prune_unused_types_walk_attribs): Likewise.
11035 (generate_type_signature, copy_declaration_context): Set it.
11036 (remove_child_or_replace_with_skeleton): Set it.
11037 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
11038 check use_debug_types.
11039 (dwarf2out_finish): Do break_out_includes after .debug_types.
11041 2012-05-03 Jason Merrill <jason@redhat.com>
11043 * dwarf2out.c (modified_type_die): Use scope_die_for.
11044 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
11045 (uses_local_type_r, uses_local_type): New.
11046 (scope_die_for): Keep a type that uses a local type in local scope.
11047 Use get_context_die for namespace and type scope.
11049 2012-05-03 Jason Merrill <jason@redhat.com>
11051 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
11053 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
11054 (dwarf2out_finish): Likewise.
11056 2012-05-03 Martin Jambor <mjambor@suse.cz>
11058 * builtins.c (get_object_alignment_1): Return whether we can determine
11059 the alignment or conservatively assume byte alignment. Return the
11060 alignment by reference. Use get_pointer_alignment_1 for dereference
11062 (get_pointer_alignment_1): Return whether we can determine the
11063 alignment or conservatively assume byte alignment. Return the
11064 alignment by reference. Use get_ptr_info_alignment to get SSA name
11066 (get_object_alignment): Update call to get_object_alignment_1.
11067 (get_object_or_type_alignment): Likewise, fall back to type alignment
11068 only when it returned false.
11069 (get_pointer_alignment): Update call to get_pointer_alignment_1.
11070 * fold-const.c (get_pointer_modulus_and_residue): Update call to
11071 get_object_alignment_1.
11072 * ipa-prop.c (ipa_modify_call_arguments): Update call to
11073 get_pointer_alignment_1.
11074 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
11075 of MEM_REF or TARGET_MEM_REF only when it returns false.
11076 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
11077 get_object_alignment_1.
11078 (ccp_finalize): Use set_ptr_info_alignment.
11079 * tree.h (get_object_alignment_1): Update declaration.
11080 (get_pointer_alignment_1): Likewise.
11081 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
11082 (dump_gimple_stmt): Likewise.
11083 * tree-flow.h (ptr_info_def): Updated comments of fields align and
11085 (get_ptr_info_alignment): Declared.
11086 (mark_ptr_info_alignment_unknown): Likewise.
11087 (set_ptr_info_alignment): Likewise.
11088 (adjust_ptr_info_misalignment): Likewise.
11089 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
11090 and set alignment of SSA names.
11091 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
11092 mark_ptr_info_alignment_unknown.
11093 * tree-ssanames.c (get_ptr_info_alignment): New function.
11094 (mark_ptr_info_alignment_unknown): Likewise.
11095 (set_ptr_info_alignment): Likewise.
11096 (adjust_ptr_info_misalignment): Likewise.
11097 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
11098 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11100 (bump_vector_ptr): Likewise.
11101 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
11102 (vectorizable_store): Likewise.
11103 (vectorizable_load): Likewise.
11105 2012-05-03 Michael Matz <matz@suse.de>
11107 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
11108 in front of basic_block_def.
11109 (struct basic_block_def): Make il.gimple the full struct, not a
11111 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
11113 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
11114 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
11115 NULL il.gimple, which can't happen anymore.
11116 * gimple.h (bb_seq): il.gimple can't be NULL.
11117 (bb_seq_add): Ditto.
11118 (set_bb_seq): Adjust.
11119 (gsi_start_bb, gsi_last_bb): Tidy.
11120 * lto-streamer-in.c (make_new_block): Don't zero members that
11121 are zeroed already, don't allocate a gimple_bb_info.
11122 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
11123 (remove_bb): Clear all il.gimple members.
11124 (gimple_verify_flow_info): Adjust for flat il.gimple.
11125 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
11127 * coretypes.h (const_gimple_seq): Remove typedef.
11128 * gimple.h (gimple_seq_first): Take gimple_seq.
11129 (gimple_seq_first_stmt): Ditto.
11130 (gimple_seq_last): Ditto.
11131 (gimple_seq_last_stmt): Ditto.
11132 (gimple_seq_empty_p): Ditto.
11134 2012-05-03 Richard Guenther <rguenther@suse.de>
11136 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
11138 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
11139 (compute_avail): Do not add possibly trapping operations to
11140 EXP_GEN if they might not be executed in the block.
11142 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
11144 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
11146 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
11148 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
11149 information as early as possible. Update dominance info instead of
11152 2012-05-03 Richard Guenther <rguenther@suse.de>
11154 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
11155 (union_contains_value): Remove.
11156 (vro_valid_in_sets): Likewise.
11157 (op_valid_in_sets): New function.
11158 (valid_in_sets): Use op_valid_in_sets.
11159 (insert_into_preds_of_block): Move dumping ...
11160 (do_regular_insertion): ... here.
11161 (do_partial_partial_insertion): ... and here. Dump that
11162 we've found a partial partial redundancy.
11163 (insert): Dump the current insert iteration.
11165 2012-05-03 Jakub Jelinek <jakub@redhat.com>
11168 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
11169 append program name to it and pass that as first argument
11170 to make_relative_prefix. Always pass standard_libexec_prefix
11171 as last argument to make_relative_prefix. If
11172 make_relative_prefix returns NULL, fall back to
11173 standard_libexec_prefix.
11176 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
11180 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
11181 mode, return that mode.
11184 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
11185 define __ATOMIC_HLE_* macros here.
11186 (ix86_target_macros): But here, using cpp_define_formatted.
11188 2012-05-03 Richard Guenther <rguenther@suse.de>
11190 PR tree-optimization/53144
11191 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
11193 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
11194 with SSA name values.
11195 (vn_reference_lookup_3): Adjust callers.
11197 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11199 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
11200 has_fma4 for AMD processors with both fma3 and fma4 support.
11202 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
11205 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
11208 2012-05-03 Michael Matz <matz@suse.de>
11211 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
11212 (dse_enter_block): Properly iterate the whole sequence even
11213 if the last statement was removed.
11215 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
11217 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
11218 unset flag_jump_tables.
11219 * stmt.c (expand_case): Remove special flag_pic case conditional
11220 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
11222 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11224 * common/config/s390/s390-common.c (s390_option_optimization_table):
11225 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
11226 default when optimizing.
11228 2012-05-02 Martin Jambor <mjambor@suse.cz>
11231 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
11232 of a variable when the contect is a function.
11234 2012-05-02 Michael Matz <matz@suse.de>
11236 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
11237 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
11238 (const_gimple_seq_node): Remove.
11239 (gimple_seq_node): Typedef as gimple.
11240 (struct gimple_statement_base): Add next and prev members,
11241 adjust all WORD markers in using structs.
11242 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
11243 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
11244 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
11245 gimple are the same.
11246 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
11247 gimple_seq, adjust.
11248 (gimple_init_singleton): New function.
11249 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
11250 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
11251 (gsi_stmt): Adjust.
11252 (gsi_stmt_ptr): Remove.
11253 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
11255 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
11256 again, adjust for above changes.
11257 (update_call_edge_frequencies): Adjust for above changes.
11258 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
11259 (gsi_insert_seq_nodes_after): Ditto.
11260 (gsi_split_seq_after): Ditto.
11261 (gsi_set_stmt): Ditto.
11262 (gsi_split_seq_before): Ditto.
11263 (gsi_remove): Ditto.
11264 (gsi_insert_seq_before_without_update): Don't free sequence.
11265 (gsi_insert_seq_after_without_update): Ditto.
11266 (gsi_replace): Assert some more invariants.
11267 (gsi_insert_before_without_update, gsi_insert_after_without_update):
11269 (gsi_for_stmt): Don't search for stmt.
11270 (gsi_insert_on_edge_immediate): Tidy.
11272 * gimple.c (gimple_alloc_k): Remove "sequences".
11273 (gimple_seq_cache): Remove.
11274 (gimple_alloc_stat): Make stmt a singleton sequence.
11275 (gimple_seq_alloc, gimple_seq_free): Remove.
11276 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
11277 (gimple_copy): Ditto.
11278 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
11279 create iterator from correct sequence.
11280 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
11282 2012-05-02 Michael Matz <matz@suse.de>
11284 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
11286 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
11287 sequence, lazily allocate it.
11288 (bb_seq_addr): New function.
11289 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
11290 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
11291 (gsi_none): New function.
11292 (gsi_start_bb): Adjust.
11293 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
11294 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
11295 (gsi_last_bb): Adjust.
11297 * tree-flow-inline.h (phi_nodes_ptr): New function.
11299 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
11300 datastructure and interface change.
11301 (gsi_insert_seq_before_without_update): Ditto.
11302 (gsi_insert_seq_nodes_after): Ditto.
11303 (gsi_insert_seq_after_without_update): Ditto.
11304 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
11305 (gsi_split_seq_before): Ditto.
11306 (gsi_start_phis): Adjust.
11307 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
11308 (vect_transform_loop): Ditto.
11309 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
11310 gimple_seq_copy): Don't use gimple_seq_alloc.
11311 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
11312 (gimplify_seq_add_seq): Ditto.
11313 * lto-streamer-in.c (make_new_block): Ditto.
11314 * tree-cfg.c (create_bb): Ditto.
11315 * tree-sra.c (initialize_parameter_reductions): Ditto.
11317 2012-05-02 Michael Matz <matz@suse.de>
11319 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
11320 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
11321 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
11322 set_bb_seq): Move down to after gimple_statement_d definition.
11324 2012-05-02 Michael Matz <matz@suse.de>
11326 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
11327 gsi_replace_with_seq, instead of inserting itself.
11328 * gimple-iterator.c (gsi_replace_with_seq): New function.
11329 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
11330 iterator instead of statement, advance it.
11331 (ssa_forward_propagate_and_combine): Adjust call to above.
11333 2012-05-02 Michael Matz <matz@suse.de>
11335 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
11337 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
11338 * tree-nested.c (walk_gimple_omp_for): Ditto.
11339 * trans-mem.c (lower_transaction): Ditto.
11340 * tree-eh.c (do_return_redirection): Ditto.
11341 (do_goto_redirection): Ditto.
11342 (lower_try_finally_switch): Ditto.
11343 * gimplify.c (gimplify_stmt): Ditto.
11344 (gimplify_scan_omp_clauses): Ditto.
11345 (gimplify_omp_for): Ditto.
11346 (gimplify_function_tree): Ditto.
11347 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
11348 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
11349 (mf_build_check_statement_for): Ditto.
11350 (mx_register_decls): Ditto.
11351 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
11352 and don't use itertors to append.
11353 (insert_stmts): Ditto.
11354 (insert_out_of_ssa_copy): Ditto.
11355 (insert_out_of_ssa_copy_on_edge): Ditto.
11357 2012-05-02 Michael Matz <matz@suse.de>
11359 * gimple.h (gimple_bind_body_ptr): New function.
11360 (gimple_bind_body): Use it.
11361 (gimple_catch_handler): Use gimple_catch_handler_ptr.
11362 (gimple_eh_filter_failure_ptr): New function.
11363 (gimple_eh_filter_failure): Use it.
11364 (gimple_eh_else_n_body_ptr): New function.
11365 (gimple_eh_else_n_body): Use it.
11366 (gimple_eh_else_e_body_ptr): New function.
11367 (gimple_eh_else_e_body): Use it.
11368 (gimple_try_eval_ptr): New function.
11369 (gimple_try_eval): Use it.
11370 (gimple_try_cleanup_ptr): New function.
11371 (gimple_try_cleanup): Use it.
11372 (gimple_wce_cleanup_ptr): New function.
11373 (gimple_wce_cleanup): Use it.
11374 (gimple_omp_body_ptr): New function.
11375 (gimple_omp_body): Use it.
11376 (gimple_omp_for_pre_body_ptr): New function.
11377 (gimple_omp_for_pre_body): Use it.
11378 (gimple_transaction_body_ptr): New function.
11379 (gimple_transaction_body): Use it.
11380 (gsi_split_seq_before): Adjust to return nothing and take pointer
11382 (gsi_set_stmt): Declare.
11383 (gsi_replace_with_seq): Declare.
11384 (walk_gimple_seq_mod): Declare.
11385 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
11387 * gimple-iterator.c (gsi_set_stmt): New function.
11388 (gsi_split_seq_before): Return new sequence via pointer argument.
11389 (gsi_replace): Use gsi_set_stmt.
11391 * tree-ssa-loop-im.c (move_computations_stmt): First remove
11393 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
11394 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
11396 (reserve_phi_args_for_new_edge): Change call to above,
11399 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
11400 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
11401 iterators. Adjust call to lower_omp.
11402 (lower_lastprivate_clauses): Adjust call to lower_omp.
11403 (lower_reduction_clauses): Ditto.
11404 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
11405 (lower_omp_sections): Don't explicitely count sequence length,
11406 nullify lowered bodies earlier, ensure stmts are part of only
11407 one sequence, adjust call to lower_omp.
11408 (lower_omp_single): Ensure stmts are part of only one sequence,
11409 adjust call to lower_omp.
11410 (lower_omp_master): Ditto.
11411 (lower_omp_ordered): Ditto.
11412 (lower_omp_critical): Ditto.
11413 (lower_omp_for): Ditto.
11414 (lower_omp_taskreg): Ditto, tidy.
11415 (lower_omp_1): Adjust calls to lower_omp.
11416 (execute_lower_omp): Ditto.
11417 (lower_omp): Adjust to take pointer to sequence.
11418 (diagnose_sb_2): Use walk_gimple_seq_mod.
11419 (diagnose_omp_structured_block_errors): Ditto and set possibly
11420 changed function body.
11421 * gimple-low.c (lower_function_body): Set function body after
11423 (lower_sequence): Adjust to take pointer to sequence.
11424 (lower_omp_directive): Ensure stmt isn't put twice into the
11425 sequence, adjust call to lower_sequence.
11426 (lower_stmt): Adjust calls to lower_sequence.
11427 (lower_gimple_bind): Ditto.
11428 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
11429 * tree-nested.c (walk_body): Take pointer to sequence, use
11430 walk_gimple_seq_mod.
11431 (walk_function): Adjust call to walk_body, set possibly changed body.
11432 (walk_gimple_omp_for): Adjust calls to walk_body.
11433 (convert_nonlocal_omp_clauses): Ditto.
11434 (convert_nonlocal_reference_stmt): Ditto.
11435 (convert_local_omp_clauses): Ditto.
11436 (convert_local_reference_stmt): Ditto.
11437 (convert_tramp_reference_stmt): Ditto.
11438 (convert_gimple_call): Ditto.
11439 (convert_nl_goto_reference): Use local iterator copy.
11440 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
11441 but taking pointer to sequence, ensure gsi_start is called with
11443 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
11444 asserting that the sequence head didn't change.
11445 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
11446 walk_gimple_seq_mod.
11447 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
11448 (execute_lower_tm): Ditto, and set possibly changed body.
11449 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
11450 call gsi_start with that lvalue.
11451 (replace_goto_queue_stmt_list): Ditto.
11452 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
11453 (replace_goto_queue): Ditto.
11454 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
11455 (lower_try_finally_onedest): Ditto.
11456 (lower_try_finally_copy): Ditto.
11457 (lower_try_finally_switch): Ditto.
11458 (lower_try_finally): Ditto.
11459 (lower_eh_filter): Ditto.
11460 (lower_eh_must_not_throw): Ditto.
11461 (lower_cleanup): Ditto.
11462 (lower_eh_constructs_2): Ditto.
11463 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
11464 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
11465 set possibly changed body.
11466 (optimize_double_finally): Call gsi_start with lvalue.
11468 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
11469 (gimple_split_block): Ditto.
11470 (gimple_merge_blocks): Use gsi_start_phis.
11471 (move_stmt_r): Use walk_gimple_seq_mod.
11472 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
11473 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
11474 (rebuild_cgraph_edges): Ditto.
11475 (cgraph_rebuild_references): Ditto.
11476 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
11477 * tree-inline.c (copy_phis_for_bb): Ditto.
11478 * tree-ssa-dce.c: Ditto.
11480 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
11482 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
11483 Andi Kleen <ak@linux.intel.com>
11485 * coretypes.h (MEMMODEL_MASK): New.
11486 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
11487 and return new variable.
11488 (expand_builtin_atomic_exchange): Mask memmodel values.
11489 (expand_builtin_atomic_compare_exchange): Ditto.
11490 (expand_builtin_atomic_load): Ditto.
11491 (expand_builtin_atomic_store): Ditto.
11492 (expand_builtin_atomic_clear): Ditto.
11493 * doc/extend.texi: Mention port-dependent memory model flags.
11494 * config/i386/cpuid.h (bit_HLE): New.
11495 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11497 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
11498 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
11499 (ix86_target_string)<-mhle>: New.
11500 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
11501 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
11502 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
11503 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
11504 enabled for generic, generic64 and core-avx2.
11505 (ix86_print_operand): Generate HLE lock prefixes.
11506 (ix86_memmodel_check): New.
11507 (TARGET_MEMMODEL_CHECK): Ditto.
11508 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
11509 (IX86_HLE_ACQUIRE): Ditto.
11510 (IX86_HLE_RELEASE): Ditto.
11511 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
11512 * config/i386/i386.opt (mhle): Ditto.
11513 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
11514 success model to instruction emitter.
11515 (atomic_fetch_add<mode>): Ditto.
11516 (atomic_exchange<mode>): Ditto.
11517 (atomic_add<mode>): Ditto.
11518 (atomic_sub<mode>): Ditto.
11519 (atomic_<code><mode>): Ditto.
11520 (*atomic_compare_and_swap_doubledi_pic): Ditto.
11521 (atomic_compare_and_swap_single<mode>): Define and use argument
11523 (atomic_compare_and_swap_double<mode>): Ditto.
11524 * configure.ac: Check if assembler support HLE prefixes.
11525 * configure: Regenerate.
11526 * config.in: Ditto.
11528 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
11530 PR middle-end/53153
11531 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
11533 (gimplify_switch_expr): ... here.
11534 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
11535 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
11536 to clean up case labels with values outside the index type range.
11537 (simplify_gimple_switch): Call it if something changed.
11538 Remove strange and unnecessary assert.
11540 2012-05-02 Richard Guenther <rguenther@suse.de>
11542 * fold-const.c (div_if_zero_remainder): sizetypes no longer
11544 (int_const_binop_1): New worker for int_const_binop with
11545 overflowable parameter. Pass it through to force_fit_type_double.
11546 (int_const_binop): Wrap around int_const_binop_1 with overflowable
11548 (size_binop_loc): Call int_const_binop_1 with overflowable equal
11549 to minus one, forcing overflow detection for even unsigned types.
11550 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
11551 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
11552 * stor-layout.c (initialize_sizetypes): sizetypes no longer
11554 (layout_type): For zero-sized arrays ignore overflow on the
11556 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
11557 (bit_value_binop_1): Likewise.
11558 * tree.c (double_int_to_tree): Likewise.
11559 (double_int_fits_to_tree_p): Likewise.
11560 (force_fit_type_double): Likewise.
11561 (host_integerp): Likewise.
11562 (int_fits_type_p): Likewise.
11563 * varasm.c (output_constructor_regular_field): Sign-extend the
11564 field-offset to cater for negative offsets produced by the Ada
11566 * omp-low.c (extract_omp_for_data): Convert the loop step to
11567 signed for pointer adjustments.
11569 2012-05-02 Richard Guenther <rguenther@suse.de>
11571 * tree.c (valid_constant_size_p): New function.
11572 * tree.h (valid_constant_size_p): Declare.
11573 * cfgexpand.c (expand_one_var): Adjust check for too large
11574 variables by using valid_constant_size_p.
11575 * varasm.c (assemble_variable): Likewise.
11577 * c-decl.c (grokdeclarator): Properly check for sizes that
11578 cover more than half of the address-space.
11580 2012-05-02 Jakub Jelinek <jakub@redhat.com>
11582 PR tree-optimization/53163
11583 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
11584 return value from compute_all_dependences.
11586 PR rtl-optimization/53160
11587 * ree.c (combine_reaching_defs): Handle the case where cand->insn
11588 has been modified by ree pass already.
11590 2012-05-01 Ian Lance Taylor <iant@google.com>
11593 * c-decl.c (build_compound_literal): Make the decl readonly if it
11594 an array of a readonly type.
11595 * gimplify.c (gimplify_compound_literal_expr): Add fallback
11596 parameter. Change all callers. If the decl is not addressable
11597 and is not an l-value, make it readonly.
11599 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
11601 * ira.c (allocated_reg_info_size): New static variable.
11602 (expand_reg_info): Manage it. Call
11603 setup_preferred_alternate_classes_for_new_pseudos.
11604 (ira): Don't do it here. Remove local allocated_reg_info_size,
11605 set the global before calling find_moveable_pseudos.
11606 (find_moveable_pseudos): Call expand_reg_info rather than
11609 2012-05-01 Richard Henderson <rth@redhat.com>
11611 * common.opt (fsync-libcalls): New.
11612 * doc/invoke.texi: Document it.
11613 * optabs.c (init_sync_libfuncs): Honor it.
11615 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
11616 Richard Sandiford <r.sandiford@uk.ibm.com>
11618 PR rtl-optimization/52543
11619 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
11621 * lower-subreg.h: New file.
11622 * target-globals.h (this_target_lower_subreg): Declare.
11623 (target_globals): Add lower_subreg;
11624 (restore_target_globals): Restore this_target_lower_subreg.
11625 * target-globals.c: Include it.
11626 (default_target_globals): Add default_target_lower_subreg.
11627 (save_target_globals): Initialize target_lower_subreg.
11628 * rtl.h (init_lower_subreg): Added declaration.
11629 * toplev.c (backend_init_target): Call initializer for lower-subreg
11631 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
11632 (default_target_lower_subreg): New variable.
11633 (this_target_lower_subreg): Likewise.
11634 (twice_word_mode, choices): New macros.
11635 (shift_cost, compute_splitting_shift, compute_costs)
11636 (init_lower_subreg): New functions.
11637 (resolve_simple_move): Add speed_p argument. Check choices.
11638 (find_pseudo_copy): Don't check the mode size here.
11639 (resolve_simple_move): Assert the mode size.
11640 (find_decomposable_shift_zext): Add speed_p argument and return
11641 a bool. Check choices.
11642 (resolve_shift_zext): Add comment.
11643 (dump_shift_choices, dump_choices): New functions.
11644 (decompose_multiword_subregs): Dump list of profitable
11645 transformations. Add code to skip non profitable transformations.
11646 Update calls to simple_move and find_decomposable_shift_zext.
11648 2012-05-01 Ian Bolton <ian.bolton@arm.com>
11649 Sameera Deshpande <sameera.deshpande@arm.com>
11650 Greta Yorsh <greta.yorsh@arm.com>
11652 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
11653 (thumb1_unexpanded_epilogue): ...this.
11654 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
11655 (thumb1_unexpanded_epilogue): ...this.
11656 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
11657 (thumb1_unexpanded_epilogue): ...this.
11659 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
11661 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
11662 comparing enumeration values. Update comments.
11664 2012-05-01 Alan Modra <amodra@gmail.com>
11667 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
11668 load_cr_save, add_crlr_cfa_restore): New functions.
11669 (rs6000_restore_saved_cr): Rename to..
11670 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
11671 (rs6000_emit_epilogue): Use new functions. Adjust condition
11672 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
11673 regs when using out-of-line restore only when shrink wrapping.
11675 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11677 PR middle-end/53136
11678 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
11679 calls to cgraph_node_name in xstrdup.
11680 (ipa_make_edge_direct_to_target): Ditto.
11681 * cgraph.c (dump_cgraph_node): Ditto.
11682 * tree-sra.c (convert_callers_for_node): Ditto.
11683 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
11684 * ipa-cp.c (perhaps_add_new_callers): Ditto.
11685 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
11686 (cgraph_materialize_all_clones): Ditto.
11687 * ipa-inline.c (report_inline_failed_reason): Ditto.
11688 (want_early_inline_function_p): Ditto.
11689 (edge_badness): Ditto.
11690 (update_edge_key): Ditto.
11691 (flatten_function): Ditto.
11692 (ipa_inline): Ditto.
11693 (inline_always_inline_functions): Ditto.
11694 (early_inline_small_functions): Ditto.
11696 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11699 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
11700 constraints 0 and 1.
11702 012-04-30 Jan Hubicka <jh@suse.cz>
11704 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
11705 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
11706 (cgraph_add_to_same_comdat_group): Remove.
11707 (cgraph_add_asm_node): Move to cgraphunit.c.
11708 (cgraph_make_decl_local): Move to symtab.c
11709 (cgraph_make_node_local_1): Update.
11710 (cgraph_can_remove_if_no_direct_calls_and): Update.
11711 (used_from_object_file_p): Update.
11712 (resolution_used_from_other_file_p): Move to symtab.c
11713 (cgraph_used_from_object_file_p): move to symtab.c
11714 (verify_cgraph_node): Verify same comdat groups.
11715 * cgraph.h (cgraph_asm_node): Rename to ...
11716 (asm_node): ... this one.
11717 (cgraph_asm_nodes): Rename to ...
11718 (asm_nodes): ... this one.
11719 (symtab_add_to_same_comdat_group): New function.
11720 (symtab_dissolve_same_comdat_group_list): New function.
11721 (symtab_used_from_object_file_p): Declare.
11722 (symtab_make_decl_local): Declare.
11723 (cgraph_add_to_same_comdat_group): Remove.
11724 (cgraph_add_asm_node): Remove.
11725 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
11727 (cgraph_finalize_compilation_unit): Rename to ...
11728 (finalize_compilation_unit): ... this one.
11729 (cgraph_optimize): Rename to ....
11730 (compile): ... this one.
11731 (add_asm_node): Declare.
11732 (fixup_same_cpp_alias_visibility): Declare.
11733 (cgraph_make_decl_local): Remove.
11734 (varpool_assemble_pending_decls): Rename to ...
11735 (varpool_output_variables): ... this one.
11736 (varpool_remove_unreferenced_decls): Remove.
11737 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
11738 (preserve_function_body_p): Make static.
11739 * toplev.c (compile_file): Update comments; update.
11740 * cgraphunit.c: Update comments.
11741 (cgraph_expand_all_functions): Rename to ...
11742 (expand_all_functions): ... this one; update.
11743 (cgraph_mark_functions_to_output): Rename to ...
11744 (mark_functions_to_output): ... this one; cleanup.
11745 (cgraph_output_pending_asms): Remove prototype.
11746 (asm_nodes, asm_last_node): New static vars.
11747 (cgraph_process_new_functions): Update.
11748 (cgraph_reset_node): Cleanup; add comment.
11749 (cgraph_add_new_function): Update.
11750 (cgraph_output_pending_asms): Rename to ...
11751 (output_asm_statements): ... this one.
11752 (add_asm_node): New function.
11753 (fixup_same_cpp_alias_visibility): New function based on code
11754 in cgraph_analyze_function.
11755 (cgraph_analyze_function): Use it.
11756 (cgraph_order_sort): Update.
11757 (cgraph_output_in_order): Update.
11758 (cgraph_function_versioning): Update.
11759 (cgraph_optimize): Rename to ...
11760 (compile): ... this one; initialize streamer hooks here.
11761 (cgraph_finalize_compilation_unit): Rename to ...
11762 (finalize_compilation_unit): ... this one; do not initialize streamer
11764 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
11765 * dwarf2out.c: Update ocmment.
11766 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
11767 * method.c (use_thunk): Likewise.
11768 * semantics.c (maybe_add_lambda_conv_op): Likewise.
11769 * decl2.c (maybe_emit_vtables): Likewise.
11770 (cp_write_global_declarations): Use finalize_compilation_unit.
11771 * parser.c (cp_parser_asm_definition): Use add_asm_node.
11772 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
11773 * c-decl.c (c_write_global_declarations): Use
11774 finalize_compilation_unit.
11775 * langhooks.c (write_global_declarations): Update.
11776 * ipa.c (cgraph_externally_visible_p): Update.
11777 (dissolve_same_comdat_group_list): Remove.
11778 (function_and_variable_visibility): Update.
11779 * symtab.c: Inlcude lto-streamer.h and rtl.h
11780 (ld_plugin_symbol_resolution_names): New.
11781 (symtab_add_to_same_comdat_group): New.
11782 (symtab_dissolve_same_comdat_group_list): New.
11783 (resolution_used_from_other_file_p): Move here from cgraph.c
11784 (symtab_used_from_object_file_p): New.
11785 (symtab_make_decl_local): New.
11786 * passes.c (register_pass): Update comments.
11787 * c-parser.c (c_parser_asm_definition): Update.
11788 * varpool.c (varpool_analyze_node): Use
11789 fixup_same_cpp_alias_visibility.
11790 (varpool_remove_unreferenced_decls): Make static.
11791 (varpool_assemble_pending_decls): Rename to ...
11792 (varpool_output_variables): ... this one; call
11793 varpool_remove_unreferenced_decls.
11794 (varpool_used_from_object_file_p): Remove.
11796 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
11799 * c-typeck.c (build_array_ref): Call
11800 convert_vector_to_pointer_for_subscript.
11801 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
11803 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11805 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
11806 to compile-time "mode == <MODE>mode" checks.
11807 (and splitter): Ditto.
11809 2012-04-30 Richard Henderson <rth@redhat.com>
11811 * config/arm/arm.md (UNSPEC_LL): New.
11812 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
11813 (arm_load_exclusivedi): Use %H0.
11815 2012-04-30 Jason Merrill <jason@redhat.com>
11817 * dwarf2out.c (comdat_symbol_id): Add const.
11818 (union die_symbol_or_type_node): Add const to die_symbol.
11819 (output_die_symbol, output_die, output_comp_unit): Adjust.
11821 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
11823 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
11824 * config/arm/neon.md (negdi2_neon): New insn.
11825 Also add splitters for core and NEON registers.
11827 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
11829 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
11830 (arm_print_operand): Add 'x' format.
11831 * config/arm/constraints.md (Dn): Allow const_int.
11832 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
11833 Use 'x' format to print constants.
11834 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
11835 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
11837 (movdi_vfp_cortexa8): Likewise.
11839 2012-04-30 Ian Bolton <ian.bolton@arm.com>
11840 Sameera Deshpande <sameera.deshpande@arm.com>
11841 Greta Yorsh <greta.yorsh@arm.com>
11843 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
11844 * config/arm/arm.c (ldm_stm_operation_p): New function.
11845 * config/arm/predicates.md (load_multiple_operation): Update predicate.
11846 (store_multiple_operation): Likewise.
11848 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
11849 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
11850 * config/arm/predicates.md (load_multiple_operation): Add arguments.
11851 (store_multiple_operation): Likewise.
11853 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
11855 * config/i386/i386.md (and<mode>3): Expand masking operations with
11856 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
11857 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
11859 2012-04-30 Dodji Seketeli <dodji@redhat.com>
11861 Add -Wvarargs option
11862 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
11863 argument for the various warning_at calls.
11864 * docs/invoke.texi: Update the documentation.
11866 2012-04-30 Dodji Seketeli <dodji@redhat.com>
11868 Switch -ftrack-macro-expansion=2 on by default.
11869 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
11872 Fix va_start related location
11873 * builtins.c (fold_builtin_next_arg): Unwinds to the first
11874 location in real source code.
11876 Make conversion warnings work on NULL with -ftrack-macro-expansion
11877 * input.h (expansion_point_location_if_in_system_header): Declare
11879 * input.c (expansion_point_location_if_in_system_header): Define it.
11881 Fix -Wuninitialized for -ftrack-macro-expansion
11882 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
11883 declaration. Use linemap_location_before_p for source locations.
11885 Strip "<built-in>" loc from displayed expansion context
11886 * input.c (expand_location_1): When expanding to spelling location
11887 in a context of a macro expansion, skip reserved system header
11888 locations. Update comments. * tree-diagnostic.c
11889 (maybe_unwind_expanded_macro_loc): Likewise.
11891 Make expand_location resolve to locus in main source file
11892 * input.c (expand_location_1): New. Takes a parameter to choose
11893 whether to resolve the location to spelling or expansion point.
11894 Was factorized from ...
11895 (expand_location): ... here.
11896 (expand_location_to_spelling_point): New. Implemented in terms of
11898 * diagnostic.c (diagnostic_build_prefix): Use the new
11899 expand_location_to_spelling_point instead of expand_location.
11901 Fix PCH crash on GTYed pointer-to-scalar field of a struct
11902 * gengtype.c (write_types_process_field): Force second argument of
11903 the call to the PCH object hierarchy walker to be 'x'.
11905 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
11907 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
11908 predicate to discriminate types.
11910 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
11912 * doc/invoke.texi (Wmissing-format-attribute): Document as an
11913 alias of Wsuggest-attribute=format.
11914 * c-typeck.c (convert_for_assignment): Replace
11915 Wmissing-format-attribute with Wsuggest-attribute=format.
11916 (digest_init): Likewise.
11918 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
11920 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
11921 * common.opt (Wmissing-noreturn): Alias of
11922 -Wsuggest-attribute=noreturn.
11924 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
11927 * config/cris/cris.md (andqu): New peephole2.
11928 (andu): Tweak head comment.
11930 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
11931 Steven Bosscher <steven@gcc.gnu.org>
11932 Maxim Kuvyrkov <maxim@codesourcery.com>
11934 PR tree-optimization/38785
11935 * common.opt (ftree-partial-pre): New option.
11936 * doc/invoke.texi: Document it.
11937 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
11938 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
11939 benefit speed path.
11940 (execute_pre): Use flag_tree_partial_pre.
11942 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11945 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
11948 2012-04-27 Ollie Wild <aaw@google.com>
11950 * doc/invoke.texi (Wliteral-suffix): Document new option.
11952 2012-04-27 Tom Tromey <tromey@redhat.com>
11954 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
11955 (dwarf_tag_name): Use get_DW_TAG_name.
11956 (dwarf_attr_name): Use get_DW_AT_name.
11957 (dwarf_form_name): Use get_DW_FORM_name.
11958 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
11960 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
11962 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
11963 arguments are -1 and 0, by negating the result of the conditional.
11965 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
11968 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
11970 2012-04-27 Richard Guenther <rguenther@suse.de>
11972 * tree-flow.h (is_hidden_global_store): Remove.
11973 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
11974 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
11975 (stmt_may_clobber_global_p): Likewise.
11976 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
11977 (stmt_may_clobber_global_p): Likewise.
11978 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
11979 stmt_may_clobber_global_p.
11980 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
11982 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
11984 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
11987 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
11988 reorganize some fields and update comments. Rename bit_test_uniq
11989 and bit_test_count to uniq resp. count. Remove bit_test_bb.
11990 (collect_switch_conv_info): New function, collects info about a
11991 GIMPLE_SWITCH into a struct switch_conv_info.
11992 (check_range): Simplify to use pre-recorded info. Fix think-o in
11993 range-branch ratio check.
11994 (check_process_case): Remove function.
11995 (check_all_empty_except_final): New function, verifies that all
11996 non-final basic blocks are empty.
11997 (process_switch): Simplify to use pre-recorded info. Call
11998 collect_switch_conv_info to do that. Assert that degenerate switch
11999 statements have been cleaned up.
12001 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
12003 PR middle-end/27139
12004 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
12006 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12009 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
12011 2012-04-27 Tom de Vries <tom@codesourcery.com>
12013 PR tree-optimization/51879
12014 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
12015 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
12017 (defs_to_varying): ... here. Don't set use_processed.
12018 (visit_reference_op_call): Handle gimple_vdef.
12019 Handle case that lhs is NULL_TREE.
12020 (visit_use): Use mark_use_processed. Handle calls with side-effect
12021 using visit_reference_op_call.
12023 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12025 * sched-deps.c (fixup_sched_groups): Rename to...
12026 (chain_to_prev_insn): ...this.
12027 (chain_to_prev_insn_p): New function.
12028 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
12030 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12032 * sched-int.h (_haifa_insn_data): Move priority_status.
12034 (INSN_MODEL_INDEX): New macro.
12035 * haifa-sched.c (insn_delay): New function.
12036 (sched_regno_pressure_class): Update commentary.
12037 (mark_regno_birth_or_death): Pass the liveness bitmap and
12038 pressure array as arguments, instead of using curr_reg_live and
12039 curr_reg_pressure. Only update the pressure if the bit in the
12040 liveness set has changed.
12041 (initiate_reg_pressure_info): Always trust the live-in set for
12042 SCHED_PRESSURE_MODEL.
12043 (initiate_bb_reg_pressure_info): Update call to
12044 mark_regno_birth_or_death.
12045 (dep_list_size): Take the list as argument.
12046 (calculate_reg_deaths): New function, extracted from...
12047 (setup_insn_reg_pressure_info): ...here.
12048 (MODEL_BAR): New macro.
12049 (model_pressure_data, model_insn_info, model_pressure_limit)
12050 (model_pressure_group): New structures.
12051 (model_schedule, model_worklist, model_insns, model_num_insns)
12052 (model_curr_point, model_before_pressure, model_next_priority):
12054 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
12055 (MODEL_INSN_INFO, MODEL_INSN): New macros.
12056 (model_index, model_update_limit_points_in_group): New functions.
12057 (model_update_limit_points, model_last_use_except): Likewise.
12058 (model_start_update_pressure, model_update_pressure): Likewise.
12059 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
12060 (model_excess_cost, model_dump_pressure_points): Likewise.
12061 (model_set_excess_costs): Likewise.
12062 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
12063 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
12064 schedule as an alternative tie-breaker. Update the call to
12066 (ready_sort): Call model_set_excess_costs.
12067 (update_register_pressure): Update call to mark_regno_birth_or_death.
12068 Rely on that function to check liveness rather than doing it here.
12069 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
12070 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
12071 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
12072 (model_record_pressure, model_record_pressures): New functions.
12073 (model_record_final_pressures, model_add_successors_to_worklist)
12074 (model_promote_predecessors, model_choose_insn): Likewise.
12075 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
12076 (model_start_schedule, model_finalize_pressure_group): Likewise.
12077 (model_end_schedule): Likewise.
12078 (schedule_insn): Say when we're scheduling the next instruction
12079 in the model schedule.
12080 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
12081 (queue_to_ready): Do not add instructions that are
12082 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
12083 Always allow the next instruction in the model schedule to be added.
12084 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
12085 and delay for SCHED_PRESSURE_MODEL too.
12086 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
12087 SCHED_PRIORITY_MODEL, but also take the DFA into account.
12088 (schedule_block): Call model_start_schedule and model_end_schedule.
12089 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
12090 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12091 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
12093 (sched_finish): Update accordingly.
12094 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12095 to SCHED_PRESSURE_MODEL.
12096 (add_jump_dependencies): Update call to dep_list_size.
12097 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
12098 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
12099 to SCHED_PRESSURE_MODEL.
12100 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
12101 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
12102 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
12103 handling to SCHED_PRESSURE_MODEL.
12105 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
12107 * common.opt (fsched-pressure-algorithm=): New option.
12108 * flag-types.h (sched_pressure_algorithm): New enum.
12109 * sched-int.h (sched_pressure_p): Replace with...
12110 (sched_pressure): ...this new variable.
12111 * haifa-sched.c (sched_pressure_p): Replace with...
12112 (sched_pressure): ...this new variable.
12113 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
12114 (update_reg_and_insn_max_reg_pressure, schedule_insn)
12115 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
12116 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
12117 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12118 (sched_analyze_insn): Likewise.
12119 * sched-rgn.c (schedule_region): Likewise.
12120 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
12122 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
12124 * PR middle-end/52997
12125 * ira.c (find_moveable_pseudos): Call resize_reg_info.
12127 PR middle-end/52940
12128 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
12129 * expr.c (convert_move): Honor unsignedp when extending partial int
12131 * genmodes.c (complete_mode): Don't clear component field of partial
12133 (emit_mode_inner): Don't emit it however.
12134 (calc_wider_mode): Partial int modes widen to their component.
12136 2012-04-26 David S. Miller <davem@davemloft.net>
12138 * config/sparc/niagara4.md: New file.
12139 * config/sparc/sparc.md: Include it.
12140 * config/sparc/sparc.c (niagara4_costs): New processor costs.
12141 (sparc_option_override): Use it.
12142 (sparc_use_sched_lookahead): Return 2 for niagara4.
12143 (sparc_issue_rate): Likewise.
12145 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
12146 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
12147 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
12148 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
12149 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
12150 alignaddrldi_vis): Set type to gsr.
12151 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
12152 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
12153 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
12154 v<vis3_shift_patname><mode>3, fmean16_vis,
12155 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
12156 fucmp<code>8<P:mode>_vis): Set type to fga.
12157 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
12158 * config/sparc/niagara.md: Likewise.
12159 * config/sparc/niagara2.md: Likewise.
12160 * config/sparc/ultra3.md: Likewise, and fix type matching for
12161 us3_ialuX reservation.
12163 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12165 * reload.c (find_reloads): Change the loop nesting when trying an
12166 alternative with swapped operands.
12168 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
12170 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
12171 comment. Delete unused parameter first_exp_point_map.
12172 (virt_loc_aware_diagnostic_finalizer): Update call.
12174 2012-04-26 Michael Hope <michael.hope@linaro.org>
12175 Richard Earnshaw <rearnsha@arm.com>
12177 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
12178 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
12179 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
12180 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
12182 2012-04-25 Sriraman Tallam <tmsriram@google.com>
12184 * doc/extend.texi: Document avx2 support.
12185 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
12187 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
12190 * config/cris/cris.md ("*andhi_lowpart_v32")
12191 ("*andqi_lowpart_v32"): Change first input-only operand from
12192 a (match_operand ...) to (match_dup 0). Drop alternatives with
12193 const_int-matching constraints for redundancy.
12194 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
12195 three-operand alternative.
12197 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12200 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
12201 instead expand it as zero extension.
12203 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
12206 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
12208 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12210 * common.opt (flag_debug_types_section): Default to 0.
12211 (dwarf_version): Default to 4.
12212 (dwarf_record_gcc_switches): Default to 1.
12213 (dwarf_strict): Default to 0.
12214 * toplev.c (process_options): Don't handle dwarf_strict
12215 or dwarf_version here.
12216 * config/vxworks.c (vxworks_override_options): Don't
12217 test whether dwarf_strict or dwarf_version are negative,
12218 instead test !global_options_set.x_dwarf_*.
12219 * config/darwin.c (darwin_override_options): Default to
12221 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
12222 and -fno-debug-types-section are now the default.
12224 2012-04-25 Jan Hubicka <jh@suse.cz>
12226 * cgraphunit.c: Update toplevel comment.
12227 (tree_rest_of_compilation): Merge into cgraph_expand_function.
12228 (cgraph_analyze_function): Make static.
12229 (cgraph_decide_is_function_needed): Make static.
12230 (cgraph_add_new_function): Use expand_function instead of
12231 rest_of_compilation.
12232 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
12233 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
12235 (cgraph_inline_p): Remove.
12236 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
12237 (init_cgraph): Add comment.
12238 * cgraphbuild.c (record_reference, mark_address, mark_load,
12239 mark_store): Do not call analyze_expr hook.
12240 * cgraph.c: Update toplevel comment.
12241 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
12242 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
12243 Move fere from cgraphunit.c
12244 (cgraph_mark_force_output_node): Move to cgraph.h
12245 * cgraph.h: Reorder so the comments match the function placement.
12246 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
12247 (cgraph_mark_force_output_node): Move here from cgraph.c
12248 * tree.c (free_lang_data): Do not clear analyze_expr hook.
12249 * ipa-inline-transform.c (preserve_function_body_p): New function.
12250 (inline_transform): Update.
12251 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
12252 * langhooks.h (lang_hooks_for_callgraph): Remove.
12253 (lang_hooks): Remove callgraph.
12254 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
12255 * varpool.c: Remove out of date comment.
12256 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
12257 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
12259 2012-04-25 Jan Hubicka <jh@suse.cz>
12261 PR middle-end/53089
12262 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
12263 forward declaration.
12264 (cgraph_finalize_function): Finalize them here.
12265 * symtab.c (dump_symtab): Dump ctors and dtors.
12267 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12269 PR middle-end/52979
12270 * stor-layout.c (get_best_mode): Don't return mode with bitsize
12271 larger than maxbits. Don't compute maxbits modulo align.
12272 Also check that unit bytes long store at bitpos / unit * unit
12273 doesn't affect bits beyond bitregion_end.
12274 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
12275 would not fit into bitregion_start ... bitregion_end + 1 bit region.
12276 (store_split_bit_field): Decrease unit close to end of bitregion_end
12277 if access is restricted in order to avoid mutual recursion.
12279 PR tree-optimization/53058
12280 * double-int.h (double_int_max_value, double_int_min_value): New
12282 * double-int.c (double_int_max_value, double_int_min_value): New
12284 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
12285 or GT_EXPR with double_int_max_value instead of double_int_mask.
12287 2012-04-25 Richard Guenther <rguenther@suse.de>
12289 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12290 * tree-vect-loop.c (vect_transform_loop): Adjust.
12291 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
12292 the maximum number of iterations for the epilogue loop.
12293 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
12295 2012-04-25 Jakub Jelinek <jakub@redhat.com>
12298 * c-typeck.c (set_nonincremental_init,
12299 set_nonincremental_init_from_string): Pass true instead of false
12300 as IMPLICIT to add_pending_init.
12302 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12304 * c-typeck.c (pop_init_level): Improve diagnostics.
12306 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
12308 * compare-elim.c (try_eliminate_compare): Also handle operands with
12309 implicit extensions.
12311 2012-04-25 Alan Modra <amodra@gmail.com>
12313 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
12314 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
12315 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
12316 (no_global_regs_above): Delete.
12317 (no_global_regs): New function.
12318 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
12319 value for load multiple test.
12320 (savres_routine_syms): Increase size.
12321 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
12322 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
12323 rather than a number of boolean flags. Update all callers.
12324 (rs6000_savres_routine_name): Generate vector save/restore names.
12325 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
12326 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
12327 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
12328 and using_store_multiple. Expand uses. Don't always use r11 as
12329 frame reg when needed for out-of-line saves. Set up initial offset
12330 for out-of-line vector saves when buying stack frame. Handle pointer
12331 reg setup for out-of-line fp save. Emit call to out-of-line vector
12332 save function. Choose r11 or r12 for vrsave reg when available for
12334 (rs6000_output_function_prologue): Don't emit .extern for ELF.
12335 (rs6000_emit_epilogue): Choose a better frame reg when restoring
12336 from back-chain to suit out-of-line vector restore functions. Emit
12337 call to out-of-line vector restore function. Adjust register used
12338 for cr restore. Tweak pointer register setup for gpr restore.
12339 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
12341 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
12342 (V_SAVE_INLINE): Define.
12343 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
12345 2012-04-25 Alan Modra <amodra@gmail.com>
12347 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
12348 out-of-line save/restore for large frames. Don't disable
12349 out-of-line saves on ABI_AIX when using static chain reg.
12350 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
12351 clobber static chain reg, and tweak for out-of-line gpr saves
12354 2012-04-25 Alan Modra <amodra@gmail.com>
12356 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
12357 (rs6000_emit_prologue): Use the above to catch register overlap.
12359 2012-04-25 Alan Modra <amodra@gmail.com>
12361 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
12362 decl. Move logic selecting update reg to callers. Update all callers.
12363 (rs6000_emit_allocate_stack): Add copy_off param.
12364 (emit_frame_save): Don't handle reg+reg addressing.
12365 (ptr_regno_for_savres): New function, extracted from..
12366 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
12367 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
12368 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
12369 frame offset adjustment for out-of-line save with copy from sp.
12370 Simplify condition controlling whether cr is saved early or
12371 late. Use ptr_regno_for_savres to verify correct reg is set
12372 up for out-of-line saves. Pass the actual pointer reg used to
12373 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
12374 function. Rearrange spe vars so code is similar to that
12375 elsewhere in this function. Don't update frame_off when spe
12376 save code will restore r11. Use emit_frame_save for spe and
12377 gpr saves. Consolidate darwin out-of-line gpr setup with that
12378 for other abis. Don't assume frame_offset is zero and frame
12379 reg is sp when setting up altivec reg saves, and calculate
12380 exact offset requirement.
12381 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
12382 spe restore code. Consolidate darwin out-of-line gpr setup
12383 with that for other abis.
12385 2012-04-25 Alan Modra <amodra@gmail.com>
12387 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
12388 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
12390 (emit_frame_save): Delete frame_ptr param. Rename total_size to
12392 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
12393 and emit_frame_save calls. Cope with possibly missing note.
12395 2012-04-24 Sriraman Tallam <tmsriram@google.com>
12397 * config/i386/i386.c (build_processor_model_struct): New function.
12398 (make_var_decl): New function.
12399 (fold_builtin_cpu): New function.
12400 (ix86_fold_builtin): New function.
12401 (make_cpu_type_builtin): New function.
12402 (ix86_init_platform_type_builtins): New function.
12403 (ix86_expand_builtin): Expand new builtins by folding them.
12404 (ix86_init_builtins): Make new builtins to detect CPU type.
12405 (TARGET_FOLD_BUILTIN): New macro.
12406 (IX86_BUILTIN_CPU_INIT): New enum value.
12407 (IX86_BUILTIN_CPU_IS): New enum value.
12408 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
12409 * config/i386/i386-builtin-types.def: New function type.
12410 * testsuite/gcc.target/builtin_target.c: New testcase.
12411 * doc/extend.texi: Document builtins.
12413 2012-04-24 Olivier Hainque <hainque@adacore.com>
12415 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
12416 * toplev.c (process_options): Default to dwarf_version 2.
12417 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
12418 and dwarf_version 2.
12420 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12422 * tree-pretty-print.h (default_tree_printer): Do not declare.
12423 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
12425 (default_tree_diagnostic_starter): Make static.
12426 (default_tree_printer): Move to here. Make static.
12427 (tree_diagnostics_defaults): New.
12428 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
12429 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
12430 * toplev.c: Do not include tree-pass.h.
12431 (default_tree_printer): Move from here.
12432 (general_init): Use tree_diagnostics_defaults.
12434 2012-04-24 Chao-ying Fu <fu@mips.com>
12436 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
12437 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
12438 * config/mips/gnu-user.h
12439 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
12440 (GNU_USER_TARGET_LINK_SPEC): New define.
12441 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
12442 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
12443 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
12444 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
12445 GNU_USER_TARGET_ENDFILE_SPEC.
12446 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
12447 (GNU_USER_TARGET_LINK_SPEC): New define.
12448 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
12449 * config/mips/linux-common.h: New file.
12451 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12454 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
12455 (altivec_build_resolved_builtin): Call fully_fold_convert.
12457 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
12460 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
12462 2012-04-24 Richard Guenther <rguenther@suse.de>
12464 PR tree-optimization/53085
12465 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
12468 2012-04-24 Richard Guenther <rguenther@suse.de>
12470 * tree-if-conv.c (main_tree_if_conversion): Move bb under
12473 2012-04-24 Jim Meyering <meyering@redhat.com>
12475 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
12476 absence of an define_enum call.
12478 2012-04-24 Richard Guenther <rguenther@suse.de>
12480 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
12481 the epilogue loop is not re-used as unvectorized version
12482 record the its maximum number of iterations.
12484 2012-04-24 Andrew Pinski <apinski@cavium.com>
12486 * tree-ssa-forwprop.c (simplify_bitwise_binary):
12487 Don't directly use def1/def2.
12489 2012-04-24 Richard Guenther <rguenther@suse.de>
12491 PR tree-optimization/53098
12492 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
12495 2012-04-24 Andrew Pinski <apinski@cavium.com>
12498 * tree-ssa-forwprop.c (defcodefor_name): New function.
12499 (simplify_bitwise_binary): Use defcodefor_name instead of manually
12500 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
12501 Simplify "(~X | Y) & X" to "X & Y" and
12502 "(~X & Y) | X" to "X | Y".
12504 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12506 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
12507 validate_change to add clobbers if IN_GROUP is nonzero.
12508 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
12509 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
12511 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
12513 * config/s390/s390.c (insn_invalid_p): Likewise.
12515 2012-04-24 Jakub Jelinek <jakub@redhat.com>
12517 PR middle-end/53084
12518 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
12519 (output_addressed_constants): Likewise.
12521 PR middle-end/52999
12522 * varasm.c (get_section): Don't ICE for section conflicts with
12523 built-in section kinds.
12525 2012-04-23 DJ Delorie <dj@redhat.com>
12527 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
12528 (LIBSTDCXX): Change to CPP2.
12530 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
12533 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
12536 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
12538 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
12539 (*addsi_2_zext): Ditto.
12540 (*add<mode>_3): Ditto.
12541 (*addsi_3_zext): Ditto.
12542 (*add<mode>_5): Ditto.
12544 2012-04-23 Andrew Pinski <apinski@cavium.com>
12546 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
12547 (C & B) to (A OP0) & B.
12549 2012-04-23 Martin Jambor <mjambor@suse.cz>
12551 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
12552 temporaries created for a bitfield (reverting revision 122014).
12554 2012-04-23 Richard Guenther <rguenther@suse.de>
12556 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
12557 the condition using is_gimple_condexpr and avoid the not necessary
12559 (set_prologue_iterations): Likewise.
12560 (vect_loop_versioning): Likewise.
12562 2012-04-23 Richard Guenther <rguenther@suse.de>
12564 PR tree-optimization/53070
12565 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
12566 (main_tree_if_conversion): Verify we succeeded in that.
12568 2012-04-23 Jan Hubicka <jh@suse.cz>
12570 * lto-symtab.c (lto_cgraph_replace_node): Do not call
12571 mark_reahcable_node.
12572 * cgraph.c (cgraph_remove_node): Do not clear reachable.
12573 (cgraph_mark_reachable_node): Remove.
12574 (cgraph_mark_force_output_node): Do not set reachable.
12575 (dump_cgraph_node): Do not dump reachable.
12576 (cgraph_create_virtual_clone): Do not set reachable.
12577 * cgraph.h (cgraph_node): Remove reachable flag.
12578 (varpool_node): Remove reachable flag.
12579 (cgraph_mark_if_needed): Remove.
12580 (cgraph_mark_reachable_node): Remove.
12581 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
12582 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
12584 (cgraph_add_new_function): Likewise.
12585 (cgraph_mark_if_needed): Remove.
12586 (cgraph_analyze_function): Do not set target as reachable.
12587 (process_function_and_variable_attributes): Do not care about
12589 (cgraph_analyze_functions): Do not set reachable flags.
12590 (cgraph_mark_functions_to_output): Do not check reachability.
12591 (cgraph_copy_node_for_versioning): Do not set reachable flag.
12592 (dbxout_expand_expr): Update.
12593 * c-decl.c (merge_decls): Do not track changed externs.
12594 * ipa.c: Include pointer-set.h
12595 (enqueue_cgraph_node): Use reachable pointer set.
12596 (process_references): Likewise.
12597 (cgraph_remove_unreachable_nodes): Likewise.
12598 (whole_program_function_and_variable_visibility): Do not recompute
12600 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
12602 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
12604 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
12606 2012-04-23 Richard Guenther <rguenther@suse.de>
12609 * c-typeck.c (build_binary_op): Fix typo.
12611 2012-04-23 Jakub Jelinek <jakub@redhat.com>
12613 PR tree-optimizations/52891
12614 * tree-vect-patterns.c (adjust_bool_pattern): Use
12615 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
12616 but with non-standard precision.
12618 2012-04-22 Jan Hubicka <jh@suse.cz>
12620 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
12623 2012-04-22 Jan Hubicka <jh@suse.cz>
12625 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
12626 * cgraphbuild.c (record_reference, record_type_list, mark_address,
12627 mark_load, mark_store): Do not mark varpool nodes as needed.
12628 * cgraph.c (cgraph_new_nodes): Remove.
12629 (cgraph_create_function_alias): Do not mark nodes as reachable.
12630 (cgraph_add_thunk): Likewise.
12631 (cgraph_mark_reachable_node): Do not manage the queue.
12632 * cgraph.h (cgraph_node): Remove next_needed.
12633 (varpool_nodes_queue): Remove next_needed and prev_needed.
12634 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
12635 (cgraph_new_nodes): Declare.
12636 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
12637 (varpool_analyze_pending_decls): Remove.
12638 (varpool_analyze_node): New.
12639 (varpool_mark_needed_node): Remove.
12640 (varpool_first_variable, varpool_next_variable): New inlines.
12641 (varpool_first_static_initializer, varpool_next_static_initializer):
12643 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
12644 (varpool_first_defined_variable): New inline.
12645 (varpool_next_defined_variable): New inline
12646 (FOR_EACH_VARIABLE): Reimplement.
12647 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
12648 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
12650 * cgraphunit.c (cgraph_new_nodes): Declare here.
12651 (enqueue_node): New function.
12652 (cgraph_process_new_functions): update for new
12653 node set; when constructing cgraph enqueue node for processing.
12654 (cgraph_add_new_function): Use new node set.
12655 (process_function_and_variable_attributes): Do not set varpool needed
12657 (referred_to_p): New function.
12658 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
12659 when varpool is in construction.
12660 (cgraph_analyze_functions): Rewrite.
12661 (cgraph_expand_all_functions): Update.
12662 (cgraph_output_in_order): Do not analyze pending decls; do not set
12664 (cgraph_optimize): Do not analyze pending decls.
12665 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
12666 in other partition; do not mark node as needed.
12667 * dwarf2out.c (reference_to_unused): Use analyzed flag.
12668 (premark_types_used_by_global_vars_helper): Likewise.
12669 * ipa.c (process_references): Do not call varpool_mark_needed_node.
12670 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
12672 (function_and_variable_visibility): Do not mark node as needed.
12673 (whole_program_function_and_variable_visibility): Likewise.
12674 * Makefile.in (gt-varpool.h): No longer needed.
12675 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
12676 (ipa_write_summaries): Do not use needed flag.
12677 * varpool.c: Do not include gt-varpool.h
12678 (x_varpool_nodes_queue, x_varpool_last_needed_node,
12679 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
12680 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
12682 (varpool_remove_node): Do not update the lists.
12683 (dump_varpool_node): Do not dump needed flag.
12684 (varpool_enqueue_needed_node): Remove.
12685 (varpool_mark_needed_node): Remove.
12686 (varpool_reset_queue): Remove.
12687 (varpool_finalize_decl): Move to cgraphunit.c
12688 (varpool_analyze_node): New functions based on former
12689 varpool_analyze_pending_decls.
12690 (varpool_analyze_pending_decls): Remove.
12691 (varpool_assemble_decl): Do not update the lists.
12692 (enqueue_node): New function.
12693 (varpool_remove_unreferenced_decls): Rewrite.
12694 (varpool_empty_needed_queue): Remove.
12695 (add_new_static_var): Do not mark node as needed.
12696 (varpool_create_variable_alias): Handle expansion state
12698 * except.c (output_ttype): Do not mark node as needed.
12699 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
12700 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
12702 * tree-switch-conversion.c (build_one_array): Likewise.
12704 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
12707 * doc/invoke.texi (pedantic): Rename to Wpedantic.
12708 * common.opt (Wpedantic): New.
12709 (pedantic): Alias Wpedantic.
12710 * diagnostic.c (warning_at): Likewise.
12711 * c-decl.c (diagnose_mismatched_decls): Likewise.
12712 (build_array_declarator): Likewise.
12713 (mark_forward_parm_decls):
12714 (check_bitfield_type_and_width): Likewise.
12715 (grokdeclarator): Likewise.
12716 (grokfield): Likewise.
12717 (finish_struct): Likewise.
12718 (build_enumerator): Likewise.
12719 (store_parm_decls_oldstyle): Likewise.
12720 (declspecs_add_qual): Likewise.
12721 (declspecs_add_type): Likewise.
12722 (finish_declspecs): Likewise.
12723 * c-typeck.c (composite_type): Likewise.
12724 (comp_target_types): Likewise.
12725 (build_array_ref): Likewise.
12726 (pointer_diff): Likewise.
12727 (build_unary_op): Likewise.
12728 (build_conditional_expr): Likewise.
12729 (build_c_cast): Likewise.
12730 (convert_for_assignment): Likewise.
12731 (maybe_warn_string_init): Likewise.
12732 (digest_init): Likewise.
12733 (pop_init_level): Likewise.
12734 (set_init_index): Likewise.
12735 (c_finish_goto_label): Likewise.
12736 (c_finish_return): Likewise.
12737 (do_case): Likewise.
12738 (build_binary_op): Likewise.
12739 * c-parser.c (static): Likewise.
12740 (c_parser_external_declaration): Likewise.
12741 (c_parser_declaration_or_fndef): Likewise.
12742 (c_parser_static_assert_declaration_no_se): Likewise.
12743 (c_parser_enum_specifier): Likewise.
12744 (c_parser_struct_or_union_specifier): Likewise.
12745 (c_parser_struct_declaration): Likewise.
12746 (c_parser_alignas_specifier): Likewise.
12747 (c_parser_braced_init): Likewise.
12748 (c_parser_initelt): Likewise.
12749 (c_parser_compound_statement_nostart): Likewise.
12750 (c_parser_conditional_expression): Likewise.
12751 (c_parser_alignof_expression): Likewise.
12752 (c_parser_postfix_expression): Likewise.
12753 (c_parser_postfix_expression_after_paren_): Likewise.
12754 (c_parser_objc_class_instance_variables): Likewise.
12755 (c_parser_objc_method_definition): Likewise.
12756 (c_parser_objc_methodprotolist): Likewise.
12758 2012-04-22 Ian Lance Taylor <iant@google.com>
12760 * godump.c (go_output_typedef): Dump size of structs.
12762 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
12764 Correcting transform_to_exit_first_loop + fix to PR46886
12765 * tree-parloops.c (transform_to_exit_first_loop): Remove
12766 setting of number of iterations according to the loop pattern.
12767 Duplicate from entry to exit->src instead of loop->latch.
12768 (pallelize_loops): Remove the condition preventing do-while loops.
12769 * tree-cfg.c (bool bb_in_region_p): New.
12770 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
12771 Adjust redirection of the duplicated iteration.
12773 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
12776 * rtl.def (ADDRESS): Use "i" rather than "w".
12777 * rtl.h (find_base_term): Delete.
12778 (may_be_sp_based_p): Declare.
12779 * rtl.c (rtx_code_size): Remove ADDRESS special case.
12780 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
12781 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
12782 * alias.c: ...here.
12783 (find_base_term): Make static.
12784 (may_be_sp_based_p): New function.
12785 * dse.c (record_store): Use it.
12786 * store-motion.c (store_killed_in_insn): Likewise.
12788 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
12790 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
12792 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12795 * c-typeck.c (inform_declaration): New.
12796 (build_function_call_vec): Do not pretty-print
12797 expressions when caret is enabled.
12798 (convert_arguments): Use inform_declaration.
12800 2012-04-20 Jim Meyering <meyering@redhat.com>
12802 * genmodes.c (make_complex_modes): Don't truncate a mode name of
12803 length 7 or more when prepending a "C". Suggested by Richard Guenther.
12805 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12807 PR rtl-optimization/44214
12808 * fold-const.c (exact_inverse): New function.
12809 (fold_binary_loc): Fold vector and complex division by constant into
12810 multiply by recripocal with flag_reciprocal_math; fold vector division
12811 by constant into multiply by reciprocal with exact inverse.
12813 2012-04-20 Jan Hubicka <jh@suse.cz>
12815 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
12817 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
12818 (cgraph_remove_node): Update.
12819 (cgraph_mark_needed_node): Remove.
12820 (cgraph_mark_force_output_node): New.
12821 (dump_cgraph_node): Do not dump needed flag.
12822 (cgraph_node_cannot_be_local_p_1): Update.
12823 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
12824 * cgraph.h (symtab_node_base): Add force_output flag.
12825 (cgraph_node): Remove needed flag.
12826 (varpool_node): Remove force_output flag.
12827 (cgraph_mark_needed_node): Remove.
12828 (cgraph_mark_force_output_node): New.
12829 (cgraph_only_called_directly_or_aliased_p,
12830 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
12831 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
12832 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
12833 (cgraph_add_new_function): Update.
12834 (cgraph_mark_if_needed): Update.
12835 (verify_cgraph_node): Update.
12836 (cgraph_analyze_function): Alias target is reachable.
12837 (process_function_and_variable_attributes): Update: externally_visible
12838 flag makes function reachable.
12839 (cgraph_analyze_functions): Update dumping.
12840 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12841 input_overwrite_node, input_varpool_node): Update streaming.
12842 * lto-streamer-out.c (produce_symtab): Use force_output.
12843 * ipa.c (process_references): Weakrefs must be processed.
12844 (cgraph_remove_unreachable_nodes): Likewise; update for new
12846 (varpool_externally_visible_p): Weakrefs are externally visible
12847 even if they are not.
12848 (function_and_variable_visibility): Update; when processing alias
12849 pair force the targets to be output.
12850 (whole_program_function_and_variable_visility): Use
12851 mark_reachable_node.
12852 * trans-mem.c (ipa_tm_mark_needed_node): Remove
12853 (ipa_tm_mark_force_output_node): New function.
12854 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
12855 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
12857 * varasm.c (mark_decl_referenced): Update.
12858 (find_decl_and_mark_needed): Remove.
12859 (find_decl): New function.
12860 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
12861 alias targets as needed.
12862 (dump_tm_clone_pairs): Update.
12863 * tree-inline.c (copy_bb): Update check.
12864 * symtab.c (dump_symtab_base): Dump force_output.
12865 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
12866 * passes.c (execute_todo): Fix dumping.
12867 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
12868 (varpool_analyze_pending_decls): Alias target is reachable.
12869 (varpool_create_variable_alias): Finalize weakrefs.
12871 2012-04-20 Jakub Jelinek <jakub@redhat.com>
12874 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
12875 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
12876 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
12877 macros instead of constants.
12878 * dse.c (record_store): Check for SP ADDRESS by comparing
12879 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
12880 XEXP to be stack_pointer_rtx.
12882 2012-04-20 Richard Guenther <rguenther@suse.de>
12884 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
12885 update_call_from_tree when propagating into a call.
12887 2012-04-20 Alan Modra <amodra@gmail.com>
12889 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
12890 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
12891 sp_offset to frame_off. Move world save code earlier.
12893 2012-04-20 Richard Guenther <rguenther@suse.de>
12895 PR tree-optimization/53050
12896 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
12897 Do only one transform on COND_EXPRs at the same time.
12899 2012-04-19 Jan Hubicka <jh@suse.cz>
12901 * symtab.c (dump_symtab_base): Revert accidental checkin.
12903 2012-04-20 Alan Modra <amodra@gmail.com>
12906 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
12907 static chain, set REST_INLINE_FPRS too.
12909 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
12911 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
12914 2012-04-20 Richard Guenther <rguenther@suse.de>
12916 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
12917 loops that can never run more often than the vectorization factor.
12919 2012-04-19 Jan Hubicka <jh@suse.cz>
12921 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
12923 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
12925 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
12927 2012-04-19 Jim Meyering <meyering@redhat.com>
12929 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
12930 We verified above that the string(including trailing NUL) fits in buf,
12931 so just use memcpy.
12933 2012-04-19 Richard Guenther <rguenther@suse.de>
12935 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
12936 for dumping DECL_SECTION_NAME.
12938 2012-04-19 Michael Matz <matz@suse.de>
12940 PR middle-end/52977
12941 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
12942 (struct tree_vector): Adjust GTY length.
12943 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
12945 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
12947 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
12948 caller emitted the length calulation already.
12949 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
12950 before handling any of the fields for structs.
12952 2012-04-19 Richard Guenther <rguenther@suse.de>
12954 PR tree-optimization/53031
12955 * tree-vrp.c (adjust_range_with_scev): Revert back to
12956 using max_loop_iterations.
12958 2012-04-19 Michael Matz <matz@suse.de>
12960 * diagnostic.c (emit_diagnostic): Move va_end call after user
12962 (warning, warning_at, pedwarn, permerror): Ditto.
12964 2012-04-19 Richard Guenther <rguenther@suse.de>
12966 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
12969 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
12972 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
12973 the case *(X+const).
12975 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12977 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
12979 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
12982 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
12983 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
12985 2012-04-19 Richard Guenther <rguenther@suse.de>
12987 PR rtl-optimization/44688
12988 * loop-iv.c (determine_max_iter): Only return max_iter.
12989 (iv_number_of_iterations): Also use the recorded loop bound
12990 on the maximum number of iterations.
12991 * loop-unroll.c (decide_unroll_runtime_iterations): Use
12992 max_iter to avoid unrolling loops that do not roll.
12993 (decide_unroll_stupid): Likewise.
12995 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
12997 * targhooks.c (default_case_values_threshold): Fix code style nit.
12999 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
13000 case range and type folding from here...
13001 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
13002 type, as documented in tree.def.
13004 2012-04-18 Jan Hubicka <jh@suse.cz>
13006 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
13008 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
13009 cgraph hash and same comdat groups.
13010 (cgraph_optimize): Verify symbol table.
13011 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
13012 (dissolve_same_comdat_group_list): Work on symtab nodes.
13013 (function_and_variable_visibility): Dissolve variable same comdat group
13015 * symtab.c: Include timevar.h
13016 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
13018 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
13020 * tree-switch-conversion.c (info): Remove global pass info.
13021 (check_range, check_process_case, check_final_bb, create_temp_arrays,
13022 free_temp_arrays, gather_default_values, build_constructors,
13023 array_value_type, build_one_array, build_arrays, gen_def_assigns,
13024 fix_phi_nodes, gen_inbound_check): Pass info around from ...
13025 (process_switch): ... here. Unify message format. Return a const
13026 char pointer to the failure reason message.
13027 (do_switchconv): Unify message format. Update process_switch usage.
13029 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
13030 * tree-cfg.c (edge_to_cases): Fix documentation.
13032 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
13034 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
13036 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13038 PR tree-optimization/52976
13039 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
13040 (possibly_move_powi): New function.
13041 (rewrite_expr_tree): Call possibly_move_powi.
13042 (rewrite_expr_tree_parallel): Likewise.
13043 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
13044 call add_to_ops_vec instead.
13046 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13048 PR tree-optimization/52976
13049 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
13050 (decrement_power): Likewise.
13051 (propagate_op_to_single_use): Likewise.
13052 (zero_one_operation): Handle __builtin_pow* calls in linearized
13053 expression trees; factor logic into propagate_op_to_single_use.
13054 (undistribute_ops_list): Allow operands with repeat counts > 1.
13056 2012-04-18 Richard Guenther <rguenther@suse.de>
13058 PR tree-optimization/44688
13059 * cfgloop.h (record_niter_bound): Declare.
13060 * tree-ssa-loop-niter.c (record_niter_bound): Export.
13061 Update the estimation with the upper bound here...
13062 (estimate_numbers_of_iterations_loop): ... instead of here.
13063 Do not forcefully reset a recorded upper bound.
13064 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
13065 Record the maximum number of loop iterations of the prologue loop.
13067 2012-04-18 Jan Hubicka <jh@suse.cz>
13069 * lto-symtab.c (lto_cgraph_replace_node): Update.
13070 * cgraphbuild.c (record_reference, record_type_list,
13071 record_eh_tables, mark_address, mark_load, mark_store): Update.
13072 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
13073 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
13075 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
13076 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
13077 * reload.c: Fix typo in comment.
13078 * rtlanal.c: Likewise.
13079 * tree-emultls.c (gen_emutls_addr): Update.
13080 * ipa-reference.c (analyze_function): Update.
13081 * cgraphunit.c (cgraph_analyze_function,
13082 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
13084 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
13085 (ipa_remove_reference): Likewise.
13086 (ipa_remove_all_refering): Rename to ...
13087 (ipa_remove_all_referring): ... this one; update.
13088 (ipa_dump_references): Update.
13089 (ipa_dump_referring): Update.
13090 (ipa_clone_references): Update.
13091 (ipa_clone_refering): Rename to ...
13092 (ipa_clone_referring): ... this one; update.
13093 (ipa_ref_cannot_lead_to_return): Update.
13094 (ipa_ref_has_aliases_p): Update.
13095 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
13097 (ipa_ref_type): Remove.
13098 (ipa_ref_ptr_u): Remove.
13099 (ipa_ref): Remove referencing, refered, refered_index, refering_type
13100 and refered_type; add referring, referred and referred_index.
13101 (ipa_ref_list): Rename refering to referring.
13102 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
13103 ipa_clone_references, ipa_clone_referring): Update prototypes.
13104 * lto-cgraph.c (referenced_from_other_partition_p): Update.
13105 (lto_output_ref): Update.
13106 (add_references): Update.
13107 (input_varpool_node): Update.
13108 (input_refs): Update.
13109 * ipa-ref-inline.h (ipa_ref_node): Update.
13110 (ipa_ref_varpool_node): Update.
13111 (ipa_ref_referring_node): Update.
13112 (ipa_ref_referring_varpool_node): Update.
13113 (ipa_ref_referring_ref_list): Update.
13114 (ipa_ref_referred_ref_list): Update.
13115 (ipa_ref_list_first_referring): Update.
13116 (ipa_empty_ref_list): Update.
13117 (ipa_ref_list_refering_iterate): Rename to ...
13118 (ipa_ref_list_referring_iterate): ... this one.
13119 * cse.c: Update comment.
13120 * ipa-utils.c (ipa_reverse_postorder): Update.
13121 * tree-ssa-alias.c: Update.
13122 * ipa-inline.c (reset_edge_caches): Update.
13123 (update_caller_keys): Update.
13124 * ipa-inline.h: Update comments.
13125 * jump.c: Update comment.
13126 * alias.c: Likewise.
13127 * ipa.c (process_references): Update.
13128 (cgraph_remove_unreachable_nodes): Likewise.
13129 (ipa_discover_readonly_nonaddressable_var): Likewise.
13130 (cgraph_address_taken_from_non_vtable_p): Likewise.
13131 * trans-mem.c (ipa_tm_execute): Update.
13132 * simplify-rtx.c: Fix comment.
13133 * rtl.c: Fix comment.
13134 * symtab.c (symtab_unregister_node): Update.
13135 * varpool.c (dump_varpool_node): Update.
13136 (varpool_analyze_pending_decls): Update.
13137 (assemble_aliases): Update.
13138 (varpool_for_node_and_aliases): Update.
13140 2012-04-18 Richard Guenther <rguenther@suse.de>
13142 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
13143 use_undefined_p parameter.
13144 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13145 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13147 (estimate_numbers_of_iterations): Likewise.
13148 (estimated_loop_iterations): Adjust.
13149 (max_loop_iterations): Likewise.
13150 (scev_probably_wraps_p): Likewise.
13151 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13152 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
13153 not max_loop_iterations.
13154 (execute_vrp): Remove explicit number of iterations estimation.
13156 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
13158 * config/i386/linux-common.h: New.
13160 * config.gcc: Add i386/linux-common.h before
13161 all i386/linux.h and i386/linux64.h usages.
13163 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
13164 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
13165 * config/i386/gnu-user64.h: Likewise.
13167 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
13168 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
13169 (GNU_USER_TARGET_MATHFILE_SPEC): New.
13170 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
13172 2012-04-18 Jan Hubicka <jh@suse.cz>
13174 * cgraph.c (cgraph_node_name): Remove.
13175 (dump_cgraph_node): Use dump_symtab_base; reformat.
13176 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
13177 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
13179 (cgraph_node_name, varpool_node_name): Remove.
13180 (cgraph_node_asm_name, varpool_node_asm_name,
13181 cgraph_node_name, varpool_node_name): New.
13182 * tree-pass.h (TODO_dump_cgraph): Rename to ...
13183 (TODO_dump_symtab): ... this one.
13184 * ipa-cp (pass_ipa_cp): Update.
13185 * ia-reference.c (generate_summary, read_write_all_from_decl,
13186 propagate, ipa_reference_read_optimization_summary): Update.
13187 * cgraphunit.c (cgraph_analyze_functions): Update.
13188 (cgraph_optimize): Update.
13189 * ipa-ref.c (ipa_dump_references): Update.
13190 (ipa_dump_refering): Update.
13191 * ipa-inline.c (pass_ipa_inline): Update.
13192 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
13193 * ipa.c (pass_ipa_function_visibility,
13194 pass_ipa_whole_program_visibility): Update.
13195 * tree-sra.c (pass_early_ipa_sra): Update.
13196 * symtab.c: Include langhooks.h
13197 (symtab_node_asm_name): New.
13198 (symtab_node_name): New.
13199 (symtab_type_names): New static var.
13200 (dump_symtab_base): New.
13201 (dump_symtab_node, dump_symtab): New.
13202 (debug_symtab_node, debug_symtab): New.
13203 * tree-ssa-structalias.c: Dump symbol table.
13204 * pases.c (execute_todo): Handle TODO_dump_symtab instead
13205 of TODO_dump_cgraph.
13206 * varpoo.c (varpool_node_name): Remove.
13207 (dump_varpool_node): Use dump_symtab_base; reformat.
13209 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13211 * doc/invoke.texi (Language Independent Options): @item should be
13214 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
13217 * rtl.c (rtx_code_size): Handle ADDRESS.
13219 2012-04-17 Tom de Vries <tom@codesourcery.com>
13221 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
13222 is not a STMT_LIST.
13224 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
13227 * config/i386/sync.md (atomic_<code><mode>): Rename to
13228 atomic_<logic><mode>.
13230 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
13232 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
13233 * alias.c (reg_base_value): Expand and update comment.
13234 (arg_base_value): New variable.
13235 (unique_id): Move up file.
13236 (unique_base_value, unique_base_value_p, known_base_value_p): New.
13237 (find_base_value): Use arg_base_value and known_base_value_p.
13238 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
13239 (find_base_term): Use known_base_value_p.
13240 (base_alias_check): Use unique_base_value_p.
13241 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
13242 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
13244 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
13246 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
13248 2012-04-17 Michael Matz <matz@suse.de>
13250 PR tree-optimization/18437
13251 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
13252 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
13253 (vect_check_strided_load): Declare.
13254 * tree-vect-data-refs.c (vect_check_strided_load): New function.
13255 (vect_analyze_data_refs): Use it to accept strided loads.
13256 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
13258 2012-04-17 Richard Guenther <rguenther@suse.de>
13260 PR middle-end/53011
13261 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
13262 loops when redirecting an entry or latch edge.
13264 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
13266 * sel-sched.c (sel_global_init): Revert previous change.
13268 2012-04-17 Richard Guenther <rguenther@suse.de>
13270 * tree-flow.h (array_at_struct_end_p): Move declaration ...
13271 * tree.h (array_at_struct_end_p): ... here.
13272 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
13273 * expr.c (array_at_struct_end_p): ... here. Rewrite.
13275 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
13277 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
13278 COST_TABLE): Remove.
13279 (estimate_case_costs): Remove.
13280 (expand_case): Do not call estimate_case_costs
13281 to set use_cost_table.
13282 (balance_case_nodes): Do not use use_cost_table.
13284 2012-04-16 Jan Hubicka <jh@suse.cz>
13286 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
13287 (hash_node, eq_node): Remove.
13288 (cgraph_create_node): Do not handle hashtable.
13289 (cgraph_get_node): Remove.
13290 (cgraph_insert_node_to_hashtable): Remove.
13291 (hash_node_by_assembler_name): Remove.
13292 (eq_assembler_name): Remove.
13293 (cgraph_node_for_asm): Rewrite.
13294 (cgraph_find_replacement_node): Break out from ...
13295 (cgraph_remove_node): ... here; do not maintain hashtables.
13296 (change_decl_assembler_name): Remove.
13297 (cgraph_clone_node): Do not maintain hashtables.
13298 * cgraph.h (const_symtab_node): New typedef.
13299 (cgraph_insert_node_to_hashtable): Remove.
13300 (symtab_get_node, symtab_node_for_asm,
13301 symtab_insert_node_to_hashtable): Declare.
13302 (cgraph_find_replacement_node): Declare.
13303 (cgraph_get_node, varpool_get_node): Turn into inlines.
13304 (cgraph, varpool): Work sanely on NULL pointers.
13305 (FOR_EACH_SYMBOL): New walker.
13306 * ipa-inline-transform.c (save_inline_function_body): Use
13307 symtab_insert_node_to_hashtable.
13308 * symtab.c: Include ggc.h and diagnostics.h
13309 (symtab_hash, assembler_name_hash): New static vars;
13310 (hash_node, eq_node, hash_node_by_assembler_name,
13311 eq_assembler_name, insert_to_assembler_name_hash,
13312 unlink_from_assembler_name_hash): New.
13313 (symtab_register_node): Update hashtables.
13314 (symtab_insert_node_to_hashtable): New.
13315 (symtab_unregister_node): Update hashtables.
13316 (symtab_get_node): New.
13317 (symtab_node_for_asm): New.
13318 (change_decl_assembler_name): New.
13319 * Makefile.in (symtab.o): Needs GTY.
13320 * varpool.c (varpool_hash): Remove.
13321 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
13322 (varpool_node): Rewrite using varpool_get_node.
13323 (varpool_remove_node): DO not maintain hashtables.
13324 (varpool_node_for_asm): Rewrite.
13326 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
13328 * doc/invoke.texi: Copy-edit to put verbs in the present tense
13329 when describing the current behavior of GCC.
13331 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
13333 * genemit.c (gen_exp): Remove ADDRESS handling.
13334 * genoutput.c (scan_operands): Likewise.
13335 * genpeep.c (match_rtx): Likewise.
13336 * genrecog.c (add_to_sequence): Likewise.
13338 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
13340 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
13342 2012-04-16 Martin Jambor <mjambor@suse.cz>
13344 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
13347 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
13350 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
13351 hints for 'A' operand types.
13353 2012-04-16 Jan Hubicka <jh@suse.cz>
13355 * cgraph.h (symtab_node_base): Add next and previous pointers.
13356 (cgraph_node): Remove next and preivous pointers.
13357 (varpool_node): Likewise; remove next/previous GTY marker;
13358 it is not type safe.
13359 (symtab_node_def): Update GTY marker
13360 (x_cgraph_nodes, cgraph_nodes): Remove.
13361 (symtab_nodes): New function.
13362 (cgraph_order): Rename to ...
13363 (symtab_order): ... this one.
13364 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
13366 (x_varpool_nodes, varpool_nodes): Remove.
13367 (FOR_EACH_STATIC_VARIABLE): Update.
13368 (symtab_function_p, symtab_variable_p): New function.
13369 (FOR_EACH_VARIABLE): Update.
13370 (varpool_first_variable, varpool_next_variable): New functions.
13371 (FOR_EACH_VARIABLE): Update.
13372 (cgraph_first_defined_function): Update.
13373 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
13374 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
13375 (cgraph_first_function, cgraph_next_function): New.
13376 (FOR_EACH_FUNCTION): Update.
13377 (cgraph_first_function_with_gimple_body,
13378 cgraph_next_function_with_gimple_body): Update.
13379 * symtab.c: New file.
13380 * cgraph.c: Update copyright dates.
13381 (x_cgraph_nodes, cgraph_order): Remove.
13382 (NEXT_FREE_NODE): Update.
13383 (SET_NEXT_FREE_NODE): New.
13384 (cgraph_create_node_1): Remove common code.
13385 (cgraph_create_node): Remove common code; call symtab_register_node.
13386 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
13387 (cgraph_add_asm_node): Update.
13388 (cgraph_clone_node): Register new node.
13389 * cgraphunit.c (process_function_and_variable_attributes): Update.
13390 (cgraph_analyze_functions): Update.
13391 (cgraph_analyze_functions): Update.
13392 (cgraph_output_in_order): Update.
13393 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
13395 * ipa-inline.c (recursive_inlining): Update.
13396 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
13397 * ipa.c (cgraph_remove_unreachable_nodes): Update.
13398 * Makefile.in: Add symtab.o
13399 * varpool.c (x_varpool_nodes): Remove
13400 (varpool_node): Remove common code; call symtab_register_node.
13401 (varpool_remove_node): Remove common code; call symtab_unregister_node.
13403 2012-04-16 Richard Guenther <rguenther@suse.de>
13405 PR middle-end/52977
13406 * tree.h (VECTOR_CST_NELTS): Adjust.
13407 (struct tree_vector): Add explicit length field.
13408 (make_vector_stat): Declare.
13409 (make_vector): Define.
13410 * tree.c (make_vector_stat): New function.
13411 (build_vector_stat): Use it.
13412 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
13414 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13416 PR tree-optimization/52976
13417 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
13418 (undistribute_ops_list): Ops with repeat counts aren't eligible for
13420 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
13422 2012-04-16 Jan Hubicka <jh@suse.cz>
13424 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
13426 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
13427 walkers to walk cgraph and varpool.
13428 * cgraph.c (cgraph_node_for_asm): Likewise.
13429 (dump_cgraph): Likewise.
13430 * value-prof.c (init_node_map): Likewise.
13431 * tree.c (free_lang_data_in_cgraph): Likewise.
13432 * tree-emutls.c: (ipa_lower_emutls): Likewise.
13433 * ipa-reference.c (generate_summary, propagate): Likewise.
13434 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
13435 cgraph_mark_functions_to_output, cgraph_output_in_order,
13436 output_weakrefs, cgraph_materialize_all_clones,
13437 cgraph_optimize): Likewise.
13438 * lto-cgraph.c (merge_profile_summaries): Likewise.
13439 (input_cgraph): Likewise.
13440 * ipa-pure-const.c (generate_summary): Likewise.
13441 (propagate): Likwise.
13442 * ipa-utils.c (ipa_reduced_postorder): Likewise.
13443 (ipa_free_postorder_info): Likewise.
13444 (ipa_reverse_postorder): Likewise.
13445 * ipa-inline.c (ipa_inline): Likewise.
13446 * matrix-reorg.c (find_matrices_decl): Likewise.
13447 (matrix_reorg): Likewise.
13448 * tree-vectorizer.c (increase_alignment): Likewise.
13449 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
13450 (function_and_variable_visibility): Likewise.
13451 (whole_program_function_and_variable_visibility): Likewise.
13452 (ipa_cdtor_merge): Likewise.
13453 * trans-mem.c (ipa_tm_execute): Likewise.
13454 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
13455 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
13456 (ipa_print_all_params): Likewise.
13457 (ipa_update_after_lto_read): Likewise.
13458 * tree-profie.c (tree_profiling): Likewise.
13459 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
13460 * passes.c (dump_passes): Likewise.
13461 (do_per_function): Likewise.
13462 (ipa_write_summaries): Likewise.
13463 * varpool.c (dump_varpool): Likewise.
13464 (varpool_node_for_asm): Likewise.
13465 (varpool_assemble_pending_decls): Likewise.
13467 2012-04-16 Richard Guenther <rguenther@suse.de>
13469 PR tree-optimization/52975
13470 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
13471 condition but always mark it with TRUTH_NOT_EXPR.
13473 2012-04-16 Richard Guenther <rguenther@suse.de>
13475 PR tree-optimization/52975
13476 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
13477 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
13478 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
13479 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
13481 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
13483 * config/i386/sse.md (ssse3_plusminus): New code iterator.
13484 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
13485 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
13486 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
13487 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
13488 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
13489 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
13491 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
13492 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
13493 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
13494 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
13495 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
13496 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
13498 (xop_plus): New code iterator.
13499 (macs): New code attribute.
13501 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
13502 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
13504 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
13505 xop_plus code iterator.
13506 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
13507 xop_plus code iterator.
13508 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
13509 xop_plus code iterator.
13510 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
13511 xop_plus code iterator.
13513 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
13514 any_extend code iterator.
13515 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
13516 any_extend code iterator.
13517 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
13518 any_extend code iterator.
13519 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
13520 any_extend code iterator.
13521 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
13522 any_extend code iterator.
13523 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
13524 any_extend code iterator.
13526 2012-04-14 Tom de Vries <tom@codesourcery.com>
13528 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
13529 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
13530 DELETED_LABEL note, and move it to ...
13531 * cfgrtl.c (delete_insn): ... here. Change return type to void.
13532 (delete_insn_and_edges): Likewise.
13533 (delete_insn_chain): Handle new return type of delete_insn. Delete
13534 chain backwards rather than forwards.
13535 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
13537 * cfglayout.c (fixup_reorder_chain): Delete unused label.
13539 2012-04-14 Jan Hubicka <jh@suse.cz>
13541 * cgraph.h: Update copyrights;
13542 (symtab_node): Turn to union typedef.
13543 (symtab_node_base): New structure.
13544 (symtab_type): Add SYMTAB_SYMBOL tag.
13545 (cgraph_node): Annotate some pinters with nested_ptr.
13546 (varpool_node): Likewise.
13547 (cgraph_local_info): Remove lto_file_data
13548 and externally_visible.
13549 (cgraph_node): Remove decl; same_comdat_group list;
13550 aux; ref_list; order; address_taken; reachable_from_other_parittion,
13551 in_other_partition; resolution.
13552 (varpool_node): Remove decl; same_comdat_group;
13553 ref_list; lto_file_data; aux; order; resolution; externally_visible;
13554 used_from_other_partition; in_other_partition.
13555 (symtab_node_def): New union.
13556 (cgraph, varpool): Update.
13557 (varpool_first_static_initializer, varpool_next_static_initializer,
13558 cgraph_only_called_directly_or_aliased_p,
13559 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
13560 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
13561 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
13563 * cgraph.c: Likewise.
13564 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
13565 * cgraphbuild.c: Likewise.
13566 * lto-symtab.c: Likewise.
13567 * c-gimplify.c: Likewise.
13568 * value-prof.c: Likewise.
13569 * tree.c: Likewise.
13570 * ipa-cp.c: Likewise.
13571 * tree-emutls.c: Likewise.
13572 * ipa-inline-transform.c: Likwise.
13573 * ipa-reference.c: Likewise.
13574 * cgraphunit.c: Likewise.
13575 * ipa-ref.c: Likewise.
13576 * lto-cgraph.c: Likewise.
13577 * ipa-ref-inline.h: Likewise.
13578 * ipa-pure-const.c: Likewise.
13579 * lto-streamer-out.c: Likewise.
13580 * ipa-utils.c: Likewise.
13581 * ipa-inline.c: Likewise.
13582 * matrix-reorg.c: Likewise.
13583 * tree-eh.c: Likewise.
13584 * tree-vectorizer.c: Likewise.
13585 * ipa-split.c: Likewise.
13587 * trans-mem.c: Likewise.
13588 * ipa-inline-analysis.c: Likewise.
13589 * gimplify.c: Likewise.
13590 * cfgexpand.c: Likewise.
13591 * tree-sra.c: Likewise.
13592 * ipa-prop.c: Likewise.
13593 * varasm.c: Likewise.
13594 * tree-nested.c: Likewise.
13595 * tree-inline.c: Likewise.
13596 * tree-profile.c: Likewise.
13597 * tree-ssa-structalias.c: Likewise.
13598 * passes.c: Likewise.
13599 * varpool.c: Likewise.
13601 2012-04-14 Tom de Vries <tom@codesourcery.com>
13603 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
13604 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
13605 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
13607 (gsi_advance_fw_nondebug_nonlocal): New function.
13608 (local_def): Removed function.
13609 (same_succ_hash): Use stmt_local_def.
13610 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
13611 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
13613 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13615 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
13616 and __ILP32__ for x32.
13618 2012-04-13 Martin Jambor <mjambor@suse.cz>
13620 PR middle-end/52939
13621 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
13622 fold_ctor_reference returns a zero constant.
13624 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
13626 * config.gcc: Add i386/gnu-user-common.h before all
13627 i386/gnu-user.h and i386/gnu-user64.h usages.
13629 * config/i386/gnu-user-common.h: New.
13631 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
13632 (CC1_SPEC): Likewise.
13633 (ENDFILE_SPEC): Likewise.
13634 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
13635 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
13636 (TARGET_OS_CPP_BUILTINS): Likewise.
13637 (LIBGCC2_HAS_TF_MODE): Likewise.
13638 (LIBGCC2_TF_CEXT): Likewise.
13639 (TF_SIZE): Likewise.
13640 (TARGET_ASM_FILE_END): Likewise.
13641 (STACK_CHECK_MOVING_SP): Likewise.
13642 (STACK_CHECK_STATIC_BUILTIN): Likewise.
13643 * config/i386/gnu-user64.h: Likewise.
13645 2012-04-13 Martin Jambor <mjambor@suse.cz>
13647 * expr.c (expand_expr_real_1): Pass type, not the expression, to
13648 set_mem_attributes for a memory temporary. Do not call the function
13649 for the memory temporary created for a bitfield.
13651 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13654 * df.h (enum debug_temp_where): New.
13655 (dead_debug_init, dead_debug_finish) Declare.
13656 (dead_debug_add, dead_debug_insert_temp): Declare.
13657 (struct dead_debug_use, struct dead_debug): Moved from...
13658 * df-problems.c: ... here.
13659 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
13661 (df_create_unused_note): Likewise.
13662 (df_set_dead_notes_for_mw): Move comment where it belongs.
13663 (dead_debug_init): Export.
13664 (dead_debug_reset_uses): New, factored out of...
13665 (dead_debug_finish): ...this. Export.
13666 (dead_debug_reset): Remove.
13667 (dead_debug_add): Export.
13668 (dead_debug_insert_before): Rename to...
13669 (dead_debug_insert_temp): ... this. Add where argument. Export.
13670 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
13671 Return insertion count.
13672 (df_note_bb_compute): Adjust.
13673 * dce.c (word_dce_process_block): Adjust dead debug uses.
13674 (dce_process_block): Likewise.
13676 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13678 * df-problems.c (df_note_bb_compute): Do not take note of
13679 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
13681 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
13684 * var-tracking.c (expand_depth): New type.
13685 (onepart_aux, expand_loc_callback_data): Change depth type to it.
13686 (loc_exp_dep_alloc): Adjust initializer.
13687 (update_depth): Use new type. Add entryvals.
13688 (vt_expand_var_loc_chain): Take note of expansions with
13689 ENTRY_VALUEs, but don't accept them right away. Run an optional
13690 second pass accepting the minimum ENTRY_VALUE count found in the
13692 (vt_expand_loc_callback, INIT_ELCD): Adjust.
13694 2012-04-13 Tom de Vries <tom@codesourcery.com>
13696 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
13697 parameters vuse and vuse_escaped.
13698 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
13699 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
13702 2012-04-13 Richard Guenther <rguenther@suse.de>
13704 PR tree-optimization/52969
13705 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
13706 the condition for the COND_EXPR and handle predicate negation
13707 by swapping the COND_EXPR arms.
13709 2012-04-13 Nick Clifton <nickc@redhat.com>
13711 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
13712 TODO_dump_func flag.
13714 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
13716 PR rtl-optimization/52203
13717 PR rtl-optimization/52715
13719 Revert the 2012-03-07 fix for PR 52203.
13720 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
13721 the insn does not modify DFA right before issuing, adjust
13722 issue_rate accordingly.
13724 2012-04-13 Richard Guenther <rguenther@suse.de>
13727 * c-typeck.c (pointer_diff): Remove bogus assert.
13729 2012-04-13 Richard Guenther <rguenther@suse.de>
13732 * convert.c (convert_to_pointer): Remove special-casing of zero.
13734 2012-04-13 Joey Ye <joey.ye@arm.com>
13736 * config/arm/constraints.md (Pe): New constraint.
13737 * config/arm/arm.md: New split for imm 256-510.
13739 2012-04-13 Terry Guo <terry.guo@arm.com>
13741 * config/arm/arm-cores.def: Added core cortex-m0plus.
13742 * config/arm/arm-tune.md: Regenerated.
13743 * config/arm/arm-tables.opt: Regenerated.
13744 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
13746 2012-04-13 Alan Modra <amodra@gmail.com>
13749 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
13750 tie regs on destination of sets. Delete forward declaration.
13751 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
13752 (rs6000_emit_prologue): Likewise.
13753 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
13755 (is_mem_ref): Use tie_operand to recognise stack ties.
13756 * config/rs6000/predicates.md (tie_operand): New.
13757 * config/rs6000/rs6000.md (restore_stack_block): Generate new
13759 (restore_stack_nonlocal): Likewise.
13760 (stack_tie): Update.
13761 (frame_tie): Delete.
13763 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13765 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
13766 HOST_WIDE_INT_PRINT_DEC in format strings.
13768 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
13771 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
13772 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
13773 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
13774 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
13775 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
13776 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
13777 avx2_permvarv8si using VI4F_256 mode iterator.
13778 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
13779 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
13780 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
13781 gen_avx2_permvarv8sf.
13782 (expand_vec_perm_pshufb): Ditto.
13784 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13787 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
13788 the list of options to enable the FCFID instruction.
13789 (TARGET_EXTRA_BUILTINS): Adjust comment.
13791 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13793 PR tree-optimization/18589
13794 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
13795 (operand_entry): Add count field.
13796 (add_repeat_to_ops_vec): New function.
13797 (completely_remove_stmt): Likewise.
13798 (remove_def_if_absorbed_call): Likewise.
13799 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
13800 (acceptable_pow_call): New function.
13801 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
13802 entries with repeat counts when found.
13803 (repeat_factor_d): New struct and associated typedefs.
13804 (repeat_factor_vec): New static vector variable.
13805 (compare_repeat_factors): New function.
13806 (get_reassoc_pow_ssa_name): Likewise.
13807 (attempt_builtin_powi): Likewise.
13808 (reassociate_bb): Call attempt_builtin_powi.
13809 (fini_reassoc): Two new calls to statistics_counter_event.
13811 2012-04-12 Richard Guenther <rguenther@suse.de>
13813 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
13814 * cgraph.h (tree_rest_of_compilation): Remove.
13815 * cgraph.c (cgraph_add_new_function): Move ...
13816 * cgraphunit.c (cgraph_add_new_function): ... here.
13817 (tree_rest_of_compilation): Make static.
13818 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
13819 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
13820 gate_all_early_local_passes, execute_all_early_local_passes,
13821 pass_early_local_passes, gate_all_early_optimizations,
13822 pass_all_early_optimizations): Move ...
13823 * passes.c (gate_all_optimizations, pass_all_optimizations,
13824 gate_all_early_local_passes, execute_all_early_local_passes,
13825 pass_early_local_passes, gate_all_early_optimizations,
13826 pass_all_early_optimizations): ... here.
13827 * tree-optimize.c (execute_free_datastructures): Remove.
13828 * tree-flow.h (execute_free_datastructures): Remove.
13829 * tree-optimize.c (execute_init_datastructures,
13830 pass_init_datastructures): Move ...
13831 * tree-ssa.c (execute_init_datastructures,
13832 pass_init_datastructures): ... here.
13833 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
13834 execute_free_datastructures.
13836 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
13838 * dbgcnt.def (ira_move): New counter.
13839 * ira-int.h (ira_create_new_reg): Declare function.
13840 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
13841 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
13842 no longer static. All callers changed.
13843 * ira.c: Include "dbgcnt.h".
13844 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
13845 move_unallocated_pseudos): New static functions.
13846 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
13847 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
13848 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
13849 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
13850 to the pseudos generated in find_moveable_pseudos.
13851 * Makefile.in (ira.o): Add $(DBGCNT_H).
13853 2012-04-12 Richard Guenther <rguenther@suse.de>
13855 PR tree-optimization/52943
13856 * tree-chrec.h (chrec_is_positive): Remove.
13857 * tree-scalar-evolution.c (chrec_is_positive): Move ...
13858 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
13859 Return false for a constant zero instead of negative.
13860 (analyze_siv_subscript_cst_affine): Handle zero difference
13861 in the initial condition explicitely.
13863 2012-04-12 Richard Guenther <rguenther@suse.de>
13865 * tree-parloops.c (parallelize_loops): Also consult the upper
13866 bound for the number of iterations.
13867 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13868 (loop_prefetch_arrays): Likewise.
13870 2012-04-12 Richard Guenther <rguenther@suse.de>
13872 * cfgloop.h (estimated_loop_iterations_int): Ditch
13873 'conservative' parameter.
13874 (max_stmt_executions_int): Likewise.
13875 (estimated_loop_iterations): Likewise.
13876 (max_stmt_executions): Likewise.
13877 (max_loop_iterations): Declare.
13878 (max_loop_iterations_int): Likewise.
13879 (estimated_stmt_executions): Likewise.
13880 (estimated_stmt_executions_int): Likewise.
13881 * tree-ssa-loop-niter.c (estimated_loop_iterations):
13883 (max_loop_iterations): ... this.
13884 (estimated_loop_iterations_int): Split parts to ...
13885 (max_loop_iterations_int): ... this.
13886 (max_stmt_executions_int): Split parts to ...
13887 (estimated_stmt_executions_int): ... this.
13888 (max_stmt_executions): Split parts to ...
13889 (estimated_stmt_executions): ... this.
13890 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
13891 * predict.c (predict_loops): Likewise.
13892 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
13893 (analyze_siv_subscript_cst_affine): Likewise.
13894 (compute_overlap_steps_for_affine_1_2): Likewise.
13895 (analyze_subscript_affine_affine): Likewise.
13896 (init_omega_for_ddr_1): Likewise.
13897 * tree-parloops.c (parallelize_loops): Likewise.
13898 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
13899 (may_eliminate_iv): Likewise.
13900 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
13901 (loop_prefetch_arrays): Likewise.
13902 * tree-vrp.c (adjust_range_with_scev): Likewise.
13904 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
13906 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
13907 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
13909 (dump_table): Use bool type for need_align and have_df variables.
13910 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
13911 (regs_used): Remove register modifier.
13912 (barrier_align): Move variables slot, credit, jump_to_next
13913 into if block above for loop. Use bool type for jump_to_next.
13914 (sh_function_arg): Use NULL_RTX instead of 0.
13916 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
13918 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
13919 (bswapsi2): New expander.
13921 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
13923 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
13924 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
13926 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
13928 PR rtl-optimization/52876
13929 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
13930 Don't call mark_reg_pointer for incompatible pointer sign extension.
13932 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
13935 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
13937 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
13938 comparisons against TYPE_PRECISION.
13939 * tree-ssa-forwprop.c (combine_conversions): Likewise.
13941 2012-04-11 Xinliang David Li <davidxl@google.com>
13943 * tree-passes.h: Remove TODO_dump_func.
13944 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
13945 * trans-mem.c: Remove TODO_dump_func.
13946 * ira.c: Remove TODO_dump_func.
13948 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
13950 * config/i386/i386.c (ix86_option_override_internal): Check
13951 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
13952 after TARGET_64BIT is updated.
13954 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
13956 * config/sh/sh.h: Remove old secondary reload code.
13958 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
13960 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
13961 (ready_reorder): ... this function.
13963 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
13965 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
13968 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
13969 insns so that no other insn is queued for a time before them.
13971 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
13974 2012-04-11 Richard Guenther <rguenther@suse.de>
13976 PR middle-end/52621
13977 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
13978 consider loop nesting.
13979 (evolution_function_is_univariate_p): Properly check the remainder
13982 2012-04-11 Richard Guenther <rguenther@suse.de>
13984 PR middle-end/52918
13985 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
13987 2012-04-11 Nick Clifton <nickc@redhat.com>
13989 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
13990 information, if requested.
13992 * config/rx/rx.c (rx_expand_prologue): Likewise.
13994 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
13995 Michael Matz <matz@suse.de>
13998 * rtlanal.c (unsigned_reg_p): New function.
13999 Update copyright notice dates.
14000 * rtl.h (unsigned_reg_p): Prototype it.
14001 Update copyright notice dates.
14002 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
14004 * expr.c (expand_expr_real_1): Set register attributes.
14005 * stmt.c (expand_case): Likewise.
14007 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14010 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
14011 consider_sh2a and allow_zero.
14012 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
14013 (disp_addr_displacement): New function.
14014 (sh_address_cost): Use disp_addr_displacement function instead
14015 of DISP_ADDR_OFFSET.
14016 (sh_legitimate_address_p): Adapt to changed
14017 sh_legitimate_index_p declaration.
14018 (sh_find_mov_disp_adjust): Remove HImode check.
14019 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
14020 disp_addr_displacement and max_mov_insn_displacement.
14021 (max_mov_insn_displacement): Remove HImode check.
14022 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
14023 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
14024 * config/sh/constraints.md (K05, K13): New constraints.
14025 (K12): Correct comment.
14026 (Sdd): Do not use DISP_ADDR_P macro.
14027 (Snd, Sbw): Use satisfies_constraint_Sdd.
14028 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
14029 (*extendhisi2_compact, movhi_i): Remove.
14030 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
14031 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
14032 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
14033 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
14034 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
14035 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
14036 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
14038 Add new peepholes for HImode displacement addressing.
14040 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
14042 * config/sh/sh.h (SIDI_OFF): Remove.
14043 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
14044 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
14045 or operand_subword.
14047 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
14050 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
14051 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
14052 * doc/md.texi (Standard Names): Add bswap.
14053 * builtin-types.def (BT_UINT16): New primitive type.
14054 (BT_FN_UINT16_UINT16): New function type.
14055 * builtins.def (BUILT_IN_BSWAP16): New.
14056 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
14057 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
14058 expand_builtin_bswap.
14059 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
14060 (fold_builtin_1): Likewise.
14061 (is_inexpensive_builtin): Likewise.
14062 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
14063 missing bits for bswap to libcall code.
14064 * tree.c (build_common_tree_nodes): Build uint16_type_node.
14065 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
14066 (uint16_type_node): New define.
14067 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
14068 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
14070 (rs6000_init_builtins): Likewise.
14071 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
14073 2012-04-11 Tristan Gingold <gingold@adacore.com>
14075 * doc/extend.texi (Type Attributes): Move paragraph.
14077 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
14080 * diagnostic.h (show_caret): Declare.
14081 (caret_max_width): Declare.
14082 (diagnostic_show_locus): Declare.
14083 * diagnostic.c (diagnostic_initialize): Initialize to false.
14084 (diagnostic_show_locus): New.
14085 (diagnostic_report_diagnostic): Call it.
14086 (getenv_columns): New.
14087 (adjust_line): New.
14088 (diagnostic_set_caret_max_width): New.
14089 * input.c (read_line): New.
14090 (location_get_source_line): New.
14091 * input.h (location_get_source_line): Declare.
14092 * toplev.c (general_init): Initialize show_caret from options.
14093 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
14094 * opts.c (common_handle_option): Likewise.
14095 * pretty-print.h (pp_get_prefix): New.
14096 (pp_base_get_prefix): New.
14097 * common.opt (fdiagnostics-show-caret): New option.
14098 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
14100 2012-04-11 Richard Guenther <rguenther@suse.de>
14102 PR rtl-optimization/52881
14103 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
14105 2012-04-11 Richard Guenther <rguenther@suse.de>
14107 PR tree-optimization/52912
14108 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
14109 manipulation code we are threading through a loop header
14110 to an exit destination.
14112 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
14114 * tree.h (warn_if_unused_value): Move declaration from here.
14115 * stmt.c (warn_if_unused_value): Move definition from here.
14117 2012-04-10 Michael Matz <matz@suse.de>
14119 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
14121 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
14122 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
14123 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
14124 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
14125 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
14126 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
14127 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
14128 (vect_record_strided_load_vectors): Rename to
14129 vect_record_grouped_load_vectors.
14130 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
14131 Rename use of above macros.
14132 (vect_verify_datarefs_alignment): Ditto.
14133 (vector_alignment_reachable_p): Ditto.
14134 (vect_peeling_hash_get_lowest_cost): Ditto.
14135 (vect_enhance_data_refs_alignment): Ditto.
14136 (vect_analyze_group_access): Ditto and rename stride to groupsize.
14137 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
14138 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
14139 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
14140 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
14141 (vect_record_strided_load_vectors): Rename to
14142 vect_record_grouped_load_vectors.
14143 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
14144 (destroy_loop_vec_info): Ditto.
14145 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
14146 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
14147 (vect_analyze_slp): Ditto.
14148 (new_bb_vec_info): Ditto.
14149 (destroy_bb_vec_info): Ditto.
14150 (vect_schedule_slp_instance): Ditto and rename strided_store to
14152 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
14153 vect_cost_group_size.
14154 (vect_model_store_cost): Rename use of above macros and call
14155 to vect_cost_strided_group_size.
14156 (vect_model_load_cost): Ditto.
14157 (vectorizable_store): Ditto, rename strided_store to grouped_store
14158 and calls to renamed tree-vectorizer.h functions.
14159 (vectorizable_load): Ditto.
14160 (vect_transform_stmt): Rename use of above macros and strided_store
14163 2012-04-10 Jan Hubicka <jh@suse.cz>
14165 * cgraph.h: Remove misledaing comment on ipa-ref.h.
14166 (symtab_type): New enum.
14167 (symtab_node): New structure.
14168 (cgraph_node, varpool_node): Add symbol base type.
14169 (cgraph, varpool): New accestor functions.
14170 * cgraph.c (cgraph_create_node_1): Set symbol type.
14171 * varpool.c (varpool_node): Set symbol type.
14173 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
14174 Richard Sandiford <rdsandiford@googlemail.com>
14176 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
14178 2012-04-10 Richard Guenther <rguenther@suse.de>
14180 PR middle-end/52888
14181 * gimple-low.c (gimple_check_call_args): Properly account for
14182 compatible aggregate types.
14184 2012-04-10 Richard Guenther <rguenther@suse.de>
14186 * toplev.h (tree_rest_of_compilation): Remove.
14187 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14188 * cgraph.h (tree_rest_of_compilation): Declare.
14189 * tree-optimize.c (tree_rest_of_compilation): Move ...
14190 * cgraphunit.c (tree_rest_of_compilation): ... here.
14191 * cgraph.c (cgraph_add_new_function): Adjust.
14192 * Makefile.in (tree-optimize.o): Adjust.
14193 (cgraphunit.o): Likewise.
14195 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
14197 PR tree-optimization/52870
14198 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
14199 presumed pattern statement is within the same loop or basic block.
14201 2012-04-10 Tristan Gingold <gingold@adacore.com>
14203 * gengtype.c (main): Make uintptr_t a known type.
14205 2012-04-10 Richard Guenther <rguenther@suse.de>
14207 * tree-pass.h (tree_lowering_passes): Remove.
14208 * tree-optimize.c (tree_lowering_passes): Remove.
14209 * cgraph.c (cgraph_add_new_function): Inline relevant parts
14210 of tree_lowering_passes, avoid redundant call of early local passes.
14211 * cgraphunit.c (cgraph_lower_function): Fold into ...
14212 (cgraph_analyze_function): ... its single caller. Inline
14213 relevant parts of tree_lowering_passes.
14215 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
14218 * config/pa/pa.opt: Remove SIO and GNU_LD.
14220 2012-04-09 Jan Hubicka <jh@suse.cz>
14225 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
14226 boundary, add its target too.
14227 * lto.c (add_references_to_partition): Add also aliased nodes.
14228 (add_cgraph_node_to_partition,
14229 add_varpool_node_to_partition): Work on nodes, not functions/variables;
14230 when adding alias, add also the aliased object.
14232 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
14235 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
14236 VOIDmode immediate operands.
14237 * config/i386/constraints.md (Wz): New constraint.
14238 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
14240 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
14243 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
14244 the DECL generated for the special GOT helper.
14246 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
14248 * config/sh/constraints.md: Update list of constraints in
14250 (Sr0): Remove unused memory constraint.
14252 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14254 * tree-pretty-print.h: Update comment.
14256 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
14258 * config/sh/sh.md: Use braced string notation where applicable.
14259 (*prefetch_i4, prefetch_m2a): Merge into ...
14260 (*prefetch): ... this new insn.
14262 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14264 * config/sh/sh.h (high_life_started): Remove
14265 * config/sh/predicates.md (general_movdst_operand): Use
14266 'reload_in_progress' instead of 'high_life_started'.
14267 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
14268 divsi_inv_fp): Likewise.
14270 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14272 * config/sh/sh-protos.h (prepare_move_operands): Return void
14274 * config/sh/sh.c (prepare_move_operands): Likewise.
14275 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
14277 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
14279 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
14280 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
14281 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
14282 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
14283 commutative_float_operator, noncommutative_float_operator,
14284 sh_handle_pragma): Remove.
14286 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
14288 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
14289 Use @option markup on command-line options. Use @samp markup on
14290 literal keywords to options. Use @code markup on code fragments.
14291 Use other markup in preference to quotation marks in the text.
14292 Add markup to some passages without any.
14294 2012-04-06 Mike Stump <mikestump@comcast.net>
14296 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
14298 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14300 * config/sh/sh.c (hi_const): Remove.
14301 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
14304 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14306 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
14308 * config/sh/sh.c (sh_expand_t_scc): Likewise.
14309 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
14310 calling sh_expand_t_scc.
14312 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
14314 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
14315 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
14316 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
14317 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
14318 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
14319 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
14320 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
14321 sh2a_is_function_vector_call): Use bool as return type.
14322 (sh_pass_in_reg_p): Remove.
14323 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
14324 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
14325 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
14326 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
14327 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
14328 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
14329 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
14330 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
14331 sh_loads_bankedreg_p): Use bool as return type.
14332 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
14333 'register' modifier.
14335 2012-04-06 Matt Turner <mattst88@gmail.com>
14337 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
14339 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
14341 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
14342 of the destination isn't also a FP_REGS register.
14344 2012-04-05 Teresa Johnson <tejohnson@google.com>
14345 H.J. Lu <hongjiu.lu@intel.com>
14347 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
14348 * config/i386/i386.md (move immediate to memory peephole2):
14349 Add cases for HImode move when LCP stall avoidance is needed.
14350 * config/i386/i386.c (initial_ix86_tune_features): Initialize
14351 X86_TUNE_LCP_STALL entry.
14353 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
14356 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
14357 CONST_INT operands, zero-extended with AND.
14359 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
14362 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
14363 first argument instead of mode size. Move displacement calculations
14365 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
14366 ... these new functions.
14367 (disp_adjust): Remove max_mov_disp field.
14368 (sh_legitimate_index_p): Use max_mov_insn_displacement and
14369 mov_insn_alignment_mask.
14370 (sh_address_cost): Use max_mov_insn_displacement.
14372 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
14374 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
14375 (arch_enabled): Handle new arch types.
14376 (one_cmpldi2): Add NEON support.
14378 2012-04-05 Richard Guenther <rguenther@suse.de>
14380 * gimple.c (walk_gimple_op): Compute val_only for the LHS
14381 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
14382 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
14383 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
14384 ... here and make static.
14385 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
14388 2012-04-05 Richard Guenther <rguenther@suse.de>
14390 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
14391 basic-block before removing it.
14393 2012-04-05 Richard Guenther <rguenther@suse.de>
14395 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
14396 version namespace as we release the freelist.
14398 2012-04-05 Richard Guenther <rguenther@suse.de>
14400 * tree-nrv.c (tree_nrv): Release VDEFs.
14401 * tree-sra.c (sra_modify_constructor_assign): Likewise.
14402 (sra_modify_assign): Likewise.
14403 * tree-vect-stmts.c (vect_remove_stores): Likewise.
14404 * tree-vect-loop.c (vect_transform_loop): Likewise.
14405 * tree-ssa-dom.c (optimize_stmt): Likewise.
14406 * tree-vect-slp.c (vect_schedule_slp): Likewise.
14407 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
14409 2012-04-05 Richard Guenther <rguenther@suse.de>
14411 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
14413 * gimple.h (gsi_remove): Adjust.
14414 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
14415 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
14416 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
14417 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
14418 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
14419 * tree-ssa-pre.c (eliminate): Likewise.
14421 2012-04-04 Mike Stump <mikestump@comcast.net>
14423 * doc/rtl.texi (const_double): Document as sign-extending.
14424 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
14425 * emit-rtl.c (immed_double_int_const): Refine to state the
14427 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
14428 CONST_DOUBLE integers.
14429 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
14430 negative values are converted. Fix conversions bigger than
14431 HOST_BITS_PER_WIDE_INT.
14432 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
14433 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
14434 * explow.c (plus_constant_mode): Add.
14435 (plus_constant): Implement with plus_constant_mode.
14436 * rtl.h (plus_constant_mode): Add.
14438 2012-04-04 Richard Guenther <rguenther@suse.de>
14440 PR tree-optimization/52808
14441 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
14442 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
14444 2012-04-04 Tristan Gingold <gingold@adacore.com>
14446 * expr.c (expand_expr_real_2): Handle larger sizetype in
14449 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
14451 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
14452 to m2a-single instead of m2e.
14454 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
14456 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
14457 Change type of BITOFFSET to signed. Make sure the lower bound of
14458 the computed range is non-negative by adjusting OFFSET and BITPOS.
14459 (expand_assignment): Adjust call to get_bit_range.
14461 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
14463 * h8300/h8300.c (h8300_current_function_monitor_function_p):
14464 New function. Added to check monitor functions.
14465 (h8300_option_override): Modified to generate error/warning
14466 messages for invalid combinations of different command line
14468 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
14469 save EXR on stack for monitor function in case of H8S target
14470 when "-mno-exr" is passed.
14471 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
14473 * doc/invoke.texi: Document H8S options.
14475 2012-04-03 Tristan Gingold <gingold@adacore.com>
14477 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
14478 of gcc_AC_FUNC_MMAP_BLACKLIST.
14479 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
14480 * Makefile.in (aclocal_deps): Add mmap.m4.
14481 * configure: Regenerate.
14482 * aclocal.m4: Regenerate.
14484 2012-04-03 Richard Guenther <rguenther@suse.de>
14486 PR tree-optimization/52808
14487 * tracer.c (tail_duplicate): Return whether we have duplicated
14489 (tracer): If we have duplicated any block, cleanup the CFG.
14490 * cfghooks.c (duplicate_block): If we duplicated a loop
14491 header but not its loop, destroy the loop because it now has
14493 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
14494 the cfg manipulation routines we are not creating a multiple
14497 2012-04-03 Tristan Gingold <gingold@adacore.com>
14499 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
14501 (vms_c_common_override_options): Allow parameterless variadic
14504 2012-04-03 Jakub Jelinek <jakub@redhat.com>
14506 PR tree-optimization/52835
14507 * tree-data-ref.c (build_rdg): Return NULL if
14508 compute_data_dependences_for_loop failed.
14510 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
14512 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
14513 for REAL_CST as well.
14514 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
14515 In the bitfield case, if the value is a REAL_CST, convert it first to
14518 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
14520 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
14521 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
14522 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
14524 * config/i386/biarchx32.h: New.
14526 2012-04-02 Anatoly Sokolov <aesok@post.ru>
14528 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
14529 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14530 (arm_preferred_reload_class): New function.
14532 2012-04-02 Richard Guenther <rguenther@suse.de>
14534 PR tree-optimization/52756
14535 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
14536 (thread_through_loop_header): After threading through the loop latch
14537 remove the split part from the loop and clear further threading
14538 opportunities that would create a multiple entry loop.
14540 2012-04-02 Richard Guenther <rguenther@suse.de>
14542 PR rtl-optimization/52800
14543 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
14544 CLEANUP_CFG_CHANGED.
14546 2012-04-02 Richard Guenther <rguenther@suse.de>
14548 PR middle-end/52803
14549 * loop-init.c (gate_handle_loop2): Destroy loops here if
14550 we don't enter RTL loop optimizers.
14552 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
14555 2012-03-29 Richard Guenther <rguenther@suse.de>
14557 * rtl.h (extended_count): Remove.
14558 * combine.c (extended_count): Remove.
14560 2012-04-02 Dodji Seketeli <dodji@redhat.com>
14563 * pt.c (more_specialized_fn): Don't apply decay conversion to
14564 types of function parameters.
14566 2012-04-02 Tristan Gingold <gingold@adacore.com>
14568 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
14569 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
14570 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
14571 (ggc_pch_this_base): Use uintptr_t instead of size_t.
14573 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
14576 * config/i386/i386.c (ix86_option_override_internal): Don't
14577 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
14579 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
14581 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
14582 (stmt_can_make_abnormal_goto): Use it.
14583 (is_ctrl_altering_stmt): Likewise.
14585 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
14586 Kaz Kojima <kkojima@gcc.gnu.org>
14588 * config/sh/sh.c (push_regs): Skip banked registers when
14589 resbank attribute is specified.
14590 (sh_expand_epilogue): Likewise.
14592 2012-03-30 Richard Henderson <rth@redhat.com>
14595 * combine-stack-adj.c (prev_active_insn_bb): New.
14596 (next_active_insn_bb): New.
14597 (force_move_args_size_note): New.
14598 (combine_stack_adjustments_for_block): Use it.
14600 2012-03-30 Richard Henderson <rth@redhat.com>
14602 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
14603 (ix86_expand_vector_init_duplicate): Initialize it.
14604 (expand_vec_perm_palignr): Likewise.
14605 (ix86_expand_vec_perm_const): Likewise.
14606 (ix86_vectorize_vec_perm_const_ok): Likewise.
14607 (expand_vec_perm_blend): Use it.
14608 (expand_vec_perm_vpermil): Likewise.
14609 (expand_vec_perm_pshufb): Likewise.
14610 (expand_vec_perm_1): Likewise.
14611 (expand_vec_perm_pshuflw_pshufhw): Likewise.
14612 (expand_vec_perm_interleave2): Likewise.
14613 (expand_vec_perm_vpermq_perm_1): Likewise.
14614 (expand_vec_perm_vperm2f128): Likewise.
14615 (expand_vec_perm_interleave3): Likewise.
14616 (expand_vec_perm_vperm2f128_vblend): Likewise.
14617 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14618 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
14619 (expand_vec_perm_broadcast): Likewise.
14620 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14622 2012-03-30 Richard Henderson <rth@redhat.com>
14624 * dwarf2out.c (gen_variable_die): Initialize off.
14626 2012-03-30 Tristan Gingold <gingold@adacore.com>
14628 * config/vms/vms-f.c: New file.
14629 * config/vms/t-vms (vms-f.o): New rule.
14630 * config.gcc (*-*-*vms*): Define fortran_target_objs.
14632 2012-03-30 Richard Guenther <rguenther@suse.de>
14634 PR tree-optimization/52754
14635 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
14636 propagate arbitrary addresses into really plain dereferences.
14638 2012-03-30 Richard Guenther <rguenther@suse.de>
14640 PR middle-end/52772
14641 * except.c (emit_to_new_bb_before): Move loop updating ...
14642 (dw2_build_landing_pads): ... here. Use a proper block for
14643 querying the loop father.
14645 2012-03-30 Tristan Gingold <gingold@adacore.com>
14647 * config/ia64/ia64.c (ia64_section_type_flags): Remove
14648 common_object attribute handling.
14649 (SECTION_VMS_OVERLAY): Remove
14650 (ia64_vms_common_object_attribute): Replace abort with an assert.
14651 Do not set DECL_SECTION_NAME.
14652 (ia64_vms_output_aligned_decl_common): Handle common_object
14654 (ia64_vms_elf_asm_named_section): Remove.
14655 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
14657 2012-03-30 Richard Guenther <rguenther@suse.de>
14659 PR middle-end/52786
14660 * double-int.c (rshift_double): Remove not needed cast.
14662 2012-03-30 Richard Guenther <rguenther@suse.de>
14664 * tree-affine.h (print_aff): Remove.
14665 * tree-affine.c (print_aff): Make static.
14666 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
14667 (get_references_in_stmt): Likewise.
14668 (print_direction_vector): Likewise.
14669 (print_dir_vectors): Likewise.
14670 (print_dist_vectors): Likewise.
14671 (dump_subscript): Likewise.
14672 (dump_ddrs): Likewise.
14673 (dump_dist_dir_vectors): Likewise.
14674 (dump_data_references): Likewise.
14675 (dump_data_dependence_relation): Likewise.
14676 (dump_data_dependence_direction): Likewise.
14677 (dump_rdg_vertex): Likewise.
14678 (dump_rdg_component): Likewise.
14679 (debug_ddrs): Declare.
14680 (struct data_ref_loc_d): Move ...
14681 * tree-data-ref.c (struct data_ref_loc_d): ... here.
14682 (get_references_in_stmt): Make static.
14683 (dump_data_references): Likewise.
14684 (dump_subscript): Likewise.
14685 (print_direction_vector): Likewise.
14686 (print_dir_vectors): Likewise.
14687 (print_dist_vectors): Likewise.
14688 (dump_data_dependence_relation): Likewise.
14689 (dump_dist_dir_vectors): Likewise.
14690 (dump_ddrs): Likewise.
14691 (dump_rdg_vertex): Likewise.
14692 (dump_rdg_component): Likewise.
14693 (debug_ddrs): New function.
14694 (access_matrix_get_index_for_parameter): Remove.
14696 2012-03-30 Tristan Gingold <gingold@adacore.com>
14698 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
14699 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
14700 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
14701 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
14702 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
14703 (vms_patch_builtins): Handle new flags
14704 * config/vms/vms-crtlmap.map: Completed using nm on
14705 c and math system libraries.
14706 * config/vms/make-crtlmap.awk: Handle any number of flags.
14708 2012-03-30 Martin Jambor <mjambor@suse.cz>
14710 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
14711 is a builtin_stack_save in a dominating BB.
14713 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
14715 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
14716 crossing 128bit lane boundary.
14718 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
14720 * ira-color.c (setup_left_conflict_sizes_p): Process all
14721 conflicting objects.
14723 2012-03-29 Jakub Jelinek <jakub@redhat.com>
14725 PR tree-optimization/52760
14726 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
14727 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
14729 2012-03-29 Richard Guenther <rguenther@suse.de>
14731 * cgraph.h (cgraph_materialize_all_clones): Remove.
14732 (reset_inline_failed): Likewise.
14733 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
14734 * cgraphbuild.c (reset_inline_failed): Remove.
14735 * rtl.h (cse_main): Remove.
14736 (extended_count): Likewise.
14737 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
14738 (cse_main): Make static.
14739 * combine.c (extended_count): Remove.
14740 (dump_combine_stats): Mark as DEBUG_FUNCTION.
14741 * basic-block.h (reorder_basic_blocks): Remove.
14742 * bb-reorder.c (reorder_basic_blocks): Make static.
14743 * Makefile.in (dse.o): Remove dse.h dependency.
14745 * dse.c (gate_dse): Remove.
14746 (clear_alias_mode_eq): Likewise.
14747 (clear_alias_mode_hash): Likewise.
14748 (dse_record_singleton_alias_set): Likewise.
14749 (dse_invalidate_singleton_alias_set): Likewise.
14751 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
14753 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
14754 crtbegin_so%O%s for -shared.
14755 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
14757 2012-03-29 Richard Guenther <rguenther@suse.de>
14759 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
14760 (add_to_value): Remove.
14761 (print_value_expressions): Likewise.
14762 * tree-ssa-pre.c (add_to_value): Make static.
14763 (print_value_expressions): Likewise.
14764 * gimple.h (gimple_adjust_this_by_delta): Remove.
14765 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
14767 2012-03-29 Richard Guenther <rguenther@suse.de>
14769 PR middle-end/50708
14770 * double-int.h (rshift_double): Remove.
14771 * double-int.c (lshift_double): Use absu_hwi to make count positive.
14772 (rshift_double): Make static, take unsigned count argument,
14773 remove handling of negative count argument.
14774 (double_int_rshift): Dispatch to lshift_double.
14776 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
14778 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
14779 OPTION_MASK_ABI_64.
14781 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
14782 (SPEC_X32): Likewise.
14783 (MULTILIB_DEFAULTS): Likewise.
14785 * config/i386/i386.c (isa_opts): Remove -m64.
14786 (ix86_target_string): Properly handle -m32/-m64/-mx32.
14787 (ix86_option_override_internal): Properly
14788 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
14789 handle -m32, -m64 and -mx32.
14791 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
14792 with OPTION_ABI_X32. Moved after TARGET_LP64.
14793 (TARGET_LP64): Changed to OPTION_ABI_64.
14795 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
14796 (mx32): Replace ISA_X32 with ABI_X32.
14798 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
14800 * tree.c (tree_size) <VECTOR_CST>: New case.
14802 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
14804 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
14805 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
14807 2012-03-28 Jakub Jelinek <jakub@redhat.com>
14809 PR middle-end/52691
14810 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
14811 __builtin_va_start to __builtin_next_arg if the latter is
14812 builtin_decl_explicit_p rather than when it is not.
14814 PR middle-end/52750
14815 * tree-vect-generic.c (vector_element): Perform multiplication
14816 for pos in bitsizetype type instead of idx type.
14818 2012-03-28 Richard Guenther <rguenther@suse.de>
14820 * loop-init.c (loop_optimizer_init): If loops are preserved
14821 perform incremental initialization of required loop features.
14822 (loop_optimizer_finalize): If loops are to be preserved only
14823 clean up optional loop features.
14824 (rtl_loop_done): Forcefully free loops here.
14825 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
14826 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
14828 (construct_init_block): Likewise.
14829 (construct_exit_block): Likewise.
14830 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
14831 the CFG after expanding.
14832 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
14833 If we needed to calculate them, free them afterwards.
14834 * tree-pass.h (PROP_loops): New define.
14835 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
14836 * basic-block.h (CLEANUP_CFG_CHANGED): New.
14837 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
14838 (cleanup_cfg): If we did something and have loops around, fix them up.
14839 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
14840 with CLEANUP_CFG_CHANGED.
14841 * cfghooks.c (merge_blocks): If we merge a loop header into
14842 its predecessor, update the loop structure.
14843 (duplicate_block): If we copy a loop latch, adjust loop state
14844 to note we may have multiple latches.
14845 (delete_basic_block): Mark loops for fixup if we remove a loop.
14846 * cfganal.c (forwarder_block_p): Protect loop latches, headers
14848 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
14849 (cfg_layout_can_merge_blocks_p): Likewise.
14850 * cprop.c (bypass_block): If we create a loop with multiple
14851 entries, mark it for removal.
14852 * except.c (emit_to_new_bb_before): Add the new basic-block
14854 * tree-eh.c (lower_resx): Likewise.
14855 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
14856 (expand_omp_taskreg): Likewise.
14857 * tree-inline.c (initialize_cfun): Likewise.
14858 * tree-mudflap.c (add_bb_to_loop): Prototype.
14859 (mf_build_check_statement_for): Properly add new basic-blocks
14861 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
14862 if we remove a loop.
14863 (thread_through_loop_header): Likewise.
14864 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
14865 new basic-blocks to existing loops.
14866 (expand_transaction): Likewise.
14867 * Makefile.in (except.o): Add $(CFGLOOP_H).
14868 (expr.o): Likewise.
14869 (cgraph.o): Likewise.
14870 (cprop.o): Likewise.
14871 (cfgexpand.o): Likewise.
14872 (cfganal.o): Likewise.
14873 (trans-mem.o): Likewise.
14874 (tree-eh.o): Likewise.
14876 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
14879 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
14880 (avr_builtin_decl): New static function.
14881 (struct avr_builtin_description, avr_bdesc): Move up.
14882 Add GTY marker. Add field fndecl. Remove redundant field id.
14883 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
14884 (avr_expand_builtin): Code cleanup because .id is removed.
14886 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
14889 * config.gcc (tm_file): Remove avr/multilib.h.
14891 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
14893 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
14894 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
14895 * config/avr/t-avr: Remove generation of multilib.h.
14896 * config/avr/t-multilib: Regenerate.
14897 * config/avr/multilib.h: Remove.
14898 * config/avr/avr.opt (-msp8): New option.
14899 (avr_sp8): New variable.
14900 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
14901 * config/avr/avr.h (AVR_HAVE_SPH): New define.
14902 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
14903 (avr_device_to_sp8): New prototype.
14904 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
14905 (DRIVER_SELF_SPECS): New define.
14906 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
14907 __AVR_SP8__, __AVR_HAVE_SPH__.
14908 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
14909 AVR_HAVE_8BIT_SP to decide if SP_H is present.
14910 (avr_file_start): Ditto.
14912 2012-03-28 Jakub Jelinek <jakub@redhat.com>
14915 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
14916 instead of 8 in adjust_address.
14918 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
14920 PR middle-end/51893
14921 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
14924 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
14927 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
14928 Rearrange conditional logic. Move displacement address calculations
14930 (sh_find_mov_disp_adjust): ... this new function.
14932 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
14934 * config/arm/arm.opt (mapcs): Remove MaskExists.
14935 * config/cris/linux.opt (mno-gotplt): Likewise.
14936 * config/i386/i386.opt (mhard-float): Likewise.
14938 (mno-sse4): Likewise.
14939 * config/m68k/m68k.opt (mhard-float): Likewise.
14940 * config/mep/mep.op (mcop32): Likewise.
14941 * config/pa/pa-hpux.opt (msio): Likewise.
14942 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
14943 * config/picochip/picochip.opt (mlittle): Likewise.
14944 * config/sh/sh.opt (mrenesas): Likewise.
14945 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
14946 * config/sparc/sparc.opt (mhard-float): Likewise.
14947 * config/v850/v850.opt (mv850es): Likewise.
14948 * config/vax/vax.opt (mg-float): Likewise.
14950 2012-03-27 Martin Jambor <mjambor@suse.cz>
14952 PR middle-end/52693
14953 * tree-sra.c (sra_modify_assign): Do not call
14954 load_assign_lhs_subreplacements when working with an unscalarizable
14957 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
14960 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
14962 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
14963 * config/i386/i386.c: Include reload.h.
14964 (ix86_legitimize_reload_address): New function.
14966 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
14968 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
14969 hasn't been allocated. Define a target macro for Mask and
14970 InverseMask if it hasn't been defined. Remove MaskExists handling.
14972 * doc/options.texi: Remove MaskExists.
14974 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
14977 * config/sh/sh.c (find_barrier): Add equality check of last_got
14978 to avoid going above orig insn. Update comments.
14980 2012-03-27 Richard Guenther <rguenther@suse.de>
14982 PR middle-end/52720
14983 * fold-const.c (try_move_mult_to_index): Handle &x.array more
14986 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
14988 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
14989 of a unit before computing the offset in units.
14990 * expr.c (get_bit_range): Return the null range if the enclosing record
14991 is part of a larger bit field.
14993 2012-03-27 Tristan Gingold <gingold@adacore.com>
14995 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
14996 * config/ia64/ia64.md: Remove mode in template.
14997 Sign extend operand in expand_simple_binop.
14998 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
14999 CASE_VECTOR_MODE instead of TARGET_ILP32.
15000 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
15002 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
15004 * varasm.c (assemble_external): #if 0 out the new assert from the
15005 previous commit, it breaks the Java and Go front ends.
15007 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
15009 * toplev.c (check_global_declaration_1): Do not call assemble_external.
15010 * expr.c (emit_block_move_libcall_fn): Likewise.
15011 (clear_storage_libcall_fn): Likewise.
15012 (expand_expr_addr_expr_1): Likewise.
15013 (expand_expr_real_1): Likewise.
15014 * calls.c (rtx_for_function_call): Likewise.
15016 * varasm.c (assemble_external): Assert this function is only called
15017 during or after expanding to RTL.
15019 2012-03-26 Martin Jambor <mjambor@suse.cz>
15021 PR tree-optimization/50052
15022 * tree-sra.c (tree_non_aligned_mem_p): Removed.
15023 (tree_non_aligned_mem_for_access_p): Likewise.
15024 (build_accesses_from_assign): Removed strict alignment requirements
15026 (access_precludes_ipa_sra_p): Likewise.
15028 2012-03-26 Richard Guenther <rguenther@suse.de>
15030 PR tree-optimization/52701
15031 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
15032 compute and set the evolution part of PHI nodes.
15034 2012-03-26 Richard Guenther <rguenther@suse.de>
15036 PR tree-optimization/52721
15037 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
15039 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
15041 PR tree-optimization/52686
15042 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
15045 2012-03-26 Tristan Gingold <gingold@adacore.com>
15047 * config/alpha/vms.h (LINK_SPEC): Simplify.
15048 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
15049 (NAME__MAIN, SYMBOL__MAIN): Remove.
15050 (VMS_DEBUG_MAIN_POINTER): Remove.
15051 * config/ia64/vms.h: Likewise.
15052 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
15053 code to vms.c. Call vms_start_function.
15054 * config/ia64/ia64.c (ia64_start_function): Likewise.
15055 * config/vms/vms-protos.h (vms_start_function): Declare.
15056 * config/vms/vms.c (vms_start_function): New function.
15057 * config/vms/vms.h (MATH_LIBRARY): Define.
15058 (VMS_DEBUG_MAIN_POINTER): Define.
15060 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
15062 PR rtl-optimization/52629
15063 * reload1.c (count_pseudo): Short-circuit common case.
15064 (count_spilled_pseudo): Return early for pseudos without hard regs.
15065 Assert that the pseudo has got a hard reg before manipulating it.
15067 2012-03-24 Jan Hubicka <jh@suse.cz>
15070 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
15071 (decide_is_variable_needed): Do not handle toplevel reorder here.
15072 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
15073 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
15076 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15078 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
15079 and str_bitsize instead of more convoluted expressions.
15081 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15084 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
15086 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
15089 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
15091 2012-03-23 Martin Jambor <mjambor@suse.cz>
15093 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
15095 2012-03-23 Richard Guenther <rguenther@suse.de>
15097 PR tree-optimization/52678
15098 * tree-vectorizer.h (struct _stmt_vec_info): Add
15099 loop_phi_evolution_part member.
15100 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
15101 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
15102 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
15103 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15104 Use the cached evolution part and the PHI nodes value from
15105 the loop preheader edge instead of re-analyzing the evolution.
15107 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15109 * config/mips/mips-tables.opt: Update.
15110 * config/mips/mips.md (processor): Add xlp.
15111 * config/mips/mips-cpus.def: Add xlp.
15112 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
15114 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
15115 * doc/invoke.texi: Mention XLP.
15117 2012-03-22 Jakub Jelinek <jakub@redhat.com>
15119 PR middle-end/52547
15120 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
15121 on any new_local_var_chain vars declared during recursing on
15122 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
15124 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
15126 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
15127 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
15128 (ASM_OUTPUT_LOCAL): Ditto.
15129 (ASM_OUTPUT_COMMON): Remove.
15130 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
15131 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
15133 2012-03-22 Jan Hubicka <jh@suse.cz>
15135 PR middle-end/51737
15136 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
15138 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
15139 * ipa-inline-transform.c (save_inline_function_body): Remove
15140 copied clone if needed.
15141 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
15143 2012-03-22 Richard Guenther <rguenther@suse.de>
15145 PR middle-end/52666
15146 * fold-const.c (fold_ternary_loc): Fix typo.
15148 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
15151 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
15152 (unspecv): Add UNSPECV_MEMORY_BARRIER.
15153 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
15154 (delay_cycles_1, delay_cycles_2): Ditto.
15155 (delay_cycles_3, delay_cycles_4): Ditto.
15156 (nopv, *nopv): Ditto.
15157 (sleep, *sleep): Ditto.
15158 (wdr, *wdr): Ditto.
15160 2012-03-22 Richard Guenther <rguenther@suse.de>
15162 PR tree-optimization/52548
15163 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
15164 because of clobbers.
15165 (prune_clobbered_mems): New function.
15166 (compute_antic_aux): Use it to prune ANTIC_OUT.
15167 (compute_partial_antic_aux): Use it to prune PA_IN.
15168 (compute_avail): Only insert expressions into EXP_GEN that are not
15169 invalidated when translated up to the beginning of the block.
15171 2012-03-22 Richard Guenther <rguenther@suse.de>
15173 PR tree-optimization/52638
15174 * tree-vect-stmts.c (vect_init_vector_1): New function, split
15176 (vect_init_vector): ... here. Handle scalar vector inits.
15177 (vect_get_vec_def_for_operand): Adjust.
15178 (vectorizable_load): Likewise.
15180 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
15182 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
15183 (alpha*-*-freebsd*): Ditto.
15184 (alpha*-*-netbsd*): Ditto.
15185 (alpha*-*-openbsd*): Ditto.
15186 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
15187 (DWARF2_DEBUGGING_INFO): Remove.
15188 (PREFERRED_DEBUGGING_TYPE): Remove.
15189 (ASM_FINAL_SPEC): Remove.
15190 (IDENT_ASM_OP): Remove.
15191 (ASM_OUTPUT_IDENT): Remove.
15192 (SKIP_ASM_OP): Remove.
15193 (ASM_OUTPUT_SKIP): Remove.
15194 (ALIGN_ASM_OP): Remove.
15195 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
15196 (ASM_OUTPUT_CASE_LABEL): Remove.
15197 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
15198 (COMMON_ASM_OP): Remove.
15199 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
15200 (ASCII_DATA_ASM_OP): Remove.
15201 (READONLY_DATA_SECTION_ASM_OP): Remove.
15202 (INIT_SECTION_ASM_OP): Remove.
15203 (FINI_SECTION_ASM_OP): Remove.
15204 (ASM_SECTION_START_OP): Remove.
15205 (ASM_OUTPUT_SECTION_START_FILE): Remove.
15206 (TARGET_ASM_NAMED_SECTION): Remove.
15207 (TARGET_ASM_SELECT_SECTION): Remove.
15208 (MAKE_DECL_ONE_ONLY): Remove.
15209 (TYPE_ASM_OP): Remove.
15210 (SIZE_ASM_OP): Remove.
15211 (ASM_WEAKEN_LABEL): Remove.
15212 (TYPE_OPERAND_FMT): Remove.
15213 (ASM_DECLARE_RESULT): Remove.
15214 (ASM_DECLARE_OBJECT_NAME): Remove.
15215 (ASM_FINISH_DECLARE_OBJECT): Remove.
15216 (ELF_ASCII_ESCAPES): Remove.
15217 (ELF_STRING_LIMIT): Remove.
15218 (STRING_ASM_OP): Remove.
15219 (ASM_OUTPUT_EXTERNAL): Remove.
15220 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
15221 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
15223 (ASM_DECLARE_FUNCTION_NAME): Ditto.
15224 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
15225 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
15226 (ASM_OUTPUT_SKIP): Ditto.
15227 (READONLY_DATA_SECTION_ASM_OP): Remove.
15228 (USER_LABEL_PREFIX): Remove.
15229 (ASM_OUTPUT_ASCII): Remove.
15230 (ASM_OUTPUT_CASE_LABEL): Remove.
15231 (NO_DOLLAR_IN_LABEL): Undefine.
15233 2012-03-22 Richard Guenther <rguenther@suse.de>
15235 PR tree-optimization/52459
15236 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
15237 PHI insertion for calls.
15239 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
15241 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
15242 find_sets_in_insn, canonicalize_insn): Split out from ...
15243 (cse_insn): ... here.
15244 (invalidate_from_clobbers): Take an insn instead of the pattern.
15246 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
15249 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
15250 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
15251 * config/sh/sh.md (sindf2, cosdf2): Remove.
15253 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
15256 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
15257 prologue for unwinder and profiler.
15259 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
15261 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
15262 Introduce emul_name to select the right linker emulation for
15263 powerpc64-*-freebsd*.
15264 * configure: Regenerate.
15265 * config.gcc: Add bits to support powerpc64-*-freebsd*.
15266 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
15267 * config/rs6000/freebsd64.h: New file.
15268 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
15270 (rs6000_savres_strategy): Likewise.
15271 (rs6000_savres_routine_name): Likewise.
15272 (rs6000_elf_file_end): Likewise.
15273 * config/rs6000/t-freebsd64: New file.
15274 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
15275 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
15277 * config/rs6000/freebsd64.h: Remove duplicated entries from last
15279 * config/rs6000/t-freebsd64: Likewise.
15281 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
15283 PR rtl-optimization/52543
15285 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
15286 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
15287 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
15288 (avr_load_libgcc_p): Restrict to __flash loads.
15289 (avr_out_lpm): Only handle 1-byte loads from __flash.
15290 (avr_load_lpm): New function.
15291 (avr_find_unused_d_reg): Remove.
15292 (avr_out_lpm_no_lpmx): Remove.
15293 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
15294 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
15295 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
15296 (load_<mode>, load_<mode>_clobber): New insns.
15297 (mov<mode>): For multi-byte move from non-generic
15298 16-bit address spaces: Expand to load_<mode> resp.
15299 load_<mode>_clobber.
15300 (load<mode>_libgcc): Remove expander.
15301 (split-lpmx): Remove split.
15303 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
15305 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
15306 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
15307 All callers changed.
15308 (Fixed_core_reg): New feature.
15309 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
15311 * neon-testgen.ml: Handle Fixed_core_reg.
15313 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
15315 * config/arm/arm.c (thumb2_reorg): Add complete support
15316 for 16-bit instructions.
15317 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
15319 2012-03-21 Richard Guenther <rguenther@suse.de>
15321 PR tree-optimizer/52636
15322 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
15323 to the appropriate type.
15325 2012-03-21 Richard Guenther <rguenther@suse.de>
15327 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
15329 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
15330 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
15331 * passes.c (init_optimization_passes): Remove pass_init_function,
15332 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
15333 * tree-pass.h (pass_init_function): Remove.
15334 (pass_jump): Remove.
15335 (pass_initial_value_sets): Remove.
15336 (pass_unshare_all_rtl): Remove.
15337 * integrate.c (pass_initial_value_sets): Remove.
15338 * emit-rtl.c (pass_unshare_all_rtl): Remove.
15339 * tree.h (init_function_for_compilation): Remove.
15340 * function.c (init_function_for_compilation): Remove.
15341 (pass_init_function): Remove.
15342 * cfgcleanup.c (rest_of_handle_jump): Remove.
15343 (pass_jump): Remove.
15345 2012-03-20 Jason Merrill <jason@redhat.com>
15347 * tree-streamer-in.c (streamer_alloc_tree): Call
15348 ggc_alloc_zone_cleared_tree_node instead of
15349 ggc_alloc_zone_cleared_tree_node_stat.
15351 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
15353 * doc/extend.texi (Template Instantiation): Remove anachronisms.
15355 2012-03-20 Jakub Jelinek <jakub@redhat.com>
15358 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
15359 (ix86_expand_vec_perm_const_1): Call it.
15361 * config/i386/i386.c (vselect_insn): New variable.
15362 (init_vselect_insn): New function.
15363 (expand_vselect, expand_vselect_insn): Add testing_p argument.
15364 Call init_vselect_insn if vselect_insn is NULL. Adjust
15365 PATTERN (vselect_insn), instead of creating a new insn each time,
15366 only emit a copy of it if not testing and recog has been successful.
15367 (expand_vec_perm_pshufb, expand_vec_perm_1,
15368 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
15372 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
15373 ("enabled" attribute): Handle avx2 and noavx2 isas.
15374 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
15376 (vec_dup<mode>): Add avx2 =x,x alternative.
15377 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
15378 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
15379 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
15380 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
15382 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
15383 if possible, handle also V8SFmode.
15385 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
15387 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
15388 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
15389 reg_or_zero_operand predicate.
15390 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
15392 2012-03-20 Jakub Jelinek <jakub@redhat.com>
15394 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
15395 If operand isn't UNSPEC, return 0.
15397 2012-03-20 Richard Guenther <rguenther@suse.de>
15399 * tree-pass.h (pass_rtl_eh): Remove.
15400 * except.c (gate_handle_eh): Likewise.
15401 (rest_of_handle_eh): Likewise.
15402 (pass_rtl_eh): Likewise.
15403 (finish_eh_generation): Export.
15404 * except.h (finish_eh_generation): Declare.
15405 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
15406 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
15407 after expanding stack alignment. Instead of compacting blocks
15410 2012-03-20 Richard Guenther <rguenther@suse.de>
15412 * stor-layout.c (finish_bitfield_representative): Fallback
15413 to conservative maximum size if the padding up to the next
15414 field cannot be computed as a constant.
15415 (finish_bitfield_layout): If we cannot compute the distance
15416 between the start of the bitfield representative and the
15417 bitfield member start a new representative.
15418 * expr.c (get_bit_range): The distance between the start of
15419 the bitfield representative and the bitfield member is zero
15420 if the field offsets are not constants.
15422 2012-03-20 Tristan Gingold <gingold@adacore.com>
15424 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
15425 convert in lowercase.
15426 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
15427 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
15428 * stor-layout.c (sizetype_tab): Adjust.
15429 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
15430 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
15431 instead of type_kind_last.
15432 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
15433 instead of size_int_kind.
15434 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
15435 * doc/tm.texi: Regenerate.
15436 * defaults.h (SIZETYPE): Provide a default value.
15437 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
15438 (SIZETYPE): Define.
15440 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
15442 * config/sh/sh.md: Use braced string notation where applicable.
15444 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15446 * config/i386/i386.md (allocate_stack): Simplify.
15448 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15450 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
15451 copy_to_mode_reg (Pmode, ...).
15452 (expand_builtin_frame_address): Ditto.
15453 * expr.c (emit_block_move_via_libcall): Ditto.
15454 (set_storage_via_libcall): Ditto.
15456 * config/i386/i386.c (ix86_expand_movmem): Ditto.
15457 (ix86_expand_setmem): Ditto.
15458 (ix86_trampoline_init): DItto.
15459 * config/i386/i386.md (cmpstrnsi): Ditto.
15461 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
15463 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
15464 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
15465 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
15466 (SH Options): Likewise.
15468 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15470 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
15471 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
15472 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
15473 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
15474 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
15477 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
15479 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
15480 * config/i386/i386.c (ix86_decompose_address): Use
15481 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
15482 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
15483 thread pointer to a register.
15486 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
15488 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
15489 if Pmode != word_mode.
15490 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
15491 Pmode == SImode for TARGET_X32.
15493 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
15494 (tls_initial_exec_x32): Likewise.
15496 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
15499 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
15500 DISP_ADDR_OFFSET): New macros.
15501 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
15502 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
15503 (sh_legitimize_address): Add QImode displacement handling.
15504 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
15506 (sh_secondary_reload): Add QImode displacement handling.
15507 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
15508 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
15509 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
15510 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
15511 to register operands only.
15512 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
15513 (extendqihi2): Change insn to expander.
15514 (*extendqihi2_compact_reg): New insn.
15515 (movqi_i, movqi): Replace with ...
15516 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
15517 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
15518 Add new peepholes for QImode displacement addressing.
15520 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
15523 * doc/invoke.texi: Document -Wuseless-cast.
15525 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
15527 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
15528 * tree.h (handled_component_p): Reorder cases.
15529 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
15530 not initialize unsignedp.
15531 (loc_list_from_tree): Likewise.
15532 (fortran_common): Likewise.
15533 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
15535 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
15537 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
15538 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
15539 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
15540 (ix86_split_long_move): Ditto.
15541 (legitimize_tls_address): Use ix86_gen_sub3.
15542 (construct_plt_address): Assert that Pmode == DImode.
15544 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
15546 * config/i386/i386.md: Remove empty predicates and/or constraints.
15547 * config/i386/sync.md: Ditto.
15548 * config/i386/sse.md: Ditto.
15549 * config/i386/mmx.md: Ditto.
15550 * config/i386/pentium.md: Ditto.
15551 * config/i386/athlon.md: Ditto.
15553 2012-03-16 Richard Guenther <rguenther@suse.de>
15555 PR tree-optimization/52603
15556 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
15560 2012-03-14 Richard Guenther <rguenther@suse.de>
15562 PR tree-optimization/52571
15563 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
15564 flag_section_anchors check ...
15565 (vect_can_force_dr_alignment_p): ... here.
15567 2012-03-16 Martin Jambor <mjambor@suse.cz>
15569 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
15570 memory through MEM_REFs by calling extract_bit_field.
15572 2012-03-16 Richard Guenther <rguenther@suse.de>
15574 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
15575 and REFERENCE_TYPE interpretations.
15576 (can_native_interpret_type_p): New function.
15577 (fold_ternary_loc): Use native encode/interpret to fold
15578 BIT_FIELD_REFs of constants.
15580 2012-03-16 Richard Guenther <rguenther@suse.de>
15582 PR middle-end/52584
15583 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
15584 of vector constants and constructors.
15586 2012-03-16 Richard Guenther <rguenther@suse.de>
15588 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
15589 VIEW_CONVERT_EXPR to convert constants.
15590 (vect_is_simple_use): Treat all constants as vec_constant_def.
15592 2012-03-16 Richard Guenther <rguenther@suse.de>
15593 Kai Tietz <ktietz@redhat.com>
15595 PR middle-end/48814
15596 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
15597 side-effects completely in the pre-queue and use a temporary
15600 2012-03-16 Richard Guenther <rguenther@suse.de>
15602 * stor-layout.c (finish_bitfield_representative): Fall back
15603 to the conservative maximum size if we cannot compute the
15604 size of the tail padding.
15606 2012-03-16 Tristan Gingold <gingold@adacore.com>
15608 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
15609 __CRTL_VER and __VMS_VER.
15610 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
15611 and vms_c_get_vms_ver.
15612 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
15614 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
15615 (VMS_DEFAULT_VMS_VER): Define.
15616 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
15617 (VMS_DEFAULT_VMS_VER): Define.
15619 2012-03-16 Richard Guenther <rguenther@suse.de>
15621 * tree-vect-loop.c (get_initial_def_for_induction): Use
15622 build_constructor directly.
15623 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
15624 build_vector_from_val.
15625 * tree.c (build_vector_from_val): Avoid creating a constructor
15626 first when we want a constant vector.
15628 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15630 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
15632 2012-03-16 Richard Guenther <rguenther@suse.de>
15634 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
15635 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
15636 (struct tree_vector): Remove elements member, add variable size
15638 (build_vector_stat): Declare.
15639 (build_vector): Define in terms of build_vector_stat.
15640 * tree.c (build_vector): Rename to ...
15641 (build_vector_stat): ... this. Take array of trees as parameter.
15642 (build_vector_from_ctor): Adjust.
15643 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
15644 initializer_zerop): Adjust.
15645 * cfgexpand.c (expand_debug_expr): Likewise.
15646 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
15647 const_vector_from_tree): Likewise.
15648 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
15649 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
15650 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
15651 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
15652 (lto_input_ts_vector_tree_pointers): Adjust.
15653 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
15654 (write_ts_vector_tree_pointers): Adjust.
15655 * varasm.c (const_hash_1, compare_constant, copy_constant,
15656 output_constant): Adjust.
15657 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
15658 * print-tree.c (print_node): Adjust.
15659 * tree-pretty-print.c (dump_generic_node): Adjust.
15660 * tree-vect-generic.c (uniform_vector_p, vector_element,
15661 lower_vec_perm): Adjust.
15662 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
15663 * tree-vect-slp.c (vect_get_constant_vectors,
15664 vect_transform_slp_perm_load): Adjust.
15665 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
15666 * expmed.c (make_tree): Adjust.
15667 * config/i386/i386.c (ix86_expand_builtin): Adjust.
15668 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
15669 and implementation.
15670 (sparc_fold_builtin): Adjust.
15672 2012-03-16 Tristan Gingold <gingold@adacore.com>
15674 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
15675 * config/vms/vms-stdint.h: New file.
15677 2012-03-16 Tristan Gingold <gingold@adacore.com>
15679 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
15680 (ia64-hp-*vms*): Replaced by ...
15681 (*-*-*vms*): ... This new entry.
15683 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15686 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
15687 (ix86_expand_vec_perm_const_1): Use it.
15690 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
15691 (avx2_permv4df): Remove.
15692 (avx2_permv4di): Macroize into...
15693 (avx2_perm<mode>): ... this using VI8F_256 iterator.
15694 (avx2_permv4di_1): Macroize into...
15695 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
15697 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
15699 * combine.c (apply_distributive_law): Do not distribute SUBREG.
15701 2012-03-15 Ira Rosen <irar@il.ibm.com>
15702 Ulrich Weigand <ulrich.weigand@linaro.org>
15704 * tree-vect-patterns.c (widened_name_p): Rename to ...
15705 (type_conversion_p): ... this. Add new argument to determine
15706 if it's a promotion or demotion operation. Check for
15707 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
15708 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
15710 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
15711 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
15713 (vect_recog_mixed_size_cond_pattern): Likewise and allow
15714 non-constant then and else clauses.
15716 2012-03-15 Ira Rosen <irar@il.ibm.com>
15717 Ulrich Weigand <ulrich.weigand@linaro.org>
15719 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
15720 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
15721 vect_pattern_recog.
15722 * tree-vect-patterns.c (widened_name_p): Pass basic block
15723 info to vect_is_simple_use.
15724 (vect_recog_dot_prod_pattern): Fail for basic blocks.
15725 (vect_recog_widen_sum_pattern): Likewise.
15726 (vect_handle_widen_op_by_const): Support basic blocks.
15727 (vect_operation_fits_smaller_type,
15728 vect_recog_over_widening_pattern): Likewise.
15729 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
15730 Update call to vect_is_simple_use.
15731 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
15733 (check_bool_pattern): Add an argument, update call to
15734 vect_is_simple_use and the recursive calls.
15735 (vect_recog_bool_pattern): Update relevant function calls.
15737 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
15738 (vect_pattern_recog_1): Check for reduction only in loops.
15739 (vect_pattern_recog): Add new argument. Support basic blocks.
15740 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
15741 info to vect_is_simple_use_1.
15742 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
15743 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
15745 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15746 Andrew Pinski <apinski@cavium.com>
15748 PR middle-end/52592
15749 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
15750 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
15751 calls instead of __builtin_ir{int,ound}*.
15753 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15755 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
15758 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15760 * config.gcc (target_type_format_char): New. Document it. Set it for
15762 * configure.ac (gnu_unique_option): Use target_type_format_char
15763 in test. Comment rationale.
15764 * configure: Regenerate .
15766 2012-03-15 Jakub Jelinek <jakub@redhat.com>
15768 PR tree-optimization/52267
15769 * tree-vrp.c (masked_increment): New function.
15770 (register_edge_assert_for_2): Derive ASSERT_EXPRs
15771 from (X & CST1) cmp CST2 tests.
15773 2012-03-15 Richard Guenther <rguenther@suse.de>
15775 PR middle-end/52580
15776 * tree-data-ref.c (subscript_dependence_tester_1): Check
15777 all dimensions for non-conflicting access functions.
15779 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15782 * doc/invoke.texi [C++ Language Options]: Document
15783 -ftemplate-backtrace-limit.
15785 2012-03-15 Tristan Gingold <gingold@adacore.com>
15787 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
15788 before a parameter.
15790 2012-03-15 Tristan Gingold <gingold@adacore.com>
15792 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
15793 use DW_OP_call_frame_cfa.
15795 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
15798 * config/i386/i386-opts.h (pmode): New.
15800 * config/i386/i386.c (ix86_option_override_internal): Properly
15801 check and set ix86_pmode.
15803 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
15805 * config/i386/i386.opt (maddress-mode=): New.
15807 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
15809 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15811 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
15812 (dwarf2out_do_cfi_asm): Likewise.
15813 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
15815 (add_data_member_location_attribute): Likewise.
15816 (gen_array_type_die): Likewise.
15817 (gen_subprogram_die): Likewise.
15818 (gen_producer_string): Likewise.
15819 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
15820 Remove MIPS_DEBUGGING_INFO handling.
15821 (sdb_debug_hooks): Likewise.
15822 (sdbout_begin_block): Likewise.
15823 (sdbout_end_block): Likewise.
15824 (sdbout_begin_prologue): Likewise.
15825 (sdbout_start_source_file): Likewise.
15826 (sdbout_end_source_file): Likewise.
15827 (sdbout_init): Likewise.
15828 * system.h (MIPS_DEBUGGING_INFO): Poison.
15830 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15832 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
15833 (alpha_file_start) [MS_STAMP]: Remove.
15835 * config/alpha/elf.h (TARGET_GAS): Remove.
15836 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
15837 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
15838 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
15839 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
15840 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
15841 (alpha*-*-freebsd*): Likewise.
15842 (alpha*-*-netbsd*): Likewise.
15843 (alpha*-*-openbsd*): Likewise.
15844 (alpha*-*-*): Remove target_cpu_default2.
15845 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
15847 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
15848 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
15849 * config/alpha/alpha.c (print_operand): Always assume
15850 TARGET_AS_SLASH_BEFORE_SUFFIX.
15851 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
15852 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
15853 ("*builtin_setjmp_receiver_er_1"): Remove.
15854 * config/alpha/alpha.opt (malpha-as): Remove.
15856 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
15858 Remove DEC Unix reference.
15860 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
15861 (EXTENDED_COFF): Remove.
15862 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
15863 (EXTENDED_COFF): Don't undef.
15864 * config/alpha/alpha.c (alpha_file_start): Always assume
15866 Don't set targetm.asm_file_start_file_directive.
15867 [!OBJECT_FORMAT_ELF]: Remove.
15868 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
15870 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
15871 (DBX_DEBUGGING_INFO): Remove.
15872 (MIPS_DEBUGGING_INFO): Remove.
15873 (PREFERRED_DEBUGGING_TYPE): Remove.
15874 (DBX_OUTPUT_SOURCE_LINE): Remove.
15875 (SDB_OUTPUT_SOURCE_LINE): Remove.
15876 (DBX_CONTIN_LENGTH): Remove.
15877 (NO_DBX_FUNCTION_END): Remove.
15878 (ASM_STABS_OP): Remove.
15879 (ASM_STABN_OP): Remove.
15880 (ASM_STABD_OP): Remove.
15881 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
15882 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
15883 (PUT_SDB_DEF): Remove.
15884 (PUT_SDB_PLAIN_DEF): Remove.
15885 (PUT_SDB_TYPE): Remove.
15886 (sdb_label_count): Remove.
15887 (PUT_SDB_BLOCK_START): Remove.
15888 (PUT_SDB_BLOCK_END): Remove.
15889 (PUT_SDB_FUNCTION_START): Remove.
15890 (PUT_SDB_FUNCTION_END): Remove.
15891 (PUT_SDB_EPILOGUE_END): Remove.
15892 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
15893 (MIPS_DEBUGGING_INFO): Don't undef.
15894 (DBX_DEBUGGING_INFO): Don't undef.
15895 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
15896 (MIPS_DEBUGGING_INFO): Don't undef.
15897 (DBX_DEBUGGING_INFO): Don't undef.
15898 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
15899 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
15901 (alpha_start_function): Likewise.
15902 (sdb_label_count): Remove.
15903 (alpha_output_filename): Remove DBX_DEBUG handling.
15904 (alpha_file_start): Likewise.
15906 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15908 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
15909 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
15910 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
15912 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
15913 (ld_tls_support): Remove Solaris 8 references.
15914 (lwp_dir, lwp_spec): Remove support for alternate thread library.
15915 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
15916 * configure: Regenerate.
15917 * config.in: Regenerate.
15919 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
15920 * config/i386/sol2.h: Remove Solaris 8 references.
15922 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
15923 (i?86-*-solaris2.9): ... this.
15924 Remove Solaris 8 references.
15925 (Specific, *-*-solaris2*): Document Solaris 8 removal.
15926 Remove Solaris 8 references.
15928 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15930 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
15931 (mips-sgi-irix6.5*): Remove.
15932 * config.host (mips-sgi-irix*): Remove.
15933 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
15934 (set_have_as_tls): Remove *-*-irix6*.
15935 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
15936 * configure: Regenerate.
15938 * config/mips/iris6.h: Remove.
15939 * config/mips/iris6.opt: Remove.
15940 * config/mips/t-irix6: Remove.
15942 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
15943 (TARGET_IRIX6): Remove.
15944 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
15945 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
15946 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
15948 (mips_file_start): Likewise.
15949 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
15951 * config/mips/driver-native.c [__sgi__]: Remove.
15952 (host_detect_local_cpu) [__sgi__]: Remove.
15954 * config/mips/gnu-user.h: Remove iris5.h reference.
15956 * config/mips/mips-modes.def: Remove IRIX 6 reference.
15957 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
15958 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
15961 * gcc.c (main): Move asm_debug initialization ...
15962 (asm_debug): ... here.
15964 * ginclude/stddef.h (__STDDEF_H__): Don't define.
15966 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
15967 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
15968 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
15969 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
15970 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
15971 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
15973 * doc/tm.texi: Regenerate.
15975 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
15977 (MIPS Options, -march): Remove IRIX reference.
15978 * doc/install.texi (Binaries, SGI IRIX): Remove.
15979 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
15981 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
15983 2012-03-14 Martin Jambor <mjambor@suse.cz>
15985 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
15986 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
15987 (expand_expr_real_1): Do not handle misalignment if modifier is
15990 2012-03-14 Richard Guenther <rguenther@suse.de>
15992 PR middle-end/52584
15993 * tree-vect-generic.c (type_for_widest_vector_mode): Take
15994 element type instead of mode, use build_vector_type_for_mode
15995 instead of the langhook, build a vector of proper signedness.
15996 (expand_vector_operations_1): Adjust.
15998 2012-03-14 Richard Guenther <rguenther@suse.de>
16000 PR middle-end/52582
16001 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
16002 a cgraph node for a FUNCTION_DECL that comes from a constructor.
16003 (gimple_get_virt_method_for_binfo): Likewise.
16005 2012-03-14 Richard Guenther <rguenther@suse.de>
16007 PR tree-optimization/52571
16008 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
16009 flag_section_anchors check ...
16010 (vect_can_force_dr_alignment_p): ... here. Do not re-align
16011 DECL_COMMON variables.
16013 2012-03-14 Richard Guenther <rguenther@suse.de>
16015 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
16016 * stor-layout.c (start_bitfield_representative): New function.
16017 (finish_bitfield_representative): Likewise.
16018 (finish_bitfield_layout): Likewise.
16019 (finish_record_layout): Call finish_bitfield_layout.
16020 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
16021 for QUAL_UNION_TYPE fields.
16022 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
16023 Stream DECL_BIT_FIELD_REPRESENTATIVE.
16024 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
16026 PR middle-end/52080
16027 PR middle-end/52097
16028 PR middle-end/48124
16029 * expr.c (get_bit_range): Unconditionally extract bitrange
16030 from DECL_BIT_FIELD_REPRESENTATIVE.
16031 (expand_assignment): Adjust call to get_bit_range.
16033 2012-03-14 Richard Guenther <rguenther@suse.de>
16035 PR middle-end/52578
16036 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
16037 the outermost conversion is a sign-change only.
16038 (fold_binary_loc): Disregard widening and sign-changing
16039 conversions when we determine if two variables are equal
16041 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
16042 (T1)x if the outermost conversion is a sign-change only.
16044 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
16047 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
16049 * config/i386/predicates.md (constant_call_address_operand): Declare
16050 as special predicate. Update all uses.
16052 2012-03-13 Jakub Jelinek <jakub@redhat.com>
16055 * c-parser.c (c_parser_postfix_expression)
16056 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
16058 * config/i386/smmintrin.h: Avoid /* within a comment.
16059 * config/i386/nmmintrin.h: Likewise.
16061 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16063 * config/i386/i386.md (xbegin): Remove constraint from expander.
16065 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16067 * config/i386/predicates.md (constant_call_address_operand): Declare
16068 as special predicate. Update all uses.
16069 * config/i386/i386.md: Remove mode from constant_call_address_operand
16071 * config/i386/i386.c (ix86_output_call_insn): Call
16072 constant_call_address_operand with VOIDmode.
16074 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16076 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
16077 AND zero extended address correctly.
16079 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16081 * config/i386/predicates.md (tls_symbolic_operand): Declare as
16083 (tls_modbase_operand): Ditto.
16084 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
16085 tls_modbase_operand predicates.
16087 2012-03-13 Martin Jambor <mjambor@suse.cz>
16089 * expr.c (expand_assignment): Handle misaligned scalar writes to
16090 memory through top-level MEM_REFs by calling store_bit_field.
16092 2012-03-13 Richard Guenther <rguenther@suse.de>
16094 PR middle-end/52134
16095 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
16096 if Y is a constant multiple of 1 << CST.
16098 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
16101 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
16102 offset (size) to a value the insns can deal with.
16103 (expand_epilogue): Ditto.
16105 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
16107 * config/arm/neon.ml (ops): Fixup expected instructions for
16108 unsigned vector compares.
16110 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16112 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
16113 addresses only when %reg is not in word mode.
16115 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16117 * config/microblaze/microblaze.md: Fix typo.
16118 * tree-if-conv.c: Likewise.
16119 * tree-vect-patterns.c: Likewise.
16121 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16123 * config.gcc (extra_passes): Remove.
16124 * configure.ac (extra_passes): Don't substitute.
16125 * configure: Regenerate.
16126 * Makefile.in (EXTRA_PASSES): Remove.
16127 (GCC_PASSES): Remove $(EXTRA_PASSES).
16128 (MOSTLYCLEANFILES): Likewise.
16129 (native): Likewise.
16130 (install-common): Likewise.
16132 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
16134 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
16135 * config/i386/i386.c (ix86_decompose_address): Use
16136 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
16137 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
16138 thread pointer to a register.
16140 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16142 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
16143 on tls_symbolic_operand.
16144 (tls_global_dynamic_64_<mode>): Likewise.
16146 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16149 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
16150 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
16152 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16155 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
16156 type from reg_class_t to enum reg_class.
16157 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
16159 2012-03-12 Andrew Pinski <apinski@cavium.com>
16161 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
16162 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
16163 (value_replacement): Likewise.
16164 (empty_block_p): Check also if the PHIs for the block are empty.
16166 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
16169 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
16170 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
16171 r184615 from 2012-02-28.
16173 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16175 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
16176 (ix86_gen_tls_local_dynamic_base_64): Likewise.
16177 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
16178 and ix86_gen_tls_local_dynamic_base_64.
16179 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
16180 ix86_gen_tls_local_dynamic_base_64.
16182 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
16183 (*tls_global_dynamic_64_<mode>): This.
16184 (tls_global_dynamic_64): Renamed to ...
16185 (tls_global_dynamic_64_<mode>): This.
16186 (*tls_local_dynamic_base_64): Renamed to ...
16187 (*tls_local_dynamic_base_64_<mode>): This.
16188 (tls_local_dynamic_base_64): Renamed to ...
16189 (tls_local_dynamic_base_64_<mode>): This.
16191 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
16193 * config/i386/i386.c (ix86_option_override_internal): Properly
16194 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
16195 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
16196 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
16197 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16199 * config/i386/sse.md (sse3_monitor64): Renamed to ...
16200 (sse3_monitor64_<mode>): This.
16202 2012-03-12 Tristan Gingold <gingold@adacore.com>
16204 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
16205 (ia64_function_arg_advance): Ditto.
16207 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16209 * config.gcc (mips*-*-openbsd*): Remove.
16210 * config/mips/openbsd.h: Remove.
16211 * config/mips/sdb.h: Remove.
16213 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
16214 * config/mips/mips.c (sdb_label_count): Remove.
16215 (mips_debugger_offset): Remove #if 0 code.
16216 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
16217 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
16219 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16221 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
16222 binutils reference.
16223 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
16224 Update binutils references.
16225 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
16226 Update binutils reference.
16227 Update Sun as/GNU ld caveat.
16228 Document binutils largefile requirement for LTO plugin.
16229 Remove reference to alternate libpthread.
16231 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16233 * config.gcc (alpha*-dec-osf5.1*): Remove.
16234 * config.host (alpha*-dec-osf*): Remove.
16235 * configure.ac (*-*-osf*): Remove.
16236 (alpha*-dec-osf*): Remove.
16237 * configure: Regenerate.
16239 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
16240 config/alpha/va_list.h, config/alpha/x-osf: Remove.
16242 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
16243 * config/alpha/alpha.c (struct machine_function): Update comment.
16244 (alpha_start_function): Remove Tru64 UNIX as handling for
16246 * config/alpha/alpha.md ("exception_receiver"): Remove
16247 TARGET_LD_BUGGY_LDGP.
16248 ("*exception_receiver_2"): Likewise.
16249 * except.c (finish_eh_generation): Remove Tru64 reference.
16250 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
16251 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
16252 * target.def (handle_pragma_extern_prefix): Remove.
16254 * Makefile.in (mips-tfile.o-warn): Remove.
16255 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
16256 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
16257 * mips-tdump.c, mips-tfile.c: Remove.
16259 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
16261 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
16262 (Specific, alpha*-dec-osf5.1): Note removal.
16263 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
16265 * doc/tm.texi: Regenerate.
16266 * doc/trouble.texi (Cross-Compiler Problems): Remove.
16268 2012-03-12 Richard Guenther <rguenther@suse.de>
16270 * config/arm/arm.c (neon_dereference_pointer): Do not call
16271 covert during RTL expansion.
16273 2012-03-12 Tristan Gingold <gingold@adacore.com>
16275 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
16276 Options. Mention -mpointer-size.
16278 2012-03-12 Richard Guenther <rguenther@suse.de>
16280 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
16281 build_nonstandard_integer_type.
16283 2012-03-12 Richard Guenther <rguenther@suse.de>
16285 * tree.c (signed_or_unsigned_type_for): Use
16286 build_nonstandard_integer_type.
16287 (signed_type_for): Adjust documentation.
16288 (unsigned_type_for): Likewise.
16289 * tree-pretty-print.c (dump_generic_node): Use standard names
16290 for non-standard integer types if available.
16292 2012-03-12 Tristan Gingold <gingold@adacore.com>
16294 * config/vms/vms.opt: Add vms-opts.h header.
16295 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
16297 (-mvms-return-codes): Document.
16298 (-mpointer-size): New option.
16299 (vms_pointer_size): Add enumeration.
16300 * config/vms/vms-opts.h: New file.
16301 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
16302 __INITIAL_POINTER_SIZE.
16303 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
16304 (C_COMMON_OVERRIDE_OPTIONS): Define.
16305 (DWARF2_ADDR_SIZE): Define.
16306 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
16307 * config/vms/vms-protos.h (vms_c_common_override_options):
16309 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
16310 if -mno-pointer-size.
16311 (vms_c_common_override_options): New function.
16312 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
16313 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
16314 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
16315 and flag_vms_pointer_size.
16316 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
16317 * config.gcc (*-*-*vms*): Define xm_file.
16318 (alpha*-dec-*vms*): Do not define xm_file.
16319 (alpha64-dec-*vms*): Remove.
16320 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
16323 2012-03-12 Jakub Jelinek <jakub@redhat.com>
16325 PR tree-optimization/51721
16326 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
16327 if (int) unsvar cmp CST.
16329 2012-03-12 Richard Guenther <rguenther@suse.de>
16331 * tree-sra.c (create_access_replacement): Only rename the replacement
16332 if we can rewrite it into SSA form. Properly mark register typed
16333 replacements that we cannot rewrite with TREE_ADDRESSABLE.
16334 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
16335 for aggregate or BLKmode results.
16337 2012-03-12 Jakub Jelinek <jakub@redhat.com>
16339 PR tree-optimization/52533
16340 * tree-vrp.c (register_edge_assert_for_2): Use double_int
16341 type for mask, only handle shifts by non-zero in-range
16342 shift count, for LE_EXPR and GT_EXPR if new_val is
16343 maximum, don't add the assertion.
16345 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
16347 * doc/invoke.texi: Document -mrtm option.
16348 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
16349 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
16350 (ix86_handle_option): Handle OPT_mrtm.
16351 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
16353 (x86_64-*-*): Ditto.
16354 * i386-builtin-types.def (INT_FTYPE_VOID): New.
16355 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16357 (ix86_target_string): Define -mrtm option.
16359 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
16361 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
16362 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
16363 IX86_BUILTIN_XTEST.
16364 (bdesc_special_args): Ditto.
16365 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
16366 (ix86_expand_special_args_builtin): Handle new built-in type.
16367 (ix86_expand_builtin): Handle XABORT instruction.
16368 * config/i386/i386.h (TARGET_RTM): New.
16369 * config/i386/i386.md (UNSPECV_XBEGIN): New.
16370 (UNSPECV_XEND): Ditto.
16371 (UNSPECV_XABORT): Ditto.
16372 (UNSPECV_XTEST): Ditto.
16379 * config/i386/i386.opt (mrtm): New.
16380 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
16381 * config/i386/rtmintrin.h: New header.
16382 * config/i386/xtestintrin.h: Ditto.
16384 2012-03-12 Tristan Gingold <gingold@adacore.com>
16386 * ginclude/stddef.h: Adjust previous patch.
16387 Use __VMS__ instead of VMS.
16389 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
16391 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
16392 Also convert sequences with CC setting arithmetic instruction.
16394 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
16396 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
16397 from C Language Options to Preprocessor Options.
16398 (C Dialect Options): Move -no-integrated-cpp documentation
16400 (Preprocessor Options): ...to here. Rewrite the description
16401 so it makes more sense, and remove discussion of merging front ends.
16403 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16405 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
16407 (ix86_expand_setmem): Likewise.
16409 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
16411 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
16414 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16416 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
16417 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
16419 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16421 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
16423 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16425 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
16428 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
16429 Uros Bizjak <ubizjak@gmail.com>
16431 * config/i386/predicates.md (call_insn_operand): Allow
16432 constant_call_address_operand in Pmode only.
16433 (sibcall_insn_operand): Ditto.
16434 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
16435 (*call_vzeroupper): Ditto.
16437 (*sibcall_vzeroupper): Ditto.
16438 (*call_value): Ditto.
16439 (*call_value_vzeroupper): Ditto.
16440 (*sibcall_value): Ditto.
16441 (*sibcall_value_vzeroupper): Ditto.
16442 (*indirect_jump): Ditto.
16443 (*tablejump_1): Ditto.
16444 (indirect_jump): Convert memory address to word mode for TARGET_X32.
16445 (tablejump): Ditto.
16446 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
16449 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
16452 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
16453 Use movrt_negc instead of negc pattern for non-SH2A.
16454 (*movnegt): Remove.
16455 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
16457 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
16459 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
16460 if Pmode != word_mode.
16461 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
16462 Pmode == SImode for TARGET_X32.
16464 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
16465 (tls_initial_exec_x32): Likewise.
16467 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
16469 PR rtl-optimization/52528
16470 * combine.c (can_combine_p): Add setting of subst_low_luid
16471 before call to expand_field_assignment().
16473 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
16475 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
16476 and related program names.
16478 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
16480 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
16482 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
16485 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
16486 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
16487 to set code to 'q'.
16488 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
16489 (*movdi_internal_rex64): Use %E operand modifier for lea.
16490 (*movsi_internal): Ditto.
16492 (*lea<mode>_2): Ditto.
16493 (*lea_{3,4,5,6}_zext): Ditto.
16494 (*tls_global_dynamic_32_gnu): Ditto.
16495 (*tls_global_dynamic_64): Ditto.
16496 (*tls_dynamic_gnu2_lea_32): Ditto.
16497 (*tls_dynamic_gnu2_lea_64): Ditto.
16498 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
16500 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16502 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
16503 redefine to be NULL if the current bit-size is different from the
16504 configured bit-size.
16506 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
16507 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
16508 set the default tuning. Add asserts to make sure the cpu and tune
16509 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
16510 test whether the index is set, instead of > 0.
16511 (rs6000_file_start): Do not reset the default cpu if the current
16512 bit-size is different from the configured bit-size.
16514 2012-03-09 Tristan Gingold <gingold@adacore.com>
16516 * config/vms/vms-crtlmap.map: Add comments.
16517 Add entries needed to build Ada RTS.
16519 2012-03-09 Tristan Gingold <gingold@adacore.com>
16521 * ginclude/stddef.h: Do not define __size_t on VMS.
16523 2012-03-09 Tristan Gingold <gingold@adacore.com>
16525 * c-tree.h (c_default_pointer_mode): New variable.
16526 * c-decl.c (c_default_pointer_mode): New variable.
16527 (c_build_pointer_type): New function.
16528 (grokdeclarator): Call c_build_pointer_type instead
16529 of build_pointer_type.
16531 * config/vms/vms-c.c: Include c-tree.h
16532 (saved_pointer_mode): New variable.
16533 (handle_pragma_pointer_size): New function.
16534 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
16535 (vms_c_register_pragma): Register __pointer_size and
16536 __required_pointer_size pragmas.
16538 2012-03-09 Tristan Gingold <gingold@adacore.com>
16540 * config/vms/vms-c.c (vms_construct_include_filename): New function.
16541 (vms_c_register_includes): Reference it.
16543 2012-03-09 Andrew Pinski <apinski@cavium.com>
16545 PR middle-end/51988
16546 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
16547 print_generic_expr.
16548 (tree_ssa_phiopt_worker): Go through all the PHIs for
16549 value_replacement instead of just the singleton one.
16550 (value_replacement): Change return type to int. Return 0 instead of
16552 Allow the middle basic block to contain more than just the defining
16554 Handle non empty middle basic blocks.
16555 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
16557 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
16559 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
16560 array reference and component reference.
16561 (analyze_scalar_evolution_for_address_of): New.
16563 2012-03-08 Jie Zhang <jzhang918@gmail.com>
16566 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
16567 (hwloop_pattern_reg): Fix set but not used warning.
16568 (bfin_reorg_loops): Remove unused parameter.
16569 (bfin_reorg): Update use of bfin_reorg_loops.
16571 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
16573 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
16574 with integer parameters in registers.
16575 (gen_push): Push register in word_mode instead of Pmode.
16576 (ix86_emit_save_regs): Likewise.
16577 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
16578 (gen_pop): Pop register in word_mode instead of Pmode.
16579 (ix86_emit_restore_regs_using_pop): Likewise.
16580 (ix86_expand_prologue): Replace Pmode with word_mode for push
16581 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
16582 restore RAX and R10 in word_mode.
16583 (ix86_emit_restore_regs_using_mov): Restore integer registers
16585 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
16587 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
16588 (ix86_split_long_move): Likewise.
16590 * config/i386/i386.md (W): New.
16591 (*push<mode>2_prologue): Replace :P with :W.
16592 (*pop<mode>1): Likewise.
16593 (*pop<mode>1_epilogue): Likewise.
16594 (push/pop peephole2): Use word_mode scratch registers.
16596 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
16598 * config/i386/predicates.md (indirect_branch_operand): Simplify.
16600 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
16602 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
16603 for constants in [-63,63].
16605 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
16609 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
16611 * config/i386/i386.c (ix86_print_operand_address): Only handle
16612 zero-extended DImode addresses.
16614 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16616 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
16617 * configure: Regenerate.
16619 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
16622 * config/avr/avr.c (avr_mem_clobber): New static function.
16623 (avr_expand_delay_cycles): Add memory clobber operand to
16624 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
16625 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
16626 (enable_interrupt, disable_interrupt): New expander.
16627 (nopv, sleep, wdr): New expanders.
16628 (delay_cycles_1): Add memory clobber.
16629 (delay_cycles_2): Add memory clobber.
16630 (delay_cycles_3): Add memory clobber.
16631 (delay_cycles_4): Add memory clobber.
16632 (cli_sei): New insn from former "enable_interrupt",
16633 "disable_interrupt" with memory clobber.
16634 (*wdt): New insn from former "wdt" with memory clobber.
16635 (*nopv): Similar, but for "nopv".
16636 (*sleep): Similar, but for "sleep".
16638 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
16639 Kaz Kojima <kkojima@gcc.gnu.org>
16642 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
16643 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
16644 (SUBTARGET_OVERRIDE_OPTIONS): Define.
16646 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
16648 * config/i386/predicates.md (x86_64_zext_general_operand): New.
16649 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
16650 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
16652 2012-03-07 Walter Lee <walt@tilera.com>
16654 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
16655 REG_CFA_* notes for the stack pointer.
16656 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
16657 EH_RETURN_STACKADJ_RTX.
16658 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
16659 generate REG_CFA_* notes for the stack pointer.
16660 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
16661 by EH_RETURN_STACKADJ_RTX.
16663 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16665 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
16666 when __AVR_3_BYTE_PC__ is defined.
16668 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
16670 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
16671 (ix86_print_operand): Handle '^'.
16672 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
16673 using P mode iterator. Add %^ to asm template to conditionally emit
16675 (*rep_movdi_rex64): Ditto.
16676 (*strsetdi_rex_1): Ditto.
16677 (*rep_stosdi_rex64): Ditto.
16678 (*strmov{si,hi,qi}_1): Add %^ to asm template to
16679 conditionally emit addr32 prefix.
16680 (*rep_mov{si,qi}): Ditto.
16681 (*strset{si,hi,qi}): Ditto.
16682 (*rep_stos{si,qi}): Ditto.
16683 (*cmpstrnqi_nz_1): Ditto.
16684 (*cmpstrnqi_1): Ditto.
16685 (*strlenqi_1): Ditto.
16687 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
16689 * config/i386/i386.c (function_value_64): Return pointers in
16690 word_mode instead of Pmode.
16691 (ix86_promote_function_mode): Likewise.
16693 2012-03-07 Richard Guenther <rguenther@suse.de>
16695 * coverage.c (get_gcov_type): Use type_for_mode.
16696 (get_gcov_unsigned_t): Likewise.
16697 * expr.c (store_constructor): Use type_for_mode.
16698 (try_casesi): Likewise.
16699 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
16700 (add_standard_iv_candidates): Use standard type trees.
16701 * dojump.c (do_jump): Remove dead code.
16703 2012-03-07 Richard Guenther <rguenther@suse.de>
16705 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
16707 2012-03-07 Richard Guenther <rguenther@suse.de>
16709 * convert.c (strip_float_extensions): Move ...
16710 * tree.c (strip_float_extensions): ... here.
16712 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16715 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
16717 2012-03-07 Richard Guenther <rguenther@suse.de>
16719 * omp-low.c (extract_omp_for_data): Use signed_type_for.
16720 (expand_omp_for_generic): Likewise.
16721 (expand_omp_for_static_nochunk): Likewise.
16722 (expand_omp_for_static_chunk): Likewise.
16723 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
16724 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
16725 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16726 Use unsigned_type_for.
16727 (vect_create_cond_for_align_checks): Use signed_type_for.
16729 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
16731 PR rtl-optimization/52203
16732 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
16733 all callers to pass NULL except ...
16734 (reset_sched_cycles_in_current_ebb): ... here, save the value
16735 in new variable 'empty'. Increase issue_rate only for
16738 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
16741 * Makefile.in: Let install-gcc-ar depend on installdirs,
16742 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
16743 Don't double canonicalize if cross-compiling.
16745 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16748 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
16749 to: RAMPZ, RAMPY, RAMPX, RAMPD.
16750 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
16752 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16755 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
16757 * config/avr/avr.md (xload_8): Adjust insn length.
16759 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
16762 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
16763 if RAMPZ affects reading from RAM.
16765 2012-03-07 Richard Guenther <rguenther@suse.de>
16769 * doc/invoke.texi (Precompiled Headers): Remove sentence that
16770 suggests you can include PCHs from inside another header.
16772 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
16774 PR middle-end/52515
16775 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
16777 2012-03-07 Kai Tietz <ktietz@redhat.com>
16779 * doc/invoke.texi (fwritable-relocated-rdata): Document
16780 new Cygwin/MinGW target option.
16781 * config/i386/winnt.c (i386_pe_unique_section): Ignore
16782 reloc if flag -fwritable-relocated-rdata is not set.
16783 (i386_pe_section_type_flags): Likewise.
16784 * config/i386/cygming.opt (fwritable-relocated-rdata):
16785 Add new flag variable flag_writable_rel_rdata.
16787 2012-03-07 Richard Guenther <rguenther@suse.de>
16789 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
16790 precision against gimple constraints.
16792 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
16794 PR middle-end/52372
16795 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
16797 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
16798 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
16800 (init_emit_regs): Move associated initialization to...
16801 (init_emit_once): ...here.
16803 2012-03-06 Richard Henderson <rth@redhat.com>
16805 * config/m68k/m68k.h (ISA_HAS_TAS): New.
16806 * config/m68k/sync.md (atomic_test_and_set): Use it.
16807 (atomic_test_and_set_1): Likewise.
16809 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16812 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
16813 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
16814 (vector_ltgt<mode>): Likewise.
16815 (vector_ordered<mode>): Likewise.
16816 (vector_unordered<mode>): Likewise.
16817 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
16819 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
16821 * trans-mem.c: New typedef for tm_region_p.
16822 Define vector types for tm_region_p.
16823 (tm_region_init): Replace region_worklist to a vector called
16826 2012-03-06 Richard Guenther <rguenther@suse.de>
16828 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
16829 MEM_REF with constant pointer operand.
16831 2012-03-06 Richard Guenther <rguenther@suse.de>
16833 PR middle-end/52493
16834 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
16836 2012-03-06 Tristan Gingold <gingold@adacore.com>
16838 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
16839 (external_model_kind): Improve documentation.
16840 (vms_pragma_extern_model): Handle relaxed_redef.
16841 (vms_c_register_pragma): Allow expansion for nomember_alignment.
16843 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
16845 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
16846 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
16847 Some more notes on EIND usage and reorder EIND subsection.
16849 2012-03-06 Tristan Gingold <gingold@adacore.com>
16851 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
16852 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
16854 2012-03-06 Tristan Gingold <gingold@adacore.com>
16856 * config/vms/t-vmsnative (version): Define.
16857 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
16859 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
16861 PR rtl-optimization/52250
16862 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
16863 to put note list into. Unconditionally call move_bb_info.
16864 (move_bb_info): Do not assert the blocks being in the same region,
16865 just drop the note list if they are not.
16867 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
16870 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
16871 and use unified expansion logic.
16872 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
16873 closer to the existing movt insn.
16874 (negc): Rename insn to *negc. Add new expander.
16875 (movnegt): Use xor pattern for T bit negation. Reserve helper
16876 constant for negc pattern.
16877 (*movnegt): New insn and splitter.
16879 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
16881 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
16884 2012-03-05 Richard Henderson <rth@redhat.com>
16886 * genemit.c (main): Include "target.h" in insn-emit.c.
16887 * Makefile.in (insn-emit.o): Depend on TARGET_H.
16888 * config/sh/sync.md (atomic_test_and_set): Reference
16889 targetm.atomic_test_and_set_trueval instead of
16890 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
16892 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
16894 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
16897 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
16899 * langhooks.c (add_builtin_type): New function.
16900 * langhooks.h (add_builtin_type): Export it.
16901 * config/mep/mep.c (mep_init_builtins): Use it.
16902 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
16904 2012-03-05 Jakub Jelinek <jakub@redhat.com>
16907 * tree.h (BLOCK_SAME_RANGE): Define.
16908 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
16909 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
16910 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
16911 isn't equal to supercontext fragment's fragment chain.
16912 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
16914 (blocks_nreverse_all): Likewise.
16915 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
16916 BLOCK_SUPERCONTEXT to supercontext fragment instead of
16917 supercontext fragment's fragment origin.
16918 * dwarf2out.c (add_high_low_attributes): If stmt has the same
16919 range as its parent (or parents thereof etc.), use the parent's
16920 DW_AT_ranges value instead of creating a new .debug_ranges range.
16922 2012-03-05 Richard Henderson <rth@redhat.com>
16925 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
16926 * omp-low.c (expand_omp_atomic): Assume anything aligned to
16927 BIGGEST_ALIGNMENT is aligned.
16929 2012-03-05 Richard Henderson <rth@redhat.com>
16931 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
16932 * config/sh/sh.c: ... here.
16934 2012-03-05 Richard Henderson <rth@redhat.com>
16937 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
16938 instead of calling negqi2 directly.
16940 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
16942 PR middle-end/52463
16943 * trans-mem.c (tm_region_init): Use last_basic_block.
16945 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
16947 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
16948 * config/sh/sync.md (atomic_test_and_set): New expander.
16949 (tasb, atomic_test_and_set_soft): New insns.
16950 * config/sh/sh.opt (menable-tas): New option.
16951 * doc/invoke.texi (SH Options): Document it.
16953 2012-03-05 Richard Guenther <rguenther@suse.de>
16955 * cfgloop.c (verify_loop_structure): Verify dominators before
16957 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
16958 dominators from here.
16959 * graphite-scop-detection.c (create_sese_edges): Likewise.
16960 * loop-doloop.c (doloop_optimize_loops): Likewise.
16961 * loop-init.c (loop_optimizer_init): Likewise.
16962 * loop-unroll.c (unroll_and_peel_loops): Likewise.
16963 * loop-unswitch.c (unswitch_loops): Likewise.
16964 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
16965 * tree-parloops.c (parallelize_loops): Likewise. Verify
16966 only when checking is enabled.
16967 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
16969 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
16971 * genautomata.c (parse_automata_opt): New static function.
16972 (initiate_automaton_gen): Remove all option handling code. Remove
16973 argc argument. All callers changed.
16974 (main): Call init_rtx_reader_args_cb with the new function as argument.
16976 2012-03-05 Richard Guenther <rguenther@suse.de>
16978 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
16979 * tree-if-conv.c (combine_blocks): Free post-dominator info
16981 * tree-parloops.c (create_parallel_loop): Free and re-compute
16982 dominator info after breaking it.
16984 2012-03-05 Richard Guenther <rguenther@suse.de>
16986 PR middle-end/52353
16987 * optabs.h (trapv_unoptab_p): New function.
16988 (trapv_binoptab_p): Likewise.
16989 * optabs.c (expand_binop): Use emit_libcall_block_1 with
16990 a proper equiv_may_trap argument.
16991 (expand_unop): Likewise.
16992 (emit_libcall_block_1): Take extra argument whether the
16993 instruction may trap. Renamed from ...
16994 (emit_libcall_block): ... this. New wrapper.
16996 2012-03-05 Jakub Jelinek <jakub@redhat.com>
16998 PR tree-optimization/51721
16999 * tree-vrp.c (register_edge_assert_for_2): If comparing
17000 lhs of right shift by constant with an integer constant,
17001 add ASSERT_EXPRs for the rhs1 of the right shift.
17003 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
17005 2012-03-05 Richard Guenther <rguenther@suse.de>
17007 * tree.c (integer_zerop): Handle VECTOR_CSTs.
17008 (integer_onep): Likewise.
17009 (integer_all_onesp): Likewise.
17011 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
17013 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
17015 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17017 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
17018 instead of TARGET_64BIT.
17020 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17022 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
17025 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
17027 * config/i386/i386.c (ix86_print_operand_address): Only handle
17028 zero-extended DImode addresses.
17030 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
17032 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
17033 taken and cputaken as bool.
17035 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
17037 * config/i386/constraints.md (Ya): New internal constraint.
17038 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
17039 (*zero_extendsidi2_rex64): Add x,x alternative.
17040 (*zero_extendsidi2): Ditto. Add o,0 alternative.
17041 Remove flags reg clobber. Adjust corresponding splits.
17042 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
17043 zero_extendqisi2 expanders using SWI12 mode iterator.
17044 (zero_extend<mode>si2_and): Macroize insn from
17045 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
17047 (*zero_extend<mode>si2): Macroize insn from
17048 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
17049 (*zero_extend*2_movzbl_and): Remove insn patterns.
17050 (zero_extendqihi2_and): Merge corresponding splitter.
17051 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
17052 (*zero_extend*2_movzbl_and): Remove insn patterns.
17053 (*anddi_1): Split TYPE_IMOVX instructions.
17054 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
17056 (and->zext splitter): Add splitter pattern.
17057 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
17059 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
17061 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
17063 (Debugging Options): Likewise.
17064 (Optimize Options): Likewise.
17065 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
17066 with other architectures. Use official processor names with correct
17067 spelling/capitalization. Fix formatting and grammar issues.
17068 (i386 and x86-64 Windows Options): Similar cleanup here.
17070 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17072 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
17074 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17076 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
17077 DBX_REGISTER_NUMBER.
17079 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17081 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
17082 operand is CONST_INT. Take COSTS_N_INSNS into account.
17083 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
17086 2012-03-02 Richard Henderson <rth@redhat.com>
17088 * optabs.c (expand_atomic_test_and_set): Honor
17089 atomic_test_and_set_trueval even when atomic_test_and_set
17090 optab is not in use.
17092 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
17096 * config/sh/sh.c (sh_register_move_cost): Increase cost between
17097 GENERAL_REGS and FP_REGS for SImode.
17099 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17102 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
17103 (absdi2): New expander.
17104 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
17106 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17108 * config/sh/sync.md (atomic_exchange<mode>): New expander.
17109 (atomic_exchange<mode>_soft): New insn.
17111 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17113 * config/sh/sync.md: Update copyright notice dates.
17114 (atomic_compare_and_swap<mode>): Use SImode for return value instead
17116 (atomic_compare_and_swap<mode>_soft): Likewise.
17118 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
17121 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
17122 * config/sh/sh.c: Update copyright notice dates.
17123 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
17124 alignment for TARGET_HARD_SH4.
17125 (sh_option_override): Reduce default function alignment. Set
17126 loop alignment to 4 bytes when not optimizing for size.
17128 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
17130 PR middle-end/50335
17131 * doc/invoke.texi (floop-flatten): Remove.
17132 * toplev.c (process_options): Remove references to flag_loop_flatten.
17133 * tree-ssa-loop.c (gate_graphite_transform): Same.
17134 * common.opt (floop-flatten): Obsolete.
17135 * graphite-poly.c (apply_poly_transforms): Remove reference to
17137 * Makefile.in (graphite-flattening.o): Remove.
17138 * graphite-flattening.c: Remove.
17140 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17142 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
17143 having mode compatible with the mode of previous compare. Substitute
17144 compare mode of previous compare with the mode, compatible
17145 with eliminated and previous compare.
17147 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
17149 * config/rs6000/dfp.md (floatdidd2): New define_insn.
17151 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17153 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
17154 compatible with CCGOCmode and CCGCmode.
17156 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
17158 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
17160 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
17162 * config/arm/arm.c (arm_sat_operator_match): New function.
17163 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
17164 * config/arm/arm.md ("insn" attribute): Add "sat" value.
17165 ("SAT", "SATrev"): New code iterators.
17166 ("SATlo", "SAThi"): New code iterator attributes.
17167 ("*satsi_<SAT:code>"): New pattern.
17168 ("*satsi_<SAT:code>_shift"): Likewise.
17169 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
17170 and "shift" attributes.
17171 ("arm_usatsihi"): Add "insn" attribute.
17172 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
17173 by powers of two. Do not allow shift by 32.
17175 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
17178 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
17179 to pass the argument in the register of "natural" mode.
17181 2012-03-02 Richard Guenther <rguenther@suse.de>
17183 PR tree-optimization/52406
17184 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
17185 (struct indices): Add unconstrained_base member.
17186 (struct dr_alias): Remove unused vops member.
17187 (DR_UNCONSTRAINED_BASE): New define.
17188 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
17189 add indices to allow their disambiguation. Make DR_BASE_OBJECT
17190 be an artificial access that covers the whole indexed object,
17191 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
17192 plain decl base-objects to their MEM_REF variant.
17193 (dr_may_alias_p): When the base-object of either data reference
17194 has unknown size use only points-to information.
17195 (compute_affine_dependence): Make dumps easier to read and
17197 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
17198 DR_REF when looking for packed references.
17199 (vect_supportable_dr_alignment): Likewise.
17201 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
17203 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
17204 Improve conditions for peepholes of loads followed by commutative
17206 * config/arm/ldmstm.md: Regenerated.
17208 2012-03-02 Richard Guenther <rguenther@suse.de>
17210 * BASE-VER: Set to 4.8.0.
17212 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
17214 * config.gcc (obsolete): Add all ARM targets using the FPA.
17215 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
17216 * doc/install.texi: Avoid references to obsolete ARM ports.
17218 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
17220 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
17222 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
17223 Joern Rennecke <joern.rennecke@embecosm.com>
17225 * doc/extend.texi: Expand and update information on interrupt
17226 attribute for Epiphany.
17228 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17230 * config/sh/sh-protos.h: Update copyright notice dates.
17231 * config/sh/sh.h: Likewise.
17232 * config/sh/sh.md: Likewise.
17233 * config/sh/constraints.md: Likewise.
17234 * config/sh/predicates.md: Likewise.
17236 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17238 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
17239 * config/sh/sh.c (tertiary_reload_operand): Likewise.
17241 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
17243 * config/sh/constraints.md: Fix comment typo.
17245 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17248 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
17249 unsigned HOST_WIDE_INT.
17250 (zvdep_imm64): Likewise.
17251 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
17252 (vdepi_and): Likewise.
17253 Likewise for unamed 64-bit patterns.
17254 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
17256 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
17259 PR rtl-optimization/52417
17260 * cselib.c (cselib_any_perm_equivs): New variable.
17261 (cselib_reset_table): Check that it's not set when not
17262 preserving constants.
17263 (cselib_add_permanent_equiv): Set it.
17264 (cselib_have_permanent_equivalences): New.
17265 (cselib_init, cselib_finish): Reset it.
17266 * cselib.h (cselib_have_permanent_equivalences): Declare.
17267 * alias.c (get_addr): Restore earlier behavior when there
17268 aren't permanent equivalences.
17270 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
17272 * config/mn10300/mn10300-modes.def: Fix copyright notice.
17273 * config/v850/v850-modes.def: Fix copyright notice.
17275 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
17277 * doc/extend.texi (AVR Built-in Functions): Document
17278 __builtin_avr_flash_segment.
17280 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
17281 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
17282 (*split.flash_segment): New insn-and-split.
17283 * config/avr/avr.c (avr_init_builtins): Add local variables:
17284 const_memx_void_node, const_memx_ptr_type_node,
17285 char_ftype_const_memx_ptr.
17287 2012-03-01 Jakub Jelinek <jakub@redhat.com>
17289 PR tree-optimization/52445
17290 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
17291 add ssa_name_ver, offset and size fields and change store field
17293 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
17294 (add_or_mark_expr): Likewise. Only consider previous stores
17295 with the same size and offset.
17296 (nt_init_block): Only look at gimple_assign_single_p stmts,
17297 doesn't look at rhs2.
17299 2012-03-01 Richard Guenther <rguenther@suse.de>
17301 PR middle-end/52443
17302 * tree-cfg.c (verify_gimple_assign_unary): Allow any
17303 conversions from integral types to pointer types.
17305 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
17307 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
17308 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
17309 unintentionally removed in r184616.
17311 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17313 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
17316 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17317 Uros Bizjak <ubizjak@gmail.com>
17320 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
17321 alternatives, add "e" constraint to the new last alternative
17322 and ! to last 3 alternatives.
17324 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
17326 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
17327 DW_AT_artificial attributes at the end of the processing.
17328 (gen_array_type_die): Likewise.
17329 (gen_enumeration_type_die): Likewise.
17330 (gen_struct_or_union_type_die): Likewise.
17331 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
17334 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17336 PR middle-end/52419
17337 * expr.c (expand_assignment): If doing misaligned store that doesn't
17338 cover all mode bits, perform a RMW cycle.
17340 PR tree-optimization/52429
17341 * tree-parloops.c (separate_decls_in_region_debug): Return early
17342 if var is LABEL_DECL.
17344 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17346 PR tree-optimization/52424
17347 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
17348 calling dom_thread_across_edge.
17350 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17352 * config/avr/avr.c: Move definition of TARGET macros to end of file.
17354 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17356 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
17357 * config/avr/avr.c (avr_output_bld): Remove unused function.
17358 (avr_out_sbxx_branch): Use "%T" to print bit position.
17360 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17362 * config/avr/avr.md: Untabify.
17364 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17366 * config/avr/avr.md (eqne): New code iterator.
17367 (*dec-and-branchsi): Use it in text peephole's condition.
17368 (*dec-and-branchhi): Ditto.
17369 (*dec-and-branchqi): Ditto.
17371 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
17374 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
17375 the device does not have the skip-bug.
17377 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
17379 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
17380 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
17381 -mpretend-cmove): New.
17383 2012-02-29 Jakub Jelinek <jakub@redhat.com>
17386 * df.h (struct df_d): Adjust comment that hard_regs_live_count
17387 doesn't count DEBUG_INSN refs.
17388 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
17389 for DEBUG_INSN refs.
17391 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17395 2012-02-20 Richard Guenther <rguenther@suse.de>
17396 PR tree-optimization/52298
17397 * tree-vect-stmts.c (vectorizable_load): Properly use
17398 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
17400 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
17402 PR middle-end/51752
17403 * gimple.h (gimple_in_transaction): New.
17404 (gimple_set_in_transaction): New.
17405 (struct gimple_statement_base): Add in_transaction field.
17406 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
17408 (tree_ssa_lim_initialize): Compute transaction bits.
17409 * tree.h (compute_transaction_bits): Protoize.
17410 * trans-mem.c (tm_region_init): Use the heap to store BB
17412 (compute_transaction_bits): New.
17414 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17416 * gcc.c (display_help): Document --help=common and sort entries
17419 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17421 * doc/install.texi: Document check-$LANG specific shortcuts
17423 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17426 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
17428 * config/arm/arm_neon.h: Regenerate.
17429 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
17430 (neon_vcgeu): New insn.
17431 (neon_vcgtu): Likewise.
17432 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
17433 (ops): Unsigned comparison intrinsics call a different builtin.
17435 2012-02-28 Richard Guenther <rguenther@suse.de>
17438 * config/i386/i386.c (ix86_expand_vector_set): Fix element
17439 ordering for the VEC_CONCAT for two element vectors for
17440 V2SFmode, V2SImode and V2DImode.
17442 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
17445 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
17446 detecting big-endian triplets.
17448 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
17450 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
17451 mode if there is no type information available.
17453 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
17455 PR tree-optimization/53207
17456 * doc/invoke.texi: Document as experimental and relying on graphite.
17458 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17460 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
17461 of initializer to changes from r184614.
17463 2012-02-28 Richard Guenther <rguenther@suse.de>
17465 PR tree-optimization/52395
17466 * tree-sra.c (build_ref_for_offset): Also look at the base
17467 TYPE_ALIGN when figuring out the alignment of the replacement.
17469 2012-02-28 Richard Guenther <rguenther@suse.de>
17471 PR tree-optimization/52402
17472 * ipa-prop.c (ipa_modify_call_arguments): Properly use
17473 mis-aligned types when creating the accesses at the call site.
17475 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17477 * config/avr/builtins.def: New file.
17478 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
17479 * config/avr/avr.c (enum avr_builtin_id): Use it.
17480 (avr_init_builtins): Use it. And use avr_bdesc.
17481 (bdesc_1arg): Remove.
17482 (bdesc_2arg): Remove.
17483 (bdesc_3arg): Remove.
17484 (struct avr_builtin_description): Add field n_args.
17485 (avr_bdesc): New static variable using builtins.def.
17486 (avr_expand_builtin): Use it.
17487 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
17488 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
17489 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
17491 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17494 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
17495 match only one single hard register with respective hard reg rtx.
17496 (movmemx_<mode>): Ditto.
17497 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
17498 insn anatomy of movmem[x]_<mode>.
17499 (avr_out_movmem): Same for printing assembler and operand usage.
17501 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
17505 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
17506 address spaces located outside of device flash.
17508 * config/avr/avr.h (base_arch_s): Remove field n_segments.
17509 (mcu_type_s): Add field n_flash.
17510 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
17511 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
17512 (AVR_MCU): Add N_FLASH argument.
17513 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
17514 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
17515 macro __FLASH<n> if that address space makes sense for the device.
17516 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
17517 outside of target flash.
17518 (avr_asm_named_section): Ditto.
17519 (avr_asm_select_section): Ditto.
17520 (avr_addr_space_convert): Ditto.
17521 (avr_emit_movmemhi): Ditto.
17522 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
17523 address space is outside of device flash.
17524 (avr_insert_attributes): Ditto.
17525 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
17526 avr_current_arch->n_segments.
17528 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
17531 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
17532 (*movabs<mode>_2): Likewise.
17534 2012-02-27 Jakub Jelinek <jakub@redhat.com>
17537 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
17538 s_register_operand in the test instead of REG_P. Don't call
17539 gen_reg_rtx if it won't be used.
17541 PR tree-optimization/52376
17542 * ipa-split.c (split_function): Ignore CLOBBER stmts.
17544 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
17546 * ifcvt.c (noce_get_condition): Check condition variable is not
17547 small_register_classes_for_mode_p before accepting.
17549 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
17551 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
17553 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17556 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17557 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
17559 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
17561 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
17563 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
17565 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17567 * config/sh/predicates.md: Remove blank lines.
17568 * config/sh/sh.c: Fix typos in comments.
17569 * config/sh/constraints.md: Likewise.
17570 * config/sh/sh.md: Remove blank lines.
17571 Fix typos in comments. Use ;; as comment characters.
17573 2012-02-26 Walter Lee <walt@tilera.com>
17575 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
17576 (replace_mov_pcrel_step2): Ditto.
17578 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
17581 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
17582 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
17583 and locs that reference values newer than the non-canonical value
17584 at hand. Return the canonical value as a worst case.
17585 (memrefs_conflict_p): Walk canonical value's locs.
17588 * cselib.c (preserve_only_constants): Rename to...
17589 (preserve_constants_and_equivs): ... this. Split out...
17590 (invariant_or_equiv_p): ... this. Preserve plus expressions
17591 of other preserved expressions too.
17592 (cselib_reset_table): Adjust.
17593 * var-tracking.c (reverse_op): Use canonical value to build
17596 2012-02-23 Kai Tietz <ktietz@redhat.com>
17598 * config/i386/i386.c (ix86_delegitimize_address): Handle
17599 UNSPEC_PCREL plus displacement.
17601 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
17604 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
17605 to test for unusedness in st X addressing.
17607 2012-02-24 Richard Guenther <rguenther@suse.de>
17609 PR middle-end/52361
17610 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
17611 (is_gimple_reg_type): Move inline ...
17612 * gimple.h (is_gimple_reg_type): ... here.
17614 2012-02-24 Richard Guenther <rguenther@suse.de>
17616 PR middle-end/52361
17617 * passes.c (execute_function_todo): When verifying SSA form
17618 verify gimple form first.
17619 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
17621 2012-02-24 Richard Guenther <rguenther@suse.de>
17623 PR middle-end/52355
17624 * fold-const.c (fold_addr_of_array_ref_difference): New function.
17625 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
17627 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17629 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
17631 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17633 * tree-phinodes.c (make_phi_node): Mark static.
17634 * tree-flow.h (make_phi_node): Remove extern decl.
17635 * doc/gimple.texi (make_phi_node): Remove documentation.
17637 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17639 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
17640 * tree-ssa-sccvn.c (print_scc): Ditto.
17642 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17644 * doc/passes.texi (Full redundancy elimination): Fix typo.
17646 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17648 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
17650 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
17653 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
17655 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
17658 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
17660 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
17662 * config/avr/avr.md (code_stdname): Add ior, xor.
17663 (xior): New code iterator.
17664 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
17665 (*<code_stdname><mode>qi.byte1-3): Ditto.
17667 2012-02-23 Jakub Jelinek <jakub@redhat.com>
17669 PR tree-optimization/52019
17670 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
17673 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17675 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
17676 HAVE_INITFINI_ARRAY to work around namespace pollution in
17677 certain versions of newlib system headers.
17678 * config.in: Regenerate.
17679 * configure: Regenerate.
17680 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
17681 instead of HAVE_INITFINI_ARRAY.
17683 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
17686 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
17687 is not offsettable memory reference.
17689 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17692 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
17693 setting avr_need_clear_bss_p for __gnu_lto* symbols.
17695 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17697 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
17698 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
17700 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17702 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
17703 library on Solaris 8 even without TLS support.
17704 * configure: Regenerate.
17706 2012-02-22 Richard Guenther <rguenther@suse.de>
17708 PR middle-end/52329
17709 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
17710 for GIMPLE_DEBUG stmts.
17712 2012-02-22 Martin Jambor <mjambor@suse.cz>
17714 PR middle-end/51782
17715 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
17716 according to the base object.
17718 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
17720 PR rtl-optimization/50063
17721 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
17722 and 2 (8-bit SP) in operand 2.
17723 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
17724 setup to use movhi_sp_r instead of vanilla move to write SP.
17725 Adjust REG_CFA notes to superseed unspec.
17726 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
17728 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
17729 known to be off) only with TARGET_NO_INTERRUPTS. Never use
17730 irq_state 1 (IRQ known to be on) here.
17732 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
17734 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
17736 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
17737 assign_hard_reg): Likewise.
17739 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17741 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
17743 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17745 * config/avr/avr.md
17746 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
17747 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
17749 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
17751 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
17752 prototype from here to...
17753 * config/avr/avr.h: ...here.
17755 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
17758 * thumb2.md (thumb2_shiftsi3_short): Split register and
17759 immediate shifts. For register shifts tie operands 0 and 1.
17760 (peephole2 for above): Check that register-controlled shifts
17761 have suitably tied operands.
17763 2012-02-21 Quentin Neill <quentin.neill@amd.com>
17766 * config/i386/bdver1.md (bdver1_call, bdver1_push,
17767 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
17768 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
17769 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
17770 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
17771 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
17772 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
17773 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
17774 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
17775 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
17776 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
17777 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
17778 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
17779 bdver1_ssevector_avx256_unaligned_load,
17780 bdver1_ssevector_sse128_unaligned_load,
17781 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
17782 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
17783 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
17784 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
17785 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
17786 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
17787 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
17788 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
17789 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
17790 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
17791 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
17792 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
17793 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
17794 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
17795 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
17796 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
17797 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
17798 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
17799 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
17800 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
17801 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
17802 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
17803 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
17804 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
17805 bdver1_ssediv_double_load, bdver1_ssediv_double,
17806 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
17807 Add "bdver2" attribute.
17809 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17811 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
17812 default if possible and not specified otherwise.
17814 2012-02-21 Richard Guenther <rguenther@suse.de>
17816 PR middle-end/52314
17817 * gimplify.c (create_tmp_from_val): Use the main variant type
17818 for the type of the temporary we create.
17820 2012-02-21 Richard Guenther <rguenther@suse.de>
17822 PR tree-optimization/52324
17823 * gimplify.c (gimplify_expr): When re-gimplifying expressions
17824 do not gimplify a MEM_REF address operand if it is already
17827 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17829 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
17830 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
17832 2012-02-21 Richard Guenther <rguenther@suse.de>
17834 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
17835 nested_in_vect_loop.
17837 2012-02-21 Jakub Jelinek <jakub@redhat.com>
17839 PR tree-optimization/52318
17840 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
17841 vdef also to non-pure/const call stmts in the sequence.
17843 2012-02-21 Tristan Gingold <gingold@adacore.com>
17845 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
17847 2012-02-20 David S. Miller <davem@davemloft.net>
17849 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
17850 don't use the "rd %pc" instruction on v9 for PIC register loads.
17852 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
17854 PR middle-end/52141
17855 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
17856 in a transaction safe function.
17858 2012-02-20 Kai Tietz <ktietz@redhat.com>
17861 * stor-layout.c (place_field): Handle desired_align for
17864 2012-02-20 Richard Guenther <rguenther@suse.de>
17866 PR tree-optimization/52298
17867 * tree-vect-stmts.c (vectorizable_store): Properly use
17868 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
17870 (vectorizable_load): Likewise.
17871 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
17872 Access DR_STEP after ensuring it is not NULL.
17874 2012-02-20 Jakub Jelinek <jakub@redhat.com>
17876 PR tree-optimization/52286
17877 * fold-const.c (fold_binary_loc): For (X & C1) | C2
17878 optimization use double_int_to_tree instead of build_int_cst_wide,
17879 rewrite to use double_int vars.
17881 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17884 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
17886 Remove -e 0 from $gcc_cv_ld invocation.
17887 Only use __GLIBC_PREREQ if defined.
17888 Enable on Solaris since Solaris 8 patch.
17889 (gcc_SUN_LD_VERSION): New macro.
17890 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
17891 gcc_SUN_LD_VERSION for version number format.
17892 * configure: Regenerate.
17893 * varasm.c (get_elf_initfini_array_priority_section): Set
17894 SECTION_NOTYPE for non-default priority.
17895 Use get_section instead of get_unnamed_section to emit
17896 .init_array/.fini_array with default priority.
17898 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
17900 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
17901 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
17902 (mips_start_unique_function, mips_output_mips16_rdhwr)
17903 (mips_code_end): New functions.
17904 (TARGET_ASM_CODE_END): Define.
17906 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
17908 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
17909 to stubs with non-sibling calls.
17911 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
17913 * doc/invoke.texi (-fira-* options): Copy-edit.
17914 (ira-* parameters): Copy-edit.
17916 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
17918 * doc/invoke.texi: Minor copy-edits to bring into conformance with
17919 GCC coding conventions.
17921 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
17923 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
17924 when used as adjectives.
17926 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
17928 * doc/invoke.texi: Clean up "that"/"which" confusion.
17930 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
17932 * system.h: Poison SMALL_REGISTER_CLASSES
17933 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
17934 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
17936 2012-02-16 Jakub Jelinek <jakub@redhat.com>
17938 PR tree-optimization/52285
17939 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
17940 when deciding if a call is a tail call or tail recursion.
17942 2012-02-16 Kai Tietz <ktietz@redhat.com>
17944 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
17945 interger-constant displacement for UNSPEC_PCREL.
17947 2012-02-16 Jakub Jelinek <jakub@redhat.com>
17949 PR rtl-optimization/52208
17950 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
17951 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
17953 PR tree-optimization/52255
17954 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
17955 loop->header has virtual PHI, but exit_e->dest doesn't, add
17956 virtual PHI to exit_e->dest and adjust all uses after the loop.
17959 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
17960 children with clone_tree_hash, not after it.
17962 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
17964 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
17965 extended identifiers.
17967 2012-02-16 Jakub Jelinek <jakub@redhat.com>
17969 PR middle-end/51929
17970 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
17971 a same_body_alias, also test whether e->callee isn't a former
17972 or current clone of the decl this is a same body alias of.
17974 PR translation/52264
17975 * cgraphunit.c (verify_cgraph_node): Fix a typo.
17977 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
17979 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
17981 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17984 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
17985 force_reg instead of copy_to_reg for better optimization. Force
17986 non-register or memory operands into a register.
17988 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
17990 * extend.texi: Reserve upper bits of memory model for future use.
17992 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
17993 Anatoly Sokolov <aesok@post.ru>
17994 Eric Weddington <eric.weddington@atmel.com>
17997 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
17998 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
17999 Rewrite initializers for .macro.
18000 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
18001 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
18002 atxmega32d4, atxmega32x1.
18003 avrxmega4: atxmega64a3, atxmega64d3.
18004 avrxmega5: atxmega64a1, atxmega64a1u.
18005 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
18006 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
18007 avrxmega7: atxmega128a1, atxmega128a1u.
18008 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
18009 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
18010 (struct base_arch_s): Rename reserved to xmega_p.
18011 Rename reserved2 to have_rampd.
18012 (AVR_XMEGA): New define.
18013 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
18014 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
18015 * config/avr/predicates.md (io_address_operand): Take into
18016 account SFR offset.
18017 (low_io_address_operand): Ditto.
18018 (high_io_address_operand): Ditto.
18019 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
18020 (enabled, movhi_sp_r): Use them.
18021 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
18022 cpp_define_formatted to built-in define __AVR_ARCH__.
18023 (__AVR_XMEGA__): New built-in define.
18024 (__AVR_HAVE_RAMPD__): New built-in define.
18025 (__AVR_HAVE_RAMPX__): New built-in define.
18026 (__AVR_HAVE_RAMPY__): New built-in define.
18027 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
18029 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
18030 (avr_option_override): Initialize them.
18031 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
18032 (avr_init_expanders): Initialize them. No more block several calls.
18033 (emit_push_sfr): New static function.
18034 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
18036 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
18037 (avr_print_operand): Print addreeses as symbols for
18038 RAMPX, RAMPY, RAMPD, CCP.
18039 (output_movhi): Handle AVR_XMEGA when writing to SP.
18040 (avr_out_movhi_mr_r_xmega): New static function.
18041 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
18042 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
18043 __RAMPD__, __CCP__ as needed.
18045 * config/avr/multilib.h: Regenerate.
18046 * config/avr/t-multilib: Regenerate.
18047 * config/avr/avr-tables.opt: Regenerate.
18049 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
18051 PR tree-optimization/50561
18052 * graphite-flattening.c (lst_project_loop): Do not
18053 remove old scattering dimensions after flattening.
18054 (lst_do_flatten): Likewise.
18056 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
18058 * doc/extend.texi (AVR Built-in Functions): Remove doc for
18059 __builtin_avr_map8, __builtin_avr_map16.
18060 Document __builtin_avr_insert_bits.
18062 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
18063 (insert_bits): New insn.
18064 (adjust_len.map_bits): Rename to insert_bits.
18065 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
18066 * avr-protos.h (avr_out_map_bits): Remove.
18067 (avr_out_insert_bits, avr_has_nibble_0xf): New.
18068 * config/avr/constraints.md (Cxf,C0f): New.
18069 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
18070 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
18071 New built-in define __BUILTIN_AVR_INSERT_BITS.
18072 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
18073 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
18074 (avr_move_bits): Rewrite.
18075 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
18077 (avr_map_op_t): New typedef.
18078 (avr_map_op): New static variable.
18079 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
18080 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
18081 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
18082 (bdesc_3arg, avr_expand_triop_builtin): New.
18083 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
18084 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
18085 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
18086 (avr_map_equal_p, avr_map_sig_p): Remove.
18087 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
18088 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18089 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
18090 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18091 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
18092 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
18094 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
18096 * config/c6x/c6x.md (reserve_cycles): New attribute.
18097 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
18098 don't reserve functional units after the branch occurs.
18100 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
18102 PR middle-end/52142
18103 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
18104 functions into non-tm_pure functions.
18106 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
18109 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
18110 (iterative_hash_canonical_type): Likewise.
18111 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
18114 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
18116 * haifa-sched.c (prune_ready_list): Ensure that if there is a
18117 sched-group insn, it either remains alone or the entire list is pruned.
18119 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
18121 * doc/install.texi (Prerequisites): Fix grammar.
18122 (Configuration): Likewise.
18124 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
18126 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
18127 MPC as part of GCC before describing configuring with --with-gmp etc.
18128 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
18129 sources are present.
18131 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18134 * dwarf2out.c (clone_tree_hash): New function.
18135 (copy_decls_walk): Use it instead of clone_tree.
18137 2012-02-14 Richard Guenther <rguenther@suse.de>
18139 PR tree-optimization/52244
18140 PR tree-optimization/51528
18141 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
18142 replacements for integral types.
18144 2012-02-14 Walter Lee <walt@tilera.com>
18146 * config.gcc: Handle tilegx and tilepro.
18147 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
18148 tilegx and tilepro.
18149 Add HAVE_AS_TLS check for tilegx and tilepro.
18150 * configure: Regenerate.
18151 * doc/contrib.texi: Add Mat Hostetter and self.
18152 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
18153 Document instruction intrinsics and network accessing intrinsics.
18154 (TILEPro Built-in Functions): New node. Document instruction
18155 intrinsics and network accessing intrinsics.
18156 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
18157 (Specific, tilepro-*-linux*): Likewise.
18158 * doc/invoke.texi (TILE-Gx Options): New section.
18159 (TILEPro Options): New section.
18160 * doc/md.texi (TILE-Gx): New section.
18161 (TILEPro): New section.
18162 * common/config/tilegx/tilegx-common.c: New file.
18163 * common/config/tilepro/tilepro-common.c: New file.
18164 * config/tilegx/constraints.md: New file.
18165 * config/tilegx/linux.h: New file.
18166 * config/tilegx/mul-tables.c: New file.
18167 * config/tilegx/predicates.md: New file.
18168 * config/tilegx/sync.md: New file.
18169 * config/tilegx/t-tilegx: New file.
18170 * config/tilegx/tilegx-builtins.h: New file.
18171 * config/tilegx/tilegx-c.c: New file.
18172 * config/tilegx/tilegx-generic.md: New file.
18173 * config/tilegx/tilegx-modes.def: New file.
18174 * config/tilegx/tilegx-multiply.h: New file.
18175 * config/tilegx/tilegx-protos.h: New file.
18176 * config/tilegx/tilegx.c: New file.
18177 * config/tilegx/tilegx.h: New file.
18178 * config/tilegx/tilegx.md: New file.
18179 * config/tilegx/tilegx.opt: New file.
18180 * config/tilepro/constraints.md: New file.
18181 * config/tilepro/gen-mul-tables.cc: New file.
18182 * config/tilepro/linux.h: New file.
18183 * config/tilepro/mul-tables.c: New file.
18184 * config/tilepro/predicates.md: New file.
18185 * config/tilepro/t-tilepro: New file.
18186 * config/tilepro/tilepro-builtins.h: New file.
18187 * config/tilepro/tilepro-c.c: New file.
18188 * config/tilepro/tilepro-generic.md: New file.
18189 * config/tilepro/tilepro-modes.def: New file.
18190 * config/tilepro/tilepro-multiply.h: New file.
18191 * config/tilepro/tilepro-protos.h: New file.
18192 * config/tilepro/tilepro.c: New file.
18193 * config/tilepro/tilepro.h: New file.
18194 * config/tilepro/tilepro.md: New file.
18195 * config/tilepro/tilepro.opt: New file.
18197 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18199 PR tree-optimization/52210
18200 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
18201 vect_model_simple_cost with two entry vect_def_type array instead
18202 of an address of dt.
18204 2012-02-14 Richard Guenther <rguenther@suse.de>
18207 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
18208 Do not stream DECL_QUALIFIER.
18209 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
18210 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
18211 (find_decls_types_r): Do not walk DECL_QUALIFIER.
18213 2012-02-14 Jakub Jelinek <jakub@redhat.com>
18216 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
18219 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18222 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
18223 * cselib.c (cselib_subst_to_values_from_insn): New function.
18224 * sched-deps.c (add_insn_mem_dependence,
18225 sched_analyze_1, sched_analyze_2): Use it.
18227 2012-02-13 Jan Hubicka <jh@suse.cz>
18229 PR middle-end/52214
18230 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
18232 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
18234 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
18235 (GTM_SELF_SPECS): Define if not already defined.
18236 (driver_self_specs): Add GTM_SELF_SPECS.
18237 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
18238 (GTM_SELF_SPECS): Define.
18239 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
18240 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
18242 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18244 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
18247 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
18249 PR middle-end/52230
18250 * omp-low.c (expand_omp_for): If a static schedule without chunk size
18251 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
18253 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
18256 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
18258 2012-02-13 Richard Guenther <rguenther@suse.de>
18260 PR translation/52211
18261 * passes.c (enable_disable_pass): Fix typo.
18263 2012-02-13 Jakub Jelinek <jakub@redhat.com>
18265 PR middle-end/52209
18266 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
18267 XOR for reduce_bit_field if type is unsigned.
18269 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
18271 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
18272 disallow changes from SFmode to mode with different size in FP regs.
18274 2012-02-12 Robert Millan <rmh@gnu.org>
18275 Gerald Pfeifer <gerald@pfeifer.com>
18277 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
18280 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
18282 PR rtl-optimization/52175
18283 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
18284 to frame-related instructions.
18286 2012-02-10 Jason Merrill <jason@redhat.com>
18289 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
18290 (demangle_new_symbols): Fill it.
18291 (scan_linker_output): Walk it.
18292 (start_tweaking): Split out from scan_linker_output.
18293 (maybe_tweak): Update sym->chosen.
18294 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
18296 2012-02-11 Jakub Jelinek <jakub@redhat.com>
18299 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
18301 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
18303 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
18304 having the same mode as previous compare.
18306 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
18308 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
18309 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
18310 (nonlocal_goto_internal): Likewise.
18311 (nonlocal_goto): Emit a use and an indirect jump directly.
18313 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
18316 * doc/extend.texi : Update comments for __atomic_compare_exchange and
18317 __atomic_{is,always}_lock_free.
18319 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
18322 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
18323 negative constant address for TARGET_X32.
18325 2012-02-10 Richard Henderson <rth@redhat.com>
18327 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
18328 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
18329 for GIMPLE_TRANSACTION. Tidy if's into a switch.
18331 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18332 Ira Rosen <irar@il.ibm.com>
18334 PR tree-optimization/50031
18335 * targhooks.c (default_builtin_vectorization_cost): Handle
18336 vec_promote_demote.
18337 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
18338 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
18339 all types of reduction and pattern statements.
18340 (vect_estimate_min_profitable_iters): Likewise.
18341 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
18342 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
18343 for explicit realigns.
18344 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
18345 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
18346 vec_promote_demote.
18347 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
18348 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
18349 vec_perm for VSX and handle vec_promote_demote.
18351 2012-02-10 Jakub Jelinek <jakub@redhat.com>
18353 PR middle-end/52177
18354 * builtins.c (fold_builtin_atomic_always_lock_free,
18355 expand_builtin_atomic_always_lock_free,
18356 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
18357 Return and/or test boolean_true_node/boolean_false_node instead of
18358 integer_one_node/integer_zero_node.
18360 2012-02-10 Jan Hubicka <jh@suse.cz>
18362 PR middle-end/48600
18363 * predict.c (predict_paths_for_bb): Prevent looping.
18364 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
18366 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
18368 * config/arm/arm.c (output_move_double): In one case properly
18369 count number of instructions that will be emitted.
18371 2012-02-10 Richard Guenther <rguenther@suse.de>
18373 PR translation/52193
18374 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
18376 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
18378 PR middle-end/52140
18379 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
18381 2012-02-09 Jakub Jelinek <jakub@redhat.com>
18384 * var-tracking.c (emit_note_insn_var_location): If
18385 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
18386 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
18387 non-NOTE_DURING_CALL_P insn.
18389 2012-02-09 Bin Cheng <bin.cheng@arm.com>
18391 PR middle-end/51867
18392 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
18394 2012-02-08 Magnus Granberg <zorry@gentoo.org>
18397 * gcc.c (switch_matches) Support switches with separated form,
18400 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
18402 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
18404 (RAMPZ_ADDR): Ditto.
18405 * config/avr/avr.c (avr_addr_t): New typedef.
18406 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
18407 (avr_init_expanders): Initialize it.
18408 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
18410 (expand_epilogue): Ditto.
18411 (avr_print_operand): Ditto.
18412 (avr_file_start): Ditto.
18413 (avr_emit_movmemhi): Ditto.
18415 2012-02-08 Richard Guenther <rguenther@suse.de>
18417 PR tree-optimization/46886
18418 * tree-flow.h (do_while_loop_p): Declare.
18419 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
18420 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
18422 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
18424 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
18425 always succeed for integers larger than a native word.
18427 2012-02-08 Richard Guenther <rguenther@suse.de>
18429 PR rtl-optimization/52170
18430 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
18431 properly handle integer vector modes.
18433 2012-02-08 Jakub Jelinek <jakub@redhat.com>
18435 PR gcov-profile/52150
18436 * coverage.c: Include target.h.
18437 (build_var): Call targetm.strip_name_encoding on the assembler name.
18438 Change one _ into . or $ if the target allows it.
18439 * Makefile.in (coverage.o): Depend on $(TARGET_H).
18441 PR rtl-optimization/52139
18442 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
18443 is a BARRIER after emit_insn_after_noloc, move BB_END
18444 to the last non-BARRIER insn before it.
18446 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
18448 PR middle-end/24306
18449 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
18450 (mips_gimplify_va_arg_expr): Call it instead of
18451 std_gimplify_va_arg_expr.
18453 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18455 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
18456 message for -mno-pointers-to-nested-function.
18458 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
18460 PR middle-end/51994
18461 * expr.c (get_inner_reference): If there is an offset, add a negative
18462 bit position to it (if any).
18464 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18466 PR rtl-optimization/52060
18467 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
18468 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
18469 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
18470 and/or i0src_copy2 when needed.
18472 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18474 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
18475 or LTOPLUGINSONAME if have_c.
18477 * config/freebsd-spec.h: Add comment about what macros can be defined
18479 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
18480 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
18483 2012-02-07 Richard Guenther <rguenther@suse.de>
18485 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
18486 newline in -alias dumps.
18488 2012-02-07 Kai Tietz <ktietz@redhat.com>
18489 Dave Korn <dave.korn.cygwin@gmail.com>
18492 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
18493 Take care that typinfo gets dllexport-attribute.
18495 2012-02-07 Jakub Jelinek <jakub@redhat.com>
18497 PR middle-end/52074
18498 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
18499 if modifier < EXPAND_SUM call force_operand on the result.
18501 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
18503 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
18504 adding __forwarder_dst__ prefix if a forwarder_section attribute is
18506 (epiphany_function_type): Replace types for specific interrupts with
18507 EPIPHANY_FUNCTION_INTERRUPT.
18508 (EPIPHANY_INTERRUPT_P): Update.
18509 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
18510 New static function.
18511 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
18512 <disinterrupt>: Affects type identity.
18513 (epiphany_handle_interrupt_attribute): Handle variable number of
18515 (epiphany_compute_function_type): Update for new
18516 epiphany_function_type definition.
18517 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
18518 handlers with a longcall forwarder.
18519 (epiphany_start_function): Handle multiple interrupt arguments and/or
18520 forwarder_section attribute.
18522 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
18525 2012-02-07 Alan Modra <amodra@gmail.com>
18528 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
18531 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18533 PR tree-optimization/50969
18534 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
18535 use vec_perm rather than vector_stmt.
18536 (vect_model_load_cost): Likewise.
18537 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
18538 vec_perm to be the same as other vector statements.
18539 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
18540 cost of vec_perm for TARGET_VSX.
18542 2012-02-06 Richard Guenther <rguenther@suse.de>
18544 PR tree-optimization/52115
18545 * tree-sra.c (access_has_replacements_p): New function.
18546 (sra_modify_assign): Use it to decide whether a use is uninitialized.
18548 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
18550 PR middle-end/52047
18551 * trans-mem.c (expand_call_tm): Add an assertion.
18552 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
18555 2012-02-06 Richard Guenther <rguenther@suse.de>
18557 PR tree-optimization/50955
18558 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
18559 raise cost of expressions that replace an address with an
18560 expression based on a different pointer.
18562 2012-02-06 Jakub Jelinek <jakub@redhat.com>
18565 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
18566 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
18568 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
18571 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
18572 -Weffc++ and specify guidelines come from second edition.
18574 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
18576 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
18577 (sibcall_value_multiple_internal, call_split, call_internal_direct)
18578 (call_direct_split, call_value_split, call_value_internal_direct)
18579 (call_value_direct_split, call_value_multiple_split): Use jal and
18580 jal_macro attributes.
18582 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
18584 * reload1.c (reload_regs_reach_end_p): Replace with...
18585 (reload_reg_rtx_reaches_end_p): ...this function.
18586 (new_spill_reg_store): Update commentary.
18587 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
18588 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
18589 before setting new_spill_reg_store.
18590 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
18591 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
18592 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
18593 for non-spill reload registers.
18595 2012-02-05 Ira Rosen <irar@il.ibm.com>
18597 PR tree-optimization/52091
18598 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
18599 (vect_is_simple_use_1): Likewise.
18600 * tree-vect-loop.c (vectorizable_reduction): Update calls
18601 to vect_is_simple_use_1 and vect_is_simple_use.
18602 (vectorizable_live_operation): Likewise.
18603 * tree-vect-patterns.c (widened_name_p,
18604 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
18605 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
18606 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
18607 vectorizable_shift,vectorizable_operation, vectorizable_store,
18608 vectorizable_load): Likewise.
18609 (vect_is_simple_cond): Add an argument, pass it to
18610 vect_is_simple_use_1.
18611 (vectorizable_condition): Update calls to vect_is_simple_cond,
18612 vect_is_simple_use.
18613 (vect_is_simple_use): Add an argument, the statement in which
18614 OPERAND is used. Check that if OPERAND's def stmt is a double
18615 reduction phi node, the use is a phi node too.
18616 (vect_is_simple_use_1): Add an argument, pass it to
18617 vect_is_simple_use.
18618 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
18619 to vect_is_simple_use.
18621 2012-02-04 Jakub Jelinek <jakub@redhat.com>
18623 PR rtl-optimization/52095
18624 * modulo-sched.c (dump_insn_locator): New function.
18625 (loop_canon_p, sms_schedule): Use it.
18627 PR rtl-optimization/52113
18628 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
18629 even for decomposable shift/zext insns.
18631 2012-02-03 Jakub Jelinek <jakub@redhat.com>
18632 Zdenek Dvorak <ook@ucw.cz>
18634 PR rtl-optimization/52092
18635 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
18636 on get_iv_value result.
18638 2012-02-02 Andrew Pinski <apinski@cavium.com>
18640 PR middle-end/47982
18641 PR middle-end/43967
18642 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
18644 2012-02-02 Jakub Jelinek <jakub@redhat.com>
18646 PR middle-end/48071
18647 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
18649 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
18651 PR rtl-optimization/49800
18652 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
18653 (sched_finish): Call regstat_free_n_sets_and_refs.
18655 2012-02-02 Jia Liu <proljc@gmail.com>
18657 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
18660 2012-02-02 Jan Hubicka <jh@suse.cz>
18661 Tom de Vries <tom@codesourcery.com>
18663 PR middle-end/51998
18664 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
18665 * varpool.c (varpool_analyze_pending_decls): Likewise.
18667 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
18668 Jayant R Sonar <jayant.sonar@kpitcummins.com>
18670 * config.gcc: Add cr16-* support.
18672 * doc/extend.texi: Document cr16 extensions.
18673 * doc/install.texi: Document cr16 install.
18674 * doc/invoke.texi: Document cr16 options.
18675 * doc/md.texi: Document cr16 constraints.
18677 * common/config/cr16/cr16-common.c: New file.
18678 * config/cr16/cr16.c: New file.
18679 * config/cr16/cr16.h: New file.
18680 * config/cr16/cr16.md: New file.
18681 * config/cr16/cr16.opt: New file.
18682 * config/cr16/cr16-protos.h: New file.
18683 * config/cr16/predicates.md: New file.
18684 * config/cr16/constraints.md: New file.
18685 * config/cr16/t-cr16: New file.
18687 2012-02-02 Jakub Jelinek <jakub@redhat.com>
18690 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
18691 that operands[2] is either immediate, or q_regs_operand.
18693 PR tree-optimization/52073
18694 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
18695 a pattern stmt for pattern uses, ignore uses outside of the loop.
18697 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
18699 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
18700 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
18701 (OUT_AS1, OUT_AS2): Remove.
18703 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
18705 PR rtl-optimization/51374
18706 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
18707 to cross other volatile_refs_p insns.
18709 2012-02-01 Richard Guenther <rguenther@suse.de>
18711 * doc/invoke.texi (fno-inline): Clarify documentation.
18712 (finline-small-functions): Likewise.
18713 (finline-functions): Likewise.
18714 * common.opt (finline): Adjust comment and documentation.
18715 (finline-small-functions): Clarify documentation.
18716 (finline-functions): Likewise.
18717 (finline-functions-called-once): Likewise.
18719 2012-02-01 Tristan Gingold <gingold@adacore.com>
18721 * c-typeck.c (composite_type): Keep mode for pointers.
18723 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
18725 * function.h (regno_reg_rtx): Adjust comment.
18726 * reginfo.c (init_reg_modes_target): Only use the previous mode
18727 if it fits within one register. Remove MIPS comment.
18729 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18732 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
18734 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18736 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
18737 to srak instruction.
18739 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
18741 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
18743 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18748 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
18750 2012-01-31 Richard Guenther <rguenther@suse.de>
18752 PR tree-optimization/51528
18753 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
18756 2012-01-31 Jakub Jelinek <jakub@redhat.com>
18761 * ree.c (add_removable_extension): Change def_map argument
18762 to unsigned *, store in def_map 1 + offset into *insn_list vector
18763 instead of pointers into the vector.
18764 (find_removable_extensions): Adjust caller.
18766 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
18768 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
18769 Transform all "* quoted-c-code" to { c-code }.
18770 Remove redundant test for "optimize" in combine patterns.
18771 Move (include "avr-dimode.md") to end of file.
18773 2012-01-30 Bin Cheng <bin.cheng@arm.com>
18776 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
18777 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
18779 2012-01-30 Richard Guenther <rguenther@suse.de>
18781 PR tree-optimization/52028
18782 * tree-loop-distribution.c (ldist_gen): Properly update
18785 2012-01-30 Jakub Jelinek <jakub@redhat.com>
18788 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
18789 set_cur_line_info_table if not emitting debug info.
18791 PR tree-optimization/52046
18792 * tree-vect-patterns.c (check_bool_pattern): Give up if
18793 a comparison could throw.
18796 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
18798 2012-01-30 Richard Guenther <rguenther@suse.de>
18800 PR tree-optimization/52045
18801 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
18802 SSA form if cfgcleanup did anything.
18804 2012-01-30 Richard Guenther <rguenther@suse.de>
18806 PR tree-optimization/52045
18807 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
18808 before computing final todo.
18810 2012-01-30 Richard Guenther <rguenther@suse.de>
18812 PR tree-optimization/51528
18813 * tree-sra.c (sra_modify_assign): Re-factor in preparation
18816 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
18818 * df-problems.c (df_kill_notes): Check that the use refers
18819 to the note under examination.
18821 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
18824 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
18825 parameter and use short-lived pseudos.
18826 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
18827 (sparc_expand_vector_init): Const-ify local variables and adjust
18828 calls to above functions.
18830 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
18832 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
18834 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
18836 * doc/invoke.texi: Make usage of "compile time" and
18837 "run time"/"runtime" consistent throughout the file.
18839 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
18841 * config/alpha/alpha.c (alpha_option_override): Default to
18842 full IEEE compliance mode for Go language.
18844 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
18846 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
18847 (LINK_SSP_SPEC): Define.
18849 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18852 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
18855 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
18857 * doc/invoke.texi: Correct hyphenation of "floating point",
18858 "double precision", and related terminology throughout the file.
18860 2012-01-28 Jakub Jelinek <jakub@redhat.com>
18863 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
18864 arm_general_register_operand predicate for operand 2 instead of
18867 2012-01-27 Ian Lance Taylor <iant@google.com>
18870 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
18871 * builtins.c (expand_builtin_init_trampoline): Add onstack
18872 parameter. Change caller.
18873 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
18874 * tree.c (build_common_builtin_nodes): Declare
18875 __builtin_init_heap_trampoline.
18877 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
18879 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
18880 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
18881 * config/avr/avr.c: Ditto.
18882 (avr_regnames): Remove because unused.
18883 * config/avr/avr.md (*cpse.ne): New peephole.
18884 (*cpse.eq): New peephole from former cpse peepholes.
18886 2012-01-27 Michael Eager <eager@eagercon.com>
18888 * config/microblaze.c (microblaze_emit_compare): Correct
18889 test after pcmp instruction.
18891 2012-01-27 Richard Guenther <rguenther@suse.de>
18893 PR tree-optimization/52020
18894 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
18896 2012-01-27 Richard Guenther <rguenther@suse.de>
18898 * ipa-pure-const.c (check_stmt): Clobbers do not make a
18899 function non-const/pure.
18901 2012-01-27 Richard Guenther <rguenther@suse.de>
18903 PR tree-optimization/50444
18904 * tree-sra.c (build_ref_for_offset): Properly adjust the
18905 MEM_REF type for unaligned accesses.
18907 2012-01-27 Richard Guenther <rguenther@suse.de>
18909 PR tree-optimization/50444
18910 * expr.c (mem_ref_refers_to_non_mem_p): New function.
18911 (expand_assignment): Use it. Properly handle misaligned
18912 bases when expanding stores to component references.
18913 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
18914 refactor that case.
18916 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
18918 PR middle-end/51389
18919 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
18920 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
18921 * tree-data-ref.c (find_data_references_in_loop): Make static.
18922 (compute_all_dependences): Change return type to bool. Bail out
18923 for too many datarefs in a loop. Move the hunk resetting the data
18924 dependences vector from ...
18925 (compute_data_dependences_for_loop): ... here. Account for
18926 compute_all_dependences returning false.
18927 (compute_data_dependences_for_bb): Likewise.
18928 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
18929 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
18931 2012-01-27 Richard Guenther <rguenther@suse.de>
18933 PR middle-end/51959
18934 * expr.c (store_field): Use the alias-set of the scratch memory
18937 2012-01-27 Tom de Vries <tom@codesourcery.com>
18939 PR tree-optimization/51990
18940 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18942 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
18944 2012-01-27 Jakub Jelinek <jakub@redhat.com>
18947 * var-tracking.c (reverse_op): Don't add any reverse operation
18948 if V already has any constant locations.
18950 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
18952 * doc/invoke.texi: Correct usage of "command line" (noun)
18953 vs "command-line" (adjective) throughout.
18955 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
18957 * doc/invoke.texi (Language Independent Options): Move
18958 -Wcoverage-mismatch blurb from here....
18959 (Warning Options): ...to here.
18961 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
18963 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18964 Set rs6000_always_hint to false for 476.
18966 2012-01-27 Matthias Klose <doko@ubuntu.com>
18968 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
18970 * incpath.c (add_standard_paths): Likewise.
18972 2012-01-27 Richard Henderson <rth@redhat.com>
18974 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
18975 * config/m68k/sync.md (atomic_test_and_set): Rename from
18976 sync_test_and_setqi and adjust the operands.
18977 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
18978 and unconditionally enable.
18980 2012-01-27 Richard Henderson <rth@redhat.com>
18982 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
18983 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
18984 (ldstub): Rename from ldstubqi.
18985 (ldstub<I24MODE>): Remove.
18987 2012-01-27 Richard Henderson <rth@redhat.com>
18989 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
18990 * c-cppbuiltin.c (cpp_atomic_builtins): Define
18991 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
18992 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
18993 * doc/tm.texi: Rebuild.
18995 2012-01-27 Richard Henderson <rth@redhat.com>
18997 * optabs.c (gen_atomic_test_and_set): Remove default.
18998 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
19000 2012-01-26 Jakub Jelinek <jakub@redhat.com>
19002 PR rtl-optimization/51978
19003 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
19004 (combine_reaching_defs): Likewise.
19005 (struct re_info): Remove.
19006 (add_removable_extension): Remove x and data arguments,
19007 add insn, insn_list and def_map. Use the arguments directly
19008 instead of using struct re_info.
19009 (find_removable_extensions): Don't call add_removable_extension
19010 through note_stores, instead just call it with single_set
19011 result if non-NULL.
19012 (find_and_remove_re): Pass curr_cand->expr instead of
19013 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
19015 2012-01-26 Michael Matz <matz@suse.de>
19017 PR tree-optimization/46590
19018 * cfgexpand.c: Revert last change (r183305).
19019 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
19021 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
19022 checking for emptiness.
19024 2012-01-26 Jakub Jelinek <jakub@redhat.com>
19026 PR middle-end/51895
19027 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
19028 non-addressable non-BLKmode base correctly.
19030 2012-01-26 Michael Matz <matz@suse.de>
19032 PR tree-optimization/48794
19033 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
19034 regions referenced from RESX/EH_DISPATCH.
19036 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19038 * config/s390/s390.h: Make BRANCH_COST an option.
19039 * config/s390/s390.opt: New option -mbranch-cost.
19041 2012-01-26 Richard Henderson <rth@redhat.com>
19043 Revert 2012-01-24 change:
19044 * trans-mem.c (requires_barrier): Do not instrument thread local
19045 variables and emit save/restore for them.
19047 2012-01-25 Jakub Jelinek <jakub@redhat.com>
19049 PR middle-end/51986
19050 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
19053 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
19055 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
19058 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
19061 Rename __pgm to __flash.
19062 Rename __pgm1 to __flash1.
19063 Rename __pgm2 to __flash2.
19064 Rename __pgm3 to __flash3.
19065 Rename __pgm4 to __flash4.
19066 Rename __pgm5 to __flash5.
19067 Rename __pgmx to __memx.
19068 * doc/extend.texi (AVR Named Address Spaces)
19069 Rename address space names as indicated above.
19070 * config/avr/avr.c (avr_addrspace): Ditto.
19072 * config/avr/avr-protos.h
19073 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
19074 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
19075 * config/avr/predicates.md: Ditto.
19076 * config/avr/avr.c Ditto, and
19077 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
19078 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
19080 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
19081 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
19082 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
19083 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
19084 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
19085 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
19086 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
19087 * config/avr/avr.c: Ditto.
19088 * config/avr/avr.md: Ditto.
19090 2012-01-25 Jason Merrill <jason@redhat.com>
19093 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
19095 2012-01-25 Jakub Jelinek <jakub@redhat.com>
19097 PR tree-optimization/51987
19098 * tree-data-ref.c (get_references_in_stmt): Handle references in
19099 non-volatile GIMPLE_ASM.
19101 2012-01-25 Richard Guenther <rguenther@suse.de>
19103 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
19104 bases are dereferenced.
19106 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
19108 PR rtl-optimization/48374
19109 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
19111 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
19113 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
19114 compute_data_dependences_for_loop returns false.
19115 * tree-parloops.c (loop_parallel_p): Likewise.
19117 2012-01-25 Richard Guenther <rguenther@suse.de>
19119 * tree.h (get_pointer_alignment_1): Declare.
19120 * builtins.c (get_pointer_alignment_1): New function.
19121 (get_pointer_alignment): Use it.
19123 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19125 PR rtl-optimization/48308
19126 * combine.c (enum undo_kind): Add UNDO_LINKS.
19127 (struct undo): Add member l to other_contents and where.
19128 (do_SUBST_LINK): New.
19130 (try_combine): Handle LOG_LINKS for the dummy i1 case.
19131 (undo_all): Handle UNDO_LINKS.
19133 2012-01-25 Richard Henderson <rth@redhat.com>
19135 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
19138 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19140 * optabs.c (gen_atomic_test_and_set): Use each argument.
19142 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19144 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
19145 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
19146 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
19147 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
19148 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
19149 TARGET_PAIRED_SINGLE_FLOAT.
19151 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19153 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
19154 (in_struct, return_val): Remove MEM documentation.
19155 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
19156 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
19157 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
19159 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19160 * cfgexpand.c (add_alias_set_conflicts): Likewise.
19161 * expr.c (store_field): Likewise.
19162 * function.c (assign_stack_temp_for_type): Likewise.
19163 * ifcvt.c (noce_try_cmove_arith): Likewise.
19164 * reload1.c (reload): Likewise.
19165 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
19166 (alpha_set_memflags): Likewise.
19167 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
19169 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
19171 * rtl.h (true_dependence, canon_true_dependence): Remove varies
19173 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
19174 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
19175 (true_dependence_1, true_dependence, canon_true_dependence): Remove
19177 * cselib.c (cselib_rtx_varies_p): Delete.
19178 (cselib_invalidate_mem): Update call to canon_true_dependence.
19179 * dse.c (record_store, check_mem_read_rtx): Likewise.
19180 (scan_reads_nospill): Likewise.
19181 * cse.c (check_dependence): Likewise.
19182 (cse_rtx_varies_p): Delete.
19183 * expr.c (safe_from_p): Update call to true_dependence.
19184 * ira.c (validate_equiv_mem_from_store): Likewise.
19185 (memref_referenced_p): Likewise.
19186 * postreload-gcse.c (find_mem_conflicts): Likewise.
19187 * sched-deps.c (sched_analyze_2): Likewise.
19188 * store-motion.c (load_kills_store): Likewise.
19189 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
19190 * gcse.c (mems_conflict_for_gcse_p): Likewise.
19191 (compute_transp): Update call to canon_true_dependence.
19193 2012-01-25 Richard Henderson <rth@redhat.com>
19195 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
19196 (maybe_emit_atomic_test_and_set): New.
19197 (expand_sync_lock_test_and_set): Use it.
19198 (expand_atomic_test_and_set): Likewise.
19199 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
19200 the implementation; clarify implementation defined details.
19201 * doc/md.texi (atomic_test_and_set): Document.
19203 2012-01-25 Richard Henderson <rth@redhat.com>
19205 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
19207 2012-01-25 Richard Henderson <rth@redhat.com>
19210 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
19211 to effect no-op split.
19213 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
19216 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
19217 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
19218 (BT_FN_VOID_PTR_INT_SIZE): New.
19219 (BT_FN_UINT_UINT_VAR): Remove.
19220 (BT_FN_UINT32_UINT32_VAR): New.
19221 (BT_FN_DOUBLE_VPTR): Remove.
19222 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
19224 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
19225 (_ITM_changeTransactionMode): Same.
19226 (_ITM_memmoveRtWt): Change return type to void.
19227 (_ITM_memcpyRtWt): Same.
19228 (_ITM_memsetW): Same.
19229 (_ITM_RaRD): Change types to double.
19234 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
19236 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
19237 Patrick Marlier <patrick.marlier@gmail.com>
19239 * trans-mem.c (requires_barrier): Do not instrument thread local
19240 variables and emit save/restore for them.
19242 2012-01-24 Jason Merrill <jason@redhat.com>
19245 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
19246 output static aliases.
19248 2012-01-24 Jakub Jelinek <jakub@redhat.com>
19251 * common.opt (-pie, -shared, pie, shared): Change from Common to
19253 * gcc.c (display_help): Display help for -pie and -shared.
19255 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
19258 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
19259 Remove note on size/offset limitation.
19260 (AVR Variable Attributes): Add example how to read data located
19261 with progmem. Refer to named address spaces.
19262 * doc/invoke.texi (AVR Options): Fix typo.
19264 2012-01-24 Richard Guenther <rguenther@suse.de>
19266 Forward-port to trunk
19267 2010-09-21 Jakub Jelinek <jakub@redhat.com>
19269 PR middle-end/45678
19270 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
19271 op0 isn't sufficiently aligned and there is movmisalignM
19272 insn for mode, use it to load op0 into a temporary register.
19274 2012-01-24 Jakub Jelinek <jakub@redhat.com>
19277 * target.def (const_not_ok_for_debug_p): New hook.
19278 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
19280 * doc/tm.texi: Regenerated.
19281 * dwarf2out.c (const_ok_for_output_1): If
19282 targetm.const_not_ok_for_debug_p returns true, fail.
19283 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
19285 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
19287 2012-01-23 Kai Tietz <ktietz@redhat.com>
19290 * config/i386/predicates.md (symbolic_operand): Allow
19291 UNSPEC_PCREL as PIC expression for lea.
19292 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
19293 * config/i386/i386.c (ix86_delegitimize_address): Handle
19294 UNSPEC_PCREL for none-MEM, too.
19296 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
19298 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
19299 (ipa_tm_create_version_alias): Same.
19301 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
19304 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
19305 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
19307 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
19308 Patrick Marlier <patrick.marlier@gmail.com>
19309 Iain Sandoe <developer@sandoe-acoustics.co.uk>
19312 * lto-wrapper.c (run_gcc): Pass the LTO section name to
19313 simple_object_start_read.
19315 2012-01-23 Richard Guenther <rguenther@suse.de>
19318 PR tree-optimization/51895
19319 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
19320 parameter decomposition into BLKmode components.
19322 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
19324 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
19325 fake variables for restrict-qualified pointers whose pointed-to type
19326 contains a placeholder.
19328 2012-01-23 Richard Guenther <rguenther@suse.de>
19330 PR tree-optimization/51949
19331 * ipa-split.c (execute_split_functions): Do not split malloc functions.
19333 2012-01-23 Jakub Jelinek <jakub@redhat.com>
19335 PR rtl-optimization/51933
19336 * ree.c (transform_ifelse): Return true right away if dstreg is
19337 already wider or equal to cand->mode.
19338 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
19339 (make_defs_and_copies_lists): Remove defs_list and copies_list
19340 arguments, add state argument, just truncate state->work_list
19341 instead of always allocating and freeing the vector. Assert that
19342 get_defs succeeds instead of returning 2. Changed return type to bool.
19343 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
19344 have ext_src_mode, see if it has been modified already with the
19345 right kind of extension and has been extended before from the
19346 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
19347 just return true. Remember the original mode in state->modified array.
19348 (combine_reaching_defs): Add state argument. Don't allocate and
19349 free here def_list, copied_list and vec vectors, instead just
19350 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
19351 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
19352 Add state variable, clear vectors in it, initialize state.modified
19353 if needed. Free all the vectors at the end and state.modified too.
19354 Don't skip a candidate if the extension expression has been modified.
19356 2012-01-22 Douglas B Rupp <rupp@gnat.com>
19359 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
19360 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
19361 (extra_options) interix.opt -> i386/interix.opt"
19362 (extra_objs):Add winnt-stubs.o
19363 * configure.ac: Add interix to target_os .comm on PE check.
19364 * configure: Regenerate.
19365 * config/interix3.h: Delete and move bits to..
19366 * config/interix.h: Delete and move bits to..
19367 * config/i386/i386-interix3.h: Delete and move bits to..
19368 * config/i386/i386-interix.h: ..here.
19369 (TARGET_CPU_DEFAULT): Remove redefinition.
19370 (TARGET_ASM_CONSTRUCTOR): Undefine.
19371 (SUBTARGET_SWITCHES): Define for ms-bitfields.
19372 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
19373 (PTRDIFF_TYPE): Define.
19374 (LONG_DOUBLE_TYPE_SIZE): Define.
19375 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
19376 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19377 (TARGET_SECTION_TYPE_FLAGS): Define.
19378 (ASM_DECLARE_FUNCTION_NAME): Define.
19379 (ASM_OUTPUT_EXTERNAL): Define.
19380 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
19381 (ASM_OUTPUT_ALIGNED_BSS): Define.
19382 (PCC_BITFIELD_TYPE_MATTERS): Define.
19383 (USE_CONST_SECTION): Define.
19384 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
19385 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19386 (SUPPORTS_ONE_ONLY): Remove.
19387 (I386_PE_STRIP_ENCODING): Define.
19388 * config/interix.opt: Delete and move bits to..
19389 * config/i386/interix.opt: ..here. New.
19390 (mpe-aligned-commons): Add.
19391 * config/i386/t-interix: Add copyright header.
19392 (winnt-stubs.o): Add rule.
19394 2012-01-22 Jason Merrill <jason@redhat.com>
19397 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
19398 for extra name aliases.
19400 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
19402 PR rtl-optimization/51924
19403 * ree.c (combine_set_extension): Improve debugging message.
19404 (combine_reaching_defs): Likewise.
19405 (get_defs): Rename confusingly named variable.
19406 (find_and_remove_re): Skip a candidate if the extension expression has
19409 2012-01-21 Robert Millan <rmh@gnu.org>
19410 Gerald Pfeifer <gerald@pfeifer.com>
19412 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
19413 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
19415 2012-01-20 Jakub Jelinek <jakub@redhat.com>
19417 PR tree-optimization/51914
19418 * tree-vect-stmts.c (vectorizable_conversion): For
19419 cvt_type && modifier == WIDEN, put temporary with cvt_type
19420 at the beginning of vec_dsts and set vec_dest to temporary
19423 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
19425 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
19427 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
19429 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
19430 * config/rs6000/rs6000.c: Likewise.
19432 2012-01-20 Jakub Jelinek <jakub@redhat.com>
19435 * config/arm/arm.c (arm_count_output_move_double_insns): Call
19436 output_move_double on a copy of operands array.
19438 2012-01-20 Cary Coutant <ccoutant@google.com>
19439 Dodji Seketeli <dodji@redhat.com>
19442 * dwarf2out.c (copy_declaration_context): Return ref to parent
19443 of declaration DIE, if necessary.
19444 (remove_child_or_replace_with_skeleton): Add new parameter; update
19445 caller. Place skeleton DIE under parent DIE of original declaration.
19446 Move call to copy_declaration_context to here ...
19447 (break_out_comdat_types): ... from here.
19449 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19451 PR rtl-optimization/51856
19452 * reload.c (find_reloads_subreg_address): Set the address_reloaded
19455 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19458 * config/arm/arm.c (arm_print_operand): Correct output of alignment
19459 hints for neon loads and stores.
19461 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
19465 * doc/extend.texi (Named Address Spaces): Split into subsections.
19466 (AVR Named Address Spaces): New subsection.
19467 (M32C Named Address Spaces): New subsection.
19468 (RL78 Named Address Spaces): New subsection.
19469 (SPU Named Address Spaces): New subsection.
19470 (Variable Attributes): New anchor "AVR Variable Attributes".
19471 (AVR Variable Attributes): Rewrite and avoid wording
19472 "address space" in this context.
19473 * doc/invoke.texi (AVR Options): Rewrite and add documentation
19474 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
19475 (AVR Built-in Macros): New subsubsection therein.
19476 * doc/md.texi (AVR constraints): Remove "C04", "R".
19478 2012-01-20 Richard Guenther <rguenther@suse.de>
19480 PR tree-optimization/51903
19481 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
19482 when removing stmts.
19484 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19487 * config/arm/arm.c (arm_load_pic_register): Use
19488 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
19489 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
19490 (arm_pic_static_addr): Likewise.
19491 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
19492 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
19493 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
19494 (pic_load_addr_unified): New.
19496 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
19499 * function.c (instantiate_virtual_regs_in_insn): Use
19500 delete_insn_and_edges when removing a wrong asm insn.
19502 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
19504 PR rtl-optimization/40761
19505 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
19506 Add new member loop_num.
19507 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
19508 (ira_build): Remove the parameter.
19510 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
19511 (ira.c): Do not build CFG loops for one region allocation. Remove
19512 argument from ira_build call.
19514 * ira-build.c (init_loop_tree_node): New function.
19515 (create_loop_tree_nodes): Use it. Separate the case when CFG
19516 loops are not built.
19517 (more_one_region_p): Check current_loops.
19518 (finish_loop_tree_nodes): Separate the case when CFG loops are not
19520 (add_loop_to_tree): Process loop equal to NULL too.
19521 (form_loop_tree): Separate the case when CFG loops are not built.
19522 Use explicitly number for the root.
19523 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
19525 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
19526 instead of loop->num.
19527 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
19528 (mark_all_loops_for_removal): Ditto.
19529 (remove_unnecessary_regions): Separate the case when CFG loops
19531 (ira_build): Remove the parameter. Use explicit number of regions
19532 when CFG loops are not built.
19534 * ira-color.c (print_loop_title): Separate the case for the root node.
19535 Use loop_num instead of loop->num.
19536 (move_spill_restore): Use loop_num instead of loop->num.
19538 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
19539 (change_loop): Ditto.
19540 (change_loop): Use loop_num instead of loop->num.
19542 * ira-lives.c (process_bb_node_lives): Ditto.
19544 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
19546 * ira-conflicts.c (print_allocno_conflicts): Ditto.
19548 2012-01-19 Jakub Jelinek <jakub@redhat.com>
19550 PR libmudflap/40778
19551 * tree-mudflap.c (mf_artificial): New function.
19552 (execute_mudflap_function_ops, execute_mudflap_function_decls,
19553 mx_register_decls, mudflap_enqueue_decl): Use it.
19556 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
19557 numbers in the insn pattern.
19559 2012-01-19 Michael Matz <matz@suse.de>
19561 PR tree-optimization/46590
19562 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
19563 use it in remembering which conflicts we already created.
19564 (add_scope_conflicts): Adjust call to above, (de)allocate helper
19567 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
19570 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
19571 (merge_and_complain): Same.
19573 2012-01-19 Jakub Jelinek <jakub@redhat.com>
19576 * config/initfini-array.h: Guard content of the header
19577 with #ifdef HAVE_INITFINI_ARRAY.
19578 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
19579 Add initfini-array.h to tm_file here.
19580 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
19581 * config.gcc: Don't add initfini-array.h to tm_file here.
19582 * configure: Regenerated.
19584 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
19586 PR rtl-optimization/51505
19587 * df-problems.c (df_kill_notes): New parameter live. Update comment.
19588 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
19589 (df_note_bb_compute): Update the call to df_kill_notes.
19591 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
19593 * trans-mem.c (requires_barrier): Remove call to is_global_var.
19595 2012-01-18 Richard Guenther <rguenther@suse.de>
19597 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
19598 of conversions to void *.
19600 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19601 Richard Sandiford <rdsandiford@googlemail.com>
19603 PR middle-end/50325
19604 PR middle-end/51192
19605 * optabs.h (simplify_expand_binop): Declare.
19606 * optabs.c (simplify_expand_binop): Make global.
19607 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
19608 endian targets if the source cannot be exactly covered by word
19611 2012-01-17 Jakub Jelinek <jakub@redhat.com>
19614 * hard-reg-set.h (struct hard_reg_set_container): New type.
19615 * target.h (struct hard_reg_set_container): Forward declare.
19616 * target.def (set_up_by_prologue): New target hook.
19617 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
19618 * doc/tm.texi: Regenerated.
19619 * function.c (thread_prologue_and_epilogue_insns): Change
19620 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
19621 Call targetm.set_up_by_prologue on it.
19622 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
19623 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
19625 2012-01-17 Nick Clifton <nickc@redhat.com>
19627 * config/rx/rx.c (rx_can_use_simple_return): New function.
19628 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
19629 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
19631 2012-01-17 Richard Guenther <rguenther@suse.de>
19633 PR middle-end/51782
19634 * expr.c (expand_assignment): Take address-space information
19635 from the address operand of MEM_REF and TARGET_MEM_REF.
19636 (expand_expr_real_1): Likewise.
19638 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19640 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
19641 reload dump is requested.
19643 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
19646 * trans-mem.c (requires_barrier): Call may_be_aliased.
19648 2012-01-17 Jakub Jelinek <jakub@redhat.com>
19650 PR tree-optimization/51877
19651 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
19652 call arguments and fndecls compare equal, instead return false if they
19653 don't. Return true only if lhs1 and lhs2 are either both NULL, or
19654 both SSA_NAMEs that are valueized the same, or they satisfy
19657 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19659 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
19661 * configure: Regenerate.
19663 2012-01-16 Jan Hubicka <jh@suse.cz>
19667 * convert.c (convert_to_integer): Use fold_convert for
19668 converting an INTEGER_CST to integer type.
19670 2012-01-16 Jason Merrill <jason@redhat.com>
19673 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
19675 2012-01-16 Jakub Jelinek <jakub@redhat.com>
19678 * config/s390/s390.c (s390_chunkify_start): Don't skip
19679 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
19680 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
19681 If insn is followed by NOTE_INSN_VAR_LOCATION or
19682 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
19683 Don't use location of note insns.
19685 PR tree-optimization/51865
19686 * tree-inline.c (tree_function_versioning): Call remap_decl
19687 on DECL_RESULT whenever it has VOID_TYPE_P type.
19689 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
19691 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
19692 for calls to locally-binding MIPS16 functions if only the return
19693 type uses float regs.
19695 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
19696 Richard Sandiford <rdsandiford@googlemail.com>
19698 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
19699 (SYMBOL_32_HIGH): Likewise.
19700 (mips_output_tls_reloc_directive): Declare.
19701 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
19702 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
19703 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
19704 (mips_lo_relocs, mips_hi_relocs): Make extern.
19705 (mips16_stub_function): Move up file.
19706 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
19707 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
19708 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
19709 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
19710 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
19711 (mips_get_tp): Add MIPS16 support.
19712 (mips_legitimize_tls_address): Remove MIPS16 sorry().
19713 Generalize DTPREL and TPREL handling.
19714 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
19715 Add MIPS16 TLS support.
19716 (mips_output_tls_reloc_directive): New function.
19717 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
19718 * config/mips/predicates.md (symbolic_operand_with_high)
19719 (tls_reloc_operand): New predicates.
19720 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
19721 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
19722 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
19723 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
19724 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
19725 (*tls_get_tp_mips16_call_<mode>): Likewise.
19727 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
19729 PR rtl-optimization/51821
19730 * recog.c (peep2_find_free_register): Determine clobbered registers
19733 2012-01-14 Denis Chertykov <chertykov@gmail.com>
19736 * config/avr/avr-protos.h: Revert change of 2012-01-09.
19737 * config/avr/avr.c: Likewise.
19738 * config/avr/avr.h: Likewise.
19740 2012-01-13 Ian Lance Taylor <iant@google.com>
19743 * tree.h (TYPE_QUALS): Add cast to int.
19744 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
19746 2012-01-13 Ian Lance Taylor <iant@google.com>
19748 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
19749 comparing param_index to VEC_length result.
19751 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
19753 * c-decl.c: Do not include tree-mudflap.h
19754 * tree-optimize.c: Likewise.
19755 * Makefile.in: Update dependencies.
19757 2012-01-13 Richard Guenther <rguenther@suse.de>
19760 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
19761 variable-sized result always use RSO.
19763 2012-01-12 DJ Delorie <dj@redhat.com>
19765 * cfgexpand.c (convert_debug_memory_address): Allow any valid
19766 pointer type, not just the default pointer type.
19768 2012-01-09 Richard Henderson <rth@redhat.com>
19769 Denis Chertykov <chertykov@gmail.com>
19772 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
19773 * config/avr/avr.c (avr_can_eliminate): Simplify.
19774 (avr_initial_elimination_offset): Likewise.
19775 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
19776 (expand_epilogue): Likewise.
19777 (avr_legitimize_address): Gut.
19778 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
19779 (avr_hard_regno_nregs): New.
19780 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
19781 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
19782 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
19783 add soft frame pointer.
19784 (CALL_USED_REGISTERS): Likewise.
19785 (REG_CLASS_CONTENTS): Likewise.
19786 (REGISTER_NAMES): Likewise.
19787 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
19788 (HARD_FRAME_POINTER_REGNUM): New.
19789 (FRAME_POINTER_REGNUM): Use soft frame pointer.
19790 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
19791 remove the HARD_FRAME_POINTER self-elimination.
19793 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
19796 * config/avr/avr.c (avr_encode_section_info): Test for absence of
19797 DECL_EXTERNAL when checking for initializers of progmem variables.
19799 2012-01-12 Ira Rosen <irar@il.ibm.com>
19801 PR tree-optimization/51799
19802 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
19803 that the last operation is a type demotion.
19805 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
19807 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
19808 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
19810 2012-01-11 Jakub Jelinek <jakub@redhat.com>
19813 * combine.c (distribute_notes): If i3 is a noreturn call,
19814 allow old_size to be equal to args_size and make sure the
19815 noreturn call gets REG_ARGS_SIZE note.
19816 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
19817 on noreturn calls even when the delta is 0.
19819 2012-01-11 Nathan Sidwell <nathan@acm.org>
19821 * gcov.c (STRING_SIZE): Remove.
19822 (generate_results): Erase annotations for source files with no
19823 coverage information.
19825 (output_lines): Use it.
19827 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
19829 * gimple.h (gimplify_body): Remove first argument.
19830 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
19831 pointer set here, instead just pass DATA to walk_tree.
19832 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
19833 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
19834 (unvisit_body): Likewise, but with unmark_visited.
19835 (gimplify_body): Remove BODY_P argument and adjust.
19836 (gimplify_function_tree): Adjust call to gimplify_body.
19837 * omp-low.c (finalize_task_copyfn): Likewise.
19839 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
19841 * tree.h (build_function_decl_skip_args): Add boolean parameter.
19842 (build_function_type_skip_args): Delete.
19843 * tree.c (build_function_type_skip_args): Make static and add
19844 SKIP_RETURN parameter. Fix thinko in the handling of variants.
19845 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
19846 pass it to build_function_type_skip_args.
19847 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
19848 (tree_function_versioning): Likewise.
19849 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
19850 build_function_decl_skip_args.
19851 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
19852 and pass it to build_function_decl_skip_args/tree_function_versioning.
19853 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
19854 * ipa-inline-transform.c (save_inline_function_body): Likewise.
19855 * trans-mem.c (ipa_tm_create_version): Likewise.
19856 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
19857 * tree-inline.c (declare_return_variable): Remove always-true test.
19858 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
19859 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
19860 * ipa-split.c (split_function): Skip the return value for the split
19861 part if it doesn't return.
19863 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19865 PR tree-optimization/49642
19866 * ipa-split.c (forbidden_dominators): New variable.
19867 (check_forbidden_calls): New function.
19868 (dominated_by_forbidden): Likewise.
19869 (consider_split): Check for forbidden dominators.
19870 (execute_split_functions): Initialize and free forbidden
19871 dominators info; call check_forbidden_calls.
19873 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19875 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
19877 2012-01-11 Nick Clifton <nickc@redhat.com>
19879 * config/rx/rx.md (return): Define pattern.
19881 2012-01-11 Richard Guenther <rguenther@suse.de>
19883 * doc/extend.texi (malloc attribute): Adjust according to
19886 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
19887 Patrick Marlier <patrick.marlier@gmail.com>
19889 PR middle-end/51516
19890 * trans-mem.c (get_cg_data): Traverse aliases if requested.
19891 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
19892 (ipa_tm_note_irrevocable): Same.
19893 (ipa_tm_scan_irr_block): Same.
19894 (ipa_tm_decrement_clone_counts): Same.
19895 (ipa_tm_scan_irr_function): Same.
19896 (ipa_tm_create_version_alias): Same.
19897 (ipa_tm_create_version): Same.
19898 (ipa_tm_transform_calls_redirect): Same.
19899 (ipa_tm_transform_calls): Same.
19900 (ipa_tm_transform_transaction): Same.
19901 (ipa_tm_execute): Same.
19903 2012-01-10 Richard Guenther <rguenther@suse.de>
19905 PR middle-end/51806
19906 * opts.c (common_handle_option): Handle -Werror.
19908 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
19910 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
19913 2012-01-10 Jason Merrill <jason@redhat.com>
19915 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
19918 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19920 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
19921 supports R_386_TLS_GD_PLT reloc.
19922 (gcc_cv_as_ix86_tlsldmplt): Check if linker
19923 supports R_386_TLS_LDM_PLT reloc.
19924 * configure: Regenerate.
19925 * config.in: Regenerate.
19927 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
19930 Extend __pgmx semantics to linearize memory.
19931 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
19932 determine if code comes inline or from libgcc.
19933 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
19934 (movmem_qi, movmem_qi): Set constraint #2 to "n".
19935 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
19936 (movmemx_qi, movmemx_hi): New insns.
19937 (xload_<mode>_libgcc): Rewrite to new insn condition.
19938 (xload_<mode>): Remove insns.
19939 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
19940 cases that don't satisfy avr_xload_libgcc_p().
19941 (avr_addr_space_convert): Allow converting in any direction.
19942 (avr_addr_space_subset_p): Return always true.
19943 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
19944 (avr_emit_movmemhi): Ditto.
19945 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
19946 (avr_out_movmem): Ditto.
19947 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
19948 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
19949 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
19950 (avr_encode_section_info): Encode 'progmem' in symbol flags.
19951 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
19953 2012-01-10 Richard Guenther <rguenther@suse.de>
19955 PR tree-optimization/50913
19956 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
19957 Require data-refs to be representable by Graphite with respect
19960 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
19962 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
19963 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
19965 2012-01-10 Tom de Vries <tom@codesourcery.com>
19967 PR rtl-optimization/51271
19968 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
19969 handling annulled branch.
19971 2012-01-10 Richard Henderson <rth@redhat.com>
19973 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
19974 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
19975 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
19976 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
19977 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
19978 arm_expand_vec_perm_const): New.
19979 * config/arm/arm-protos.h: Update.
19980 * config/arm/neon.md (UNSPEC_VCONCAT): New.
19981 (*neon_vswp<VDQX>): New.
19982 (neon_vcombine<VDX>): Use neon_split_vcombine.
19983 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
19984 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
19985 (vec_perm<VE>): New.
19987 2012-01-10 Richard Henderson <rth@redhat.com>
19989 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
19990 use it if reload_completed.
19991 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
19992 arm_output_asm_insn, arm_process_output_memory_barrier,
19993 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
19994 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
19995 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
19996 arm_process_output_sync_insn, arm_output_sync_insn,
19997 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
19998 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
19999 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
20000 (emit_unlikely_jump): New.
20001 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
20002 (arm_split_atomic_op): New.
20003 * config/arm/arm-protos.h: Update.
20004 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
20005 (struct arm_sync_generator): Remove.
20006 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
20007 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
20008 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
20009 (VUNSPEC_LL, VUNSPEC_SC): New.
20010 (sync_result, sync_memory, sync_required_value, sync_new_value,
20011 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
20012 (attr length): Don't use arm_sync_loop_insns.
20013 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
20014 (movsfcc, movdfcc): Likewise.
20015 * config/arm/constraints.md (Ua): New.
20016 * config/arm/prediates.md (mem_noofs_operand): New.
20017 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
20018 (sync_clobber, sync_t2_reqd): Remove.
20019 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
20020 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
20021 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
20022 (arm_sync_compare_and_swap<SIDI>): Remove.
20023 (arm_sync_compare_and_swap<NARROW>): Remove.
20024 (arm_sync_lock_test_and_set<SIDI>): Remove.
20025 (arm_sync_lock_test_and_set<NARROW>): Remove.
20026 (arm_sync_new_<syncop><SIDI>): Remove.
20027 (arm_sync_new_<syncop><NARROW>): Remove.
20028 (arm_sync_new_nand<SIDI>): Remove.
20029 (arm_sync_new_nand<NARROW>): Remove.
20030 (arm_sync_old_<syncop><SIDI>): Remove.
20031 (arm_sync_old_<syncop><NARROW>): Remove.
20032 (arm_sync_old_nand<SIDI>): Remove.
20033 (arm_sync_old_nand<NARROW>): Remove.
20034 (*memory_barrier): Merge arm_output_memory_barrier.
20035 (atomic_compare_and_swap<QHSD>): New.
20036 (atomic_compare_and_swap<NARROW>_1): New.
20037 (atomic_compare_and_swap<SIDI>_1): New.
20038 (atomic_exchange<QHSD>): New.
20039 (cas_cmp_operand, cas_cmp_str): New.
20040 (atomic_op_operand, atomic_op_str): New.
20041 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
20042 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
20043 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
20044 (arm_load_exclusive<NARROW>): New.
20045 (arm_load_exclusivesi, arm_load_exclusivedi): New.
20046 (arm_store_exclusive<QHSD>): New.
20048 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20050 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
20051 reload patterns if -mvsx-scalar-memory.
20053 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
20054 generated, even -mno-vsx-scalar-double was used.
20055 (vsx_xscvdpsp_scalar): Likewise.
20056 (vsx_xscvspdp_scalar2): Likewise.
20058 2012-01-09 Tom de Vries <tom@codesourcery.com>
20059 Andrew Pinski <apinski@cavium.com>
20062 * reorg.c (fill_slots_from_thread): Don't speculate
20063 frame-related insns.
20065 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
20067 * sched-int.h (bb_note): Move to...
20068 * basic-block.h: ...here.
20069 * haifa-sched.c (bb_note): Move to...
20070 * cfgrtl.c: ...here.
20071 * function.c (next_block_for_reg): New function.
20072 (move_insn_for_shrink_wrap): Likewise.
20073 (prepare_shrink_wrap): Rewrite to use the above.
20075 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
20077 * gimple.c (is_gimple_non_addressable): Remove.
20078 * gimple.h: Remove is_gimple_non_addressable.
20079 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
20080 is_gimple_non_addressable.
20081 * trans-mem.c (expand_assign_tm): Same.
20083 2012-01-09 Richard Guenther <rguenther@suse.de>
20085 PR tree-optimization/51775
20086 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
20087 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
20089 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20091 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
20093 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
20095 2012-01-09 Richard Guenther <rguenther@suse.de>
20097 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
20099 2012-01-08 Jan Hubicka <jh@suse.cz>
20101 PR tree-optimize/51680
20102 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
20103 on when known_vals needs to be computed; cleanup.
20105 2012-01-08 Jan Hubicka <jh@suse.cz>
20107 PR tree-optimize/51694
20108 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
20110 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
20112 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
20113 for -std=c++98 and -std=c++11 too.
20115 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
20117 * cfgloop.c (cancel_loop): Add free() of bbs array.
20119 2012-01-07 Jan Hubicka <jh@suse.cz>
20121 PR tree-optimization/51600
20122 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
20123 that benefits small functions.
20125 2012-01-07 Jan Hubicka <jh@suse.cz>
20127 * ipa-inline.c (want_inline_small_function_p): Fix formating.
20129 2012-01-07 Jan Hubicka <jh@suse.cz>
20131 PR tree-optimization/51680
20132 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
20133 whose inlining reduce unit size.
20135 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
20138 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
20139 Add canonical node to containing_mem chain after the non-canonical
20140 one, even if there weren't any locs to propagate.
20141 (remove_useless_values): Keep only canonical values.
20142 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
20143 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
20144 canonicalize mem_chain elements that are not discarded.
20146 2012-01-06 Jakub Jelinek <jakub@redhat.com>
20149 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
20150 before emitting functions.
20152 PR gcov-profile/50127
20153 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
20154 clear_aux_for_blocks.
20156 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
20159 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
20161 2012-01-06 Arnaud Charlet <charlet@adacore.com>
20163 * c-decl.c (ext_block): Moved up.
20164 (collect_all_refs, for_each_global_decl): Take ext_block into account.
20166 2012-01-06 Han Shen <shenhan@google.com>
20168 Translate built-in include paths for sysroot.
20169 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
20170 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
20172 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
20173 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
20175 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
20176 control whether sysroot should be prepended to gxx include dir.
20178 * configure: Regenerate.
20180 2012-01-06 Torvald Riegel <triegel@redhat.com>
20182 PR rtl-optimization/51771
20183 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
20184 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
20186 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
20188 PR tree-optimization/51315
20189 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
20190 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
20192 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
20195 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
20196 for shrp pattern. Correctly handle and fixup shift variable.
20197 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
20199 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20202 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
20203 note when !ACCUMULATE_OUTGOING_ARGS.
20205 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
20207 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
20209 (extract_range_from_unary_expr_1): Avoid useless computations.
20211 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20213 PR rtl-optimization/51767
20214 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
20215 of jump_block and add an extra edge for degenerated asm gotos.
20217 PR middle-end/51768
20218 * stmt.c (check_unique_operand_names): Don't ICE during error
20219 reporting if i is from labels chain.
20221 PR middle-end/44777
20222 * profile.c (branch_prob): Split bbs that have exit edge
20223 and need a fake entry edge too.
20225 2012-01-05 Jan Hubicka <jh@suse.cz>
20227 PR middle-end/49710
20228 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
20231 2012-01-05 Richard Guenther <rguenther@suse.de>
20234 * tree-streamer-out.c (write_ts_optimization): New function.
20235 (streamer_write_tree_body): Call it.
20236 * tree-streamer-in.c (lto_input_ts_optimization): New function.
20237 (streamer_read_tree_body): Call it.
20238 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
20240 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20242 PR middle-end/51761
20243 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
20244 * gimplify.c (gimplify_cleanup_point_expr): Save and set
20245 in_cleanup_point_expr before gimplify_stmt call and restore it
20247 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
20248 in_cleanup_point_expr is false.
20250 2012-01-05 Richard Guenther <rguenther@suse.de>
20252 PR middle-end/51764
20253 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
20255 * toplev.c (process_options): Reject combining mudflap and LTO.
20256 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
20258 2012-01-05 Richard Guenther <rguenther@suse.de>
20260 PR tree-optimization/51760
20261 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
20263 (bit_value_unop): Handle UNDEFINED operands.
20264 (bit_value_binop): Likewise.
20266 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
20268 * config/avr/avr.c (avr_replace_prefix): Remove.
20269 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
20270 (avr_asm_function_rodata_section): Ditto.
20271 (avr_asm_select_section): Ditto.
20273 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
20275 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
20278 2012-01-05 Jakub Jelinek <jakub@redhat.com>
20281 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
20282 calls that have any non-fake successor edges.
20285 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
20287 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
20289 PR tree-optimization/51624
20290 * tree-sra.c (build_ref_for_model): When replicating a chain of
20291 COMPONENT_REFs, stop as soon as the offset would become negative.
20293 2012-01-04 Jakub Jelinek <jakub@redhat.com>
20296 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
20297 in .debug_loc on the floor.
20299 2012-01-04 Andrew Pinski <apinski@cavium.com>
20301 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
20303 2012-01-04 Andrew Pinski <apinski@cavium.com>
20304 Adam Nemet <anemet@caviumnetworks.com>
20306 * config/mips/mips.md (size): Add SI and DI.
20307 (SIZE): New mode attribute.
20308 (U): New code attribute.
20309 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
20310 (mips_lbux_<mode>): Delete.
20311 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
20312 (mips_lhx): Use gen_mips_lhx_extsi.
20313 (mips_lhx_<mode>): Delete.
20314 (mips_lwx): Delete.
20315 (mips_l<size>x): New expand.
20316 (mips_lwx_<mode>): Delete.
20317 (mips_l<GPR:size>x_<P:mode>): New pattern.
20318 (*mips_lw<u>x_<P:mode>_ext): Likewise.
20319 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
20320 * config/mips/mips.c (mips_lx_address_p): New function.
20321 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
20322 (dsp64): New availability predicate.
20323 (mips_builtins): Add an entry for __builtin_mips_ldx.
20324 * config/mips/mips.h (ISA_HAS_LBX): New define.
20325 (ISA_HAS_LBUX): Likewise.
20326 (ISA_HAS_LHX): Likewise.
20327 (ISA_HAS_LHUX): Likewise.
20328 (ISA_HAS_LWX): Likewise.
20329 (ISA_HAS_LWUX): Likewise.
20330 (ISA_HAS_LDX): Likewise.
20331 * doc/extend.texi (__builtin_mips_ldx): Document.
20333 2012-01-04 Tristan Gingold <gingold@adacore.com>
20335 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
20336 when long pointers are used.
20337 * config.build (*-*-*vms*): Handle all OpenVMS targets.
20338 (alpha64-dec-*vms*, alpha*-dec-*vms*)
20339 (ia64-hp-*vms*): Remove.
20340 * config/vms/xm-vms64.h: Delete.
20342 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20344 PR middle-end/51472
20345 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
20347 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20349 * opts.c (finish_options): Remove duplicate sorry.
20351 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
20353 PR middle-end/51696
20354 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
20357 2012-01-04 Richard Guenther <rguenther@suse.de>
20359 PR middle-end/51750
20360 * tree.c (size_low_cst): New function.
20361 * tree.h (size_low_cst): Declare.
20362 * fold-const.c (fold_comparison): Use it to extract the low
20363 part of the POINTER_PLUS_EXPR offset.
20365 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
20367 Fix clearing ZERO_REG
20368 * config/avr/avr.md (cc): Add alternative "ldi".
20369 (movqi_insn): Use it in cc attribute.
20370 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
20371 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
20372 (output_reload_insisf): Use ZERO_REG to pre-clear register.
20374 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20376 * configure: Regenerate.
20378 2012-01-04 Richard Guenther <rguenther@suse.de>
20380 PR tree-optimization/49651
20381 * tree-ssa-structalias.c (type_can_have_subvars): New function.
20382 (var_can_have_subvars): Use it.
20383 (get_constraint_for_1): Only consider subfields if there can be any.
20385 2012-01-03 Jakub Jelinek <jakub@redhat.com>
20388 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
20389 to its new canonical_cselib_val and the cselib_val was in
20390 first_containing_mem chain, but the canonical_cselib_val was not,
20391 add the latter into the chain.
20392 (cselib_invalidate_mem): Compare canonical_cselib_val of
20393 addr_list chain elt with v.
20396 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
20397 dwarf2out_undef): Allocate e.info using ggc_strdup instead
20399 (output_macinfo_op): Don't ggc_strdup fd->filename.
20400 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
20401 then ggc_strdup it. Don't free inc->info or cur->info.
20402 (output_macinfo): Don't free ref->info or file->info.
20404 2012-01-03 Ira Rosen <irar@il.ibm.com>
20406 PR tree-optimization/51269
20407 * tree-vect-loop-manip.c (set_prologue_iterations): Make
20408 first_niters a pointer.
20409 (slpeel_tree_peel_loop_to_edge): Likewise.
20410 (vect_do_peeling_for_loop_bound): Update call to
20411 slpeel_tree_peel_loop_to_edge.
20412 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
20413 here. Remove it from the parameters list.
20414 (vect_do_peeling_for_alignment): Update calls and compute
20415 wide_prolog_niters.
20417 2012-01-03 Richard Guenther <rguenther@suse.de>
20419 PR tree-optimization/51070
20420 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
20421 Properly handle calls.
20423 2012-01-03 Richard Guenther <rguenther@suse.de>
20425 PR tree-optimization/51692
20426 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
20427 the LHS of allocation stmts.
20429 2012-01-03 Olivier Hainque <hainque@adacore.com>
20431 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
20433 2012-01-03 Olivier Hainque <hainque@adacore.com>
20435 * collect2.c (main): In AIX specific computations for vector
20436 insertions, use CONST_CAST2 to cast from char ** to const char **.
20438 2012-01-03 Richard Guenther <rguenther@suse.de>
20441 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
20442 the context of a limbo DIE when it does not already exist.
20444 2012-01-03 Jakub Jelinek <jakub@redhat.com>
20446 PR tree-optimization/51719
20447 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
20448 but direct call is, clear direct call's lhs and don't add fallthrough
20449 edge from dcall_bb to join_bb and PHIs.
20451 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20453 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
20454 the instructions emitted by the pattern.
20455 ("*TDC_insn_<mode>"): Add comment.
20457 2012-01-03 Richard Guenther <rguenther@suse.de>
20459 PR middle-end/51730
20460 * fold-const.c (fold_comparison): Properly canonicalize
20461 tree offset and HOST_WIDE_INT bit position.
20463 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
20465 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
20466 operands for extzv pattern.
20468 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20471 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
20474 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
20476 * doc/invoke.texi (-flto and related options): Copy-edit.
20478 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20480 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
20482 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20484 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
20487 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20489 * expr.h (move_by_pieces_ninsns): Declare.
20490 * expr.c (move_by_pieces_ninsns): Make external.
20491 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
20492 (mips_store_by_pieces_p): Likewise.
20493 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
20494 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
20495 * config/mips/mips.c (mips_move_by_pieces_p): New function.
20496 (mips_store_by_pieces_p): Likewise.
20498 2012-01-02 Jakub Jelinek <jakub@redhat.com>
20500 * passes.c (register_one_dump_file): Free full_name.
20502 * reload1.c (reload): Don't allocate reg_max_ref_width here.
20503 (calculate_elim_costs_all_insns): Free offsets_at and
20504 offsets_known_at at the end and clear the pointers.
20506 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20508 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
20509 this option introduced in r180739.
20511 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20514 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
20515 (tmake_file target=avr): Add avr/t-multilib.
20517 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
20518 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
20519 * config/avr/genmultilib.awk: New file.
20520 * config/avr/t-multilib: New auto-generated file.
20521 * config/avr/multilib.h: New auto-generated file.
20522 * config/avr/t-avr (AVR_MCUS): New variable.
20523 (genopt.sh): Use it.
20524 (s-mlib): Depend on t-multilib.
20525 (t-multilib, multilib.h): New dependencies.
20526 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
20527 (MULTILIB_OPTIONS): Remove.
20528 (MULTILIB_MATCHES): Remove.
20529 (MULTILIB_DIRNAMES): Remove.
20530 (MULTILIB_EXCEPTIONS): Remove:
20531 * config/avr/genopt.sh: Don't use hard coded file name;
20532 pass AVR_MCUS from t-avr instead.
20534 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20536 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
20538 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
20540 Implement light-weight DImode support.
20541 * config/avr/avr-dimode.md: New file.
20542 * config/avr/avr.md: Include it.
20543 (adjust_len): Add plus64, compare64.
20544 (HIDI): Remove code iterator.
20545 (code_stdname): New code attribute.
20546 (rotx, rotsmode): Remove DI.
20547 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
20549 * config/avr/avr-protos.h (avr_have_dimode): New.
20550 (avr_out_plus64, avr_out_compare64): New.
20551 * config/avr/avr.c (avr_out_compare): Handle DImode.
20552 (avr_have_dimode): New variable definition and initialization.
20553 (avr_out_compare64, avr_out_plus64): New functions.
20554 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
20555 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
20556 (avr_compare_pattern): Skip DImode comparisons.
20558 2012-01-02 Revital Eres <revital.eres@linaro.org>
20560 * ddg.c (def_has_ccmode_p): New function.
20561 (add_cross_iteration_register_deps,
20562 create_ddg_dep_from_intra_loop_link): Call it.
20564 2012-01-02 Richard Guenther <rguenther@suse.de>
20567 * invoke.texi (fassociative-math): Remove spurious paranthesis.
20569 2012-01-01 Jakub Jelinek <jakub@redhat.com>
20571 * gcc.c (process_command): Update copyright notice dates.
20572 * gcov.c (print_version): Likewise.
20573 * gcov-dump.c (print_version): Likewise.
20574 * mips-tfile.c (main): Likewise.
20575 * mips-tdump.c (main): Likewise.
20577 2012-01-01 Ira Rosen <irar@il.ibm.com>
20579 PR tree-optimization/51704
20580 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
20581 a use is inside the basic block or loop before accessing its vect info.
20583 2012-01-01 Jan Hubicka <jhjh@suse.cz>
20585 PR rtl-optimization/51069
20586 * cfgloopmanip.c (remove_path): Removing path making irreducible
20587 region unconditional makes BB part of the region.
20589 2012-01-01 Jakub Jelinek <jakub@redhat.com>
20591 PR tree-optimization/51683
20592 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
20593 calls with side-effects.
20594 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20596 Copyright (C) 2012 Free Software Foundation, Inc.
20598 Copying and distribution of this file, with or without modification,
20599 are permitted in any medium without royalty provided the copyright
20600 notice and this notice are preserved.