1 2013-12-05 Alan Modra <amodra@gmail.com>
3 * configure.ac (BUILD_CXXFLAGS) Don't use ALL_CXXFLAGS for
5 <recursive call for build != host>: Clear GMPINC. Don't bother
8 2013-12-04 Jakub Jelinek <jakub@redhat.com>
9 Marek Polacek <polacek@redhat.com>
11 * opts.c (common_handle_option): Handle
12 -fsanitize=signed-integer-overflow.
13 * config/i386/i386.md (addv<mode>4, subv<mode>4, mulv<mode>4,
14 negv<mode>3, negv<mode>3_1): Define expands.
15 (*addv<mode>4, *subv<mode>4, *mulv<mode>4, *negv<mode>3): Define
17 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW,
18 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW,
19 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW,
20 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW): Define.
21 * ubsan.h (PROB_VERY_UNLIKELY, PROB_EVEN, PROB_VERY_LIKELY,
23 (ubsan_build_overflow_builtin): Declare.
24 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Add folding of
26 * ubsan.c (PROB_VERY_UNLIKELY): Don't define here.
27 (ubsan_build_overflow_builtin): New function.
28 (instrument_si_overflow): Likewise.
29 (ubsan_pass): Add signed integer overflow checking.
30 (gate_ubsan): Enable the pass also when SANITIZE_SI_OVERFLOW.
31 * flag-types.h (enum sanitize_code): Add SANITIZE_SI_OVERFLOW.
32 * internal-fn.c: Include ubsan.h and target.h.
33 (ubsan_expand_si_overflow_addsub_check): New function.
34 (ubsan_expand_si_overflow_neg_check): Likewise.
35 (ubsan_expand_si_overflow_mul_check): Likewise.
36 (expand_UBSAN_CHECK_ADD): Likewise.
37 (expand_UBSAN_CHECK_SUB): Likewise.
38 (expand_UBSAN_CHECK_MUL): Likewise.
39 * fold-const.c (fold_binary_loc): Don't fold A + (-B) -> A - B and
40 (-A) + B -> B - A when doing the signed integer overflow checking.
41 * internal-fn.def (UBSAN_CHECK_ADD, UBSAN_CHECK_SUB, UBSAN_CHECK_MUL):
43 * tree-vrp.c (extract_range_basic): Handle internal calls.
44 * optabs.def (addv4_optab, subv4_optab, mulv4_optab, negv4_optab): New
46 * asan.c: Include predict.h.
47 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Don't define here.
48 * predict.c: Move the PROB_* macros...
49 * predict.h (enum br_predictor): ...here.
50 (PROB_LIKELY, PROB_UNLIKELY): Define.
51 * trans-mem.c: Include predict.h.
52 (PROB_VERY_UNLIKELY, PROB_ALWAYS, PROB_VERY_LIKELY,
53 PROB_LIKELY, PROB_UNLIKELY): Don't define here.
55 2013-12-04 Jeff Law <law@redhat.com>
57 * common.opt: Split up -fisolate-erroneous-paths into
58 -fisolate-erroneous-paths-dereference and
59 -fisolate-erroneous-paths-attribute.
60 * invoke.texi: Corresponding changes.
61 * gimple.c (infer_nonnull_range): Add and use new arguments
62 to control what kind of statements can be used to infer a
64 * gimple.h (infer_nonnull_range): Update prototype.
65 * tree-vrp.c (infer_value_range): Corresponding changes.
66 * opts.c (default_options_table): Update due to option split.
67 * gimple-ssa-isolate-paths.c: Fix trailing whitespace.
68 (find_implicit_erroneous_behaviour): Pass additional arguments
69 to infer_nonnull_range.
70 (find_explicit_erroneous_behaviour): Similarly.
71 (gate_isolate_erroneous_paths): Check both of the new
74 2013-12-04 Jeff Law <law@redhat.com>
76 * expr.c (expand_assignment): Update comments.
78 2013-12-04 Tobias Burnus <burnus@net-b.de>
81 * lto-streamer.h (LTO_tags): Add LTO_namelist_decl_ref.
82 * tree.def (NAMELIST_DECL): Add.
83 * tree.h (NAMELIST_DECL_ASSOCIATED_DECL): New macro.
84 * tree.c (initialize_tree_contains_struct): Add asserts for it.
85 * dwarf2out.c (gen_namelist_decl): New function.
86 (gen_decl_die, dwarf2out_decl): Call it.
87 (dwarf2out_imported_module_or_decl_1): Handle NAMELIST_DECL.
88 * lto-streamer-in.c (lto_input_tree_ref): Handle NAMELIST_DECL.
89 (lto_input_tree_ref, lto_input_tree_1): Update lto_tag_check_range
91 * lto-streamer-out.c (lto_output_tree_ref): Handle NAMELIST_DECL.
93 2013-12-03 Xinliang David Li <davidxl@google.com>
95 * tree-ssa-structalias.c (constraint_set_union): Change return type
97 (merge_node_constraints): Ditto.
98 (unify_nodes): Update changed set when constraints set changes.
100 2013-12-04 H.J. Lu <hongjiu.lu@intel.com>
102 * configure.ac: Append gdbasan.in to .gdbinit if CFLAGS contains
104 * configure: Regenerated.
106 * gdbasan.in: New file.
108 2013-12-04 Jakub Jelinek <jakub@redhat.com>
110 PR rtl-optimization/58726
111 * combine.c (force_to_mode): Fix comment typo. Don't destructively
112 modify x for ROTATE, ROTATERT and IF_THEN_ELSE.
114 2013-12-04 Jakub Jelinek <jakub@redhat.com>
115 Uros Bizjak <ubizjak@gmail.com>
118 * config/i386/i386.c (ix86_legitimate_combined_insn): If for
119 !TARGET_AVX there is misaligned MEM operand with vector mode
120 and get_attr_ssememalign is 0, return false.
121 (ix86_expand_special_args_builtin): Add get_pointer_alignment
122 computed alignment and for non-temporal loads/stores also
123 at least GET_MODE_ALIGNMENT as MEM_ALIGN.
125 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
126 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
127 <sse2_avx_avx512f>_loaddqu<mode><mask_name>,
128 <sse2_avx_avx512f>_storedqu<mode>, <sse3>_lddqu<avxsizesuffix>,
129 sse_vmrcpv4sf2, sse_vmrsqrtv4sf2, sse2_cvtdq2pd, sse_movhlps,
130 sse_movlhps, sse_storehps, sse_loadhps, sse_loadlps,
131 *vec_interleave_highv2df, *vec_interleave_lowv2df,
132 *vec_extractv2df_1_sse, sse2_movsd, sse4_1_<code>v8qiv8hi2,
133 sse4_1_<code>v4qiv4si2, sse4_1_<code>v4hiv4si2,
134 sse4_1_<code>v2qiv2di2, sse4_1_<code>v2hiv2di2,
135 sse4_1_<code>v2siv2di2, sse4_2_pcmpestr, *sse4_2_pcmpestr_unaligned,
136 sse4_2_pcmpestri, sse4_2_pcmpestrm, sse4_2_pcmpestr_cconly,
137 sse4_2_pcmpistr, *sse4_2_pcmpistr_unaligned, sse4_2_pcmpistri,
138 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Add ssememalign attribute.
139 * config/i386/i386.md (ssememalign): New define_attr.
141 2013-12-04 Jakub Jelinek <jakub@redhat.com>
143 PR tree-optimization/59355
144 * ipa-devirt.c (gate_ipa_devirt): Return false if !flag_devirtualize.
145 * opts.c (common_handle_option): Fix comment spelling.
147 2013-12-04 Yufeng Zhang <yufeng.zhang@arm.com>
149 * gimple-ssa-strength-reduction.c: Include tree-affine.h.
150 (name_expansions): New static variable.
151 (alt_base_map): Ditto.
152 (get_alternative_base): New function.
153 (find_basis_for_candidate): For CAND_REF, optionally call
154 find_basis_for_base_expr with the returned value from
155 get_alternative_base.
156 (record_potential_basis): Add new parameter 'base' of type 'tree';
157 add an assertion of non-NULL base; use base to set node->base_expr.
158 (alloc_cand_and_find_basis): Update; call record_potential_basis
159 for CAND_REF with the returned value from get_alternative_base.
160 (replace_refs): Dump details on the replacing.
161 (execute_strength_reduction): Call pointer_map_create for
162 alt_base_map; call free_affine_expand_cache with &name_expansions.
164 2013-12-03 Wei Mi <wmi@google.com>
166 PR rtl-optimization/59020
167 * sched-deps.c (try_group_insn): Move it from haifa-sched.c to here.
168 (sched_analyze_insn): Call try_group_insn.
169 (sched_analyze): Cleanup SCHED_GROUP_P before start the analysis.
170 * haifa-sched.c (try_group_insn): Moved to sched-deps.c.
171 (group_insns_for_macro_fusion): Removed.
172 (sched_init): Remove calling group_insns_for_macro_fusion.
174 2013-12-03 Peter Bergner <bergner@vnet.ibm.com>
176 * config/rs6000/htmintrin.h (_TEXASR_INSTRUCTION_FETCH_CONFLICT): Fix
178 (_TEXASRU_INSTRUCTION_FETCH_CONFLICT): Likewise.
180 2013-12-03 Vladimir Makarov <vmakarov@redhat.com>
182 * config/aarch64/aarch64.c (aarch64_frame_pointer_required): Check
184 (aarch64_can_eliminate): Don't check elimination source when
185 frame_pointer_required is false.
187 2013-12-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
189 * config/avr/avr.c (avr_option_override): Warn if asked to generate
190 position independent code.
191 * config/avr/avr.h: Modify LINK_SPEC to reject -shared.
193 2013-12-03 H.J. Lu <hongjiu.lu@intel.com>
196 * config/i386/i386.c (emit_memset): Adjust destination address
198 (expand_setmem_epilogue): Likewise.
200 2013-12-03 Marek Polacek <polacek@redhat.com>
203 * calls.c (expand_call): Disallow passing huge arguments by value.
205 2013-12-03 Jakub Jelinek <jakub@redhat.com>
207 PR tree-optimization/59362
208 * tree-object-size.c (object_sizes): Change into array of
209 vec<unsigned HOST_WIDE_INT>.
210 (compute_builtin_object_size): Check computed bitmap for
211 non-NULL instead of object_sizes. Call safe_grow on object_sizes
212 vector if new SSA_NAMEs appeared.
213 (init_object_sizes): Check computed bitmap for non-NULL.
214 Call safe_grow on object_sizes elements instead of initializing
216 (fini_object_sizes): Call release on object_sizes elements, don't
220 * gimplify.c (nonlocal_vla_vars): New variable.
221 (gimplify_var_or_parm_decl): Put VAR_DECLs for VLAs into
222 nonlocal_vla_vars chain.
223 (gimplify_body): Call declare_vars on nonlocal_vla_vars chain
224 if outer_bind has DECL_INITIAL (current_function_decl) block.
227 * dojump.c (save_pending_stack_adjust, restore_pending_stack_adjust):
229 * expr.h (struct saved_pending_stack_adjust): New type.
230 (save_pending_stack_adjust, restore_pending_stack_adjust): New
232 * optabs.c (emit_conditional_move): Call save_pending_stack_adjust
233 and get_last_insn before do_pending_stack_adjust, call
234 restore_pending_stack_adjust after delete_insns_since.
235 * expr.c (expand_expr_real_2): Don't call do_pending_stack_adjust
236 before calling emit_conditional_move.
237 * expmed.c (expand_sdiv_pow2): Likewise.
238 * calls.c (expand_call): Use {save,restore}_pending_stack_adjust.
240 2013-12-02 Jeff Law <law@redhat.com>
242 PR tree-optimization/59322
243 * tree-ssa-threadedge.c (create_edge_and_update_destination_phis):
244 Remove code which copied jump threading paths.
246 2013-12-02 Sriraman Tallam <tmsriram@google.com>
249 * config/i386/i386.opt (ix86_arch_string): Mark this variable
250 for saving in cl_target_option.
251 (ix86_tune_string): Ditto.
252 (ix86_cmodel): Ditto.
254 (ix86_asm_dialect): Ditto.
255 (ix86_branch_cost): Ditto.
256 (ix86_dump_tunes): Ditto.
257 (ix86_force_align_arg_pointer): Ditto.
258 (ix86_force_drap): Ditto.
259 (ix86_incoming_stack_boundary_arg): Ditto.
261 (ix86_preferred_stack_boundary_arg): Ditto.
262 (ix86_recip_name): Ditto.
263 (ix86_regparm): Ditto.
264 (ix86_section_threshold): Ditto.
265 (ix86_sse2avx): Ditto.
266 (ix86_stack_protector_guard): Ditto.
267 (ix86_stringop_alg): Ditto.
268 (ix86_tls_dialect): Ditto.
269 (ix86_tune_ctrl_string): Ditto.
270 (ix86_tune_memcpy_strategy): Ditto.
271 (ix86_tune_memset_strategy): Ditto.
272 (ix86_tune_no_default): Ditto.
273 (ix86_veclibabi_type): Ditto.
274 * config/i386/i386.c (function_specific_save): Save the above
275 variables in gcc_options to cl_target_option.
276 (function_specific_restore): Do the reverse done in
277 function_specific_save.
278 (ix86_valid_target_attribute_tree): Change ix86_arch_string
279 and ix86_tune_string to use the opts structure.
280 (ix86_option_override_internal):Change
281 ix86_incoming_stack_boundary_arg to
282 opts->x_ix86_incoming_stack_boundary_arg
284 2013-12-02 Joern Rennecke <joern.rennecke@embecosm.com>
286 * config/epiphany/epiphany.h: Wrap rtl_opt_pass declarations
287 in #ifndef IN_LIBGCC2 / #endif.
289 2013-12-02 Jakub Jelinek <jakub@redhat.com>
291 PR tree-optimization/59358
292 * tree-vrp.c (union_ranges): To check for the partially overlapping
293 ranges or adjacent ranges, also compare *vr0max with vr1max.
295 2013-12-02 Sterling Augustine <saugustine@google.com>
297 * dwarf2out.c (output_pubnames): Use comp_unit_die ()->die_offset
298 when there isn't a skeleton die.
300 2013-12-02 Marek Polacek <polacek@redhat.com>
303 * doc/invoke.texi: Document -fsanitize=return.
305 2013-12-02 Tobias Burnus <burnus@net-b.de>
306 Manuel López-Ibáñez <manu@gcc.gnu.org>
309 * doc/invoke.texi: Add missing @opindex.
310 (-fsanitize=): Use @gcctabopt instead of @itemize.
312 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
314 Fix C++0x memory model for unaligned fields in packed, aligned(4)
315 structures with -fno-strict-volatile-bitfields on STRICT_ALIGNMENT
316 targets like arm-none-eabi.
317 * expr.c (expand_assignment): Handle normal fields like bit regions.
319 2013-12-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
322 * function.c (invoke_set_current_function_hook): Call
323 targetm.set_current_function after setting this_fn_optabs.
325 2013-12-02 Richard Biener <rguenther@suse.de>
327 PR tree-optimization/59139
328 * tree-ssa-loop-niter.c (chain_of_csts_start): Properly match
330 (get_val_for): Use gcc_checking_asserts.
332 2013-12-02 Richard Biener <rguenther@suse.de>
335 * tree-ssa-operands.c (opf_implicit): Remove.
336 (opf_address_taken): New flag.
337 (get_expr_operands): Remove early out, pass down opf_address_taken for
338 ADDR_EXPRs, add a use operand only for non-opf_address_taken bases.
339 (get_indirect_ref_operands): Rename to ...
340 (get_mem_ref_operands): ... this.
341 (get_asm_expr_operands): Rename to ...
342 (get_asm_stmt_operands): ... this.
344 2013-12-02 Yuri Rumyantsev <ysrumyan@gmail.com>
346 * ipa-inline.c (check_callers): Add missed pointer de-reference.
348 2013-12-02 Eric Botcazou <ebotcazou@adacore.com>
350 PR tree-optimization/59356
351 * tree-dfa.h (get_addr_base_and_unit_offset_1) <case ARRAY_REF>: Do the
352 offset computation using the precision of the index type.
354 2013-12-02 Yvan Roux <yvan.roux@linaro.org>
357 * config/arm/arm.c (arm_preferred_reload_class): Only return LO_REGS
358 when rclass is GENERAL_REGS.
360 2013-12-02 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
362 * loop-unroll.c (decide_unroll_constant_iterations): Check macro
363 TARGET_LOOP_UNROLL_ADJUST while deciding unroll factor.
365 2013-12-01 Eric Botcazou <ebotcazou@adacore.com>
367 * config/i386/winnt.c (i386_pe_asm_named_section): Be prepared for an
370 2013-12-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
372 * expr.c (emit_group_store): Fix off-by-one BITFIELD_END argument.
374 2013-11-30 Paulo Matos <pmatos@broadcom.com>
375 Eric Botcazou <ebotcazou@adacore.com>
377 * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
378 as applied to nonzero_sign_valid when last_set_mode has less precision
381 2013-11-30 Tobias Burnus <burnus@net-b.de>
384 * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
385 environment variable and link to a list with flags.
386 (-fsanitize=thread): Ditto and update link.
388 2013-11-29 Vladimir Makarov <vmakarov@redhat.com>
390 PR rtl-optimization/59340
391 * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
394 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
396 * lra.c (lra): Set lra_in_progress before check_rtl call.
397 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
398 adding clobber regs when LRA is running.
400 2013-11-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
403 * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
405 2013-11-29 Richard Biener <rguenther@suse.de>
408 * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
409 free_stmt_operands, update_stmt_operands): Add struct function
411 * tree-ssa-operands.c: Remove uses of cfun, propagate struct
412 function argument from fini_ssa_operands, verify_ssa_operands,
413 free_stmt_operands and update_stmt_operands everywhere.
414 * tree-ssanames.h (release_ssa_name_fn): New.
415 (release_ssa_name): Inline wrapper around release_ssa_name_fn.
416 * tree-ssanames.c (release_ssa_name): Rename to ...
417 (release_ssa_name_fn): ... this and add struct function argument.
418 * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
419 (update_stmt_fn): New function.
420 * tree-cfg.c (move_block_to_fn): Adjust.
421 * tree-if-conv.c (free_bb_predicate): Likewise.
422 * tree-ssa.c (verify_ssa): Likewise.
423 (delete_tree_ssa): Likewise.
424 * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
425 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
426 update_stmt_fn instead of update_stmt.
428 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
430 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
433 2013-11-29 Yvan Roux <yvan.roux@linaro.org>
435 * config/arm/arm.md (store_minmaxsi): Use only when
436 optimize_function_for_size_p.
438 2013-11-29 Jakub Jelinek <jakub@redhat.com>
439 Yury Gribov <y.gribov@samsung.com>
442 * config/gnu-user.h: Removed old code for setting up sanitizer libs.
443 * gcc.c: Using libsanitizer spec instead of explicit libs.
445 2013-11-29 Ilya Enkovich <ilya.enkovich@intel.com>
448 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
449 * cgraph.h (varpool_node): Add need_bounds_init field.
450 * lto-cgraph.c (lto_output_varpool_node): Output
451 need_bounds_init value.
452 (input_varpool_node): Read need_bounds_init value.
453 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
456 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
457 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
458 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
459 (gen_type_die_with_usage): Skip pointer bounds.
460 (dwarf2out_global_decl): Likewise.
463 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
464 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
465 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
466 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
467 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
468 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
469 (gimple_call_with_bounds_p): New.
470 (gimple_call_set_with_bounds): New.
471 (gimple_call_num_nobnd_args): Remove.
472 (gimple_call_nobnd_arg): Remove.
473 * tree.h (CALL_WITH_BOUNDS_P): New.
474 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
477 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
478 * common.opt (fcheck-pointer-bounds): Move to ...
479 * c-family/c.opt: ... here.
480 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
481 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
482 * langhooks.h (lang_hooks): Remove chkp_supported field.
483 * toplev.c (process_options): Remove chkp_supported check.
486 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
487 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
488 * tree.h (POINTER_BOUNDS_P): New.
489 (BOUNDED_TYPE_P): New.
491 (pointer_bounds_type_node): New.
492 * tree.c (build_common_tree_nodes): Initialize
493 pointer_bounds_type_node.
494 * gimple.h (gimple_call_get_nobnd_arg_index): New.
495 (gimple_call_num_nobnd_args): New.
496 (gimple_call_nobnd_arg): New.
497 (gimple_return_retbnd): New.
498 (gimple_return_set_retbnd): New
499 * gimple.c (gimple_build_return): Increase number of ops
500 for return statement.
501 (gimple_call_get_nobnd_arg_index): New.
502 * gimple-pretty-print.c (dump_gimple_return): Print second op.
505 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
506 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
507 with "chkp ctor" and "bnd_legacy" attributes.
508 * gimplify.c (gimplify_init_constructor): Avoid infinite
509 loop during gimplification of bounds initializer.
512 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
513 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
514 (handle_bnd_legacy): New.
515 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
516 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
520 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
521 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
522 (BT_FN_PTR_CONST_PTR): New.
523 (BT_FN_CONST_PTR_CONST_PTR): New.
524 (BT_FN_PTR_CONST_PTR_SIZE): New.
525 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
526 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
527 (BT_FN_VOID_CONST_PTR_SIZE): New.
528 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
529 * chkp-builtins.def: New.
530 * builtins.def: include chkp-builtins.def.
531 (DEF_CHKP_BUILTIN): New.
532 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
533 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
534 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
535 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
536 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
537 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
538 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
539 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
540 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
541 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
542 * common.opt (fcheck-pointer-bounds): New.
543 * toplev.c (process_options): Check Pointer Bounds Checker is
545 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
548 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
549 * target.def (builtin_chkp_function): New.
550 (chkp_bound_type): New.
551 (chkp_bound_mode): New.
552 (fn_abi_va_list_bounds_size): New.
553 (load_bounds_for_arg): New.
554 (store_bounds_for_arg): New.
555 * targhooks.h (default_load_bounds_for_arg): New.
556 (default_store_bounds_for_arg): New.
557 (default_fn_abi_va_list_bounds_size): New.
558 (default_chkp_bound_type): New.
559 (default_chkp_bound_mode): New.
560 (default_builtin_chkp_function): New.
561 * targhooks.c (default_load_bounds_for_arg): New.
562 (default_store_bounds_for_arg): New.
563 (default_fn_abi_va_list_bounds_size): New.
564 (default_chkp_bound_type): New.
565 (default_chkp_bound_mode); New.
566 (default_builtin_chkp_function): New.
567 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
568 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
569 (TARGET_STORE_BOUNDS_FOR_ARG): New.
570 (TARGET_BUILTIN_CHKP_FUNCTION): New.
571 (TARGET_CHKP_BOUND_TYPE): New.
572 (TARGET_CHKP_BOUND_MODE): New.
573 * doc/tm.texi: Regenerated.
574 * langhooks.h (lang_hooks): Add chkp_supported field.
575 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
576 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
579 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
580 * config/i386/constraints.md (B): New.
583 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
584 * config/i386/i386-modes.def (BND32): New.
586 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
587 * config/i386/i386.c (isa_opts): Add mmpx.
588 (regclass_map): Add bound registers.
589 (dbx_register_map): Likewise.
590 (dbx64_register_map): Likewise.
591 (svr4_dbx_register_map): Likewise.
593 (ix86_option_override_internal): Support MPX ISA.
594 (ix86_conditional_register_usage): Support bound registers.
595 (print_reg): Likewise.
596 (ix86_code_end): Add MPX bnd prefix.
597 (output_set_got): Likewise.
598 (ix86_output_call_insn): Likewise.
599 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
600 (ix86_print_operand_punct_valid_p): Likewise.
601 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
603 (ix86_class_likely_spilled_p): Add bound regs support.
604 (ix86_hard_regno_mode_ok): Likewise.
605 (x86_order_regs_for_local_alloc): Likewise.
606 (ix86_bnd_prefixed_insn_p): New.
607 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
608 (FIXED_REGISTERS): Add bound registers.
609 (CALL_USED_REGISTERS): Likewise.
610 (REG_ALLOC_ORDER): Likewise.
611 (HARD_REGNO_NREGS): Likewise.
613 (VALID_BND_REG_MODE): New.
614 (FIRST_BND_REG): New.
616 (reg_class): Add BND_REGS.
617 (REG_CLASS_NAMES): Likewise.
618 (REG_CLASS_CONTENTS): Likewise.
620 (ANY_BND_REG_P): New.
622 (HI_REGISTER_NAMES): Add bound registers.
623 * config/i386/i386.md (UNSPEC_BNDMK): New.
624 (UNSPEC_BNDMK_ADDR): New.
625 (UNSPEC_BNDSTX): New.
626 (UNSPEC_BNDLDX): New.
627 (UNSPEC_BNDLDX_ADDR): New.
631 (UNSPEC_MPX_FENCE): New.
634 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
635 (length_immediate): Likewise.
636 (prefix_0f): Likewise.
638 (prefix_rep): Check for bnd prefix.
640 (length): Use length_nobnd if specified.
645 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
648 (simple_return_internal): Likewise.
649 (simple_return_pop_internal): Likewise.
650 (*indirect_jump): Add MPX bnd prefix.
651 (*tablejump_1): Likewise.
652 (simple_return_internal_long): Likewise.
653 (simple_return_indirect_internal): Likewise.
657 (*mov<mode>_internal_mpx): New.
658 (<mode>_<bndcheck>): New.
659 (*<mode>_<bndcheck>): New.
664 * config/i386/predicates.md (lea_address_operand): Rename to...
665 (address_no_seg_operand): ... this.
666 (address_mpx_no_base_operand): New.
667 (address_mpx_no_index_operand): New.
668 (bnd_mem_operator): New.
669 * config/i386/i386.opt (mmpx): New.
670 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
671 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
674 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
675 * mode-classes.def (MODE_POINTER_BOUNDS): New.
676 * tree.def (POINTER_BOUNDS_TYPE): New.
677 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
678 (POINTER_BOUNDS_MODE): New.
679 (make_pointer_bounds_mode): New.
680 * machmode.h (POINTER_BOUNDS_MODE_P): New.
681 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
682 (layout_type): Support POINTER_BOUNDS_TYPE.
683 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
684 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
685 (type_contains_placeholder_1): Likewise.
686 * tree.h (POINTER_BOUNDS_TYPE_P): New.
687 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
688 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
690 2013-11-29 Richard Biener <rguenther@suse.de>
693 * tree-cfg.c (verify_expr): Restrict bounds verification of
694 BIT_FIELD_REF arguments to non-aggregate typed base objects.
696 2013-11-29 Richard Biener <rguenther@suse.de>
698 PR tree-optimization/59334
699 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
702 2013-11-29 Jakub Jelinek <jakub@redhat.com>
703 Richard Biener <rguenther@suse.de>
706 * omp-low.c (simd_clone_create): Return NULL if for definition
707 !cgraph_function_with_gimple_body_p (old_node). Call cgraph_get_body
708 before calling cgraph_function_versioning.
709 (expand_simd_clones): Look for "omp declare simd" attribute first.
710 Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
711 Punt if node->global.inlined_to.
712 (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
713 Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
714 * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
716 2013-11-29 Jakub Jelinek <jakub@redhat.com>
719 * tree-core.h (enum omp_clause_schedule_kind): Add
720 OMP_CLAUSE_SCHEDULE_LAST.
721 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
722 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
723 (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
724 (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
725 * lto-streamer-out.c (lto_is_streamable): Allow streaming OMP_CLAUSE.
726 (DFS_write_tree_body): Handle OMP_CLAUSE.
727 * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New function.
728 (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
729 (write_ts_omp_clause_tree_pointers): New function.
730 (streamer_write_tree_body): Call it for OMP_CLAUSE.
731 (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
732 * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New function.
733 (unpack_value_fields): Call it for OMP_CLAUSE.
734 (streamer_alloc_tree): Handle OMP_CLAUSE.
735 (lto_input_ts_omp_clause_tree_pointers): New function.
736 (streamer_read_tree_body): Call it for OMP_CLAUSE.
738 2013-11-29 Joseph Myers <joseph@codesourcery.com>
740 * doc/implement-c.texi: Document C11 implementation-defined
741 behavior. Refer to -ffp-contract=fast for contraction behavior.
742 * doc/invoke.texi (-std=c99, std=c11): Update description of
744 (-std=gnu99): Don't mention as future default.
745 (-std=gnu11): Mention as intended future default.
746 * doc/standards.texi: Update descriptions of C99 and C11 support.
747 Limit statement about C99 facilities for freestanding
748 implementations to some platforms only.
750 2013-11-28 Jakub Jelinek <jakub@redhat.com>
753 * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit HWI hosts.
755 2013-11-28 Vladimir Makarov <vmakarov@redhat.com>
758 * ira.h (ira_setup_eliminable_regset): Remove parameter.
759 * ira.c (ira_setup_eliminable_regset): Ditto. Add
760 SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
761 Don't call lra_init_elimination.
762 (ira): Call ira_setup_eliminable_regset without arguments.
763 * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
764 from ira_setup_eliminable_regset call.
765 * gcse.c (calculate_bb_reg_pressure): Ditto.
766 * haifa-sched.c (sched_init): Ditto.
767 * lra.h (lra_init_elimination): Remove the prototype.
768 * lra-int.h (lra_insn_recog_data): New member sp_offset. Move
769 used_insn_alternative upper.
770 (lra_eliminate_regs_1): Add one more parameter.
771 (lra-eliminate): Ditto.
772 * lra.c (lra_invalidate_insn_data): Set sp_offset.
773 (setup_sp_offset): New.
774 (lra_process_new_insns): Call setup_sp_offset.
775 (lra): Add argument to lra_eliminate calls.
776 * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
777 (get_equiv_with_elimination): New.
778 (process_addr_reg): Call get_equiv_with_elimination instead of
779 get_equiv_substitution.
780 (equiv_address_substitution): Ditto.
781 (loc_equivalence_change_p): Ditto.
782 (loc_equivalence_callback, lra_constraints): Ditto.
783 (curr_insn_transform): Ditto. Print the sp offset
784 (process_alt_operands): Prevent stack pointer reloads.
785 (lra_constraints): Remove one argument from lra_eliminate call.
786 Move it up. Mark used hard regs bfore it. Use
787 get_equiv_with_elimination instead of get_equiv_substitution.
788 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
789 assert for param values combination. Use sp offset. Add argument
790 to lra_eliminate_regs_1 calls.
791 (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
792 (curr_sp_change): New static var.
793 (mark_not_eliminable): Add parameter. Update curr_sp_change.
794 Don't prevent elimination to sp if we can calculate its change.
795 Pass the argument to mark_not_eliminable calls.
796 (eliminate_regs_in_insn): Add a parameter. Use sp offset. Add
797 argument to lra_eliminate_regs_1 call.
798 (update_reg_eliminate): Move calculation of hard regs for spill
799 lower. Switch off lra_in_progress temporarily to generate regs
800 involved into elimination.
801 (lra_init_elimination): Rename to init_elimination. Make it
802 static. Set up insn sp offset, check the offsets at the end of BBs.
803 (process_insn_for_elimination): Add parameter. Pass its value to
804 eliminate_regs_in_insn.
805 (lra_eliminate): : Add parameter. Pass its value to
806 process_insn_for_elimination. Add assert for param values
807 combination. Call init_elimination. Don't update offsets in
808 equivalence substitutions.
809 * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
810 for created stack slot.
811 (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
814 2013-11-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
816 * config/arm/iterators.md (vrint_conds): New int attribute.
817 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
818 (smax<mode>3): Likewise.
819 (smin<mode>3): Likewise.
821 2013-11-28 Richard Sandiford <rdsandiford@googlemail.com>
823 * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
824 * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
825 * tree-ssanames.h (set_range_info): Add range_type argument.
826 (duplicate_ssa_name_range_info): Likewise.
827 * tree-ssanames.c (set_range_info): Take the range type as argument
828 and store it in SSA_NAME_ANTI_RANGE_P.
829 (duplicate_ssa_name_range_info): Likewise.
830 (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
831 (set_nonzero_bits): Update call to set_range_info.
832 (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
833 * tree-ssa-copy.c (fini_copy_prop): Likewise.
834 * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
835 (vrp_finalize): Likewise, passing anti-ranges directly.
837 2013-11-28 Richard Biener <rguenther@suse.de>
839 PR tree-optimization/59330
840 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
841 and fix delayed marking of free calls not necessary.
843 2013-11-28 Andrew MacLeod <amacleod@redhat.com>
845 * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
847 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
849 2013-11-28 Terry Guo <terry.guo@arm.com>
851 * config/arm/arm.c (v7m_extra_costs): New table.
852 (arm_v7m_tune): Use it.
854 2013-11-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
856 * config/sol2.h (TIME_LIBRARY): Define.
858 2013-11-28 Richard Biener <rguenther@suse.de>
861 * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
862 CONST_DECLs in function context are not indexable.
864 2013-11-28 Chung-Ju Wu <jasonwucj@gmail.com>
866 * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
867 not optimized for size.
869 2013-11-28 Jakub Jelinek <jakub@redhat.com>
871 * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
873 (expand_stack_vars): For -fsanitize=address, use (and set initially)
874 data->asan_base as base for vars and update asan_alignb.
875 (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
876 Pass them to asan_emit_stack_protection.
877 * asan.c (asan_detect_stack_use_after_return): New variable.
878 (asan_emit_stack_protection): Add pbase and alignb arguments.
879 Implement use after return sanitization.
880 * asan.h (asan_emit_stack_protection): Adjust prototype.
881 (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
883 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
885 * common.opt: Introduced a new option -fsimd-cost-model.
886 * doc/invoke.texi: Introduced a new openmp-simd warning and
887 a new -fsimd-cost-model option.
888 * tree-vectorizer.h (unlimited_cost_model): Interface updated
889 to rely on the particular loop info.
890 * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
891 (vect_peeling_hash_choose_best_peeling): Ditto.
892 (vect_enhance_data_refs_alignment): Ditto.
893 * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
894 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
895 plus added openmp-simd warining.
897 2013-11-27 H.J. Lu <hongjiu.lu@intel.com>
899 PR rtl-optimization/59311
900 * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
901 * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
903 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
905 * var-tracking.c (track_expr_p): Do not track declarations for parts
906 of tracked parameters.
907 (add_stores): Do not track values for tracked parameters passed in
909 (vt_get_decl_and_offset): Handle PARALLEL.
910 (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
912 2013-11-27 Jeff Law <law@redhat.com>
914 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
915 clobber the loop structure thread_block was unsuccessful. If
916 thread_block was unsuccessful, cleanup appropriately.
918 2013-11-27 Chen Liqin <liqin.gcc@gmail.com>
920 * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
921 (score_char_to_class): Likewise.
923 2013-11-27 Kenneth Zadeck <zadeck@naturalbridge.com>
925 * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with
926 the overflow bit set.
928 2013-11-27 Richard Biener <rguenther@suse.de>
931 * cgraphbuild.c (build_cgraph_edges): Do not build edges
933 (rebuild_cgraph_edges): Likewise.
934 * ipa-inline-analysis.c (estimate_function_body_sizes):
936 * tree-inline.c (estimate_num_insns): Estimate size of internal
938 (gimple_expand_calls_inline): Do not try inline-expanding
940 * lto-streamer-in.c (input_cfg): Stream loop safelen,
941 force_vect and simduid.
942 (input_struct_function_base): Stream has_force_vect_loops
943 and has_simduid_loops.
944 (input_function): Adjust.
945 * lto-streamer-out.c (output_cfg): Stream loop safelen,
946 force_vect and simduid.
947 (output_struct_function_base): Stream has_force_vect_loops
948 and has_simduid_loops.
950 2013-11-27 Kai Tietz <ktietz@redhat.com>
952 * config/i386/winnt.c (i386_pe_section_type_flags): Use const
955 2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
957 * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
958 * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
960 2013-11-27 Marek Polacek <polacek@redhat.com>
963 * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
964 instead of walk_gimple_op.
965 (ubsan_pass): Adjust. Call instrument_null only if SANITIZE_NULL.
967 2013-11-27 Aldy Hernandez <aldyh@redhat.com>
968 Jakub Jelinek <jakub@redhat.com>
970 * cgraph.h (enum cgraph_simd_clone_arg_type): New.
971 (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
972 (struct cgraph_node): Add simdclone and simd_clones fields.
973 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
974 ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
975 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
976 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
977 * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
978 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
979 * doc/tm.texi: Regenerated.
980 * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
981 * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
982 attribute is present.
983 * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
984 (simd_clone_vector_of_formal_parm_types): New function.
985 (simd_clone_struct_alloc, simd_clone_struct_copy,
986 simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
987 simd_clone_compute_base_data_type, simd_clone_mangle,
988 simd_clone_create, simd_clone_adjust_return_type,
989 create_tmp_simd_array, simd_clone_adjust_argument_types,
990 simd_clone_init_simd_arrays): New functions.
991 (struct modify_stmt_info): New type.
992 (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
993 simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
995 (pass_data_omp_simd_clone): New variable.
996 (pass_omp_simd_clone): New class.
997 (make_pass_omp_simd_clone): New function.
998 * passes.def (pass_omp_simd_clone): New.
999 * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
1000 TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target hooks.
1001 * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
1002 * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
1003 * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
1004 * tree-pass.h (make_pass_omp_simd_clone): New prototype.
1005 * tree-vect-data-refs.c: Include cgraph.h.
1006 (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
1007 and find_data_references_in_bb, if find_data_references_in_stmt
1008 fails, still allow calls to #pragma omp declare simd functions
1009 in #pragma omp simd loops unless they contain data references among
1010 the call arguments or in lhs.
1011 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1013 (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls
1015 * tree-vectorizer.h (enum stmt_vec_info_type): Add
1016 call_simd_clone_vec_info_type.
1017 (struct _stmt_vec_info): Add simd_clone_fndecl field.
1018 (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
1019 * tree-vect-stmts.c: Include tree-ssa-loop.h,
1020 tree-scalar-evolution.h and cgraph.h.
1021 (vectorizable_call): Handle calls without lhs. Assert
1022 !stmt_can_throw_internal instead of failing for it. Don't update
1024 (struct simd_call_arg_info): New.
1025 (vectorizable_simd_clone_call): New function.
1026 (vect_transform_stmt): Call it.
1027 (vect_analyze_stmt): Likewise. Allow NULL STMT_VINFO_VECTYPE for
1029 * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
1030 if cgraph_function_with_gimple_body_p is true.
1032 2013-11-27 Tom de Vries <tom@codesourcery.com>
1033 Marc Glisse <marc.glisse@inria.fr>
1036 * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
1038 * gimple-fold.c (gimple_fold_indirect_ref): Same.
1039 * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
1042 2013-11-27 Eric Botcazou <ebotcazou@adacore.com>
1045 * expr.c (emit_group_store): Don't write past the end of the structure.
1046 (store_bit_field): Fix formatting.
1048 2013-11-27 Richard Biener <rguenther@suse.de>
1050 PR tree-optimization/59288
1051 * tree-vect-loop.c (get_initial_def_for_induction): Do not
1052 re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
1054 2013-11-27 Marek Polacek <polacek@redhat.com>
1056 * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
1057 for a decl, recreate that decl. Save into the hash table VAR_DECLs
1058 rather than ADDR_EXPRs.
1060 2013-11-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1062 * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
1064 2013-11-26 David Malcolm <dmalcolm@redhat.com>
1066 * gengtype.c (struct seen_tag): New.
1067 (already_seen_tag): New.
1068 (mark_tag_as_seen): New.
1069 (walk_subclasses): Support having multiple subclasses using the
1070 same tag by tracking which tags have already been seen, and using
1071 this to avoid adding duplicate cases to the "switch" statement.
1072 The call to already_seen_tag introduces an O(N^2) when running
1073 gengtype on N, the number of tags, due to the repeated linear
1074 search, but currently max(N) is relatively small (the number of
1075 GSS codes, which is 26).
1076 (walk_type): Pass in a seen_tag for use by the walk_subclasses
1079 * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
1080 underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
1081 GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
1082 GIMPLE_OMP_RETURN happens to share the data layout of
1083 GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
1084 (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
1085 underlying GSS value from GSS_OMP_PARALLEL to
1086 GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
1087 not directly related; they merely share in-memory layout.
1088 (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
1089 for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
1091 * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
1093 (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
1095 (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
1096 (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout): ...these.
1097 (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename to...
1098 (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
1101 * gimple.h (gimple_statement_resx): New subclass of
1102 gimple_statement_eh_ctrl, with the invariant that
1103 stmt->code == GIMPLE_RESX.
1104 (gimple_statement_eh_dispatch): New subclass of
1105 gimple_statement_eh_ctrl, with the invariant that
1106 stmt->code == GIMPLE_EH_DISPATH.
1108 (gimple_statement_omp_parallel): The existing class expressed
1109 a layout (GSS_OMP_PARALLEL), but the codes with that layout
1110 are not all related, so it makes more sense for this class to
1111 express a *code* (GIMPLE_OMP_PARALLEL). GSS_OMP_PARALLEL has
1112 been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
1113 rename the existing gimple_statement_omp_parallel class to...
1114 (gimple_statement_omp_parallel_layout): ...this, expressing
1115 a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
1116 (gimple_statement_omp_taskreg): New subclass of
1117 gimple_statement_omp_parallel_layout, expressing the invariant
1118 that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
1119 as used by the various gimple_omp_taskreg_ accessors.
1120 (gimple_statement_omp_parallel): Reintroduce this class, this time
1121 as a subclass of gimple_statement_omp_taskreg to express the
1122 invariant stmt->code == GIMPLE_OMP_PARALLEL.
1123 (gimple_statement_omp_target) New class, subclassing
1124 gimple_statement_omp_parallel_layout, to express the invariant
1125 stmt->code == GIMPLE_OMP_TARGET.
1126 (gimple_statement_omp_task): Update to inherit from
1127 gimple_statement_omp_taskreg rather than
1128 gimple_statement_omp_parallel.
1130 (gimple_statement_omp_single): Rename to...
1131 (gimple_statement_omp_single_layout): ...this, expressing the
1132 invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
1133 (gimple_statement_omp_single): ...and reintroduce this name as
1134 a subclass of gimple_statement_omp_single_layout, expressing
1135 the invariant that code == GIMPLE_OMP_SINGLE.
1136 (gimple_statement_omp_teams): New class, subclassing
1137 gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
1139 (gimple_statement_omp_atomic_store): Rename to...
1140 (gimple_statement_omp_atomic_store_layout): ...this, expressing
1141 the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
1142 (gimple_statement_omp_atomic_store): ...and reintroduce this
1143 name as a subclass of gimple_statement_omp_atomic_store_layout
1144 with code == GIMPLE_OMP_ATOMIC_STORE.
1145 (gimple_statement_omp_return): New class, subclassing
1146 gimple_statement_omp_atomic_store_layout for the code
1149 (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
1150 (is_a_helper <gimple_statement_resx>::test): New.
1151 (is_a_helper <gimple_statement_eh_dispatch>::test): New.
1152 (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
1153 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1154 (is_a_helper <gimple_statement_omp_return>::test): New.
1155 (is_a_helper <gimple_statement_omp_taskreg>::test): New.
1156 (is_a_helper <gimple_statement_omp_parallel>::test): Only check
1157 for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1159 (is_a_helper <gimple_statement_omp_target>::test): New.
1160 (is_a_helper <gimple_statement_omp_single>::test): Only check
1161 for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1162 (is_a_helper <gimple_statement_omp_teams>::test): New.
1164 (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
1165 (is_a_helper <const gimple_statement_resx>::test): New.
1166 (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
1167 (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
1168 check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
1169 (is_a_helper <const gimple_statement_omp_return>::test): New.
1170 (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
1171 (is_a_helper <const gimple_statement_omp_parallel>::test): Only
1172 check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
1174 (is_a_helper <const gimple_statement_omp_target>::test): New.
1175 (is_a_helper <const gimple_statement_omp_single>::test): Only
1176 check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
1177 (is_a_helper <const gimple_statement_omp_teams>::test): New.
1179 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
1180 gimple_omp_return_lhs_ptr): Replace bogus downcasts to
1181 gimple_statement_omp_atomic_store with downcasts to
1182 gimple_statement_omp_return, thus requiring that the code be
1184 (gimple_resx_region, gimple_resx_set_region): Replace bogus
1185 downcasts to gimple_statement_eh_ctrl with downcasts to
1186 gimple_statement_resx, thus requiring that the code be GIMPLE_RESX.
1187 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
1188 Replace bogus downcasts to const gimple_statement_eh_ctrl with
1189 downcasts to gimple_statement_eh_dispatch, thus requiring that
1190 the code be GIMPLE_EH_DISPATCH.
1191 (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
1192 gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
1193 gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
1194 gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
1195 gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
1196 gimple_statement_omp_parallel with downcasts to
1197 gimple_statement_omp_taskreg, thus requiring that the code be
1198 either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
1199 (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
1200 gimple_omp_target_set_clauses, gimple_omp_target_child_fn
1201 gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
1202 gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
1203 gimple_omp_target_set_data_arg): Replace bogus downcasts to
1204 gimple_statement_omp_parallel with downcasts to
1205 gimple_statement_omp_target, thus requiring that the code be
1207 (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
1208 gimple_omp_teams_set_clauses): Replace bogus downcasts to
1209 gimple_statement_omp_single with downcasts to
1210 gimple_statement_omp_teams, thus requiring that the code be
1213 * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
1214 gimple_statement_resx.
1215 (gimple_build_eh_dispatch): Fix bogus as_a<> to use
1216 gimple_statement_eh_dispatch.
1218 2013-11-26 Jakub Jelinek <jakub@redhat.com>
1220 PR tree-optimization/59014
1221 * tree-vrp.c (register_edge_assert_for_1): Don't look
1222 through conversions from non-integral types or through
1223 narrowing conversions.
1226 * config/i386/i386.c (device_alg): Fix up formatting.
1227 (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
1228 similarly to count && count < epilogue_size_needed. Fix up
1230 * builtins.c (determine_block_size): Fix comment typo.
1233 * ubsan.c (ubsan_source_location): Don't add any location
1234 to ADDR_EXPR in the ctor. Revert 2013-11-22 change.
1235 (ubsan_create_data): Strip block info from LOC.
1238 * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
1239 if there isn't optab handler for the corresponding vector PLUS_EXPR.
1241 PR rtl-optimization/59166
1242 * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
1243 DF_REF_LOC in validate_change call.
1244 (split_live_ranges_for_shrink_wrap): Likewise.
1247 * omp-low.c (lower_rec_input_clause): For reduction with placeholder
1248 of references to constant size types in simd loops, defer emitting
1249 initializer for the new_var, emit it later on only if not using
1253 * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
1254 for the inner loop if collapse_bb is non-NULL.
1255 (expand_omp_simd): Use cont_bb rather than e->dest as latch.
1257 2013-11-26 Yufeng Zhang <yufeng.zhang@arm.com>
1259 * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
1260 a constant immediate before force_reg.
1262 2013-11-26 Richard Biener <rguenther@suse.de>
1264 PR tree-optimization/59245
1265 * tree-vrp.c (set_value_range): Assert that we don't have
1266 overflowed constants (but our infinities).
1267 (set_value_range_to_value): Drop all overflow flags.
1268 (vrp_visit_phi_node): Likewise.
1269 (vrp_visit_assignment_or_call): Use set_value_range_to_value
1270 to set a constant range.
1272 2013-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1275 * config/arm/arm.md (*zextendsidi_negsi): New pattern.
1276 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
1277 for zero_extend case.
1279 2013-11-26 H.J. Lu <hongjiu.lu@intel.com>
1282 * configure.ac (install_gold_as_default): New. Set to yes for
1283 --disable-ld or --enable-gold=default.
1284 (gcc_cv_ld_gold_srcdir): New.
1285 (gcc_cv_ld): Also check in-tree gold if install_gold_as_default is yes.
1286 (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
1287 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1288 * configure: Regenerated.
1290 * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
1291 (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
1292 (original) [collect-ld && -fuse-ld=bfd]: Set to
1293 $ORIGINAL_LD_BFD_FOR_TARGET.
1294 (original) [collect-ld && -fuse-ld=gold]: Set to
1295 $ORIGINAL_LD_GOLD_FOR_TARGET.
1296 (dir) [collect-ld && ../gold/ld-new]: Set to gold.
1297 (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
1299 2013-11-26 Terry Guo <terry.guo@arm.com>
1301 * config/arm/arm.c (require_pic_register): Handle high pic base
1302 register for thumb-1.
1303 (arm_load_pic_register): Also initialize high pic base register.
1304 * doc/invoke.texi: Update documentation for option -mpic-register.
1306 2013-11-26 Oleg Endo <olegendo@gcc.gnu.org>
1310 * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
1311 Prefix function names with 'sh_'. Make them non-static.
1312 * config/sh/sh-protos.h (sh_disp_addr_displacement,
1313 sh_max_mov_insn_displacement): Add declarations.
1314 * config/sh/constraints.md (Q): Reject QImode.
1315 (Sdd): Use match_code "mem".
1316 (Snd): Fix erroneous matching of non-memory operands.
1317 * config/sh/predicates.md (short_displacement_mem_operand): New
1319 (general_movsrc_operand): Disallow PC relative QImode loads.
1320 * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
1321 (*movqi, *movhi): Merge both insns into...
1322 (*mov<mode>): ... this new insn. Replace generic 'm' constraints with
1323 'Snd' and 'Sdd' constraints. Calculate insn length dynamically based
1324 on the operand types.
1326 2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
1328 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1329 Remove unused variable save_config.
1330 (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
1333 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1335 * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
1336 using other intrinsics.
1337 (vtbx3_<psu>8): Likewise.
1339 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1341 * config/aarch64/aarch64-builtins.c
1342 (aarch64_types_bsl_p_qualifiers): New.
1343 (aarch64_types_bsl_s_qualifiers): Likewise.
1344 (aarch64_types_bsl_u_qualifiers): Likewise.
1345 (TYPES_BSL_P): Likewise.
1346 (TYPES_BSL_S): Likewise.
1347 (TYPES_BSL_U): Likewise.
1348 (BUILTIN_VALLDIF): Likewise.
1349 (BUILTIN_VDQQH): Likewise.
1350 * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
1351 * config/aarch64/aarch64-simd.md
1352 (aarch64_simd_bsl<mode>_internal): Handle more modes.
1353 (aarch64_simd_bsl<mode>): Likewise.
1354 * config/aarch64/arm_neon.h
1355 (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
1356 * config/aarch64/iterators.md (VALLDIF): New.
1357 (Vbtype): Handle more modes.
1359 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1361 * config/aarch64/aarch64-builtins.c
1362 (aarch64_type_qualifiers): Add qualifier_poly.
1363 (aarch64_build_scalar_type): Also build Poly types.
1364 (aarch64_build_vector_type): Likewise.
1365 (aarch64_build_type): Likewise.
1366 (aarch64_build_signed_type): New.
1367 (aarch64_build_unsigned_type): Likewise.
1368 (aarch64_build_poly_type): Likewise.
1369 (aarch64_init_simd_builtins): Also handle Poly types.
1371 2013-11-26 James Greenhalgh <james.greenhalgh@arm.com>
1373 * config/aarch64/aarch64-builtins.c
1374 (VAR1): Use new naming scheme for aarch64_builtins.
1375 (aarch64_builtin_vectorized_function): Use new aarch64_builtins names.
1377 2013-11-26 Richard Biener <rguenther@suse.de>
1379 PR tree-optimization/59287
1380 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1381 Remove no longer necessary special-casing of union accesses.
1383 2013-11-26 Richard Biener <rguenther@suse.de>
1385 * pretty-print.c (output_buffer::~output_buffer): Really
1388 2013-11-25 Jeff Law <law@redhat.com>
1390 * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1391 invalidate loop information.
1393 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1395 * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1397 2013-11-25 Oleg Endo <olegendo@gcc.gnu.org>
1401 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1403 (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1404 previously visited basic blocks before recursing instead of only one
1407 2013-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1409 * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1410 * config/aarch64/aarch64-cores.def (cortex-a53):
1411 Use cortexa53 tuning struct.
1413 2013-11-25 Andrew Macleod <amacleod@redhat.com>
1416 * fold-const.c: Include hash-table.h.
1418 2013-11-25 Marek Polacek <polacek@redhat.com>
1421 * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1423 2013-11-25 Richard Biener <rguenther@suse.de>
1425 * tree-dfa.c: Remove unused convert.h include.
1427 2013-11-25 Terry Guo <terry.guo@arm.com>
1429 * doc/invoke.texi (-mslow-flash-data): Document new option.
1430 * config/arm/arm.opt (mslow-flash-data): New option.
1431 * config/arm/arm-protos.h (arm_max_const_double_inline_cost):
1433 * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1435 (arm_disable_literal_pool): Declare it.
1436 * config/arm/arm.c (arm_disable_literal_pool): New variable.
1437 (arm_option_override): Handle new option.
1438 (thumb2_legitimate_address_p): Don't allow symbol references when
1439 literal pools are disabled.
1440 (arm_max_const_double_inline_cost): New function.
1441 * config/arm/arm.md (types.md): Include it before ...
1442 (use_literal_pool): New attribute.
1443 (enabled): Use new attribute.
1444 (split pattern): Replace symbol+offset with MOVW/MOVT.
1446 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1449 Revert previous commit.
1451 2013-11-24 Steven Bosscher <steven@gcc.gnu.org>
1453 * jump.c (reset_insn_reg_label_operand_notes): New function,
1455 (init_label_info): ... here. Reset LABEL_NUSES in cfglayout mode.
1456 * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1458 (delete_dead_jumptables): ... here. Handle cfglayout mode.
1459 (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1460 expensive CFG cleanup is called for.
1461 * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1462 (cfg_layout_finalize): Delete dead jump tables before re-building
1464 * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1465 basic blocks, not before.
1466 * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1468 * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1469 insns chain of a scheduling extended basic block, they cannot appear
1470 there in cfglayout mode.
1472 2013-11-24 Tobias Burnus <burnus@net-b.de>
1474 * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1476 2013-11-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1478 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1481 2013-11-24 H.J. Lu <hongjiu.lu@intel.com>
1483 * graphite-sese-to-poly.c: Don't include extra "expr.h".
1485 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1487 * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1489 2013-11-23 David Edelson <dje.gcc@gmail.com>
1490 Andrew Dixie <andrewd@gentrack.com>
1493 * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1494 (COLLECT_SHARED_FINI_FUNC): Define.
1496 * collect2.c (aix_shared_initname): Declare.
1497 (aix_shared_fininame): Declare.
1498 (symkind): Add SYM_AIXI and SYM_AIXD.
1499 (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1500 (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1501 (aixlazy_flag): Parse.
1502 (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1503 (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1505 2013-11-23 David Edelsohn <dje.gcc@gmail.com>
1507 * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1508 (rs6000_xcoff_select_section): Place decls with stricter alignment
1509 into named sections.
1510 (rs6000_xcoff_unique_section): Allow unique sections for
1511 uninitialized data with strict alignment.
1513 2013-11-23 Jakub Jelinek <jakub@redhat.com>
1515 PR tree-optimization/59154
1516 * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1517 rhs1 of a cast and new_op is invariant, fold_convert it.
1518 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1519 simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1521 2013-11-23 Uros Bizjak <ubizjak@gmail.com>
1524 * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1525 Declare as MULTI_ARG_1_SF instruction.
1526 <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1527 * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1528 from *xop_vmfrcz_<mode>.
1529 * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1530 to merge scalar result with __A.
1531 (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1534 2013-11-23 Eric Botcazou <ebotcazou@adacore.com>
1536 * gimplify.h (recalculate_side_effects): Delete.
1537 * gimplify.c (recalculate_side_effects): Make static and add comment.
1539 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1541 * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1542 for the destination of a define_peephole2. Likewise register_operand
1543 rather than arith_reg_operand. Remove constraints from
1546 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1548 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1550 (mn10300_store_multiple_operation_p): Declare.
1551 * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1553 (mn10300_store_multiple_operation_p): ...this and remove mode
1555 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1558 2013-11-23 Richard Sandiford <rdsandiford@googlemail.com>
1560 * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1561 (pop_multiple_operation): Delete.
1562 (analyze_push_multiple_operation): Declare.
1563 (analyze_pop_multiple_operation): Declare.
1564 * config/bfin/bfin.c (push_multiple_operation): Rename to...
1565 (analyze_push_multiple_operation): ...this and remove mode argument.
1566 (pop_multiple_operation): Rename to...
1567 (analyze_pop_multiple_operation): ...this and remove mode argument.
1568 * config/bfin/predicates.md (push_multiple_operation): Define.
1569 (pop_multiple_operation): Likewise.
1571 2013-11-23 Alan Modra <amodra@gmail.com>
1573 * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1575 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1578 * common.opt (static-liblsan): Add.
1579 * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1581 * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK. Renumber
1582 SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1584 * opts.c (common_handle_option): Handle -fsanitize=leak.
1585 * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1586 (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1587 (LIBUBSAN_EARLY_SPEC): Remove.
1588 (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1589 (SANITIZER_SPEC): Add -fsanitize=leak handling.
1590 (sanitize_spec_function): Handle %sanitize(leak).
1591 * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1593 2013-11-22 Aldy Hernandez <aldyh@redhat.com>
1594 Jakub Jelinek <jakub@redhat.com>
1596 * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1597 * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1598 (ipa_get_vector_of_formal_parm_types): ... this. No longer static.
1599 (ipa_modify_formal_parameters): Adjust caller. Remove
1600 synth_parm_prefix argument. Use operator enum instead of bit fields.
1601 Add assert for properly handling vector of references. Handle
1602 creating brand new parameters.
1603 (ipa_modify_call_arguments): Use operator enum instead of bit
1605 (ipa_combine_adjustments): Same. Assert that IPA_PARM_OP_NEW is not
1607 (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1609 (ipa_dump_param_adjustments): Rename reduction to new_decl.
1610 Use operator enum instead of bit fields.
1611 * ipa-prop.h (enum ipa_parm_op): New.
1612 (struct ipa_parm_adjustment): New field op. Rename reduction
1613 to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1615 (ipa_modify_formal_parameters): Remove last argument.
1616 (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1617 ipa_get_adjustment_candidate): New prototypes.
1618 * tree-sra.c (turn_representatives_into_adjustments): Use operator
1619 enum. Set arg_prefix.
1620 (get_adjustment_for_base): Use operator enum.
1621 (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1623 (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1624 (ipa_sra_modify_function_body): Same. No longer static.
1625 (sra_ipa_reset_debug_stmts): Use operator enum.
1626 (modify_function): Do not pass prefix argument.
1628 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1630 * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1631 (ubsan_pass): Ignore clobber stmts.
1633 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1634 * opts.c (common_handle_option): Add -fsanitize=return.
1635 * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1636 or it into SANITIZE_UNDEFINED.
1638 * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1639 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1640 * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1641 Don't instrument accesses to VAR_DECLs which are known to fit
1642 into their bounds and the vars are known to have shadow bytes
1643 indicating allowed access.
1644 (asan_dynamic_init_call): New function.
1645 (asan_add_global): If vnode->dynamically_initialized,
1646 set __has_dynamic_init to 1 instead of 0.
1647 (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1648 * asan.h (asan_dynamic_init_call): New prototype.
1649 * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1651 2013-11-22 Martin Jambor <mjambor@suse.cz>
1653 PR rtl-optimization/10474
1654 * ira.c (interesting_dest_for_shprep_1): New function.
1655 (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1656 also check parallels.
1658 2013-11-22 Jeff Law <law@redhat.com>
1660 * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1661 NULL for RHS, which we used to invalidate equivalences.
1662 (record_temporary_equivalences_from_phis): New bitmap arguments
1663 and a boolean indicating if we have passed a backedge. If we
1664 have passed a backedge, then set the appropriate bit in the
1665 bitmaps for the SRC & DEST of PHIs creating equivalences.
1666 (invalidate_equivalences, dummy_simplify): New functions.
1667 (cond_arg_set_in_b): Remove.
1668 (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1669 arguments and a boolean indicating if we have passed a backedge.
1670 If we have passed a backedge, then perform invalidations as needed.
1671 (thread_around_empty_blocks): If we have seen a backedge, then
1672 use the dummy simplify routine.
1673 (thread_through_normal_block): Likewise. Pass bitmaps and
1674 backedge status to children. Do not pessimize so much when
1675 traversing backedges in the CFG.
1676 (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1677 If we have seen a backedge, then use the dummy simplify routine.
1678 Do not pessimize so much when traversing backedges.
1680 2013-11-22 Hans-Peter Nilsson <hp@axis.com>
1682 * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1683 (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1685 2013-11-22 Yuri Rumyantsev <ysrumyan@gmail.com>
1687 * config/i386/i386.c (processor_alias_table): Enable PTA_AES,
1688 PTA_PCLMUL and PTA_RDRND for Silvermont.
1689 * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1692 * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1694 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1696 * hooks.h (hook_uint_mode_0): Add Prototype.
1697 * hooks.c (hook_uint_mode_0): New default function.
1698 * target.def (atomic_align_for_mode): New target hook.
1699 * tree.c (build_atomic_base): Add alignment override parameter.
1700 (build_common_tree_nodes): Use atomic alignment override.
1701 * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1702 * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1704 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1706 * gimple.h: Remove all includes.
1707 (recalculate_side_effects): Move prototype to gimplify.h.
1708 * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1709 * gengtype.c (open_base_files): Add gimple.h include list.
1710 * gimplify.h (recalculate_side_effects): Relocate prototype here.
1711 * gimple.c: Adjust include list.
1712 (recalculate_side_effects): Move to gimplify.c.
1713 * gimplify.c: Adjust include list.
1714 (recalculate_side_effects): Relocate from gimple.c.
1715 * alias.c: Add required include files removed from gimple.h.
1717 * builtins.c: Likewise.
1718 * calls.c: Likewise.
1719 * cfgexpand.c: Likewise.
1720 * cfgloop.c: Likewise.
1721 * cfgloopmanip.c: Likewise.
1722 * cgraphbuild.c: Likewise.
1723 * cgraph.c: Likewise.
1724 * cgraphclones.c: Likewise.
1725 * cgraphunit.c: Likewise.
1726 * cilk-common.c: Likewise.
1727 * data-streamer.c: Likewise.
1728 * data-streamer-in.c: Likewise.
1729 * data-streamer-out.c: Likewise.
1731 * dwarf2out.c: Likewise.
1732 * emit-rtl.c: Likewise.
1733 * except.c: Likewise.
1735 * fold-const.c: Likewise.
1736 * function.c: Likewise.
1737 * gimple-builder.c: Likewise.
1738 * gimple-expr.c: Likewise.
1739 * gimple-fold.c: Likewise.
1740 * gimple-iterator.c: Likewise.
1741 * gimple-low.c: Likewise.
1742 * gimple-pretty-print.c: Likewise.
1743 * gimple-ssa-isolate-paths.c: Likewise.
1744 * gimple-ssa-strength-reduction.c: Likewise.
1745 * gimple-streamer-in.c: Likewise.
1746 * gimple-streamer-out.c: Likewise.
1747 * gimple-walk.c: Likewise.
1748 * gimplify-me.c: Likewise.
1749 * graphite-blocking.c: Likewise.
1750 * graphite.c: Likewise.
1751 * graphite-clast-to-gimple.c: Likewise.
1752 * graphite-dependences.c: Likewise.
1753 * graphite-interchange.c: Likewise.
1754 * graphite-optimize-isl.c: Likewise.
1755 * graphite-poly.c: Likewise.
1756 * graphite-scop-detection.c: Likewise.
1757 * graphite-sese-to-poly.c: Likewise.
1758 * internal-fn.c: Likewise.
1760 * ipa-cp.c: Likewise.
1761 * ipa-devirt.c: Likewise.
1762 * ipa-inline-analysis.c: Likewise.
1763 * ipa-inline.c: Likewise.
1764 * ipa-profile.c: Likewise.
1765 * ipa-prop.c: Likewise.
1766 * ipa-pure-const.c: Likewise.
1767 * ipa-reference.c: Likewise.
1768 * ipa-split.c: Likewise.
1769 * ipa-utils.c: Likewise.
1770 * langhooks.c: Likewise.
1771 * lto-cgraph.c: Likewise.
1772 * lto-compress.c: Likewise.
1773 * lto-opts.c: Likewise.
1774 * lto-section-in.c: Likewise.
1775 * lto-section-out.c: Likewise.
1776 * lto-streamer.c: Likewise.
1777 * lto-streamer-in.c: Likewise.
1778 * lto-streamer-out.c: Likewise.
1779 * omp-low.c: Likewise.
1780 * opts-global.c: Likewise.
1781 * passes.c: Likewise.
1782 * predict.c: Likewise.
1783 * profile.c: Likewise.
1786 * stor-layout.c: Likewise.
1787 * symtab.c: Likewise.
1788 * targhooks.c: Likewise.
1789 * toplev.c: Likewise.
1790 * tracer.c: Likewise.
1791 * trans-mem.c: Likewise.
1792 * tree-affine.c: Likewise.
1794 * tree-call-cdce.c: Likewise.
1795 * tree-cfg.c: Likewise.
1796 * tree-cfgcleanup.c: Likewise.
1797 * tree-chrec.c: Likewise.
1798 * tree-complex.c: Likewise.
1799 * tree-data-ref.c: Likewise.
1800 * tree-dfa.c: Likewise.
1801 * tree-eh.c: Likewise.
1802 * tree-emutls.c: Likewise.
1803 * tree-if-conv.c: Likewise.
1804 * tree-inline.c: Likewise.
1805 * tree-into-ssa.c: Likewise.
1806 * tree-loop-distribution.c: Likewise.
1807 * tree-nested.c: Likewise.
1808 * tree-nrv.c: Likewise.
1809 * tree-object-size.c: Likewise.
1810 * tree-outof-ssa.c: Likewise.
1811 * tree-parloops.c: Likewise.
1812 * tree-phinodes.c: Likewise.
1813 * tree-predcom.c: Likewise.
1814 * tree-pretty-print.c: Likewise.
1815 * tree-profile.c: Likewise.
1816 * tree-scalar-evolution.c: Likewise.
1817 * tree-sra.c: Likewise.
1818 * tree-ssa-address.c: Likewise.
1819 * tree-ssa-alias.c: Likewise.
1820 * tree-ssa.c: Likewise.
1821 * tree-ssa-ccp.c: Likewise.
1822 * tree-ssa-coalesce.c: Likewise.
1823 * tree-ssa-copy.c: Likewise.
1824 * tree-ssa-copyrename.c: Likewise.
1825 * tree-ssa-dce.c: Likewise.
1826 * tree-ssa-dom.c: Likewise.
1827 * tree-ssa-dse.c: Likewise.
1828 * tree-ssa-forwprop.c: Likewise.
1829 * tree-ssa-ifcombine.c: Likewise.
1830 * tree-ssa-live.c: Likewise.
1831 * tree-ssa-loop.c: Likewise.
1832 * tree-ssa-loop-ch.c: Likewise.
1833 * tree-ssa-loop-im.c: Likewise.
1834 * tree-ssa-loop-ivcanon.c: Likewise.
1835 * tree-ssa-loop-ivopts.c: Likewise.
1836 * tree-ssa-loop-manip.c: Likewise.
1837 * tree-ssa-loop-niter.c: Likewise.
1838 * tree-ssa-loop-prefetch.c: Likewise.
1839 * tree-ssa-loop-unswitch.c: Likewise.
1840 * tree-ssa-math-opts.c: Likewise.
1841 * tree-ssanames.c: Likewise.
1842 * tree-ssa-operands.c: Likewise.
1843 * tree-ssa-phiopt.c: Likewise.
1844 * tree-ssa-phiprop.c: Likewise.
1845 * tree-ssa-pre.c: Likewise.
1846 * tree-ssa-propagate.c: Likewise.
1847 * tree-ssa-reassoc.c: Likewise.
1848 * tree-ssa-sccvn.c: Likewise.
1849 * tree-ssa-sink.c: Likewise.
1850 * tree-ssa-strlen.c: Likewise.
1851 * tree-ssa-structalias.c: Likewise.
1852 * tree-ssa-tail-merge.c: Likewise.
1853 * tree-ssa-ter.c: Likewise.
1854 * tree-ssa-threadedge.c: Likewise.
1855 * tree-ssa-threadupdate.c: Likewise.
1856 * tree-ssa-uncprop.c: Likewise.
1857 * tree-ssa-uninit.c: Likewise.
1858 * tree-stdarg.c: Likewise.
1859 * tree-streamer.c: Likewise.
1860 * tree-streamer-in.c: Likewise.
1861 * tree-streamer-out.c: Likewise.
1862 * tree-switch-conversion.c: Likewise.
1863 * tree-tailcall.c: Likewise.
1864 * tree-vect-data-refs.c: Likewise.
1865 * tree-vect-generic.c: Likewise.
1866 * tree-vect-loop.c: Likewise.
1867 * tree-vect-loop-manip.c: Likewise.
1868 * tree-vectorizer.c: Likewise.
1869 * tree-vect-patterns.c: Likewise.
1870 * tree-vect-slp.c: Likewise.
1871 * tree-vect-stmts.c: Likewise.
1872 * tree-vrp.c: Likewise.
1874 * ubsan.c: Likewise.
1875 * value-prof.c: Likewise.
1876 * varpool.c: Likewise.
1877 * var-tracking.c: Likewise.
1878 * vtable-verify.c: Likewise.
1879 * config/darwin.c: Likewise.
1880 * config/aarch64/aarch64-builtins.c: Likewise.
1881 * config/aarch64/aarch64.c: Likewise.
1882 * config/alpha/alpha.c: Likewise.
1883 * config/i386/i386.c: Likewise.
1884 * config/i386/winnt.c: Likewise.
1885 * config/ia64/ia64.c: Likewise.
1886 * config/m32c/m32c.c: Likewise.
1887 * config/mep/mep.c: Likewise.
1888 * config/mips/mips.c: Likewise.
1889 * config/rs6000/rs6000.c: Likewise.
1890 * config/s390/s390.c: Likewise.
1891 * config/sh/sh.c: Likewise.
1892 * config/sparc/sparc.c: Likewise.
1893 * config/spu/spu.c: Likewise.
1894 * config/stormy16/stormy16.c: Likewise.
1895 * config/tilegx/tilegx.c: Likewise.
1896 * config/tilepro/tilepro.c: Likewise.
1897 * config/xtensa/xtensa.c: Likewise.
1899 2013-11-22 Richard Earnshaw <rearnsha@arm.com>
1902 * arm.md (negdi_extendsidi): Fix invalid split.
1904 2013-11-22 Alex Velenko <Alex.Velenko@arm.com>
1906 * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1907 (vmov_n_f64): Likewise.
1908 (vmov_n_p8): Likewise.
1909 (vmov_n_p16): Likewise.
1910 (vmov_n_s8): Likewise.
1911 (vmov_n_s16): Likewise.
1912 (vmov_n_s32): Likewise.
1913 (vmov_n_s64): Likewise.
1914 (vmov_n_u8): Likewise.
1915 (vmov_n_u16): Likewise.
1916 (vmov_n_u32): Likewise.
1917 (vmov_n_u64): Likewise.
1918 (vmovq_n_f32): Likewise.
1919 (vmovq_n_f64): Likewise.
1920 (vmovq_n_p8): Likewise.
1921 (vmovq_n_p16): Likewise.
1922 (vmovq_n_s8): Likewise.
1923 (vmovq_n_s16): Likewise.
1924 (vmovq_n_s32): Likewise.
1925 (vmovq_n_s64): Likewise.
1926 (vmovq_n_u8): Likewise.
1927 (vmovq_n_u16): Likewise.
1928 (vmovq_n_u32): Likewise.
1929 (vmovq_n_u64): Likewise.
1931 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1933 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1934 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1935 (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1936 (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1937 and also change to float UNSPEC.
1938 (reduc_maxmin_uns>_<mode>): Remove V2DI.
1939 * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1940 vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1941 result access for big-endian.
1942 (__LANE0): New macro used to fix up lane access of 'across-lanes'
1943 intrinsics for big-endian.
1944 * config/aarch64/iterators.md (VDQV): Add V2DI.
1946 (vp): New mode attribute.
1948 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1950 * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1951 vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1954 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1956 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1957 for big-endian element order.
1958 (aarch64_simd_vec_setv2di): Likewise.
1959 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1960 *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1961 (vec_extract): Expand using aarch64_get_lane.
1962 * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1964 2013-11-22 Tejas Belagod <tejas.belagod@arm.com>
1966 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1967 and stores to be ABI compliant.
1969 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1971 * input.h (input_line): Remove.
1972 (input_filename): Likewise.
1973 (in_system_header): Likewise.
1974 * tree.h (EXPR_LOC_OR_HERE): Remove.
1975 * config/bfin/bfin.c (output_file_start): Remove use of
1976 input_filename macro.
1977 * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1978 * gimplify.c (internal_get_tmp_var): Likewise.
1979 EXPR_LOC_OR_HERE macro.
1980 (shortcut_cond_expr): Likewise.
1981 * tree-diagnostic.c (diagnostic_report_current_function): Remove
1982 use of input_filename macro.
1983 * tree.c (get_file_function_name): Likewise.
1985 2013-11-22 Kenneth Zadeck <zadeck@naturalbridge.com>
1987 * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1989 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1991 * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1992 (same sized) elements even if the type of the CONSTRUCTOR has
1993 vector mode and target is a REG.
1995 2013-11-22 Richard Biener <rguenther@suse.de>
1998 2013-11-21 Richard Biener <rguenther@suse.de>
2000 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2001 nb_iterations_upper_bound by one.
2003 2013-11-22 H.J. Lu <hongjiu.lu@intel.com>
2005 * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
2008 * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
2009 core-avx-i, core-avx2 and slm.
2011 2013-11-22 Eric Botcazou <ebotcazou@adacore.com>
2013 * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
2015 2013-11-22 Richard Sandiford <rdsandiford@googlemail.com>
2017 * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
2018 (stzx_24_<mode>): Likewise mra_operand.
2020 2013-11-22 Jeff Law <law@redhat.com>
2022 * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
2023 (thread_block_1): Do not cancel jump threads which go from
2024 inside a loop, through the header, then back inside the loop.
2025 (bb_ends_with_multiway_branch): New function.
2026 (thread_through_all_blocks): Handle threading cases which start
2027 in a loop through the loop header to a point in the loop.
2029 * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
2030 jump thread path properly.
2032 2013-11-22 Trevor Saunders <tsaunders@mozilla.com>
2034 * vec.h (auto_vec): New class.
2035 * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
2036 function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
2037 ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
2038 tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
2039 tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
2040 tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
2041 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
2042 tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
2043 appropriate instead of vec for local variables.
2045 2013-11-21 Teresa Johnson <tejohnson@google.com>
2048 * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
2049 not understood by old_insns_match_p.
2051 2013-11-21 Bill Schmidt <wschmidt@vnet.ibm.com>
2053 * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
2054 little endian change.
2055 (vec_pack_sfix_trunc_v2df): Likewise.
2056 (vec_pack_ufix_trunc_v2df): Likewise.
2057 * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
2058 double checking of endianness.
2060 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2062 * tree-vect-generic.c (optimize_vector_constructor): New function.
2063 (expand_vector_operations_1): Call it.
2065 2013-11-21 Uros Bizjak <ubizjak@gmail.com>
2067 * config/i386/i386.c (ix86_expand_special_args_builtin): Use
2068 ix86_zero_extend_to_Pmode where appropriate.
2069 (ix86_expand_builtin): Ditto.
2071 2013-11-21 Cary Coutant <ccoutant@google.com>
2073 * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
2074 (add_linkage_name): Don't add linkage name for -g1.
2075 (decls_for_scope): Process subblocks for -g1.
2076 (dwarf2out_source_line): Output line tables for -g1.
2077 (dwarf2out_finish): Likewise.
2078 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2079 unused scopes for -g1.
2080 * opts.c (common_handle_option): Handle -g same as -g2.
2081 * doc/invoke.texi: Update description for -g1.
2083 2013-11-21 Peter Bergner <bergner@vnet.ibm.com>
2085 * doc/extend.texi: Document htm builtins.
2087 2013-11-21 Jeff Law <law@redhat.com>
2089 PR tree-optimization/59221
2090 * tree-ssa-threadedge.c (thread_across_edge): Properly manage
2091 temporary equivalences when threading through joiner blocks.
2093 2013-11-21 Joseph Myers <joseph@codesourcery.com>
2095 PR rtl-optimization/55950
2096 * real.c (real_sqrt): Remove function.
2097 * real.h (real_sqrt): Remove prototype.
2098 * simplify-rtx.c (simplify_const_unary_operation): Do not fold
2099 SQRT using real_sqrt.
2101 2013-11-21 Richard Biener <rguenther@suse.de>
2103 PR tree-optimization/59058
2104 * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
2105 * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
2106 * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
2107 (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
2108 (NITERS_KNOWN_P): Fold into ...
2109 (LOOP_VINFO_NITERS_KNOWN_P): ... this.
2110 (LOOP_VINFO_PEELING_FOR_NITER): Add.
2111 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
2112 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2113 (vect_do_peeling_for_alignment): Re-use precomputed niter
2114 instead of re-emitting it.
2115 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2116 Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2117 * tree-vect-loop.c (vect_get_loop_niters): Use
2118 number_of_latch_executions.
2119 (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
2120 (vect_analyze_loop_form): Simplify.
2121 (vect_analyze_loop_operations): Move epilogue peeling code ...
2122 (vect_analyze_loop_2): ... here and adjust it to compute
2123 LOOP_VINFO_PEELING_FOR_NITER.
2124 (vect_estimate_min_profitable_iters): Use
2125 LOOP_VINFO_PEELING_FOR_ALIGNMENT.
2126 (vect_build_loop_niters): Emit on the preheader.
2127 (vect_generate_tmps_on_preheader): Likewise.
2128 (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
2129 of recomputing it. Adjust.
2131 2013-11-21 Richard Biener <rguenther@suse.de>
2133 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2134 LOC_LINE): Remove wrappers and fix all users.
2135 (struct _loop_vec_info): Remove loop_line_number member.
2136 (LOOP_VINFO_LOC): Remove.
2137 * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
2138 tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
2141 2013-11-21 Richard Biener <rguenther@suse.de>
2143 * tree-ssa-forwprop.c (simplify_vce): New function.
2144 (ssa_forward_propagate_and_combine): Call it.
2146 2013-11-21 Richard Biener <rguenther@suse.de>
2148 * tree-vect-loop-manip.c (vect_build_loop_niters,
2149 vect_generate_tmps_on_preheader): Move ...
2150 * tree-vect-loop.c (vect_build_loop_niters,
2151 vect_generate_tmps_on_preheader): ... here and simplify.
2152 (vect_transform_loop): Call them here and pass down results
2154 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
2155 Get niter variables from caller.
2156 (vect_do_peeling_for_alignment): Likewise.
2157 * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
2158 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2161 2013-11-21 Richard Biener <rguenther@suse.de>
2163 * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
2164 nb_iterations_upper_bound by one.
2166 2013-11-21 Richard Biener <rguenther@suse.de>
2168 PR tree-optimization/59058
2169 * tree-loop-distribution.c (struct partition_s): Add plus_one member.
2170 (build_size_arg_loc): Apply niter adjustment here.
2171 (generate_memset_builtin): Adjust.
2172 (generate_memcpy_builtin): Likewise.
2173 (classify_partition): Do not use number_of_exit_cond_executions
2174 but record whether niter needs to be adjusted.
2176 2013-11-21 Eric Botcazou <ebotcazou@adacore.com>
2178 * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
2181 2013-11-21 Oleg Endo <olegendo@gcc.gnu.org>
2184 * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
2185 * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
2186 * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
2187 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
2188 sh_optimize_sett_clrt pass.o to extra_objs.
2190 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2192 * cfg.c (dump_edge_info): Remove redundant comment.
2193 * cfgcleanup.c (outgoing_edges_match): Reword reference to
2194 EXIT_BLOCK_PTR in comment.
2195 (try_optimize_cfg): Likewise.
2196 * cfgrtl.c (last_bb_in_partition): Likewise.
2197 * cgraph.c (cgraph_node_cannot_return): Likewise.
2198 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2199 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
2200 * ipa-split.c (consider_split): Likewise.
2201 * profile.c (find_spanning_tree): Likewise.
2202 * sched-int.h (common_sched_info_def.add_block): Likewise.
2203 * dominance.c (calc_dfs_tree_nonrec): Reword references in
2204 comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
2205 * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
2206 in comments to now removed ENTRY_BLOCK_PTR macro.
2207 (tree_forwarder_block_p): Reword reference in comment to
2209 * tree-inline.c (copy_cfg_body): Reword references in comments to
2210 now removed ENTRY_BLOCK_PTR macro.
2211 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2212 * tree-scalar-evolution.h ( block_before_loop): Likewise. Add
2213 a comma to the comment to clarify the meaning.
2215 2013-11-20 Andrew MacLeod <amacleod@redhat.com>
2217 * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
2219 (free_gimplify_stack): Add prototype.
2220 * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
2221 (struct gimplify_ctx): Relocate here.
2222 (gimplify_ctxp): Make static.
2223 (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New. Manage a
2224 list of struct gimplify_ctx.
2225 (push_gimplify_context): Add default parameters and allocate a struct
2227 (pop_gimplify_context): Free a struct back to the pool.
2228 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2229 gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
2230 use a local 'struct gimplify_ctx'.
2231 * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
2232 * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
2234 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2235 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2236 create_task_copyfn, lower_omp_taskreg, lower_omp_target,
2237 lower_omp_teams, execute_lower_omp): Likewise.
2238 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
2239 * tree-inline.c (optimize_inline_calls): Likewise.
2241 2013-11-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2243 * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
2244 (vsx_extract_<mode>): Likewise.
2245 (*vsx_extract_<mode>_one_le): New LE variant on
2246 *vsx_extract_<mode>_zero.
2247 (vsx_extract_v4sf): Adjust for little endian.
2249 2013-11-20 Vladimir Makarov <vmakarov@redhat.com>
2251 PR rtl-optimization/59133
2252 * lra.c (expand_reg_data): Add new argument. Set up ALL_REGS for
2254 (lra_create_new_reg_with_unique_value): Pass new argument value.
2255 (lra_emit_add, lra_emit_move): Ditto.
2256 * lra-constraints.c (in_class_p): Add check for move for a new insn.
2257 (change_class): Rename to lra_change_class. Move to lra-int.h.
2258 (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
2260 (process_addr_reg, process_addr): Ditto.
2261 (curr_insn_transform): Ditto. Add check on old pseudo for
2263 * lra-int.h (lra_get_regno_hard_regno): Move below.
2264 (lra_change_class): Renamed change_class from lra.c.
2266 2013-11-20 David Malcolm <dmalcolm@redhat.com>
2268 * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
2269 the children of a NULL pointer.
2271 2013-11-20 Robert Suchanek <Robert.Suchanek@imgtec.com>
2273 * lra.c (lra): Set lra_in_progress before check_rtl call.
2274 * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
2275 adding clobber regs when LRA is running.
2277 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2279 * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
2280 restriction for ISA_MIPS32R2.
2281 (ISA_HAS_LXC1_SXC1): New macro.
2282 (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
2283 (ISA_HAS_NMADD4_NMSUB4): Likewise.
2284 (ISA_HAS_FP_RECIP_RSQRT): Likewise.
2285 (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
2286 * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
2287 ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
2288 (*<ANYF:storex>_<P:mode>): Likewise.
2290 2013-11-20 Maciej W. Rozycki <macro@codesourcery.com>
2292 * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
2293 * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
2294 ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
2295 * config/mips/mips.md (recip_condition): Remove mode attribute.
2296 (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
2298 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
2300 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2303 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
2304 Make sure neg2_ovf is set before being used.
2306 2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
2308 * plugin.def: Add comment about register_callback and
2309 invoke_plugin_callbacks_full.
2311 * plugin.c (register_callback, invoke_plugin_callbacks_full):
2312 Handle PLUGIN_INCLUDE_FILE event.
2314 2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2316 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
2317 allow subregs of TDmode in FPRs of smaller size in little-endian.
2318 (rs6000_split_multireg_move): When splitting an access to TDmode
2319 in FPRs, do not use simplify_gen_subreg.
2321 2013-11-20 Joseph Myers <joseph@codesourcery.com>
2324 * real.c: Remove comment about decimal string conversion and
2326 (real_from_string): Use MPFR to convert nonzero decimal constant
2329 2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
2331 * config/arm/arm.c (arm_dwarf_register_span): Take into account the
2332 endianness of the D registers for the legacy encodings.
2334 2013-11-20 Richard Earnshaw <rearnsha@arm.com>
2336 PR rtl-optimization/54300
2337 * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
2338 outputs in a single-set are killed from the value chains.
2340 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2342 * cgraph.h (varpool_node): Add need_bounds_init field.
2343 * lto-cgraph.c (lto_output_varpool_node): Output
2344 need_bounds_init value.
2345 (input_varpool_node): Read need_bounds_init value.
2346 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
2348 2013-11-20 Jan Hubicka <jh@suse.cz>
2350 * opts.c (finish_options): Imply -ffat-lto-objects with
2351 -fno-use-linker-plugin.
2352 * common.opt (fuse-linker-plugin): Add var.
2354 2013-11-20 Ilya Enkovich <ilya.enkovich@intel.com>
2356 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2357 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2358 (gen_type_die_with_usage): Skip pointer bounds.
2359 (dwarf2out_global_decl): Likewise.
2361 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2363 * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2366 2013-11-20 Yuri Rumyantsev <ysrumyan@gmail.com>
2369 * config/i386/i386.c (ix86_option_override_internal): Add missed
2370 argument prefix for 'ix86_fpmath'.
2371 * config/i386/ssemath.h: Add missed definition of
2372 TARGET_FPMATH_DEFAULT_P macros.
2374 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2375 Mike Stump <mikestump@comcast.net>
2376 Richard Sandiford <rdsandiford@googlemail.com>
2378 * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2379 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2380 tree_fits_shwi_p or tree_fits_uhwi_p.
2381 * builtins.c (fold_builtin_powi): Likewise.
2382 * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2384 * dbxout.c (dbxout_symbol): Likewise.
2385 * expr.c (expand_expr_real_1): Likewise.
2386 * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2387 (fold_binary_loc): Likewise.
2388 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2389 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2390 * omp-low.c (lower_omp_for_lastprivate): Likewise.
2391 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2392 * stor-layout.c (compute_record_mode): Likewise.
2393 * tree-cfg.c (verify_expr): Likewise.
2394 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2395 * tree-pretty-print.c (dump_array_domain): Likewise.
2396 * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2397 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2398 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2399 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2400 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2401 * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2402 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2403 (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2404 (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2405 * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2406 (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2407 (create_variable_info_for_1): Likewise.
2408 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2409 (vect_verify_datarefs_alignment): Likewise.
2410 (vect_analyze_data_ref_accesses): Likewise.
2411 (vect_prune_runtime_alias_test_list): Likewise.
2412 * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2414 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2416 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2417 overflow. Use tree_to_shwi.
2419 2013-11-20 Richard Sandiford <rdsandiford@googlemail.com>
2421 * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2422 HOST_WIDE_INTs when folding (x >> c) << c.
2424 2013-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2425 Dominik Vogt <vogt@linux.vnet.ibm.com>
2427 * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2428 int comparisons with an out of range condition code.
2429 (s390_optimize_nonescaping_tx): Skip empty BBs.
2430 Generate the new tbegin RTX when removing the FPR clobbers (with
2432 (s390_expand_tbegin): Fix the retry loop counter. Copy CC to the
2433 result before doing the retry calculations.
2434 (s390_init_builtins): Make tbegin "returns_twice" and tabort
2436 * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2437 the TDB setting part of an tbegin.
2438 ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2439 ("tx_assist"): Set unused argument to an immediate zero instead of
2440 loading zero into a GPR and pass it as argument.
2441 * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2442 Remove inline and related attributes.
2443 (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2444 (__TM_is_illegal, __TM_is_footprint_exceeded)
2445 (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2447 2013-11-20 Richard Biener <rguenther@suse.de>
2450 * lto-opts.c (lto_write_options): Write defaults only if
2451 they were not explicitely specified. Also write
2452 -ffp-contract default.
2453 * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2455 (run_gcc): Pass through -ffp-contract.
2457 2013-11-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2459 * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2461 2013-11-20 James Greenhalgh <james.greenhalgh@arm.com>
2463 * gcc/config/aarch64/aarch64-builtins.c
2464 (aarch64_simd_itype): Remove.
2465 (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2466 (VAR1): Use qualifiers.
2467 (aarch64_build_scalar_type): New.
2468 (aarch64_build_vector_type): Likewise.
2469 (aarch64_build_type): Likewise.
2470 (aarch64_init_simd_builtins): Refactor, remove special cases,
2471 consolidate main loop.
2472 (aarch64_simd_expand_args): Likewise.
2474 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2477 * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2479 2013-11-19 Miro Kropacek <miro.kropacek@gmail.com>
2481 * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2483 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2485 * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2486 to "vec<>" instances.
2487 (build_pretty_printer): Register the vec<>* prettyprinter.
2489 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2491 * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2492 (GdbSubprinter.handles_type): New.
2493 (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2494 (GdbSubprinterRegex): New subclass of GdbSubprinter.
2495 (GdbPrettyPrinters.add_printer): Remove in favor of...
2496 (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2497 (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2498 (GdbPrettyPrinters.__call__): Update search for subprinter
2499 to use handles_type method.
2500 (build_pretty_printer): Update registration of subprinters to
2501 use the new API above, supporting multiple spelling of each type,
2502 and allowing for future regex-based subprinters.
2504 2013-11-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2506 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2507 V16QI vector splat case for little endian.
2509 2013-11-19 Jeff Law <law@redhat.com>
2511 * tree-ssa-threadedge.c (thread_across_edge): After threading
2512 through a joiner, allow threading a normal block requiring duplication.
2514 * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2515 jump threading requests that would muck up the loop structures.
2517 * tree-ssa-threadupdate.c: Fix trailing whitespace.
2518 * tree-ssa-threadupdate.h: Likewise.
2520 2013-11-19 Mike Stump <mikestump@comcast.net>
2522 * gdbinit.in: Add pmz to print out mpz values.
2524 2013-11-20 Jan Hubicka <jh@suse.cz>
2526 * common.opt (ffat-lto-objects): Disable by default.
2527 * doc/invoke.texi (fat-lto-objects): Update documentation.
2528 * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2530 2013-11-19 Martin Jambor <mjambor@suse.cz>
2532 PR rtl-optimization/59099
2533 * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2535 (ira): Move init_reg_equiv and call to
2536 split_live_ranges_for_shrink_wrap up, remove analyses around call
2537 to find_moveable_pseudos.
2539 2013-11-20 Alan Modra <amodra@gmail.com>
2541 * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2542 * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2543 to strict alignment on older processors when little-endian.
2544 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2547 2013-11-19 Teresa Johnson <tejohnson@google.com>
2549 * common/config/i386/i386-common.c: Enable
2550 -freorder-blocks-and-partition at -O2 and up for x86.
2551 * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2552 * opts.c (finish_options): Only warn if
2553 -freorder-blocks-and-partition was set on command line.
2555 2013-11-19 Sriraman Tallam <tmsriram@google.com>
2557 * final.c (final_scan_insn): Emit a label for the split
2558 cold function part. Label name is formed by suffixing
2559 the original function name with "cold".
2561 2013-11-19 David Malcolm <dmalcolm@redhat.com>
2563 * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2564 (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2565 (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2566 (EXIT_BLOCK_PTR_FOR_FN): ...this.
2567 (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2569 (EXIT_BLOCK_PTR): Likewise.
2570 (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2571 (FOR_ALL_BB_FN): Update for renaming of
2572 "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2574 * cfg.c (init_flow): Likewise.
2575 (check_bb_profile): Likewise.
2576 * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2577 * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2578 * cfghooks.c (account_profile_record): Likewise.
2579 * cfgloop.c (init_loops_structure): Likewise.
2580 * cgraphbuild.c (record_eh_tables): Likewise.
2581 (compute_call_stmt_bb_frequency): Likewise.
2582 * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2583 * lto-streamer-in.c (input_cfg): Likewise.
2584 * predict.c (maybe_hot_frequency_p): Likewise.
2585 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2586 * tree-inline.c (initialize_cfun): Likewise.
2587 (copy_cfg_body): Likewise.
2588 (copy_body): Likewise.
2589 (tree_function_versioning): Likewise.
2591 * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2592 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2593 (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2594 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2595 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2596 (connect_traces): Likewise.
2597 (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2598 (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2599 (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2601 (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2603 (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2604 (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2605 (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2606 (rotate_loop): Likewise.
2607 * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2608 * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2610 (alloc_aux_for_edges): Likewise.
2611 (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2612 (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2614 (compact_blocks): Likewise.
2615 (clear_edges): Likewise.
2616 * cfganal.c (single_pred_before_succ_order): Remove usage of
2617 ENTRY_BLOCK_PTR macro.
2618 (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2619 (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2620 (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2621 (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2622 (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2624 (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2625 (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2627 (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2628 (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2629 (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2630 (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2631 (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2632 (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2634 (print_edge_list): Likewise.
2635 (create_edge_list): Likewise.
2636 (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2637 (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2639 * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2641 (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2642 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2643 * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2644 (try_optimize_cfg): Likewise.
2645 (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2646 (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2647 (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2648 (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2649 (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2650 (try_forward_edges): Likewise.
2651 (try_simplify_condjump): Likewise.
2652 * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2653 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2654 (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2655 (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2657 (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2658 (expand_gimple_tailcall): Likewise.
2659 * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2660 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2661 (tidy_fallthru_edges): Likewise.
2662 (verify_flow_info): Likewise.
2663 * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2664 (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2665 (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2666 (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2667 (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2668 (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2669 (get_loop_body_in_dom_order): Likewise.
2670 (get_loop_body): Likewise.
2671 * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2672 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2673 * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2675 (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2676 (fix_bb_placement): Likewise.
2677 * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2678 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2679 (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2680 (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2682 (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2683 (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2684 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2685 (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2687 (fixup_fallthru_exit_predecessor): Remove uses of macros:
2688 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2689 (fixup_reorder_chain): Likewise.
2690 (relink_block_chain): Likewise.
2691 (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2692 (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2693 (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2694 (force_one_exit_fallthru): Likewise.
2695 (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2697 (rtl_verify_edges): Likewise.
2698 (commit_edge_insertions): Likewise.
2699 (commit_one_edge_insertion): Likewise.
2700 (rtl_split_edge): Likewise.
2701 (force_nonfallthru_and_redirect): Likewise.
2702 (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2703 (skip_insns_after_block): Likewise.
2704 (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2706 (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2707 (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2709 (contains_no_active_insn_p): Likewise.
2710 (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2711 (entry_of_function): Likewise.
2712 (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2713 (fixup_new_cold_bb): Likewise.
2714 (patch_jump_insn): Likewise.
2715 (try_redirect_by_replacing_jump): Likewise.
2716 (block_label): Likewise.
2717 (could_fall_through): Likewise.
2718 (can_fallthru): Likewise.
2719 * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2720 ENTRY_BLOCK_PTR macro.
2721 (rebuild_cgraph_edges): Likewise.
2722 * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2723 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2724 (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2725 * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2726 (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2727 (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2728 (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2729 (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2731 (reg_nonzero_bits_for_combine): Likewise.
2732 (set_nonzero_bits_and_sign_copies): Likewise.
2733 (combine_instructions): Likewise.
2734 * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2736 (bypass_conditional_jumps): Likewise.
2737 (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2738 (find_implicit_sets): Likewise.
2739 (cprop_jump): Likewise.
2740 * cse.c (cse_cc_succs): Likewise.
2741 (cse_find_path): Likewise.
2742 * df-problems.c (df_lr_confluence_0): Likewise.
2743 * df-scan.c (df_entry_block_defs_collect): Remove usage of
2744 ENTRY_BLOCK_PTR macro.
2745 (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2746 * dominance.c (iterate_fix_dominators): Remove usage of
2747 ENTRY_BLOCK_PTR macro.
2748 (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2749 (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2750 (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2752 (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2754 (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2756 * domwalk.c (cmp_bb_postorder): Likewise.
2757 * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2758 * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2760 (sjlj_emit_function_enter): Likewise.
2761 * final.c (compute_alignments): Likewise.
2762 * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2763 macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2764 (reposition_prologue_and_epilogue_notes): Remove usage of
2765 EXIT_BLOCK_PTR macro.
2766 (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2768 (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2769 (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2770 * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2771 (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2772 (compute_code_hoist_vbeinout): Likewise.
2773 (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2774 (pre_expr_reaches_here_p_work): Likewise.
2775 * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2776 (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2778 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2779 ENTRY_BLOCK_PTR macro.
2780 * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2782 * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2783 ENTRY_BLOCK_PTR macro.
2784 * graphite-scop-detection.c (build_scops): Likewise.
2785 (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2786 (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2787 * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2789 (unlink_bb_notes): Likewise.
2790 (create_check_block_twin): Likewise.
2791 (init_before_recovery): Likewise.
2792 (sched_extend_bb): Likewise.
2793 (priority): Likewise.
2794 * hw-doloop.c (reorder_loops): Likewise.
2795 (discover_loop): Likewise.
2796 * ifcvt.c (dead_or_predicable): Remove uses of macros:
2797 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2798 (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2799 (block_has_only_trap): Likewise.
2800 (cond_exec_find_if_block): Likewise.
2801 (merge_if_block): Likewise.
2802 * ipa-inline-analysis.c (param_change_prob): Remove usage of
2803 ENTRY_BLOCK_PTR macro.
2804 (record_modified): Likewise.
2805 * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2806 EXIT_BLOCK_PTR macro.
2807 (local_pure_const): Likewise.
2808 * ipa-split.c (split_function): Remove uses of macros:
2809 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2810 (find_split_points): Likewise.
2811 (consider_split): Likewise.
2812 (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2813 (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2814 * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2815 * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2816 * ira-emit.c (entered_from_non_parent_p): Remove usage of
2817 ENTRY_BLOCK_PTR macro.
2818 (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2819 * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2820 * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2821 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2822 * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2824 (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2826 (compute_farthest): Likewise.
2827 (compute_available): Likewise.
2828 (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2829 (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2831 (compute_earliest): Likewise.
2832 (compute_antinout_edge): Likewise.
2833 * loop-iv.c (simplify_using_initial_values): Remove usage of
2834 ENTRY_BLOCK_PTR macro.
2835 * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2837 * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2839 * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2841 * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2842 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2843 * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2845 * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2847 * lto-streamer-out.c (output_cfg): Likewise.
2848 * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2850 (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2851 * mode-switching.c (optimize_mode_switching): Likewise.
2852 (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2853 * modulo-sched.c (rest_of_handle_sms): Likewise.
2854 (canon_loop): Likewise.
2855 * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2856 * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2857 of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2858 * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2860 (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2861 (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2862 (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2863 (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2864 (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2865 (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2866 (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2867 (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2868 (gimple_predict_edge): Likewise.
2869 (probably_never_executed): Likewise.
2870 * profile.c (find_spanning_tree): Remove uses of macros:
2871 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2872 (branch_prob): Likewise.
2873 (compute_branch_probabilities): Likewise.
2874 (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2875 (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2876 (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2877 (set_bb_counts): Likewise.
2878 (correct_negative_edge_counts): Likewise.
2879 (get_exec_counts): Likewise.
2880 (instrument_values): Likewise.
2881 (instrument_edges): Likewise.
2882 * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2884 (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2885 (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2886 (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2887 (reg_to_stack): Likewise.
2888 * regs.h (REG_N_SETS): Likewise.
2889 * reload.c (find_dummy_reload): Likewise.
2890 (combine_reloads): Likewise.
2891 (push_reload): Likewise.
2892 * reload1.c (has_nonexceptional_receiver): Remove usage of
2893 EXIT_BLOCK_PTR macro.
2894 * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2896 (find_basic_block): Likewise.
2897 * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2898 (schedule_ebbs): Likewise.
2899 * sched-int.h (sel_sched_p): Likewise.
2900 * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2902 (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2903 (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2905 (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2906 (extend_rgns): Likewise.
2907 (find_single_block_region): Likewise.
2908 * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2909 ENTRY_BLOCK_PTR macro.
2910 (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2911 (sel_create_recovery_block): Likewise.
2912 (bb_ends_ebb_p): Likewise.
2913 (sel_bb_end): Likewise.
2914 (sel_bb_head): Likewise.
2915 (free_lv_sets): Likewise.
2916 (init_lv_sets): Likewise.
2917 (tidy_control_flow): Likewise.
2918 (maybe_tidy_empty_bb): Likewise.
2919 * sel-sched-ir.h (_succ_iter_cond): Likewise.
2920 (_succ_iter_start): Likewise.
2921 (sel_bb_empty_or_nop_p): Likewise.
2922 (get_loop_exit_edges_unique_dests): Likewise.
2923 (inner_loop_header_p): Likewise.
2924 * sel-sched.c (create_block_for_bookkeeping): Likewise.
2925 (find_block_for_bookkeeping): Likewise.
2926 * store-motion.c (remove_reachable_equiv_notes): Likewise.
2927 (insert_store): Likewise.
2928 * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2929 ENTRY_BLOCK_PTR macro.
2930 (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2931 (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2932 (gate_tm_init): Likewise.
2933 (tm_region_init): Likewise.
2934 * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2935 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2936 (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2937 (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2939 (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2940 (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2942 (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2944 (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2946 (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2948 (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2949 (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2950 (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2951 (build_gimple_cfg): Likewise.
2952 (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2953 (gimple_can_merge_blocks_p): Likewise.
2954 * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2955 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2956 * tree-complex.c (update_parameter_components): Remove usage of
2957 ENTRY_BLOCK_PTR macro.
2958 * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2959 EXIT_BLOCK_PTR macro.
2960 * tree-inline.c (tree_function_versioning): Remove uses of macros:
2961 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2962 (delete_unreachable_blocks_update_callgraph): Likewise.
2963 (initialize_cfun): Likewise.
2964 (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2965 (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2966 (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2967 * tree-into-ssa.c (update_ssa): Likewise.
2968 (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2969 (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2970 (rewrite_into_ssa): Likewise.
2971 (rewrite_debug_stmt_uses): Likewise.
2972 * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2973 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2974 * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2975 ENTRY_BLOCK_PTR macro.
2976 * tree-scalar-evolution.h (block_before_loop): Likewise.
2977 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2978 (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2980 (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2982 (propagate_dereference_distances): Remove uses of macros:
2983 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2984 (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2986 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2987 (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2988 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2989 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2990 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2991 (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2992 (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2993 (mark_control_dependent_edges_necessary): Remove uses of macros:
2994 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2995 * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2996 ENTRY_BLOCK_PTR macro.
2997 (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2998 * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2999 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3000 (calculate_live_on_exit): Likewise.
3001 (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
3002 (loe_visit_block): Likewise.
3003 * tree-ssa-live.h (live_on_exit): Remove uses of macros:
3004 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3005 (live_on_entry): Likewise.
3006 * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
3007 EXIT_BLOCK_PTR macro.
3008 * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
3009 ENTRY_BLOCK_PTR macro.
3010 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
3011 (bound_difference): Likewise.
3012 * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
3013 of EXIT_BLOCK_PTR macro.
3014 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
3015 of ENTRY_BLOCK_PTR macro.
3016 * tree-ssa-math-opts.c (register_division_in): Likewise.
3017 * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
3018 * tree-ssa-pre.c (compute_avail): Likewise.
3019 (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
3020 (insert): Remove usage of ENTRY_BLOCK_PTR macro.
3021 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3022 (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
3023 (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
3025 (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
3026 * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
3027 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3028 (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
3029 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
3030 (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
3031 * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
3032 (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
3033 (find_pdom): Likewise.
3034 (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
3035 * tree-stdarg.c (reachable_at_most_once): Likewise.
3036 * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
3037 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3038 (eliminate_tail_call): Likewise.
3039 * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
3041 (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
3042 * var-tracking.c (vt_initialize): Remove uses of macros:
3043 ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
3044 (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
3045 (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
3046 (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
3048 * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
3050 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3051 * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
3052 of EXIT_BLOCK_PTR macro.
3053 * config/arm/arm.c (require_pic_register): Remove usage of
3054 ENTRY_BLOCK_PTR macro.
3055 (arm_r3_live_at_start_p): Likewise.
3056 (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
3057 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3058 * config/frv/frv.c (frv_optimize_membar_global): Likewise.
3059 * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
3060 ENTRY_BLOCK_PTR macro.
3061 * config/i386/i386.c (ix86_count_insn): Likewise.
3062 (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
3063 (ix86_pad_short_function): Likewise.
3064 (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
3065 (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
3066 (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
3067 (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
3068 (ix86_expand_epilogue): Likewise.
3069 * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
3070 (ia64_expand_prologue): Likewise.
3072 2013-11-19 Catherine Moore <clm@codesourcery.com>
3074 * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
3075 * config/mips/mips.opt (mfix-rm7000): New option.
3076 * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
3077 * config/mips/mips.c (mips_reorg_process_insns): Disable
3078 noreorder for TARGET_FIX_RM7000.
3080 2013-11-19 Oleg Endo <olegendo@gcc.gnu.org>
3082 * config/sh/sh-c.c: Fix typo in include of file attribs.h.
3084 2013-11-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3086 * config/arm/arm.c (arm_new_rtx_costs):
3087 Handle narrow mode add-shifts properly.
3088 * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
3089 * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
3092 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3094 * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
3096 2013-11-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3098 * config/rs6000/vector.md ("mov<mode>"): Do not call
3099 rs6000_emit_le_vsx_move to move into or out of GPRs.
3100 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
3101 source and destination are not GPR hard regs.
3103 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3105 * basic-block.h (n_edges_for_function): Rename macro to...
3106 (n_edges_for_fn): ...this.
3107 (n_edges): Eliminate macro as work towards making uses of
3110 * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
3111 to "n_edges_for_fn".
3113 * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
3114 (clear_edges): Likewise.
3115 (free_edge): Likewise.
3116 * cfghooks.c (dump_flow_info): Likewise.
3117 * cprop.c (is_too_expensive): Likewise.
3118 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3119 * gcse.c (is_too_expensive): Likewise.
3120 (prune_insertions_deletions): Likewise.
3121 * mcf.c (create_fixup_graph): Likewise.
3122 * sched-rgn.c (haifa_find_rgns): Likewise.
3123 * tree-cfg.c (gimple_dump_cfg): Likewise.
3124 * var-tracking.c (variable_tracking_main_1): Likewise.
3126 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3128 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
3131 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3133 * config/aarch64/aarch64.md
3134 (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
3136 2013-11-19 Marcus Shawcroft <marcus.shawcroft@arm.com>
3138 * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
3140 2013-11-19 Joseph Myers <joseph@codesourcery.com>
3142 * varasm.c (align_variable): Give error instead of warning for
3143 unsupported alignment.
3144 (assemble_noswitch_variable): Likewise.
3146 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3148 * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
3151 2013-11-19 Peter Bergner <bergner@vnet.ibm.com>
3153 * loop-doloop.c (doloop_optimize_loops): Remove unused
3154 loop iterator argument from FOR_EACH_LOOP.
3156 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3158 Convert gimple types from a union to C++ inheritance.
3159 * Makefile.in (GIMPLE_H): Add dep on is-a.h.
3160 * coretypes.h (union gimple_statement_d): Remove declaration.
3161 (gimple): Convert from being a "union gimple_statement_d *"
3162 to a "struct gimple_statement_base *".
3163 (const_gimple): Likewise (with "const").
3164 * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
3165 (ggc_alloc_cleared_gimple_statement_stat): ...this.
3166 * gimple-pretty-print.c (debug): Change parameter from a
3167 "gimple_statement_d &" to a "gimple_statement_base &".
3168 (debug): Change parameter from a "gimple_statement_d *" to
3169 a "gimple_statement_base *".
3170 * gimple-pretty-print.h (debug): Update declarations as above.
3171 * gimple.c (gimple_alloc_stat): Update for renaming of
3172 ggc_alloc_cleared_gimple_statement_d_stat to
3173 ggc_alloc_cleared_gimple_statement_stat.
3174 * gimple.h: Include "is-a.h" for use by is_a_helper
3175 specializations in followup autogenerated patch.
3176 (struct gimple statement_base): Make this type usable as a base
3177 class by adding "desc", "tag" and "variable_size" to GTY, thus
3178 using opting-in to gengtype's support for simple inheritance.
3179 (gimple_statement_with_ops_base): Convert to a subclass of
3180 gimple_statement_base, dropping initial "gsbase" field. Note that
3181 this type is abstract, with no GSS_ value, and thus no GTY tag value.
3182 (gimple_statement_with_ops): Convert to a subclass of
3183 gimple_statement_with_ops_base, dropping initial "opbase" field.
3184 Add tag value to GTY marking. Update marking of op field to
3185 reflect how num_ops field is accessed via inheritance.
3186 (gimple_statement_with_memory_ops_base): Convert to a subclass of
3187 gimple_statement_with_ops_base, dropping initial "opbase" field.
3188 Add tag value to GTY marking.
3189 (gimple_statement_with_memory_ops): Convert to a subclass of
3190 public gimple_statement_with_memory_ops_base, dropping initial
3191 "membase" field. Add tag value to GTY marking. Update marking
3192 of op field to reflect how num_ops field is accessed via inheritance.
3193 (gimple_statement_call): Analogous changes that also update the
3194 marking of the "u" union.
3195 (gimple_statement_omp): Convert to a subclass of
3196 gimple_statement_base, dropping initial "gsbase" field, adding
3197 tag value to GTY marking.
3198 (gimple_statement_bind): Likewise.
3199 (gimple_statement_catch): Likewise.
3200 (gimple_statement_eh_filter): Likewise.
3201 (gimple_statement_eh_else): Likewise.
3202 (gimple_statement_eh_mnt): Likewise.
3203 (gimple_statement_phi): Likewise.
3204 (gimple_statement_eh_ctrl): Likewise.
3205 (gimple_statement_try): Likewise.
3206 (gimple_statement_wce): Likewise.
3207 (gimple_statement_asm): Convert to a subclass of
3208 gimple_statement_with_memory_ops_base, dropping initial
3209 "membase" field, adding tag value to GTY marking, and updating
3210 marking of op field.
3211 (gimple_statement_omp_critical): Convert to a subclass of
3212 gimple_statement_omp, dropping initial "omp" field, adding tag
3213 value to GTY marking.
3214 (gimple_statement_omp_for): Likewise.
3215 (gimple_statement_omp_parallel): Likewise.
3216 (gimple_statement_omp_task): Convert to a subclass of
3217 gimple_statement_omp_parallel, dropping initial "par" field,
3218 adding tag value to GTY marking.
3219 (gimple_statement_omp_sections): Convert to a subclass of
3220 gimple_statement_omp, dropping initial "omp" field, adding
3221 tag value to GTY marking.
3222 (gimple_statement_omp_continue): Convert to a subclass of
3223 gimple_statement_base, dropping initial "gsbase" field, adding
3224 tag value to GTY marking.
3225 (gimple_statement_omp_single): Convert to a subclass of
3226 gimple_statement_omp, dropping initial "omp" field, adding
3227 tag value to GTY marking.
3228 (gimple_statement_omp_atomic_load): Convert to a subclass of
3229 gimple_statement_base, dropping initial "gsbase" field, adding
3230 tag value to GTY marking.
3231 (gimple_statement_omp_atomic_store): Convert to a subclass of
3232 gimple_statement_base, dropping initial "gsbase" field, adding
3233 tag value to GTY marking.
3234 (gimple_statement_transaction): Convert to a subclass of
3235 gimple_statement_with_memory_ops_base, dropping initial "gsbase"
3236 field, adding tag value to GTY marking.
3237 (union gimple_statement_d): Remove.
3238 * system.h (CONST_CAST_GIMPLE): Update to use
3239 "struct gimple_statement_base *" rather than
3240 "union gimple_statement_d *".
3241 * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
3242 gimple_statement_d to gimple_statement_base.
3244 * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
3245 (gimple_set_use_ops): Port from union to usage of as_a.
3246 (gimple_set_vuse): Likewise.
3247 (gimple_set_vdef): Likewise.
3248 (gimple_call_internal_fn): Port from union to a static_cast,
3249 given that the type has already been asserted.
3250 (gimple_omp_body_ptr): Port from unchecked union usage to
3252 (gimple_omp_set_body): Likewise.
3254 * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
3255 gimple types to a true class hierarchy.
3256 (update_call_edge_frequencies): Likewise.
3257 (gsi_insert_seq_nodes_before): Likewise.
3258 (gsi_insert_seq_nodes_after): Likewise.
3259 (gsi_split_seq_after): Likewise.
3260 (gsi_set_stmt): Likewise.
3261 (gsi_split_seq_before): Likewise.
3262 (gsi_remove): Likewise.
3263 * gimple-iterator.h (gsi_one_before_end_p): Likewise.
3264 (gsi_next): Likewise.
3265 (gsi_prev): Likewise.
3266 * gimple-pretty-print.c (dump_gimple_debug): Likewise.
3267 * gimple-ssa.h (gimple_vuse_op): Likewise.
3268 (gimple_vdef_op): Likewise.
3269 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
3270 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
3271 * gimple.c (gimple_set_code): Likewise.
3272 (gimple_alloc_stat): Likewise.
3273 (gimple_set_subcode): Likewise.
3274 (gimple_build_call_internal_1): Likewise.
3275 (gimple_check_failed): Likewise.
3276 (gimple_call_flags): Likewise.
3277 (gimple_set_bb): Likewise.
3278 * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
3279 (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
3280 (is_a_helper <gimple_statement_call> (gimple)): Likewise.
3281 (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
3282 (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
3283 (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
3284 (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
3285 (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
3286 (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
3287 (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
3288 (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
3289 (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
3290 (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
3291 (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
3292 (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
3293 (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
3294 (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
3295 (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
3296 (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
3297 (is_a_helper <gimple_statement_try> (gimple)): Likewise.
3298 (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
3299 (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
3300 (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
3301 (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
3302 (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
3303 (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
3305 (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
3307 (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
3309 (is_a_helper <const gimple_statement_omp_atomic_store>
3310 (const_gimple)): Likewise.
3311 (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
3313 (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
3315 (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
3317 (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
3319 (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
3321 (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
3323 (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
3325 (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
3326 (is_a_helper <const gimple_statement_transaction> (const_gimple)):
3328 (gimple_seq_last): Update for conversion of gimple types to a true
3330 (gimple_seq_set_last): Likewise.
3331 (gimple_code): Likewise.
3332 (gimple_bb): Likewise.
3333 (gimple_block): Likewise.
3334 (gimple_set_block): Likewise.
3335 (gimple_location): Likewise.
3336 (gimple_location_ptr): Likewise.
3337 (gimple_set_location): Likewise.
3338 (gimple_no_warning_p): Likewise.
3339 (gimple_set_no_warning): Likewise.
3340 (gimple_set_visited): Likewise.
3341 (gimple_visited_p): Likewise.
3342 (gimple_set_plf): Likewise.
3343 (gimple_plf): Likewise.
3344 (gimple_set_uid): Likewise.
3345 (gimple_uid): Likewise.
3346 (gimple_init_singleton): Likewise.
3347 (gimple_modified_p): Likewise.
3348 (gimple_set_modified): Likewise.
3349 (gimple_expr_code): Likewise.
3350 (gimple_has_volatile_ops): Likewise.
3351 (gimple_set_has_volatile_ops): Likewise.
3352 (gimple_omp_subcode): Likewise.
3353 (gimple_omp_set_subcode): Likewise.
3354 (gimple_omp_return_set_nowait): Likewise.
3355 (gimple_omp_section_set_last): Likewise.
3356 (gimple_omp_parallel_set_combined_p): Likewise.
3357 (gimple_omp_atomic_set_need_value): Likewise.
3358 (gimple_omp_atomic_set_seq_cst): Likewise.
3359 (gimple_num_ops): Likewise.
3360 (gimple_set_num_ops): Likewise.
3361 (gimple_assign_nontemporal_move_p): Likewise.
3362 (gimple_assign_set_nontemporal_move): Likewise.
3363 (gimple_assign_rhs_code): Likewise.
3364 (gimple_assign_set_rhs_code): Likewise.
3365 (gimple_call_internal_p): Likewise.
3366 (gimple_call_with_bounds_p): Likewise.
3367 (gimple_call_set_with_bounds): Likewise.
3368 (gimple_call_set_tail): Likewise.
3369 (gimple_call_tail_p): Likewise.
3370 (gimple_call_set_return_slot_opt): Likewise.
3371 (gimple_call_return_slot_opt_p): Likewise.
3372 (gimple_call_set_from_thunk): Likewise.
3373 (gimple_call_from_thunk_p): Likewise.
3374 (gimple_call_set_va_arg_pack): Likewise.
3375 (gimple_call_va_arg_pack_p): Likewise.
3376 (gimple_call_set_nothrow): Likewise.
3377 (gimple_call_set_alloca_for_var): Likewise.
3378 (gimple_call_alloca_for_var_p): Likewise.
3379 (gimple_call_copy_flags): Likewise.
3380 (gimple_cond_code): Likewise.
3381 (gimple_cond_set_code): Likewise.
3382 (gimple_cond_make_false): Likewise.
3383 (gimple_cond_make_true): Likewise.
3384 (gimple_asm_volatile_p): Likewise.
3385 (gimple_asm_set_volatile): Likewise.
3386 (gimple_asm_set_input): Likewise.
3387 (gimple_asm_input_p): Likewise.
3388 (gimple_try_kind): Likewise.
3389 (gimple_try_set_kind): Likewise.
3390 (gimple_try_catch_is_cleanup): Likewise.
3391 (gimple_try_set_catch_is_cleanup): Likewise.
3392 (gimple_wce_cleanup_eh_only): Likewise.
3393 (gimple_wce_set_cleanup_eh_only): Likewise.
3394 (gimple_debug_bind_p): Likewise.
3395 (gimple_debug_source_bind_p): Likewise.
3396 (gimple_omp_for_set_kind): Likewise.
3397 (gimple_omp_for_set_combined_p): Likewise.
3398 (gimple_omp_for_set_combined_into_p): Likewise.
3399 (gimple_omp_target_set_kind): Likewise.
3400 (gimple_transaction_subcode): Likewise.
3401 (gimple_transaction_set_subcode): Likewise.
3402 (gimple_predict_predictor): Likewise.
3403 (gimple_predict_set_predictor): Likewise.
3404 (gimple_predict_outcome): Likewise.
3405 (gimple_predict_set_outcome): Likewise.
3406 (gimple_transaction_set_label): Likewise.
3407 (gimple_transaction_set_body): Likewise.
3408 (gimple_transaction_label_ptr): Likewise.
3409 (gimple_transaction_label): Likewise.
3410 (gimple_transaction_body_ptr): Likewise.
3411 (gimple_omp_continue_set_control_use): Likewise.
3412 (gimple_omp_continue_control_use_ptr): Likewise.
3413 (gimple_omp_continue_control_use): Likewise.
3414 (gimple_omp_continue_set_control_def): Likewise.
3415 (gimple_omp_continue_control_def_ptr): Likewise.
3416 (gimple_omp_continue_control_def): Likewise.
3417 (gimple_omp_atomic_load_rhs_ptr): Likewise.
3418 (gimple_omp_atomic_load_rhs): Likewise.
3419 (gimple_omp_atomic_load_set_rhs): Likewise.
3420 (gimple_omp_atomic_load_lhs_ptr): Likewise.
3421 (gimple_omp_atomic_load_lhs): Likewise.
3422 (gimple_omp_atomic_load_set_lhs): Likewise.
3423 (gimple_omp_atomic_store_val_ptr): Likewise.
3424 (gimple_omp_atomic_store_val): Likewise.
3425 (gimple_omp_atomic_store_set_val): Likewise.
3426 (gimple_omp_for_cond): Likewise.
3427 (gimple_omp_for_set_cond): Likewise.
3428 (gimple_omp_sections_set_control): Likewise.
3429 (gimple_omp_sections_control_ptr): Likewise.
3430 (gimple_omp_sections_control): Likewise.
3431 (gimple_omp_sections_set_clauses): Likewise.
3432 (gimple_omp_sections_clauses_ptr): Likewise.
3433 (gimple_omp_sections_clauses): Likewise.
3434 (gimple_omp_teams_set_clauses): Likewise.
3435 (gimple_omp_teams_clauses_ptr): Likewise.
3436 (gimple_omp_teams_clauses): Likewise.
3437 (gimple_omp_target_set_data_arg): Likewise.
3438 (gimple_omp_target_data_arg_ptr): Likewise.
3439 (gimple_omp_target_data_arg): Likewise.
3440 (gimple_omp_target_set_child_fn): Likewise.
3441 (gimple_omp_target_child_fn_ptr): Likewise.
3442 (gimple_omp_target_child_fn): Likewise.
3443 (gimple_omp_target_set_clauses): Likewise.
3444 (gimple_omp_target_clauses_ptr): Likewise.
3445 (gimple_omp_target_clauses): Likewise.
3446 (gimple_omp_single_set_clauses): Likewise.
3447 (gimple_omp_single_clauses_ptr): Likewise.
3448 (gimple_omp_single_clauses): Likewise.
3449 (gimple_omp_task_set_arg_align): Likewise.
3450 (gimple_omp_task_arg_align_ptr): Likewise.
3451 (gimple_omp_task_arg_align): Likewise.
3452 (gimple_omp_task_set_arg_size): Likewise.
3453 (gimple_omp_task_arg_size_ptr): Likewise.
3454 (gimple_omp_task_arg_size): Likewise.
3455 (gimple_omp_task_set_copy_fn): Likewise.
3456 (gimple_omp_task_copy_fn_ptr): Likewise.
3457 (gimple_omp_task_copy_fn): Likewise.
3458 (gimple_omp_task_set_data_arg): Likewise.
3459 (gimple_omp_task_data_arg_ptr): Likewise.
3460 (gimple_omp_task_data_arg): Likewise.
3461 (gimple_omp_task_set_child_fn): Likewise.
3462 (gimple_omp_task_child_fn_ptr): Likewise.
3463 (gimple_omp_task_child_fn): Likewise.
3464 (gimple_omp_task_set_clauses): Likewise.
3465 (gimple_omp_task_clauses_ptr): Likewise.
3466 (gimple_omp_task_clauses): Likewise.
3467 (gimple_omp_parallel_set_data_arg): Likewise.
3468 (gimple_omp_parallel_data_arg_ptr): Likewise.
3469 (gimple_omp_parallel_data_arg): Likewise.
3470 (gimple_omp_parallel_set_child_fn): Likewise.
3471 (gimple_omp_parallel_child_fn_ptr): Likewise.
3472 (gimple_omp_parallel_child_fn): Likewise.
3473 (gimple_omp_parallel_set_clauses): Likewise.
3474 (gimple_omp_parallel_clauses_ptr): Likewise.
3475 (gimple_omp_parallel_clauses): Likewise.
3476 (gimple_omp_for_set_pre_body): Likewise.
3477 (gimple_omp_for_pre_body_ptr): Likewise.
3478 (gimple_omp_for_set_incr): Likewise.
3479 (gimple_omp_for_incr_ptr): Likewise.
3480 (gimple_omp_for_incr): Likewise.
3481 (gimple_omp_for_set_final): Likewise.
3482 (gimple_omp_for_final_ptr): Likewise.
3483 (gimple_omp_for_final): Likewise.
3484 (gimple_omp_for_set_initial): Likewise.
3485 (gimple_omp_for_initial_ptr): Likewise.
3486 (gimple_omp_for_initial): Likewise.
3487 (gimple_omp_for_set_index): Likewise.
3488 (gimple_omp_for_index_ptr): Likewise.
3489 (gimple_omp_for_index): Likewise.
3490 (gimple_omp_for_collapse): Likewise.
3491 (gimple_omp_for_set_clauses): Likewise.
3492 (gimple_omp_for_clauses_ptr): Likewise.
3493 (gimple_omp_for_clauses): Likewise.
3494 (gimple_omp_critical_set_name): Likewise.
3495 (gimple_omp_critical_name_ptr): Likewise.
3496 (gimple_omp_critical_name): Likewise.
3497 (gimple_eh_dispatch_set_region): Likewise.
3498 (gimple_eh_dispatch_region): Likewise.
3499 (gimple_resx_set_region): Likewise.
3500 (gimple_resx_region): Likewise.
3501 (gimple_phi_set_arg): Likewise.
3502 (gimple_phi_arg): Likewise.
3503 (gimple_phi_set_result): Likewise.
3504 (gimple_phi_result_ptr): Likewise.
3505 (gimple_phi_result): Likewise.
3506 (gimple_phi_num_args): Likewise.
3507 (gimple_phi_capacity): Likewise.
3508 (gimple_wce_set_cleanup): Likewise.
3509 (gimple_wce_cleanup_ptr): Likewise.
3510 (gimple_try_set_cleanup): Likewise.
3511 (gimple_try_set_eval): Likewise.
3512 (gimple_try_cleanup_ptr): Likewise.
3513 (gimple_try_eval_ptr): Likewise.
3514 (gimple_eh_else_set_e_body): Likewise.
3515 (gimple_eh_else_set_n_body): Likewise.
3516 (gimple_eh_else_e_body_ptr): Likewise.
3517 (gimple_eh_else_n_body_ptr): Likewise.
3518 (gimple_eh_must_not_throw_set_fndecl): Likewise.
3519 (gimple_eh_must_not_throw_fndecl): Likewise.
3520 (gimple_eh_filter_set_failure): Likewise.
3521 (gimple_eh_filter_set_types): Likewise.
3522 (gimple_eh_filter_failure_ptr): Likewise.
3523 (gimple_eh_filter_types_ptr): Likewise.
3524 (gimple_eh_filter_types): Likewise.
3525 (gimple_catch_set_handler): Likewise.
3526 (gimple_catch_set_types): Likewise.
3527 (gimple_catch_handler_ptr): Likewise.
3528 (gimple_catch_types_ptr): Likewise.
3529 (gimple_catch_types): Likewise.
3530 (gimple_asm_string): Likewise.
3531 (gimple_asm_set_label_op): Likewise.
3532 (gimple_asm_label_op): Likewise.
3533 (gimple_asm_set_clobber_op): Likewise.
3534 (gimple_asm_clobber_op): Likewise.
3535 (gimple_asm_set_output_op): Likewise.
3536 (gimple_asm_output_op_ptr): Likewise.
3537 (gimple_asm_output_op): Likewise.
3538 (gimple_asm_set_input_op): Likewise.
3539 (gimple_asm_input_op_ptr): Likewise.
3540 (gimple_asm_input_op): Likewise.
3541 (gimple_asm_nlabels): Likewise.
3542 (gimple_asm_nclobbers): Likewise.
3543 (gimple_asm_noutputs): Likewise.
3544 (gimple_asm_ninputs): Likewise.
3545 (gimple_bind_set_block): Likewise.
3546 (gimple_bind_block): Likewise.
3547 (gimple_bind_add_seq): Likewise.
3548 (gimple_bind_add_stmt): Likewise.
3549 (gimple_bind_set_body): Likewise.
3550 (gimple_bind_body_ptr): Likewise.
3551 (gimple_bind_append_vars): Likewise.
3552 (gimple_bind_set_vars): Likewise.
3553 (gimple_bind_vars): Likewise.
3554 (gimple_call_clobber_set): Likewise.
3555 (gimple_call_use_set): Likewise.
3556 (gimple_call_set_internal_fn): Likewise.
3557 (gimple_call_set_fntype): Likewise.
3558 (gimple_call_fntype): Likewise.
3559 (gimple_omp_return_lhs_ptr): Likewise.
3560 (gimple_omp_return_lhs): Likewise.
3561 (gimple_omp_return_set_lhs): Likewise.
3562 (gimple_omp_taskreg_set_data_arg): Likewise.
3563 (gimple_omp_taskreg_data_arg_ptr): Likewise.
3564 (gimple_omp_taskreg_data_arg): Likewise.
3565 (gimple_omp_taskreg_set_child_fn): Likewise.
3566 (gimple_omp_taskreg_child_fn_ptr): Likewise.
3567 (gimple_omp_taskreg_child_fn): Likewise.
3568 (gimple_omp_taskreg_set_clauses): Likewise.
3569 (gimple_omp_taskreg_clauses_ptr): Likewise.
3570 (gimple_omp_taskreg_clauses): Likewise.
3571 (gimple_vuse): Likewise.
3572 (gimple_vdef): Likewise.
3573 (gimple_vuse_ptr): Likewise.
3574 (gimple_vdef_ptr): Likewise.
3575 * tree-inline.c (copy_debug_stmt): Likewise.
3576 * tree-phinodes.c (make_phi_node): Likewise.
3578 * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3579 (is_a_helper <gimple_statement_with_ops>::test): New.
3580 (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3581 (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3583 * gimple-streamer-in.c (input_gimple_stmt): Port from union
3584 access to use of as_a.
3585 * gimple.c (gimple_build_asm_1): Likewise.
3586 (gimple_build_try): Likewise. Also, return a specific subclass
3587 rather than just gimple.
3588 (gimple_build_resx): Port from union access to use of as_a.
3589 (gimple_build_eh_dispatch): Likewise.
3590 (gimple_build_omp_for): Likewise. Also, convert allocation of iter
3591 now that gengtype no longer provides a typed allocator function.
3592 (gimple_copy): Likewise.
3593 * gimple.h (gimple_build_try): Return a specific subclass rather
3595 * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3596 with subclass access by making use of new return type of
3598 * tree-phinodes.c: (allocate_phi_node): Return a
3599 "gimple_statement_phi *" rather than just a gimple.
3600 (resize_phi_node): Likewise.
3601 (make_phi_node): Replace union access with subclass access by
3602 making use of new return type of allocate_phi_node.
3603 (reserve_phi_args_for_new_edge): Replace union access with as_a.
3604 (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3606 (remove_phi_args): Update for change to remove_phi_arg_num.
3608 * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3609 code field to reflect inheritance, rather than embedding of
3610 the base gimple type.
3612 2013-11-19 Richard Biener <rguenther@suse.de>
3614 * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3615 and destructor and make fel_next a member function.
3616 (fel_next): Transform into ...
3617 (loop_iterator::next): ... this.
3618 (fel_init): Transform into ...
3619 (loop_iterator::loop_iterator): ... this.
3620 (loop_iterator::~loop_iterator): New.
3621 (FOR_EACH_LOOP): Remove loop-iterator argument.
3622 (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3623 * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3624 graphite-clast-to-gimple.c, graphite-scop-detection.c,
3625 graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3626 loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3627 modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3628 tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3629 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3630 tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3631 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3632 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3633 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3634 uses of FOR_EACH_LOOP and remove loop_iterator variables. Replace
3635 FOR_EACH_LOOP_BREAK with break.
3637 2013-11-19 Richard Biener <rguenther@suse.de>
3639 PR tree-optimization/59164
3640 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3642 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3643 whether we can create an epilogue loop to reflect thecases where
3646 2013-11-19 Andrew MacLeod <amacleod@redhat.com>
3648 * graphite-sese-to-poly.c: Include expr.h.
3650 2013-11-19 Richard Biener <rguenther@suse.de>
3653 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3654 loads into stmts that may clobber it.
3656 2013-11-19 Bernd Schmidt <bernds@codesourcery.com>
3658 * cgraphunit.c (symtab_terminator): New variable.
3659 (queued_nodes): Renamed from first. Use symtab_terminator as
3661 (analyze_functions): Adjust accordingly.
3662 (cgraph_process_new_functions): Return void.
3663 * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3665 2013-11-19 Marek Polacek <polacek@redhat.com>
3667 * opts.c (common_handle_option): Add -fsanitize=null option.
3668 Turn off -fdelete-null-pointer-checks option when doing the
3669 NULL pointer checking.
3670 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3671 * tree-pass.h (make_pass_ubsan): Declare.
3672 (make_pass_sanopt): Declare.
3673 * timevar.def (TV_TREE_UBSAN): New timevar.
3674 * passes.def: Add pass_sanopt and pass_ubsan.
3675 * ubsan.h (ubsan_null_ckind): New enum.
3676 (ubsan_mismatch_data): New struct.
3677 (ubsan_expand_null_ifn): Declare.
3678 (ubsan_create_data): Adjust declaration.
3679 (ubsan_type_descriptor): Likewise.
3680 * asan.c: Include "ubsan.h".
3681 (pass_data_sanopt): New pass.
3682 (execute_sanopt): New function.
3683 (gate_sanopt): Likewise.
3684 (make_pass_sanopt): Likewise.
3685 (class pass_sanopt): New class.
3686 * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3687 gimple-iterator.h and cfgloop.h.
3688 (PROB_VERY_UNLIKELY): Define.
3689 (tree_type_map_hash): New function.
3690 (ubsan_type_descriptor): Add new parameter.
3691 Improve type name generation.
3692 (ubsan_create_data): Add new parameter. Add pointer data into
3694 (ubsan_expand_null_ifn): New function.
3695 (instrument_member_call): Likewise.
3696 (instrument_mem_ref): Likewise.
3697 (instrument_null): Likewise.
3698 (ubsan_pass): Likewise.
3699 (gate_ubsan): Likewise.
3700 (make_pass_ubsan): Likewise.
3701 (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3702 (class pass_ubsan): New class.
3703 (pass_data_ubsan): New pass.
3704 * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3705 * internal-fn.c (expand_UBSAN_NULL): New function.
3706 * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3707 even when !flag_toplevel_reorder.
3708 * internal-fn.def (UBSAN_NULL): New.
3710 2013-11-19 Jan Hubicka <jh@suse.cz>
3712 * cgraph.c (cgraph_create_indirect_edge): Use
3713 get_polymorphic_call_info.
3714 * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3715 maybe_in_construction and maybe_derived_type.
3716 * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3717 (ipa_dummy_polymorphic_call_context): New global var.
3718 (possible_polymorphic_call_targets): Add context paramter.
3719 (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3720 (possible_polymorphic_call_target_p): Likewise.
3721 (get_polymorphic_call_info): New function.
3722 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3723 (add_type_duplicate): Remove forgotten debug output.
3724 (method_class_type): Add sanity check.
3725 (maybe_record_node): Add FINALP parameter.
3726 (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3727 by info by get_binfo_at_offset.
3728 (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3729 parameters; pass them to record-binfo.
3730 (polymorphic_call_target_d): Add context and FINAL.
3731 (polymorphic_call_target_hasher::hash): Hash context.
3732 (polymorphic_call_target_hasher::equal): Compare context.
3733 (free_polymorphic_call_targets_hash):
3734 (get_class_context): New function.
3735 (contains_type_p): New function.
3736 (get_polymorphic_call_info): New function.
3737 (walk_bases): New function.
3738 (possible_polymorphic_call_targets): Add context parameter; honnor it.
3739 (dump_possible_polymorphic_call_targets): Dump context.
3740 (possible_polymorphic_call_target_p): Add context.
3741 (update_type_inheritance_graph): Update comment.s
3742 (ipa_set_jf_known_type): Assert that compoentn type is known.
3743 (ipa_note_param_call): Do not tamper with offsets.
3744 (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3746 (update_indirect_edges_after_inlining): Likewise.
3747 (ipa_write_indirect_edge_info): Stream new fields.
3748 (ipa_read_indirect_edge_info): Stream in new fields.
3750 2013-11-19 Jan Hubicka <jh@suse.cz>
3752 * tree-pretty-print.c (dump_generic_node): Print class type of
3755 2013-11-19 Joey Ye <joey.ye@arm.com>
3757 * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3758 * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3760 * config/arm/arm.c (arm_option_override): By default disable
3761 -marm-pic-data-is-text-relative.
3762 (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3763 (arm_assemble_integer): Likewise.
3764 * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3765 New macro to initialize -marm-pic-data-is-text-relative.
3767 2013-11-19 Bin Cheng <bin.cheng@arm.com>
3769 * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3770 (address_cost_data): New field.
3771 (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3772 Use ainc_costs for auto-increment rtx patterns. Cleanup TWS.
3774 2013-11-19 James Greenhalgh <james.greenhalgh@arm.com>
3776 * config/aarch64/aarch64.md: Remove v8type from all insns.
3778 2013-11-19 Richard Biener <rguenther@suse.de>
3780 PR tree-optimization/57517
3781 * tree-predcom.c (combinable_refs_p): Verify the combination
3782 is always executed when the refs are.
3784 2013-11-19 Jeff Law <law@redhat.com>
3786 * tree-ssa-threadupdate.c: Include ssa-iterators.h
3787 (copy_phi_arg_into_existing_phi): New function.
3788 (any_remaining_duplicated_blocks): Likewise.
3789 (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3790 blocks on a jump threading path.
3792 * tree-ssa-threadupdate.c (thread_through_loop_header): Do not
3793 thread through a joiner which has the latch edge.
3795 2013-11-19 Jan Hubicka <jh@suse.cz>
3797 * md.texi (setmem): Document new parameter.
3798 * optabs.c (maybe_gen_insn): Support 9 operands.
3799 * builtins.c (determine_block_size): Add probable_max_size;
3800 support anti-ranges.
3801 (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3803 * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3804 emit_block_move, clear_storage_hints, set_storage_via_setmem):
3806 * expr.h (emit_block_move_hints, clear_storage_hints,
3807 set_storage_via_setmem): Update prototype.
3808 * i386.md (setmem, movmem patterns): Add 9th operand.
3809 * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3810 * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3811 argument; pass it to decide_alg.
3813 2013-11-19 David Malcolm <dmalcolm@redhat.com>
3815 * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3816 (n_basic_blocks_for_fn): ...this.
3818 (n_basic_blocks): Eliminate macro as work towards making uses of
3821 * cfgloop.c (init_loops_structure): Update for renaming of
3822 "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3823 * graph.c (draw_cfg_nodes_no_loops): Likewise.
3824 * ipa-utils.c (ipa_merge_profiles): Likewise.
3825 * lto-streamer-in.c (make_new_block): Likewise.
3826 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3827 (dump_function_to_file): Likewise.
3829 * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3830 macro with "n_basic_blocks_for_fn (cfun)".
3831 * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3832 (duplicate_computed_gotos): Likewise.
3833 (reorder_basic_blocks): Likewise.
3834 * bt-load.c (augment_live_range): Likewise.
3835 * cfg.c (expunge_block): Likewise.
3836 (compact_blocks): Likewise.
3837 * cfganal.c (single_pred_before_succ_order): Likewise.
3838 (compute_idf): Likewise.
3839 (flow_dfs_compute_reverse_init): Likewise.
3840 (pre_and_rev_post_order_compute): Likewise.
3841 (pre_and_rev_post_order_compute_fn): Likewise.
3842 (inverted_post_order_compute): Likewise.
3843 (post_order_compute): Likewise.
3844 (print_edge_list): Likewise.
3845 (find_unreachable_blocks): Likewise.
3846 (mark_dfs_back_edges): Likewise.
3847 * cfgcleanup.c (try_optimize_cfg): Likewise.
3848 (try_forward_edges): Likewise.
3849 * cfghooks.c (dump_flow_info): Likewise.
3850 * cfgloop.c (verify_loop_structure): Likewise.
3851 (get_loop_body): Likewise.
3852 (flow_loops_find): Likewise.
3853 * cfgloopmanip.c (add_loop): Likewise.
3854 (remove_path): Likewise.
3855 (find_path): Likewise.
3856 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3857 (rtl_verify_bb_layout): Likewise.
3858 (entry_of_function): Likewise.
3859 (rtl_create_basic_block): Likewise.
3860 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3861 * cprop.c (one_cprop_pass): Likewise.
3862 (is_too_expensive): Likewise.
3863 * df-core.c (df_compute_cfg_image): Likewise.
3864 (df_compact_blocks): Likewise.
3865 (df_worklist_dataflow_doublequeue): Likewise.
3866 * dominance.c (calculate_dominance_info): Likewise.
3867 (calc_dfs_tree): Likewise.
3868 (calc_dfs_tree_nonrec): Likewise.
3869 (init_dom_info): Likewise.
3870 * domwalk.c (cmp_bb_postorder): Likewise.
3871 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3872 (generate_setjmp_warnings): Likewise.
3873 * fwprop.c (build_single_def_use_links): Likewise.
3874 * gcse.c (is_too_expensive): Likewise.
3875 (one_code_hoisting_pass): Likewise.
3876 (one_pre_gcse_pass): Likewise.
3877 * graphite.c (graphite_initialize): Likewise.
3878 * haifa-sched.c (haifa_sched_init): Likewise.
3879 * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3880 * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3881 * ira-build.c (ira_build): Likewise.
3882 * lcm.c (compute_nearerout): Likewise.
3883 (compute_available): Likewise.
3884 (compute_laterin): Likewise.
3885 (compute_antinout_edge): Likewise.
3886 * lra-lives.c (lra_create_live_ranges): Likewise.
3887 * lra.c (has_nonexceptional_receiver): Likewise.
3888 * mcf.c (create_fixup_graph): Likewise.
3889 * profile.c (branch_prob): Likewise.
3890 * reg-stack.c (convert_regs_2): Likewise.
3891 * regrename.c (regrename_analyze): Likewise.
3892 * reload1.c (has_nonexceptional_receiver): Likewise.
3893 * reorg.c (dbr_schedule): Likewise.
3894 * sched-deps.c (sched_deps_init): Likewise.
3895 * sched-ebb.c (schedule_ebbs): Likewise.
3896 * sched-rgn.c (extend_regions): Likewise.
3897 (schedule_insns): Likewise.
3898 (sched_rgn_init): Likewise.
3899 (extend_rgns): Likewise.
3900 (haifa_find_rgns): Likewise.
3901 * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3902 (sel_recompute_toporder): Likewise.
3903 * sel-sched.c (run_selective_scheduling): Likewise.
3904 * store-motion.c (one_store_motion_pass): Likewise.
3905 (remove_reachable_equiv_notes): Likewise.
3906 * tracer.c (tracer): Likewise.
3907 (tail_duplicate): Likewise.
3908 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3909 (dump_cfg_stats): Likewise.
3910 (gimple_dump_cfg): Likewise.
3911 (create_bb): Likewise.
3912 (build_gimple_cfg): Likewise.
3913 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3914 * tree-inline.c (optimize_inline_calls): Likewise.
3915 (fold_marked_statements): Likewise.
3916 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3917 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3918 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3919 * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3920 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3921 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3922 * tree-ssa-pre.c (do_pre): Likewise.
3923 (init_pre): Likewise.
3924 (compute_avail): Likewise.
3925 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3926 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3927 * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3928 (init_worklist): Likewise.
3929 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3930 * var-tracking.c (variable_tracking_main_1): Likewise.
3931 (vt_find_locations): Likewise.
3932 (vt_stack_adjustments): Likewise.
3933 * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3934 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3936 2013-11-18 Jan Hubicka <jh@suse.cz>
3938 * profile.c (compute_branch_probabilities): Do not sanity check
3941 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3943 * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3945 * fold-const.c (fold_single_bit_test_into_sign_test)
3946 (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3948 2013-11-18 Teresa Johnson <tejohnson@google.com>
3950 * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3951 cfglayout after bb reordering.
3952 * passes.def: Move compgotos before bb reordering since it goes into
3955 2013-11-18 Bernd Schmidt <bernds@codesourcery.com>
3957 * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3958 * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3960 (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3961 make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3962 pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3963 * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3964 * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3965 Remove all_lto_gen_passes.
3966 * passes.c (pass_manager::dump_passes): Remove its use.
3967 (pass_manager::register_pass): Likewise.
3968 (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3969 (pass_manager::pass_manager): Don't initialize or use it.
3970 (write_lto): New static function.
3971 (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3972 instead of using all_lto_gen_passes.
3973 * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3974 pass_ipa_lto_finish_out): Delete.
3975 * tree-pass.h (make_pass_ipa_lto_gimple_out,
3976 make_pass_ipa_lto_finish_out): Don't declare.
3978 2013-11-18 Jeff Law <law@redhat.com>
3980 * tree-ssa-threadupdate.c (redirection_data): Record two
3981 duplicated blocks instead of just one.
3982 (local_info): Explain why we don't create a template for the
3983 second duplicated block in a thread path.
3984 (create_block_for_threading): Accept argument indicating array
3985 index into redirection_data to store its result.
3986 (lookup_redirection_data): Initialize both duplicate blocks.
3987 (ssa_create_duplicates): If a jump threading path needs multiple
3988 blocks duplicated, then duplicate them.
3989 (ssa_fix_duplicate_block_edges): Corresponding changes.
3990 (ssa_fixup_template_block, thread_single_edge): Likewise.
3992 2013-11-18 Marek Polacek <polacek@redhat.com>
3994 * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3996 2013-11-18 Andrew Pinski <apinski@cavium.com>
3997 Steve Ellcey <sellcey@mips.com>
4000 * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
4001 type restriction from equality_operator on conditonal move.
4002 (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
4003 (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
4005 2013-11-18 Jeff Law <law@redhat.com>
4007 * tree-ssa-threadupdate.c: Fix file block comment.
4008 Fix minor indention issue.
4010 2013-11-18 Uros Bizjak <ubizjak@gmail.com>
4012 * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
4013 ix86_address_subreg_operand. Move subreg checks to
4014 ix86_validate_address_register. Move address override check to
4015 ix86_legitimate_address_p.
4016 (ix86_validate_address_register): New function.
4017 (ix86_legitimate_address_p): Call ix86_validate_address_register
4018 to validate base and index registers. Add address override check
4019 from ix86_decompose_address.
4020 (ix86_decompose_address): Remove.
4022 2013-11-18 Richard Biener <rguenther@suse.de>
4024 PR tree-optimization/59125
4025 PR tree-optimization/54570
4026 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
4027 is not complete do not treat component-references with offset zero
4028 but different fields as equal.
4029 * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
4030 (compute_object_sizes): Apply TLC. Propagate the constant
4031 results into all uses and fold their stmts.
4032 * passes.def (pass_all_optimizations): Move pass_object_sizes
4033 after the first pass_forwprop and before pass_fre.
4035 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4037 * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4038 * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
4039 (tree_ctz): Remove cast to unsigned type.
4040 * builtins.c (fold_builtin_memory_op): Likewise.
4041 * dwarf2out.c (descr_info_loc): Likewise.
4042 * godump.c (go_output_typedef): Likewise.
4043 * omp-low.c (expand_omp_simd): Likewise.
4044 * stor-layout.c (excess_unit_span): Likewise.
4045 * tree-object-size.c (addr_object_size): Likewise.
4046 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4047 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4048 (simplify_rotate): Likewise.
4049 * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
4050 (handle_pointer_plus): Likewise.
4051 * tree-switch-conversion.c (check_range): Likewise.
4052 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
4053 * tsan.c (instrument_builtin_call): Likewise.
4054 * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
4055 * trans-mem.c (tm_log_add): Likewise.
4056 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
4057 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
4058 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
4059 * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
4061 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4063 * tree.h (host_integerp, tree_low_cst): Delete.
4064 * tree.c (host_integerp, tree_low_cst): Delete.
4066 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4068 * expr.h: Update comments to refer to tree_to_[su]hwi rather
4070 * fold-const.c (fold_binary_loc): Likewise.
4071 * expr.c (store_constructor): Use tree_to_uhwi rather than
4073 * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
4074 * stmt.c (emit_case_dispatch_table): Likewise.
4075 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4077 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4079 * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
4080 config/aarch64/aarch64.c, config/alpha/predicates.md,
4081 config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
4082 config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
4083 config/mep/mep-pragma.c, config/mips/mips.c,
4084 config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
4085 dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
4086 function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
4087 predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
4088 tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
4089 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
4090 tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
4091 tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
4092 tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
4093 Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
4095 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4097 * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
4098 config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
4099 config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
4100 coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
4101 fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
4102 predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
4103 tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
4104 tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
4105 tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
4106 tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
4107 Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
4109 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4111 * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
4112 * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
4114 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4116 * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
4119 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4121 * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
4122 config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
4123 gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
4124 tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
4125 tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
4126 tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
4127 tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
4128 config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
4129 config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
4130 config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
4131 gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
4132 tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
4133 tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
4134 tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
4135 tree_fits_uhwi_p throughout.
4137 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4139 * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
4140 config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
4141 config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
4142 expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
4143 gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
4144 omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
4145 stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
4146 tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
4147 tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
4148 tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4149 tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
4150 tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
4151 varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4154 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4156 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
4157 * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
4159 2013-11-18 Kirill Yukhin <kirill.yukhin@intel.com>
4161 * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
4162 flag if it kills its address, not its post-increment.
4164 2013-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
4166 * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
4167 * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
4168 * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
4169 * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
4170 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4171 (gimple_call_with_bounds_p): New.
4172 (gimple_call_set_with_bounds): New.
4173 (gimple_call_num_nobnd_args): Remove.
4174 (gimple_call_nobnd_arg): Remove.
4175 * tree.h (CALL_WITH_BOUNDS_P): New.
4176 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4178 2013-11-18 Trevor Saunders <tsaunders@mozilla.com>
4180 * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
4181 (symtab_node_name): Rename to symtab_node::name.
4182 (cgraph_node_asm_name): Remove.
4183 (varpool_node_asm_name): Remove.
4184 * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
4185 ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
4186 ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
4187 ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
4188 tree-ssa-structalias.c value-prof.c varpool.c Adjust.
4190 2013-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4192 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
4193 * config/arm/arm.c (arm_cortex_a53_tune): New.
4194 * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
4196 2013-11-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4198 * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
4199 (case ${target}): Add bdver4.
4200 * config/i386/bdver3.md: Add bdver4.
4201 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
4202 -march=native recognize bdver4 processors.
4203 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4204 bdver4 def_and_undef
4205 * config/i386/i386.c (struct processor_costs bdver4_cost): New.
4206 (m_BDVER4): New definition.
4207 (m_AMD_MULTIPLE): Includes m_BDVER4.
4208 (processor_target_table): Add bdver4 entry.
4209 (static const char *const cpu_names): Add bdver4 entry.
4210 (software_prefetching_beneficial_p): Add bdver3.
4211 (ix86_option_override_internal): Add bdver4 instruction sets.
4212 (ix86_issue_rate): Add bdver4.
4213 (ix86_adjust_cost): Add bdver4.
4214 (ia32_multipass_dfa_lookahead): Add bdver4.
4215 (enum processor_model): Add M_AMDFAM15H_BDVER4.
4216 (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
4217 (has_dispatch): Add bdver4.
4218 * config/i386/i386.h (TARGET_BDVER4): New definition.
4219 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
4220 (enum processor_type): Add PROCESSOR_BDVER4.
4221 * config/i386/i386.md (define_attr "cpu"): Add bdver4.
4222 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
4223 * doc/extend.texi: Add details about bdver4.
4224 * doc/invoke.texi: Add details about bdver4. Add
4225 fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
4227 2013-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4229 * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
4230 sdmode_stack_slot also in little-endian mode.
4232 2013-11-17 Jan Hubicka <jh@suse.cz>
4234 * doc/md.texi (setmem, movstr): Update documentation.
4235 * builtins.c (determine_block_size): New function.
4236 (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
4237 (expand_builtin_memset_args): Use it and pass it to
4238 set_storage_via_setmem.
4239 * expr.c (emit_block_move_via_movmem): Add min_size/max_size
4240 parameters; update call to expander.
4241 (emit_block_move_hints): Add min_size/max_size parameters.
4242 (clear_storage_hints): Likewise.
4243 (set_storage_via_setmem): Likewise.
4244 (clear_storage): Update.
4245 * expr.h (emit_block_move_hints, clear_storage_hints,
4246 set_storage_via_setmem): Update prototypes.
4247 * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
4248 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4249 (ix86_expand_movmem, ix86_expand_setmem): Remove.
4250 * i386.md (movmem, setmem): Pass parameters.
4252 2013-11-17 Uros Bizjak <ubizjak@gmail.com>
4255 * config/i386/i386.c (ix86_address_subreg_operand): Do not
4256 reject non-integer subregs.
4257 (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
4258 Move check for invalid x32 constant addresses ...
4259 (ix86_legitimate_address_p): ... here.
4261 2011-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4263 * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
4264 parameter and use it in REG_FRAME_RELATED_EXPR note.
4265 (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
4267 (rs6000_emit_prologue): Likewise, but for little endian VSX
4268 stores, pass the source register of the store instead.
4270 2013-11-17 Andrew MacLeod <amacleod@redhat.com>
4272 * gimple.h: Reorder prototypes to match .c declaration order, and
4273 remove protyotypes for functions not in gimple.c.
4274 (LABEL): Move to tree-into-ssa.c.
4275 * gimple.c: Remove unused prototypes.
4276 (get_base_address): Move to tree.c.
4277 * tree.c (get_base_address): Relocate from gimple.c.
4278 * builtins.h (validate_gimple_arglist): Add prototype.
4279 * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
4280 * cfgexpand.h: New File.
4281 (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
4282 * tree.h (build_addr): Move to tree-nested.h.
4283 * tree-nested.h: New File.
4284 (build_addr, lower_nested_functions, insert_field_into_struct): Add
4286 * tree-inline.h (estimated_stack_frame_size): Remove prototype.
4287 * ipa-inline-analysis.c: Include cfgexpand.h.
4288 * cgraphunit.c: Include tree-nested.h.
4289 * omp-low.c: Likewise.
4290 * tree-parloops.c: Likewise.
4291 * gimple-low.h: Likewise.
4292 * tree-profile.h: Likewise.
4293 * expr.c: Include cfgexpand.h.
4294 * tree-affine.c: Likewise.
4295 * tree-ssa.c: Likewise.
4296 * tree-ssa-loop-im.c: Include trans-mem.h.
4297 * tree-ssa-tail-merge.c: Likewise.
4298 * value-prof.c: Include builtins.h and tree-nested.h.
4299 * tree-into-ssa.c (LABEL): Define here.
4301 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4303 * config/arc/arc.c (arc_predicate_delay_insns): New function.
4304 (pass_data_arc_predicate_delay_insns): New pass_data instance.
4305 (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
4306 (make_pass_arc_predicate_delay_insns): New function.
4307 (arc_init): Register pass_arc_predicate_delay_insns if
4308 flag_delayed_branch is active.
4310 2013-11-16 Joern Rennecke <joern.rennecke@embecosm.com>
4312 * config/arc/constraints.md (Rcq): Simplify register number test.
4314 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4316 * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
4318 2013-11-15 Kaz Kojima <kkojima@gcc.gnu.org>
4320 * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
4323 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
4325 * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
4326 * gimple-pretty-print.c (dump_omp_for): Add case for
4327 GF_OMP_FOR_KIND_CILKSIMD.
4328 * gimple.h (enum gf_mask): Restructure entries to add
4329 GF_OMP_FOR_KIND_CILKSIMD.
4330 * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
4331 (gimplify_omp_for): Handle CILK_SIMD.
4332 (gimplify_expr): Add ccase for CILK_SIMD.
4333 * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
4334 (build_outer_var_ref): Same.
4335 (check_omp_nesting_restrictions): Same.
4336 (lower_rec_input_clauses): Same.
4337 (lower_lastprivate_clauses): Same.
4338 (expand_omp_for): Same.
4339 (execute_expand_omp): Check flag_enable_cilkplus.
4340 (execute_lower_omp): Same.
4341 (diagnose_sb_0): Handle CILK_SIMD.
4342 (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
4343 (setjmp_or_longjmp_p): New.
4344 (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
4345 * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
4346 * tree.def: Add tree code for CILK_SIMD.
4348 2013-11-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4350 * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
4352 (altivec_vperm_<mode>): Revert earlier little endian change.
4353 (*altivec_vperm_<mode>_internal): Remove.
4354 (altivec_vperm_<mode>_uns): Revert earlier little endian change.
4355 (*altivec_vperm_<mode>_uns_internal): Remove.
4356 * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4358 2013-11-15 Jeff Law <law@redhat.com>
4360 * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4361 has_abnormal_or_outgoing_edge. Check for EH edges as well.
4362 * gimple-ssa-isolate-paths.c
4363 (find_implicit_erroneous_behaviour): Corresponding changes.
4364 Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4365 (find_explicit_erroneous_behaviour): Likewise.
4367 2013-11-15 Jeff Law <law@redhat.com>
4369 * ifcvt.c (find_cond_trap): Properly handle case where
4372 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
4374 * configure: Regenerate.
4376 2013-11-15 James Greenhalgh <james.greenhalgh@arm.com>
4378 * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4379 * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4380 where it is incorrect or missing.
4382 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
4384 * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4386 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4387 Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4389 * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4390 pair with a TREE_CODE test and TREE_INT_CST_LOW.
4391 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4393 2013-11-15 Richard Biener <rguenther@suse.de>
4395 PR tree-optimization/50262
4396 * tree-ssa-alias.h (struct pt_solution): Split
4397 vars_contains_global into vars_contains_nonlocal,
4398 vars_contains_escaped and vars_contains_escaped_heap.
4399 * tree-ssa-structalias.c (label_visit): Expand comment.
4400 (handle_lhs_call): Adjust comment.
4401 (set_uids_in_ptset): Set the new flags appropriately.
4402 (pt_solution_set): Adjust.
4403 (pt_solution_set_var): Likewise.
4404 (pt_solution_ior_into): Likewise.
4405 (pt_solution_includes_global): Likewise.
4406 (pt_solutions_intersect_1): Optimize escaped handling.
4407 (compute_points_to_sets): Remove heap variable globalization.
4408 (ipa_escaped_pt): Adjust initializer.
4409 (pass_data_ipa_pta): Do not run TODO_update_ssa.
4410 * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4411 * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4413 2013-11-15 Richard Biener <rguenther@suse.de>
4415 * tree-loop-distribution.c (tree_loop_distribution): Make sure
4416 to distribute all stores.
4418 2013-11-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4420 * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4422 2013-11-15 Joseph Myers <joseph@codesourcery.com>
4424 * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4425 * configure.ac: Determine target_header_dir earlier.
4426 (--with-glibc-version): New configure option.
4427 Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4428 gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4429 * configure: Regenerate.
4430 * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4431 native toolchains for default.
4432 (--with-glibc-version): Document.
4434 2013-11-15 Eric Botcazou <ebotcazou@adacore.com>
4436 * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4438 2013-11-15 Uros Bizjak <ubizjak@gmail.com>
4440 * lto-streamer-in.c (input function): Call cgraph_create_node if
4441 cgraph_get_node failed.
4443 2013-11-14 Olivier Hainque <hainque@adacore.com>
4445 * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4446 defer allocation of DECL_IGNORED_P variables at toplevel unless really
4447 small. Factorize size threshold computation from the existing one.
4448 (expand_used_vars): Refine comment.
4450 2013-11-14 Cong Hou <congh@google.com>
4452 * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4453 address field as it can be obtained from dr. Rename the struct.
4454 * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4455 steps of data references during sort.
4456 (vect_prune_runtime_alias_test_list): Adjust with the change to
4457 struct dr_with_seg_len.
4458 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4459 Adjust with the change to struct dr_with_seg_len.
4461 2013-11-14 Jeff Law <law@redhat.com>
4464 * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4465 * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4466 * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4467 (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4468 edges, then ignore it. If the statement exhibiting erroneous
4469 behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4470 then we can not optimize.
4471 (find_explicit_erroneous_behaviour): Likewise.
4473 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
4475 * gimplify-me.h: New file. Add prototypes.
4476 * gimplify.h: Don't include gimple.h.
4477 (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4478 Relocate from gimple.h.
4479 * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4480 is_gimple_sizepos): Move to gimplify.h.
4481 (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4482 (enum gsi_iterator_update): Move to gimple-iterator.h.
4483 * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4484 * gimplify-me.c: New File.
4485 (force_gimple_operand_1, force_gimple_operand,
4486 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4487 gimple_regimplify_operands): Relocate from gimplify.c.
4488 * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4489 force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4490 gimple_regimplify_operands): Move to gimplify-me.c.
4491 (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4493 * Makefile.in (OBJS): Add gimplify-me.o
4494 * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4496 * cfgloopmanip.c: Likewise.
4497 * cgraphunit.c: Likewise.
4498 * cilk-common.c: Likewise.
4499 * fold-const.c: Likewise.
4500 * function.c: Likewise.
4501 * gimple-expr.c: Likewise.
4502 * gimple-fold.c: Likewise.
4503 * gimple-ssa-strength-reduction.c: Likewise.
4504 * gimple.c: Likewise.
4505 * graphite-clast-to-gimple.c: Likewise.
4506 * graphite-sese-to-poly.c: Likewise.
4507 * ipa-prop.c: Likewise.
4508 * ipa-split.c: Likewise.
4510 * langhooks.c: Likewise.
4511 * omp-low.c: Likewise.
4513 * stor-layout.c: Likewise.
4514 * targhooks.c: Likewise.
4515 * trans-mem.c: Likewise.
4516 * tree-affine.c: Likewise.
4517 * tree-cfg.c: Likewise.
4518 * tree-cfgcleanup.c: Likewise.
4519 * tree-complex.c: Likewise.
4520 * tree-if-conv.c: Likewise.
4521 * tree-inline.c: Likewise.
4522 * tree-loop-distribution.c: Likewise.
4523 * tree-nested.c: Likewise.
4524 * tree-parloops.c: Likewise.
4525 * tree-predcom.c: Likewise.
4526 * tree-profile.c: Likewise.
4527 * tree-scalar-evolution.c: Likewise.
4528 * tree-sra.c: Likewise.
4529 * tree-ssa-address.c: Likewise.
4530 * tree-ssa-ccp.c: Likewise.
4531 * tree-ssa-dce.c: Likewise.
4532 * tree-ssa-forwprop.c: Likewise.
4533 * tree-ssa-ifcombine.c: Likewise.
4534 * tree-ssa-loop-im.c: Likewise.
4535 * tree-ssa-loop-ivopts.c: Likewise.
4536 * tree-ssa-loop-manip.c: Likewise.
4537 * tree-ssa-loop-niter.c: Likewise.
4538 * tree-ssa-loop-prefetch.c: Likewise.
4539 * tree-ssa-loop-unswitch.c: Likewise.
4540 * tree-ssa-math-opts.c: Likewise.
4541 * tree-ssa-phiopt.c: Likewise.
4542 * tree-ssa-phiprop.c: Likewise.
4543 * tree-ssa-pre.c: Likewise.
4544 * tree-ssa-propagate.c: Likewise.
4545 * tree-ssa-reassoc.c: Likewise.
4546 * tree-ssa-sccvn.c: Likewise.
4547 * tree-ssa-strlen.c: Likewise.
4548 * tree-ssa.c: Likewise.
4549 * tree-switch-conversion.c: Likewise.
4550 * tree-tailcall.c: Likewise.
4551 * tree-vect-data-refs.c: Likewise.
4552 * tree-vect-generic.c: Likewise.
4553 * tree-vect-loop-manip.c: Likewise.
4554 * tree-vect-loop.c: Likewise.
4555 * tree-vect-patterns.c: Likewise.
4556 * tree-vect-stmts.c: Likewise.
4559 * value-prof.c: Likewise.
4560 * config/aarch64/aarch64.c: Likewise.
4561 * config/alpha/alpha.c: Likewise.
4562 * config/darwin.c: Likewise.
4563 * config/i386/i386.c: Likewise.
4564 * config/ia64/ia64.c: Likewise.
4565 * config/mep/mep.c: Likewise.
4566 * config/mips/mips.c: Likewise.
4567 * config/rs6000/rs6000.c: Likewise.
4568 * config/s390/s390.c: Likewise.
4569 * config/sh/sh.c: Likewise.
4570 * config/sparc/sparc.c: Likewise.
4571 * config/spu/spu.c: Likewise.
4572 * config/stormy16/stormy16.c: Likewise.
4573 * config/tilegx/tilegx.c: Likewise.
4574 * config/tilepro/tilepro.c: Likewise.
4575 * config/xtensa/xtensa.c: Likewise.
4577 2013-11-14 Diego Novillo <dnovillo@google.com>
4579 * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4581 2013-11-14 Diego Novillo <dnovillo@google.com>
4583 * tree.h: Include fold-const.h.
4584 (aggregate_value_p): Moved to function.h.
4585 (alloca_call_p): Moved to calls.h.
4586 (allocate_struct_function): Moved to function.h.
4587 (apply_tm_attr): Moved to attribs.h.
4588 (array_at_struct_end_p): Moved to expr.h.
4589 (array_ref_element_size): Moved to tree-dfa.h.
4590 (array_ref_low_bound): Moved to tree-dfa.h.
4591 (array_ref_up_bound): Moved to tree.h.
4592 (assemble_alias): Moved to cgraph.h.
4593 (bit_from_pos): Moved to stor-layout.h.
4594 (build_addr): Moved to tree-nested.h.
4595 (build_duplicate_type): Moved to tree-inline.h.
4596 (build_fold_addr_expr): Moved to fold-const.h.
4597 (build_fold_addr_expr_with_type): Moved to fold-const.h.
4598 (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4599 (build_fold_indirect_ref): Moved to fold-const.h.
4600 (build_fold_indirect_ref_loc): Moved to fold-const.h.
4601 (build_personality_function): Moved to tree.h.
4602 (build_range_check): Moved to fold-const.h.
4603 (build_simple_mem_ref): Moved to fold-const.h.
4604 (build_simple_mem_ref_loc): Moved to fold-const.h.
4605 (build_tm_abort_call): Moved to trans-mem.h.
4606 (byte_from_pos): Moved to stor-layout.h.
4607 (call_expr_flags): Moved to calls.h.
4608 (can_move_by_pieces): Moved to expr.h.
4609 (categorize_ctor_elements): Moved to expr.h.
4610 (change_decl_assembler_name): Moved to gcc-symtab.h.
4611 (combine_comparisons): Moved to fold-const.h.
4612 (complete_ctor_at_level_p): Moved to tree.h.
4613 (component_ref_field_offset): Moved to tree-dfa.h.
4614 (compute_builtin_object_size): Moved to tree-object-size.h.
4615 (compute_record_mode): Moved to stor-layout.h.
4616 (constant_boolean_node): Moved to fold-const.h.
4617 (constructor_static_from_elts_p): Moved to varasm.h.
4618 (cxx11_attribute_p): Moved to attribs.h.
4619 (debug_body): Moved to print-tree.h.
4620 (debug_find_tree): Moved to tree-inline.h.
4621 (debug_fold_checksum): Moved to fold-const.h.
4622 (debug_head): Moved to print-tree.h.
4623 (debug_head): Moved to print-tree.h.
4624 (debug_raw): Moved to print-tree.h.
4625 (debug_tree): Moved to print-tree.h.
4626 (debug_vec_tree): Moved to print-tree.h.
4627 (debug_verbose): Moved to print-tree.h.
4628 (debug_verbose): Moved to print-tree.h.
4629 (decl_attributes): Moved to attribs.h.
4630 (decl_binds_to_current_def_p): Moved to varasm.h.
4631 (decl_default_tls_model): Moved to varasm.h.
4632 (decl_replaceable_p): Moved to varasm.h.
4633 (div_if_zero_remainder): Moved to fold-const.h.
4634 (double_int mem_ref_offset): Moved to fold-const.h.
4635 (dump_addr): Moved to print-tree.h.
4636 (element_precision): Moved to machmode.h.
4637 (expand_dummy_function_end): Moved to function.h.
4638 (expand_function_end): Moved to function.h.
4639 (expand_function_start): Moved to function.h.
4640 (expand_label): Moved to stmt.h.
4641 (expr_first): Moved to tree-iterator.h.
4642 (expr_last): Moved to tree-iterator.h.
4643 (finalize_size_functions): Moved to stor-layout.h.
4644 (finish_builtin_struct): Moved to stor-layout.h.
4645 (finish_record_layout): Moved to stor-layout.h.
4646 (fixup_signed_type): Moved to stor-layout.h.
4647 (fixup_unsigned_type): Moved to stor-layout.h.
4648 (flags_from_decl_or_type): Moved to calls.h.
4649 (fold): Moved to fold-const.h.
4650 (fold_abs_const): Moved to fold-const.h.
4651 (fold_binary): Moved to fold-const.h.
4652 (fold_binary_loc): Moved to fold-const.h.
4653 (fold_binary_to_constant): Moved to fold-const.h.
4654 (fold_build1): Moved to fold-const.h.
4655 (fold_build1_initializer_loc): Moved to fold-const.h.
4656 (fold_build1_loc): Moved to fold-const.h.
4657 (fold_build1_stat_loc): Moved to fold-const.h.
4658 (fold_build2): Moved to fold-const.h.
4659 (fold_build2_initializer_loc): Moved to fold-const.h.
4660 (fold_build2_loc): Moved to fold-const.h.
4661 (fold_build2_stat_loc): Moved to fold-const.h.
4662 (fold_build3): Moved to fold-const.h.
4663 (fold_build3_loc): Moved to fold-const.h.
4664 (fold_build3_stat_loc): Moved to fold-const.h.
4665 (fold_build_call_array): Moved to fold-const.h.
4666 (fold_build_call_array_initializer): Moved to fold-const.h.
4667 (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4668 (fold_build_call_array_loc): Moved to fold-const.h.
4669 (fold_build_cleanup_point_expr): Moved to fold-const.h.
4670 (fold_convert): Moved to fold-const.h.
4671 (fold_convert_loc): Moved to fold-const.h.
4672 (fold_convertible_p): Moved to fold-const.h.
4673 (fold_defer_overflow_warnings): Moved to fold-const.h.
4674 (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4675 (fold_fma): Moved to fold-const.h.
4676 (fold_ignored_result): Moved to fold-const.h.
4677 (fold_indirect_ref): Moved to fold-const.h.
4678 (fold_indirect_ref_1): Moved to fold-const.h.
4679 (fold_indirect_ref_loc): Moved to fold-const.h.
4680 (fold_read_from_constant_string): Moved to fold-const.h.
4681 (fold_real_zero_addition_p): Moved to fold-const.h.
4682 (fold_single_bit_test): Moved to fold-const.h.
4683 (fold_strip_sign_ops): Moved to fold-const.h.
4684 (fold_ternary): Moved to fold-const.h.
4685 (fold_ternary_loc): Moved to fold-const.h.
4686 (fold_unary): Moved to tree-data-ref.h.
4687 (fold_unary_ignore_overflow): Moved to fold-const.h.
4688 (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4689 (fold_unary_loc): Moved to fold-const.h.
4690 (fold_unary_to_constant): Moved to fold-const.h.
4691 (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4692 (fold_undefer_overflow_warnings): Moved to fold-const.h.
4693 (folding_initializer): Moved to fold-const.h.
4694 (free_temp_slots): Moved to function.h.
4695 (generate_setjmp_warnings): Moved to function.h.
4696 (get_attribute_name): Moved to attribs.h.
4697 (get_identifier): Moved to stringpool.h.
4698 (get_identifier_with_length): Moved to stringpool.h.
4699 (get_inner_reference): Moved to tree.h.
4700 (gimple_alloca_call_p): Moved to calls.h.
4701 (gimplify_parameters): Moved to function.h.
4702 (highest_pow2_factor): Moved to expr.h.
4703 (indent_to): Moved to print-tree.h.
4704 (init_attributes): Moved to attribs.h.
4705 (init_dummy_function_start): Moved to function.h.
4706 (init_function_start): Moved to function.h.
4707 (init_inline_once): Moved to tree-inline.h.
4708 (init_object_sizes): Moved to tree-object-size.h.
4709 (init_temp_slots): Moved to function.h.
4710 (init_tree_optimization_optabs): Moved to optabs.h.
4711 (initialize_sizetypes): Moved to stor-layout.h.
4712 (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4713 (initializer_constant_valid_p): Moved to varasm.h.
4714 (int_const_binop): Moved to fold-const.h.
4715 (internal_reference_types): Moved to stor-layout.h.
4716 (invert_tree_comparison): Moved to fold-const.h.
4717 (invert_truthvalue): Moved to fold-const.h.
4718 (invert_truthvalue_loc): Moved to fold-const.h.
4719 (is_tm_ending_fndecl): Moved to trans-mem.h.
4720 (is_tm_may_cancel_outer): Moved to trans-mem.h.
4721 (is_tm_pure): Moved to trans-mem.h.
4722 (is_tm_safe): Moved to trans-mem.h.
4723 (layout_decl): Moved to stor-layout.h.
4724 (layout_type): Moved to stor-layout.h.
4725 (lookup_attribute_spec): Moved to attribs.h.
4726 (make_accum_type): Moved to stor-layout.h.
4727 (make_decl_one_only): Moved to varasm.h.
4728 (make_decl_rtl): Moved to tree.h.
4729 (make_decl_rtl_for_debug): Moved to varasm.h.
4730 (make_fract_type): Moved to stor-layout.h.
4731 (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4732 (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4733 (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4734 (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4735 (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4736 (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4737 (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4738 (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4739 (make_range): Moved to fold-const.h.
4740 (make_range_step): Moved to fold-const.h.
4741 (make_sat_signed_accum_type): Moved to stor-layout.h.
4742 (make_sat_signed_fract_type): Moved to stor-layout.h.
4743 (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4744 (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4745 (make_signed_accum_type): Moved to stor-layout.h.
4746 (make_signed_fract_type): Moved to stor-layout.h.
4747 (make_signed_type): Moved to stor-layout.h.
4748 (make_unsigned_accum_type): Moved to stor-layout.h.
4749 (make_unsigned_fract_type): Moved to stor-layout.h.
4750 (make_unsigned_type): Moved to stor-layout.h.
4751 (mark_decl_referenced): Moved to varasm.h.
4752 (mark_referenced): Moved to varasm.h.
4753 (may_negate_without_overflow_p): Moved to fold-const.h.
4754 (maybe_get_identifier): Moved to stringpool.h.
4755 (merge_ranges): Moved to fold-const.h.
4756 (merge_weak): Moved to varasm.h.
4757 (mode_for_size_tree): Moved to stor-layout.h.
4758 (multiple_of_p): Moved to fold-const.h.
4759 (must_pass_in_stack_var_size): Moved to calls.h.
4760 (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4761 (native_encode_expr): Moved to fold-const.h.
4762 (native_interpret_expr): Moved to fold-const.h.
4763 (non_lvalue): Moved to fold-const.h.
4764 (non_lvalue_loc): Moved to fold-const.h.
4765 (normalize_offset): Moved to stor-layout.h.
4766 (normalize_rli): Moved to stor-layout.h.
4767 (notice_global_symbol): Moved to varasm.h.
4768 (omit_one_operand): Moved to fold-const.h.
4769 (omit_one_operand_loc): Moved to fold-const.h.
4770 (omit_two_operands): Moved to fold-const.h.
4771 (omit_two_operands_loc): Moved to fold-const.h.
4772 (operand_equal_p): Moved to tree-data-ref.h.
4773 (parse_input_constraint): Moved to stmt.h.
4774 (parse_output_constraint): Moved to stmt.h.
4775 (place_field): Moved to stor-layout.h.
4776 (pop_function_context): Moved to function.h.
4777 (pop_temp_slots): Moved to function.h.
4778 (pos_from_bit): Moved to stor-layout.h.
4779 (preserve_temp_slots): Moved to function.h.
4780 (print_node): Moved to print-tree.h.
4781 (print_node_brief): Moved to print-tree.h.
4782 (print_rtl): Moved to rtl.h.
4783 (process_pending_assemble_externals): Moved to varasm.h.
4784 (ptr_difference_const): Moved to fold-const.h.
4785 (push_function_context): Moved to function.h.
4786 (push_struct_function): Moved to function.h.
4787 (push_temp_slots): Moved to function.h.
4788 (record_tm_replacement): Moved to trans-mem.h.
4789 (relayout_decl): Moved to stor-layout.h.
4790 (resolve_asm_operand_names): Moved to stmt.h.
4791 (resolve_unique_section): Moved to varasm.h.
4792 (rli_size_so_far): Moved to stor-layout.h.
4793 (rli_size_unit_so_far): Moved to stor-layout.h.
4794 (round_down): Moved to fold-const.h.
4795 (round_down_loc): Moved to fold-const.h.
4796 (round_up): Moved to fold-const.h.
4797 (round_up_loc): Moved to fold-const.h.
4798 (set_decl_incoming_rtl): Moved to emit-rtl.h.
4799 (set_decl_rtl): Moved to tree.h.
4800 (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4801 (set_user_assembler_name): Moved to varasm.h.
4802 (setjmp_call_p): Moved to calls.h.
4803 (size_binop): Moved to fold-const.h.
4804 (size_binop_loc): Moved to fold-const.h.
4805 (size_diffop): Moved to fold-const.h.
4806 (size_diffop_loc): Moved to fold-const.h.
4807 (size_int_kind): Moved to fold-const.h.
4808 (stack_protect_epilogue): Moved to function.h.
4809 (start_record_layout): Moved to stor-layout.h.
4810 (supports_one_only): Moved to varasm.h.
4811 (swap_tree_comparison): Moved to fold-const.h.
4812 (tm_malloc_replacement): Moved to trans-mem.h.
4813 (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4814 (tree build_invariant_address): Moved to fold-const.h.
4815 (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4816 (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4817 (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4818 (tree_expr_nonnegative_p): Moved to fold-const.h.
4819 (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4820 (tree_output_constant_def): Moved to varasm.h.
4821 (tree_overlaps_hard_reg_set): Moved to stmt.h.
4822 (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4823 (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4824 (tree_swap_operands_p): Moved to fold-const.h.
4825 (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4826 (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4827 (update_alignment_for_field): Moved to stor-layout.h.
4828 (use_register_for_decl): Moved to function.h.
4829 (variable_size): Moved to rtl.h.
4830 (vector_type_mode): Moved to stor-layout.h.
4831 * cgraph.h: Corresponding changes.
4832 * emit-rtl.h: Corresponding changes.
4833 * expr.h: Corresponding changes.
4834 * function.h: Corresponding changes.
4835 * optabs.h: Corresponding changes.
4836 * trans-mem.h: Corresponding changes.
4837 Protect against multiple inclusion.
4838 * tree-inline.h: Corresponding changes.
4839 * tree-iterator.h: Corresponding changes.
4840 * tree-dfa.h: Include expr.h.
4841 * tree-ssanames.h: Include stringpool.h.
4842 * attribs.h: New file.
4843 * calls.h: New file.
4844 * fold-const.h: New file.
4845 * gcc-symtab.h: New file.
4846 * print-rtl.h: New file.
4847 * print-tree.h: New file.
4849 * stor-layout.h: New file.
4850 * strinpool.h: New file.
4851 * tree-nested.h: New file
4852 * tree-object-size.h: New file.
4853 * varasm.h: New file.
4855 2013-11-14 Diego Novillo <dnovillo@google.com>
4857 * alias.c: Include varasm.h.
4859 * asan.c: Include calls.h.
4860 Include stor-layout.h.
4862 * attribs.c: Include stringpool.h.
4864 Include stor-layout.h.
4865 * builtins.c: Include stringpool.h.
4866 Include stor-layout.h.
4869 Include tree-object-size.h.
4870 * calls.c: Include stor-layout.h.
4872 Include stringpool.h.
4874 * cfgexpand.c: Include stringpool.h.
4876 Include stor-layout.h.
4878 Include print-tree.h.
4879 * cgraph.c: Include varasm.h.
4881 Include print-tree.h.
4882 * cgraphclones.c: Include stringpool.h.
4885 Move inclusion of rtl.h earlier in the file.
4886 * cgraphunit.c: Include varasm.h.
4887 Include stor-layout.h.
4888 Include stringpool.h.
4889 * cilk-common.c: Include stringpool.h.
4890 Include stor-layout.h.
4891 * combine.c: Include stor-layout.h.
4892 * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4893 Include stringpool.h.
4895 * config/aarch64/aarch64.c: Include stringpool.h.
4896 Include stor-layout.h.
4899 * config/alpha/alpha.c: Include stor-layout.h.
4902 * config/arc/arc.c: Include varasm.h.
4903 Include stor-layout.h.
4904 Include stringpool.h.
4906 * config/arm/arm.c: Include stringpool.h.
4907 Include stor-layout.h.
4910 * config/avr/avr-c.c: Include stor-layout.h.
4911 * config/avr/avr-log.c: Include print-tree.h.
4912 * config/avr/avr.c: Include print-tree.h.
4914 Include stor-layout.h.
4915 Include stringpool.h.
4916 * config/bfin/bfin.c: Include varasm.h.
4918 * config/c6x/c6x.c: Include stor-layout.h.
4921 Include stringpool.h.
4922 * config/cr16/cr16.c: Include stor-layout.h.
4924 * config/cris/cris.c: Include varasm.h.
4925 Include stor-layout.h.
4928 * config/darwin.c: Include stringpool.h.
4930 Include stor-layout.h.
4931 * config/epiphany/epiphany.c: Include stor-layout.h.
4934 Include stringpool.h.
4935 * config/fr30/fr30.c: Include stor-layout.h.
4937 * config/frv/frv.c: Include varasm.h.
4938 Include stor-layout.h.
4939 Include stringpool.h.
4940 * config/h8300/h8300.c: Include stor-layout.h.
4943 Include stringpool.h.
4944 * config/i386/i386.c: Include stringpool.h.
4947 Include stor-layout.h.
4949 * config/i386/winnt-cxx.c: Include stringpool.h.
4951 * config/i386/winnt.c: Include stringpool.h.
4953 * config/ia64/ia64-c.c: Include stringpool.h.
4954 * config/ia64/ia64.c: Include stringpool.h.
4955 Include stor-layout.h.
4958 * config/iq2000/iq2000.c: Include stor-layout.h.
4961 * config/lm32/lm32.c: Include calls.h.
4962 * config/m32c/m32c.c: Include stor-layout.h.
4965 * config/m32r/m32r.c: Include stor-layout.h.
4967 Include stringpool.h.
4969 * config/m68k/m68k.c: Include calls.h.
4970 Include stor-layout.h.
4972 * config/mcore/mcore.c: Include stor-layout.h.
4974 Include stringpool.h.
4976 * config/mep/mep.c: Include varasm.h.
4978 Include stringpool.h.
4979 Include stor-layout.h.
4980 * config/microblaze/microblaze.c: Include varasm.h.
4981 Include stor-layout.h.
4983 * config/mips/mips.c: Include varasm.h.
4984 Include stringpool.h.
4985 Include stor-layout.h.
4987 * config/mmix/mmix.c: Include varasm.h.
4988 Include stor-layout.h.
4990 * config/mn10300/mn10300.c: Include stor-layout.h.
4993 * config/moxie/moxie.c: Include stor-layout.h.
4996 * config/msp430/msp430.c: Include stor-layout.h.
4998 * config/nds32/nds32.c: Include stor-layout.h.
5001 * config/pa/pa.c: Include stor-layout.h.
5002 Include stringpool.h.
5005 * config/pdp11/pdp11.c: Include stor-layout.h.
5008 * config/picochip/picochip.c: Include calls.h.
5009 Include stor-layout.h.
5010 Include stringpool.h.
5012 * config/rl78/rl78.c: Include varasm.h.
5013 Include stor-layout.h.
5015 * config/rs6000/rs6000-c.c: Include stor-layout.h.
5016 Include stringpool.h.
5017 * config/rs6000/rs6000.c: Include stringpool.h.
5018 Include stor-layout.h.
5020 Include print-tree.h.
5022 * config/rx/rx.c: Include varasm.h.
5023 Include stor-layout.h.
5025 * config/s390/s390.c: Include print-tree.h.
5026 Include stringpool.h.
5027 Include stor-layout.h.
5030 * config/score/score.c: Include stringpool.h.
5033 Include stor-layout.h.
5034 * config/sh/sh-c.c: Include stringpool.h.
5035 Include attribs.h.h.
5036 * config/sh/sh.c: Include stringpool.h.
5037 Include stor-layout.h.
5040 * config/sol2-c.c: Include stringpool.h.
5042 * config/sol2-cxx.c: Include stringpool.h.
5043 * config/sol2.c: Include stringpool.h.
5045 * config/sparc/sparc.c: Include stringpool.h.
5046 Include stor-layout.h.
5049 * config/spu/spu-c.c: Include stringpool.h.
5050 * config/spu/spu.c: Include stringpool.h.
5051 Include stor-layout.h.
5054 * config/stormy16/stormy16.c: Include stringpool.h.
5055 Include stor-layout.h.
5058 * config/tilegx/tilegx.c: Include stringpool.h.
5059 Include stor-layout.h.
5062 * config/tilepro/tilepro.c: Include stringpool.h.
5063 Include stor-layout.h.
5066 * config/v850/v850-c.c: Include stringpool.h.
5068 * config/v850/v850.c: Include stringpool.h.
5069 Include stor-layout.h.
5072 * config/vax/vax.c: Include calls.h.
5074 * config/vms/vms.c: Include stringpool.h.
5075 * config/vxworks.c: Include stringpool.h.
5076 * config/xtensa/xtensa.c: Include stringpool.h.
5077 Include stor-layout.h.
5080 * convert.c: Include stor-layout.h.
5081 * coverage.c: Include stringpool.h.
5082 Include stor-layout.h.
5083 * dbxout.c: Include varasm.h.
5084 Include stor-layout.h.
5085 * dojump.c: Include stor-layout.h.
5086 * dse.c: Include stor-layout.h.
5087 * dwarf2asm.c: Include stringpool.h.
5089 * dwarf2cfi.c: Include stor-layout.h.
5090 * dwarf2out.c: Include rtl.h.
5091 Include stringpool.h.
5092 Include stor-layout.h.
5096 Move inclusion of rtl.h earlier in the file.
5097 * emit-rtl.c: Include varasm.h.
5098 * except.c: Include stringpool.h.
5099 Include stor-layout.h.
5100 * explow.c: Include stor-layout.h.
5101 * expmed.c: Include stor-layout.h.
5102 * expr.c: Include stringpool.h.
5103 Include stor-layout.h.
5106 * final.c: Include varasm.h.
5107 * fold-const.c: Include stor-layout.h.
5109 Include tree-iterator.h.
5110 * function.c: Include stor-layout.h.
5112 Include stringpool.h.
5113 * genattrtab.c (write_header): Emit includes for varasm.h,
5114 stor-layout.h and calls.h.
5115 * genautomata.c (main): Likewise.
5116 * genemit.c: Likewise.
5117 * genopinit.c: Likewise.
5118 * genoutput.c (output_prologue): Likewise.
5119 * genpeep.c: Likewise.
5120 * genpreds.c (write_insn_preds_c): Likewise.
5121 * gengtype.c (open_base_files): Add stringpool.h.
5122 * gimple-expr.c: Include stringpool.h.
5123 Include stor-layout.h.
5124 * gimple-fold.c: Include stringpool.h.
5127 Include stor-layout.h.
5128 * gimple-low.c: Include tree-nested.h.
5130 * gimple-pretty-print.c: Include stringpool.h.
5131 * gimple-ssa-strength-reduction.c: Include stor-layout.h.
5133 * gimple-walk.c: Include stmt.h.
5134 * gimple.c: Include calls.h.
5136 Include stor-layout.h.
5137 * gimplify.c: Include stringpool.h.
5140 Include stor-layout.h.
5142 Include print-tree.h.
5144 * gimplify-me.c: Include stmt.h
5145 Include stor-layout.h
5146 * internal-fn.c: Include stor-layout.h.
5147 * ipa-devirt.c: Include print-tree.h.
5149 * ipa-inline-analysis.c: Include stor-layout.h.
5150 Include stringpool.h.
5151 Include print-tree.h.
5152 * ipa-inline.c: Include trans-mem.h.
5154 * ipa-prop.c: Include expr.h.
5155 Include stor-layout.h.
5156 Include print-tree.h.
5157 * ipa-pure-const.c: Include print-tree.h.
5159 * ipa-reference.c: Include calls.h.
5160 * ipa-split.c: Include stringpool.h.
5163 * ipa.c: Include calls.h.
5164 Include stringpool.h.
5165 * langhooks.c: Include stringpool.h.
5167 * lto-cgraph.c: Include stringpool.h.
5168 * lto-streamer-in.c: Include stringpool.h.
5169 * lto-streamer-out.c: Include stor-layout.h.
5170 Include stringpool.h.
5171 * omp-low.c: Include stringpool.h.
5172 Include stor-layout.h.
5174 * optabs.c: Include stor-layout.h.
5175 Include stringpool.h.
5177 * passes.c: Include varasm.h.
5178 * predict.c: Include calls.h.
5179 * print-rtl.c: Include print-tree.h.
5180 * print-tree.c: Include varasm.h.
5181 Include print-rtl.h.
5182 Include stor-layout.h.
5183 * realmpfr.c: Include stor-layout.h.
5184 * reg-stack.c: Include varasm.h.
5185 * sdbout.c: Include varasm.h.
5186 Include stor-layout.h.
5187 * simplify-rtx.c: Include varasm.h.
5188 * stmt.c: Include varasm.h.
5189 Include stor-layout.h.
5190 * stor-layout.c: Include stor-layout.h.
5191 Include stringpool.h.
5193 Include print-tree.h.
5194 * symtab.c: Include rtl.h.
5195 Include print-tree.h.
5199 * targhooks.c: Include stor-layout.h.
5201 * toplev.c: Include varasm.h.
5202 Include tree-inline.h.
5203 * trans-mem.c: Include calls.h.
5207 * tree-affine.c: Include expr.h.
5208 * tree-browser.c: Include print-tree.h.
5209 * tree-call-cdce.c: Include stor-layout.h.
5210 * tree-cfg.c: Include trans-mem.h.
5211 Include stor-layout.h.
5212 Include print-tree.h.
5213 * tree-complex.c: Include stor-layout.h.
5214 * tree-data-ref.c: Include expr.h.
5215 * tree-dfa.c: Include stor-layout.h.
5216 * tree-eh.c: Include expr.h.
5218 * tree-emutls.c: Include stor-layout.h.
5220 * tree-if-conv.c: Include stor-layout.h.
5221 * tree-inline.c: Include stor-layout.h.
5223 * tree-loop-distribution.c: Include stor-layout.h.
5224 * tree-nested.c: Include stringpool.h.
5225 Include stor-layout.h.
5226 * tree-object-size.c: Include tree-object-size.h.
5227 * tree-outof-ssa.c: Include stor-layout.h.
5228 * tree-parloops.c: Include stor-layout.h.
5229 Include tree-nested.h.
5230 * tree-pretty-print.c: Include stor-layout.h.
5232 * tree-profile.c: Include varasm.h.
5233 Include tree-nested.h.
5234 * tree-scalar-evolution.c: Include expr.h.
5235 * tree-sra.c: Include stor-layout.h.
5236 * tree-ssa-address.c: Include stor-layout.h.
5237 * tree-ssa-ccp.c: Include stor-layout.h.
5238 * tree-ssa-dce.c: Include calls.h.
5239 * tree-ssa-dom.c: Include stor-layout.h.
5240 * tree-ssa-forwprop.c: Include stor-layout.h.
5241 * tree-ssa-ifcombine.c: Include stor-layout.h.
5242 * tree-ssa-loop-ivopts.c: Include stor-layout.h.
5243 * tree-ssa-loop-niter.c: Include calls.h.
5245 * tree-ssa-loop-prefetch.c: Include stor-layout.h.
5246 * tree-ssa-math-opts.c: Include stor-layout.h.
5247 * tree-ssa-operands.c: Include stmt.h.
5248 Include print-tree.h.
5249 * tree-ssa-phiopt.c: Include stor-layout.h.
5250 * tree-ssa-reassoc.c: Include stor-layout.h.
5251 * tree-ssa-sccvn.c: Include stor-layout.h.
5252 * tree-ssa-sink.c: Include stor-layout.h.
5253 * tree-ssa-strlen.c: Include stor-layout.h.
5254 * tree-ssa-structalias.c: Include stor-layout.h.
5256 * tree-ssa-tail-merge.c: Include stor-layout.h.
5257 Include trans-mem.h.
5258 * tree-ssa-uncprop.c: Include stor-layout.h.
5259 * tree-ssa.c: Include stor-layout.h.
5260 * tree-ssanames.c: Include stor-layout.h.
5261 * tree-streamer-in.c: Include stringpool.h.
5262 * tree-streamer-out.c: Include stor-layout.h.
5263 * tree-switch-conversion.c: Include varasm.h.
5264 Include stor-layout.h.
5265 * tree-tailcall.c: Include stor-layout.h.
5266 * tree-vect-data-refs.c: Include stor-layout.h.
5267 * tree-vect-generic.c: Include stor-layout.h.
5268 * tree-vect-loop.c: Include stor-layout.h.
5269 * tree-vect-patterns.c: Include stor-layout.h.
5270 * tree-vect-slp.c: Include stor-layout.h.
5271 * tree-vect-stmts.c: Include stor-layout.h.
5272 * tree-vectorizer.c: Include stor-layout.h.
5273 * tree-vrp.c: Include stor-layout.h.
5275 * tree.c: Include stor-layout.h.
5279 * tsan.c: Include expr.h.
5280 * ubsan.c: Include stor-layout.h.
5281 Include stringpool.h.
5282 * value-prof.c: Include tree-nested.h.
5284 * var-tracking.c: Include varasm.h.
5285 Include stor-layout.h.
5286 * varasm.c: Include stor-layout.h.
5287 Include stringpool.h.
5288 Include gcc-symtab.h.
5290 * varpool.c: Include varasm.h.
5291 * vmsdbgout.c: Include varasm.h.
5292 * xcoffout.c: Include varasm.h.
5294 2013-11-14 Joern Rennecke <joern.rennecke@embecosm.com>
5296 * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
5299 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5301 * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
5303 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5304 Alan Modra <amodra@gmail.com>
5306 * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
5307 (RS6000_SAVE_TOC): Remove.
5308 (RS6000_TOC_SAVE_SLOT): New macro.
5309 * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
5310 (rs6000_parm_start): Use it.
5311 (rs6000_function_arg_advance_1): Likewise.
5312 (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
5313 (rs6000_emit_epilogue): Likewise.
5314 (rs6000_call_aix): Likewise.
5315 (rs6000_output_function_prologue): Do not save/restore r11
5316 around calling _mcount for ABI_ELFv2.
5318 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5319 Alan Modra <amodra@gmail.com>
5321 * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
5323 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
5324 (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
5325 * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
5326 (rs6000_function_parms_need_stack): Likewise.
5327 (rs6000_reg_parm_stack_space): Likewise.
5328 (rs6000_function_arg): Do not replace BLKmode by Pmode when
5329 returning a register argument.
5331 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5332 Michael Gschwind <mkg@us.ibm.com>
5334 * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
5335 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5336 (FUNCTION_VALUE_REGNO_P): Use them.
5337 * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
5338 (rs6000_return_in_msb): New function.
5339 (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
5340 Handle aggregates of up to 16 bytes for ELFv2.
5341 (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
5343 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5344 Michael Gschwind <mkg@us.ibm.com>
5346 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5347 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5348 (rs6000_discover_homogeneous_aggregate): Likewise.
5349 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5350 (rs6000_function_arg_advance_1): Likewise.
5351 (rs6000_function_arg): Likewise.
5352 (rs6000_arg_partial_bytes): Likewise.
5353 (rs6000_psave_function_arg): Handle BLKmode arguments.
5355 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5356 Michael Gschwind <mkg@us.ibm.com>
5358 * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5359 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5360 (rs6000_discover_homogeneous_aggregate): Likewise.
5361 (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5362 (rs6000_function_arg_advance_1): Likewise.
5363 (rs6000_function_arg): Likewise.
5364 (rs6000_arg_partial_bytes): Likewise.
5365 (rs6000_psave_function_arg): Handle BLKmode arguments.
5367 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5369 * config/rs6000/rs6000.c (machine_function): New member
5371 (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5372 (rs6000_output_mi_thunk): Set r2_setup_needed.
5373 (rs6000_output_function_prologue): Output global entry point
5374 prologue and local entry point marker if needed for ABI_ELFv2.
5375 Output -mprofile-kernel code here.
5376 (output_function_profiler): Do not output -mprofile-kernel
5377 code here; moved to rs6000_output_function_prologue.
5378 (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5380 (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5381 (rs6000_output_function_entry): Likewise.
5382 (rs6000_assemble_integer): Likewise.
5383 (rs6000_elf_encode_section_info): Likewise.
5384 (rs6000_elf_declare_function_name): Do not create dot symbols
5385 or .opd section for ABI_ELFv2.
5387 (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5388 (rs6000_trampoline_init): Likewise.
5389 (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5391 (rs6000_call_aix): Handle ELFv2 indirect calls. Do not check
5392 for function descriptors in ABI_ELFv2.
5394 * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5395 on ABI_AIX only, not ABI_ELFv2.
5396 ("*call_value_indirect_aix<mode>"): Likewise.
5397 ("*call_indirect_elfv2<mode>"): New pattern.
5398 ("*call_value_indirect_elfv2<mode>"): Likewise.
5400 * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5401 check for function descriptors in ABI_ELFv2.
5402 ("current_file_function_operand"): Likewise.
5404 * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5406 (FUNC_NAME): Define ELFv2 variant.
5407 (JUMP_TARGET): Likewise.
5408 (FUNC_START): Likewise.
5409 (HIDDEN_FUNC): Likewise.
5410 (FUNC_END): Likeiwse.
5412 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5414 * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5415 and --with-abi=elfv2.
5416 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5417 * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5418 (mabi=elfv2): Likewise.
5419 * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5420 * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5422 (ELFv2_ABI_CHECK): New macro.
5423 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5424 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5425 (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5426 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5427 _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5429 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5430 (debug_stack_info): Likewise.
5431 (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5432 (rs6000_legitimize_tls_address): Likewise.
5433 (rs6000_conditional_register_usage): Likewise.
5434 (rs6000_emit_move): Likewise.
5435 (init_cumulative_args): Likewise.
5436 (rs6000_function_arg_advance_1): Likewise.
5437 (rs6000_function_arg): Likewise.
5438 (rs6000_arg_partial_bytes): Likewise.
5439 (rs6000_output_function_entry): Likewise.
5440 (rs6000_assemble_integer): Likewise.
5441 (rs6000_savres_strategy): Likewise.
5442 (rs6000_stack_info): Likewise.
5443 (rs6000_function_ok_for_sibcall): Likewise.
5444 (rs6000_emit_load_toc_table): Likewise.
5445 (rs6000_savres_routine_name): Likewise.
5446 (ptr_regno_for_savres): Likewise.
5447 (rs6000_emit_prologue): Likewise.
5448 (rs6000_emit_epilogue): Likewise.
5449 (rs6000_output_function_epilogue): Likewise.
5450 (output_profile_hook): Likewise.
5451 (output_function_profiler): Likewise.
5452 (rs6000_trampoline_size): Likewise.
5453 (rs6000_trampoline_init): Likewise.
5454 (rs6000_elf_output_toc_section_asm_op): Likewise.
5455 (rs6000_elf_encode_section_info): Likewise.
5456 (rs6000_elf_reloc_rw_mask): Likewise.
5457 (rs6000_elf_declare_function_name): Likewise.
5458 (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5459 except that rs6000_compat_align_parm is always assumed false.
5460 (rs6000_gimplify_va_arg): Likewise.
5461 (rs6000_call_aix): Update comment.
5462 (rs6000_sibcall_aix): Likewise.
5463 * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5464 Treat ABI_ELFv2 the same as ABI_AIX.
5465 ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5466 ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5467 ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5468 ("load_toc_aix_si"): Likewise.
5469 ("load_toc_aix_di"): Likewise.
5471 ("call_value"): Likewise.
5472 ("*call_local_aix<mode>"): Likewise.
5473 ("*call_value_local_aix<mode>"): Likewise.
5474 ("*call_nonlocal_aix<mode>"): Likewise.
5475 ("*call_value_nonlocal_aix<mode>"): Likewise.
5476 ("*call_indirect_aix<mode>"): Likewise.
5477 ("*call_value_indirect_aix<mode>"): Likewise.
5478 ("sibcall"): Likewise.
5479 ("sibcall_value"): Likewise.
5480 ("*sibcall_aix<mode>"): Likewise.
5481 ("*sibcall_value_aix<mode>"): Likewise.
5482 * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5483 ("current_file_function_operand"): Likewise.
5485 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5487 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5488 by making use of the fact that for vector / floating point arguments
5489 passed both in VRs/FPRs and in the fixed parameter area, the partial
5490 bytes mechanism is in fact not used.
5492 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5494 * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5495 (rs6000_finish_function_arg): Likewise.
5496 (rs6000_function_arg): Use rs6000_psave_function_arg and
5497 rs6000_finish_function_arg to handle both vector and floating
5498 point arguments that are also passed in GPRs / the stack.
5500 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5502 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5503 (USE_ALTIVEC_FOR_ARG_P): Likewise.
5504 (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5505 (rs6000_function_arg_advance_1):Likewise.
5506 (rs6000_darwin64_record_arg_recurse): Likewise.
5507 (rs6000_function_arg): Likewise.
5508 (rs6000_arg_partial_bytes): Likewise.
5510 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5512 * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5513 "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5514 (rs6000_savres_strategy): Likewise.
5515 (rs6000_return_addr): Likewise.
5516 (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5517 testing for ABI_V4 (since ABI_DARWIN is impossible here).
5518 (rs6000_emit_prologue): Likewise.
5519 (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5520 (rs6000_elf_declare_function_name): Remove duplicated test.
5521 * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5522 for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5523 ("load_toc_v4_PIC_1_normal"): Likewise.
5524 ("load_toc_v4_PIC_1_476"): Likewise.
5525 ("load_toc_v4_PIC_1b"): Likewise.
5526 ("load_toc_v4_PIC_1b_normal"): Likewise.
5527 ("load_toc_v4_PIC_1b_476"): Likewise.
5528 ("load_toc_v4_PIC_2"): Likewise.
5529 ("load_toc_v4_PIC_3b"): Likewise.
5530 ("load_toc_v4_PIC_3c"): Likewise.
5531 * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5532 (RS6000_SAVE_AREA): Likewise.
5533 (FP_ARG_MAX_REG): Likewise.
5534 (RETURN_ADDRESS_OFFSET): Likewise.
5535 * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5537 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5538 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5540 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5542 * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5543 (rs6000_call_aix): ... this. Handle both direct and indirect calls.
5544 Create call insn directly instead of via various gen_... routines.
5545 Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5546 (rs6000_sibcall_aix): New function.
5547 * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5548 (TOC_SAVE_OFFSET_64BIT): Likewise.
5549 (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5550 (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5551 (AIX_FUNC_DESC_SC_32BIT): Likewise.
5552 (AIX_FUNC_DESC_SC_64BIT): Likewise.
5553 ("call" expander): Call rs6000_call_aix.
5554 ("call_value" expander): Likewise.
5555 ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5556 ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5557 ("*call_indirect_aix<mode>"): ... by this insn pattern.
5558 ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5559 ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5560 ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5561 ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5562 ("*call_nonlocal_aix<mode>"): ... this pattern.
5563 ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5564 ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5565 ("*call_local_aix<mode>"): New insn pattern.
5566 ("*call_value_local_aix<mode>"): Likewise.
5567 ("sibcall" expander): Call rs6000_sibcall_aix.
5568 ("sibcall_value" expander): Likewise. Move earlier in file.
5569 ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5570 ("*sibcall_aix<mode>"): ... this pattern.
5571 ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5572 ("*sibcall_value_aix<mode>"): ... this pattern.
5573 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5574 (rs6000_call_aix): Add prototype.
5575 (rs6000_sibcall_aix): Likewise.
5577 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5580 * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5581 isn't confused by the artificial decl.
5583 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5585 * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5586 RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5587 Instead, add USEs of all modified call-saved CR fields to the
5588 insn storing the result to the stack slot, and provide an
5589 appropriate REG_FRAME_RELATED_EXPR for that insn.
5590 * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5591 * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5593 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5594 Alan Modra <amodra@gmail.com>
5596 * function.c (assign_parms): Use all.reg_parm_stack_space instead
5597 of re-evaluating REG_PARM_STACK_SPACE target macro.
5598 (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE. Use it
5599 instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5600 (assign_parm_find_entry_rtl): Update call.
5601 * calls.c (initialize_argument_information): Update call.
5602 (emit_library_call_value_1): Likewise.
5603 * expr.h (locate_and_pad_parm): Update prototype.
5605 2013-11-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5607 * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5610 2013-11-14 DJ Delorie <dj@redhat.com>
5612 * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5615 2013-11-14 Jeff Law <law@redhat.com>
5617 * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5618 EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5620 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5622 * doc/invoke.texi: Update documentation for AArch64's -mcpu
5625 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5627 * config/aarch64/aarch64-cores.def (example-1): Remove.
5628 (example-2): Likewise.
5629 * config/aarch64/aarch64-tune.md: Regenerate.
5630 * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5631 (generic_sched): Remove "large", "small".
5632 * config/aarch64/large.md: Delete.
5633 * config/aarch64/small.md: Delete.
5635 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5637 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5638 * config/aarch64/aarch64-tune.md: Regenerate.
5639 * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5640 (generic_sched): "no" if we are tuning for cortexa15.
5641 * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5644 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5646 * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5647 * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5648 * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5649 (all_cores): Use cortexa53 when tuning for "generic".
5650 (aarch64_override_options): Fix comment.
5651 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5652 * config/aarch64/aarch64-generic.md: Delete.
5654 2013-11-14 James Greenhalgh <james.greenhalgh@arm.com>
5656 * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5658 2013-11-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5660 * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5661 (generic_rtx_cost_table): Remove.
5662 (aarch64_rtx_costs): Use fields from cpu_cost_table.
5663 * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5665 (cpu_rtx_cost_table): Remove.
5667 2013-11-14 Julian Brown <julian@codesourcery.com>
5668 Joey Ye <joey.ye@arm.com>
5670 * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5671 (arm_v7m_tune): New.
5672 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5673 arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5674 arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5675 * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5677 2013-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5680 * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5683 2013-11-14 Jakub Jelinek <jakub@redhat.com>
5684 Uros Bizjak <ubizjak@gmail.com>
5687 * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5688 operands[2] satisfies_constraint_Z that might have bit 31 set.
5690 2013-11-13 Jeff Law <law@redhat.com>
5692 PR tree-optimization/59102
5693 * gimple-ssa-isolate-paths.c
5694 (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5695 gimple assignment before looking at gimple_assign_lhs.
5697 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5699 * ira.c: Add comment about threads at the top of file.
5701 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5703 * ira-color.c (coalesce_allocnos): Don't allocate and free
5706 2013-11-14 Tom de Vries <tom@codesourcery.com>
5708 * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5709 equality for GIMPLE_ASSIGN.
5711 2013-11-14 Tom de Vries <tom@codesourcery.com>
5713 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5715 (gimple_equal_p): ... here.
5717 2013-11-14 Tom de Vries <tom@codesourcery.com>
5719 * trans-mem.c (is_tm_ending): New function.
5720 * gimple.h (is_tm_ending): Declare.
5721 * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5723 (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5725 2013-11-14 Tom de Vries <tom@codesourcery.com>
5727 * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5729 2013-11-13 Andrew MacLeod <amacleod@redhat.com>
5731 * gimple-walk.h: New File. Relocate prototypes from gimple.h.
5732 (struct walk_stmt_info): Relocate here from gimple.h.
5733 * gimple-iterator.h: New File. Relocate prototypes from gimple.h.
5734 (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5735 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5736 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5737 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5738 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5739 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5740 * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5741 (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5742 gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5743 gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5744 gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5745 gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5746 (struct walk_stmt_info): Move to gimple-walk.h.
5747 (gimple_seq_set_location): Move to gimple.c
5748 * gimple-walk.c: New File.
5749 (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5750 walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5751 walk_stmt_load_store_ops): Relocate here from gimple.c.
5752 * gimple-iterator.c: Include gimple-iterator.h.
5753 * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5754 walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5755 walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5757 (gimple_seq_set_location): Relocate from gimple.h.
5758 * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5759 * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5760 * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5761 * Makefile.in (OBJS): Add gimple-walk.o
5762 * asan.c: Update Include list as required for gimple-iterator.h and
5764 * cfgexpand.c: Likewise.
5765 * cfgloop.c: Likewise.
5766 * cfgloopmanip.c: Likewise.
5767 * cgraph.c: Likewise.
5768 * cgraphbuild.c: Likewise.
5769 * cgraphunit.c: Likewise.
5770 * gimple-fold.c: Likewise.
5771 * gimple-low.c: Likewise.
5772 * gimple-pretty-print.c: Likewise.
5773 * gimple-ssa-isolate-paths.c: Likewise.
5774 * gimple-ssa-strength-reduction.c: Likewise.
5775 * gimple-streamer-in.c: Likewise.
5776 * gimple-streamer-out.c: Likewise.
5777 * gimplify.c: Likewise.
5778 * graphite-blocking.c: Likewise.
5779 * graphite-clast-to-gimple.c: Likewise.
5780 * graphite-dependences.c: Likewise.
5781 * graphite-interchange.c: Likewise.
5782 * graphite-optimize-isl.c: Likewise.
5783 * graphite-poly.c: Likewise.
5784 * graphite-scop-detection.c: Likewise.
5785 * graphite-sese-to-poly.c: Likewise.
5786 * graphite.c: Likewise.
5787 * ipa-inline-analysis.c: Likewise.
5788 * ipa-profile.c: Likewise.
5789 * ipa-prop.c: Likewise.
5790 * ipa-pure-const.c: Likewise.
5791 * ipa-split.c: Likewise.
5792 * lto-streamer-in.c: Likewise.
5793 * lto-streamer-out.c: Likewise.
5794 * omp-low.c: Likewise.
5795 * predict.c: Likewise.
5796 * profile.c: Likewise.
5798 * tracer.c: Likewise.
5799 * trans-mem.c: Likewise.
5800 * tree-call-cdce.c: Likewise.
5801 * tree-cfg.c: Likewise.
5802 * tree-cfgcleanup.c: Likewise.
5803 * tree-complex.c: Likewise.
5804 * tree-data-ref.c: Likewise.
5805 * tree-dfa.c: Likewise.
5806 * tree-eh.c: Likewise.
5807 * tree-emutls.c: Likewise.
5808 * tree-if-conv.c: Likewise.
5809 * tree-inline.c: Likewise.
5810 * tree-into-ssa.c: Likewise.
5811 * tree-loop-distribution.c: Likewise.
5812 * tree-nested.c: Likewise.
5813 * tree-nrv.c: Likewise.
5814 * tree-object-size.c: Likewise.
5815 * tree-outof-ssa.c: Likewise.
5816 * tree-parloops.c: Likewise.
5817 * tree-predcom.c: Likewise.
5818 * tree-profile.c: Likewise.
5819 * tree-scalar-evolution.c: Likewise.
5820 * tree-sra.c: Likewise.
5821 * tree-ssa-ccp.c: Likewise.
5822 * tree-ssa-coalesce.c: Likewise.
5823 * tree-ssa-copy.c: Likewise.
5824 * tree-ssa-copyrename.c: Likewise.
5825 * tree-ssa-dce.c: Likewise.
5826 * tree-ssa-dom.c: Likewise.
5827 * tree-ssa-dse.c: Likewise.
5828 * tree-ssa-forwprop.c: Likewise.
5829 * tree-ssa-ifcombine.c: Likewise.
5830 * tree-ssa-live.c: Likewise.
5831 * tree-ssa-loop-ch.c: Likewise.
5832 * tree-ssa-loop-im.c: Likewise.
5833 * tree-ssa-loop-ivcanon.c: Likewise.
5834 * tree-ssa-loop-ivopts.c: Likewise.
5835 * tree-ssa-loop-manip.c: Likewise.
5836 * tree-ssa-loop-niter.c: Likewise.
5837 * tree-ssa-loop-prefetch.c: Likewise.
5838 * tree-ssa-loop.c: Likewise.
5839 * tree-ssa-math-opts.c: Likewise.
5840 * tree-ssa-phiopt.c: Likewise.
5841 * tree-ssa-phiprop.c: Likewise.
5842 * tree-ssa-pre.c: Likewise.
5843 * tree-ssa-propagate.c: Likewise.
5844 * tree-ssa-reassoc.c: Likewise.
5845 * tree-ssa-sink.c: Likewise.
5846 * tree-ssa-strlen.c: Likewise.
5847 * tree-ssa-structalias.c: Likewise.
5848 * tree-ssa-tail-merge.c: Likewise.
5849 * tree-ssa-ter.c: Likewise.
5850 * tree-ssa-threadedge.c: Likewise.
5851 * tree-ssa-threadupdate.c: Likewise.
5852 * tree-ssa-uncprop.c: Likewise.
5853 * tree-ssa-uninit.c: Likewise.
5854 * tree-ssa.c: Likewise.
5855 * tree-stdarg.c: Likewise.
5856 * tree-switch-conversion.c: Likewise.
5857 * tree-tailcall.c: Likewise.
5858 * tree-vect-data-refs.c: Likewise.
5859 * tree-vect-generic.c: Likewise.
5860 * tree-vect-loop-manip.c: Likewise.
5861 * tree-vect-loop.c: Likewise.
5862 * tree-vect-patterns.c: Likewise.
5863 * tree-vect-slp.c: Likewise.
5864 * tree-vect-stmts.c: Likewise.
5865 * tree-vectorizer.c: Likewise.
5866 * tree-vrp.c: Likewise.
5869 * value-prof.c: Likewise.
5870 * vtable-verify.c: Likewise.
5872 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5874 * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5877 2013-11-13 Jeff Law <law@redhat.com>
5879 * PR middle-end/59119
5880 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5881 function, extracted from gimple_ssa_isolate_erroneous_paths.
5882 (find_explicit_erroneous_behaviour): Similarly.
5883 (insert_trap_and_remove_trailing_statements): Remove statements
5886 2013-11-13 Steven Bosscher <steven@gcc.gnu.org>
5888 * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5889 Make that check explicit. BB_HEAD cannot be NULL, remove check for it.
5890 * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5891 looking at INSN_CODE.
5892 * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5893 active_insn_p object, respect basic block boundaries.
5894 * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5895 follows immediately after the jump table data label.
5896 * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5897 * config/sh/sh.c (barrier_align): Likewise. Rearrange code such
5898 that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5900 2013-11-13 Teresa Johnson <tejohnson@google.com>
5903 * predict.c (drop_profile): Error is currently too strict.
5904 (handle_missing_profiles): Pass call_count to drop_profile.
5906 2013-11-13 Teresa Johnson <tejohnson@google.com>
5909 * ipa-inline.c (edge_badness): Fix overflow.
5911 2013-11-13 Vladimir Makarov <vmakarov@redhat.com>
5913 PR rtl-optimization/59036
5914 * ira-color.c (struct allocno_color_data): Add new members
5915 first_thread_allocno, next_thread_allocno, thread_freq.
5916 (sorted_copies): New static var.
5917 (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5918 (allocno_thread_conflict_p, merge_threads)
5919 (form_threads_from_copies, form_threads_from_bucket)
5920 (form_threads_from_colorable_allocno, init_allocno_threads): New
5922 (bucket_allocno_compare_func): Add comparison by thread frequency
5924 (add_allocno_to_ordered_bucket): Rename to
5925 add_allocno_to_ordered_colorable_bucket. Remove parameter.
5926 (push_only_colorable): Call form_threads_from_bucket.
5927 (color_pass): Call init_allocno_threads. Use
5928 consideration_allocno_bitmap instead of coloring_allocno_bitmap
5929 for nuillify allocno color data.
5930 (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5931 (coalesce_allocnos): Use static sorted copies.
5933 2013-11-13 Jakub Jelinek <jakub@redhat.com>
5935 * passes.c (execute_todo): Don't call do_per_function if
5937 (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5938 execute_function_dump if dump_file is NULL.
5940 2013-11-13 Martin Jambor <mjambor@suse.cz>
5942 * cgraph.c (cgraph_get_create_node): Do what
5943 cgraph_get_create_real_symbol_node used to do.
5944 (cgraph_get_create_real_symbol_node): Removed. Changed all users to
5945 call cgraph_get_create_node.
5946 * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5947 * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5948 cgraph_get_create_node. Assert we get a node.
5950 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5952 * config/aarch64/aarch64-simd.md (vec_extract): New.
5954 2013-11-13 Tejas Belagod <tejas.belagod@arm.com>
5956 * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5959 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5961 * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5962 on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5963 or if optimization is enabled.
5964 * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5965 require that all the names based on a PARM_DECL or a RESULT_DECL that
5966 isn't ignored for debug info be coalesced.
5968 2013-11-13 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5970 * config/c6x/c6x.c: Include "gimple-expr.h".
5972 2013-11-13 Richard Biener <rguenther@suse.de>
5974 * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5975 decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5976 * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5977 dealing with type mismatches inside component reference chains.
5979 2013-11-13 Marc Glisse <marc.glisse@inria.fr>
5981 PR tree-optimization/59077
5982 * ipa-pure-const.c (better_state): Update *state.
5984 2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
5986 * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5987 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5988 Update offset calculations.
5990 2013-11-13 Eric Botcazou <ebotcazou@adacore.com>
5993 * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5994 for fields. Do not add the attribute if the size is negative.
5996 2013-11-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5998 * config/arm/arm.c: Include aarch-cost-tables.h.
5999 (generic_extra_costs): Move from here...
6000 * config/arm/aarch-cost-tables.h: ... To here. New file.
6002 2013-11-13 Alexander Ivchenko <alexander.ivchenko@intel.com>
6003 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6004 Sergey Lega <sergey.s.lega@intel.com>
6005 Anna Tikhonova <anna.tikhonova@intel.com>
6006 Ilya Tocar <ilya.tocar@intel.com>
6007 Andrey Turetskiy <andrey.turetskiy@intel.com>
6008 Ilya Verbin <ilya.verbin@intel.com>
6009 Kirill Yukhin <kirill.yukhin@intel.com>
6010 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6012 * config/i386/i386.c (ix86_print_operand): Support z-masking.
6013 * config/i386/predicate.md (const_0_to_4_operand): New.
6014 (const_0_to_5_operand): Ditto.
6015 * config/i386/sse.md (UNSPEC_COMPRESS): New.
6016 (UNSPEC_COMPRESS_STORE): Ditto.
6017 (UNSPEC_EXPAND): Ditto.
6018 (UNSPEC_EMBEDDED_ROUNDING): Ditto.
6019 (define_mode_attr ssescalarsize): Ditto.
6020 (avx512f_load<mode>_mask): Ditto.
6021 (avx512f_store<mode>_mask): Ditto.
6022 (avx512f_storedqu<mode>_mask): Ditto.
6023 (avx512f_vmcmp<mode>3_mask): Ditto.
6024 (avx512f_fmadd_<mode>_mask): Ditto.
6025 (avx512f_fmadd_<mode>_mask3): Ditto.
6026 (avx512f_fmsub_<mode>_mask): Ditto.
6027 (avx512f_fmsub_<mode>_mask3): Ditto.
6028 (avx512f_fnmadd_<mode>_mask): Ditto.
6029 (avx512f_fnmadd_<mode>_mask3): Ditto.
6030 (avx512f_fnmsub_<mode>_mask): Ditto.
6031 (avx512f_fnmsub_<mode>_mask3): Ditto.
6032 (avx512f_fmaddsub_<mode>_mask): Ditto.
6033 (avx512f_fmaddsub_<mode>_mask3): Ditto.
6034 (avx512f_fmsubadd_<mode>_mask): Ditto.
6035 (avx512f_fmsubadd_<mode>_mask3): Ditto.
6036 (vec_unpacku_float_lo_v16si): Ditto.
6037 (avx512f_vextract<shuffletype>32x4_mask): Ditto.
6038 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
6039 (avx512f_vextract<shuffletype>64x4_mask): Ditto.
6040 (vec_extract_lo_<mode>_maskm): Ditto.
6041 (vec_extract_hi_<mode>_maskm): Ditto.
6042 (avx512f_vternlog<mode>_mask): Ditto.
6043 (avx512f_shufps512_mask): Ditto.
6044 (avx512f_fixupimm<mode>_mask): Ditto.
6045 (avx512f_shufpd512_mask): Ditto.
6046 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
6047 (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
6048 (*avx512f_<code>v8div16qi2_store_mask): Ditto.
6049 (ashr<mode>3<mask_name>): Ditto.
6050 (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
6051 (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
6052 (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
6053 (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
6054 (avx512f_pshufdv3_mask): Ditto.
6055 (avx512f_perm<mode>_mask): Ditto.
6056 (avx512f_vpermi2var<mode>3_mask): Ditto.
6057 (avx512f_vpermt2var<mode>3_mask): Ditto.
6058 (avx512f_compress<mode>_mask): Ditto.
6059 (avx512f_compressstore<mode>_mask): Ditto.
6060 (avx512f_expand<mode>_mask): Ditto.
6061 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
6063 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
6064 (<plusminus_insn><mode>3<mask_name>): Ditto.
6065 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6066 (mul<mode>3<mask_name>): Ditto.
6067 (*mul<mode>3<mask_name>): Ditto.
6068 (<sse>_div<mode>3<mask_name>): Ditto.
6069 (<mask_codefor>rcp14<mode><mask_name>): Ditto.
6070 (<sse>_sqrt<mode>2<mask_name>): Ditto.
6071 (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
6072 (<code><mode>3<mask_name>/smaxmin): Ditto.
6073 (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
6074 (*<code><mode>3<mask_name>/smaxmin): Ditto.
6075 (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
6076 (ufloatv16siv16sf2<mask_name>): Ditto.
6077 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
6078 (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
6079 (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
6080 (float<si2dfmodelower><mode>2<mask_name>): Ditto.
6081 (ufloatv8siv8df<mask_name>): Ditto.
6082 (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
6083 (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
6084 (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
6085 (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
6086 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
6087 (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
6088 (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
6089 (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
6090 (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
6091 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
6092 (vec_extract_lo_<mode><mask_name>): Ditto.
6093 (vec_extract_hi_<mode><mask_name>): Ditto.
6094 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
6095 (avx512f_movddup512<mask_name>): Ditto.
6096 (avx512f_unpcklpd512<mask_name>): Ditto.
6097 (*avx512f_unpcklpd512<mask_name>): Ditto.
6098 (*avx512f_vmscalef<mode>): Ditto.
6099 (avx512f_scalef<mode><mask_name>): Ditto.
6100 (avx512f_getexp<mode><mask_name>): Ditto.
6101 (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
6102 (avx512f_rndscale<mode><mask_name>): Ditto.
6103 (avx512f_shufps512_1<mask_name>): Ditto.
6104 (avx512f_shufpd512_1<mask_name>): Ditto.
6105 (<plusminus_insn><mode>3<mask_name>): Ditto.
6106 (*<plusminus_insn><mode>3<mask_name>): Ditto.
6107 (vec_widen_umult_even_v16si<mask_name>): Ditto.
6108 (*vec_widen_umult_even_v16si<mask_name>): Ditto.
6109 (vec_widen_smult_even_v16si<mask_name>): Ditto.
6110 (*vec_widen_smult_even_v16si<mask_name>): Ditto.
6111 (mul<mode>3<mask_name>): Ditto.
6112 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
6113 (<shift_insn><mode>3<mask_name>): Ditto.
6114 (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
6115 (avx512f_<rotate><mode><mask_name>): Ditto.
6116 (<code><mode>3<mask_name>/maxmin): Ditto.
6117 (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
6118 (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
6119 (*andnot<mode>3<mask_name>): Ditto.
6120 (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
6121 (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
6122 (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
6123 (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
6124 (vec_set_lo_<mode><mask_name>): Ditto.
6125 (vec_set_hi_<mode><mask_name>): Ditto.
6126 (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
6127 (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
6128 (avx512f_pshufd_1<mask_name>): Ditto.
6129 (<mask_codefor>abs<mode>2<mask_name>): Ditto.
6130 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
6131 (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
6132 (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
6133 (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
6134 (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
6135 (avx512er_exp2<mode><mask_name>): Ditto.
6136 (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
6137 (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
6138 (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
6139 (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
6140 (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
6141 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
6142 (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
6143 (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
6144 (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
6145 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
6146 (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
6147 (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
6148 (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
6149 (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
6150 (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
6151 (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
6152 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
6153 (avx512f_getmant<mode><mask_name>): Ditto.
6154 (clz<mode>2<mask_name>): Ditto.
6155 (<mask_codefor>conflict<mode><mask_name>): Ditto.
6156 (*srcp14<mode>): Remove visibility.
6157 (*rsqrt14<mode>): Ditto.
6158 (*fma_fmsub_<mode>): Ditto.
6159 (*fma_fnmadd_<mode>): Ditto.
6160 (*avx512f_rndscale<mode>): Ditto.
6161 * config/i386/subst.md: New file.
6163 2013-11-13 Joseph Myers <joseph@codesourcery.com>
6165 * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
6166 * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
6167 (atomic_load_explicit, atomic_exchange_explicit)
6168 (atomic_compare_exchange_strong_explicit)
6169 (atomic_compare_exchange_weak_explicit): Use __auto_type to
6170 declare variable initialized with PTR argument.
6172 2013-11-12 Jeff Law <law@redhat.com>
6174 * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
6175 backedge_seen_p. Set, use and pass it to children appropriately.
6176 (thread_through_normal_block): Similarly.
6177 (thread_across_edge): Similarly.
6179 * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
6180 memory references as volatile.
6181 (insert_trap_and_remove_trailing_statements): Fix comment.
6183 2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
6186 * ira-costs.c (record_operand_costs): Check operands number for
6189 2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6192 * config/rs6000/rs6000.md (movdi_internal32): Eliminate
6193 constraints that would allow DImode into the traditional Altivec
6194 registers, but cause undesirable code generation when loading 0 as
6196 (movdi_internal64): Likewise.
6197 (cmp<mode>_fpr): Do not use %x for CR register output.
6198 (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
6199 -mallow-upper-sf debug switches are used.
6201 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
6203 * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
6204 create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
6205 Relocate prototypes from gimple.h.
6206 * gimplify.h: New File. Relocate some prototypes from gimple.h here.
6207 (gimple_predicate, enum fallback, enum gimplify_status): Relocate
6209 * gimple.h: Move some prototypes to gimplify.h.
6210 (gimple_predicate, enum fallback, enum gimplify_status): Move to
6212 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
6213 Relocate from gimpify.c.
6214 * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6215 create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
6216 is_gimple_reg_rhs) Relocate from gimplify.c.
6217 * gimplify.c (mark_addressable): Move to gimple-expr.c.
6218 (gimple_seq_add_stmt_without_update): Move to gimple.c.
6219 (remove_suffix, tmp_var_id_num, create_tmp_var_name,
6220 create_tmp_var_raw, create_tmp_var, create_tmp_reg,
6221 is_gimple_reg_rhs): Move to gimple-expr.c.
6222 (should_carry_location_p): Move to gimple.c.
6223 (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
6225 (annotate_one_with_location, annotate_all_with_location_after,
6226 annotate_all_with_location): Move to gimple.c.
6227 (compare_case_labels, sort_case_labels,
6228 preprocess_case_label_vec_for_gimple): Move to gimple.c.
6229 (rhs_predicate_for): Make static.
6230 (gimplify_assign): Relocate from gimple.c.
6231 * gimple.c (gimplify_assign): Move to gimplify.c.
6232 (gimple_seq_add_stmt_without_update, should_carry_location_p,
6233 annotate_one_with_location, annotate_all_with_location_after,
6234 annotate_all_with_location, compare_case_labels, sort_case_labels,
6235 preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
6236 * tree.h (unshare_expr, unshare_expr_without_location,
6237 mark_addressable): Move prototypes to gimplify.h.
6238 * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
6240 * asan.c: Include gimplify.h rather than gimple.h.
6241 * cfgloopmanip.c: Likewise.
6242 * cgraphunit.c: Likewise.
6243 * cilk-common.c: Likewise.
6244 * dwarf2out.c: Dont include gimple.h.
6245 * fold-const.c: Include gimplify.h rather than gimple.h.
6246 * function.c: Likewise.
6247 * gimple-fold.c: Likewise.
6248 * gimple-ssa-strength-reduction.c: Likewise.
6249 * graphite-clast-to-gimple.c: Likewise.
6250 * graphite-sese-to-poly.c: Likewise.
6251 * ipa-prop.c: Likewise.
6252 * ipa-split.c: Likewise.
6254 * langhooks.c: Dont include gimple.h.
6255 * loop-init.c: Include gimplify.h rather than gimple.h.
6256 * omp-low.c: Likewise.
6258 * stor-layout.c: Likewise.
6259 * targhooks.c: Likewise.
6260 * trans-mem.c: Likewise.
6261 * tree-affine.c: Likewise.
6262 * tree-cfg.c: Likewise.
6263 * tree-cfgcleanup.c: Likewise.
6264 * tree-complex.c: Likewise.
6265 * tree-if-conv.c: Likewise.
6266 * tree-inline.c: Likewise.
6267 * tree-iterator.c: Likewise.
6268 * tree-loop-distribution.c: Likewise.
6269 * tree-nested.c: Likewise.
6270 * tree-parloops.c: Likewise.
6271 * tree-predcom.c: Likewise.
6272 * tree-profile.c: Likewise.
6273 * tree-scalar-evolution.c: Likewise.
6274 * tree-sra.c: Likewise.
6275 * tree-ssa-address.c: Likewise.
6276 * tree-ssa-ccp.c: Likewise.
6277 * tree-ssa-dce.c: Likewise.
6278 * tree-ssa-forwprop.c: Likewise.
6279 * tree-ssa-ifcombine.c: Likewise.
6280 * tree-ssa-loop-im.c: Likewise.
6281 * tree-ssa-loop-ivopts.c: Likewise.
6282 * tree-ssa-loop-manip.c: Likewise.
6283 * tree-ssa-loop-niter.c: Likewise.
6284 * tree-ssa-loop-prefetch.c: Likewise.
6285 * tree-ssa-loop-unswitch.c: Likewise.
6286 * tree-ssa-math-opts.c: Likewise.
6287 * tree-ssa-phiopt.c: Likewise.
6288 * tree-ssa-phiprop.c: Likewise.
6289 * tree-ssa-pre.c: Likewise.
6290 * tree-ssa-propagate.c: Likewise.
6291 * tree-ssa-reassoc.c: Likewise.
6292 * tree-ssa-sccvn.c: Likewise.
6293 * tree-ssa-strlen.c: Likewise.
6294 * tree-ssa.c: Likewise.
6295 * tree-switch-conversio: Likewise.n.c
6296 * tree-tailcall.c: Likewise.
6297 * tree-vect-data-refs.c: Likewise.
6298 * tree-vect-generic.c: Likewise.
6299 * tree-vect-loop-manip.c: Likewise.
6300 * tree-vect-loop.c: Likewise.
6301 * tree-vect-patterns.c: Likewise.
6302 * tree-vect-stmts.c: Likewise.
6304 * value-prof.c: Likewise.
6305 * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
6306 * config/alpha/alpha.c: Likewise.
6307 * config/darwin.c: Likewise.
6308 * config/i386/i386.c: Likewise.
6309 * config/ia64/ia64.c: Likewise.
6310 * config/mep/mep.c: Likewise.
6311 * config/mips/mips.c: Likewise.
6312 * config/rs6000/rs6000.c: Likewise.
6313 * config/s390/s390.c: Likewise.
6314 * config/sh/sh.c: Likewise.
6315 * config/sparc/sparc.c: Likewise.
6316 * config/spu/spu.c: Likewise.
6317 * config/stormy16/stormy16.c: Likewise.
6318 * config/tilegx/tilegx.c: Likewise.
6319 * config/tilepro/tilepro.c: Likewise.
6320 * config/xtensa/xtensa.c: Likewise.
6322 2013-11-12 Adam Butcher <adam@jessamine.co.uk>
6324 * tree.c (grow_tree_vec_stat): New function ...
6325 * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
6326 and macro front-end.
6328 2013-11-12 Marek Polacek <polacek@redhat.com>
6330 * final.c (update_alignments): Initialize label to NULL_RTX.
6332 2013-11-12 Jeff Law <law@redhat.com>
6334 * gimple-ssa-isolate-paths.c (check_loadstore): New function.
6335 (insert_trap_and_remove_trailing_statements): New argument OP which
6336 is the NULL pointer. Emit the trap after the load/store through
6337 the NULL pointer. Simplify the RHS of a store through a NULL pointer
6338 when trivial to do so.
6339 (isolate_path): Corresponding changes.
6340 (gimple_ssa_isolate_erroneous_path): Likewise.
6342 2013-11-12 Teresa Johnson <tejohnson@google.com>
6343 Jan Hubicka <jh@suse.cz>
6345 * predict.c (drop_profile): New function.
6346 (handle_missing_profiles): Ditto.
6347 (counts_to_freqs): Don't overwrite estimated frequencies
6348 when function has no profile counts.
6349 * predict.h (handle_missing_profiles): Declare.
6350 * tree-inline.c (freqs_to_counts): New function.
6351 (copy_cfg_body): Invoke freqs_to_counts as needed.
6352 * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
6354 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6357 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6359 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6361 2013-11-12 H.J. Lu <hongjiu.lu@intel.com>
6364 * config/i386/i386.c (ix86_option_override_internal): Check
6365 X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6366 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6367 MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6368 MASK_AVX256_SPLIT_UNALIGNED_STORE.
6370 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6371 Clear m_COREI7_AVX and update comments.
6372 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6374 2013-11-12 Martin Jambor <mjambor@suse.cz>
6376 PR rtl-optimization/10474
6377 * ira.c (interesting_dest_for_shprep): New function.
6378 (split_live_ranges_for_shrink_wrap): Likewise.
6379 (find_moveable_pseudos): Move calculation of dominance info,
6380 df_analysios and the final anlyses to...
6381 (ira): ...here, call split_live_ranges_for_shrink_wrap.
6383 2013-11-12 Bin Cheng <bin.cheng@arm.com>
6385 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6386 Handle type conversion.
6388 2013-11-11 Martin Liska <marxin.liska@gmail.com>
6389 Jan Hubicka <jh@suse.cz>
6391 * cgraph.c (dump_cgraph_node): Profile dump added.
6392 * cgraph.h (struct cgraph_node): New time profile variable added.
6393 * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6394 * gcov-io.h (gcov_type): New profiler type introduced.
6395 * ipa-profile.c (lto_output_node): Streaming for time profile added.
6396 (input_node): Time profiler is read from LTO stream.
6397 * predict.c (maybe_hot_count_p): Hot prediction changed.
6398 * profile.c (instrument_values): New case for time profiler added.
6399 (compute_value_histograms): Read of time profile.
6400 * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6401 * tree-profile.c (init_ic_make_global_vars): Time profiler
6403 (gimple_init_edge_profiler): TP function instrumentation.
6404 (gimple_gen_time_profiler): New.
6405 * value-prof.c (gimple_add_histogram_value): Support for time profiler
6407 (dump_histogram_value): TP type added to dumps.
6408 (visit_hist): More sensitive check that takes TP into account.
6409 (gimple_find_values_to_profile): TP instrumentation.
6410 * value-prof.h (hist_type): New histogram type added.
6411 (struct histogram_value_t): Pointer to struct function added.
6412 * libgcc/Makefile.in: New GCOV merge function for TP added.
6413 * libgcov.c: function_counter variable introduced.
6414 (_gcov_merge_time_profile): New.
6415 (_gcov_time_profiler): New.
6417 2013-11-11 Marc Glisse <marc.glisse@inria.fr>
6418 Jeff Law <law@redhat.com>
6420 * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6421 ao_ref_init_from_ptr_and_size for builtins.
6423 2013-11-11 Uros Bizjak <ubizjak@gmail.com>
6424 H.J. Lu <hongjiu.lu@intel.com>
6427 * config/i386/x86-tune.def
6428 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6429 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6430 * config/i386/i386.h
6431 (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6432 TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES. Update for renamed
6433 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6434 * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6435 TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6436 misaligned_prologue_used. Check that
6437 desired_aling <= epilogue_size_needed.
6439 2013-11-11 Cong Hou <congh@google.com>
6441 PR tree-optimization/59050
6442 * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6444 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6447 * expmed.c (emit_store_flag): Fail for const-const comparison.
6449 2013-11-11 Tristan Gingold <gingold@adacore.com>
6450 Eric Botcazou <ebotcazou@adacore.com>
6452 * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6453 * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6454 * tree.def (CONSTRUCTOR): Likewise.
6455 * doc/generic.texi (CONSTRUCTOR): Likewise. Update description.
6456 * gimplify.c (gimplify_init_constructor): Do not clear the object when
6457 the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6459 2013-11-11 Basile Starynkevitch <basile@starynkevitch.net>
6461 * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6464 2013-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6466 * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6469 2013-11-11 Joern Rennecke <joern.rennecke@embecosm.com>
6471 * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6473 2013-11-08 Jeff Law <law@redhat.com>
6475 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6476 threading paths first, then perform PHI node checks if applicable.
6478 2013-11-10 Karlson2k <k2k@narod.ru>
6479 Kai Tietz <ktietz@redhat.com>
6482 * configure.ac: Adding for exported symbols check
6483 and for rdynamic-check executable-extension.
6484 * configure: Regenerated.
6486 2013-11-10 Uros Bizjak <ubizjak@gmail.com>
6488 * mode-switching.c (optimize_mode_switching): Mark block as
6489 nontransparent, if last_mode at block exit is different from no_mode.
6491 2013-11-09 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6493 * function.c (NAME__MAIN): Move to...
6494 * cfgexpand.c (NAME__MAIN): ...here.
6496 2013-11-09 Richard Sandiford <rdsandiford@googlemail.com>
6498 * target.def (can_use_doloop_p): New hook.
6499 * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6500 * doc/tm.texi: Regenerate.
6501 * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6502 * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6503 * hooks.c (hook_bool_dint_dint_uint_true): New function.
6504 * targhooks.h (can_use_doloop_if_innermost): Declare.
6505 * targhooks.c (can_use_doloop_if_innermost): New function.
6506 * target.h: Include double-int.h.
6507 * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6508 Remove iteration count, maximum iteration count, loop depth and
6509 enter-at-top inputs from doloop_begin and doloop_end.
6510 * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6512 * config/arc/arc.c (arc_can_use_doloop_p): New function.
6513 (TARGET_CAN_USE_DOLOOP_P): Define.
6514 * config/arm/thumb2.md (doloop_end): Update for new interface.
6515 * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6516 * config/bfin/bfin.md (doloop_end): Update for new interface.
6517 * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6518 (TARGET_CAN_USE_DOLOOP_P): Define.
6519 * config/c6x/c6x.md (doloop_end): Update for new interface.
6520 * config/ia64/ia64.md (doloop_end): Update for new interface.
6521 * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6522 * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6524 * config/mep/mep.c (mep_emit_doloop): Likewise.
6525 (TARGET_CAN_USE_DOLOOP_P): Define.
6526 * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6527 * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6528 * config/s390/s390.md (doloop_end): Update for new interface.
6529 * config/sh/sh.md (doloop_end): Likewise.
6530 * config/spu/spu.md (doloop_end): Likewise.
6531 * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6532 * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6533 * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6534 * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6535 * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6536 * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6538 * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6540 2013-11-08 H.J. Lu <hongjiu.lu@intel.com>
6543 * doc/extend.texi: Move Cilk Plus Builtins node before Other
6546 2013-11-08 Andrew MacLeod <amacleod@redhat.com>
6547 Joseph Myers <joseph@codesourcery.com>
6549 * ginclude/stdatomic.h: New file.
6550 * Makefile.in (USER_H): Add stdatomic.h.
6552 2013-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6554 * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6557 2013-11-08 Jeff Law <law@redhat.com>
6559 * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6560 * tree-ssa-threadupdate.c (delete_thread_path): New function.
6561 (ssa_redirect_edges, thread_block_1): Use it.
6562 (thread_through_loop_header, mark_threaded_blocks): Likewise.
6563 (thread_through_all_blocks, register_jump_thread): Likewise.
6564 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6566 2013-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6568 * config/arm/aarch-common.c
6569 (search_term): New typedef.
6570 (shift_rtx_costs): New array.
6571 (arm_rtx_shift_left_p): New.
6572 (arm_find_sub_rtx_with_search_term): Likewise.
6573 (arm_find_sub_rtx_with_code): Likewise.
6574 (arm_early_load_addr_dep): Add sanity checking.
6575 (arm_no_early_alu_shift_dep): Likewise.
6576 (arm_no_early_alu_shift_value_dep): Likewise.
6577 (arm_no_early_mul_dep): Likewise.
6578 (arm_no_early_store_addr_dep): Likewise.
6580 2013-11-08 Richard Biener <rguenther@suse.de>
6582 PR tree-optimization/59047
6583 * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6585 2013-11-08 Ilya Enkovich <ilya.enkovich@intel.com>
6587 * common.opt (fcheck-pointer-bounds): Move to ...
6588 * c-family/c.opt: ... here.
6589 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6590 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6591 * langhooks.h (lang_hooks): Remove chkp_supported field.
6592 * toplev.c (process_options): Remove chkp_supported check.
6594 2013-11-08 Richard Biener <rguenther@suse.de>
6596 PR tree-optimization/59038
6597 PR tree-optimization/58955
6598 * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6599 previous change. Handle known dependences correctly.
6601 2013-11-08 Tom de Vries <tom@codesourcery.com>
6603 * config/rs6000/t-xilinx: Remove duplicate contents.
6605 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
6606 Joseph Myers <joseph@codesourcery.com>
6608 * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6609 (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6610 TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6611 (struct tree_base): Add atomic_flag field.
6612 * tree.h (TYPE_ATOMIC): New accessor macro.
6613 (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6614 (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6615 (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6616 (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6617 * tree.c (set_type_quals): Set TYPE_ATOMIC.
6618 (find_atomic_core_type): New function.
6619 (build_qualified_type): Adjust alignment for qualified types.
6620 (build_atomic_base): New function
6621 (build_common_tree_nodes): Build atomicQI_type_node,
6622 atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6624 * print-tree.c (print_node): Print atomic qualifier.
6625 * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6626 * target.def (atomic_assign_expand_fenv): New hook.
6627 * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6628 * doc/tm.texi: Regenerate.
6629 * targhooks.c (default_atomic_assign_expand_fenv): New function.
6630 * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6631 * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6632 * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6634 * config/i386/i386.c (enum ix86_builtins): Add
6635 IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6636 IX86_BUILTIN_FNCLEX.
6637 (bdesc_special_args): Add __builtin_ia32_fnstenv,
6638 __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6639 (ix86_expand_builtin): Handle the new built-in functions.
6640 (ix86_atomic_assign_expand_fenv): New function.
6641 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6642 * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6643 (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6644 (fnstenv, fldenv, fnstsw, fnclex): New insns.
6646 2013-11-07 Steve Ellcey <sellcey@mips.com>
6648 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6649 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6650 (MULTILIB_DIRNAMES): Add fp64 directory.
6651 (MULTILIB_EXCEPTIONS): Add new exclusions.
6653 2013-11-07 Aldy Hernandez <aldyh@redhat.com>
6655 * gimplify.c (gimple_regimplify_operands): Do not set
6657 * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6658 (rewrite_close_phi_out_of_ssa): Same.
6659 (rewrite_phi_out_of_ssa): Same.
6660 (rewrite_degenerate_phi): Same.
6661 (handle_scalar_deps_crossing_scop_limits): Same.
6662 * tree-if-conv.c (predicate_scalar_phi): Same.
6663 * tree-parloops.c (create_loads_for_reductions): Same.
6664 (create_final_loads_for_reduction): Same.
6665 (create_loads_and_stores_for_name): Same.
6666 (transform_to_exit_first_loop): Same.
6667 (create_parallel_loop): Same.
6668 * tree-ssa-loop-im.c
6669 (move_computations_dom_walker::before_dom_children): Same.
6670 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6671 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6672 * tree-ssa-propagate.c (substitute_and_fold): Same.
6673 * tree-vect-loop.c (vect_finalize_reduction): Same.
6674 * tree-vect-stmts.c (vectorizable_call): Same.
6676 2013-11-07 Mike Stump <mikestump@comcast.net>
6678 * config/pdp11/pdp11.c: Include dbxout.h.
6679 * config/picochip/picochip.c: Likewise.
6681 2013-11-07 Cong Hou <congh@google.com>
6683 PR tree-optimization/56764
6684 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6685 Combine alias checks if it is possible to amortize the runtime
6686 overhead. Return the number of alias checks after merging.
6687 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6688 Use the function vect_create_cond_for_alias_checks () to check
6689 the number of alias checks.
6691 2013-11-07 Jeff Law <law@redhat.com>
6693 * varpool.c (ctor_for_folding): Fix typo in comment.
6695 2013-11-07 Joern Rennecke <joern.rennecke@embecosm.com>
6697 * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6698 reg_a := reg_b + reg_a ==> reg_a := reg_a + reg_b
6700 2013-11-07 Jeff Law <law@redhat.com>
6702 * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6704 * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6705 No longer check if we have __builtin_trap, assume it's available.
6707 2013-11-07 Diego Novillo <dnovillo@google.com>
6709 * attribs.c (lookup_scoped_attribute_spec): Make static.
6710 (get_attribute_namespace): Likewise.
6711 * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6712 (validate_arglist): Move earlier in the file. Make static.
6713 (expand_stack_restore): Move from stmt.c
6714 (expand_stack_save): Move from stmt.c
6715 (rewrite_call_expr_array): Move earlier in the file.
6716 (rewrite_call_expr_valist): Likewise.
6717 * cfgexpand.c: Include hard-reg-set.h before tree.h
6720 (expand_asm_loc): Move from stmt.c.
6721 (n_occurrences): Move from stmt.c.
6722 (check_operand_nalternatives): Move from stmt.c.
6723 (tree_conflicts_with_clobbers_p): Move from stmt.c.
6724 (expand_asm_operands): Move from stmt.c
6725 (expand_asm_stmt): Move from stmt.c
6726 (expand_computed_goto): Move from stmt.c
6727 (expand_goto): Move from stmt.c
6728 (expand_null_return_1): Move from stmt.c
6729 (expand_null_return): Move from stmt.c
6730 (expand_value_return): Move from stmt.c
6731 (expand_return): Move from stmt.c
6732 (expand_main_function): Move from function.c
6733 (stack_protect_prologue): Move from function.c
6734 * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6735 (build_function_decl_skip_args): Move from tree.c.
6736 * explow.c (tree_expr_size): Move from tree.c.
6737 * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6738 (fields_length): Move from tree.c.
6739 * fold-const.c (size_low_cst): Move from tree.c.
6740 (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6741 (tree_expr_nonzero_p): Make static. Move earlier in the file.
6742 (fold_build3_initializer_loc): Remove.
6743 (tree_invalid_nonnegative_warnv_p): Make static.
6744 * function.c (expand_main_function): Move to cfgexpand.c.
6745 (stack_protect_prologue): Move to cfgexpand.c.
6746 (set_insn_locations): Move earlier in the file.
6747 * gimple-fold.c: Include langhooks.h.
6748 (truth_type_for): Move from tree.c.
6749 * print-tree.c (print_vec_tree): Remove.
6750 * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6751 (expand_goto): Move to cfgexpand.c.
6752 (n_occurrences): Move to cfgexpand.c.
6753 (expand_asm_loc): Move to cfgexpand.c
6754 (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6755 (expand_asm_operands): Move to cfgexpand.c.
6756 (expand_asm_stmt): Move to cfgexpand.c.
6757 (check_operand_nalternatives): Move to cfgexpand.c
6758 (expand_null_return): Move to cfgexpand.c.
6759 (expand_value_return): Move to cfgexpand.c.
6760 (expand_null_return_1): Move to cfgexpand.c.
6761 (expand_return): Move to cfgexpand.c.
6762 (expand_stack_save): Move to builtins.c.
6763 (expand_stack_restore): Move to builtins.c
6764 * symtab.c: Include output.h.
6765 (decl_assembler_name_hash): Move from tree.c.
6766 (decl_assembler_name_equal): Move from tree.c.
6767 * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6768 * tree-eh.c (in_array_bounds_p): Move from tree.c.
6769 (range_in_array_bounds_p): Move from tree.c.
6770 * tree-object-size.c (fini_object_sizes): Make static.
6771 * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6772 * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6773 * tree.c (decl_assembler_name_equal): Move to symtab.c.
6774 (tree_expr_size): Move to explow.c.
6775 (decl_assembler_name_hash): Move to symtab.c.
6776 (real_twop): Remove.
6777 (tree_expr_size): Move to explow.c.
6778 (stabilize_reference_1): Move earlier in the file. Make static.
6779 (omp_remove_redundant_declare_simd_attrs): Remove.
6780 (simple_cst_list_equal): Move earlier in the file. Make static.
6781 (size_low_cst): Move to fold-const.c.
6782 (build_type_no_quals): Remove.
6783 (build_function_type_skip_args): Move to cgraphclones.c.
6784 (build_function_decl_skip_args): Move to cgraphclones.c.
6785 (in_array_bounds_p): Move to tree-eh.c.
6786 (range_in_array_bounds_p): Move to tree-eh.c.
6787 (truth_type_for): Move to gimple-fold.c.
6788 (list_equal_p): Remove.
6789 * tree.h (decl_assembler_name_equal): Remove.
6790 (decl_assembler_name_hash): Remove.
6791 (truth_type_for): Remove.
6792 (build_type_no_quals): Remove.
6793 (build_function_decl_skip_args): Remove.
6794 (in_array_bounds_p): Remove.
6795 (range_in_array_bounds_p): Remove.
6796 (size_low_cst): Remove.
6797 (omp_remove_redundant_declare_simd_attrs): Remove.
6798 (tree_expr_size): Remove.
6799 (fields_length): Remove.
6800 (stabilize_reference_1): Remove.
6801 (expand_goto): Remove.
6802 (expand_stack_save): Remove.
6803 (expand_stack_restore): Remove.
6804 (expand_return): Remove.
6805 (fold_build3_initializer_loc): Remove.
6806 (tree_expr_nonzero_p): Remove.
6807 (tree_invalid_nonnegative_warnv_p): Remove.
6808 (tree_expr_nonzero_warnv_p): Remove.
6809 (fold_builtin_snprintf_chk): Remove.
6810 (validate_arglist): Remove.
6811 (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6812 (simple_cst_list_equal): Remove.
6813 (real_twop): Remove.
6814 (expand_main_function): Remove.
6815 (stack_protect_prologue): Remove.
6816 (print_vec_tree): Remove.
6817 (lookup_scoped_attribute_spec): Remove.
6818 (get_attribute_namespace): Remove.
6819 (expand_computed_goto): Remove.
6820 (expand_asm_stmt): Remove.
6821 (list_equal_p): Remove.
6822 (ssa_name_nonnegative_p): Remove.
6823 (fini_object_sizes): Remove.
6824 (addr_expr_of_non_mem_decl_p): Remove.
6825 (is_tm_safe_or_pure): Move to trans-mem.c.
6826 (more_const_call_expr_args_p): Remove.
6827 (save_vtable_map_decl): Remove.
6829 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6831 * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6832 linker plugins, too.
6834 * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6835 link to libgomp and its dependencies.
6836 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6837 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6838 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6839 * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6841 2013-11-07 Jakub Jelinek <jakub@redhat.com>
6843 * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6844 (determine_value_range): Add loop argument. Use get_range_info to
6846 (bound_difference): Adjust caller.
6848 2013-11-07 Richard Biener <rguenther@suse.de>
6849 Jakub Jelinek <jakub@redhat.com>
6851 * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6852 latches from header PHI arguments from the latch edge.
6854 2013-11-07 Paolo Carlini <paolo.carlini@oracle.com>
6857 * varasm.c (output_constant): Handle NULLPTR_TYPE.
6859 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6861 * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6862 misaligned_prologue_used when it has been set.
6864 2013-11-07 Yury Gribov <y.gribov@samsung.com>
6865 Jakub Jelinek <jakub@redhat.com>
6868 * asan.c (get_mem_refs_of_builtin_call): Allow
6869 integer literals as addresses in instrumented builtins.
6871 2013-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6873 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6874 Explain why plus_constant is not used.
6876 2013-11-07 Richard Biener <rguenther@suse.de>
6878 * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6879 (canonicalize_value): ... this. Also handle stripping of
6881 (get_value, set_lattice_value, get_value_for_expr): Adjust.
6882 * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6883 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6885 2013-11-07 Richard Biener <rguenther@suse.de>
6887 * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6889 2013-11-07 H.J. Lu <hongjiu.lu@intel.com>
6892 * config/i386/i386.md (push peepholer/splitter): Use Pmode
6893 with stack_pointer_rtx.
6895 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6897 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6898 using operand_equal_p.
6900 2013-11-07 Bin Cheng <bin.cheng@arm.com>
6902 * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6903 * tree-affine.c (get_inner_reference_aff): Return base.
6904 * tree-affine.h (get_inner_reference_aff): Change prototype.
6906 2013-11-06 Tobias Burnus <burnus@net-b.de>
6908 * doc/invoke.texi (Wdate-time): Fix typo.
6910 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6912 * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6913 cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6914 fp_arith_reg_operand instead of arith_reg_operand.
6916 2013-11-06 Oleg Endo <olegendo@gcc.gnu.org>
6918 * config/sh/sh.md (adddi3): Remove empty constraints.
6919 Remove can_create_pseudo_p and arith_reg_operand check.
6920 (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6921 Split before reload.
6923 2013-11-06 Jeff Law <law@redhat.com>
6924 Tom Tromey <tromey@redhat.com>
6926 * gdbinit.in: Disable strict type checking.
6928 2013-11-06 Vladimir Makarov <vmakarov@redhat.com>
6930 * tree-pass.h (make_pass_live_range_shrinkage): New external.
6931 * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6932 * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6933 (rest_of_handle_live_range_shrinkage): Ditto
6934 (class pass_live_range_shrinkage): Ditto.
6935 (pass_data_live_range_shrinkage): Ditto.
6936 (make_pass_live_range_shrinkage): Ditto.
6937 * sched-int.h (initialize_live_range_shrinkage): New prototype.
6938 (finish_live_range_shrinkage): Ditto.
6939 * sched-deps.c (create_insn_reg_set): Make void return value.
6940 * passes.def: Add pass_live_range_shrinkage.
6941 * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6942 * haifa-sched.c (live_range_shrinkage_p): New.
6943 (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6945 (rank_for_schedule): Add code for pressure relief through live
6947 (schedule_insn): Print more debug info.
6948 (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6949 through live range shrinkage.
6950 * doc/invoke.texi (-flive-range-shrinkage): New.
6951 * common.opt (flive-range-shrinkage): New.
6953 2013-11-06 Uros Bizjak <ubizjak@gmail.com>
6956 * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6957 AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6958 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6959 RTXes that return in AVX256 register.
6961 2013-11-06 Richard Biener <rguenther@suse.de>
6963 PR tree-optimization/58653
6964 * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6965 (prepare_initializers_chain): Adjust.
6967 2013-11-06 Andrew MacLeod <amacleod@redhat.com>
6969 * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6970 (gimple_in_transaction): Use bb_in_transaction.
6971 * basic-block.h (bb_in_transaction): Relocate here and rename.
6972 * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6974 2013-11-06 Richard Biener <rguenther@suse.de>
6976 * tree.c (drop_tree_overflow): New function.
6977 * tree.h (drop_tree_overflow): Declare.
6978 * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6979 * tree-vrp.c (range_int_cst_singleton_p): Use
6980 is_overflow_infinity instead of testing TREE_OVERFLOW.
6981 (extract_range_from_assert): Likewise.
6982 (zero_nonzero_bits_from_vr): Likewise.
6983 (extract_range_basic): Likewise.
6984 (register_new_assert_for): Use drop_tree_overflow.
6985 (vrp_visit_phi_node): Likewise.
6987 2013-11-06 Eric Botcazou <ebotcazou@adacore.com>
6989 * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6990 checking for leaf functions without dynamic stack allocation.
6991 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6992 (ia64_expand_prologue): Likewise.
6993 * config/mips/mips.c (mips_expand_prologue): Likewise.
6994 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6995 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6996 (sparc_flat_expand_prologue): Likewise.
6998 2013-11-06 James Greenhalgh <james.greenhalgh@arm.com>
7000 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
7001 (__ST3_LANE_FUNC): Likewise.
7002 (__ST4_LANE_FUNC): Likewise.
7004 2013-11-06 Nick Clifton <nickc@redhat.com>
7006 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
7007 name returned by msp430_mcu_name.
7008 (LIB_SPEC): If a -T option has not been specified then set a
7009 default, mcu-specific, linker script.
7010 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
7011 * config/msp430/msp430.c (msp430x_names): Likewise.
7012 Alpha sort the names for ease of comparison.
7013 (msp430_mcu_name): New function: Returns a string suitable for
7014 use as a C preprocessor symbol based upon the name of the MCU
7016 (msp430_option_override): Accept msp430x and msp430xv2 as generic
7018 * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
7020 * gcc.c (do_spec_1): Do not insert a space after a %* substitution
7021 unless it is the last part of a spec substring.
7022 * doc/invoke.texi (Spec Files): Document space insertion
7025 2013-11-06 Christian Bruel <christian.bruel@st.com>
7027 * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
7028 Factorize probabilities, Use adjust_address instead of
7029 adjust_automodify_address when possible. Enable for optimize.
7030 (sh_expand_strlen): New function.
7031 * config/sh/sh-protos.h (sh_expand_strlen): Declare.
7032 * config/sh/sh.md (strlensi): New pattern.
7033 (UNSPEC_BUILTIN_STRLEN): Define.
7035 2013-11-06 Jakub Jelinek <jakub@redhat.com>
7038 * expr.c (get_bit_range): Handle *offset == NULL_TREE.
7039 (expand_assignment): If *bitpos is negative, set *offset
7040 and adjust *bitpos, so that it is not negative.
7042 2013-11-06 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7044 * config/i386/bdver3.md : Added two additional decoder units
7045 to support issue rate of 4 and remodeled vector unit.
7046 * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
7047 architectures is set to 4.
7048 * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
7049 lookahead is set to 4 for BD architectures.
7051 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7053 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7054 Remove restriction against use of VSX instructions when generating
7055 code for little endian mode.
7057 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7059 * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
7060 for both big and little endian.
7061 (mulv8hi3): Swap input operands for merge high and merge low
7062 instructions for little endian.
7064 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7066 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
7067 define_insn to define_expand that uses even patterns for big
7068 endian and odd patterns for little endian.
7069 (vec_widen_smult_even_v16qi): Likewise.
7070 (vec_widen_umult_even_v8hi): Likewise.
7071 (vec_widen_smult_even_v8hi): Likewise.
7072 (vec_widen_umult_odd_v16qi): Likewise.
7073 (vec_widen_smult_odd_v16qi): Likewise.
7074 (vec_widen_umult_odd_v8hi): Likewise.
7075 (vec_widen_smult_odd_v8hi): Likewise.
7076 (altivec_vmuleub): New define_insn.
7077 (altivec_vmuloub): Likewise.
7078 (altivec_vmulesb): Likewise.
7079 (altivec_vmulosb): Likewise.
7080 (altivec_vmuleuh): Likewise.
7081 (altivec_vmulouh): Likewise.
7082 (altivec_vmulesh): Likewise.
7083 (altivec_vmulosh): Likewise.
7085 2013-11-05 Mike Stump <mikestump@comcast.net>
7087 * Makefile.in (mostlyclean): Remove c-family objects.
7089 2013-11-05 Ian Lance Taylor <iant@google.com>
7091 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7092 If possible, add .cfi directives to record change to bx.
7093 * config/i386/i386.c (ix86_emit_cfi): New function.
7094 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7096 2013-11-05 Steven Bosscher <steven@gcc.gnu.org>
7098 * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
7099 immediately after a label for a tablejump pattern.
7101 * config/arm/arm.c (is_jump_table): Remove.
7102 (create_fix_barrier): Use tablejump_p instead.
7103 (arm_reorg): Likewise.
7104 (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
7105 (thumb2_output_casesi): Likewise.
7106 * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
7107 * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
7108 casesi_shift_media, casesi_load_media): Likewise.
7109 * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
7110 * config/microblaze/microblaze.md: Likewise.
7112 2013-11-05 Tobias Burnus <burnus@net-b.de>
7114 * doc/invoke.texi (-Wdate-time): Document.
7116 2013-11-05 Richard Sandiford <rdsandiford@googlemail.com>
7118 * double-int.c (lshift_double, rshift_double): Remove
7119 SHIFT_COUNT_TRUNCATED handling.
7121 2013-11-05 Jeff Law <law@redhat.com>
7123 * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
7124 * common.opt (-fisolate-erroneous-paths): Add option and documentation.
7125 * gimple-ssa-isolate-paths.c: New file.
7126 * gimple.c (check_loadstore): New function.
7127 (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
7128 Verify OP is in the argument list and the argument corresponding
7129 to OP is a pointer type. Use operand_equal_p rather than
7130 pointer equality when testing if OP is on the nonnull list.
7131 Use check_loadstore rather than count_ptr_derefs. Handle
7132 GIMPLE_RETURN statements.
7133 * tree-vrp.c (infer_nonnull_range): Remove.
7134 * gimple.h (infer_nonnull_range): Declare.
7135 * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
7136 * passes.def: Add pass_isolate_erroneous_paths.
7137 * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
7138 * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
7139 * tree-ssa.c (struct count_ptr_d): Remove.
7140 (count_ptr_derefs, count_uses_and_derefs): Remove.
7141 * tree-ssa.h (count_uses_and_derefs): Remove.
7143 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7145 PR rtl-optimization/58997
7146 * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
7147 get_iv_value to be in iv->mode rather than iv->extend_mode.
7148 (iv_extend): Likewise. Otherwise, if iv->extend != extend,
7149 use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
7150 * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
7153 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7155 * gimple.h: Move some prototypes to gimple-expr.h and add to include
7157 (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
7158 Move to gimple-expr.h.
7159 * gimple-expr.h: New file. Relocate some prototypes from gimple.h.
7160 (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
7161 is_gimple_id, virtual_operand_p, is_gimple_addressable,
7162 is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
7164 * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
7165 gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
7166 is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
7167 is_gimple_address, is_gimple_invariant_address,
7168 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7169 is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
7170 virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
7171 is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
7172 gimple_decl_printable_name, useless_type_conversion_p,
7173 types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
7175 * gimple-expr.c: New File.
7176 (useless_type_conversion_p, gimple_set_body, gimple_body,
7177 gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
7178 gimple_can_coalesce_p, extract_ops_from_tree_1,
7179 gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
7180 is_gimple_address, is_gimple_invariant_address,
7181 is_gimple_ip_invariant_address, is_gimple_min_invariant,
7182 is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
7183 is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
7184 is_gimple_mem_ref_addr): Relocate here.
7185 * Makefile.in (OBJS): Add gimple-expr.o.
7187 2013-11-05 David Malcolm <dmalcolm@redhat.com>
7189 * gengtype-parse.c (struct_field_seq): Support empty structs.
7191 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7193 * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
7195 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
7197 * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
7199 * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
7201 (LONG_DOUBLE_TYPE_SIZE): New define.
7202 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
7204 2013-11-05 Paolo Carlini <paolo.carlini@oracle.com>
7207 * doc/extend.texi [visibility ("visibility_type")]: Add example
7208 about visibility attribute on namespace declaration.
7210 2013-11-05 Richard Biener <rguenther@suse.de>
7213 * passes.def (all_passes): Start with pass_fixup_cfg again.
7215 2013-11-05 Richard Biener <rguenther@suse.de>
7217 PR tree-optimization/58955
7218 * tree-loop-distribution.c (pg_add_dependence_edges): Fix
7221 2013-11-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7223 * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
7225 (vec_pack_ufix_trunc_v2df): Likewise.
7227 2013-11-05 H.J. Lu <hongjiu.lu@intel.com>
7230 * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
7231 pattern, instead of word_mode.
7233 * expr.c (emit_block_move_via_movmem): Don't use mode wider than
7235 (set_storage_via_setmem): Likewise.
7237 2013-11-05 Andrew MacLeod <amacleod@redhat.com>
7239 * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
7240 gimple.h and the rest of the condition in eliminate_build.
7241 (eliminate_build): Call new routine.
7242 * gimple.h (phi_ssa_name_p): Delete.
7244 2013-11-05 Trevor Saunders <tsaunders@mozilla.com>
7246 * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
7247 case of no prefix and reserving zero slots, because when that's the
7248 case we'll never get here.
7249 * vec.h (va_heap::reserve): Don't try and handle
7250 vec_prefix::calculate_allocation returning zero because that should
7253 2013-11-05 Richard Biener <rguenther@suse.de>
7256 * tree-dfa.c (get_ref_base_and_extent): Merge common code
7257 in MEM_REF and TARGET_MEM_REF handling. Make sure to
7258 process trailing array detection before diving into the
7259 view-converted object (and possibly apply some extra offset).
7261 2013-11-05 Joseph Myers <joseph@codesourcery.com>
7263 * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
7265 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
7267 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7269 PR tree-optimization/58958
7270 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
7271 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7273 2013-11-05 Marc Glisse <marc.glisse@inria.fr>
7275 * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
7276 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
7278 2013-11-05 Jakub Jelinek <jakub@redhat.com>
7280 PR tree-optimization/58984
7281 * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
7282 set *SIZE_P if non-NULL on success.
7283 (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
7285 (ipcp_transform_function): Likewise. Punt if size of access
7286 is different from TYPE_SIZE on v->value's type.
7288 2013-11-05 Tobias Burnus <burnus@net-b.de>
7290 * doc/invoke.texi (-fopenmp-simd): Document new option.
7291 * gimplify.c (gimplify_body): Accept -fopenmp-simd.
7292 * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
7293 * tree.c (attribute_value_equal): Ditto.
7295 2013-11-04 Wei Mi <wmi@google.com>
7297 * sched-rgn.c (add_branch_dependences): Keep insns in
7298 a SCHED_GROUP at the end of BB to remain their location.
7300 2013-11-04 Wei Mi <wmi@google.com>
7302 * config/i386/i386.c (memory_address_length): Extract a part
7303 of code to rip_relative_addr_p.
7304 (rip_relative_addr_p): New Function.
7305 (ix86_macro_fusion_p): Ditto.
7306 (ix86_macro_fusion_pair_p): Ditto.
7307 * config/i386/i386.h: Add new tune features about macro-fusion.
7308 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7309 * doc/tm.texi: Generated.
7310 * doc/tm.texi.in: Ditto.
7311 * haifa-sched.c (try_group_insn): New Function.
7312 (group_insns_for_macro_fusion): Ditto.
7313 (sched_init): Call group_insns_for_macro_fusion.
7314 * target.def: Add two hooks: macro_fusion_p and
7315 macro_fusion_pair_p.
7317 2013-11-04 Kostya Serebryany <kcc@google.com>
7319 Update to match the changed asan API.
7320 * asan.c (asan_function_start): New function.
7321 (asan_emit_stack_protection): Update the string stored in the
7322 stack red zone to match new API. Store the PC of the current
7323 function in the red zone.
7324 (asan_global_struct): Update the __asan_global definition to match
7326 (asan_add_global): Ditto.
7327 * asan.h (asan_function_start): New prototype.
7328 * final.c (final_start_function): Call asan_function_start.
7329 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
7332 2013-11-04 Wei Mi <wmi@google.com>
7334 * config/i386/i386-c.c (ix86_target_macros_internal): Separate
7335 PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
7336 * config/i386/i386.c (ix86_option_override_internal): Ditto.
7337 (ix86_issue_rate): Ditto.
7338 (ix86_adjust_cost): Ditto.
7339 (ia32_multipass_dfa_lookahead): Ditto.
7340 (ix86_sched_init_global): Ditto.
7341 (get_builtin_code_for_version): Ditto.
7342 * config/i386/i386.h (enum target_cpu_default): Ditto.
7343 (enum processor_type): Ditto.
7344 * config/i386/x86-tune.def (DEF_TUNE): Ditto.
7346 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7348 PR rtl-optimization/58967
7349 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
7350 !lra_in_progress for mode sizes bigger word.
7352 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7354 * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
7355 arguments to merge instruction for little endian.
7356 (vec_widen_umult_lo_v16qi): Likewise.
7357 (vec_widen_smult_hi_v16qi): Likewise.
7358 (vec_widen_smult_lo_v16qi): Likewise.
7359 (vec_widen_umult_hi_v8hi): Likewise.
7360 (vec_widen_umult_lo_v8hi): Likewise.
7361 (vec_widen_smult_hi_v8hi): Likewise.
7362 (vec_widen_smult_lo_v8hi): Likewise.
7364 2013-11-04 Ian Lance Taylor <iant@google.com>
7366 * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7367 * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7368 builtins that take pointers.
7369 * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7370 * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7371 (run_gcc): Pass -fnon-call-exceptions.
7373 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7375 * optabs.c (expand_vec_perm): Revert one incorrect line from
7378 PR tree-optimization/58978
7379 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7380 use_stmt by single_imm_use directly. Only call single_imm_use
7383 2013-11-04 Vladimir Makarov <vmakarov@redhat.com>
7385 PR rtl-optimization/58968
7386 * lra-spills.c (return_regno_p): New function.
7387 (lra_final_code_change): Use it.
7389 2013-11-04 Joseph Myers <joseph@codesourcery.com>
7391 * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7392 * target.def (float_exceptions_rounding_supported_p): New hook.
7393 * targhooks.c (default_float_exceptions_rounding_supported_p): New
7395 * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7396 * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7398 * doc/tm.texi: Regenerate.
7399 * config.gcc (powerpc*-*-linux*): Set extra_objs.
7400 * config/rs6000/rs6000-linux.c: New file.
7401 * config/rs6000/rs6000-protos.h
7402 (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7403 * config/rs6000/linux.h
7404 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7405 * config/rs6000/linux64.h
7406 (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7407 * config/rs6000/t-linux (rs6000-linux.o): New rule.
7408 * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7410 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7412 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7413 Replace the define_insn_and_split with a define_insn and two
7414 define_splits, with the split after reload re-permuting the source
7415 register to its original value.
7416 (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7417 (*vsx_le_perm_store_v8hi): Likewise.
7418 (*vsx_le_perm_store_v16qi): Likewise.
7420 2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7422 * config/rs6000/vector.md (vec_pack_trunc_v2df): Adjust for
7425 2013-11-04 Jakub Jelinek <jakub@redhat.com>
7427 PR tree-optimization/58946
7428 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7429 bbs with bbinfo[idx].op != NULL before all blocks with
7430 bbinfo[idx].op == NULL.
7432 2013-11-04 Richard Sandiford <rdsandiford@googlemail.com>
7434 * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7435 (avr_dump_double_int_hex): Likewise.
7436 (avr_log_vadump): Remove %D and %X handling.
7437 * config/avr/avr.c (avr_double_int_push_digit): Delete.
7438 (avr_map_op_t): Change map from double_int to unsigned int.
7439 (avr_map_op): Update accordingly.
7440 (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7441 (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7442 unsigned ints rather than double_ints.
7444 2013-11-03 Marek Polacek <polacek@redhat.com>
7446 Implement -fsanitize=vla-bound.
7447 * opts.c (common_handle_option): Handle vla-bound.
7448 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7449 * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7450 * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7452 2013-11-02 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
7454 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7457 2013-11-02 Uros Bizjak <ubizjak@gmail.com>
7459 * config/i386/constraints.md (Ts, Tv): New address constrains.
7460 * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7461 constraint for address_no_seg_operand.
7462 * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7463 (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7464 (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7465 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7466 (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7467 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7468 (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7469 (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7470 constraint for vsib_address_operand.
7472 2013-11-02 Steven Bosscher <steven@gcc.gnu.org>
7474 * gcse.c (pre_delete): Remove references to regmove from comments.
7475 * recog.c: (validate_replace_rtx_1): Likewise.
7476 * config/rl78/rl78.c: Likewise.
7477 * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7478 * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7479 * common/config/mmix/mmix-common.c: Likewise.
7481 2013-11-01 Trevor Saunders <tsaunders@mozilla.com>
7483 * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7484 * gimplify.c (gimplify_compound_lval): Likewise.
7485 * graphite-clast-to-gimple.c (gloog): Likewise.
7486 * graphite-dependences.c (loop_is_parallel_p): Likewise.
7487 * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7488 (limit_scop); Likewise.
7489 (build_scops): Likewise.
7490 (dot_scop): Likewise.
7491 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7492 (build_scop_drs): Likewise.
7493 (insert_stmts): Likewise.
7494 (insert_out_of_ssa_copy): Likewise.
7495 (remove_phi): Likewise.
7496 (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7497 * hw-doloop.c (discover_loop): Likewise.
7498 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7499 * tree-dfa.c (dump_enumerated_decls): Likewise.
7500 * tree-if-conv.c (if_convertable_loop_p): Likewise.
7501 * tree-inline.c (tree_function_versioning): Likewise.
7502 * tree-loop-distribution.c (build_rdg): Likewise.
7503 (rdg_flag_vertex_and_dependent): Likewise.
7504 (distribute_loop): Likewise.
7505 * tree-parloops.c (loop_parallel_p): Likewise.
7506 (eliminate_local_variables): Likewise.
7507 (separate_decls_in_region): Likewise.
7508 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7509 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7510 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7511 * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7512 * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7513 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7514 (vectorizable_condition): Likewise.
7516 2013-11-01 Uros Bizjak <ubizjak@gmail.com>
7518 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7519 * configure: Regenerate.
7520 * config/i386/i386.md (*movdi_internal): Change
7521 HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7522 (*movdf_internal): Ditto.
7523 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7524 * config/i386/sse.md (vec_concatv2di): Output interunit movq
7525 for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7527 2013-10-31 Robert Suchanek <Robert.Suchanek@imgtec.com>
7529 * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7532 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7534 Automated part of renaming of symtab_node_base to symtab_node.
7536 Patch autogenerated by rename_symtab.py from
7537 https://github.com/davidmalcolm/gcc-refactoring-scripts
7538 revision 58bb219cc090b2f4516a9297d868c245495ee622
7539 with ChangeLog entry fixed up by hand.
7541 * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7543 (cgraph_node_for_asm): Likewise.
7544 * cgraph.h (symtab_node_base): Likewise.
7545 (cgraph_node): Likewise.
7546 (varpool_node): Likewise.
7547 (is_a_helper <cgraph_node>::test): Likewise.
7548 (is_a_helper <varpool_node>::test): Likewise.
7549 (symtab_nodes): Likewise.
7550 (symtab_register_node): Likewise.
7551 (symtab_unregister_node): Likewise.
7552 (symtab_remove_node): Likewise.
7553 (symtab_get_node): Likewise.
7554 (symtab_node_for_asm): Likewise.
7555 (symtab_node_asm_name): Likewise.
7556 (symtab_node_name): Likewise.
7557 (symtab_insert_node_to_hashtable): Likewise.
7558 (symtab_add_to_same_comdat_group): Likewise.
7559 (symtab_dissolve_same_comdat_group_list): Likewise.
7560 (dump_symtab_node): Likewise.
7561 (debug_symtab_node): Likewise.
7562 (dump_symtab_base): Likewise.
7563 (verify_symtab_node): Likewise.
7564 (verify_symtab_base): Likewise.
7565 (symtab_used_from_object_file_p): Likewise.
7566 (symtab_alias_ultimate_target): Likewise.
7567 (symtab_resolve_alias): Likewise.
7568 (fixup_same_cpp_alias_visibility): Likewise.
7569 (symtab_for_node_and_aliases): Likewise.
7570 (symtab_nonoverwritable_alias): Likewise.
7571 (availability symtab_node_availability): Likewise.
7572 (symtab_semantically_equivalent_p): Likewise.
7573 (fixup_same_cpp_alias_visibility): Likewise.
7574 (symtab_prevail_in_asm_name_hash): Likewise.
7576 (varpool): Likewise.
7577 (varpool_first_variable): Likewise.
7578 (varpool_next_variable): Likewise.
7579 (varpool_first_static_initializer): Likewise.
7580 (varpool_next_static_initializer): Likewise.
7581 (varpool_first_defined_variable): Likewise.
7582 (varpool_next_defined_variable): Likewise.
7583 (cgraph_first_defined_function): Likewise.
7584 (cgraph_next_defined_function): Likewise.
7585 (cgraph_first_function): Likewise.
7586 (cgraph_next_function): Likewise.
7587 (cgraph_first_function_with_gimple_body): Likewise.
7588 (cgraph_next_function_with_gimple_body): Likewise.
7589 (symtab_alias_target): Likewise.
7590 (symtab_real_symbol_p): Likewise.
7591 (symtab_can_be_discarded): Likewise.
7592 * cgraphbuild.c (mark_address): Likewise.
7593 (mark_load): Likewise.
7594 (mark_store): Likewise.
7595 * cgraphunit.c (decide_is_symbol_needed): Likewise.
7597 (enqueue_node): Likewise.
7598 (referred_to_p): Likewise.
7599 (cgraph_process_same_body_aliases): Likewise.
7600 (analyze_functions): Likewise.
7601 (handle_alias_pairs): Likewise.
7602 (output_weakrefs): Likewise.
7603 (compile): Likewise.
7604 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7605 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7606 * ipa-prop.c (remove_described_reference): Likewise.
7607 (try_decrement_rdesc_refcount): Likewise.
7608 (ipa_edge_duplication_hook): Likewise.
7609 * ipa-ref.c (ipa_record_reference): Likewise.
7610 (ipa_maybe_record_reference): Likewise.
7611 (ipa_clone_ref): Likewise.
7612 (ipa_clone_references): Likewise.
7613 (ipa_clone_referring): Likewise.
7614 (ipa_find_reference): Likewise.
7615 (ipa_remove_stmt_references): Likewise.
7616 (ipa_clear_stmts_in_references): Likewise.
7617 * ipa-ref.h (symtab_node_base): Likewise.
7618 (ipa_ref): Likewise.
7619 (ipa_record_reference): Likewise.
7620 (ipa_maybe_record_reference): Likewise.
7621 (ipa_clone_references): Likewise.
7622 (ipa_clone_referring): Likewise.
7623 (ipa_clone_ref): Likewise.
7624 (ipa_find_reference): Likewise.
7625 (ipa_remove_stmt_references): Likewise.
7626 (ipa_clear_stmts_in_references): Likewise.
7627 * ipa-reference.c (ipa_reference_write_optimization_summary):
7629 * ipa.c (enqueue_node): Likewise.
7630 (process_references): Likewise.
7631 (walk_polymorphic_call_targets): Likewise.
7632 (symtab_remove_unreachable_nodes): Likewise.
7633 (address_taken_from_non_vtable_p): Likewise.
7634 (comdat_can_be_unshared_p_1): Likewise.
7635 (comdat_can_be_unshared_p): Likewise.
7636 (can_replace_by_local_alias): Likewise.
7637 (function_and_variable_visibility): Likewise.
7638 * is-a.h: Likewise (within example in comment).
7639 * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7640 (lto_symtab_encoder_encode): Likewise.
7641 (lto_symtab_encoder_delete_node): Likewise.
7642 (lto_symtab_encoder_in_partition_p): Likewise.
7643 (lto_set_symtab_encoder_in_partition): Likewise.
7644 (output_refs): Likewise.
7645 (compute_ltrans_boundary): Likewise.
7646 (output_symtab): Likewise.
7647 (input_node): Likewise.
7648 (input_ref): Likewise.
7649 (input_edge): Likewise.
7650 (input_cgraph_1): Likewise.
7651 (input_refs): Likewise.
7652 (output_cgraph_opt_summary): Likewise.
7653 (input_node_opt_summary): Likewise.
7654 (input_cgraph_opt_section): Likewise.
7655 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7657 * lto-streamer-out.c (lto_output): Likewise.
7658 (output_symbol_p): Likewise.
7659 (produce_symtab): Likewise.
7660 * lto-streamer.h (lto_encoder_entry): Likewise.
7661 (lto_free_function_in_decl_state_for_node): Likewise.
7662 (lto_symtab_encoder_encode): Likewise.
7663 (lto_symtab_encoder_delete_node): Likewise.
7664 (lto_symtab_encoder_in_partition_p): Likewise.
7665 (lto_set_symtab_encoder_in_partition): Likewise.
7666 (lto_symtab_encoder_lookup): Likewise.
7667 (lsei_node): Likewise.
7668 (lto_symtab_encoder_deref): Likewise.
7669 * symtab.c (symtab_hash): Likewise.
7670 (assembler_name_hash): Likewise.
7671 (symtab_nodes): Likewise.
7672 (hash_node): Likewise.
7673 (eq_node): Likewise.
7674 (hash_node_by_assembler_name): Likewise.
7675 (eq_assembler_name): Likewise.
7676 (insert_to_assembler_name_hash): Likewise.
7677 (unlink_from_assembler_name_hash): Likewise.
7678 (symtab_prevail_in_asm_name_hash): Likewise.
7679 (symtab_register_node): Likewise.
7680 (symtab_insert_node_to_hashtable): Likewise.
7681 (symtab_unregister_node): Likewise.
7682 (symtab_get_node): Likewise.
7683 (symtab_remove_node): Likewise.
7684 (symtab_initialize_asm_name_hash): Likewise.
7685 (symtab_node_for_asm): Likewise.
7686 (symtab_add_to_same_comdat_group): Likewise.
7687 (symtab_dissolve_same_comdat_group_list): Likewise.
7688 (symtab_node_asm_name): Likewise.
7689 (symtab_node_name): Likewise.
7690 (dump_symtab_base): Likewise.
7691 (dump_symtab_node): Likewise.
7692 (dump_symtab): Likewise.
7693 (debug_symtab_node): Likewise.
7694 (verify_symtab_base): Likewise.
7695 (verify_symtab_node): Likewise.
7696 (verify_symtab): Likewise.
7697 (symtab_used_from_object_file_p): Likewise.
7698 (symtab_node_availability): Likewise.
7699 (symtab_alias_ultimate_target): Likewise.
7700 (fixup_same_cpp_alias_visibility): Likewise.
7701 (symtab_resolve_alias): Likewise.
7702 (symtab_for_node_and_aliases): Likewise.
7703 (symtab_for_node_and_aliases): Likewise.
7704 (symtab_nonoverwritable_alias_1): Likewise.
7705 (symtab_nonoverwritable_alias): Likewise.
7706 (symtab_semantically_equivalent_p): Likewise.
7707 * value-prof.c (init_node_map): Likewise.
7708 * varasm.c (find_decl): Likewise.
7709 * varpool.c (varpool_node_for_asm): Likewise.
7710 (varpool_remove_unreferenced_decls): Likewise.
7712 2013-10-31 David Malcolm <dmalcolm@redhat.com>
7714 Manual part of renaming of symtab_node_base to symtab_node.
7716 * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7717 clashes with the preferred name for the base class.
7718 (const_symtab_node): Remove redundant typedef.
7720 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7722 * optabs.c (expand_vec_perm): Avoid vector mode punning
7723 SUBREGs in SET_DEST.
7724 * expmed.c (store_bit_field_1): Likewise.
7725 * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7726 vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7727 vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7728 * config/i386/i386.c (ix86_expand_vector_move_misalign,
7729 ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7730 ix86_expand_sse_unpack, ix86_expand_args_builtin,
7731 ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7732 emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7733 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7734 expand_vec_perm_vpshufb2_vpermq,
7735 expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7736 expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7737 ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7738 (expand_vec_perm_palignr): Likewise. Modify a copy of *d rather
7741 2013-10-31 Uros Bizjak <ubizjak@gmail.com>
7743 * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7744 Use gcc_unreachable for unhandled modes. Do not check results of
7745 expand_simple_binop. If not expanded to target, move the result.
7747 2013-10-31 Chung-Ju Wu <jasonwucj@gmail.com>
7748 Shiva Chen <shiva0217@gmail.com>
7750 * config.gcc (nds32*-*-*): Add nds32 target.
7751 * config/nds32/nds32.c: New file.
7752 * config/nds32/nds32.h: New file.
7753 * config/nds32/nds32.md: New file.
7754 * config/nds32/constants.md: New file.
7755 * config/nds32/constraints.md: New file.
7756 * config/nds32/iterators.md: New file.
7757 * config/nds32/nds32-doubleword.md: New file.
7758 * config/nds32/nds32-intrinsic.md: New file.
7759 * config/nds32/nds32_intrinsic.h: New file.
7760 * config/nds32/nds32-modes.def: New file.
7761 * config/nds32/nds32-multiple.md: New file.
7762 * config/nds32/nds32.opt: New file.
7763 * config/nds32/nds32-opts.h: New file.
7764 * config/nds32/nds32-protos.h: New file.
7765 * config/nds32/nds32-peephole2.md: New file.
7766 * config/nds32/pipelines.md: New file.
7767 * config/nds32/predicates.md: New file.
7768 * config/nds32/t-mlibs: New file.
7769 * common/config/nds32: New directory and files.
7771 * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7772 * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7773 * doc/install.texi (Cross-Compiler-Specific Options): Document
7774 --with-nds32-lib for nds32 target.
7775 * doc/extend.texi (Function Attributes, Target Builtins): Document
7776 nds32 specific attributes.
7778 2013-10-31 Vladimir Makarov <vmakarov@redhat.com>
7780 * lra-constraints (process_alt_operands): Use the result
7781 elimination register for operand when matching constraints.
7783 2013-10-31 Jakub Jelinek <jakub@redhat.com>
7785 * tree-vrp.c (maybe_set_nonzero_bits): New function.
7786 (remove_range_assertions): Call it.
7788 * tree.c (tree_ctz): New function.
7789 * tree.h (tree_ctz): New prototype.
7790 * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7791 first argument from tree to const_tree.
7792 * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7793 * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7794 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7796 * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7797 * tree-vect-loop.c (vect_analyze_loop_operations,
7798 vect_transform_loop): Don't force scalar loop for bound just because
7799 number of iterations is unknown, only do it if it is not known to be
7800 a multiple of vectorization_factor.
7801 * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7803 * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7804 in case of VR_VARYING. Print get_nonzero_bits if not all ones.
7805 * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7806 (set_nonzero_bits, get_nonzero_bits): New prototypes.
7807 * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7808 a default def isn't partially constant.
7809 (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7810 is known to be partially zero.
7811 (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7812 to see if a default def isn't partially constant.
7813 * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7814 creation of a range, if VR_RANGE, try to improve nonzero_bits from
7816 (set_nonzero_bits, get_nonzero_bits): New functions.
7818 * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7819 * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7820 * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7821 (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7822 uses but in the condition and ASSERT_EXPR and the other successor of
7823 the predecessor bb is __builtin_unreachable (), set_range_info of the
7824 ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7826 2013-10-31 Martin Jambor <mjambor@suse.cz>
7828 PR rtl-optimization/58934
7830 2013-10-30 Martin Jambor <mjambor@suse.cz>
7831 PR rtl-optimization/10474
7832 * ira.c (find_moveable_pseudos): Do not calculate dominance info
7834 (interesting_dest_for_shprep): New function.
7835 (split_live_ranges_for_shrink_wrap): Likewise.
7836 (ira): Calculate dominance info and df analysis. Call
7837 split_live_ranges_for_shrink_wrap.
7839 2013-10-31 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7840 Yury Gribov <y.gribov@samsung.com>
7843 * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7844 shadow pointer to avoid clobbering the main one.
7846 2013-10-31 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7848 * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7850 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7853 * ira-color.c (update_costs_from_copies): Add new parameter. Use
7854 it for calling update_costs_from_allocno.
7855 (assign_hard_reg): Call restore_costs_from_copies only for
7856 !retry_p. Pass new argument to update_costs_from_copies.
7857 (color_pass): Pass new argument to update_costs_from_copies.
7858 (ira_mark_allocation_change): Ditto.
7860 2013-10-30 Sharad Singhai <singhai@google.com>
7863 * opts.c (common_handle_option): Remove deprecated option
7864 -ftree-vectorizer-verbose.
7865 * doc/invoke.texi (Debugging Options): Ditto.
7866 * opts-global.c (handle_common_deferred_options): Ditto.
7867 (dump_remap_tree_vectorizer_verbose): Delete.
7868 * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7870 2013-10-30 DJ Delorie <dj@redhat.com>
7872 * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7873 that take no arguments.
7875 2013-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
7878 * reload1.c (update_eliminables_and_spill): New function, broken
7880 (reload): Use it. Check for frame size change after frame size
7881 alignment, and call update_eliminables_and_spill first if continue-ing.
7883 2013-10-30 Cong Hou <congh@google.com>
7886 * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7887 * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7888 * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7890 2013-10-18 Mikael Pettersson <mikpelinux@gmail.com>
7892 PR rtl-optimization/58369
7893 * reload1.c (compute_reload_subreg_offset): New function.
7894 (choose_reload_regs): Use it to pass endian-correct
7895 offset to subreg_regno_offset.
7897 2013-10-30 Tobias Burnus <burnus@net-b.de>
7900 * tree-cfg.c (replace_loop_annotate): Replace warning by
7903 2013-10-30 Jason Merrill <jason@redhat.com>
7905 * configure.ac (loose_warn): Add -Wno-format if
7906 --disable-build-format-warnings.
7908 2013-10-30 David Malcolm <dmalcolm@redhat.com>
7910 * cgraphunit.c (analyze_functions): Split symtab_node declarations
7911 onto multiple lines to make things easier for rename_symtab.py.
7913 * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7914 (symtab_semantically_equivalent_p): Likewise.
7916 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7919 * lra.c (check_rtl): Remove address check before LRA work.
7921 2013-10-30 Marc Glisse <marc.glisse@inria.fr>
7923 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7924 POINTER_PLUS_EXPR in the defining statement.
7926 2013-10-30 Vladimir Makarov <vmakarov@redhat.com>
7928 * regmove.c: Remove.
7929 * tree-pass.h (make_pass_regmove): Remove.
7930 * timevar.def (TV_REGMOVE): Remove.
7931 * passes.def (pass_regmove): Remove.
7932 * opts.c (default_options_table): Remove entry for regmove.
7933 * doc/passes.texi: Remove regmove pass description.
7934 * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7936 (-fdump-rtl-regmove): Ditto.
7937 * common.opt (foptimize-register-move, fregmove): Ignore.
7938 * Makefile.in (OBJS): Remove regmove.o.
7939 * regmove.c: Remove.
7940 * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7942 (struct ira_allocno) New member allocno_prefs.
7943 (ALLOCNO_PREFS): New macro.
7944 (ira_prefs, ira_prefs_num): New external vars.
7945 (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7946 (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7947 (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7949 (ira_add_allocno_copy_to_list): Remove prototype.
7950 (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7951 (ira_pref_iterator): New type.
7952 (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7953 (FOR_EACH_PREF): New macro.
7954 * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7955 (ira_get_dup_out_num): Ditto. Rename from get_dup_num. Modify the
7957 (ira_setup_alts): New function.
7958 (decrease_live_ranges_number): New function.
7959 (ira): Call the above function.
7960 * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7961 (ira_create_allocno): Initialize allocno prefs.
7962 (pref_pool, pref_vec): New static vars.
7963 (initiate_prefs, find_allocno_pref, ira_create_pref): New
7965 (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7966 (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7967 (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7968 (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7969 (ira_add_allocno_copy_to_list): Make static. Rename to
7970 add_allocno_copy_to_list.
7971 (ira_swap_allocno_copy_ends_if_necessary): Make static. Rename to
7972 swap_allocno_copy_ends_if_necessary.
7973 (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7974 ira_remove_allocno_prefs.
7975 (ira_flattening): Ditto.
7976 (ira_build): Call initiate_prefs, print_prefs.
7977 (ira_destroy): Call finish_prefs.
7978 * ira-color.c (struct update_cost_record): New.
7979 (struct allocno_color_data): Add new member update_cost_records.
7980 (update_cost_record_pool): New static var.
7981 (init_update_cost_records, get_update_cost_record): New functions.
7982 (free_update_cost_record_list, finish_update_cost_records): Ditto.
7983 (struct update_cost_queue_elem): Add member from.
7984 (initiate_cost_update): Call init_update_cost_records.
7985 (finish_cost_update): Call finish_update_cost_records.
7986 (queue_update_cost, get_next_update_cost): Add new param from.
7987 (Update_allocno_cost, update_costs_from_allocno): New functions.
7988 (update_costs_from_prefs): Ditto.
7989 (update_copy_costs): Rename to update_costs_from_copies.
7990 (restore_costs_from_copies): New function.
7991 (update_conflict_hard_regno_costs): Don't go back.
7992 (assign_hard_reg): Call restore_costs_from_copies. Add printing
7994 (pop_allocnos): Add priniting more debug info.
7995 (color_allocnos): Remove prefs for conflicting hard regs.
7996 Call update_costs_from_prefs.
7997 * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7998 (get_dup_num): Rename, modify, and move to ira.c
7999 (process_regs_for_copy): Add prefs.
8000 (add_insn_allocno_copies): Put src as first arg of
8001 process_regs_for_copy. Remove dead code. Call ira_setup_alts.
8002 * ira-costs.c (record_reg_classes): Modify and move code into
8003 record_operands_costs.
8004 (find_costs_and_classes): Create prefs for the hard reg of small
8006 (process_bb_node_for_hard_reg_moves): Add prefs.
8008 2013-10-30 Richard Biener <rguenther@suse.de>
8011 * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
8012 * cfganal.c (pre_and_rev_post_order_compute_fn): New function
8014 (pre_and_rev_post_order_compute): ... which now wraps it.
8015 * graph.c (draw_cfg_nodes_no_loops): Use
8016 pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
8019 2013-10-30 Christian Bruel <christian.bruel@st.com>
8021 * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
8022 (sh_expand_cmpstr): Handle known align and schedule improvements.
8023 * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
8024 * config/sh/sh.md (cmpstrnsi): New pattern.
8026 2013-10-30 Martin Jambor <mjambor@suse.cz>
8028 PR rtl-optimization/10474
8029 * ira.c (find_moveable_pseudos): Do not calculate dominance info
8031 (interesting_dest_for_shprep): New function.
8032 (split_live_ranges_for_shrink_wrap): Likewise.
8033 (ira): Calculate dominance info and df analysis. Call
8034 split_live_ranges_for_shrink_wrap.
8036 2013-10-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8039 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
8041 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8043 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
8044 * tree.h (POINTER_BOUNDS_P): New.
8045 (BOUNDED_TYPE_P): New.
8047 (pointer_bounds_type_node): New.
8048 * tree.c (build_common_tree_nodes): Initialize
8049 pointer_bounds_type_node.
8050 * gimple.h (gimple_call_get_nobnd_arg_index): New.
8051 (gimple_call_num_nobnd_args): New.
8052 (gimple_call_nobnd_arg): New.
8053 (gimple_return_retbnd): New.
8054 (gimple_return_set_retbnd): New
8055 * gimple.c (gimple_build_return): Increase number of ops
8056 for return statement.
8057 (gimple_call_get_nobnd_arg_index): New.
8058 * gimple-pretty-print.c (dump_gimple_return): Print second op.
8060 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8062 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
8063 with "chkp ctor" and "bnd_legacy" attributes.
8064 * gimplify.c (gimplify_init_constructor): Avoid infinite
8065 loop during gimplification of bounds initializer.
8067 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8069 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
8070 (handle_bnd_legacy): New.
8071 (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
8072 * doc/extend.texi: Document bnd_variable_size and bnd_legacy
8075 2013-10-29 Ilya Enkovich <ilya.enkovich@intel.com>
8077 * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
8078 (BT_FN_PTR_CONST_PTR): New.
8079 (BT_FN_CONST_PTR_CONST_PTR): New.
8080 (BT_FN_PTR_CONST_PTR_SIZE): New.
8081 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
8082 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
8083 (BT_FN_VOID_CONST_PTR_SIZE): New.
8084 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
8085 * chkp-builtins.def: New.
8086 * builtins.def: include chkp-builtins.def.
8087 (DEF_CHKP_BUILTIN): New.
8088 * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
8089 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
8090 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
8091 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
8092 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
8093 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
8094 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
8095 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
8096 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
8097 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
8098 * common.opt (fcheck-pointer-bounds): New.
8099 * toplev.c (process_options): Check Pointer Bounds Checker is
8101 * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
8103 2013-10-30 Ilya Enkovich <ilya.enkovich@intel.com>
8105 * target.def (builtin_chkp_function): New.
8106 (chkp_bound_type): New.
8107 (chkp_bound_mode): New.
8108 (fn_abi_va_list_bounds_size): New.
8109 (load_bounds_for_arg): New.
8110 (store_bounds_for_arg): New.
8111 * targhooks.h (default_load_bounds_for_arg): New.
8112 (default_store_bounds_for_arg): New.
8113 (default_fn_abi_va_list_bounds_size): New.
8114 (default_chkp_bound_type): New.
8115 (default_chkp_bound_mode): New.
8116 (default_builtin_chkp_function): New.
8117 * targhooks.c (default_load_bounds_for_arg): New.
8118 (default_store_bounds_for_arg): New.
8119 (default_fn_abi_va_list_bounds_size): New.
8120 (default_chkp_bound_type): New.
8121 (default_chkp_bound_mode); New.
8122 (default_builtin_chkp_function): New.
8123 * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
8124 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
8125 (TARGET_STORE_BOUNDS_FOR_ARG): New.
8126 (TARGET_BUILTIN_CHKP_FUNCTION): New.
8127 (TARGET_CHKP_BOUND_TYPE): New.
8128 (TARGET_CHKP_BOUND_MODE): New.
8129 * doc/tm.texi: Regenerated.
8130 * langhooks.h (lang_hooks): Add chkp_supported field.
8131 * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
8132 (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
8134 2013-10-29 Andrew Pinski <apinski@cavium.com>
8136 * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
8137 (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
8138 fails, combining the branches anyways.
8139 (tree_ssa_ifcombine): Inverse the order of the basic block walk,
8140 increases the number of combinings.
8141 * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
8143 2013-10-29 Mike Stump <mikestump@comcast.net>
8145 * machmode.def (PARTIAL_INT_MODE): Add precision and name.
8146 * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
8147 (make_vector_mode): Increase namebuf to 16.
8148 (emit_insn_modes_h): When processing BImode, don't
8149 also match partial int modes.
8150 (emit_class_narrowest_mode): Likewise.
8152 * config/bfin/bfin-modes.def: Add precision to PDI.
8153 * config/m32c/m32c-modes.def: Add precision to PSI.
8154 * config/msp430/msp430-modes.def: Add precision to PSI.
8155 * config/rs6000/rs6000-modes.def: Add precision to PTI.
8156 * config/sh/sh-modes.def: Add precision to PSI and PDI.
8158 2013-10-29 Oleg Endo <olegendo@gcc.gnu.org>
8161 * config/sh/sh.md (*addc): Rename existing variations to ...
8162 (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
8163 (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
8164 *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
8165 * config/sh/sh.c (addsubcosts): Handle some addc special cases.
8167 2013-10-29 Teresa Johnson <tejohnson@google.com>
8170 * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
8171 insanities when updating probabilities.
8173 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8175 * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
8176 prettyprinter for cgraph_node to reflect the conversion of the
8177 symtable types to a C++ class hierarchy: it now *is* a
8178 symtab_node_base, rather than having one (named "symbol").
8180 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
8182 * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
8183 __cilkrts_pop_frame. If matched, then return true for built-in
8185 (expand_builtin): Added BUILT_IN_CILK_DETACH and
8186 BUILT_IN_CILK_POP_FRAME case.
8187 * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
8188 (lhs_cilk_detect_spawn): Likewise.
8189 (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
8190 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
8191 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
8192 (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
8193 (LANG_HOOKS_CILKPLUS): Likewise.
8194 * tree.h (CILK_SPAWN_FN): Likewise.
8195 * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
8196 * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
8197 (OBJS): Added cilk-common.o.
8198 (BUILTINS_DEF): Added cilk-builtins.def.
8199 * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
8200 (lhd_cilk_detect_spawn): Likewise.
8201 * langhooks.h (lang_hooks_for_cilkplus): New struct.
8202 (struct lang_hooks): Added new field called "cilkplus."
8203 * cilk-common.c: New file.
8205 * cilk-builtins.def: Likewise.
8206 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
8207 "__cilk" macro and set it to 200.
8208 * function.h (struct function::cilk_frame_decl): New field.
8209 (struct function::is_cilk_function): Likewise.
8210 (struct function::calls_cilk_spawn): Likewise.
8211 * gimplify.c (gimplify_call_expr): Added a check if the function call
8212 being gimplified is a spawn detach point. If so, then add pop_frame
8213 and detach function calls.
8214 (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
8215 for gimplifying _Cilk_spawn and _Cilk_sync statements.
8216 (gimplify_return_expr): Added a check for _Cilk_spawn usage in
8217 function. If so, added a _Cilk_sync and gimplified it.
8218 (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
8219 INIT_EXPRs. If so, then call gimplify_cilk_spawn.
8220 * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
8222 (can_inline_edge_p): Prevent inling of spawnee function.
8223 * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
8224 for functions that use Cilk keywords.
8225 * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
8226 * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
8227 CILK_SYNC_STMT cases.
8228 * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
8230 * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
8231 (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
8232 * passes.texi (Cilk Keywords): New section that describes the compiler
8233 code changes for handling Cilk Keywords.
8235 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8237 Patch autogenerated by refactor_symtab.py from
8238 https://github.com/davidmalcolm/gcc-refactoring-scripts
8239 revision 58bb219cc090b2f4516a9297d868c245495ee622
8241 * asan.c (asan_finish_file): Update for conversion of symtab types to
8242 a true class hierarchy.
8243 * cfgexpand.c (estimated_stack_frame_size): Likewise.
8244 * cgraph.c (cgraph_get_body): Likewise.
8245 (cgraph_get_create_real_symbol_node): Likewise.
8246 (verify_cgraph_node): Likewise.
8247 (verify_edge_corresponds_to_fndecl): Likewise.
8248 (verify_edge_count_and_frequency): Likewise.
8249 (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
8250 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8251 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
8252 (cgraph_node_cannot_return): Likewise.
8253 (cgraph_set_pure_flag_1): Likewise.
8254 (cgraph_set_const_flag_1): Likewise.
8255 (cgraph_set_nothrow_flag_1): Likewise.
8256 (cgraph_make_node_local_1): Likewise.
8257 (cgraph_for_node_and_aliases): Likewise.
8258 (cgraph_for_node_thunks_and_aliases): Likewise.
8259 (cgraph_node_can_be_local_p): Likewise.
8260 (cgraph_node_cannot_be_local_p_1): Likewise.
8261 (cgraph_function_body_availability): Likewise.
8262 (dump_cgraph_node): Likewise.
8263 (cgraph_rtl_info): Likewise.
8264 (cgraph_mark_address_taken_node): Likewise.
8265 (cgraph_remove_node): Likewise.
8266 (cgraph_release_function_body): Likewise.
8267 (cgraph_update_edges_for_call_stmt_node): Likewise.
8268 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
8269 (cgraph_make_edge_direct): Likewise.
8270 (cgraph_resolve_speculation): Likewise.
8271 (cgraph_speculative_call_info): Likewise.
8272 (cgraph_turn_edge_to_speculative): Likewise.
8273 (cgraph_create_edge_1): Likewise.
8274 (cgraph_set_call_stmt): Likewise.
8275 (cgraph_node_for_asm): Likewise.
8276 (cgraph_add_thunk): Likewise.
8277 (cgraph_same_body_alias): Likewise.
8278 (cgraph_create_function_alias): Likewise.
8279 (cgraph_create_node): Likewise.
8280 (cgraph_create_empty_node): Likewise.
8281 (record_function_versions): Likewise.
8282 (used_from_object_file_p): Likewise.
8283 * cgraph.h (symtab_can_be_discarded): Likewise.
8284 (symtab_real_symbol_p): Likewise.
8285 (cgraph_mark_force_output_node): Likewise.
8286 (cgraph_edge_recursive_p): Likewise.
8287 (symtab_alias_target): Likewise.
8288 (varpool_all_refs_explicit_p): Likewise.
8289 (varpool_can_remove_if_no_refs): Likewise.
8290 (cgraph_only_called_directly_or_aliased_p): Likewise.
8291 (cgraph_next_function_with_gimple_body): Likewise.
8292 (cgraph_first_function_with_gimple_body): Likewise.
8293 (cgraph_function_with_gimple_body_p): Likewise.
8294 (cgraph_next_function): Likewise.
8295 (cgraph_first_function): Likewise.
8296 (cgraph_next_defined_function): Likewise.
8297 (cgraph_first_defined_function): Likewise.
8298 (varpool_next_defined_variable): Likewise.
8299 (varpool_first_defined_variable): Likewise.
8300 (varpool_next_static_initializer): Likewise.
8301 (varpool_first_static_initializer): Likewise.
8302 (varpool_next_variable): Likewise.
8303 (varpool_first_variable): Likewise.
8304 (varpool_node_name): Likewise.
8305 (varpool): Likewise.
8307 (is_a_helper <varpool_node>::test): Likewise.
8308 (is_a_helper <cgraph_node>::test): Likewise.
8309 (varpool_variable_node): Likewise.
8310 (cgraph_function_or_thunk_node): Likewise.
8311 (varpool_alias_target): Likewise.
8312 (cgraph_alias_target): Likewise.
8313 (cgraph_node_name): Likewise.
8314 (varpool_node_asm_name): Likewise.
8315 (cgraph_node_asm_name): Likewise.
8316 * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
8317 (cgraph_rebuild_references): Likewise.
8318 (rebuild_cgraph_edges): Likewise.
8319 (record_eh_tables): Likewise.
8320 (build_cgraph_edges): Likewise.
8321 (mark_store): Likewise.
8322 (mark_load): Likewise.
8323 (mark_address): Likewise.
8324 (record_type_list): Likewise.
8325 (record_reference): Likewise.
8326 * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
8327 (cgraph_materialize_clone): Likewise.
8328 (cgraph_function_versioning): Likewise.
8329 (cgraph_copy_node_for_versioning): Likewise.
8330 (update_call_expr): Likewise.
8331 (cgraph_find_replacement_node): Likewise.
8332 (cgraph_create_virtual_clone): Likewise.
8333 (cgraph_clone_node): Likewise.
8334 * cgraphunit.c (compile): Likewise.
8335 (output_weakrefs): Likewise.
8336 (output_in_order): Likewise.
8337 (expand_function): Likewise.
8338 (assemble_thunks_and_aliases): Likewise.
8339 (expand_thunk): Likewise.
8340 (mark_functions_to_output): Likewise.
8341 (handle_alias_pairs): Likewise.
8342 (analyze_functions): Likewise.
8343 (walk_polymorphic_call_targets): Likewise.
8344 (varpool_finalize_decl): Likewise.
8345 (process_function_and_variable_attributes): Likewise.
8346 (cgraph_process_same_body_aliases): Likewise.
8347 (analyze_function): Likewise.
8348 (cgraph_add_new_function): Likewise.
8349 (cgraph_finalize_function): Likewise.
8350 (referred_to_p): Likewise.
8351 (cgraph_reset_node): Likewise.
8352 (cgraph_process_new_functions): Likewise.
8353 (enqueue_node): Likewise.
8354 (decide_is_symbol_needed): Likewise.
8355 * coverage.c (coverage_compute_profile_id): Likewise.
8356 * dbxout.c (dbxout_expand_expr): Likewise.
8357 * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8358 (reference_to_unused): Likewise.
8359 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8360 * gimplify.c (unvisit_body): Likewise.
8361 (unshare_body): Likewise.
8362 * ipa-cp.c (ipcp_generate_summary): Likewise.
8363 (ipcp_decision_stage): Likewise.
8364 (identify_dead_nodes): Likewise.
8365 (decide_whether_version_node): Likewise.
8366 (decide_about_value): Likewise.
8367 (perhaps_add_new_callers): Likewise.
8368 (create_specialized_node): Likewise.
8369 (update_profiling_info): Likewise.
8370 (ipcp_propagate_stage): Likewise.
8371 (estimate_local_effects): Likewise.
8372 (good_cloning_opportunity_p): Likewise.
8373 (devirtualization_time_bonus): Likewise.
8374 (propagate_constants_accross_call): Likewise.
8375 (initialize_node_lattices): Likewise.
8376 (ipcp_cloning_candidate_p): Likewise.
8377 (determine_versionability): Likewise.
8378 (print_all_lattices): Likewise.
8379 (print_lattice): Likewise.
8380 (ipcp_discover_new_direct_edges): Likewise.
8381 * ipa-devirt.c (ipa_devirt): Likewise.
8382 (likely_target_p): Likewise.
8383 (update_type_inheritance_graph): Likewise.
8384 (possible_polymorphic_call_target_p): Likewise.
8385 (dump_possible_polymorphic_call_targets): Likewise.
8386 (devirt_variable_node_removal_hook): Likewise.
8387 (record_binfo): Likewise.
8388 (maybe_record_node): Likewise.
8389 (build_type_inheritance_graph): Likewise.
8390 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8391 (inline_generate_summary): Likewise.
8392 (inline_analyze_function): Likewise.
8393 (do_estimate_growth): Likewise.
8394 (simple_edge_hints): Likewise.
8395 (estimate_node_size_and_time): Likewise.
8396 (estimate_edge_devirt_benefit): Likewise.
8397 (compute_inline_parameters): Likewise.
8398 (estimate_function_body_sizes): Likewise.
8399 (compute_bb_predicates): Likewise.
8400 (initialize_inline_failed): Likewise.
8401 (dump_inline_summary): Likewise.
8402 (dump_inline_edge_summary): Likewise.
8403 * ipa-inline-transform.c (inline_transform): Likewise.
8404 (preserve_function_body_p): Likewise.
8405 (save_inline_function_body): Likewise.
8406 (inline_call): Likewise.
8407 (clone_inlined_nodes): Likewise.
8408 (can_remove_node_now_p): Likewise.
8409 (can_remove_node_now_p_1): Likewise.
8410 * ipa-inline.c (early_inliner): Likewise.
8411 (early_inline_small_functions): Likewise.
8412 (inline_always_inline_functions): Likewise.
8413 (ipa_inline): Likewise.
8414 (flatten_function): Likewise.
8415 (inline_small_functions): Likewise.
8416 (speculation_useful_p): Likewise.
8417 (recursive_inlining): Likewise.
8418 (update_caller_keys): Likewise.
8419 (reset_edge_caches): Likewise.
8420 (update_edge_key): Likewise.
8421 (edge_badness): Likewise.
8422 (relative_time_benefit): Likewise.
8423 (want_inline_self_recursive_call_p): Likewise.
8424 (want_inline_small_function_p): Likewise.
8425 (want_early_inline_function_p): Likewise.
8426 (num_calls): Likewise.
8427 (can_early_inline_edge_p): Likewise.
8428 (can_inline_edge_p): Likewise.
8429 (report_inline_failed_reason): Likewise.
8430 * ipa-profile.c (ipa_profile): Likewise.
8431 (ipa_propagate_frequency): Likewise.
8432 (ipa_propagate_frequency_1): Likewise.
8433 (ipa_profile_generate_summary): Likewise.
8434 * ipa-prop.c (ipcp_transform_function): Likewise.
8435 (read_replacements_section): Likewise.
8436 (ipa_prop_read_section): Likewise.
8437 (ipa_modify_call_arguments): Likewise.
8438 (ipa_print_node_params): Likewise.
8439 (propagate_controlled_uses): Likewise.
8440 (update_indirect_edges_after_inlining): Likewise.
8441 (remove_described_reference): Likewise.
8442 (ipa_make_edge_direct_to_target): Likewise.
8443 (ipa_analyze_node): Likewise.
8444 (ipa_analyze_params_uses): Likewise.
8445 (ipa_compute_jump_functions): Likewise.
8446 (ipa_get_callee_param_type): Likewise.
8447 (ipa_print_node_jump_functions): Likewise.
8448 (ipa_initialize_node_params): Likewise.
8449 (ipa_populate_param_decls): Likewise.
8450 (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8451 (write_agg_replacement_chain): Likewise.
8452 (ipa_write_node_info): Likewise.
8453 (ipa_edge_duplication_hook): Likewise.
8454 (try_decrement_rdesc_refcount): Likewise.
8455 * ipa-pure-const.c (propagate_nothrow): Likewise.
8456 (propagate_pure_const): Likewise.
8457 (pure_const_read_summary): Likewise.
8458 (pure_const_write_summary): Likewise.
8459 (analyze_function): Likewise.
8460 * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8461 (ipa_ref_referring_ref_list): Likewise.
8462 * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8463 (ipa_remove_stmt_references): Likewise.
8464 (ipa_find_reference): Likewise.
8465 (ipa_dump_referring): Likewise.
8466 (ipa_dump_references): Likewise.
8467 (ipa_record_reference): Likewise.
8468 * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8469 (ipa_reference_write_optimization_summary): Likewise.
8470 (write_node_summary_p): Likewise.
8471 (propagate): Likewise.
8472 (read_write_all_from_decl): Likewise.
8473 (generate_summary): Likewise.
8474 (analyze_function): Likewise.
8475 (propagate_bits): Likewise.
8476 (ipa_reference_get_not_written_global): Likewise.
8477 (ipa_reference_get_not_read_global): Likewise.
8478 * ipa-split.c (execute_split_functions): Likewise.
8479 (split_function): Likewise.
8480 * ipa-utils.c (ipa_merge_profiles): Likewise.
8481 (dump_cgraph_node_set): Likewise.
8482 (ipa_reverse_postorder): Likewise.
8483 (ipa_edge_within_scc): Likewise.
8484 (ipa_get_nodes_in_cycle): Likewise.
8485 (ipa_free_postorder_info): Likewise.
8486 (ipa_reduced_postorder): Likewise.
8487 (searchc): Likewise.
8488 (recursive_call_p): Likewise.
8489 * ipa.c (ipa_cdtor_merge): Likewise.
8490 (record_cdtor_fn): Likewise.
8491 (function_and_variable_visibility): Likewise.
8492 (varpool_externally_visible_p): Likewise.
8493 (cgraph_externally_visible_p): Likewise.
8494 (comdat_can_be_unshared_p): Likewise.
8495 (comdat_can_be_unshared_p_1): Likewise.
8496 (address_taken_from_non_vtable_p): Likewise.
8497 (ipa_discover_readonly_nonaddressable_vars): Likewise.
8498 (symtab_remove_unreachable_nodes): Likewise.
8499 (walk_polymorphic_call_targets): Likewise.
8500 (process_references): Likewise.
8501 (enqueue_node): Likewise.
8502 (has_addr_references_p): Likewise.
8503 (cgraph_non_local_node_p_1): Likewise.
8504 * is-a.h (varpool_analyze_node): Likewise.
8505 * lto-cgraph.c (input_symtab): Likewise.
8506 (merge_profile_summaries): Likewise.
8507 (input_cgraph_1): Likewise.
8508 (input_edge): Likewise.
8509 (input_varpool_node): Likewise.
8510 (input_node): Likewise.
8511 (input_overwrite_node): Likewise.
8512 (compute_ltrans_boundary): Likewise.
8513 (output_refs): Likewise.
8514 (lto_output_varpool_node): Likewise.
8515 (lto_output_node): Likewise.
8516 (reachable_from_other_partition_p): Likewise.
8517 (referenced_from_other_partition_p): Likewise.
8518 (lto_output_edge): Likewise.
8519 (output_node_opt_summary): Likewise.
8520 (add_node_to): Likewise.
8521 (reachable_from_this_partition_p): Likewise.
8522 (lto_set_symtab_encoder_in_partition): Likewise.
8523 (lto_symtab_encoder_in_partition_p): Likewise.
8524 (lto_set_symtab_encoder_encode_initializer): Likewise.
8525 (lto_symtab_encoder_encode_initializer_p): Likewise.
8526 (lto_set_symtab_encoder_encode_body): Likewise.
8527 (lto_symtab_encoder_encode_body_p): Likewise.
8528 * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8530 * lto-streamer-in.c (lto_read_body): Likewise.
8531 (fixup_call_stmt_edges): Likewise.
8532 (fixup_call_stmt_edges_1): Likewise.
8533 * lto-streamer-out.c (produce_symtab): Likewise.
8534 (output_symbol_p): Likewise.
8535 (write_symbol): Likewise.
8536 (lto_output): Likewise.
8537 (copy_function): Likewise.
8538 (output_function): Likewise.
8539 * passes.c (function_called_by_processed_nodes_p): Likewise.
8540 (ipa_write_optimization_summaries): Likewise.
8541 (ipa_write_summaries): Likewise.
8542 (do_per_function_toporder): Likewise.
8543 (do_per_function): Likewise.
8544 (dump_passes): Likewise.
8545 * symtab.c (symtab_semantically_equivalent_p): Likewise.
8546 (symtab_nonoverwritable_alias): Likewise.
8547 (symtab_nonoverwritable_alias_1): Likewise.
8548 (symtab_for_node_and_aliases): Likewise.
8549 (symtab_resolve_alias): Likewise.
8550 (fixup_same_cpp_alias_visibility): Likewise.
8551 (symtab_alias_ultimate_target): Likewise.
8552 (symtab_used_from_object_file_p): Likewise.
8553 (verify_symtab_base): Likewise.
8554 (dump_symtab_base): Likewise.
8555 (symtab_node_name): Likewise.
8556 (symtab_node_asm_name): Likewise.
8557 (symtab_dissolve_same_comdat_group_list): Likewise.
8558 (symtab_add_to_same_comdat_group): Likewise.
8559 (symtab_unregister_node): Likewise.
8560 (symtab_insert_node_to_hashtable): Likewise.
8561 (symtab_register_node): Likewise.
8562 (unlink_from_assembler_name_hash): Likewise.
8563 (insert_to_assembler_name_hash): Likewise.
8564 (eq_assembler_name): Likewise.
8565 (hash_node_by_assembler_name): Likewise.
8566 (eq_node): Likewise.
8567 (hash_node): Likewise.
8568 * toplev.c (wrapup_global_declaration_2): Likewise.
8569 * trans-mem.c (ipa_tm_execute): Likewise.
8570 (ipa_tm_transform_clone): Likewise.
8571 (ipa_tm_transform_transaction): Likewise.
8572 (ipa_tm_transform_calls_redirect): Likewise.
8573 (ipa_tm_insert_gettmclone_call): Likewise.
8574 (ipa_tm_insert_irr_call): Likewise.
8575 (ipa_tm_create_version): Likewise.
8576 (ipa_tm_create_version_alias): Likewise.
8577 (ipa_tm_mark_forced_by_abi_node): Likewise.
8578 (ipa_tm_mark_force_output_node): Likewise.
8579 (ipa_tm_diagnose_tm_safe): Likewise.
8580 (ipa_tm_mayenterirr_function): Likewise.
8581 (ipa_tm_scan_irr_function): Likewise.
8582 (ipa_tm_note_irrevocable): Likewise.
8583 (ipa_tm_scan_calls_clone): Likewise.
8584 (get_cg_data): Likewise.
8585 * tree-eh.c (tree_could_trap_p): Likewise.
8586 * tree-emutls.c (ipa_lower_emutls): Likewise.
8587 (create_emultls_var): Likewise.
8588 (lower_emutls_function_body): Likewise.
8589 (gen_emutls_addr): Likewise.
8590 (emutls_decl): Likewise.
8591 (new_emutls_decl): Likewise.
8592 * tree-inline.c (tree_function_versioning): Likewise.
8593 (optimize_inline_calls): Likewise.
8594 (expand_call_inline): Likewise.
8595 (estimate_num_insns): Likewise.
8596 (copy_bb): Likewise.
8597 (delete_unreachable_blocks_update_callgraph): Likewise.
8598 * tree-nested.c (gimplify_all_functions): Likewise.
8599 (create_nesting_tree): Likewise.
8600 (check_for_nested_with_variably_modified): Likewise.
8601 * tree-pretty-print.c (dump_function_header): Likewise.
8602 * tree-profile.c (tree_profiling): Likewise.
8603 * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8604 (modify_function): Likewise.
8605 (convert_callers): Likewise.
8606 (convert_callers_for_node): Likewise.
8607 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8608 (associate_varinfo_to_alias): Likewise.
8609 (create_variable_info_for): Likewise.
8610 (get_constraint_for_ssa_var): Likewise.
8611 * tree-vectorizer.c (increase_alignment): Likewise.
8612 * tree.c (find_decls_types_in_var): Likewise.
8613 (find_decls_types_in_node): Likewise.
8614 (free_lang_data_in_decl): Likewise.
8615 * value-prof.c (gimple_ic_transform): Likewise.
8616 (gimple_ic): Likewise.
8617 (check_ic_target): Likewise.
8618 (init_node_map): Likewise.
8619 * varasm.c (decl_binds_to_current_def_p): Likewise.
8620 (default_binds_local_p_1): Likewise.
8621 (dump_tm_clone_pairs): Likewise.
8622 (assemble_alias): Likewise.
8623 (find_decl): Likewise.
8624 (mark_decl_referenced): Likewise.
8625 * varpool.c (varpool_for_node_and_aliases): Likewise.
8626 (varpool_extra_name_alias): Likewise.
8627 (varpool_create_variable_alias): Likewise.
8628 (add_new_static_var): Likewise.
8629 (varpool_finalize_named_section_flags): Likewise.
8630 (varpool_remove_unreferenced_decls): Likewise.
8631 (enqueue_node): Likewise.
8632 (varpool_assemble_decl): Likewise.
8633 (assemble_aliases): Likewise.
8634 (varpool_analyze_node): Likewise.
8635 (cgraph_variable_initializer_availability): Likewise.
8636 (varpool_add_new_variable): Likewise.
8637 (ctor_for_folding): Likewise.
8638 (dump_varpool_node): Likewise.
8639 (varpool_remove_initializer): Likewise.
8640 (varpool_remove_node): Likewise.
8641 (varpool_node_for_decl): Likewise.
8642 (varpool_create_empty_node): Likewise.
8643 * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8644 (ix86_get_function_versions_dispatcher): Likewise.
8646 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8648 * cgraph.h (symtab_node_base): Convert to a class;
8649 add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8650 chain_next/prev from symtab_node_def.
8651 (cgraph_node): Inherit from symtab_node; add GTY option
8652 tag ("SYMTAB_FUNCTION").
8653 (varpool_node): Inherit from symtab_node; add GTY option
8654 tag ("SYMTAB_VARIABLE").
8655 (symtab_node_def): Remove.
8656 (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8657 (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8658 (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8659 (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8661 * ipa-ref.h (symtab_node_def): Drop.
8662 (symtab_node): Change underlying type from symtab_node_def to
8664 (const_symtab_node): Likwise.
8666 * is-a.h: Update examples in comment.
8668 * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8669 (assembler_name_hash): Likewise.
8671 2013-10-29 Martin Liska <marxin.liska@gmail.com>
8673 * doc/tree-ssa.texi (gimple_phi_result): Document.
8674 (gimple_phi_num_args, gimple_phi_arg): Likewise.
8675 (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8676 (PHI_RESULT, PHI_NUM_ARGS): Remove.
8677 (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8679 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8681 * expr.h: Revert change and include tree-core.h.
8682 * rtl.h: Revert change and don't include tree-core.h.
8684 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8686 * config/darwin.c: Include gimple.h.
8687 * config/i386/winnt.c: Likewise.
8689 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
8691 PR tree-optimization/19831
8692 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8694 2013-10-29 Andrew MacLeod <amacleod@redhat.com>
8696 * tree-outof-ssa.h: Remove include files.
8697 * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8699 * tree-ssa-coalesce.c: Likewise.
8700 * cfgexpand.c: Likewise.
8701 * tree-ssa-ter.c: Likewise.
8702 * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8703 * lto-streamer.h: Likewise.
8704 * cgraphbuild.c: Add gimple.h to include list.
8705 * data-streamer-in.c: Likewise.
8706 * ipa-cp.c: Likewise.
8707 * tree-streamer.c: Likewise.
8708 * lto-compress.c: Likewise.
8709 * ipa-reference.c: Likewise.
8710 * data-streamer-out.c: Likewise.
8711 * lto-cgraph.c: Likewise.
8712 * cgraphclones.c: Likewise.
8713 * ipa-utils.c: Likewise.
8714 * data-streamer.c: Likewise.
8715 * ipa-split.c: Likewise.
8716 * lto-section-in.c: Likewise.
8717 * tree-streamer-out.c: Likewise.
8718 * ipa-prop.c: Likewise.
8719 * tree-streamer-in.c: Likewise.
8720 * symtab.c: Likewise.
8721 * opts-global.c: Likewise.
8722 * lto-opts.c: Likewise.
8723 * lto-section-out.c: Likewise.
8724 * lto-streamer.c: Likewise.
8725 * rtl.h: Add tree-core.h to include list.
8726 * expr.h: Remove tree-core.h from include list.
8727 * gimple.h: Likewise.
8728 * ipa-utils.h: Likewise.
8729 * streamer-hooks.h: Likewise.
8730 * streamer-hooks.c: Include input.h.
8732 2013-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8734 * config/arm/arm.c (cortexa7_extra_costs): New table.
8735 (arm_cortex_a7_tune): New.
8736 * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8738 2013-10-29 Eric Botcazou <ebotcazou@adacore.com>
8740 * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8742 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8744 * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8745 to use autogenerated markers for a class-hierarchy, every class
8746 must have a GTY marker.
8747 * gengtype.h (struct type): Add linked list of subclasses to
8748 the "s" member of the union.
8749 (add_subclass): New decl.
8750 * gengtype-state.c (read_state_struct_type): Set up subclass
8752 * gengtype.c (get_ultimate_base_class): New.
8753 (add_subclass): New.
8754 (new_structure): Set up subclass linked list.
8755 (set_gc_used_type): Propagate usage information to subclasses.
8756 (output_mangled_typename): Use get_ultimate_base_class.
8757 (walk_subclasses): Use the subclass linked list, avoiding an
8758 O(N^2) when writing out all types.
8759 (walk_type): Issue an error if the base class is missing a tag,
8760 rather than generating bogus C code. Add a gcc_unreachable
8761 default case, in case people omit tags from concrete subclasses,
8762 or get the values wrong.
8763 (write_func_for_structure): Issue an error for subclasses for
8764 which the base doesn't have a "desc", since otherwise the
8765 autogenerated routines for the base would silently fail to visit
8766 any subclass fields.
8767 (write_root): Use get_ultimate_base_class, tweaking constness of
8768 tp to match that function's signature.
8770 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8772 * doc/gty.texi (GTY Options): Add note about inheritance to
8773 description of desc and tag.
8774 (Inheritance and GTY): New.
8776 2013-10-29 David Malcolm <dmalcolm@redhat.com>
8778 * gengtype-parse.c (opts_have): Drop "static" so that
8779 we can use this from gengtype.c.
8780 * gengtype.c (set_gc_used_type): Mark any base class as used;
8781 update field traversal to visit inherited fields.
8782 (output_mangled_typename): Convert references to classes within
8783 an inheritance hierarchy to reference the ultimate base class,
8784 since only it will have gt_ functions.
8785 (get_string_option): New.
8786 (walk_subclasses): New.
8787 (walk_type): Treat GTY structs that have a "desc" as being the
8788 root of an inheritance hierarchy. Generate a switch on it
8789 within the marking function which walks all subclasses, adding
8790 cases for them via walk_subclasses. For subclasses, visit all
8791 fields of the type (including inherited ones).
8792 (write_func_for_structure): Don't write fns for subclasses, only
8793 for the ultimate base class within an inheritance hierarchy.
8794 Subclasses-marking will be handled by the base class marking functions.
8795 (write_types): Likewise.
8796 (write_local_func_for_structure): Likewise.
8797 (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8798 a "tag" option (and are thus concrete subclasses).
8799 (write_root): Use the marker function for the ultimate base class.
8800 * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8801 (opts_have): Add declaration.
8803 2013-10-28 Vladimir Makarov <vmakarov@redhat.com>
8805 * lra-spills.c (lra_final_code_change): Remove useless move insns
8806 originated from moves of pseudos.
8808 2013-10-28 Jeff Law <law@redhat.com>
8810 * lower-subreg.c (resolve_simple_move): Fix comment typo.
8812 2013-10-28 Trevor Saunders <tsaunders@mozilla.com>
8814 * df-scan.c (df_collection_rec): Adjust.
8815 (copy_defs): New constant.
8816 (copy_uses): Likewise.
8817 (copy_eq_uses): Likewise.
8818 (copy_mw): Likewise.
8819 (copy_all): Likewise.
8820 (df_insn_rescan): Adjust.
8821 (df_notes_rescan): Likewise.
8822 (df_swap_refs): Likewise.
8823 (df_sort_and_compress_refs): Likewise.
8824 (df_sort_and_compress_mws): Likewise.
8825 (df_install_refs): Likewise.
8826 (df_install_mws): Likewise.
8827 (df_refs_add_to_chains): Add flags parameter controlling which vectors
8829 (df_bb_refs_record): Adjust.
8830 (df_record_entry_block_defs): Likewise.
8831 (df_record_exit_block_defs): Likewise.
8832 (df_refs_verify): Likewise.
8833 (df_mws_verify): Likewise.
8834 (df_insn_refs_verify): Likewise.
8835 (df_bb_verify): Likewise.
8836 * ipa-pure-const.c (finish_state): Remove.
8837 (propagate): Adjust.
8838 * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8839 tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8840 var-tracking.c: Adjust.
8841 * vec.c (stack_vecs): Remove.
8842 (register_stack_vec): Likewise.
8843 (stack_vec_register_index): Likewise.
8844 (unregister_stack_vec): Likewise.
8845 * vec.h (struct va_stack): Remove.
8846 (struct vec<T, A, vl_ptr>): Specialize as
8847 struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8848 allocation strategy compatable with the vl_ptr layout.
8849 (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8850 specialization anyway.
8851 (class stack_vec): New class.
8852 (vec_stack_alloc): Remove.
8853 (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8855 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8856 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8857 Sergey Lega <sergey.s.lega@intel.com>
8858 Anna Tikhonova <anna.tikhonova@intel.com>
8859 Ilya Tocar <ilya.tocar@intel.com>
8860 Andrey Turetskiy <andrey.turetskiy@intel.com>
8861 Ilya Verbin <ilya.verbin@intel.com>
8862 Kirill Yukhin <kirill.yukhin@intel.com>
8863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8865 * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8866 (*prefetch_avx512pf_<mode>): New.
8867 * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8868 (avx512f_maskcmp<mode>3): Ditto.
8869 (vashrv16si3): Ditto.
8871 2013-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8872 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8873 Sergey Lega <sergey.s.lega@intel.com>
8874 Anna Tikhonova <anna.tikhonova@intel.com>
8875 Ilya Tocar <ilya.tocar@intel.com>
8876 Andrey Turetskiy <andrey.turetskiy@intel.com>
8877 Ilya Verbin <ilya.verbin@intel.com>
8878 Kirill Yukhin <kirill.yukhin@intel.com>
8879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8881 * config/i386/i386.md (any_truncate): New.
8882 (trunsuffix): Ditto.
8883 * config/i386/predicates.md (const_8_to_9_operand): New.
8884 (const_10_to_11_operand): Ditto.
8885 (const_12_to_13_operand): Ditto.
8886 (const_14_to_15_operand): Ditto.
8887 (const_16_to_19_operand): Ditto.
8888 (const_20_to_23_operand): Ditto.
8889 (const_24_to_27_operand): Ditto.
8890 (const_28_to_31_operand): Ditto.
8891 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8892 (cvtusi2<ssescalarmodesuffix>32): New.
8893 (cvtusi2<ssescalarmodesuffix>64): Ditto.
8894 (ufloatv16siv16sf2): Ditto.
8895 (avx512f_fix_notruncv16sfv16si): Ditto.
8896 (avx512f_ufix_notruncv16sfv16si): Ditto.
8897 (avx512f_vcvtss2usi): Ditto.
8898 (avx512f_vcvtss2usiq): Ditto.
8899 (avx512f_vcvttss2usi): Ditto.
8900 (avx512f_vcvttss2usiq): Ditto.
8901 (avx512f_vcvtsd2usi): Ditto.
8902 (avx512f_vcvtsd2usiq): Ditto.
8903 (avx512f_vcvttsd2usi): Ditto.
8904 (avx512f_vcvttsd2usiq): Ditto.
8905 (ufloatv8siv8df): Ditto.
8906 (avx512f_cvtdq2pd512_2): Ditto.
8907 (avx512f_cvtpd2dq512): Ditto.
8908 (avx512f_ufix_notruncv8dfv8si): Ditto.
8909 (avx512f_cvtpd2ps512): Ditto.
8910 (vec_unpacks_lo_v16sf): Ditto.
8911 (vec_unpacks_hi_v16sf): Ditto.
8912 (vec_unpacks_float_hi_v16si): Ditto.
8913 (vec_unpacks_float_lo_v16si): Ditto.
8914 (avx512f_unpckhps512): Ditto.
8915 (avx512f_unpcklps512): Ditto.
8916 (avx512f_movshdup512): Ditto.
8917 (avx512f_movsldup512): Ditto.
8918 (vec_extract_lo_v32hi): Ditto.
8919 (vec_extract_hi_v32hi): Ditto.
8920 (vec_extract_lo_v64qi): Ditto.
8921 (vec_extract_hi_v64qi): Ditto.
8922 (avx512f_unpckhpd512): Ditto.
8923 (avx512f_movddup512): Ditto.
8924 (avx512f_unpcklpd512): Ditto.
8925 (*avx512f_unpcklpd512): Ditto.
8926 (avx512f_shufps512_1): Ditto.
8927 (avx512f_shufpd512_1): Ditto.
8928 (avx512f_interleave_highv8di): Ditto.
8929 (avx512f_interleave_lowv8di): Ditto.
8930 (PMOV_DST_MODE): Ditto.
8931 (pmov_src_mode): Ditto.
8932 (pmov_src_lower): Ditto.
8934 (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8935 (*avx512f_<code>v8div16qi2): Ditto.
8936 (*avx512f_<code>v8div16qi2_store): Ditto.
8937 (vec_widen_umult_even_v16si): Ditto.
8938 (*vec_widen_umult_even_v16si): Ditto.
8939 (vec_widen_smult_even_v16si): Ditto.
8940 (*vec_widen_smult_even_v16si): Ditto.
8941 (avx512f_interleave_highv16si): Ditto.
8942 (avx512f_interleave_lowv16si): Ditto.
8943 (avx512f_<code>v16qiv16si2): Ditto.
8944 (avx512f_<code>v16hiv16si2): Ditto.
8945 (avx512f_<code>v8qiv8di2): Ditto.
8946 (avx512f_<code>v8hiv8di2): Ditto.
8947 (avx512f_<code>v8siv8di2): Ditto.
8948 (avx512cd_maskb_vec_dupv8di): Ditto.
8949 (avx512cd_maskw_vec_dupv16si): Ditto.
8950 (avx512f_vcvtph2ps512): Ditto.
8951 (avx512f_vcvtps2ph512): Ditto.
8952 (VEC_EXTRACT_MODE): Extened with wider modes.
8953 (VEC_PERM_AVX2): Ditto.
8954 (VEC_PERM_CONST): Ditto.
8956 2013-10-28 Joern Rennecke <joern.rennecke@embecosm.com>
8958 * config/arc/arc.c (arc_ccfsm_post_advance):
8959 Add comment about TYPE_RETURN.
8961 2013-10-28 Bin Cheng <bin.cheng@arm.com>
8963 * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8964 Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8965 (strip_offset): Convert offset to unsigned number.
8967 2013-10-27 Tom de Vries <tom@codesourcery.com>
8969 * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8970 Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8972 2013-10-27 Oleg Endo <olegendo@gcc.gnu.org>
8974 * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8975 * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8976 (TARGET_BIG_ENDIAN): New macro.
8977 * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8978 Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8979 * config/sh/sh.c: Likewise.
8980 * config/sh/sh.h: Likewise.
8982 2013-10-27 Hans-Peter Nilsson <hp@axis.com>
8984 * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8985 removed PRED_MUDFLAP with PRED_NORETURN. Correct file-path in comment.
8987 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8989 * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8991 (cmpstr_t, cmpstrsi): Fix formatting.
8993 2013-10-26 Oleg Endo <olegendo@gcc.gnu.org>
8996 * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8997 addressing, do not use general_operand for memory operands.
8999 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
9002 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9003 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9005 2013-10-26 Jeff Law <law@redhat.com>
9007 * predict.c (PRED_MUDFLAP): Remove.
9008 * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
9010 * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
9011 (OBJS): Remove tree-nomudflap.o
9012 (GTFILES): Remove tree-mudflap.c
9013 * builtins.c (expand_builtin_alloc): Remove mudflap support.
9014 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9015 (mfwrap_spec, mflib_spec): Likewise.
9016 (cpp_unique_options, cc1_options, static_specs): Likewise.
9017 * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
9018 * passes.def: Likewise.
9019 * toplev.c (compile_file, process_options): Likewise.
9020 * tree-inline.c (copy_tree_r): Likewise.
9021 * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
9022 * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
9023 (build_constant_desc, output_constant_def_contents): Likewise.
9024 (categorize_decl_for_section): Likewise.
9025 * tree-mudflap.c: Removed.
9026 * tree-mudflap.h: Removed.
9027 * tree-nomudflap.c: Removed.
9028 * bfin/uclinux.h (MFWRAP_SPEC): Remove.
9029 * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
9030 * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
9031 * config/sol2.h (MFLIB_SPEC): Likewise.
9032 * doc/install.texi: Remove mudflap references.
9033 * doc/passes.texi: Similarly.
9034 * doc/sourcebuild.texi: Similarly.
9035 * doc/invoke.texi: Remove mudlfap related options.
9037 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9039 PR rtl-optimization/58759
9040 * lra-constraints.c (lra_constraints): Remove wrong condition to
9041 remove insn setting up an equivalent pseudo.
9043 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
9045 * config/rs6000/rs6000-protos.h
9046 (rs6000_secondary_memory_needed_mode): New prototype.
9047 * config/rs6000/rs6000.c: Include ira.h.
9048 (TARGET_LRA_P): Redefine.
9049 (rs6000_legitimate_offset_address_p): Call
9050 legitimate_constant_pool_address_p in strict mode for LRA.
9051 (rs6000_legitimate_address_p): Ditto.
9052 (legitimate_lo_sum_address_p): Add code for LRA. Use lra_in_progress.
9053 (rs6000_emit_move): Add LRA version of code to generate load/store
9055 (rs6000_secondary_memory_needed_mode): New.
9056 (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
9057 (rs6000_secondary_reload_class): Return NO_REGS for LRA for
9058 constants, memory, and FP registers.
9059 (rs6000_lra_p): New.
9060 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
9061 * config/rs6000/rs6000.opt (mlra): New option.
9062 * lra-spills.c (lra_final_code_change): Remove useless move insns.
9064 2013-10-25 Yufeng Zhang <yufeng.zhang@arm.com>
9066 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
9067 has_single_use () and not do the conversion if has_single_use ()
9068 returns false for the multiplication result.
9070 2013-10-25 David Malcolm <dmalcolm@redhat.com>
9072 * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
9073 to "NODE", since this works on a "tree", not an
9075 (CONSTANT_CLASS_P): Likewise.
9078 (INDIRECT_REF_P): Likewise.
9079 (REFERENCE_CLASS_P): Likewise.
9080 (COMPARISON_CLASS_P): Likewise.
9081 (UNARY_CLASS_P): Likewise.
9082 (BINARY_CLASS_P): Likewise.
9083 (STATEMENT_CLASS_P): Likewise.
9084 (VL_EXP_CLASS_P): Likewise.
9085 (EXPRESSION_CLASS_P): Likewise.
9086 (IS_TYPE_OR_DECL_P): Likewise.
9088 2013-10-25 Marc Glisse <marc.glisse@inria.fr>
9090 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
9091 ADDR_EXPR in the defining statement.
9093 2013-10-25 Richard Biener <rguenther@suse.de>
9095 PR tree-optimization/58626
9096 * tree-loop-distribution.c (enum rdg_dep_type): Remove
9097 anti_dd, output_dd and input_dd.
9098 (struct rdg_edge): Remove level and relation members.
9099 (RDGE_LEVEL, RDGE_RELATION): Remove.
9100 (dot_rdg_1): Adjust.
9101 (create_rdg_edge_for_ddr): Remove.
9102 (create_rdg_edges_for_scalar): Adjust.
9103 (create_edge_for_control_dependence): Likewise.
9104 (create_rdg_edges): Split into ...
9105 (create_rdg_flow_edges): ... this
9106 (create_rdg_cd_edges): ... and this.
9108 (build_rdg): Likewise, do not compute data dependences or
9110 (pg_add_dependence_edges): New function.
9112 (distribute_loop): First apply all non-dependence based
9113 partition mergings. Then compute dependences between partitions
9114 and merge and order partitions according to them.
9116 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9118 PR rtl-optimization/58831
9119 * alias.c (init_alias_analysis): At the beginning of each iteration,
9120 set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
9122 2013-10-25 Eric Botcazou <ebotcazou@adacore.com>
9124 * recog.c (search_ofs): New static variable moved from...
9125 (peep2_find_free_register): ...here.
9126 (peephole2_optimize): Initialize it.
9128 2013-10-25 Tobias Burnus <burnus@net-b.de>
9130 * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
9132 2013-10-25 Uros Bizjak <ubizjak@gmail.com>
9134 * config/i386/i386.h (TARGET_MPX): New define.
9135 (TARGET_MPX_P): Ditto.
9137 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9139 * config/i386/constraints.md (B): New.
9142 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
9143 * config/i386/i386-modes.def (BND32): New.
9145 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
9146 * config/i386/i386.c (isa_opts): Add mmpx.
9147 (regclass_map): Add bound registers.
9148 (dbx_register_map): Likewise.
9149 (dbx64_register_map): Likewise.
9150 (svr4_dbx_register_map): Likewise.
9152 (ix86_option_override_internal): Support MPX ISA.
9153 (ix86_conditional_register_usage): Support bound registers.
9154 (print_reg): Likewise.
9155 (ix86_code_end): Add MPX bnd prefix.
9156 (output_set_got): Likewise.
9157 (ix86_output_call_insn): Likewise.
9158 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
9159 (ix86_print_operand_punct_valid_p): Likewise.
9160 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
9162 (ix86_class_likely_spilled_p): Add bound regs support.
9163 (ix86_hard_regno_mode_ok): Likewise.
9164 (x86_order_regs_for_local_alloc): Likewise.
9165 (ix86_bnd_prefixed_insn_p): New.
9166 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
9167 (FIXED_REGISTERS): Add bound registers.
9168 (CALL_USED_REGISTERS): Likewise.
9169 (REG_ALLOC_ORDER): Likewise.
9170 (HARD_REGNO_NREGS): Likewise.
9172 (VALID_BND_REG_MODE): New.
9173 (FIRST_BND_REG): New.
9174 (LAST_BND_REG): New.
9175 (reg_class): Add BND_REGS.
9176 (REG_CLASS_NAMES): Likewise.
9177 (REG_CLASS_CONTENTS): Likewise.
9179 (ANY_BND_REG_P): New.
9181 (HI_REGISTER_NAMES): Add bound registers.
9182 * config/i386/i386.md (UNSPEC_BNDMK): New.
9183 (UNSPEC_BNDMK_ADDR): New.
9184 (UNSPEC_BNDSTX): New.
9185 (UNSPEC_BNDLDX): New.
9186 (UNSPEC_BNDLDX_ADDR): New.
9187 (UNSPEC_BNDCL): New.
9188 (UNSPEC_BNDCU): New.
9189 (UNSPEC_BNDCN): New.
9190 (UNSPEC_MPX_FENCE): New.
9193 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
9194 (length_immediate): Likewise.
9195 (prefix_0f): Likewise.
9197 (prefix_rep): Check for bnd prefix.
9198 (length_nobnd): New.
9199 (length): Use length_nobnd if specified.
9204 (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
9207 (simple_return_internal): Likewise.
9208 (simple_return_pop_internal): Likewise.
9209 (*indirect_jump): Add MPX bnd prefix.
9210 (*tablejump_1): Likewise.
9211 (simple_return_internal_long): Likewise.
9212 (simple_return_indirect_internal): Likewise.
9216 (*mov<mode>_internal_mpx): New.
9217 (<mode>_<bndcheck>): New.
9218 (*<mode>_<bndcheck>): New.
9223 * config/i386/predicates.md (lea_address_operand): Rename to...
9224 (address_no_seg_operand): ... this.
9225 (address_mpx_no_base_operand): New.
9226 (address_mpx_no_index_operand): New.
9227 (bnd_mem_operator): New.
9228 * config/i386/i386.opt (mmpx): New.
9229 * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
9230 * doc/rtl.texi Add documentation for BND32mode and BND64mode.
9232 2013-10-24 Ilya Enkovich <ilya.enkovich@intel.com>
9234 * mode-classes.def (MODE_POINTER_BOUNDS): New.
9235 * tree.def (POINTER_BOUNDS_TYPE): New.
9236 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
9237 (POINTER_BOUNDS_MODE): New.
9238 (make_pointer_bounds_mode): New.
9239 * machmode.h (POINTER_BOUNDS_MODE_P): New.
9240 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
9241 (layout_type): Support POINTER_BOUNDS_TYPE.
9242 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
9243 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
9244 (type_contains_placeholder_1): Likewise.
9245 * tree.h (POINTER_BOUNDS_TYPE_P): New.
9246 * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
9247 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
9249 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9251 * expr.c (expand_expr_real_1): Use mode of memory reference rather than
9252 mode of address computation when calling memory_address_addr_space.
9254 2013-08-24 Richard Henderson <rth@twiddle.net>
9257 * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
9258 instead of create_convert_operand_to.
9259 (maybe_emit_sync_lock_test_and_set): Likewise.
9260 (expand_atomic_compare_and_swap): Likewise.
9261 (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
9263 2013-08-24 Sriraman Tallam <tmsriram@google.com>
9265 * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
9266 Change param_is to use the struct and not the pointer to the struct.
9268 2013-10-24 Andrew MacLeod <amacleod@redhat.com>
9270 * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
9271 * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9272 Move to targhooks.c.
9273 (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
9274 * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
9275 Relocate from gimplify.c.
9276 * targhooks.h: Add 2 prototypes.
9277 * tree.h: Delete 2 prototypes.
9279 2013-10-24 Igor Shevlyakov <igor.shevlyakov@gmail.com>
9281 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
9282 [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
9284 2013-10-24 Cong Hou <congh@google.com>
9286 * convert.c (convert_to_real): Guard those unsafe math function
9287 convertions with flag_unsafe_math_optimizations. Handle sqrt()
9290 2013-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
9293 * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
9295 (cgraph_create_edge): Use the new argument.
9296 (cgraph_create_indirect_edge): Likewise.
9298 2013-10-24 Joern Rennecke <joern.rennecke@embecosm.com>
9300 * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
9302 (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
9303 changes statep->state.
9305 2013-10-24 Tobias Burnus <burnus@net-b.de>
9308 * tree-cfg.c (replace_loop_annotate): New function.
9309 (execute_build_cfg): Call it.
9310 * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
9311 * internal-fn.c (expand_ANNOTATE): New function.
9312 * internal-fn.def (ANNOTATE): Define as new internal function.
9313 * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
9314 * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
9315 * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
9316 * doc/extend.texi (Pragmas): Document #pragma ivdep.
9317 * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
9319 2013-10-17 Ian Bolton <ian.bolton@arm.com>
9320 Marcus Shawcroft <marcus.shawcroft@arm.com>
9322 * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
9323 Special case reload SP+C into none GENERAL_REGS.
9325 2013-10-24 Michael Matz <matz@suse.de>
9327 * gengtype.c (is_file_equal): Check that files will be same length.
9329 2013-10-25 Christian Bruel <christian.bruel@st.com>
9331 * config.gcc (sh-*): Add sh-mem.o to extra_obj.
9332 * config/sh/t-sh (sh-mem.o): New rule.
9333 * config/sh/sh-mem.cc (expand_block_move): Moved here.
9334 (sh_expand_cmpstr): New function.
9335 * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
9336 * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
9337 * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
9338 (rotlhi3_8): Rename.
9340 2013-10-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9342 * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
9343 * Makefile.in (CXXDEPMODE): Assign and change users.
9344 (CCDEPMODE): Delete.
9345 * configure: Regenerate.
9347 2013-10-23 David Malcolm <dmalcolm@redhat.com>
9349 * gengtype-parse.c (require_without_advance): New.
9350 (type): For GTY-marked types that are not GTY((user)), parse any
9351 base classes, requiring them to be single-inheritance, and not
9352 be templates. For non-GTY-marked types and GTY((user)),
9353 continue to skip over any C++ inheritance specification.
9354 * gengtype-state.c (state_writer::write_state_struct_type):
9355 Write base class of type (if any).
9356 (read_state_struct_type): Read base class of type (if any).
9357 * gengtype.c (new_structure): Add a "base_class" parameter.
9358 (create_optional_field_): Update for new parameter to new_structure.
9359 (adjust_field_rtx_def): Likewise.
9360 (adjust_field_tree_exp): Likewise.
9361 * gengtype.h (struct type): Add "base_class" field to the s
9363 (new_structure): Add "base" parameter.
9365 2013-10-23 Sriraman Tallam <tmsriram@google.com>
9368 * config/i386/i386.c (ix86_option_override_internal):
9369 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9370 (ix86_valid_target_attribute_tree):
9371 Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9372 Change TARGET_SSE to TARGET_SSE_P (opts->...)
9374 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9376 * tree-ssa-loop.h: Remove include files.
9377 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9378 * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9379 * graphite-clast-to-gimple.c: Likewise.
9380 * graphite-scop-detection.c: Likewise.
9381 * graphite-sese-to-poly.c: Likewise.
9382 * ipa-inline-analysis.c: Likewise.
9383 * ipa-pure-const.c: Likewise.
9384 * loop-init.c: Likewise.
9385 * passes.c: Likewise.
9386 * predict.c: Likewise.
9387 * tree-cfg.c: Likewise.
9388 * tree-cfgcleanup.c: Likewise.
9389 * tree-chrec.c: Likewise.
9390 * tree-data-ref.c: Likewise.
9391 * tree-loop-distribution.c: Likewise.
9392 * tree-parloops.c: Likewise.
9393 * tree-predcom.c: Likewise.
9394 * tree-scalar-evolution.c: Likewise.
9395 * tree-ssa-address.c: Likewise.
9396 * tree-ssa.c: Likewise.
9397 * tree-ssa-dce.c: Likewise.
9398 * tree-ssa-loop.c: Likewise.
9399 * tree-ssa-loop-im.c: Likewise.
9400 * tree-ssa-loop-ivcanon.c: Likewise.
9401 * tree-ssa-loop-ivopts.c: Likewise.
9402 * tree-ssa-loop-manip.c: Likewise.
9403 * tree-ssa-loop-niter.c: Likewise.
9404 * tree-ssa-loop-prefetch.c: Likewise.
9405 * tree-ssa-loop-unswitch.c: Likewise.
9406 * tree-ssa-reassoc.c: Likewise.
9407 * tree-vect-data-refs.c: Likewise.
9408 * tree-vect-loop.c: Likewise.
9409 * tree-vect-loop-manip.c: Likewise.
9410 * tree-vectorizer.c: Likewise.
9411 * tree-vect-stmts.c: Likewise.
9412 * tree-vrp.c: Likewise.
9414 2013-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9416 * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9418 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9420 PR tree-optimization/58775
9421 PR tree-optimization/58791
9422 * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9423 (insert_stmt_after): Rewritten, don't move the stmt, but really
9425 (get_stmt_uid_with_default): Remove.
9426 (build_and_add_sum): Use insert_stmt_after and
9427 reassoc_stmt_dominates_stmt_p. Fix up uid if bb contains only labels.
9428 (update_range_test): Set uid on stmts added by
9429 force_gimple_operand_gsi. Don't immediately modify statements
9430 in inter-bb optimization, just update oe->op values.
9431 (optimize_range_tests): Return bool whether any changed have been made.
9432 (update_ops): New function.
9433 (struct inter_bb_range_test_entry): New type.
9434 (maybe_optimize_range_tests): Perform statement changes here.
9435 (not_dominated_by, appears_later_in_bb, get_def_stmt,
9436 ensure_ops_are_available): Remove.
9437 (find_insert_point): Rewritten.
9438 (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9439 return LHS of the (new resp. old) stmt. Don't call
9440 ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9441 instead of last, move new stmt at the right place.
9442 (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9443 (negate_value): Likewise. Set uids.
9444 (break_up_subtract_bb): Initialize uids.
9445 (reassociate_bb): Adjust rewrite_expr_tree caller.
9446 (do_reassoc): Don't call renumber_gimple_stmt_uids.
9448 2013-10-23 David Edelsohn <dje.gcc@gmail.com>
9451 * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9452 TARGET_32BIT final condition.
9453 (mulsi3_internal2 and splitter): Same.
9455 2013-10-23 Jeff Law <law@redhat.com>
9457 * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9458 through joiner blocks with abnormal outgoing edges.
9460 * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9461 Add parameter JOINERS, to allow/disallow threading through joiner
9463 (thread_block): New. Call thread_block_1.
9464 (mark_threaded_blocks): Remove code to filter out certain cases
9465 of threading through joiner blocks.
9466 (thread_through_all_blocks): Document how we can have a dangling
9467 edge AUX field and clear it.
9469 2013-10-23 Ian Lance Taylor <iant@google.com>
9471 * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9472 (C++ Dialect Options): Likewise.
9473 (Optimize Options): Likewise.
9475 2013-10-23 Tom de Vries <tom@codesourcery.com>
9477 PR tree-optimization/58805
9478 * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9480 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9482 * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9483 sequence based on get_range_info returned range.
9485 2013-10-23 Andrew MacLeod <amacleod@redhat.com>
9487 * tree-ssa.h: Remove all #include's
9488 * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9489 * alias.c: Move required includes from tree-ssa.h.
9491 * builtins.c: Likewise.
9492 * calls.c: Likewise.
9493 * cfgexpand.c: Likewise.
9494 * cfghooks.c: Likewise.
9495 * cfgloop.c: Likewise.
9496 * cfgloopmanip.c: Likewise.
9497 * cgraph.c: Likewise.
9498 * cgraphbuild.c: Likewise.
9499 * cgraphclones.c: Likewise.
9500 * cgraphunit.c: Likewise.
9502 * except.c: Likewise.
9504 * final.c: Likewise.
9505 * fold-const.c: Likewise.
9506 * ggc-page.c: Likewise.
9507 * gimple-builder.c: Likewise.
9508 * gimple-fold.c: Likewise.
9509 * gimple-iterator.c: Likewise.
9510 * gimple-low.c: Likewise.
9511 * gimple-pretty-print.c: Likewise.
9512 * gimple-ssa-strength-reduction.c: Likewise.
9513 * gimple-streamer-in.c: Likewise.
9514 * gimple-streamer-out.c: Likewise.
9515 * gimplify.c: Likewise.
9516 * graphite-blocking.c: Likewise.
9517 * graphite-clast-to-gimple.c: Likewise.
9518 * graphite-dependences.c: Likewise.
9519 * graphite-interchange.c: Likewise.
9520 * graphite-optimize-isl.c: Likewise.
9521 * graphite-poly.c: Likewise.
9522 * graphite-scop-detection.c: Likewise.
9523 * graphite-sese-to-poly.c: Likewise.
9524 * graphite.c: Likewise.
9525 * ipa-cp.c: Likewise.
9526 * ipa-inline-analysis.c: Likewise.
9527 * ipa-inline-transform.c: Likewise.
9528 * ipa-inline.c: Likewise.
9529 * ipa-prop.c: Likewise.
9530 * ipa-pure-const.c: Likewise.
9531 * ipa-reference.c: Likewise.
9532 * ipa-split.c: Likewise.
9533 * ipa-utils.c: Likewise.
9534 * loop-init.c: Likewise.
9535 * lto-cgraph.c: Likewise.
9536 * lto-section-in.c: Likewise.
9537 * lto-section-out.c: Likewise.
9538 * lto-streamer-in.c: Likewise.
9539 * lto-streamer-out.c: Likewise.
9540 * lto-streamer.c: Likewise.
9541 * omp-low.c: Likewise.
9542 * passes.c: Likewise.
9543 * predict.c: Likewise.
9544 * print-tree.c: Likewise.
9545 * profile.c: Likewise.
9547 * targhooks.c: Likewise.
9548 * tracer.c: Likewise.
9549 * trans-mem.c: Likewise.
9550 * tree-call-cdce.c: Likewise.
9551 * tree-cfg.c: Likewise.
9552 * tree-cfgcleanup.c: Likewise.
9553 * tree-chrec.c: Likewise.
9554 * tree-complex.c: Likewise.
9555 * tree-data-ref.c: Likewise.
9556 * tree-dfa.c: Likewise.
9557 * tree-eh.c: Likewise.
9558 * tree-emutls.c: Likewise.
9559 * tree-if-conv.c: Likewise.
9560 * tree-inline.c: Likewise.
9561 * tree-into-ssa.c: Likewise.
9562 * tree-loop-distribution.c: Likewise.
9563 * tree-mudflap.c: Likewise.
9564 * tree-nested.c: Likewise.
9565 * tree-nrv.c: Likewise.
9566 * tree-object-size.c: Likewise.
9567 * tree-outof-ssa.c: Likewise.
9568 * tree-parloops.c: Likewise.
9569 * tree-phinodes.c: Likewise.
9570 * tree-predcom.c: Likewise.
9571 * tree-pretty-print.c: Likewise.
9572 * tree-profile.c: Likewise.
9573 * tree-scalar-evolution.c: Likewise.
9574 * tree-sra.c: Likewise.
9575 * tree-ssa-address.c: Likewise.
9576 * tree-ssa-alias.c: Likewise.
9577 * tree-ssa-ccp.c: Likewise.
9578 * tree-ssa-coalesce.c: Likewise.
9579 * tree-ssa-copy.c: Likewise.
9580 * tree-ssa-copyrename.c: Likewise.
9581 * tree-ssa-dce.c: Likewise.
9582 * tree-ssa-dom.c: Likewise.
9583 * tree-ssa-dse.c: Likewise.
9584 * tree-ssa-forwprop.c: Likewise.
9585 * tree-ssa-ifcombine.c: Likewise.
9586 * tree-ssa-live.c: Likewise.
9587 * tree-ssa-loop-ch.c: Likewise.
9588 * tree-ssa-loop-im.c: Likewise.
9589 * tree-ssa-loop-ivcanon.c: Likewise.
9590 * tree-ssa-loop-ivopts.c: Likewise.
9591 * tree-ssa-loop-manip.c: Likewise.
9592 * tree-ssa-loop-niter.c: Likewise.
9593 * tree-ssa-loop-prefetch.c: Likewise.
9594 * tree-ssa-loop-unswitch.c: Likewise.
9595 * tree-ssa-loop.c: Likewise.
9596 * tree-ssa-math-opts.c: Likewise.
9597 * tree-ssa-operands.c: Likewise.
9598 * tree-ssa-phiopt.c: Likewise.
9599 * tree-ssa-phiprop.c: Likewise.
9600 * tree-ssa-pre.c: Likewise.
9601 * tree-ssa-propagate.c: Likewise.
9602 * tree-ssa-reassoc.c: Likewise.
9603 * tree-ssa-sccvn.c: Likewise.
9604 * tree-ssa-sink.c: Likewise.
9605 * tree-ssa-strlen.c: Likewise.
9606 * tree-ssa-structalias.c: Likewise.
9607 * tree-ssa-tail-merge.c: Likewise.
9608 * tree-ssa-ter.c: Likewise.
9609 * tree-ssa-threadedge.c: Likewise.
9610 * tree-ssa-threadupdate.c: Likewise.
9611 * tree-ssa-uncprop.c: Likewise.
9612 * tree-ssa-uninit.c: Likewise.
9613 * tree-ssa.c: Likewise.
9614 * tree-ssanames.c: Likewise.
9615 * tree-stdarg.c: Likewise.
9616 * tree-streamer-in.c: Likewise.
9617 * tree-switch-conversion.c: Likewise.
9618 * tree-tailcall.c: Likewise.
9619 * tree-vect-data-refs.c: Likewise.
9620 * tree-vect-generic.c: Likewise.
9621 * tree-vect-loop-manip.c: Likewise.
9622 * tree-vect-loop.c: Likewise.
9623 * tree-vect-patterns.c: Likewise.
9624 * tree-vect-slp.c: Likewise.
9625 * tree-vect-stmts.c: Likewise.
9626 * tree-vectorizer.c: Likewise.
9627 * tree-vrp.c: Likewise.
9630 * value-prof.c: Likewise.
9631 * var-tracking.c: Likewise.
9632 * varpool.c: Likewise.
9633 * vtable-verify.c: Likewise.
9635 2013-10-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9637 * config/tilegx/tilegx.c: Include "tree.h".
9639 2013-10-23 Jakub Jelinek <jakub@redhat.com>
9641 * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9642 the info, not after it.
9643 (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9644 dump_ssaname_info call.
9645 (pp_gimple_stmt_1): Adjust caller.
9646 (dump_phi_nodes): Likewise. Don't print "# " here.
9648 2013-10-22 Jan Hubicka <jh@suse.cz>
9650 * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9652 * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9653 * i386.c (expand_small_movmem_or_setmem): New function.
9654 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9656 (alg_usable_p): Add support for value ranges; cleanup.
9657 (ix86_expand_set_or_movmem): Add support for misaligned moves.
9659 2013-10-22 Sterling Augustine <saugustine@google.com>
9661 * doc/invoke.texi: Document -ggnu-pubnames.
9662 * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9664 * dwarf2out.c: Include gdb/gdb-index.h.
9665 (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9666 debug_generate_pub_sections.
9667 (is_java, output_pubtables, output_pubname): New functions.
9668 (include_pubname_in_output): Handle debug_generate_pub_sections at
9670 (size_of_pubnames): Use new local space_for_flags based on
9671 debug_generate_pub_sections.
9672 (output_pubnames): Unify pubnames and pubtypes output logic.
9673 Genericize comments. Call output_pubname.
9674 (dwarf2out_finish): Move logic to output_pubnames and call it.
9676 2013-10-22 Uros Bizjak <ubizjak@gmail.com>
9679 * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9680 Remove CCCmode handling.
9681 <case LTU>: Return 'c' suffix for CCCmode.
9682 <case GEU>: Return 'nc' suffix for CCCmode.
9683 (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9684 * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9685 (*sub<mode>3_cc_overflow): Ditto.
9686 (*subsi3_zext_cc_overflow): Ditto.
9688 2013-10-22 Steve Ellcey <sellcey@mips.com>
9690 * config/mips/mips.c (mips_rtx_costs): Fix cost estimate for nor
9691 (AND (NOT OP1) (NOT OP2)).
9693 2013-10-22 Bill Schmidt <wschmidt@vnet.ibm.com>
9695 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9696 meaning of merge-high and merge-low masks for little endian; avoid
9697 use of vector-pack masks for little endian for mismatched modes.
9699 2013-10-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9701 * config/tilepro/tilepro.c: Include "tree.h".
9703 2013-10-22 Andreas Schwab <schwab@suse.de>
9705 * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9708 2013-10-22 Paolo Carlini <paolo.carlini@oracle.com>
9710 * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9711 [Ed Smith-Rowland]): New entries.
9712 ([Stephen M. Webb]): Update.
9714 2013-10-22 Andrew MacLeod <amacleod@redhat.com>
9716 * tree-ssa-ter.h: Remove duplicate copy of file contents.
9718 2013-10-21 Marek Polacek <polacek@redhat.com>
9721 * fold-const.c (fold_range_test): Return 0 if the type is not
9724 2013-10-21 Richard Sandiford <rdsandiford@googlemail.com>
9726 * system.h: Move hwint.h include further down.
9727 * hwint.h (sext_hwi, zext_hwi): Define unconditionally. Add
9728 gcc_checking_asserts.
9729 * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9731 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9733 Fix volatile issues in optimize_bit_field_compare.
9734 * fold-const.c (optimize_bit_field_compare): Bail out if
9735 lvolatilep or rvolatilep.
9737 2013-10-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9739 Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9740 and get_inner_reference returning different pmode for non-volatile
9741 bit-field members dependent on flag_strict_volatile_bitfields.
9742 * stor-layout.c (layout_decl): Remove special handling of
9743 flag_strict_volatile_bitfields.
9744 * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9745 if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9747 2013-10-21 Paulo Matos <pmatos@broadcom.com>
9749 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9752 2013-10-21 Jeff Law <law@redhat.com>
9754 * tree-ssa-threadedge.c (thread_through_normal_block): New
9755 argument VISITED. Remove VISISTED as a local variable. When we
9756 have a threadable jump, verify the destination of the jump has not
9758 (thread_across_edge): Allocate VISITED bitmap once at function
9759 scope and use it throughout. Make sure to set appropriate bits in
9760 VISITED for E (start of jump thread path).
9761 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9762 through a joiner if any edge on the path has a recorded jump thread.
9764 2013-10-21 Ian Lance Taylor <iant@google.com>
9766 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9767 don't imply that attributes can solve all problems.
9768 (Directory Options): Fix typo.
9770 2013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9772 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9773 extend and extend_add.
9775 2013-10-21 Richard Biener <rguenther@suse.de>
9777 PR tree-optimization/58794
9778 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9779 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9781 2013-10-21 Richard Biener <rguenther@suse.de>
9784 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9785 to (T) X for sign-changing conversions (or no conversion).
9787 2013-10-20 Uros Bizjak <ubizjak@gmail.com>
9789 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9791 2013-10-20 Jan Hubicka <jh@suse.cz>
9793 * config/i386/i386-tune.def: Add comment; organize into categories
9795 2013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
9797 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9798 argument. Update function comment.
9799 (expand_set_or_movmem_via_rep): New function combining
9800 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9801 (expand_movmem_via_rep_mov): Remove.
9802 expand_setmem_via_rep_stos): Remove.
9803 (expand_movmem_epilogue): Update calls correspondingly.
9804 (expand_setmem_epilogue_via_loop): Likewise.
9806 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9807 (expand_set_or_movmem_prologue): New function combining
9808 expand_movmem_prologue and expand_setmem_prologue.
9809 (expand_movmem_prologue): Remove.
9810 (expand_setmem_prologue): Remove.
9811 (expand_set_or_movmem_constant_prologue): New function combining
9812 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9813 (expand_constant_movmem_prologue): Remove.
9814 (expand_constant_setmem_prologue): Remove.
9815 (promote_duplicated_reg): Allow vector-const0 value.
9816 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9817 and ix86_expand_setmem.
9818 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9819 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9821 2013-10-21 Diego Novillo <dnovillo@google.com>
9823 * asan.c: Include tree.h
9824 * bb-reorder.c: Likewise.
9825 * cfgcleanup.c: Likewise.
9826 * cfgloopmanip.c: Likewise.
9827 * data-streamer-in.c: Likewise.
9828 * data-streamer-out.c: Likewise.
9829 * data-streamer.c: Likewise.
9830 * dwarf2cfi.c: Likewise.
9831 * graphite-blocking.c: Likewise.
9832 * graphite-clast-to-gimple.c: Likewise.
9833 * graphite-dependences.c: Likewise.
9834 * graphite-interchange.c: Likewise.
9835 * graphite-optimize-isl.c: Likewise.
9836 * graphite-poly.c: Likewise.
9837 * graphite-scop-detection.c: Likewise.
9838 * graphite-sese-to-poly.c: Likewise.
9839 * graphite.c: Likewise.
9840 * ipa-devirt.c: Likewise.
9841 * ipa-profile.c: Likewise.
9844 * loop-init.c: Likewise.
9845 * loop-unroll.c: Likewise.
9846 * lower-subreg.c: Likewise.
9847 * lto/lto-object.c: Likewise.
9848 * recog.c: Likewise.
9849 * reginfo.c: Likewise.
9850 * tree-loop-distribution.c: Likewise.
9851 * tree-parloops.c: Likewise.
9852 * tree-ssa-strlen.c: Likewise.
9853 * tree-streamer.c: Likewise.
9854 * value-prof.c: Likewise.
9855 * target-globals.c: Likewise.
9856 * expr.h: Include tree-core.h instead of tree.h.
9857 * gimple.h: Likewise.
9858 * ipa-prop.h: Likewise.
9859 * ipa-utils.h: Likewise.
9860 * lto-streamer.h: Likewise.
9861 * streamer-hooks.h: Likewise.
9862 * ipa-reference.h: Include cgraph.h instead of tree.h.
9863 * cgraph.h: Include basic-block.h instead of tree.h.
9864 * tree-streamer.h: Do not include tree.h.
9865 * genattrtab.c (write_header): Generate inclusion of tree.h.
9866 * genautomata.c (main): Likewise.
9867 * genemit.c: Likewise.
9868 * genopinit.c: Likewise.
9869 * genoutput.c (output_prologue): Likewise.
9870 * genpeep.c: Likewise.
9872 2013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9874 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9876 (vec_unpacku_hi_v8hi): Likewise.
9877 (vec_unpacku_lo_v16qi): Likewise.
9878 (vec_unpacku_lo_v8hi): Likewise.
9880 2013-10-20 Jan Hubicka <jh@suse.cz>
9882 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9883 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9884 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9886 2013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
9888 * config/mips/mips.h (ISA_HAS_WSBH): Define.
9889 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9891 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9893 2013-10-19 John David Anglin <danglin@gcc.gnu.org>
9896 * system.h: Undef m_slot.
9898 2013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9900 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9901 all elements for both endian flavors.
9903 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9906 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9907 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
9908 and SI_REG for 64bit SYSV ABI targets.
9910 2013-10-19 Uros Bizjak <ubizjak@gmail.com>
9912 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9913 to multi_reg_return. Clarify that we are skipping USEs of multiple
9914 return registers. Use bool type where appropriate.
9916 2013-10-18 Jan Hubicka <jh@suse.cz>
9918 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9920 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9921 (X86_TUNE_PUSH_MEMORY): Likewise.
9922 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9923 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9924 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9926 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9927 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9929 (ix86_option_override_internal): Update to use tune features instead
9932 2013-10-18 Cong Hou <congh@google.com>
9934 PR tree-optimization/58508
9935 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9936 statement that contains data refs with zero-step.
9938 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
9940 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9941 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9942 * gimple-low.c (gimple_check_call_arg,
9943 gimple_check_call_matching_types): Move to cgraph.c.
9944 * gimple-low.h: Remove prototype.
9945 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9946 Relocate from gimple-low.c.
9947 * cgraph.h: Add prototype. Don't include basic-block.h.
9948 * gimplify.c: Add gimple-low to include list.
9949 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9950 * tree-eh.c: Add gimple-low to include list.
9951 * tree-nested.c: Likewise.
9952 * cfgexpand.c: Add tree-ssa-address.h to include list.
9954 * gimple-fold.c: Likewise.
9955 * gimple-ssa-strength-reduction.c: Likewise.
9956 * trans-mem.c: Likewise.
9957 * tree-mudflap.c: Likewise.
9958 * tree-ssa-loop-ivopts.c: Likewise.
9959 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9960 (degenerate_phi_result): Move to tree-phinodes.c.
9961 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9962 * tree-ssa-threadedge.c: Likewise.
9963 * tree-vrp.c: Likewise.
9964 * tree-phinodes.c (degenerate_phi_result): Relocate here.
9965 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9966 * tree-phinodes.h (degenerate_phi_result): Add prototype.
9967 * tree-ssa-copy.c: Include tree-ssa-dom.h.
9968 * tree-ssa-forwprop.c: Likewise.
9969 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9970 pass_data_cleanup_cfg_post_optimizing,
9971 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9972 * tree-optimize.c: Delete File.
9973 * graphite.c: Include tree-cfgcleanup.h.
9974 * passes.c: Likewise.
9975 * tree-cfg.c: Likewise.
9976 * tree-profile.c: Likewise.
9977 * tree-ssa-dse.c: Likewise.
9978 * tree-ssa-loop-ivcanon.c: Likewise.
9979 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9980 * tree-outof-ssa.c: Include sbitmap.h.
9981 * tree-ssa-live.c: Likewise.
9982 * tree-ssa-propagate.c: Likewise.
9983 * tree-ssa-structalias.c: Likewise.
9984 * tree-stdarg.c: Likewise.
9985 * Makefile.in (OBJS): Delete tree-optimize.o.
9986 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9987 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9988 * varasm.c: Include basic-block.h.
9989 * cfgloop.h: Include function.h instead of basic-block.h
9990 (bb_loop_depth): Move to cfgloop.c.
9991 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9993 2013-10-18 Teresa Johnson <tejohnson@google.com>
9995 * predict.c (probably_never_executed): Compare frequency-based
9996 count to number of training runs.
9997 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9999 2013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10001 * config/arm/arm.c (cortexa9_extra_costs): New table.
10002 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
10004 2013-10-18 Jeff Law <law@redhat.com>
10006 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
10008 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
10009 (register_jump_thread): Add "registered_jump_thread" debug
10011 * dbgcnt.def (registered_jump_thread): New debug counter.
10013 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10015 * config/rs6000/rs6000.c: Include cgraph.h.
10017 2013-10-18 Teresa Johnson <tejohnson@google.com>
10019 * tree-ssa-tail-merge.c (replace_block_by): Update edge
10020 weights during merging.
10022 2013-10-18 Andrew MacLeod <amacleod@redhat.com>
10024 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
10025 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
10026 * tree-ssa-operands.h: Remove prototype.
10027 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
10028 * gimple.c (virtual_operand_p): Relocate from gimple.c.
10029 * gimple.h: Add prototype.
10030 * gimple-ssa.h: Include tree-ssa-operands.h.
10031 * tree-dump.c: Add tree-cfg.h to include list.
10032 * tree-ssa-alias.c: Add ipa-reference.h to include list.
10033 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
10034 * config/i386/i386.c: Don't include tree-flow.h.
10035 * config/rs6000/rs6000.c: Likewise.
10037 2013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10039 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
10041 2013-10-18 Richard Biener <rguenther@suse.de>
10043 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
10044 or TYPE_UNSIGNED of integral types.
10045 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
10046 NULL_TREE for zero-precision integral types.
10048 2013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
10050 * config/aarch64/arm_neon.h
10051 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
10053 2013-10-17 Sriraman Tallam <tmsriram@google.com>
10056 * opth-gen.awk: Define target_flags_explicit.
10058 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10060 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
10061 fields to the reg_addr array that describes the valid addressing
10062 mode for any register, general purpose registers, floating point
10063 registers, and Altivec registers.
10064 (FIRST_RELOAD_REG_CLASS): Likewise.
10065 (LAST_RELOAD_REG_CLASS): Likewise.
10066 (struct reload_reg_map_type): Likewise.
10067 (reload_reg_map_type): Likewise.
10068 (RELOAD_REG_VALID): Likewise.
10069 (RELOAD_REG_MULTIPLE): Likewise.
10070 (RELOAD_REG_INDEXED): Likewise.
10071 (RELOAD_REG_OFFSET): Likewise.
10072 (RELOAD_REG_PRE_INCDEC): Likewise.
10073 (RELOAD_REG_PRE_MODIFY): Likewise.
10074 (reg_addr): Likewise.
10075 (mode_supports_pre_incdec_p): New helper functions to say whether
10076 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
10077 (mode_supports_pre_modify_p): Likewise.
10078 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
10079 print the valid address mode bits for each mode.
10080 (rs6000_debug_print_mode): Likewise.
10081 (rs6000_debug_reg_global): Likewise.
10082 (rs6000_setup_reg_addr_masks): New function to set up the address
10083 mask bits for each type.
10084 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
10085 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
10086 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
10087 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
10088 PRE_MODIFY are supported.
10089 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
10090 registers, instead of {src,dest}_av_p.
10091 (rs6000_print_options_internal): Tweak the debug output slightly.
10093 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10095 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
10098 2013-10-17 Andrew MacLeod <amacleod@redhat.com>
10100 * tree-flow.h (struct omp_region): Move to omp-low.c.
10101 Remove omp_ prototypes and variables.
10102 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
10103 (copy_var_decl): Relocate prototype from tree-flow.h.
10104 * gimple.c (copy_var_decl): Relocate from omp-low.c.
10105 * tree.h: Move prototype to omp-low.h.
10106 * omp-low.h: New File. Relocate prototypes here.
10107 * omp-low.c (struct omp_region): Make local here.
10108 (root_omp_region): Make static.
10109 (copy_var_decl) Move to gimple.c.
10110 (new_omp_region): Make static.
10111 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
10112 * tree-cfg.c: Include omp-low.h.
10113 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
10114 * gimplify.c: Include omp-low.h.
10115 * tree-parloops.c: Likewise.
10117 2013-10-17 Uros Bizjak <ubizjak@gmail.com>
10119 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
10120 operands are in memory, prefer to force non-matched operand 1 to
10123 2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
10126 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
10127 restrict TImode addresses to single indirect registers if both
10128 -mquad-memory and -mvsx-timode are used.
10129 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
10130 we should emit load/store quad. Remove using %y for quad memory
10133 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
10134 constraints to allow load/store quad on machines where TImode is
10135 not allowed in VSX registers. Use 'n' instead of 'F' constraint
10136 for TImode to load integer constants.
10138 2013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10140 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
10142 2013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
10144 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
10145 handling of STACK_REG.
10147 2013-10-17 Richard Biener <rguenther@suse.de>
10149 PR tree-optimization/58143
10150 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
10152 (rewrite_to_defined_overflow): Likewise.
10153 (move_computations_dom_walker::before_dom): Rewrite stmts
10154 with undefined signed overflow that are not always executed
10155 into unsigned arithmetic.
10157 2013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
10160 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
10161 explicit isa flag to be an options variable, instead of using
10162 global_options_set. Remove define from rs6000.h.
10163 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
10165 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10166 Initialize rs6000_isa_flags_explicit.
10167 (rs6000_function_specific_save): Add gcc_options* parameter, so
10168 that the powerpc builds after the 2013-10-15 changes.
10169 (rs6000_function_specific_restore): Likewise.
10171 2013-10-16 DJ Delorie <dj@redhat.com>
10173 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
10174 op is a REG before checking REGNO.
10175 (rl78_alloc_physical_registers): Verify pattern is a SET before
10178 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10180 * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
10182 (vec_unpacks_lo_v4sf): Likewise.
10183 (vec_unpacks_float_hi_v4si): Likewise.
10184 (vec_unpacks_float_lo_v4si): Likewise.
10185 (vec_unpacku_float_hi_v4si): Likewise.
10186 (vec_unpacku_float_lo_v4si): Likewise.
10188 2013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10190 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
10191 (vsx_concat_v2sf): Likewise.
10193 2013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
10195 * config/aarch64/aarch64.md
10196 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
10198 2013-10-16 Andrew MacLeod <amacleod@redhat.com>
10200 PR tree-optimization/58697
10201 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
10202 estimated_loop_iterations_int.
10203 (max_stmt_executions_int): Call get_max_loop_iterations_int.
10204 (get_max_loop_iterations_int): New. HWINT version of
10205 get_max_loop_iterations.
10206 * cfgloop.h: Add prototypes.
10207 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
10208 * loop-unroll.c (decide_peel_once_rolling): Call
10209 get_estimated_loop_iterations_int.
10210 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
10211 * tree-ssa-loop-niter.h: Tweak prototypes.
10213 2013-10-16 David Malcolm <dmalcolm@redhat.com>
10215 * gengtype-parse.c (struct_field_seq): Ignore access-control
10216 keywords ("public:" etc).
10218 2013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
10220 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
10221 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
10223 2013-10-16 Yvan Roux <yvan.roux@linaro.org>
10225 * config/arm/arm.opt (mlra): New option.
10226 * config/arm/arm.c (arm_lra_p): New function.
10227 (TARGET_LRA_P): Define.
10229 2013-10-16 Paulo Matos <pmatos@broadcom.com>
10231 * tree-core.h (tree_code_name): Remove.
10232 * tree.h (get_tree_code_name): New prototype.
10233 * tree.c (tree_code_name): Make static.
10234 (get_tree_code_name): New function.
10235 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
10236 tree_class_check_failed, tree_range_check_failed,
10237 tree_not_class_check_failed, omp_clause_check_failed,
10238 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
10239 wrapper get_tree_code_name instead of calling tree_code_name directly.
10240 * tree-vrp.c (dump_asserts_for): Likewise.
10241 * tree-dump.c (dequeue_and_dump): Likewise.
10242 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
10243 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
10244 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
10245 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
10246 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10247 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
10248 dump_gimple_omp_for): Likewise.
10249 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
10250 * tree-ssa-pre.c (print_pre_expr): Likewise.
10251 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
10252 * print-tree.c (print_node_brief, print_node): Likewise.
10253 * gimple.c (gimple_check_failed): Likewise.
10254 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
10255 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
10256 * config/mep/mep.c (mep_validate_vliw): Likewise.
10257 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
10258 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10260 2013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10262 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
10265 2013-10-16 Hans-Peter Nilsson <hp@axis.com>
10267 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
10268 (MULTILIB_MATCHES): Add multilib for -march=v8.
10270 2013-10-15 Sriraman Tallam <tmsriram@google.com>
10273 * optc-save-gen.awk: Add extra parameter to the save and restore
10275 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
10276 * tree.c (build_optimization_node): New parameter. Add extra parameter
10277 to call to cl_optimization_save.
10278 (build_target_option_node): New parameter. Add extra parameter
10279 to call to cl_target_option_save.
10280 * tree.h (build_optimization_node): New parameter.
10281 (build_target_option_node): New parameter.
10282 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
10283 build_optimization_node and build_target_option_node.
10284 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
10285 (handle_pragma_push_options): Ditto.
10286 * toplev.c (process_options): Ditto.
10287 * opts.c (init_options_struct): Check for opts_set non-null.
10288 * target.def (target_option.save): New parameter.
10289 (target_option.restore): New parameter.
10290 * tm.texi: Generate.
10291 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
10292 (ix86_pragma_target_parse): Ditto.
10293 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
10295 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
10296 to build_optimization_node and build_target_option_node.
10297 (rs6000_valid_attribute_p): Ditto.
10298 (rs6000_pragma_target_parse): Ditto.
10299 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
10301 * config/i386/i386.h:
10302 TARGET_64BIT_P: New Macro
10303 TARGET_MMX_P: New Macro.
10304 TARGET_3DNOW_P: New Macro.
10305 TARGET_3DNOW_A_P: New Macro.
10306 TARGET_SSE_P: New Macro.
10307 TARGET_SSE2_P: New Macro.
10308 TARGET_SSE3_P: New Macro.
10309 TARGET_SSSE3_P: New Macro.
10310 TARGET_SSE4_1_P: New Macro.
10311 TARGET_SSE4_2_P: New Macro.
10312 TARGET_AVX_P: New Macro.
10313 TARGET_AVX2_P: New Macro.
10314 TARGET_AVX512F_P: New Macro.
10315 TARGET_AVX512PF_P: New Macro.
10316 TARGET_AVX512ER_P: New Macro.
10317 TARGET_AVX512CD_P: New Macro.
10318 TARGET_FMA_P: New Macro.
10319 TARGET_SSE4A_P: New Macro.
10320 TARGET_FMA4_P: New Macro.
10321 TARGET_XOP_P: New Macro.
10322 TARGET_LWP_P: New Macro.
10323 TARGET_ABM_P: New Macro.
10324 TARGET_BMI_P: New Macro.
10325 TARGET_BMI2_P: New Macro.
10326 TARGET_LZCNT_P: New Macro.
10327 TARGET_TBM_P: New Macro.
10328 TARGET_POPCNT_P: New Macro.
10329 TARGET_SAHF_P: New Macro.
10330 TARGET_MOVBE_P: New Macro.
10331 TARGET_CRC32_P: New Macro.
10332 TARGET_AES_P: New Macro.
10333 TARGET_PCLMUL_P: New Macro.
10334 TARGET_CMPXCHG16B_P: New Macro.
10335 TARGET_FSGSBASE_P: New Macro.
10336 TARGET_RDRND_P: New Macro.
10337 TARGET_F16C_P: New Macro.
10338 TARGET_RTM_P: New Macro.
10339 TARGET_HLE_P: New Macro.
10340 TARGET_RDSEED_P: New Macro.
10341 TARGET_PRFCHW_P: New Macro.
10342 TARGET_ADX_P: New Macro.
10343 TARGET_FXSR_P: New Macro.
10344 TARGET_XSAVE_P: New Macro.
10345 TARGET_XSAVEOPT_P: New Macro.
10346 TARGET_LP64_P: New Macro.
10347 TARGET_X32_P: New Macro.
10348 TARGET_FPMATH_DEFAULT_P: New Macro.
10349 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
10350 * config/i386/i386.c (ix86_option_override_internal): New parameters.
10352 Change ix86_tune_string to access opts->x_ix86_tune_string.
10353 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
10354 Change ix86_arch_string to access opts->x_ix86_arch_string.
10355 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
10356 Change ix86_pmode to access opts->x_ix86_pmode.
10357 Change ix86_abi to access opts->x_ix86_abi.
10358 Change ix86_cmodel to access opts->x_ix86_cmodel.
10359 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10360 Change ix86_isa_flags_explicit to access
10361 opts->x_ix86_isa_flags_explicit.
10362 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10363 Change ix86_regparm to access opts->x_ix86_regparm.
10364 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10365 Change ix86_preferred_stack_boundary_arg to access
10366 opts->x_ix86_preferred_stack_boundary_arg.
10367 Change ix86_force_align_arg_pointer to access
10368 opts->x_ix86_force_align_arg_pointer.
10369 Change ix86_incoming_stack_boundar_arg to access
10370 opts->x_ix86_incoming_stack_boundar_arg.
10371 Change ix86_fpmath to access opts->x_ix86_fpmath.
10372 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10373 Change ix86_recip_name to access opts->x_ix86_recip_name.
10374 Change ix86_stack_protector_guard to access
10375 opts->x_ix86_stack_protector_guard.
10376 Change ix86_tune_memcpy_strategy to access
10377 opts->x_ix86_tune_memcpy_strategy.
10378 Change ix86_tune_memset_strategy to access
10379 opts->x_ix86_tune_memset_strategy.
10380 Change global_options to access opts.
10381 Change global_options_set to access opts_set.
10382 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10383 Change TARGET_MMX to TARGET_MMX_P (opts->...).
10384 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10385 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10386 Change TARGET_SSE to TARGET_SSE_P (opts->...).
10387 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10388 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10389 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10390 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10391 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10392 Change TARGET_AVX to TARGET_AVX_P (opts->...).
10393 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10394 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10395 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10396 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10397 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10398 Change TARGET_FMA to TARGET_FMA_P (opts->...).
10399 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10400 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10401 Change TARGET_XOP to TARGET_XOP_P (opts->...).
10402 Change TARGET_LWP to TARGET_LWP_P (opts->...).
10403 Change TARGET_ABM to TARGET_ABM_P (opts->...).
10404 Change TARGET_BMI to TARGET_BMI_P (opts->...).
10405 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10406 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10407 Change TARGET_TBM to TARGET_TBM_P (opts->...).
10408 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10409 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10410 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10411 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10412 Change TARGET_AES to TARGET_AES_P (opts->...).
10413 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10414 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10415 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10416 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10417 Change TARGET_F16C to TARGET_F16C_P (opts->...).
10418 Change TARGET_RTM to TARGET_RTM_P (opts->...).
10419 Change TARGET_HLE to TARGET_HLE_P (opts->...).
10420 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10421 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10422 Change TARGET_ADX to TARGET_ADX_P (opts->...).
10423 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10424 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10425 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10426 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10427 Change TARGET_X32 to TARGET_X32_P (opts->...).
10428 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10429 Change TARGET_FLOAT_RETURNS_IN_80387 to
10430 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10431 (ix86_function_specific_save): New parameter. Use opts-> fields
10432 to replace global fields.
10433 (ix86_function_specific_restore): Ditto.
10434 (ix86_valid_target_attribute_inner_p): New parameters.
10435 Fix recursive call.
10436 Fix call to ix86_handle_option and set_option.
10437 (ix86_valid_target_attribute_tree): New parameters.
10438 Change global_options to access opts.
10439 Change global_options_set to access opts_set.
10440 Fix call to ix86_valid_target_attribute_inner_p.
10441 Change ix86_tune_string to access opts->x_ix86_tune_string.
10442 Change ix86_arch_string to access opts->x_ix86_arch_string.
10443 Change ix86_fpmath to access opts->x_ix86_fpmath
10444 Fix call to ix86_option_override_internal.
10445 Fix call to ix86_add_new_builtins.
10446 Fix calls to build_optimization_node and build_target_option_node.
10447 (ix86_valid_target_attribute_p): Remove access to global_options.
10448 Use new gcc_options structure func_options.
10449 Fix call to ix86_valid_target_attribute_tree.
10450 Fix call to build_optimization_node.
10451 (get_builtin_code_for_version): Fix call to
10452 ix86_valid_target_attribute_tree.
10454 2013-10-15 David Malcolm <dmalcolm@redhat.com>
10456 * Makefile.in (PICFLAG): New.
10457 (enable_host_shared): New.
10458 (INTERNAL_CFLAGS): Use PICFLAG.
10459 (LIBIBERTY): Use pic build of libiberty.a if configured with
10460 --enable-host-shared.
10461 * configure.ac: Add --enable-host-shared, setting up new
10463 * configure: Regenerate.
10464 * doc/install.texi (--enable-shared): Add note contrasting it with ...
10465 (--enable-host-shared): New option.
10467 2013-10-15 Richard Biener <rguenther@suse.de>
10469 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10470 for built-in functions.
10472 2013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
10474 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10475 (optimize_range_tests_1): New function,
10476 extracted from optimize_range_tests.
10477 (optimize_range_tests_xor): Similarly.
10478 (optimize_range_tests_diff): New function.
10479 (optimize_range_tests): Use optimize_range_tests_1.
10481 2013-10-15 Cong Hou <congh@google.com>
10483 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10484 requirement of the reduction pattern so that one operand of the
10485 reduction operation can come from outside of the loop.
10487 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10489 * config/arm/neon-schedgen.ml: Remove.
10490 * config/arm/cortex-a9-neon.md: Remove comment regarding
10493 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10495 * config/arm/types: Remove old neon types.
10497 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10499 * config/arm/cortex-a7.md
10500 (cortex_a7_neon_type): New.
10501 (cortex_a7_neon_mul): Update for new types.
10502 (cortex_a7_neon_mla): Likewise.
10503 (cortex_a7_neon): Likewise.
10505 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10507 * config/arm/cortex-a15-neon.md
10508 (cortex_a15_neon_type): New,
10510 (cortex_a15_neon_int_1): Remove.
10511 (cortex_a15_neon_int_2): Likewise.
10512 (cortex_a15_neon_int_3): Likewise.
10513 (cortex_a15_neon_int_4): Likewise.
10514 (cortex_a15_neon_int_5): Likewise.
10515 (cortex_a15_neon_vqneg_vqabs): Likewise.
10516 (cortex_a15_neon_vmov): Likewise.
10517 (cortex_a15_neon_vaba): Likewise.
10518 (cortex_a15_neon_vaba_qqq): Likewise.
10519 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10520 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10521 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10523 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10524 (cortex_a15_neon_mla_qqq_8_16): Likewise.
10525 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10526 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10527 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10528 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10529 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10530 (cortex_a15_neon_shift_1): Likewise.
10531 (cortex_a15_neon_shift_2): Likewise.
10532 (cortex_a15_neon_shift_3): Likewise.
10533 (cortex_a15_neon_vshl_ddd): Likewise.
10534 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10535 (cortex_a15_neon_vsra_vrsra): Likewise.
10536 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10537 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10538 (cortex_a15_neon_bp_3cycle): Likewise.
10539 (cortex_a15_neon_ldm_2): Likewise.
10540 (cortex_a15_neon_stm_2): Likewise.
10541 (cortex_a15_neon_mcr): Likewise.
10542 (cortex_a15_neon_mrc): Likewise.
10543 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10544 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10545 (cortex_a15_neon_fp_vmul_ddd): Likewise.
10546 (cortex_a15_neon_fp_vmul_qqd): Likewise.
10547 (cortex_a15_neon_fp_vmla_ddd): Likewise.
10548 (cortex_a15_neon_fp_vmla_qqq): Likewise.
10549 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10550 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10551 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10552 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10553 (cortex_a15_neon_bp_simple): Likewise.
10554 (cortex_a15_neon_bp_2cycle): Likewise.
10555 (cortex_a15_neon_bp_3cycle): Likewise.
10556 (cortex_a15_neon_vld1_1_2_regs): Likewise.
10557 (cortex_a15_neon_vld1_3_4_regs): Likewise.
10558 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10559 (cortex_a15_neon_vld2_4_regs): Likewise.
10560 (cortex_a15_neon_vld3_vld4): Likewise.
10561 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10562 (cortex_a15_neon_vst1_3_4_regs): Likewise.
10563 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10564 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10565 (cortex_a15_neon_vst3_vst4): Rename to...
10566 (cortex_a15_neon_vst4): This, update for new attributes.
10567 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10568 (cortex_a15_neon_vld3_vld4_lane): Likewise.
10569 (cortex_a15_neon_vst1_vst2_lane): Likewise.
10570 (cortex_a15_neon_vst3_vst4_lane): Likewise.
10571 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10572 (cortex_a15_neon_ldm_2): Likewise.
10573 (cortex_a15_neon_stm_2): Likewise.
10574 (cortex_a15_neon_mcr): Likewise.
10575 (cortex_a15_neon_mcr_2_mcrr): Likewise.
10576 (cortex_a15_neon_mrc): Likewise.
10577 (cortex_a15_neon_mrrc): Likewise.
10579 (cortex_a15_neon_abd): New.
10580 (cortex_a15_neon_abd_q): Likewise.
10581 (cortex_a15_neon_aba): Likewise.
10582 (cortex_a15_neon_aba_q): Likewise.
10583 (cortex_a15_neon_acc): Likewise.
10584 (cortex_a15_neon_acc_q): Likewise.
10585 (cortex_a15_neon_arith_basic): Likewise.
10586 (cortex_a15_neon_arith_complex): Likewise.
10587 (cortex_a15_neon_multiply): Likewise.
10588 (cortex_a15_neon_multiply_q): Likewise.
10589 (cortex_a15_neon_mla): Likewise.
10590 (cortex_a15_neon_mla_q): Likewise.
10591 (cortex_a15_neon_sat_mla_long): Likewise.
10592 (cortex_a15_neon_shift_acc): Likewise.
10593 (cortex_a15_neon_shift_imm_basic): Likewise.
10594 (cortex_a15_neon_shift_imm_complex): Likewise.
10595 (cortex_a15_neon_shift_reg_basic): Likewise.
10596 (cortex_a15_neon_shift_reg_basic_q): Likewise.
10597 (cortex_a15_neon_shift_reg_complex): Likewise.
10598 (cortex_a15_neon_shift_reg_complex_q): Likewise.
10599 (cortex_a15_neon_fp_negabs): Likewise
10600 (cortex_a15_neon_fp_arith): Likewise
10601 (cortex_a15_neon_fp_arith_q): Likewise
10602 (cortex_a15_neon_fp_cvt_int): Likewise
10603 (cortex_a15_neon_fp_cvt_int_q): Likewise
10604 (cortex_a15_neon_fp_cvt_16): Likewise
10605 (cortex_a15_neon_fp_mul): Likewise
10606 (cortex_a15_neon_fp_mul_q): Likewise
10607 (cortex_a15_neon_fp_mla): Likewise
10608 (cortex_a15_neon_fp_mla_q): Likewise
10609 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10610 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10611 (cortex_a15_neon_bitops): Likewise.
10612 (cortex_a15_neon_bitops_q): Likewise.
10613 (cortex_a15_neon_from_gp): Likewise.
10614 (cortex_a15_neon_from_gp_q): Likewise.
10615 (cortex_a15_neon_tbl3_tbl4): Likewise.
10616 (cortex_a15_neon_zip_q): Likewise.
10617 (cortex_a15_neon_to_gp): Likewise.
10618 (cortex_a15_neon_load_a): Likewise.
10619 (cortex_a15_neon_load_b): Likewise.
10620 (cortex_a15_neon_load_c): Likewise.
10621 (cortex_a15_neon_load_d): Likewise.
10622 (cortex_a15_neon_load_e): Likewise.
10623 (cortex_a15_neon_load_f): Likewise.
10624 (cortex_a15_neon_store_a): Likewise.
10625 (cortex_a15_neon_store_b): Likewise.
10626 (cortex_a15_neon_store_c): Likewise.
10627 (cortex_a15_neon_store_d): Likewise.
10628 (cortex_a15_neon_store_e): Likewise.
10629 (cortex_a15_neon_store_f): Likewise.
10630 (cortex_a15_neon_store_g): Likewise.
10631 (cortex_a15_neon_store_h): Likewise.
10632 (cortex_a15_vfp_to_from_gp): Likewise.
10634 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10636 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10638 (cortex_a9_neon_vshl_ddd): Remove.
10639 (cortex_a9_neon_vst3_vst4): Likewise.
10640 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10642 (cortex_a9_neon_bit_ops_q): New.
10644 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10645 (cortex_a9_neon_int_2): Likewise.
10646 (cortex_a9_neon_int_3): Likewise.
10647 (cortex_a9_neon_int_4): Likewise.
10648 (cortex_a9_neon_int_5): Likewise.
10649 (cortex_a9_neon_vqneg_vqabs): Likewise.
10650 (cortex_a9_neon_vmov): Likewise.
10651 (cortex_a9_neon_vaba): Likewise.
10652 (cortex_a9_neon_vaba_qqq): Likewise.
10653 (cortex_a9_neon_shift_1): Likewise.
10654 (cortex_a9_neon_shift_2): Likewise.
10655 (cortex_a9_neon_shift_3): Likewise.
10656 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10657 (cortex_a9_neon_vsra_vrsra): Likewise.
10658 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10659 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10660 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10662 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10663 (cortex_a9_neon_mla_qqq_8_16): Likewise.
10664 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10666 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10667 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10668 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10669 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10670 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10671 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10672 (cortex_a9_neon_fp_vsum): Likewise.
10673 (cortex_a9_neon_fp_vmul_ddd): Likewise.
10674 (cortex_a9_neon_fp_vmul_qqd): Likewise.
10675 (cortex_a9_neon_fp_vmla_ddd): Likewise.
10676 (cortex_a9_neon_fp_vmla_qqq): Likewise.
10677 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10678 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10679 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10680 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10681 (cortex_a9_neon_bp_simple): Likewise.
10682 (cortex_a9_neon_bp_2cycle): Likewise.
10683 (cortex_a9_neon_bp_3cycle): Likewise.
10684 (cortex_a9_neon_ldr): Likewise.
10685 (cortex_a9_neon_str): Likewise.
10686 (cortex_a9_neon_vld1_1_2_regs): Likewise.
10687 (cortex_a9_neon_vld1_3_4_regs): Likewise.
10688 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10689 (cortex_a9_neon_vld2_4_regs): Likewise.
10690 (cortex_a9_neon_vld3_vld4): Likewise.
10691 (cortex_a9_neon_vld1_vld2_lane): Likewise.
10692 (cortex_a9_neon_vld3_vld4_lane): Likewise.
10693 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10694 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10695 (cortex_a9_neon_vst1_3_4_regs): Likewise.
10696 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10697 (cortex_a9_neon_vst1_vst2_lane): Likewise.
10698 (cortex_a9_neon_vst3_vst4_lane): Likewise.
10699 (cortex_a9_neon_mcr): Likewise.
10700 (cortex_a9_neon_mcr_2_mcrr): Likewise.
10701 (cortex_a9_neon_mrc): Likewise.
10702 (cortex_a9_neon_mrrc): Likewise.
10704 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10706 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10708 (cortex_a8_neon_vshl_ddd): Remove.
10709 (cortex_a8_neon_vst3_vst4): Likewise.
10710 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10712 (cortex_a8_neon_bit_ops_q): New.
10714 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10715 (cortex_a8_neon_int_2): Likewise..
10716 (cortex_a8_neon_int_3): Likewise.
10717 (cortex_a8_neon_int_5): Likewise.
10718 (cortex_a8_neon_vqneg_vqabs): Likewise.
10719 (cortex_a8_neon_int_4): Likewise.
10720 (cortex_a8_neon_vaba): Likewise.
10721 (cortex_a8_neon_vaba_qqq): Likewise.
10722 (cortex_a8_neon_shift_1): Likewise.
10723 (cortex_a8_neon_shift_2): Likewise.
10724 (cortex_a8_neon_shift_3): Likewise.
10725 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10726 (cortex_a8_neon_vsra_vrsra): Likewise.
10727 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10728 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10729 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10731 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10732 (cortex_a8_neon_mla_qqq_8_16): Likewise.
10733 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10735 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10736 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10737 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10738 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10739 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10740 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10741 (cortex_a8_neon_fp_vsum): Likewise.
10742 (cortex_a8_neon_fp_vmul_ddd): Likewise.
10743 (cortex_a8_neon_fp_vmul_qqd): Likewise.
10744 (cortex_a8_neon_fp_vmla_ddd): Likewise.
10745 (cortex_a8_neon_fp_vmla_qqq): Likewise.
10746 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10747 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10748 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10749 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10750 (cortex_a8_neon_bp_simple): Likewise.
10751 (cortex_a8_neon_bp_2cycle): Likewise.
10752 (cortex_a8_neon_bp_3cycle): Likewise.
10753 (cortex_a8_neon_ldr): Likewise.
10754 (cortex_a8_neon_str): Likewise.
10755 (cortex_a8_neon_vld1_1_2_regs): Likewise.
10756 (cortex_a8_neon_vld1_3_4_regs): Likewise.
10757 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10758 (cortex_a8_neon_vld2_4_regs): Likewise.
10759 (cortex_a8_neon_vld3_vld4): Likewise.
10760 (cortex_a8_neon_vld1_vld2_lane): Likewise.
10761 (cortex_a8_neon_vld3_vld4_lane): Likewise.
10762 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10763 (cortex_a8_neon_vst1_3_4_regs): Likewise.
10764 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10765 (cortex_a8_neon_vst1_vst2_lane): Likewise.
10766 (cortex_a8_neon_vst3_vst4_lane): Likewise.
10767 (cortex_a8_neon_mcr): Likewise.
10768 (cortex_a8_neon_mcr_2_mcrr): Likewise.
10769 (cortex_a8_neon_mrc): Likewise.
10770 (cortex_a8_neon_mrrc): Likewise.
10772 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10774 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10776 * config/aarch64/aarch64-simd.md (neon_type): Remove.
10777 (aarch64_simd_dup<mode>): Add "type" attribute.
10778 (aarch64_dup_lane<mode>): Likewise.
10779 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10780 (*aarch64_simd_mov<mode>): Likewise.
10781 (aarch64_simd_mov_from_<mode>low): Likewise.
10782 (aarch64_simd_mov_from_<mode>high): Likewise.
10783 (orn<mode>3): Likewise.
10784 (bic<mode>3): Likewise.
10785 (add<mode>3): Likewise.
10786 (sub<mode>3): Likewise.
10787 (mul<mode>3): Likewise.
10788 (*aarch64_mul3_elt<mode>): Likewise.
10789 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10790 (*aarch64_mul3_elt_to_128df): Likewise.
10791 (*aarch64_mul3_elt_to_64v2df): Likewise.
10792 (neg<mode>2): Likewise.
10793 (abs<mode>2): Likewise.
10794 (abd<mode>_3): Likewise.
10795 (aba<mode>_3): Likewise.
10796 (fabd<mode>_3): Likewise.
10797 (*fabd_scalar<mode>3): Likewise.
10798 (and<mode>3): Likewise.
10799 (ior<mode>3): Likewise.
10800 (xor<mode>3): Likewise.
10801 (one_cmpl<mode>2): Likewise.
10802 (aarch64_simd_vec_set<mode>): Likewise.
10803 (aarch64_simd_lshr<mode>): Likewise.
10804 (aarch64_simd_ashr<mode>): Likewise.
10805 (aarch64_simd_imm_shl<mode>): Likewise.
10806 (aarch64_simd_reg_sshl<mode): Likewise.
10807 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10808 (aarch64_simd_reg_shl<mode>_signed): Likewise.
10809 (aarch64_simd_vec_setv2di): Likewise.
10810 (aarch64_simd_vec_set<mode>): Likewise.
10811 (aarch64_mla<mode>): Likewise.
10812 (*aarch64_mla_elt<mode>): Likewise.
10813 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10814 (aarch64_mls<mode>): Likewise.
10815 (*aarch64_mls_elt<mode>): Likewise.
10816 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10817 (<su><maxmin><mode>3): Likewise.
10818 (move_lo_quad_<mode>): Likewise.
10819 (aarch64_simd_move_hi_quad_<mode>): Likewise.
10820 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10821 (vec_pack_trunc_<mode>): Likewise.
10822 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10823 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10824 (*aarch64_<su>mlal_lo<mode>): Likewise.
10825 (*aarch64_<su>mlal_hi<mode>): Likewise.
10826 (*aarch64_<su>mlsl_lo<mode>): Likewise.
10827 (*aarch64_<su>mlsl_hi<mode>): Likewise.
10828 (*aarch64_<su>mlal<mode>): Likewise.
10829 (*aarch64_<su>mlsl<mode>): Likewise.
10830 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10831 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10832 (add<mode>3): Likewise.
10833 (sub<mode>3): Likewise.
10834 (mul<mode>3): Likewise.
10835 (div<mode>3): Likewise.
10836 (neg<mode>2): Likewise.
10837 (abs<mode>2): Likewise.
10838 (fma<mode>4): Likewise.
10839 (*aarch64_fma4_elt<mode>): Likewise.
10840 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10841 (*aarch64_fma4_elt_to_128df): Likewise.
10842 (*aarch64_fma4_elt_to_64v2df): Likewise.
10843 (fnma<mode>4): Likewise.
10844 (*aarch64_fnma4_elt<mode>): Likewise.
10845 (*aarch64_fnma4_elt_<vswap_width_name><mode>
10846 (*aarch64_fnma4_elt_to_128df): Likewise.
10847 (*aarch64_fnma4_elt_to_64v2df): Likewise.
10848 (<frint_pattern><mode>2): Likewise.
10849 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10850 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10851 (vec_unpacks_lo_v4sf): Likewise.
10852 (aarch64_float_extend_lo_v2df): Likewise.
10853 (vec_unpacks_hi_v4sf): Likewise.
10854 (aarch64_float_truncate_lo_v2sf): Likewise.
10855 (aarch64_float_truncate_hi_v4sf): Likewise.
10856 (aarch64_vmls<mode>): Likewise.
10857 (<su><maxmin><mode>3): Likewise.
10858 (<maxmin_uns><mode>3): Likewise.
10859 (reduc_<sur>plus_<mode>): Likewise.
10860 (reduc_<sur>plus_v2di): Likewise.
10861 (reduc_<sur>plus_v2si): Likewise.
10862 (reduc_<sur>plus_<mode>): Likewise.
10863 (aarch64_addpv4sf): Likewise.
10864 (clz<mode>2): Likewise.
10865 (reduc_<maxmin_uns>_<mode>): Likewise.
10866 (reduc_<maxmin_uns>_v2di): Likewise.
10867 (reduc_<maxmin_uns>_v2si): Likewise.
10868 (reduc_<maxmin_uns>_<mode>): Likewise.
10869 (reduc_<maxmin_uns>_v4sf): Likewise.
10870 (aarch64_simd_bsl<mode>_internal): Likewise.
10871 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10872 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10873 (aarch64_get_lane<mode>): Likewise.
10874 (*aarch64_combinez<mode>): Likewise.
10875 (aarch64_combine<mode>): Likewise.
10876 (aarch64_simd_combine<mode>): Likewise.
10877 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10878 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10879 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10880 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10881 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10882 (aarch64_<sur>h<addsub><mode>): Likewise.
10883 (aarch64_<sur><addsub>hn<mode>): Likewise.
10884 (aarch64_<sur><addsub>hn2<mode>): Likewise.
10885 (aarch64_pmul<mode>): Likewise.
10886 (aarch64_<su_optab><optab><mode>): Likewise.
10887 (aarch64_<sur>qadd<mode>): Likewise.
10888 (aarch64_sqmovun<mode>): Likewise.
10889 (aarch64_<sur>qmovn<mode>): Likewise.
10890 (aarch64_s<optab><mode>): Likewise.
10891 (aarch64_sq<r>dmulh<mode>): Likewise.
10892 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10893 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10894 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10895 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10896 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10897 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10898 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10899 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10900 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10901 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10902 (aarch64_sqdmull<mode>): Likewise.
10903 (aarch64_sqdmull_lane<mode>_internal): Likewise.
10904 (aarch64_sqdmull_n<mode>): Likewise.
10905 (aarch64_sqdmull2<mode>_internal): Likewise.
10906 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10907 (aarch64_sqdmull2_n<mode>_internal): Likewise.
10908 (aarch64_<sur>shl<mode>): Likewise.
10909 (aarch64_<sur>q<r>shl<mode>
10910 (aarch64_<sur>shll_n<mode>): Likewise.
10911 (aarch64_<sur>shll2_n<mode>): Likewise.
10912 (aarch64_<sur>shr_n<mode>): Likewise.
10913 (aarch64_<sur>sra_n<mode>): Likewise.
10914 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10915 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10916 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10917 (aarch64_cm<optab><mode>): Likewise.
10918 (aarch64_cm<optab>di): Likewise.
10919 (aarch64_cm<optab><mode>): Likewise.
10920 (aarch64_cm<optab>di): Likewise.
10921 (aarch64_cmtst<mode>): Likewise.
10922 (aarch64_cmtstdi): Likewise.
10923 (aarch64_cm<optab><mode>): Likewise.
10924 (*aarch64_fac<optab><mode>): Likewise.
10925 (aarch64_addp<mode>): Likewise.
10926 (aarch64_addpdi): Likewise.
10927 (sqrt<mode>2): Likewise.
10928 (vec_load_lanesoi<mode>): Likewise.
10929 (vec_store_lanesoi<mode>): Likewise.
10930 (vec_load_lanesci<mode>): Likewise.
10931 (vec_store_lanesci<mode>): Likewise.
10932 (vec_load_lanesxi<mode>): Likewise.
10933 (vec_store_lanesxi<mode>): Likewise.
10934 (*aarch64_mov<mode>): Likewise.
10935 (aarch64_ld2<mode>_dreg): Likewise.
10936 (aarch64_ld2<mode>_dreg): Likewise.
10937 (aarch64_ld3<mode>_dreg): Likewise.
10938 (aarch64_ld3<mode>_dreg): Likewise.
10939 (aarch64_ld4<mode>_dreg): Likewise.
10940 (aarch64_ld4<mode>_dreg): Likewise.
10941 (aarch64_tbl1<mode>): Likewise.
10942 (aarch64_tbl2v16qi): Likewise.
10943 (aarch64_combinev16qi): Likewise.
10944 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10945 (aarch64_st2<mode>_dreg): Likewise.
10946 (aarch64_st2<mode>_dreg): Likewise.
10947 (aarch64_st3<mode>_dreg): Likewise.
10948 (aarch64_st3<mode>_dreg): Likewise.
10949 (aarch64_st4<mode>_dreg): Likewise.
10950 (aarch64_st4<mode>_dreg): Likewise.
10951 (*aarch64_simd_ld1r<mode>): Likewise.
10952 (aarch64_frecpe<mode>): Likewise.
10953 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10954 (aarch64_frecps<mode>): Likewise.
10956 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
10958 * config/arm/iterators.md (V_elem_ch): New.
10960 (VQH_type): Likewise.
10961 * config/arm/arm.md (is_neon_type): New.
10962 (conds): Use is_neon_type.
10963 (anddi3_insn): Update type attribute.
10964 (xordi3_insn): Likewise.
10965 (one_cmpldi2): Likewise.
10966 * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10967 * config/arm/neon.md (neon_mov): Update type attribute.
10968 (*movmisalign<mode>_neon_store): Likewise.
10969 (*movmisalign<mode>_neon_load): Likewise.
10970 (vec_set<mode>_internal): Likewise.
10971 (vec_set<mode>_internal): Likewise.
10972 (vec_setv2di_internal): Likewise.
10973 (vec_extract<mode>): Likewise.
10974 (vec_extract<mode>): Likewise.
10975 (vec_extractv2di): Likewise.
10976 (*add<mode>3_neon): Likewise.
10977 (adddi3_neon): Likewise.
10978 (*sub<mode>3_neon): Likewise.
10979 (subdi3_neon): Likewise.
10980 (fma<VCVTF:mode>4): Likewise.
10981 (fma<VCVTF:mode>4_intrinsic): Likewise.
10982 (*fmsub<VCVTF:mode>4): Likewise.
10983 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10984 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10985 (ior<mode>3): Likewise.
10986 (and<mode>3): Likewise.
10987 (orn<mode>3_neon): Likewise.
10988 (orndi3_neon): Likewise.
10989 (bic<mode>3_neon): Likewise.
10990 (bicdi3_neon): Likewise.
10991 (xor<mode>3): Likewise.
10992 (one_cmpl<mode>2): Likewise.
10993 (abs<mode>2): Likewise.
10994 (neg<mode>2): Likewise.
10995 (negdi2_neon): Likewise.
10996 (*umin<mode>3_neon): Likewise.
10997 (*umax<mode>3_neon): Likewise.
10998 (*smin<mode>3_neon): Likewise.
10999 (*smax<mode>3_neon): Likewise.
11000 (vashl<mode>3): Likewise.
11001 (vashr<mode>3_imm): Likewise.
11002 (vlshr<mode>3_imm): Likewise.
11003 (ashl<mode>3_signed): Likewise.
11004 (ashl<mode>3_unsigned): Likewise.
11005 (neon_load_count): Likewise.
11006 (ashldi3_neon_noclobber): Likewise.
11007 (ashldi3_neon): Likewise.
11008 (signed_shift_di3_neon): Likewise.
11009 (unsigned_shift_di3_neon): Likewise.
11010 (ashrdi3_neon_imm_noclobber): Likewise.
11011 (lshrdi3_neon_imm_noclobber): Likewise.
11012 (<shift>di3_neon): Likewise.
11013 (widen_ssum<mode>3): Likewise.
11014 (widen_usum<mode>3): Likewise.
11015 (quad_halves_<code>v4si): Likewise.
11016 (quad_halves_<code>v4sf): Likewise.
11017 (quad_halves_<code>v8hi): Likewise.
11018 (quad_halves_<code>v16qi): Likewise.
11019 (reduc_splus_v2di): Likewise.
11020 (neon_vpadd_internal<mode>): Likewise.
11021 (neon_vpsmin<mode>): Likewise.
11022 (neon_vpsmax<mode>): Likewise.
11023 (neon_vpumin<mode>): Likewise.
11024 (neon_vpumax<mode>): Likewise.
11025 (*ss_add<mode>_neon): Likewise.
11026 (*us_add<mode>_neon): Likewise.
11027 (*ss_sub<mode>_neon): Likewise.
11028 (*us_sub<mode>_neon): Likewise.
11029 (neon_vadd<mode>_unspec): Likewise.
11030 (neon_vaddl<mode>): Likewise.
11031 (neon_vaddw<mode>): Likewise.
11032 (neon_vhadd<mode>): Likewise.
11033 (neon_vqadd<mode>): Likewise.
11034 (neon_vaddhn<mode>): Likewise.
11035 (neon_vmul<mode>): Likewise.
11036 (neon_vfms<VCVTF:mode>): Likewise.
11037 (neon_vmlal<mode>): Likewise.
11038 (neon_vmls<mode>): Likewise.
11039 (neon_vmlsl<mode>): Likewise.
11040 (neon_vqdmulh<mode>): Likewise.
11041 (neon_vqdmlal<mode>): Likewise.
11042 (neon_vqdmlsl<mode>): Likewise.
11043 (neon_vmull<mode>): Likewise.
11044 (neon_vqdmull<mode>): Likewise.
11045 (neon_vsub<mode>_unspec): Likewise.
11046 (neon_vsubl<mode>): Likewise.
11047 (neon_vsubw<mode>): Likewise.
11048 (neon_vqsub<mode>): Likewise.
11049 (neon_vhsub<mode>): Likewise.
11050 (neon_vsubhn<mode>): Likewise.
11051 (neon_vceq<mode>): Likewise.
11052 (neon_vcge<mode>): Likewise.
11053 (neon_vcgeu<mode>): Likewise.
11054 (neon_vcgt<mode>): Likewise.
11055 (neon_vcgtu<mode>): Likewise.
11056 (neon_vcle<mode>): Likewise.
11057 (neon_vclt<mode>): Likewise.
11058 (neon_vcage<mode>): Likewise.
11059 (neon_vcagt<mode>): Likewise.
11060 (neon_vtst<mode>): Likewise.
11061 (neon_vabd<mode>): Likewise.
11062 (neon_vabdl<mode>): Likewise.
11063 (neon_vaba<mode>): Likewise.
11064 (neon_vabal<mode>): Likewise.
11065 (neon_vmax<mode>): Likewise.
11066 (neon_vmin<mode>): Likewise.
11067 (neon_vpaddl<mode>): Likewise.
11068 (neon_vpadal<mode>): Likewise.
11069 (neon_vpmax<mode>): Likewise.
11070 (neon_vpmin<mode>): Likewise.
11071 (neon_vrecps<mode>): Likewise.
11072 (neon_vrsqrts<mode>): Likewise.
11073 (neon_vqabs<mode>): Likewise.
11074 (neon_vqneg<mode>): Likewise.
11075 (neon_vcls<mode>): Likewise.
11076 (clz<mode>2): Likewise.
11077 (popcount<mode>2): Likewise.
11078 (neon_vrecpe<mode>): Likewise.
11079 (neon_vrsqrte<mode>): Likewise.
11080 (neon_vget_lane<mode>_sext_internal): Likewise.
11081 (neon_vget_lane<mode>_zext_internal): Likewise.
11082 (neon_vdup_n<mode>): Likewise.
11083 (neon_vdup_n<mode>): Likewise.
11084 (neon_vdup_nv2di): Likewise.
11085 (neon_vdup_lane<mode>_interal): Likewise.
11086 (*neon_vswp<mode>): Likewise.
11087 (neon_vcombine<mode>): Likewise.
11088 (float<mode><V_cvtto>2): Likewise.
11089 (floatuns<mode><V_cvtto>2): Likewise.
11090 (fix_trunc<mode><V_cvtto>2): Likewise.
11091 (fixuns_trunc<mode><V_cvtto>2
11092 (neon_vcvt<mode>): Likewise.
11093 (neon_vcvt<mode>): Likewise.
11094 (neon_vcvtv4sfv4hf): Likewise.
11095 (neon_vcvtv4hfv4sf): Likewise.
11096 (neon_vcvt_n<mode>): Likewise.
11097 (neon_vcvt_n<mode>): Likewise.
11098 (neon_vmovn<mode>): Likewise.
11099 (neon_vqmovn<mode>): Likewise.
11100 (neon_vqmovun<mode>): Likewise.
11101 (neon_vmovl<mode>): Likewise.
11102 (neon_vmul_lane<mode>): Likewise.
11103 (neon_vmul_lane<mode>): Likewise.
11104 (neon_vmull_lane<mode>): Likewise.
11105 (neon_vqdmull_lane<mode>): Likewise.
11106 (neon_vqdmulh_lane<mode>): Likewise.
11107 (neon_vqdmulh_lane<mode>): Likewise.
11108 (neon_vmla_lane<mode>): Likewise.
11109 (neon_vmla_lane<mode>): Likewise.
11110 (neon_vmlal_lane<mode>): Likewise.
11111 (neon_vqdmlal_lane<mode>): Likewise.
11112 (neon_vmls_lane<mode>): Likewise.
11113 (neon_vmls_lane<mode>): Likewise.
11114 (neon_vmlsl_lane<mode>): Likewise.
11115 (neon_vqdmlsl_lane<mode>): Likewise.
11116 (neon_vext<mode>): Likewise.
11117 (neon_vrev64<mode>): Likewise.
11118 (neon_vrev32<mode>): Likewise.
11119 (neon_vrev16<mode>): Likewise.
11120 (neon_vbsl<mode>_internal): Likewise.
11121 (neon_vshl<mode>): Likewise.
11122 (neon_vqshl<mode>): Likewise.
11123 (neon_vshr_n<mode>): Likewise.
11124 (neon_vshrn_n<mode>): Likewise.
11125 (neon_vqshrn_n<mode>): Likewise.
11126 (neon_vqshrun_n<mode>): Likewise.
11127 (neon_vshl_n<mode>): Likewise.
11128 (neon_vqshl_n<mode>): Likewise.
11129 (neon_vqshlu_n<mode>): Likewise.
11130 (neon_vshll_n<mode>): Likewise.
11131 (neon_vsra_n<mode>): Likewise.
11132 (neon_vsri_n<mode>): Likewise.
11133 (neon_vsli_n<mode>): Likewise.
11134 (neon_vtbl1v8qi): Likewise.
11135 (neon_vtbl2v8qi): Likewise.
11136 (neon_vtbl3v8qi): Likewise.
11137 (neon_vtbl4v8qi): Likewise.
11138 (neon_vtbl1v16qi): Likewise.
11139 (neon_vtbl2v16qi): Likewise.
11140 (neon_vcombinev16qi): Likewise.
11141 (neon_vtbx1v8qi): Likewise.
11142 (neon_vtbx2v8qi): Likewise.
11143 (neon_vtbx3v8qi): Likewise.
11144 (neon_vtbx4v8qi): Likewise.
11145 (*neon_vtrn<mode>_insn): Likewise.
11146 (*neon_vzip<mode>_insn): Likewise.
11147 (*neon_vuzp<mode>_insn): Likewise.
11148 (neon_vld1<mode>): Likewise.
11149 (neon_vld1_lane<mode>): Likewise.
11150 (neon_vld1_lane<mode>): Likewise.
11151 (neon_vld1_dup<mode>): Likewise.
11152 (neon_vld1_dup<mode>): Likewise.
11153 (neon_vld1_dupv2di): Likewise.
11154 (neon_vst1<mode>): Likewise.
11155 (neon_vst1_lane<mode>): Likewise.
11156 (neon_vst1_lane<mode>): Likewise.
11157 (neon_vld2<mode>): Likewise.
11158 (neon_vld2<mode>): Likewise.
11159 (neon_vld2_lane<mode>): Likewise.
11160 (neon_vld2_lane<mode>): Likewise.
11161 (neon_vld2_dup<mode>): Likewise.
11162 (neon_vst2<mode>): Likewise.
11163 (neon_vst2<mode>): Likewise.
11164 (neon_vst2_lane<mode>): Likewise.
11165 (neon_vst2_lane<mode>): Likewise.
11166 (neon_vld3<mode>): Likewise.
11167 (neon_vld3qa<mode>): Likewise.
11168 (neon_vld3qb<mode>): Likewise.
11169 (neon_vld3_lane<mode>): Likewise.
11170 (neon_vld3_lane<mode>): Likewise.
11171 (neon_vld3_dup<mode>): Likewise.
11172 (neon_vst3<mode>): Likewise.
11173 (neon_vst3qa<mode>): Likewise.
11174 (neon_vst3qb<mode>): Likewise.
11175 (neon_vst3_lane<mode>): Likewise.
11176 (neon_vst3_lane<mode>): Likewise.
11177 (neon_vld4<mode>): Likewise.
11178 (neon_vld4qa<mode>): Likewise.
11179 (neon_vld4qb<mode>): Likewise.
11180 (neon_vld4_lane<mode>): Likewise.
11181 (neon_vld4_lane<mode>): Likewise.
11182 (neon_vld4_dup<mode>): Likewise.
11183 (neon_vst4<mode>): Likewise.
11184 (neon_vst4qa<mode>): Likewise.
11185 (neon_vst4qb<mode>): Likewise.
11186 (neon_vst4_lane<mode>): Likewise.
11187 (neon_vst4_lane<mode>): Likewise.
11188 (neon_vec_unpack<US>_lo_<mode>): Likewise.
11189 (neon_vec_unpack<US>_hi_<mode>): Likewise.
11190 (neon_vec_<US>mult_lo_<mode>): Likewise.
11191 (neon_vec_<US>mult_hi_<mode>): Likewise.
11192 (neon_vec_<US>shiftl_<mode>): Likewise.
11193 (neon_unpack<US>_<mode>): Likewise.
11194 (neon_vec_<US>mult_<mode>): Likewise.
11195 (vec_pack_trunc_<mode>): Likewise.
11196 (neon_vec_pack_trunc_<mode>): Likewise.
11197 (neon_vabd<mode>_2): Likewise.
11198 (neon_vabd<mode>_3): Likewise.
11200 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11202 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
11203 (load_pair): Update type attribute.
11204 (store_pair): Update type attribute.
11205 * config/aarch64/iterators.md (q): New.
11207 2013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
11209 * config/arm/types.md: Add new types for Neon insns.
11211 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11213 Sergey Lega <sergey.s.lega@intel.com>
11214 Anna Tikhonova <anna.tikhonova@intel.com>
11215 Ilya Tocar <ilya.tocar@intel.com>
11216 Andrey Turetskiy <andrey.turetskiy@intel.com>
11217 Ilya Verbin <ilya.verbin@intel.com>
11218 Kirill Yukhin <kirill.yukhin@intel.com>
11219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11221 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
11222 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
11223 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
11224 (rcp14<mode>): New.
11225 (srcp14<mode>): Ditto.
11226 (rsqrt14<mode>): Ditto.
11227 (rsqrt14<mode>): Ditto.
11228 (avx512f_vmscalef<mode>): Ditto.
11229 (avx512f_scalef<mode>): Ditto.
11230 (avx512f_getexp<mode>): Ditto.
11231 (avx512f_sgetexp<mode>): Ditto.
11232 (avx512f_fixupimm<mode>): Ditto.
11233 (avx512f_sfixupimm<mode>): Ditto.
11234 (avx512f_rndscale<mode>): Ditto.
11235 (*avx512er_exp2<mode>): Ditto.
11236 (*avx512er_rcp28<mode>): Ditto.
11237 (avx512er_rsqrt28<mode>): Ditto.
11238 (avx512f_getmant<mode>): Ditto.
11239 (avx512f_getmant<mode>): Ditto.
11240 (avx512f_rndscale<mode>): Fix formatting.
11242 2013-10-15 Martin Jambor <mjambor@suse.cz>
11244 * ipa-utils.h (ipa_edge_within_scc): Declare.
11245 * ipa-cp.c (edge_within_scc): Moved...
11246 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
11248 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11250 Sergey Lega <sergey.s.lega@intel.com>
11251 Anna Tikhonova <anna.tikhonova@intel.com>
11252 Ilya Tocar <ilya.tocar@intel.com>
11253 Andrey Turetskiy <andrey.turetskiy@intel.com>
11254 Ilya Verbin <ilya.verbin@intel.com>
11255 Kirill Yukhin <kirill.yukhin@intel.com>
11256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11258 * config/i386/predicates.md (const_8_to_15_operand): New.
11259 (const_16_to_31_operand): Ditto.
11260 * config/i386/sse.md (V8FI): New.
11262 (reduc_splus_v8df): Ditto.
11263 (reduc_splus_v16sf): Ditto.
11264 (avx512f_vextract<shuffletype>32x4_1): Ditto.
11265 (vec_extract_hi_<mode>): Ditto.
11266 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
11267 (vec_set_lo_<mode>): Ditto.
11268 (vec_set_hi_<mode>): Ditto.
11269 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
11270 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
11271 (avx512f_pshufd_1): Ditto.
11272 (avx512f_broadcast<mode>): Ditto.
11273 (avx512f_broadcast<mode>): Ditto.
11274 (define_split): Split vec_extract_lo into move.
11275 (ssequartermode): Ditto.
11276 (ssedoublemode): Extened with wider modes.
11277 (vec_extract_lo_<mode>): Ditto.
11279 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11280 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11281 Sergey Lega <sergey.s.lega@intel.com>
11282 Anna Tikhonova <anna.tikhonova@intel.com>
11283 Ilya Tocar <ilya.tocar@intel.com>
11284 Andrey Turetskiy <andrey.turetskiy@intel.com>
11285 Ilya Verbin <ilya.verbin@intel.com>
11286 Kirill Yukhin <kirill.yukhin@intel.com>
11287 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11289 * config/i386/predicates.md (register_or_constm1_operand): New.
11290 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
11291 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
11292 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
11293 UNSPEC_SCATTER_PREFETCH
11295 (avx512f_ucmp<mode>3): Ditto.
11296 (avx512f_vternlog<mode>): Ditto.
11297 (avx512f_align<mode>): Ditto.
11298 (<shift_insn><mode>3): Ditto.
11299 (avx512f_<rotate>v<mode>): Ditto.
11300 (avx512f_<rotate><mode>): Ditto.
11301 (avx512f_eq<mode>3): Ditto.
11302 (avx512f_eq<mode>3_1): Ditto.
11303 (avx512f_gt<mode>3): Ditto.
11304 (avx512f_testm<mode>3): Ditto.
11305 (avx512f_testnm<mode>3): Ditto.
11306 (avx512pf_gatherpf<mode>): Ditto.
11307 (*avx512pf_gatherpf<mode>_mask): Ditto.
11308 (*avx512pf_gatherpf<mode>): Ditto.
11309 (avx512pf_scatterpf<mode>): Ditto.
11310 (*avx512pf_scatterpf<mode>_mask): Ditto.
11311 (*avx512pf_scatterpf<mode>): Ditto.
11312 (avx512f_vec_dup_gpr<mode>): Ditto.
11313 (clz<mode>2): Ditto.
11314 (conflict<mode>): Ditto.
11315 (REDUC_SMINMAX_MODE): Extened with wider modes.
11316 (reduc_<code>_<mode>): Ditto.
11317 (vlshr<mode>3): Ditto.
11318 (vashl<mode>3): Ditto.
11320 2013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11322 Sergey Lega <sergey.s.lega@intel.com>
11323 Anna Tikhonova <anna.tikhonova@intel.com>
11324 Ilya Tocar <ilya.tocar@intel.com>
11325 Andrey Turetskiy <andrey.turetskiy@intel.com>
11326 Ilya Verbin <ilya.verbin@intel.com>
11327 Kirill Yukhin <kirill.yukhin@intel.com>
11328 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11330 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
11333 (avx512fmaskmode): Ditto.
11334 (bcstscalarsuff): Ditto.
11335 (avx512f_blendm<mode>): Ditto.
11336 (cmp_imm_predicate): Ditto.
11337 (avx512f_cmp<mode>3): Ditto.
11338 (avx512f_vec_dup<mode>): Ditto.
11339 (avx512f_vec_dup_mem<mode>): Ditto.
11340 (avx512f_vpermi2var<mode>3): Ditto.
11341 (avx512f_vpermt2var<mode>3): Ditto.
11342 (vec_init<mode>): Ditto.
11343 (avx512f_gathersi<mode>): Ditto.
11344 (*avx512f_gathersi<mode>): Ditto.
11345 (*avx512f_gathersi<mode>_2): Ditto.
11346 (avx512f_gatherdi<mode>): Ditto.
11347 (*avx512f_gatherdi<mode>): Ditto.
11348 (*avx512f_gatherdi<mode>_2): Ditto.
11349 (avx512f_scattersi<mode>): Ditto.
11350 (*avx512f_scattersi<mode>): Ditto.
11351 (avx512f_scatterdi<mode>): Ditto.
11352 (*avx512f_scatterdi<mode>): Ditto.
11353 (sseintprefix): Extened with wider modes.
11354 (VEC_GATHER_IDXSI): Ditto.
11355 (VEC_GATHER_IDXDI): Ditto.
11356 (VEC_GATHER_SRCDI): Ditto.
11358 2013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
11359 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11361 * config/arm/t-aprofile: New file.
11362 * config.gcc: Handle --with-multilib-list option.
11364 2013-10-15 Bernd Schmidt <bernds@codesourcery.com>
11366 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11369 2013-10-15 Richard Biener <rguenther@suse.de>
11371 * tree-loop-distribution.c (build_empty_rdg): Inline into
11373 (rdg_flag_vertex): Inline into single user.
11374 (rdg_flag_vertex_and_dependent): Likewise.
11375 (build_rdg_partition_for_vertex): Remove processed bitmap.
11376 (rdg_build_partitions): Simplify.
11378 2013-10-15 Richard Biener <rguenther@suse.de>
11380 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11381 Restructure forwarding through conversions and copies to
11382 avoid performing copy-propagation the wrong way. Adjust
11383 recursion invocations.
11384 (forward_propagate_addr_expr): Add argument stating if we
11385 are recursing from a single-use.
11386 (ssa_forward_propagate_and_combine): Adjust.
11388 2013-10-14 David Malcolm <dmalcolm@redhat.com>
11390 * dumpfile.h (gcc::dump_manager): New class, to hold state
11391 relating to dumpfile management.
11392 (get_dump_file_name): Remove in favor of method of dump_manager.
11393 (dump_initialized_p): Likewise.
11394 (dump_start): Likewise.
11395 (dump_finish): Likewise.
11396 (dump_switch_p): Likewise.
11397 (dump_register): Likewise.
11398 (get_dump_file_info): Likewise.
11399 * context.c (gcc::context::context): Construct the dump_manager
11401 * context.h (gcc::context::get_dumps): New.
11402 (gcc::context::m_dumps): New.
11403 * coverage.c (coverage_init): Port to dump_manager API.
11404 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11405 (extra_dump_files_in_use): Likewise.
11406 (extra_dump_files_alloced): Likewise.
11407 (gcc::dump_manager::dump_manager): New.
11408 (dump_register): Convert to...
11409 (gcc::dump_manager::dump_register): ...method, replacing
11410 function-static next_dump with m_next_dump field.
11411 (get_dump_file_info): Convert to...
11412 (gcc::dump_manager::get_dump_file_info): ...method.
11413 (get_dump_file_name): Convert to...
11414 (gcc::dump_manager::get_dump_file_name): ...method.
11415 (dump_start): Convert to...
11416 (gcc::dump_manager::dump_start): ...method.
11417 (dump_finish): Convert to...
11418 (gcc::dump_manager::dump_finish): ...method.
11419 (dump_begin): Replace body with...
11420 (gcc::dump_manager::dump_begin): ...new method.
11421 (dump_phase_enabled_p): Convert to...
11422 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11423 (dump_phase_enabled_p): Convert to...
11424 (gcc::dump_manager::dump_phase_enabled_p): ...method.
11425 (dump_initialized_p): Convert to...
11426 (gcc::dump_manager::dump_initialized_p): ...method.
11427 (dump_flag_name): Replace body with...
11428 (gcc::dump_manager::dump_flag_name): ...new method.
11429 (dump_enable_all): Convert to...
11430 (gcc::dump_manager::dump_enable_all): ...new method.
11431 (opt_info_enable_passes): Convert to...
11432 (gcc::dump_manager::opt_info_enable_passes): ...new method.
11433 (dump_switch_p_1): Convert to...
11434 (gcc::dump_manager::dump_switch_p_1): ...new method.
11435 (dump_switch_p): Convert to...
11436 (gcc::dump_manager::dump_switch_p): ...new method.
11437 (opt_info_switch_p): Port to dump_manager API.
11438 (enable_rtl_dump_file): Likewise.
11439 * opts-global.c (handle_common_deferred_options): Port to new
11441 * passes.c (pass_manager::finish_optimization_passes): Likewise.
11442 (pass_manager::register_one_dump_file): Likewise.
11443 (pass_manager::register_pass): Likewise.
11444 (pass_init_dump_file): Likewise.
11445 (pass_fini_dump_file): Likewise.
11446 * statistics.c (statistics_early_init): Likewise.
11448 2013-10-14 Richard Biener <rguenther@suse.de>
11450 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11451 iterative_hash_canonical_type, gimple_canonical_type_hash,
11452 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11453 gimple_register_canonical_type, print_gimple_types_stats,
11454 free_gimple_type_tables): Move to lto/lto.c
11455 (gt-gimple.h): Do not include.
11456 * gimple.h (gimple_register_canonical_type,
11457 print_gimple_types_stats, free_gimple_type_tables): Remove.
11458 * Makefile.in (GTFILES): Remove gimple.c.
11460 2013-10-14 Travis Snoozy <quandary@remstate.com>
11463 * config/msp430/msp430.c (msp430_option_override): Correct thinko
11464 scanning for msp430x targets.
11466 2013-10-14 Eric Botcazou <ebotcazou@adacore.com>
11469 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11470 (registers_ok_for_ldd_peep): Move around.
11471 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11472 * config/sparc/sparc.md (widening peepholes): Use it.
11474 2013-10-14 Richard Biener <rguenther@suse.de>
11476 PR middle-end/58712
11477 PR middle-end/55358
11478 * gimple.c (iterative_hash_canonical_type): Make sure to
11479 record the hash into the correct hashtable slot.
11481 2013-10-13 Eric Botcazou <ebotcazou@adacore.com>
11483 PR rtl-optimization/58662
11484 * combine.c (try_combine): Take into account death nodes on I2 when
11485 splitting a PARALLEL of two independent SETs. Fix dump message.
11487 2013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
11490 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11491 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11493 * config/sh/t-sh (sh_treg_combine.o): New entry.
11494 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11495 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11496 (register_sh_passes): New function. Register sh_treg_combine pass.
11497 (sh_option_override): Invoke it.
11498 (sh_canonicalize_comparison): Handle op0_preserve_value.
11499 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11500 opportunities. Canonicalize branch condition.
11501 (nott): Allow only if pseudos can be created for non-SH2A.
11503 2013-10-12 H.J. Lu <hongjiu.lu@intel.com>
11506 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11507 (ix86_expand_movmem): Replace copy_addr_to_reg with
11508 ix86_copy_addr_to_reg.
11509 (ix86_expand_setmem): Likewise.
11511 2013-10-12 Alexander Monakov <amonakov@ispras.ru>
11513 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11514 provided by ix86_fp_compare_mode instead of CCFPUmode.
11516 2013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
11518 * config/aarch64/arm_neon.h
11519 (vtbx<1,3>_<psu>8): Fix register constriants.
11521 2013-10-11 Jeff Law <law@redhat.com>
11523 PR tree-optimization/58640
11524 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11525 threading paths that cross over two loop entry points.
11527 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11529 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11530 handle vector float as well.
11531 (*vsx_le_perm_load_v4si): Likewise.
11532 (*vsx_le_perm_store_v2di): Likewise.
11533 (*vsx_le_perm_store_v4si): Likewise.
11535 2013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11537 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11538 directly to circumvent subtract from splat{31} workaround.
11539 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11541 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11542 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11543 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11544 (altivec_vperm_<mode>): Convert to define_insn_and_split to
11545 separate big and little endian logic.
11546 (*altivec_vperm_<mode>_internal): New define_insn.
11547 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11548 separate big and little endian logic.
11549 (*altivec_vperm_<mode>_uns_internal): New define_insn.
11550 (vec_permv16qi): Add little endian logic.
11552 2013-10-11 Marc Glisse <marc.glisse@inria.fr>
11554 * doc/extend.texi (returns_nonnull): Remove arguments.
11556 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11558 Sergey Lega <sergey.s.lega@intel.com>
11559 Anna Tikhonova <anna.tikhonova@intel.com>
11560 Ilya Tocar <ilya.tocar@intel.com>
11561 Andrey Turetskiy <andrey.turetskiy@intel.com>
11562 Ilya Verbin <ilya.verbin@intel.com>
11563 Kirill Yukhin <kirill.yukhin@intel.com>
11564 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11566 * config/i386/sse.md (VI48F_256_512): New.
11567 (avx2_permvar<mode>): Change to ...
11568 (<avx2_avx512f>_permvar<mode>): This.
11570 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11571 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11572 Sergey Lega <sergey.s.lega@intel.com>
11573 Anna Tikhonova <anna.tikhonova@intel.com>
11574 Ilya Tocar <ilya.tocar@intel.com>
11575 Andrey Turetskiy <andrey.turetskiy@intel.com>
11576 Ilya Verbin <ilya.verbin@intel.com>
11577 Kirill Yukhin <kirill.yukhin@intel.com>
11578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11580 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11581 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11582 * config/i386/sse.md (VI4_AVX): New.
11583 (sf2simodelower): Ditto.
11584 (sse2_cvtps2dq): Change to ...
11585 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11587 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11589 Sergey Lega <sergey.s.lega@intel.com>
11590 Anna Tikhonova <anna.tikhonova@intel.com>
11591 Ilya Tocar <ilya.tocar@intel.com>
11592 Andrey Turetskiy <andrey.turetskiy@intel.com>
11593 Ilya Verbin <ilya.verbin@intel.com>
11594 Kirill Yukhin <kirill.yukhin@intel.com>
11595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11597 * config/i386/sse.md (V_512): New.
11599 (vcond<V_512:mode><VF_512:mode>): Ditto.
11600 (vcond<V_512:mode><VI_512:mode>): Ditto.
11601 (vcondu<V_512:mode><VI_512:mode>): Ditto.
11603 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11605 Sergey Lega <sergey.s.lega@intel.com>
11606 Anna Tikhonova <anna.tikhonova@intel.com>
11607 Ilya Tocar <ilya.tocar@intel.com>
11608 Andrey Turetskiy <andrey.turetskiy@intel.com>
11609 Ilya Verbin <ilya.verbin@intel.com>
11610 Kirill Yukhin <kirill.yukhin@intel.com>
11611 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11613 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11614 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11616 (fma<mode>4): Removed condition.
11617 (fms<mode>4): Ditto.
11618 (fnma<mode>4): Ditto.
11619 (fnms<mode>4): Ditto.
11620 (fma4i_fmadd_<mode>): Ditto.
11621 (*fma_fmadd_<mode>): Ditto.
11622 (*fma_fmsub_<mode>): Ditto.
11623 (*fma_fnmadd_<mode>): Ditto.
11624 (*fma_fnmsub_<mode>): Ditto.
11625 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11626 (*fma_fmaddsub_<mode>): Ditto.
11627 (*fma_fmsubadd_<mode>): Ditto.
11628 (*fmai_fmadd_<mode>): Ditto.
11629 (*fmai_fmsub_<mode>): Ditto.
11630 (*fmai_fnmadd_<mode>): Ditto.
11631 (*fmai_fnmsub_<mode>): Ditto.
11633 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11634 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11635 Sergey Lega <sergey.s.lega@intel.com>
11636 Anna Tikhonova <anna.tikhonova@intel.com>
11637 Ilya Tocar <ilya.tocar@intel.com>
11638 Andrey Turetskiy <andrey.turetskiy@intel.com>
11639 Ilya Verbin <ilya.verbin@intel.com>
11640 Kirill Yukhin <kirill.yukhin@intel.com>
11641 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11643 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11644 (VI124_256): Changed to ...
11645 (VI124_256_48_512): This.
11646 (ssepackmode): Extended with wider modes.
11647 (<code><mode>3): Changed iterator.
11648 (*avx2_<code><mode>3): Ditto.
11649 (vec_pack_trunc_<mode>): Ditto.
11651 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11652 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11653 Sergey Lega <sergey.s.lega@intel.com>
11654 Anna Tikhonova <anna.tikhonova@intel.com>
11655 Ilya Tocar <ilya.tocar@intel.com>
11656 Andrey Turetskiy <andrey.turetskiy@intel.com>
11657 Ilya Verbin <ilya.verbin@intel.com>
11658 Kirill Yukhin <kirill.yukhin@intel.com>
11659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11661 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11662 (VI8F_256_512): Ditto.
11663 (abs<mode>2): Changed iterator.
11664 (avx2_perm<mode>): Changed to ...
11665 (<avx2_avx512f>_perm<mode>): This.
11666 (avx2_perm<mode>_1): Changed to ...
11667 (<avx2_avx512f>_perm<mode>_1): This.
11669 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11671 Sergey Lega <sergey.s.lega@intel.com>
11672 Anna Tikhonova <anna.tikhonova@intel.com>
11673 Ilya Tocar <ilya.tocar@intel.com>
11674 Andrey Turetskiy <andrey.turetskiy@intel.com>
11675 Ilya Verbin <ilya.verbin@intel.com>
11676 Kirill Yukhin <kirill.yukhin@intel.com>
11677 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11679 * config/i386/sse.md (VI48_AVX512F): New.
11680 (VI48_AVX2): Changed to ...
11681 (VI48_AVX2_48_AVX512F): This.
11682 (avx2_ashrv<mode>): Changed to ...
11683 (<avx2_avx512f>_ashrv<mode>): This.
11684 (avx2_<shift_insn>v<mode>): Changed to ...
11685 (<avx2_avx512f>_<shift_insn>v<mode>): This.
11687 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11688 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11689 Sergey Lega <sergey.s.lega@intel.com>
11690 Anna Tikhonova <anna.tikhonova@intel.com>
11691 Ilya Tocar <ilya.tocar@intel.com>
11692 Andrey Turetskiy <andrey.turetskiy@intel.com>
11693 Ilya Verbin <ilya.verbin@intel.com>
11694 Kirill Yukhin <kirill.yukhin@intel.com>
11695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11697 * config/i386/sse.md (VI4_AVX512F): New.
11698 (VI8_AVX2_AVX512F): Ditto.
11699 (mul<mode>3): Extended with wider modes.
11700 (*<sse4_1_avx2>_mul<mode>3): Ditto.
11701 (mul<mode>3): Ditto.
11702 (vec_widen_<s>mult_odd_<mode>): Ditto.
11704 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11706 Sergey Lega <sergey.s.lega@intel.com>
11707 Anna Tikhonova <anna.tikhonova@intel.com>
11708 Ilya Tocar <ilya.tocar@intel.com>
11709 Andrey Turetskiy <andrey.turetskiy@intel.com>
11710 Ilya Verbin <ilya.verbin@intel.com>
11711 Kirill Yukhin <kirill.yukhin@intel.com>
11712 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11714 * config/i386/sse.md (VI2_AVX512F): New.
11715 (VI124_AVX512F): Ditto.
11716 (sseunpackmode): Extended with wider modes.
11717 (sseunpackfltmode): Ditto.
11718 (vec_unpacks_float_hi_<mode>): Ditto.
11719 (vec_unpacks_float_lo_<mode>): Ditto.
11720 (vec_unpacku_float_hi_<mode>): Ditto.
11721 (vec_unpacku_float_lo_<mode>): Ditto.
11722 (vec_unpacks_lo_<mode>): Ditto.
11723 (vec_unpacks_hi_<mode>): Ditto.
11724 (vec_unpacku_lo_<mode>): Ditto.
11725 (vec_unpacku_hi_<mode>): Ditto.
11727 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11729 Sergey Lega <sergey.s.lega@intel.com>
11730 Anna Tikhonova <anna.tikhonova@intel.com>
11731 Ilya Tocar <ilya.tocar@intel.com>
11732 Andrey Turetskiy <andrey.turetskiy@intel.com>
11733 Ilya Verbin <ilya.verbin@intel.com>
11734 Kirill Yukhin <kirill.yukhin@intel.com>
11735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11737 * config/i386/i386.md (multdiv): New.
11738 (multdiv_mnemonic): Ditto.
11739 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11740 (<sse>_vm<multdiv_mnemonic><mode>3): This.
11741 (<sse>_vmdiv<mode>3): Removed.
11743 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11744 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11745 Sergey Lega <sergey.s.lega@intel.com>
11746 Anna Tikhonova <anna.tikhonova@intel.com>
11747 Ilya Tocar <ilya.tocar@intel.com>
11748 Andrey Turetskiy <andrey.turetskiy@intel.com>
11749 Ilya Verbin <ilya.verbin@intel.com>
11750 Kirill Yukhin <kirill.yukhin@intel.com>
11751 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11753 * config/i386/sse.md (V): Extended with wider modes.
11755 (ssehalfvecmode): Ditto.
11757 (ssepackfltmode): Ditto.
11758 (avx_vec_concat<mode>): Ditto.
11759 (V_256_512): New iterator.
11760 (VF2_512_256): Ditto.
11761 (si2dfmode): New attribute.
11762 (si2dfmodelower): Ditto.
11763 (sf2dfmode): Ditto.
11764 (concat_tg_mode): Ditto.
11765 (floatv4siv4df2): Changed to ...
11766 (float<si2dfmodelower><mode>2): This.
11767 (avx_cvtps2pd256): Changed to ...
11768 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11769 (vec_pack_trunc_v4df): Changed to ...
11770 (vec_pack_trunc_<mode>): This.
11771 (avx_vpermil<mode>): Changed to ...
11772 (<sse2_avx_avx512f>_vpermil<mode>): This.
11773 (<fixsuffix>fix_truncv8dfv8si2): New.
11774 (vec_pack_sfix_trunc_v8df): Ditto.
11775 (avx512f_rndscale<mode>): Ditto.
11776 (avx512f_roundpd512): Ditto.
11777 (vec_pack_ufix_trunc_<mode>): Updated iterator.
11779 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11781 Sergey Lega <sergey.s.lega@intel.com>
11782 Anna Tikhonova <anna.tikhonova@intel.com>
11783 Ilya Tocar <ilya.tocar@intel.com>
11784 Andrey Turetskiy <andrey.turetskiy@intel.com>
11785 Ilya Verbin <ilya.verbin@intel.com>
11786 Kirill Yukhin <kirill.yukhin@intel.com>
11787 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11789 * config/i386/i386.md (any_fix): New iterator.
11790 (fixsuffix): New attribute.
11791 * config/i386/sse.md (VF1): Extened with wider modes.
11795 (sseintvecmodelower): Ditto.
11796 (ssescalarmode): Ditto.
11797 (ssescalarnum): Ditto.
11798 (VF1_128_256): New.
11799 (ssexmmmode): Ditto.
11800 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11801 (<sse>_rcp<mode>2): Change iterator.
11802 (rsqrt<mode>2): Ditto.
11803 (<sse>_rsqrt<mode>2): Ditto.
11804 (avx2_vec_dup<mode>): Ditto.
11805 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11806 (round<mode>2_sfix): Ditto.
11807 (avx2_pbroadcast<mode>): Ditto.
11808 (*andnot<mode>3): Handle XI mode.
11809 (*<code><mode>3): Ditto.
11810 (AVXTOSSEMODE): Removed.
11811 (avx_vpermil<mode>): Changed to ...
11812 (<sse2_avx_avx512f>_vpermil<mode>): This.
11814 2013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11815 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11816 Sergey Lega <sergey.s.lega@intel.com>
11817 Anna Tikhonova <anna.tikhonova@intel.com>
11818 Ilya Tocar <ilya.tocar@intel.com>
11819 Andrey Turetskiy <andrey.turetskiy@intel.com>
11820 Ilya Verbin <ilya.verbin@intel.com>
11821 Kirill Yukhin <kirill.yukhin@intel.com>
11822 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11824 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11825 (<sse>_comi): Ditto.
11826 (<sse>_ucomi): Ditto.
11827 (sse_cvtss2siq_2): Ditto.
11828 (sse2_cvtsd2si): Ditto.
11829 (sse2_cvtsd2siq): Ditto.
11830 (sse2_cvttsd2si): Ditto.
11831 (sse2_cvttsd2siq): Ditto.
11832 (<shift_insn><mode>3): Ditto.
11833 (sse2_cvtsi2sdq): Update constraint and prefix.
11834 (sse_cvtsi2ss): Update prefix.
11835 (sse_cvtsi2ssq): Ditto.
11837 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11839 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11840 ignore internal calls.
11842 2013-10-11 Richard Biener <rguenther@suse.de>
11844 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11845 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
11846 TREE_OVERFLOW is set.
11848 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
11850 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11852 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11853 * gimple.h: Likewise.
11855 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11857 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11860 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11862 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11863 * configure: Regenerate.
11865 2013-10-11 Jakub Jelinek <jakub@redhat.com>
11867 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11868 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11869 formatting fixes, use pp_colon instead of pp_character (..., ':'),
11870 similarly pp_right_paren.
11871 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11872 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11873 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11874 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11876 (omp_declare_simd_clauses_equal,
11877 omp_remove_redundant_declare_simd_attrs): New functions.
11878 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11879 (walk_tree_1): Handle new OpenMP 4.0 clauses.
11880 * tree.h (OMP_LOOP_CHECK): Define.
11881 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11882 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11883 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11884 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11885 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11886 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11887 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11888 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11889 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11890 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11891 OMP_CLAUSE_SIMDLEN_EXPR): Define.
11892 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11893 (omp_remove_redundant_declare_simd_attrs): New prototype.
11894 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11895 GIMPLE_OMP_TEAMS): New codes.
11896 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11897 * omp-low.c (struct omp_context): Add cancel_label and cancellable
11899 (target_nesting_level): New variable.
11900 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11901 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
11902 for collapse > 1 static schedule unless ordered.
11903 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
11904 (determine_parallel_type): Adjust get_ws_args_for caller.
11905 (install_var_field): Handle mask & 4 for double indirection.
11906 (scan_sharing_clauses): Ignore shared clause on teams construct.
11907 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11908 (create_omp_child_function): If inside target or declare target
11909 constructs, set "omp declare target" attribute on the child function.
11910 (find_combined_for): New function.
11911 (scan_omp_parallel): Handle combined loops.
11912 (scan_omp_target, scan_omp_teams): New functions.
11913 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11914 restrictions and set ctx->cancellable for cancellable constructs.
11915 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11916 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
11917 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11918 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11919 (omp_clause_aligned_alignment): New function.
11920 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11921 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
11922 on teams constructs. Handle user defined reductions and new
11923 OpenMP 4.0 clauses.
11924 (lower_reduction_clauses): Don't set placeholder to address of ref
11925 if it has already the right type.
11926 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11927 (expand_parallel_call): Use the new non-_start suffixed builtins,
11928 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11929 and GOMP_parallel_end after the call.
11930 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11931 (expand_omp_for_init_counts): Handle combined loops.
11932 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11934 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
11935 end of cancellable loops.
11936 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11937 Likewise. Handle collapse > 1 loops.
11938 (expand_omp_simd): Handle combined loops.
11939 (expand_omp_for): Add inner_stmt argument, adjust callers of
11940 expand_omp_for* functions, use expand_omp_for_static*chunk even
11941 for collapse > 1 unless ordered.
11942 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11943 of cancellable sections.
11944 (expand_omp_single): Remove need_barrier variable, just rely on
11945 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
11946 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11947 (expand_omp_atomic_load, expand_omp_atomic_store,
11948 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11949 (expand_omp_target): New function.
11950 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
11951 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11952 (build_omp_regions_1): Immediately close region for
11953 GF_OMP_TARGET_KIND_UPDATE.
11954 (maybe_add_implicit_barrier_cancel): New function.
11955 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
11957 (lower_omp_single): Likewise. Add clobber after the barrier.
11958 (lower_omp_taskgroup): New function.
11959 (lower_omp_for): Handle combined loops. Adjust
11960 lower_rec_input_clauses caller. Handle cancellation.
11961 (lower_depend_clauses): New function.
11962 (lower_omp_taskreg): Lower depend clauses. Adjust
11963 lower_rec_input_clauses caller. Add clobber after the call. Handle
11965 (lower_omp_target, lower_omp_teams): New functions.
11966 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
11967 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11968 and GOMP_cancellation_point calls.
11969 (lower_omp): Fold stmts inside of target region.
11970 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11971 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11972 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11973 (BT_FN_VOID_OMPFN_PTR_UINT,
11974 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11975 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11976 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11977 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11978 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11979 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11980 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11981 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11982 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11983 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11985 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11986 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11987 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
11988 BUILT_IN_GOMP_PARALLEL_END.
11989 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11990 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11991 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11992 GF_OMP_FOR_KIND_DISTRIBUTE.
11993 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11994 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11995 (dump_gimple_omp_return): Print lhs if it has any.
11996 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11997 gimple_omp_atomic_seq_cst_p.
11998 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11999 and GIMPLE_OMP_TEAMS.
12000 * langhooks.c (lhd_omp_mappable_type): New function.
12001 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
12002 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
12004 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
12005 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
12006 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
12007 (struct gimplify_omp_ctx): Add combined_loop field.
12008 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
12009 on stmts inside of target region.
12010 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
12011 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
12012 ORT_TARGET and ORT_TARGET_DATA.
12013 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
12015 (omp_notice_threadprivate_variable): Complain about threadprivate
12016 variables in target region.
12017 (omp_notice_variable): Complain about vars with non-mappable type
12018 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
12019 (omp_check_private): Ignore ORT_TARGET* regions.
12020 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
12021 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
12022 (find_combined_omp_for): New function.
12023 (gimplify_omp_for): Handle gimplification of combined loops.
12024 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
12026 (gimplify_omp_target_update): New function.
12027 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
12028 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
12029 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
12030 (gimplify_body): If fndecl has "omp declare target" attribute, add
12031 implicit ORT_TARGET context around it.
12032 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
12033 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
12034 * tree-nested.c (convert_nonlocal_reference_stmt,
12035 convert_local_reference_stmt, convert_gimple_call): Handle
12036 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12037 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
12038 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
12039 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
12040 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
12041 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
12042 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
12043 BUILT_IN_GOMP_LOOP_END_CANCEL,
12044 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
12045 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
12046 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
12047 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
12048 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
12049 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
12050 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
12051 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
12052 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
12053 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
12054 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
12055 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
12056 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
12057 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
12058 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
12059 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12060 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
12061 gimple_build_omp_teams): New functions.
12062 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
12063 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
12064 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
12065 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12066 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
12067 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
12068 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
12069 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
12070 GF_OMP_ATOMIC_SEQ_CST): New.
12071 (gimple_build_omp_taskgroup, gimple_build_omp_target,
12072 gimple_build_omp_teams): New prototypes.
12073 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
12074 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12075 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
12076 GIMPLE_OMP_SINGLE as end of range.
12077 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
12078 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
12079 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
12080 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
12081 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
12082 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
12083 gimple_omp_target_kind, gimple_omp_target_set_kind,
12084 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
12085 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
12086 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
12087 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
12088 gimple_omp_teams_set_clauses): New inlines.
12089 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
12090 and GIMPLE_OMP_TASKGROUP.
12091 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
12092 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
12093 enum omp_clause_proc_bind_kind): New.
12094 (union omp_clause_subcode): Add depend_kind, map_kind and
12095 proc_bind_kind fields.
12096 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
12097 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
12098 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
12099 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
12100 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12102 2013-10-10 Teresa Johnson <tejohnson@google.com>
12104 * predict.c (tree_estimate_probability): Add new parameter
12105 for estimate_bb_frequencies.
12106 (estimate_bb_frequencies): Add new parameter to force estimation.
12107 (rebuild_frequencies): When max frequency in function is small,
12108 recompute counts from frequencies.
12109 * predict.h (estimate_bb_frequencies): New parameter.
12111 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12113 * ipa-inline.c (ipa_inline): Fix leak of "order" when
12114 optimizations are disabled.
12116 2013-10-10 David Malcolm <dmalcolm@redhat.com>
12118 * coverage.c (coverage_finish): Fix leak of da_file_name.
12120 2013-10-10 Jan Hubicka <jh@suse.cz>
12122 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
12123 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
12124 Bobcat and generic.
12126 2013-10-10 Jakub Jelinek <jakub@redhat.com>
12128 PR middle-end/58670
12129 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
12130 if any labels are in FALLTHRU_BB, use a special label emitted
12131 immediately after the asm goto insn rather than label_rtx
12133 (expand_asm_stmt): Adjust caller.
12134 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
12135 edge if the last insn in predecessor is a jump with single successor,
12136 but it isn't simplejump_p.
12138 2013-10-10 Richard Biener <rguenther@suse.de>
12140 PR tree-optimization/58656
12141 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
12143 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12145 * gimplify.c: Include expr.h and tm_p.h for targets with special
12146 va-arg padding requirements.
12148 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12150 * tree-flow.h: Move some prototypes to gimple.h.
12151 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
12152 * gimple.h: Relocate some prototypes from tree-flow.h
12153 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
12154 Move to gimplify.c.
12155 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
12156 (build_va_arg_indirect_ref): Relocate and make static.
12157 (std_gimplify_va_arg_expr): Relocate here.
12158 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
12159 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
12161 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12163 * doc/md.texi: Document the mnemonic attribute.
12165 2013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12168 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
12169 (set_attr_alternative x ...) when searching for user defined
12170 mnemonic attribute.
12172 2013-10-10 Andrew MacLeod <amacleod@redhat.com>
12174 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
12176 2013-10-09 Easwaran Raman <eraman@google.com>
12178 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
12179 * cfgexpand.c (defer_stack_allocation): ...use here
12180 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
12182 2013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
12184 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
12185 (operand_equal_for_value_replacement): New function, extracted from
12186 value_replacement and enhanced to catch more cases.
12187 (value_replacement): Use operand_equal_for_value_replacement.
12189 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12191 * loop-doloop.c (doloop_modify, doloop_optimize): Use
12192 get_max_loop_iterations.
12194 2013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12196 * config/arm/aarch-common.c (arm_early_load_addr_dep):
12197 Place comment above function.
12199 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12201 * tree-flow.h: Remove all remaining prototypes, enums and structs that
12202 are not related to tree-cfg.c.
12203 * tree-ssa-address.h: New file. Relocate prototypes.
12204 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
12205 (addr_for_mem_ref): New. Combine call to get_address_description and
12206 return addr_for_mem_ref.
12207 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
12208 * tree-ssa-live.h: Adjust prototypes.
12209 * passes.c: Include tree-ssa-live.h.
12210 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
12211 * graphite.c (graphite_transform_loops): Make static.
12212 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12213 make_pass_graphite, pass_data_graphite_transforms,
12214 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
12215 * ipa-pure-const.c (warn_function_noreturn): Make static.
12216 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12217 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12218 Relocate from tree-cfg.c
12219 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
12221 (execute_warn_function_noreturn, gate_warn_function_noreturn,
12222 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
12223 Move to ipa-pure-const.c.
12224 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
12225 Relocate from tree-optimize.c.
12226 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
12227 make_pass_fixup_cfg): Move to tree-cfg.c.
12228 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
12229 Relocate some prototypes.
12230 * tree-data-ref.h (tree_check_data_deps) Add prototype.
12231 * tree-dump.c (dump_function_to_file): Remove prototype.
12232 Add tree-flow.h to the include file.
12233 * tree-dump.h: Remove prototype.
12234 * tree-parloops.h: New File. Add prototypes.
12235 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
12236 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
12237 from tree-ssa-loop.c.
12238 * tree-predcom.c (run_tree_predictive_commoning,
12239 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
12240 Relocate here from tree-ssa-loop.c.
12241 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
12242 ssa_name_values.release ().
12243 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
12244 (ssa_name_values): Relocate from tree-flow.h.
12245 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
12246 * tree-ssa-loop.c (run_tree_predictive_commoning,
12247 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
12248 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
12249 make_pass_graphite, pass_data_graphite_transforms,
12250 make_pass_graphite_transforms, gate_tree_parallelize_loops,
12251 tree_parallelize_loops, pass_data_parallelize_loops,
12252 make_pass_parallelize_loops): Move to other files.
12253 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
12255 * tree.h: Remove prototypes from tree-address.c.
12257 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12259 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
12260 (struct int_tree_map): Move to tree-hasher.h
12261 (SCALE, LABEL, PERCENT): Move to gimple.h
12262 * tree-flow-inline.h: Delete. Move functions to other files.
12263 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
12264 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
12265 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
12266 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
12267 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
12268 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
12269 * tree-hasher.h: Don't include tree-flow.h.
12270 (struct int_tree_map): Relocate from tree-flow.h.
12271 * tree-sra.c (contains_view_convert_expr_p): Relocate from
12272 tree-flow-inline.h and make static.
12273 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
12274 tree-flow-inline.h.
12275 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
12276 tree-flow-inline.h and make static.
12277 * tree.h (is_global_var, may_be_aliased): Relocate from
12278 tree-flow-inline.h.
12279 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
12280 * value-prof.c: No longer include tree-flow-inline.h.
12281 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
12283 2013-10-09 Andrew MacLeod <amacleod@redhat.com>
12285 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
12286 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
12287 (enum move_pos): Move to tree-ssa-loop-im.h
12288 * cfgloop.h: Move some prototypes.
12289 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
12290 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
12291 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
12292 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
12293 (loop_containing_stmt): Relocate from tree-flow-inline.h.
12294 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
12295 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
12296 (enum move_pos): Relocate here.
12297 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
12299 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
12300 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
12301 make_pass_lim): Relocate here from tree-ssa-loop.c.
12302 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
12304 (loop_edge_to_cancel, unloop_loops): Make static.
12305 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12306 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
12307 (tree_complete_unroll, gate_tree_complete_unroll,
12308 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
12309 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12310 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
12311 * tree-ssa-loop-ivopts.c: Remove local prototypes.
12312 (stmt_invariant_in_loop_p): Remove unused function.
12313 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
12314 * tree-ssa-loop-manip.h: New file. Add prototypes.
12315 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
12316 (gcov_type_to_double_int): Move to cfgloop.h.
12317 (double_int_cmp, bound_index,
12318 estimate_numbers_of_iterations_loop): Make static.
12319 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
12320 (max_loop_iterations): Factor out get_max_loop_iterations.
12321 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
12323 * tree-ssa-loop-niter.h: New file. Add prototypes.
12324 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
12325 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
12326 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
12327 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
12328 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
12329 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
12330 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
12331 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
12332 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
12333 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
12334 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
12335 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
12336 pass_data_complete_unroll, make_pass_complete_unroll,
12337 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
12338 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
12339 tree-ssa-loop-ivcanon.c.
12340 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
12341 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
12342 tree-ssa-loop-prefetch.c.
12343 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
12344 tree-ssa-loop-im.c.
12345 (get_lsm_tmp_name): Relocate and add suffix parameter.
12346 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
12347 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
12348 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
12349 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
12350 (get_estimated_loop_iterations): Factor out accessor from
12351 estimated_loop_iterations in tree-ssa-loop-niter.c.
12352 (get_max_loop_iterations): Factor out accessor from
12353 _max_loop_iterations in tree-ssa-niter.c.
12354 * loop-unroll.c (decide_unroll_constant_iterations,
12355 decide_unroll_runtime_iterations, decide_peel_simple,
12356 decide_unroll_stupid): Use new get_* accessors.
12358 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
12360 PR tree-optimization/20318
12361 * doc/extend.texi (returns_nonnull): New function attribute.
12362 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12364 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12365 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12367 2013-10-09 Eric Botcazou <ebotcazou@adacore.com>
12369 PR middle-end/58570
12370 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12371 false if both components are bitfields.
12373 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12375 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12376 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12377 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12378 * config/aarch64/aarch64.h
12379 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12380 * config/aarch64/aarch64-simd-builtins.def
12381 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12383 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12385 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12387 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12389 * config/aarch64/arm_neon.h (vdiv_f64): Added.
12391 2013-10-09 Alex Velenko <Alex.Velenko@arm.com>
12393 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12394 (vneg_f64): New intrinsic.
12395 (vneg_s8): Asm replaced with C.
12396 (vneg_s16): Likewise.
12397 (vneg_s32): Likewise.
12398 (vneg_s64): New intrinsic.
12399 (vnegq_f32): Asm replaced with C.
12400 (vnegq_f64): Likewise.
12401 (vnegq_s8): Likewise.
12402 (vnegq_s16): Likewise.
12403 (vnegq_s32): Likewise.
12404 (vnegq_s64): Likewise.
12406 2013-10-09 Renlin Li <Renlin.Li@arm.com>
12408 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12410 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12412 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12413 packed stack special handling.
12414 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12415 back to fixed stack slots for FPRs saved due to stdarg.
12417 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12419 * config/s390/s390.c (s390_frame_info): Restructure function.
12421 2013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12423 * config/s390/s390.c (struct s390_frame_layout): New field
12425 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12426 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12427 regs_ever_clobbered to char*.
12428 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12429 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
12430 (s390_register_info): Enable FPR save slots. Move/Copy some
12431 functionality into ...
12432 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12433 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12435 (s390_frame_info): Do gpr slot allocation here now. stdarg does
12436 not imply a stack frame.
12437 (s390_init_frame_layout): Remove variable clobbered_regs.
12438 (s390_update_register_info): Remove function.
12439 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12440 cannot be used for register renaming.
12441 (s390_hard_regno_scratch_ok): New function.
12442 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12443 (s390_initial_elimination_offset): Change offset calculation of
12444 the return address pointer.
12445 (save_gprs): Deal with only r6 being saved from the call-saved regs.
12446 (restore_gprs): Set frame related flag.
12447 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12448 (s390_emit_prologue): Call s390_register_info instead of
12449 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
12450 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12451 (s390_optimize_prologue): Call s390_optimize_register_info.
12452 Try to remove also FPR slot save/restore INSNs. Remove frame
12453 related flags from restore INSNs.
12455 2013-10-08 DJ Delorie <dj@redhat.com>
12457 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12460 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12461 avoid conflict with the MI use of %c.
12462 * config/rl78/rl78-real.md: change %c to %C throughout.
12463 * config/rl78/rl78-virt.md: Likewise.
12465 2013-10-08 Jan Hubicka <jh@suse.cz>
12467 * config/i386/i386.c (ix86_option_override_internal): Switch
12468 to SSE math for -ffast-math when target ISA supports SSE2.
12470 2013-10-08 Andrew MacLeod <amacleod@redhat.com>
12472 * tree-flow.h: Remove some prototypes.
12473 * tree.h: Remove some protypes, add a couple.
12474 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12475 using_eh_for_cleanups_p): Add interface routines for front ends.
12476 * tree-eh.h: New file. Add protoptyes.
12477 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12478 (add_stmt_to_eh_lp_fn): Make static.
12479 (lower_try_finally): Use new using_eh_for_cleanups_p.
12480 * emit-rtl.c: Include tree-eh.h.
12481 * gimple.h: Include tree-eh.h.
12483 2013-10-08 Marc Glisse <marc.glisse@inria.fr>
12485 PR tree-optimization/58480
12486 * tree-vrp.c (infer_nonnull_range): New function.
12487 (infer_value_range): Call infer_nonnull_range.
12489 2013-10-08 Dehao Chen <dehao@google.com>
12491 PR tree-optimization/58619
12492 * tree-inline.c (copy_phis_for_bb): Combine location data
12495 2013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12498 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12499 RTX_FRAME_RELATED_P on INSN.
12501 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12503 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12504 (altivec_expand_vec_perm_const): Call it.
12506 2013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12508 * config/rs6000/vector.md (mov<mode>): Emit permuted move
12509 sequences for LE VSX loads and stores at expand time.
12510 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12512 * config/rs6000/rs6000.c (rs6000_const_vec): New.
12513 (rs6000_gen_le_vsx_permute): New.
12514 (rs6000_gen_le_vsx_load): New.
12515 (rs6000_gen_le_vsx_store): New.
12516 (rs6000_gen_le_vsx_move): New.
12517 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12518 (*vsx_le_perm_load_v4si): New.
12519 (*vsx_le_perm_load_v8hi): New.
12520 (*vsx_le_perm_load_v16qi): New.
12521 (*vsx_le_perm_store_v2di): New.
12522 (*vsx_le_perm_store_v4si): New.
12523 (*vsx_le_perm_store_v8hi): New.
12524 (*vsx_le_perm_store_v16qi): New.
12525 (*vsx_xxpermdi2_le_<mode>): New.
12526 (*vsx_xxpermdi4_le_<mode>): New.
12527 (*vsx_xxpermdi8_le_V8HI): New.
12528 (*vsx_xxpermdi16_le_V16QI): New.
12529 (*vsx_lxvd2x2_le_<mode>): New.
12530 (*vsx_lxvd2x4_le_<mode>): New.
12531 (*vsx_lxvd2x8_le_V8HI): New.
12532 (*vsx_lxvd2x16_le_V16QI): New.
12533 (*vsx_stxvd2x2_le_<mode>): New.
12534 (*vsx_stxvd2x4_le_<mode>): New.
12535 (*vsx_stxvd2x8_le_V8HI): New.
12536 (*vsx_stxvd2x16_le_V16QI): New.
12538 2013-10-07 Renlin Li <Renlin.Li@arm.com>
12540 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12542 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12544 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12545 loop to work also for 31bit ABI.
12546 Save the stack pointer for frame_size > 0.
12548 2013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12550 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12551 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12552 constraint letters from expanders.
12553 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12554 retry count to general_operand.
12555 ("tabort"): Give operand 0 a mode.
12556 ("tabort_1"): Add mode and constraint letter for operand 0.
12557 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12559 2013-10-04 Jeff Law <law@redhat.com>
12561 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12563 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12565 (thread_across_edge): Here. Call it.
12567 2013-10-04 Cary Coutant <ccoutant@google.com>
12569 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12570 discarding a location list expression (or a piece of one).
12572 2013-10-03 Jan Hubicka <jh@suse.cz>
12574 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12575 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
12576 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12578 2013-10-03 Jan Hubicka <jh@suse.cz>
12580 * config/i386/i386.c (ix86_option_override_internal): Do not enable
12581 accumulate-outgoing-args when producing unwind info.
12583 2013-10-03 Wei Mi <wmi@google.com>
12585 * lra-constraints.c (insert_move_for_subreg): New function
12586 extracted from simplify_operand_subreg.
12587 (simplify_operand_subreg): Add reload for paradoxical subreg.
12589 2013-10-03 Rong Xu <xur@google.com>
12591 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12592 the candidate of builtin_expect such that we should fix the
12593 size/time estimation.
12594 (estimate_function_body_sizes): Do the acutally size/time fix-up
12595 for builtin_expect.
12597 2013-10-03 Rong Xu <xur@google.com>
12599 * predict.c (tree_predict_by_opcode): Get the probability
12600 for builtin_expect from param builtin_expect_probability.
12601 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12602 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12603 * doc/invoke.texi: Add documentation for builtin-expect-probability.
12605 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
12608 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12609 * calls.c (alloca_call_p): Use get_callee_fndecl.
12610 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12611 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12613 (vrp_visit_stmt): Remove duplicated code.
12615 2013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12617 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12618 ceildf2, btruncdf2, instead of vsx_* name.
12620 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12621 iterators to only do V2DF and V4SF here. Move the DF code to
12622 rs6000.md where it is combined with SF mode. Replace <VSv> with
12623 just 'v' since only vector operations are handled with these insns
12624 after moving the DF support to rs6000.md.
12625 (vsx_sub<mode>3): Likewise.
12626 (vsx_mul<mode>3): Likewise.
12627 (vsx_div<mode>3): Likewise.
12628 (vsx_fre<mode>2): Likewise.
12629 (vsx_neg<mode>2): Likewise.
12630 (vsx_abs<mode>2): Likewise.
12631 (vsx_nabs<mode>2): Likewise.
12632 (vsx_smax<mode>3): Likewise.
12633 (vsx_smin<mode>3): Likewise.
12634 (vsx_sqrt<mode>2): Likewise.
12635 (vsx_rsqrte<mode>2): Likewise.
12636 (vsx_fms<mode>4): Likewise.
12637 (vsx_nfma<mode>4): Likewise.
12638 (vsx_copysign<mode>3): Likewise.
12639 (vsx_btrunc<mode>2): Likewise.
12640 (vsx_floor<mode>2): Likewise.
12641 (vsx_ceil<mode>2): Likewise.
12642 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12643 (vsx_sminsf3): Likewise.
12644 (vsx_fmadf4): Likewise.
12645 (vsx_fmsdf4): Likewise.
12646 (vsx_nfmadf4): Likewise.
12647 (vsx_nfmsdf4): Likewise.
12648 (vsx_cmpdf_internal1): Likewise.
12650 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12651 simpler to select whether a target has SPE or traditional floating
12652 point support in iterators.
12653 (TARGET_DF_SPE): Likewise.
12654 (TARGET_SF_FPR): Likewise.
12655 (TARGET_DF_FPR): Likewise.
12656 (TARGET_SF_INSN): Macros to say whether floating point support
12657 exists for a given operation for expanders.
12658 (TARGET_DF_INSN): Likewise.
12660 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12661 combining of SF/DF mode operations, using both traditional and VSX
12669 (abs<mode>2): Combine SF/DF modes using traditional floating point
12670 instructions. Add support for using the upper DF registers with
12671 VSX support, and SF registers with power8-vector support. Update
12672 expanders for operations supported by both the SPE and traditional
12673 floating point units.
12674 (abs<mode>2_fpr): Likewise.
12675 (nabs<mode>2): Likewise.
12676 (nabs<mode>2_fpr): Likewise.
12677 (neg<mode>2): Likewise.
12678 (neg<mode>2_fpr): Likewise.
12679 (add<mode>3): Likewise.
12680 (add<mode>3_fpr): Likewise.
12681 (sub<mode>3): Likewise.
12682 (sub<mode>3_fpr): Likewise.
12683 (mul<mode>3): Likewise.
12684 (mul<mode>3_fpr): Likewise.
12685 (div<mode>3): Likewise.
12686 (div<mode>3_fpr): Likewise.
12687 (sqrt<mode>3): Likewise.
12688 (sqrt<mode>3_fpr): Likewise.
12689 (fre<Fs>): Likewise.
12690 (rsqrt<mode>2): Likewise.
12691 (cmp<mode>_fpr): Likewise.
12692 (smax<mode>3): Likewise.
12693 (smin<mode>3): Likewise.
12694 (smax<mode>3_vsx): Likewise.
12695 (smin<mode>3_vsx): Likewise.
12696 (negsf2): Delete SF operations that are merged with DF.
12697 (abssf2): Likewise.
12698 (addsf3): Likewise.
12699 (subsf3): Likewise.
12700 (mulsf3): Likewise.
12701 (divsf3): Likewise.
12703 (fmasf4_fpr): Likewise.
12704 (fmssf4_fpr): Likewise.
12705 (nfmasf4_fpr): Likewise.
12706 (nfmssf4_fpr): Likewise.
12707 (sqrtsf2): Likewise.
12708 (rsqrtsf_internal1): Likewise.
12709 (smaxsf3): Likewise.
12710 (sminsf3): Likewise.
12711 (cmpsf_internal1): Likewise.
12712 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12713 (negdf2): Delete DF operations that are merged with SF.
12714 (absdf2): Likewise.
12715 (nabsdf2): Likewise.
12716 (adddf3): Likewise.
12717 (subdf3): Likewise.
12718 (muldf3): Likewise.
12719 (divdf3): Likewise.
12721 (rsqrtdf_internal1): Likewise.
12722 (fmadf4_fpr): Likewise.
12723 (fmsdf4_fpr): Likewise.
12724 (nfmadf4_fpr): Likewise.
12725 (nfmsdf4_fpr): Likewise.
12726 (sqrtdf2): Likewise.
12727 (smaxdf3): Likewise.
12728 (smindf3): Likewise.
12729 (cmpdf_internal1): Likewise.
12730 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12731 (btrunc<mode>2): Delete separate expander, and combine with the
12732 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
12733 (btrunc<mode>2_fpr): Likewise.
12734 (ceil<mode>2): Likewise.
12735 (ceil<mode>2_fpr): Likewise.
12736 (floor<mode>2): Likewise.
12737 (floor<mode>2_fpr): Likewise.
12738 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12739 Add support for using the upper registers with VSX and
12740 power8-vector. Move insns to be closer to the define_expands. On
12741 VSX systems, prefer the traditional form of FMA over the VSX
12742 version, since the traditional form allows the target not to
12743 overlap with the inputs.
12744 (fms<mode>4_fpr): Likewise.
12745 (nfma<mode>4_fpr): Likewise.
12746 (nfms<mode>4_fpr): Likewise.
12748 2013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12749 Richard Earnshaw <richard.earnshaw@arm.com>
12751 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12752 (struct mult_cost_table): Likewise.
12753 (struct mem_cost_table): Likewise.
12754 (struct fp_cost_table): Likewise.
12755 (struct vector_cost_table): Likewise.
12756 (cpu_cost_table): Likewise.
12757 * config/arm/arm.opt (mold-rts-costs): New option.
12758 (mnew-generic-costs): Likewise.
12759 * config/arm/arm.c (generic_extra_costs): New table.
12760 (cortexa15_extra_costs): Likewise.
12761 (arm_slowmul_tune): Use NULL as new costs.
12762 (arm_fastmul_tune): Likewise.
12763 (arm_strongarm_tune): Likewise.
12764 (arm_xscale_tune): Likewise.
12765 (arm_9e_tune): Likewise.
12766 (arm_v6t2_tune): Likewise.
12767 (arm_cortex_a5_tune): Likewise.
12768 (arm_cortex_a9_tune): Likewise.
12769 (arm_v6m_tune): Likewise.
12770 (arm_fa726te_tune): Likewise.
12771 (arm_cortex_a15_tune): Use cortex15_extra_costs.
12772 (arm_cortex_tune): Use generict_extra_costs.
12773 (shifter_op_p): New function.
12774 (arm_unspec_cost): Likewise.
12775 (LIBCALL_COST): Define.
12776 (arm_new_rtx_costs): New function.
12777 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12778 table is available. Use old costs otherwise unless mnew-generic-costs
12780 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12781 (cpu_cost_table): Declare.
12783 2013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
12786 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12787 (*subs_mul_imm_<mode>)
12788 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12789 (*sub_<shift>_<mode>)
12790 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12791 Remove k constraint.
12793 2013-10-03 Ian Bolton <ian.bolton@arm.com>
12795 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12797 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12799 2013-10-02 Teresa Johnson <tejohnson@google.com>
12801 * predict.c (probably_never_executed): New function.
12802 (probably_never_executed_bb_p): Invoke probably_never_executed.
12803 (probably_never_executed_edge_p): Ditto.
12804 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12805 Treat profile insanities conservatively.
12807 2013-10-02 John David Anglin <danglin@gcc.gnu.org>
12809 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12811 2013-10-02 Vladimir Makarov <vmakarov@redhat.com>
12813 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12814 use it. Use smaller increase for scratch. Don't increase reject
12815 for early clobber scratch.
12816 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12817 setting eliminated regs except setting fp from hfp.
12818 (lra_eliminate): Check lra_insn_recog_data on NULL.
12820 2013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12823 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12824 setting -mvsx-timode by default until the underlying problem is fixed.
12825 (RS6000_CPU, power7 defaults): Likewise.
12827 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12829 * config/x-linux (host-linux.o): Remove header dependencies.
12830 Use $(COMPILE) and $(POSTCOMPILE).
12831 * config/t-linux-android (linux-android.o): Ditto.
12833 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12835 * Makefile.in (expmed.o-warn): Remove.
12837 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12839 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12840 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12842 2013-10-02 Teresa Johnson <tejohnson@google.com>
12844 * dojump.c (do_jump_1): Divide probability between
12845 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12847 2013-10-02 Tom Tromey <tromey@redhat.com>
12849 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12851 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12853 * tree-flow.h: Remove some prototypes.
12854 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12855 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12856 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12857 mark_virtual_phi_result_for_renaming): Relocate here.
12858 * tree-into-ssa.h: Add prototypes.
12859 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12860 single_pred_before_succ_order.
12861 (blocks_in_phiopt_order): Rename and move to cfganal.c.
12862 (nonfreeing_call_p) Move to gimple.c.
12863 * cfganal.c (single_pred_before_succ_order): Move and renamed from
12865 * basic-block.h (single_pred_before_succ_order): Add prototype.
12866 * gimple.c (nonfreeing_call_p): Relocate here.
12867 * gimple.h: Add prototype.
12868 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12869 * tree-ssa-dom.h: New file. Relocate prototypes here.
12870 * tree-ssa.h: Include tree-ssa-dom.h.
12872 2013-10-02 Uros Bizjak <ubizjak@gmail.com>
12874 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12875 Use $(COMPILE) and $(POSTCOMPILE).
12877 * config/alpha/x-alpha (driver-alpha.o): Ditto.
12879 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12881 * tree-flow.h: Remove some prototypes.
12882 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12883 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12884 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12885 propagate_tree_value*): Move from here to...
12886 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12887 propagate_tree_value*): Relocate here.
12888 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12889 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12890 * gimple-fold.c: Remove gimple-fold.h from include list.
12891 * tree-vrp.c: Remove gimple-fold.h from include list.
12892 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12893 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12894 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12895 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12896 * sese.c: Add tree-ssa-propagate.h to include list.
12898 2013-10-02 Richard Biener <rguenther@suse.de>
12900 * tree-loop-distribution.c: Include tree-vectorizer.h for
12901 find_loop_location.
12902 (enum partition_kind): Remove PKIND_REDUCTION.
12903 (struct partition_s): Remove has_writes member, add reduction_p member.
12904 (partition_alloc): Adjust.
12905 (partition_builtin_p): Likewise.
12906 (partition_has_writes): Remove.
12907 (partition_reduction_p): New function.
12908 (partition_merge_into): Likewise.
12909 (generate_code_for_partition): Commonize builtin partition
12911 (rdg_cannot_recompute_vertex_p): Remove.
12912 (already_processed_vertex_p): Likewise.
12913 (rdg_flag_vertex): Do not set has_writes.
12914 (classify_partition): Adjust.
12915 (rdg_build_partitions): Do not set has_writes, treat all
12916 partitions as useful.
12917 (distribute_loop): Record number of library calls generated. Adjust.
12918 (tree_loop_distribution): Report number of loops and library
12919 calls generated as opt-info.
12921 2013-10-02 Andrew MacLeod <amacleod@redhat.com>
12923 * tree-flow.h: Include new .h files. Move prototypes.
12924 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
12925 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
12926 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12927 * tree-pretty-print.h: Add prototypes from tree-flow.h.
12928 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
12929 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12930 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12931 * tree.h (get_ref_base_and_extent): Move prototype out.
12932 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12934 * gimple-low.h: New File. Add prototypes from tree-flow.h.
12935 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12936 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12937 * tree-scalar-evolution.c: Include tree.h.
12938 * sese.c: Include tree.h.
12939 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12940 * dwarf2out.c: Include tree-dfa.h.
12941 * tree-chrec.c: Include tree.h.
12942 * tree-data-ref.c: Include tree.h.
12944 2013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
12946 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12949 2013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12951 * config/t-sol2 (sol2-c.o): Remove header dependencies.
12952 Use $(COMPILE) and $(POSTCOMPILE).
12953 (sol2-cxx.o): Likewise.
12954 (sol2-stubs.o): Likewise.
12955 (sol2.o): Likewise.
12956 * config/x-solaris (host-solaris.o): Likewise.
12958 * config/sparc/t-sparc (sparc.o): Remove.
12959 (sparc-c.o): Remove header dependencies.
12960 Use $(COMPILE) and $(POSTCOMPILE).
12961 * config/sparc/x-sparc: Likewise.
12963 2013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
12965 * config/arc/arc-opts.h: Add 2013 to Copyright years.
12966 * config/arc/arc700.md: Likewise.
12967 * config/arc/arc-modes.def: Likewise.
12968 * config/arc/arc-simd.h: Likewise.
12969 * config/arc/t-arc-uClibc: Likewise.
12970 * config/arc/t-arc-newlib: Likewise.
12972 2013-10-02 Renlin Li <renlin.li@arm.com>
12974 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12976 (aarch64_expand_epilogue): Likewise.
12978 2013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12979 Yufeng Zhang <yufeng.zhang@arm.com>
12981 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12983 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12984 'base_in' represent a conversion and legal_cast_p_1 holds; set
12985 'base_in' with the returned value from get_unwidened.
12987 2013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12989 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12990 plus_constant is not used.
12992 2013-10-01 Wei Mi <wmi@google.com>
12994 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12995 * config/i386/i386.md: Add define_peephole2 to
12996 break partial reg stall for cvtss2sd/cvtsd2ss.
12998 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13000 * config/arc/arc.c (pass_arc_ifcvt::clone):
13001 Update for ctxt_ -> m_ctxt change.
13003 2013-10-01 Jeff Law <law@redhat.com>
13005 * tree-ssa-threadupdate.c (struct redirection_data): Delete
13006 outgoing_edge and intermediate_edge fields. Instead store the path.
13007 (redirection_data::hash): Hash on the last edge's destination index.
13008 (redirection_data::equal): Check the entire thread path.
13009 (lookup_redirectio_data): Corresponding changes.
13010 (create_edge_and_update_destination_phis): Likewise.
13011 (thread_single_edge): Likewise.
13013 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13014 Diego Novillo <dnovillo@google.com>
13016 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
13017 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
13018 (vld32wh_insn, vld32wl_insn): Delete commented-out old
13019 versions of these patterns.
13021 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
13022 (__builtin_arc_aligned): Likewise.
13024 * config/arc/arc.md: Expand adc_0 comment stating the intended
13025 purpose and why it isn't ready.
13026 Replace commented out call_value_via_label_mixed with a
13027 plain comment about bl_s.
13029 * config/arc/arc.c (stdio.h): Don't include directly.
13030 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
13031 Remove if (1) condition.
13032 (arc_encode_section_info): Fix comment.
13034 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13036 * config/arc/arc.c (arc_conditional_register_usage):
13037 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
13038 Also set reg_alloc_order for DMA config regs.
13040 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13041 Jeremy Bennett <jeremy.bennett@embecosm.com>
13043 * doc/install.texi (--with-cpu): Mention ARC.
13044 (arc-*-elf32): New paragraph.
13045 (arc-linux-uclibc): Likewise.
13046 * doc/md.texi (Machine Constraints): Add ARC part.
13047 * doc/invoke.texi: (menu): Add ARC Options.
13048 (Machine Dependent Options) <ARC Options>: Add synopsis.
13049 (node ARC Options): Add.
13050 * doc/extend.texi (long_call / short_call attribute): Add ARC.
13051 (ARC Built-in Functions): New section defining
13052 generic ARC built-in functions.
13053 (ARC SIMD Built-in Functions): New section defining SIMD specific
13054 built-in functions.
13055 (Declaring Attributes of Functions): Extended
13056 description of short_call and long_call attributes for ARC and
13057 added index entries.
13059 2013-10-01 Saurabh Verma <saurabh.verma@codito.com>
13060 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
13061 Joern Rennecke <joern.rennecke@embecosm.com>
13062 Muhammad Khurram Riaz <khurram.riaz@arc.com>
13063 Brendan Kehoe <brendan@zen.org>
13064 Michael Eager <eager@eagercon.com>
13065 Simon Cook <simon.cook@embecosm.com>
13066 Jeremy Bennett <jeremy.bennett@embecosm.com>
13068 * config/arc, common/config/arc: New directories.
13070 2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
13071 Brendan Kehoe <brendan@zen.org>
13072 Simon Cook <simon.cook@embecosm.com>
13074 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
13076 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13078 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
13079 * tree-ssa-coalesce.h: New. Move prototype to here.
13080 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
13081 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
13082 (gimple_can_coalesce_p): Move to...
13083 * gimple.c (gimple_can_coalesce_p): Here.
13085 2013-10-01 Andrew MacLeod <amacleod@redhat.com>
13087 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
13088 (dump_decl_set): Move to gimple.c.
13089 * gimple.h: Don't include tree-ssa-operands.h.
13090 (dump_decl_set): Add prototype.
13091 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13092 Move to gimple-ssa.h.
13093 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
13094 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
13095 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
13096 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
13097 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
13099 (dump_decl_set): Relocate here.
13100 * gimple-ssa.h: New file.
13101 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
13102 Relocate from gimple.h.
13103 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
13104 * tree-ssa-operands.c (swap_ssa_operands): Rename from
13105 swap_tree_operands and remove non-ssa path.
13106 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
13107 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
13109 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
13110 vect_is_simple_reduction_1): Use swap_ssa_operands.
13111 * tree-flow.h: Move various prototypes to tree-phinodes.h.
13112 (enum need_phi_state): Move to tree-into-ssa.c.
13113 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13114 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
13115 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
13116 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
13117 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13118 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13119 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13120 num_imm_uses): Move to ssa-iterators.h.
13121 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
13122 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
13124 (op_iter_done, op_iter_next_def, op_iter_next_tree,
13125 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
13126 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
13127 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
13128 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
13129 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
13130 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
13131 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
13132 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
13133 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
13134 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
13135 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
13136 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
13137 (set_phi_nodes): Move to tree-phinodes.h.
13138 * tree-ssa-operands.h (enum ssa_op_iter_type,
13139 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
13140 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
13141 (dump_decl_set): Remove prototype.
13142 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
13143 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
13144 (set_phi_nodes): Relocate from tree-flow-inline.h.
13145 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
13147 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
13148 include list. Temporarily add gimple.h to include list.
13149 * ssa-iterators.h: New file.
13150 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
13151 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
13152 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
13153 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
13154 Relocate from tree-ssa-operands.h.
13155 (delink_imm_use, link_imm_use_to_list, link_imm_use,
13156 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
13157 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
13158 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
13159 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
13160 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
13161 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
13162 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
13163 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
13164 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
13165 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
13166 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
13167 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
13168 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
13169 Relocate from tree-flow-inline.h.
13170 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
13172 2013-10-01 Vidya Praveen <vidyapraveen@arm.com>
13175 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
13176 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
13177 Insert '\t' to output template.
13178 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
13179 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
13180 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
13181 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
13183 2013-10-01 Uros Bizjak <ubizjak@gmail.com>
13185 * doc/install.texi (Host/target specific installation notes for GCC):
13186 Put @anchor before @heading.
13187 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
13188 Use @email for email addresses.
13190 2013-10-01 Jeff Law <law@redhat.com>
13192 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
13193 a vec. Only delete the path if we create one without successfully
13194 registering a jump thread.
13195 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
13197 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
13198 (paths): New vector of jump threading paths.
13199 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
13200 (THREAD_PATH): New accessor macro for the entire thread path.
13201 (lookup_redirection_data): Get intermediate and final outgoing edge
13202 from the thread path.
13203 (create_edge_and_update_destination_phis): Copy the threading path.
13204 (ssa_fix_duplicate_block_edges): Get edges and block types from the
13205 jump threading path.
13206 (ssa_redirect_edges): Get edges and block types from the jump threading
13207 path. Free the path vector.
13208 (thread_block): Get edges from the jump threading path. Look at the
13209 entire path to see if we thread to a loop exit. If we cancel a jump
13210 thread request, then free the path vector.
13211 (thread_single_edge): Get edges and block types from the jump threading
13212 path. Free the path vector.
13213 (thread_through_loop_header): Get edges and block types from the jump
13214 threading path. Free the path vector.
13215 (mark_threaded_blocks): Iterate over the vector of paths and store
13216 the path on the appropriate edge. Get edges and block types from the
13217 jump threading path.
13218 (mark_threaded_blocks): Get edges and block types from the jump
13219 threading path. Free the path vector.
13220 (thread_through_all_blocks): Use the vector of paths rather than
13221 a vector of 3-edge sets.
13222 (register_jump_thread): Accept pointer to a path vector rather
13223 than the path vector itself. Store the path vector for later use.
13226 2013-10-01 Jakub Jelinek <jakub@redhat.com>
13227 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13230 * config/s390/s390.c (s390_split_branches): Modify check for table
13232 (s390_chunkify_start): Rearrange table jump insn check in order to
13233 deal with compare and branch insns correctly.
13235 2013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
13239 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
13240 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
13241 define_insn_and_split.
13242 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
13243 (shiftsi3_compare): New pattern.
13244 (rrx): New pattern.
13245 * config/arm/unspecs.md (UNSPEC_RRX): New.
13247 2013-10-01 Alan Modra <amodra@gmail.com>
13249 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
13250 casing inout operands.
13252 2013-10-01 Richard Biener <rguenther@suse.de>
13254 PR tree-optimization/58553
13255 * tree-loop-distribution.c (struct partition_s): Add niter member.
13256 (classify_partition): Populate niter member for the partition
13257 and properly identify whether the relevant store happens before
13258 or after the loop exit.
13259 (generate_memset_builtin): Use niter member from the partition.
13260 (generate_memcpy_builtin): Likewise.
13262 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13264 * vec.h (vec_prefix, vec): Prefix member names with "m_".
13265 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
13267 2013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
13269 * basic-block.h (edge_list): Prefix member names with "m_".
13270 * context.h (context): Likewise.
13271 * domwalk.h (dom_walker): Likewise.
13272 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
13273 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
13274 * hash-table.h (hash_table): Likewise.
13275 * machmode.h (bit_field_mode_iterator): Likewise.
13276 * pass_manager.h (pass_list): Likewise.
13277 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
13278 * tree-pass.h (pass_data): Likewise.
13279 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
13280 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
13281 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
13282 * asan.c (pass_data_asan): Update accordingly.
13283 * cfganal.c (control_dependences::find_control_dependence): Likewise.
13284 (control_dependences::control_dependences): Likewise.
13285 (control_dependences::~control_dependences): Likewise.
13286 (control_dependences::~control_dependences): Likewise.
13287 (control_dependences::get_edges_dependent_on): Likewise.
13288 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
13289 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
13290 * context.c (gcc::context::context): Likewise.
13291 * cprop.c (pass_rtl_cprop::clone): Likewise.
13292 * domwalk.c (dom_walker::walk): Likewise.
13293 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
13294 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
13295 * mode-switching.c (pass_mode_switching::clone): Likewise.
13296 * passes.c (opt_pass::opt_pass): Likewise.
13297 (pass_manager::pass_manager): Likewise.
13298 * predict.c (pass_strip_predict_hints::clone): Likewise.
13299 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
13300 (pass_split_all_insns::clone): Likewise.
13301 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
13303 (bit_field_mode_iterator::next_mode): Likewise.
13304 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
13305 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
13306 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
13307 * tree-complex.c (pass_lower_complex::clone): Likewise.
13308 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
13309 * tree-object-size.c (pass_object_sizes::clone): Likewise.
13310 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
13311 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
13312 (pass_fold_builtins::clone): Likewise.
13313 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
13314 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
13315 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
13316 (pass_cd_dce::clone): Likewise.
13317 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
13318 (pass_phi_only_cprop::clone): Likewise.
13319 * tree-ssa-dse.c (pass_dse::clone): Likewise.
13320 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
13321 * tree-ssa-loop.c (pass_lim::clone): Likewise.
13322 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
13323 * tree-ssa-pre.c (pass_fre::clone): Likewise.
13324 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
13325 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
13326 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
13327 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
13328 * tree-vrp.c (pass_vrp::clone): Likewise.
13329 * tsan.c (pass_tsan::clone): Likewise.
13331 2013-09-30 Jakub Jelinek <jakub@redhat.com>
13333 PR middle-end/58564
13334 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
13335 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
13337 PR middle-end/58564
13338 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
13339 optimization, punt if sign_bit_p looked through any zero extension.
13341 2013-09-30 Teresa Johnson <tejohnson@google.com>
13343 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
13344 Update redirected out edge count in joiner case.
13345 (ssa_redirect_edges): Common the joiner and non-joiner cases
13346 so that joiner case gets profile updates.
13348 2013-09-30 Richard Biener <rguenther@suse.de>
13350 PR tree-optimization/58554
13351 * tree-loop-distribution.c (classify_partition): Require
13352 unconditionally executed stores for memcpy and memset recognition.
13353 (tree_loop_distribution): Calculate dominance info.
13355 2013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
13357 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13358 (NO_PROFILE_COUNTERS): Likewise.
13359 (PROFILE_HOOK): Likewise.
13360 (FUNCTION_PROFILER): Likewise.
13361 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13363 2013-09-30 Iain Sandoe <iain@codesourcery.com>
13365 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13366 calls and defines in TARGET_MACHO conditional.
13367 (load_macho_picbase_di): Likewise.
13368 (reload_macho_picbase): Likewise.
13369 (reload_macho_picbase_si): Likewise.
13370 (reload_macho_picbase_di): Likewise.
13371 (nonlocal_goto_receiver): Likewise.
13373 2013-09-30 Nick Clifton <nickc@redhat.com>
13375 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
13376 that use the MSP430X ISA.
13377 (msp430_option_override): Scan -mmcu command line option for any
13378 MCU name that supports the MSP430X ISA.
13379 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13380 -mmcu options which enable the MSP430X ISA.
13382 2013-09-30 Richard Biener <rguenther@suse.de>
13384 PR middle-end/58532
13385 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13386 before looking for setjmp-like calls.
13388 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13391 * config/darwin-protos.h (machopic_get_function_picbase): New.
13392 * config/darwin.c (machopic_get_function_picbase): New.
13393 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13394 label for a new func. (load_macho_picbase_di): Likewise.
13395 (reload_macho_picbase): New expand.
13396 (reload_macho_picbase_si): New insn.
13397 (reload_macho_picbase_di): New insn.
13398 (nonlocal_goto_receiver): New define and split.
13399 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13400 (unspecv enum): Add UNSPECV_NLGR.
13402 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13404 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13405 that altivec registers are correctly sized on Darwin.
13407 2013-09-29 Iain Sandoe <iain@codesourcery.com>
13409 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13410 darwin-driver.o): Use COMPILE and POSTCOMPILE.
13411 * config/x-darwin (host-darwin.o): Likewise.
13412 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13413 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13414 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13416 2013-09-29 Uros Bizjak <ubizjak@gmail.com>
13418 * doc/invoke.texi: Fix usage of @tie{} command.
13420 2013-09-29 Eric Botcazou <ebotcazou@adacore.com>
13422 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13424 2013-09-28 Jan Hubicka <jh@suse.cz>
13426 * config/i386/x86-tune.def: Add documentation for each of the options;
13429 2013-09-28 Jan Hubicka <jh@suse.cz>
13431 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13433 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13434 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13435 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13436 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13437 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13439 2013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
13441 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13442 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13443 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13444 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13445 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13446 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13447 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13448 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13449 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13450 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13451 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13452 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13453 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13454 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13455 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13456 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13457 gimple.h, godump.c, graphite-clast-to-gimple.c,
13458 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13459 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13460 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13461 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13462 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13463 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13464 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13465 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13466 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13467 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13468 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13469 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13470 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13471 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13472 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13473 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13474 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13475 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13476 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13477 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13478 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13479 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13480 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13481 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13482 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13483 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13484 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13485 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13486 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13487 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13488 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13489 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13490 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13491 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13492 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13493 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13494 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13495 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13496 whitespace before "(".
13498 2013-09-28 Sandra Loosemore <sandra@codesourcery.com>
13500 * expr.h (extract_bit_field): Remove packedp parameter.
13501 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13502 from forward declaration.
13503 (store_split_bit_field): Remove packedp arg from calls to
13504 extract_fixed_bit_field.
13505 (extract_bit_field_1): Remove packedp parameter and packedp
13506 argument from recursive calls and calls to extract_fixed_bit_field.
13507 (extract_bit_field): Remove packedp parameter and corresponding
13508 arg to extract_bit_field_1.
13509 (extract_fixed_bit_field): Remove packedp parameter. Remove code
13511 (extract_split_bit_field): Remove packedp arg from call to
13512 extract_fixed_bit_field.
13513 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13514 (copy_blkmode_from_reg): Likewise.
13515 (copy_blkmode_to_reg): Likewise.
13516 (read_complex_part): Likewise.
13517 (store_field): Likewise.
13518 (expand_expr_real_1): Likewise.
13519 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13520 to extract_bit_field.
13521 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13522 call to extract_bit_field.
13523 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13524 call to extract_bit_field.
13525 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13526 and special packedp behavior from -fstrict-volatile-bitfields
13529 2013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13531 * lra-eliminations.c (init_elim_table): Guard value_p.
13533 2013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
13535 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13536 DFmode, DImode, and SFmode in the upper VSX registers based on the
13537 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
13538 if -mpower8-vector. Combine -mvsx-timode handling with the rest
13539 of the VSX register handling.
13541 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13542 (f32_sv): Likewise.
13543 (zero_extendsidi2_lfiwzx): Add support for loading into the
13544 Altivec registers with -mpower8-vector. Use wu/wv constraints to
13545 only do VSX memory options on Altivec registers.
13546 (extendsidi2_lfiwax): Likewise.
13547 (extendsfdf2_fpr): Likewise.
13548 (mov<mode>_hardfloat, SF/SD modes): Likewise.
13549 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13550 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13551 (movdi_internal64): Likewise.
13553 2013-09-27 Xinliang David Li <davidxl@google.com>
13555 * opts.c (finish_options): Adjust parameters
13556 according to vect cost model.
13557 (common_handle_option): Set dynamic vect cost
13559 targhooks.c (default_add_stmt_cost): Compute stmt cost
13561 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13562 Use helper function.
13563 * tree-vectorizer.h (unlimited_cost_model): New function.
13564 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13565 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13567 (vect_enhance_data_refs_alignment): Ditto.
13568 * flag-types.h: New enum.
13569 * common/config/i386/i386-common.c (ix86_option_init_struct):
13570 No need to initialize vect_cost_model flag.
13571 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13574 2013-09-27 Diego Novillo <dnovillo@google.com>
13576 * gimple.h (enum ssa_mode): Remove.
13578 2013-09-27 Paulo Matos <pmatos@broadcom.com>
13580 * cfgloop.h (number_of_loops): Fix typo in check for null.
13582 2013-09-27 Jakub Jelinek <jakub@redhat.com>
13584 PR middle-end/58551
13585 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13586 are children of outermost saved_cfun's loop, and set it up to
13587 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
13588 if loop != loop0 and SESE region contains bbs that belong to loop0.
13590 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13592 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13593 (binary_scale_code_p, get_base_term, get_index_term): New functions.
13594 (set_address_segment, set_address_base, set_address_index)
13595 (set_address_disp): Accept the argument unconditionally.
13596 (baseness): Remove must_be_base_p and must_be_index_p checks.
13597 (decompose_normal_address): Classify as much as possible in the
13600 2013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
13602 * cse.c (count_reg_usage): Handle INT_LIST.
13603 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13604 * reginfo.c (reg_scan_mark_refs): Likewise.
13605 * reload1.c (eliminate_regs_1): Likewise.
13607 2013-09-27 Iain Sandoe <iain@codesourcery.com>
13609 PR middle-end/58547
13610 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13613 2013-09-27 Richard Biener <rguenther@suse.de>
13615 PR tree-optimization/58459
13616 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13617 restriction not propagating into loops.
13619 2013-09-26 Florian Weimer <fw@deneb.enyo.de>
13621 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13622 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13623 * doc/tree-ssa.texi (Walking use-def chains): Delete.
13625 2013-09-26 Richard Biener <rguenther@suse.de>
13627 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13629 2013-09-26 Richard Biener <rguenther@suse.de>
13631 * alias.h (component_uses_parent_alias_set): Rename to ...
13632 (component_uses_parent_alias_set_from): ... this.
13633 * alias.c (component_uses_parent_alias_set): Rename to ...
13634 (component_uses_parent_alias_set_from): ... this and return
13635 the desired parent.
13636 (reference_alias_ptr_type_1): Use the result from
13637 component_uses_parent_alias_set_from instead of stripping
13638 components one at a time.
13639 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13641 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13643 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13644 Move prototypes to...
13645 * tree-ssa-ter.h: New File. Move prototypes here.
13646 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13647 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13648 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
13649 from is_replaceable_p.
13650 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13651 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
13652 (process_replaceable): Use ter_is_replaceable_p.
13653 (find_replaceable_in_bb): Use ter_is_replaceable_p.
13654 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
13655 newly refactored ssa_is_replaceable_p.
13656 * cfgexpand.c: Include tree-outof-ssa.h.
13657 * ssaexpand.h: Delete.
13659 2013-09-26 Andrew MacLeod <amacleod@redhat.com>
13661 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13662 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13664 (create_gimple_tmp): Delete.
13665 (get_expr_type, build_assign, build_type_cast): Move to...
13666 * gimple-builder.c: New File.
13667 (get_expr_type): Relocate from gimple.c.
13668 (build_assign, build_type_cast): Change to only create ssanames.
13669 * gimple.h: Move prototypes to...
13670 * gimple-builder.h: New File. Here.
13671 * tree-ssa.h: And here.
13672 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13673 count_uses_and_derefs): Relocate from gimple.c.
13674 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13675 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13676 * tree-ssa-math-opts (execute_cse_reciprocals): Use
13677 gimple_replace_ssa_lhs.
13678 * asan.c: Include gimple-builder.h.
13679 * Makefile.in: Add gimple-builder.o.
13681 2013-09-26 Richard Biener <rguenther@suse.de>
13683 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13684 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13685 (loe_visit_block): Use gcc_checking_assert.
13686 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13687 gimple_assign_ssa_name_copy_p.
13688 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13691 2013-09-26 David Edelsohn <dje.gcc@gmail.com>
13693 * config/rs6000/t-rs6000 (rs6000.o): Remove.
13694 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13696 2013-09-26 Richard Biener <rguenther@suse.de>
13698 PR tree-optimization/58539
13699 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13700 the fact that debug statements are not taking part in loop-closed
13703 2013-09-26 Nick Clifton <nickc@redhat.com>
13705 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13706 time warning message.
13707 (msp430_print_operand_raw): Delete unused letter parameter.
13708 (TARGET_PRINT_OPERAND_ADDRESS): Define.
13709 (msp430_print_operand_address): New function.
13710 (msp430_print_operand): Move address printing code from here to
13712 * config/msp430/msp430.md (movsipsi2): Add comment in generated
13714 (zero_extendpsisi2): Likewise.
13715 (extendpsisi2): New pattern.
13716 (andneghi3): New pattern.
13718 2013-09-26 Yvan Roux <yvan.roux@linaro.org>
13720 * config/aarch64/aarch64.opt (mlra): New option.
13721 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13722 (TARGET_LRA_P): Define.
13724 2013-09-26 Eric Botcazou <ebotcazou@adacore.com>
13726 * expr.c (expand_assignment): Remove obsolete comment.
13728 2013-09-25 Jeff Law <law@redhat.com>
13730 * tree-flow.h (thread_through_all_blocks): Prototype moved into
13731 tree-ssa-threadupdate.h.
13732 (register_jump_thread): Similarly.
13733 * tree-ssa-threadupdate.h: New header file.
13734 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13735 * tree-vrp.c: Likewise.
13736 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13737 (thread_around_empty_blocks): Change type of path vector argument to
13738 an edge,type pair from just an edge. Initialize both elements when
13739 appending to a jump threading path. Tweak references to elements
13741 (thread_across_edge): Similarly. Release memory for the elements
13743 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13744 (dump_jump_thread_path): New function broken out from
13745 register_jump_thread.
13746 (register_jump_thread): Use dump_jump_thread_path. Change type of
13747 path vector entries. Search the path for NULL edges and dump
13748 the path if one is found. Tweak the conversion of path to 3-edge
13749 form to use the block copy type information embedded in the path.
13751 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13753 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13755 2013-09-25 Yvan Roux <yvan.roux@linaro.org>
13756 Vladimir Makarov <vmakarov@redhat.com>
13758 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13759 from the least significant bit.
13760 (strip_address_mutations): Add bitfield operations handling.
13761 (must_be_index_p): Add shifting and rotate operations handling.
13762 (set_address_base): Use must_be_base_p predicate.
13763 (set_address_index): Use must_be_index_p predicate.
13765 2013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13766 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13767 Sergey Lega <sergey.s.lega@intel.com>
13768 Anna Tikhonova <anna.tikhonova@intel.com>
13769 Ilya Tocar <ilya.tocar@intel.com>
13770 Andrey Turetskiy <andrey.turetskiy@intel.com>
13771 Ilya Verbin <ilya.verbin@intel.com>
13772 Kirill Yukhin <kirill.yukhin@intel.com>
13773 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13775 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13777 (ix86_expand_vector_move_misalign): Support new unaligned load and
13778 stores and use new names.
13779 (CODE_FOR_sse2_storedqu): Rename to ...
13780 (CODE_FOR_sse2_storedquv16qi): ... this.
13781 (CODE_FOR_sse2_loaddqu): Rename to ...
13782 (CODE_FOR_sse2_loaddquv16qi): ... this.
13783 (CODE_FOR_avx_loaddqu256): Rename to ...
13784 (CODE_FOR_avx_loaddquv32qi): ... this.
13785 (CODE_FOR_avx_storedqu256): Rename to ...
13786 (CODE_FOR_avx_storedquv32qi): ... this.
13787 * config/i386/i386.md (fpint_logic): New.
13788 * config/i386/sse.md (VMOVE): Extend for AVX512.
13792 (VI_UNALIGNED_LOADSTORE): Ditto.
13793 (sse2_avx_avx512f): Ditto.
13794 (sse2_avx2): Extend for AVX512.
13795 (sse4_1_avx2): Ditto.
13796 (avx2_avx512f): New.
13797 (sse): Extend for AVX512.
13800 (avxsizesuffix): Ditto.
13801 (sseintvecmode): Ditto.
13802 (ssePSmode): Ditto.
13803 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13804 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13805 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13806 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13807 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13808 (<sse2_avx_avx512f>_storedqu<mode): ... this.
13809 (<sse>_movnt<mode>): Replace constraint "x" with "v".
13810 (STORENT_MODE): Extend for AVX512.
13811 (*absneg<mode>2): Replace constraint "x" with "v".
13812 (*mul<mode>3): Ditto.
13813 (*ieee_smin<mode>3): Ditto.
13814 (*ieee_smax<mode>3): Ditto.
13815 (avx_cmp<mode>3): Replace VF with VF_128_256.
13816 (*<sse>_maskcmp<mode>3_comm): Ditto.
13817 (<sse>_maskcmp<mode>3): Ditto.
13818 (<sse>_andnot<mode>3): Extend for AVX512.
13819 (<code><mode>3, anylogic): Replace VF with VF_128_256.
13820 (<code><mode>3, fpint_logic): New.
13821 (*<code><mode>3): Extend for AVX512.
13822 (avx512flogicsuff): New.
13823 (avx512f_<logic><mode>): Ditto.
13824 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13826 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13827 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13828 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13829 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13830 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13831 (xop_vpermil2<mode>3): Ditto.
13832 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13833 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13834 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13835 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13837 2013-09-25 Tom Tromey <tromey@redhat.com>
13839 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13840 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13841 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13842 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13843 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13844 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13845 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13846 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13847 (GRAPHITE_HTAB_H): Remove.
13849 2013-09-25 Tom Tromey <tromey@redhat.com>
13851 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13853 2013-09-25 Tom Tromey <tromey@redhat.com>
13855 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13857 2013-09-25 Tom Tromey <tromey@redhat.com>
13859 * config/i386/t-i386 (i386.o): Remove.
13860 (i386-c.o): Use COMPILE and POSTCOMPILE.
13862 2013-09-25 Tom Tromey <tromey@redhat.com>
13864 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13866 2013-09-25 Tom Tromey <tromey@redhat.com>
13868 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13869 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13870 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13871 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13872 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13873 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13874 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13875 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13876 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13877 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13878 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13879 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13880 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13881 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13882 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13883 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13884 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13885 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13886 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13887 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13888 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13889 (tree-ssa-pre.o, tree-ssa-sccvn.o)
13890 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13891 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13892 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13893 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13894 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13895 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13896 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13897 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13898 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13899 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13900 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13901 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13902 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13903 (graphite-clast-to-gimple.o, graphite-dependences.o)
13904 (graphite-interchange.o, graphite-poly.o)
13905 (graphite-scop-detection.o, graphite-sese-to-poly.o)
13906 (graphite-optimize-isl.o, tree-vect-loop.o)
13907 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13908 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13909 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13910 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13911 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13912 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13913 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13914 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13915 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13916 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13917 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13918 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13919 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13920 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13921 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13922 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13923 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13924 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13925 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13926 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13927 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13928 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13929 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13930 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13931 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13932 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13933 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13934 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13935 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13936 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13937 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13938 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13939 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13940 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13941 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13942 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13943 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13944 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13945 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13946 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13947 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13948 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13949 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13950 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13951 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13952 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13953 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13954 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13955 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13956 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13957 (gcov-dump.o): Remove.
13958 (default-c.o): Use COMPILE and POSTCOMPILE.
13959 (CFLAGS-gcc.o): New variable.
13960 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13962 2013-09-25 Tom Tromey <tromey@redhat.com>
13964 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13965 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13966 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13967 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13968 (c-family/c-pragma.o, c-family/c-pretty-print.o)
13969 (c-family/c-semantics.o, c-family/c-ada-spec.o)
13970 (c-family/array-notation-common.o, c-family/stub-objc.o)
13971 (c-family/c-ubsan.o): Remove.
13973 2013-09-25 Tom Tromey <tromey@redhat.com>
13975 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13977 2013-09-25 Tom Tromey <tromey@redhat.com>
13979 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13980 to add -DENABLE_SHARED_LIBGCC.
13981 (gcc.o): Don't use subshell.
13983 2013-09-25 Tom Tromey <tromey@redhat.com>
13985 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13986 * configure.ac: Don't invoke AM_PROG_CC_C_O.
13987 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13988 * configure, config.in: Rebuild.
13990 2013-09-25 Tom Tromey <tromey@redhat.com>
13992 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13993 (COMPILE, POSTCOMPILE): New variables.
13994 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13995 (DEPFILES): New variable.
13996 Include ".Po" files.
13997 * configure.ac: Add checks for dependency checking.
13998 * configure, aclocal.m4: Regenerate.
14000 2013-09-25 Tom Tromey <tromey@redhat.com>
14002 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
14003 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
14005 2013-09-25 Tom Tromey <tromey@redhat.com>
14007 * Makefile.in (generated_files): Add options.h,
14008 target-hooks-def.h, insn-opinit.h,
14009 common/common-target-hooks-def.h, pass-instances.def,
14010 c-family/c-target-hooks-def.h.
14012 2013-09-25 Jeff Law <law@redhat.com>
14014 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
14015 than foo[foo.length () - 1] to access last member in a vec.
14016 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
14018 2013-09-25 Richard Biener <rguenther@suse.de>
14020 PR middle-end/58521
14021 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
14023 2013-09-25 Jan Hubicka <jh@suse.cz>
14025 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
14028 2013-09-25 Marek Polacek <polacek@redhat.com>
14031 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
14032 when determining the type name.
14034 2013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
14036 * config/sh/sh.md: Fix formatting.
14038 2013-09-24 Xinliang David Li <davidxl@google.com>
14040 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
14041 max peel iterations parameter.
14042 * param.def: New parameter.
14043 * doc/invoke.texi: Document New parameter.
14045 2013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
14047 * gimple-pretty-print.c: Various whitespace tweaks.
14048 * tree-core.h: Likewise.
14049 * tree-pretty-print.c: Likewise.
14050 * tree-ssa-alias.c: Likewise.
14051 * tree-ssa-copy.c: Likewise.
14052 * tree-ssanames.c: Likewise.
14053 * tree-ssanames.h: Likewise.
14054 * tree-vrp.c: Likewise.
14056 2013-09-24 Alan Modra <amodra@gmail.com>
14058 PR middle-end/57134
14059 PR middle-end/57586
14060 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
14061 for output operands that disallow regs. Don't use EXPAND_WRITE on
14064 2013-09-24 Richard Biener <rguenther@suse.de>
14066 PR middle-end/58513
14067 * tree.c (reference_alias_ptr_type): Move ...
14068 * alias.c (reference_alias_ptr_type): ... here and implement
14069 in terms of the new reference_alias_ptr_type_1.
14070 (ref_all_alias_ptr_type_p): New helper.
14071 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
14072 use ref_all_alias_ptr_type_p.
14073 (get_deref_alias_set): Add flag_strict_aliasing check here.
14074 (reference_alias_ptr_type_1): New function, split out from ...
14075 (get_alias_set): ... here.
14076 (alias_ptr_types_compatible_p): New function.
14077 * alias.h (reference_alias_ptr_type): Declare.
14078 (alias_ptr_types_compatible_p): Likewise.
14079 * tree.h (reference_alias_ptr_type): Remove.
14080 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
14081 to compare MEM_REF alias types.
14083 2013-09-24 Richard Biener <rguenther@suse.de>
14085 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
14087 2013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14089 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
14090 reload helper function arrays into a single array reg_addr.
14091 (reload_fpr_gpr): Likewise.
14092 (reload_gpr_vsx): Likewise.
14093 (reload_vsx_gpr): Likewise.
14094 (struct rs6000_reg_addr): Likewise.
14095 (reg_addr): Likewise.
14096 (rs6000_debug_reg_global): Change rs6000_vector_reload,
14097 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
14098 (rs6000_init_hard_regno_mode_ok): Likewise.
14099 (rs6000_secondary_reload_direct_move): Likewise.
14100 (rs6000_secondary_reload): Likewise.
14102 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
14103 constraints: wu, ww, and wy. Repurpose wv constraint added during
14104 power8 changes. Put wg constraint in alphabetical order.
14106 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
14107 for future work to add ISA 2.07 VSX single precision support.
14108 (-mvsx-scalar-double): Change default from -1 to 1, update
14109 documentation comment.
14110 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
14111 (-mupper-regs-df): New debug switch to control whether DF values
14112 can go in the traditional Altivec registers.
14113 (-mupper-regs-sf): New debug switch to control whether SF values
14114 can go in the traditional Altivec registers.
14116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
14117 and wy constraints.
14118 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
14119 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
14120 Add new constraints, wu/ww/wy. Repurpose wv constraint.
14121 (rs6000_debug_legitimate_address_p): Print if we are running
14122 before, during, or after reload.
14123 (rs6000_secondary_reload): Add a comment.
14124 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
14126 * config/rs6000/constraints.md (wa constraint): Sort w<x>
14127 constraints. Update documentation string.
14128 (wd constraint): Likewise.
14129 (wf constraint): Likewise.
14130 (wg constraint): Likewise.
14131 (wn constraint): Likewise.
14132 (ws constraint): Likewise.
14133 (wt constraint): Likewise.
14134 (wx constraint): Likewise.
14135 (wz constraint): Likewise.
14136 (wu constraint): New constraint for ISA 2.07 SFmode scalar
14138 (ww constraint): Likewise.
14139 (wy constraint): Likewise.
14140 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
14141 in the previous submissions.
14142 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
14144 2013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
14146 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
14147 (REG_BR_PROB): Say that the probability is stored in an int_list.
14148 * reg-notes.def: Update commentary to mention INT_LIST.
14149 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
14150 (INT_LIST): New rtx.
14151 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
14152 * rtlanal.c (int_reg_note_p): New function.
14153 (alloc_reg_note): Assert that the note does not have an int argument.
14154 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
14155 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
14156 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
14157 rather than an INSN_LIST. Handle INT_LIST.
14158 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
14159 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
14160 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
14161 Manipulate them as ints rather than rtxes.
14162 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
14163 * regmove.c (copy_src_to_dest): Likewise.
14164 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
14166 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
14167 into the cases that need it.
14168 * config/arm/arm.c (arm_unwind_emit): Likewise.
14170 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
14171 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
14172 * loop-doloop.c (add_test, doloop_modify): Likewise.
14173 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14174 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
14175 * predict.c (combine_predictions_for_insn): Likewise.
14176 * print-rtl.c (print_rtx): Handle INT_LIST.
14177 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
14178 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
14179 * config/arm/arm.c (emit_unlikely_jump): Likewise.
14180 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
14181 (ix86_split_fp_branch, predict_jump): Likewise.
14182 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
14183 * config/sh/sh.c (expand_cbranchsi4): Likewise.
14184 * config/spu/spu.c (ea_load_store_inline): Likewise.
14186 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
14187 value of a REG_BR_PROB note.
14188 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
14189 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
14190 * emit-rtl.c (try_split): Likewise.
14191 * predict.c (br_prob_note_reliable_p): Likewise.
14192 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
14193 * reorg.c (mostly_true_jump): Likewise.
14194 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
14195 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14196 * config/i386/i386.c (ix86_print_operand): Likewise.
14197 * config/ia64/ia64.c (ia64_print_operand): Likewise.
14198 * config/mmix/mmix.c (mmix_print_operand): Likewise.
14199 * config/rs6000/rs6000.c (output_cbranch): Likewise.
14200 * config/s390/s390.c (s390_expand_tbegin): Likewise.
14201 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
14202 * config/sparc/sparc.c (output_cbranch): Likewise.
14203 * config/spu/spu.c (get_branch_target): Likewise.
14204 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
14205 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
14207 2013-09-23 Jan Hubicka <jh@suse.cz>
14209 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
14211 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
14212 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
14214 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
14215 (gimple_fold_call): Dump inconsistent devirtualizations; add
14216 sanity check for type based devirtualizations.
14217 * ipa-prop.c: Include ipa-utils.h
14218 (ipa_intraprocedural_devirtualization): Add sanity check.
14219 (try_make_edge_direct_virtual_call): Likewise.
14221 2013-09-23 Eric Botcazou <ebotcazou@adacore.com>
14223 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
14224 assignment statements.
14226 2013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14228 * gimple-pretty-print.c (dump_ssaname_info): New function.
14229 (dump_gimple_phi): Call it.
14230 (pp_gimple_stmt_1): Likewise.
14231 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
14232 (range_info_def): Declare.
14233 * tree-pretty-print.c (pp_double_int): New function.
14234 (dump_generic_node): Call it.
14235 * tree-pretty-print.h (pp_double_int): Declare.
14236 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
14237 * tree-ssanames.h (range_info_def): New structure.
14238 (value_range_type): Move definition here.
14239 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
14241 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
14243 (set_range_info): New function.
14244 (get_range_info): Likewise.
14245 (duplicate_ssa_name_range_info): Likewise.
14246 (duplicate_ssa_name_fn): Check pointer type and call
14247 duplicate_ssa_name_range_info.
14248 * tree-ssa-copy.c (fini_copy_prop): Likewise.
14249 * tree-vrp.c (value_range_type): Remove definition, now in
14251 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
14252 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
14253 (SSA_NAME_RANGE_INFO): New macro.
14255 2013-09-23 Richard Biener <rguenther@suse.de>
14257 PR tree-optimization/58464
14258 * tree-ssa-pre.c (phi_trans_lookup): Remove.
14259 (phi_trans_add): Change to add conditionally on being not present.
14260 (phi_translate_1): Remove recursion detection here.
14261 (phi_translate): Pre-seed the cache with NULL to catch
14262 recursion here in a more generic way.
14263 (bitmap_find_leader): Adjust comment.
14264 (get_representative_for): Dump value-numbers.
14265 (create_expression_by_pieces): Likewise.
14266 (insert_into_preds_of_block): Likewise.
14268 2013-09-23 Christian Bruel <christian.bruel@st.com>
14271 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
14272 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
14274 2013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14277 2013-09-20 Renlin Li <renlin.li@arm.com>
14279 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
14281 (aarch64_expand_epilogue): Likewise.
14282 (aarch64_legitimize_reload_address): Likewise.
14284 2013-09-22 Eric Botcazou <ebotcazou@adacore.com>
14286 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
14287 NULL_TREE before pushing them onto the vector. Likewise for labels.
14289 2013-09-21 Eric Botcazou <ebotcazou@adacore.com>
14291 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
14292 comparison operators when -fno-trapping-math is in effect.
14293 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
14294 comparison operators in TFmode and assert that unsupported operators
14296 (ia64_print_operand): Likewise.
14298 2013-09-21 Jan Hubicka <jh@suse.cz>
14300 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
14301 (sse_typeless_stores): Enable for core
14302 (sse_load0_by_pxor): Likewise.
14303 (four_jump_limit): Disable for core.
14304 (pad_returns): Likewise.
14305 (avoid_vector_decode): Likewise.
14306 (fuse_cmp_and_branch): Enable for cores.
14307 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
14309 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14311 PR middle-end/56791
14312 * config/pa/pa.c (pa_option_override): Disable auto increment and
14313 decrement instructions until reload is completed.
14315 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
14316 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
14317 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
14319 2013-09-20 DJ Delorie <dj@redhat.com>
14320 Nick Clifton <nickc@redhat.com>
14322 * config/rl78/rl78.c: Various whitespace and comment tweaks.
14323 (need_to_save): Save bank 0 on interrupts.
14324 (characterize_address): Strip far address wrappers.
14325 (rl78_as_legitimate_address): Likewise.
14326 (transcode_memory_rtx): Likewise.
14327 (rl78_peep_movhi_p): Disable this peephole after devirt.
14328 (rl78_propogate_register_origins): Forget all origins when a
14330 * config/rl78/rl78-virt.md: Various whitespace tweaks.
14331 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
14333 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
14334 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
14335 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
14337 * config/rl78/constraints.md: Various whitespace and paren tweaks.
14339 2013-09-20 John David Anglin <danglin@gcc.gnu.org>
14341 * config/pa/pa.md: In "scc" insn patterns, change output template to
14342 handle const0_rtx in reg_or_0_operand operands.
14344 2013-09-20 Martin Husemann <martin@NetBSD.org>
14347 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
14348 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
14350 2013-09-20 Richard Biener <rguenther@suse.de>
14352 PR middle-end/58484
14353 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
14354 remembering SSA name version and block index.
14355 (new_scev_info_str): Adjust.
14356 (hash_scev_info): Likewise. Also hash the block index.
14357 (eq_scev_info): Adjust.
14358 (find_var_scev_info): Likewise.
14359 (struct instantiate_cache_entry): Remove.
14360 (struct instantiate_cache_type): Use a htab to map name, block
14362 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14363 (get_instantiated_value_entry): Likewise.
14364 (hash_idx_scev_info, eq_idx_scev_info): New functions.
14365 (instantiate_scev_name): Adjust.
14367 2013-09-20 Jeff Law <law@redhat.com>
14369 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14371 2013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
14373 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14374 Call aarch64_simd_expand_args to update op[argc].
14376 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14378 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14381 2013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
14383 * gengtype.c (file_rules): Added rule for *.cc files.
14384 (get_output_file_with_visibility): Give fatal message when no
14387 2013-09-20 Renlin Li <renlin.li@arm.com>
14389 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14390 (aarch64_expand_epilogue): Likewise.
14391 (aarch64_legitimize_reload_address): Likewise.
14393 2013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14395 PR middle-end/57748
14396 * expr.c (expand_assignment): Remove misalignp code path.
14398 2013-09-20 Marek Polacek <polacek@redhat.com>
14401 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14402 TYPE_PRECISION. Add asserts.
14404 2013-09-20 Richard Biener <rguenther@suse.de>
14406 PR tree-optimization/58453
14407 * tree-loop-distribution.c (distribute_loop): Apply the cost
14408 model for -ftree-loop-distribute-patterns, too.
14410 2013-09-20 Richard Biener <rguenther@suse.de>
14412 PR middle-end/58473
14413 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14414 make type comparison less strict.
14416 2013-09-20 Alan Modra <amodra@gmail.com>
14418 * configure: Regenerate.
14419 * aclocal.m4: Regenerate.
14421 2013-09-20 Marek Polacek <polacek@redhat.com>
14424 * doc/extend.texi: Document that attribute used is meant to be used
14425 on variables with static storage duration.
14427 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14429 PR tree-optimization/58472
14430 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14431 simd_lane_access set inv_p = false.
14432 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14433 the simduid magic VAR_DECL.
14435 2013-09-19 Jan Hubicka <jh@suse.cz>
14437 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14439 2013-09-17 Jeff Law <law@redhat.com>
14441 * tree-ssa-dom.c (record_temporary_equivalences): New function
14442 split out of dom_opt_dom_walker::after_dom_children.
14443 (dom_opt_dom_walker::thread_across_edge): Move common code
14444 in here from dom_opt_dom_walker::after_dom_children.
14445 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14447 2013-09-19 Jan Hubicka <jh@suse.cz>
14449 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14450 (TARGET_GENERIC): Use PROCESOR_GENERIC
14451 (enum processor_type): Unify generic32 and 64.
14452 * i386.md (cpu): Likewise.
14453 * x86-tune.def (use_leave): Enable for generic32.
14454 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14455 * athlon.md: Change generic64 to generic in all occurences.
14456 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14457 (ix86_target_macros_internal): Likewise.
14458 * driver-i386.c (host_detect_local_cpu): Likewise.
14459 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14461 (generic_memcpy, generic_memset, generic_cost): This one.
14462 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14463 (m_GENERIC32, m_GENERIC64): Remove.
14464 (m_GENERIC): Turn into one flag.
14465 (processor_target): Unify generic tunnings.
14466 (ix86_option_override_internal): Replace generic32/64 by generic.
14467 (ix86_issue_rate): Likewise.
14468 (ix86_adjust_cost): Likewise.
14470 2013-09-19 Jan Hubicka <jh@suse.cz>
14472 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14473 of speculative flag.
14475 2013-09-19 Jakub Jelinek <jakub@redhat.com>
14477 * omp-low.c (expand_omp_sections): Always pass len - 1 to
14478 GOMP_sections_start, even if !exit_reachable.
14480 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14482 * lra-constraints.c (need_for_all_save_p): Use macro
14483 HARD_REGNO_CALL_PART_CLOBBERED.
14484 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14485 set up pseudo conflict hard regs.
14487 2013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14490 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14493 2013-09-18 Vladimir Makarov <vmakarov@redhat.com>
14495 PR rtl-optimization/58438
14496 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14497 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14498 from previous subpasses.
14500 2013-09-18 Richard Earnshaw <rearnsha@arm.com>
14502 * arm.c (arm_get_frame_offsets): Validate architecture supports
14503 LDRD/STRD before accepting the tuning preference.
14504 (arm_expand_prologue): Likewise.
14505 (arm_expand_epilogue): Likewise.
14507 2013-09-18 Richard Biener <rguenther@suse.de>
14509 PR tree-optimization/58417
14510 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14511 have chrecs with symbols defined in the loop as operands.
14512 (chrec_fold_multiply): Likewise.
14513 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14514 parameters before folding binary operations.
14515 (struct instantiate_cache_entry_hasher): Remove.
14516 (struct instantiate_cache_type): Use a pointer-map.
14517 (instantiate_cache_type::instantiate_cache_type): New function.
14518 (instantiate_cache_type::get): Likewise.
14519 (instantiate_cache_type::set): Likewise.
14520 (instantiate_cache_type::~instantiate_cache_type): Adjust.
14521 (get_instantiated_value_entry): Likewise.
14522 (global_cache): New global.
14523 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14524 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14525 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14526 (instantiate_scev_name): Adjust.
14527 (instantiate_scev): Construct global instead of local cache.
14528 (resolve_mixers): Likewise.
14530 2013-09-18 Daniel Morris <danielm@ecoscentric.com>
14531 Paolo Carlini <paolo.carlini@oracle.com>
14534 * doc/implement-cxx.texi: Fix references to the C++ standards.
14536 2013-09-18 Jakub Jelinek <jakub@redhat.com>
14538 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14539 * tree-vect-data-refs.c (vect_analyze_data_refs): For
14540 simd_lane_access drs, update also DR_ALIGNED_TO.
14542 2013-09-18 Marek Polacek <polacek@redhat.com>
14545 * doc/extend.texi: Document no_sanitize_undefined attribute.
14546 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14547 no_sanitize_undefined attribute.
14549 2013-09-18 Nick Clifton <nickc@redhat.com>
14551 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14552 (ASM_DECLARE_FUNCTION_NAME): Define.
14554 2013-09-17 Trevor Saunders <tsaunders@mozilla.com>
14556 * compare-elim.c (find_comparison_dom_walker): New class
14557 (find_comparisons_in_bb): Rename to
14558 find_comparison_dom_walker::before_dom_children
14559 (find_comparisons): Adjust
14560 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14562 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14563 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14564 (init_walk_dominator_tree): Remove declaration.
14565 (fini_walk_dominator_tree): Remove declaration.
14566 * fwprop.c (single_def_use_dom_walker): New class
14567 (single_def_use_enter_block): Convert to
14568 single_def_use_dom_walker::before_dom_children.
14569 (single_def_use_leave_block): Convert to
14570 single_def_use_dom_walker::after_dom_children.
14571 (build_single_def_use_links): Adjust.
14572 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14574 (find_candidates_in_block): Convert to
14575 find_candidates_dom_walker::before_dom_children.
14576 (execute_strength_reduction): Adjust.
14577 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14578 (sese_dom_walker): New class.
14579 (sese_dom_walker::sese_dom_walker): New constructor.
14580 (sese_dom_walker::~sese_dom_walker): New destructor.
14581 (build_sese_conditions_before): Convert to
14582 sese_dom_walker::before_dom_children.
14583 (build_sese_conditions_after): Convert to
14584 sese_dom_walker::after_dom_children.
14585 (build_poly_scop): Adjust
14586 * tree-into-ssa.c (rewrite_dom_walker): New class
14587 (rewrite_enter_block): Convert to
14588 rewrite_dom_walker::before_dom_children.
14589 (rewrite_leave_block): Convert to
14590 rewrite_dom_walker::after_dom_children.
14591 (rewrite_update_dom_walker): New class.
14592 (rewrite_update_enter_block): Convert to
14593 rewrite_update_dom_walker::before_dom_children.
14594 (rewrite_update_leave_block): Convert to
14595 rewrite_update_dom_walker::after_dom_children.
14596 (rewrite_blocks, rewrite_into_ssa): Adjust.
14597 (mark_def_dom_walker): New class.
14598 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14599 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14600 (mark_def_sites_blocks): Convert to
14601 mark_def_dom_walker::before_dom_children.
14602 (mark_def_site_blocks): Remove.
14603 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14604 (tree_ssa_dominator_optimize): Adjust.
14605 (dom_thread_across_edge): Convert to method
14606 dom_opt_dom_walker::thread_across_edge.
14607 (dom_opt_enter_block): Convert to member function
14608 dom_opt_dom_walker::before_dom_children.
14609 (dom_opt_leave_block): Convert to member function
14610 dom_opt_dom_walker::after_dom_children.
14611 * tree-ssa-dse.c (dse_dom_walker): New class.
14612 (dse_enter_block): Convert to member function
14613 dse_dom_walker::before_dom_children.
14614 (tree_ssa_dse): Adjust.
14615 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14616 (determine_invariantness_stmt): Convert to method
14617 invariantness_dom_walker::before_dom_children.
14618 (determine_invariantness): Remove
14619 (move_computations_dom_walker): New class.
14620 (move_computations_stmt): Convert to method
14621 move_computations_dom_walker::before_dom_children.
14622 (move_computations, tree_ssa_lim): Adjust.
14623 * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14624 (nt_init_block): Convert to method
14625 notrappping_dom_walker::before_dom_children.
14626 (nt_fini_block): Convert to method
14627 method nontrapping_dom_walker::after_dom_children.
14628 (get_non_trapping): Adjust.
14629 * tree-ssa-pre.c (eliminate_dom_walker): New class.
14630 (eliminate_bb): Convert to method
14631 eliminate_dom_walker::before_dom_children.
14632 (eliminate_leave_block): Convert to method
14633 eliminate_dom_walker::after_dom_children.
14634 (eliminate): Adjust.
14635 * tree-ssa-strlen.c (strlen_dom_walker): New class.
14636 (strlen_enter_block): Convert to method
14637 strlen_dom_walker::before_dom_children.
14638 (strlen_leave_block): Convert to method
14639 method strlen_dom_walker::after_dom_children.
14640 (tree_ssa_strlen): Adjust.
14641 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14642 (tree_ssa_uncprop): Adjust.
14643 (uncprop_leave_block): Convert to method
14644 uncprop_dom_walker::after_dom_children.
14645 (uncprop_leave_block): Convert to method
14646 uncprop_dom_walker::before_dom_children.
14648 2013-09-18 Bin Cheng <bin.cheng@arm.com>
14650 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14651 branch in same basic block. Check both src and dest of the move insn.
14653 2013-09-17 Nick Clifton <nickc@redhat.com>
14655 * config/rl78/rl78-real.md (bf): New pattern.
14657 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14658 (rl78_print_operand): Do not put a # before a %B.
14659 * config/rl78/rl78.opt: Tweak doc strings.
14661 2013-09-17 DJ Delorie <dj@redhat.com>
14663 * config/rl78/constraints.md (Wcv): Allow up to $r31.
14664 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14665 (rl78_option_override): Likewise, if -mallregs.
14666 (is_virtual_register): Likewise.
14667 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14668 (REGNO_OK_FOR_BASE_P): Likewise.
14669 * config/rl78/rl78.opt (-mallregs): New.
14671 2013-09-17 Nick Clifton <nickc@redhat.com>
14673 * config/rl78/rl78.c (need_to_save): Change return type to bool.
14674 For interrupt functions: save all call clobbered registers if the
14675 interrupt handler is not a leaf function.
14676 (rl78_expand_prologue): Always recompute the frame information.
14677 For interrupt functions: only select bank 0 if one of the bank 0
14678 registers is going to be psuhed.
14680 2013-09-17 DJ Delorie <dj@redhat.com>
14682 * config/rl78/constraints.md: For each W* constraint, rename to C*
14683 and create a W* constraint that checks for an optional ES: prefix
14685 * config/rl78/rl78.md (UNS_ES_ADDR): New.
14686 (es_addr): New. Used to wrap far addresses.
14687 * config/rl78/rl78-protos.h (rl78_es_addr): New.
14688 (rl78_es_base): New.
14689 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14690 wrapped far addresses.
14691 (rl78_print_operand_1): Unwrap far addresses before processing.
14692 (rl78_lo16): Wrap far addresses in unspecs.
14693 (rl78_es_addr): New.
14694 (rl78_es_base): New.
14695 (insn_ok_now): Check for not-yet-wrapped far addresses.
14696 (transcode_memory_rtx): Properly re-wrap far addresses.
14698 2013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14700 * config/sparc/t-rtems: Add leon3 multilibs.
14702 2013-09-17 Cong Hou <congh@google.com>
14704 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14705 when checking the dot production pattern. The type of rhs operand
14706 of multiply is now checked correctly.
14708 2013-09-17 Jeff Law <law@redhat.com>
14710 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14711 edge implied equivalences into successor phis.
14712 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14713 here from tree-ssa-threadedge.c.
14714 (mark_threaded_blocks): When threading through a joiner, if both
14715 successors of the joiner's clone reach the same block, verify the
14716 PHI arguments are equal. If not, cancel the jump threading request.
14717 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14718 tree-ssa-threadupdate.c
14719 (thread_across_edge): Don't check PHI argument equality when
14720 threading through joiner block here.
14722 2013-09-17 Andrew MacLeod <amacleod@redhat.com>
14724 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14725 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14726 (warn_uninit, warn_uninitialized_vars,
14727 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14728 Move to tree-ssa-uninit.c.
14729 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14730 (has_undefined_value_p): New. Pass dependant parts of
14731 ssa_undefined_value_p.
14732 (uninit_undefined_value_p): Use has_undefined_value_p.
14733 (warn_uninit, warn_uninitialized_vars,
14734 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14735 Move from tree-ssa.c.
14736 * tree-ssa.h: Adjust prototypes.
14738 2013-09-17 Jan Hubicka <jh@suse.cz>
14740 PR middle-end/58332
14741 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14742 * ipa-inline.c (can_inline_edge_p): Do not downgrade
14743 FUNCTION_NOT_OPTIMIZED.
14744 * ipa-inline-analysis.c (compute_inline_parameters): Function
14745 not optimized is not inlinable unless it is alwaysinline.
14746 (inline_analyze_function): Force calls in not optimized
14747 function not inlinable.
14749 2013-09-17 Jan Hubicka <jh@suse.cz>
14751 PR middle-end/58329
14752 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14754 * ipa.c (function_and_variable_visibility): Likewise.
14755 * ipa-profile.c (ipa_profile): Likewise.
14757 2013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
14760 * cgraph.c (cgraph_function_body_availability): Check for ifunc
14761 attribute, and don't inline the resolver in this case.
14763 2013-09-17 Teresa Johnson <tejohnson@google.com>
14765 * coverage.c (get_coverage_counts): Add missing newline.
14767 2013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14769 PR tree-optimization/58088
14770 * fold-const.c (mask_with_trailing_zeros): New function.
14771 (fold_binary_loc): Make sure we don't recurse infinitely
14772 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14773 Use mask_with_trailing_zeros where appropriate.
14775 2013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
14777 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14778 of 'prev' var to get better distance estimation.
14780 2013-09-17 Eric Botcazou <ebotcazou@adacore.com>
14782 * tree-inline.h (struct copy_body_data): Add transform_parameter.
14783 * tree-inline.c (is_parameter_of): New predicate.
14784 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14785 a parameter has been remapped.
14786 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14787 (optimize_inline_calls): Initialize transform_parameter.
14788 (copy_gimple_seq_and_replace_locals): Likewise.
14789 (tree_function_versioning): Likewise.
14790 (maybe_inline_call_in_expr): Likewise.
14792 2013-09-17 Nick Clifton <nickc@redhat.com>
14794 * config/msp430/msp430-protos.h: Add prototypes for new functions.
14795 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14796 interrupt handlers.
14797 (is_attr_func): New function.
14798 (msp430_is_interrupt_func): New function.
14799 (is_naked_func): New function.
14800 (is_reentrant_func): New function.
14801 (is_critical_func): New function.
14802 (msp430_start_function): Add annotations for function attributes.
14803 (msp430_attr): New function.
14804 (msp430_attribute_table): New.
14805 (msp430_function_section): New function.
14806 (TARGET_ASM_FUNCTION_SECTION): Define.
14807 (msp430_builtin): New enum.
14808 (msp430_init_builtins): New function.
14809 (msp430_builtin_devl): New function.
14810 (msp430_expand_builtin): New function.
14811 (TARGET_INIT_BUILTINS): Define.
14812 (TARGET_EXPAND_BUILTINS): Define.
14813 (TARGET_BUILTIN_DECL): Define.
14814 (msp430_expand_prologue): Add support for naked, interrupt,
14815 critical and reentrant functions.
14816 (msp430_expand_epilogue): Likewise.
14817 (msp430_print_operand): Handle 'O' character.
14818 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14820 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14821 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14822 (pushm): Use a 'n' rather than an 'i' constraint.
14823 (msp_return): Add generation of the interrupt return instruction.
14824 (disable_interrupts): New pattern.
14825 (enable_interrupts): New pattern.
14826 (push_intr_state): New pattern.
14827 (pop_intr_state): New pattern.
14828 (bic_SR): New pattern.
14829 (bis_SR): New pattern.
14830 * doc/extend.texi: Document MSP430 function attributes and builtin
14833 2013-09-17 Richard Biener <rguenther@suse.de>
14835 PR tree-optimization/58432
14836 * tree-loop-distribution.c (tree_loop_distribution): Also
14837 scan PHIs for outside loop uses and seed a partition from them.
14839 2013-09-17 Bin Cheng <bin.cheng@arm.com>
14841 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14842 (restructure_reference): Call backtrace_base_for_ref.
14844 2013-09-17 Alan Modra <amodra@gmail.com>
14847 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14850 2013-09-16 DJ Delorie <dj@redhat.com>
14852 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14853 vregs location for RL78/G10.
14854 (rl78_expand_prologue): Avoid SEL on G10.
14855 (rl78_expand_epilogue): Likewise.
14856 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14857 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14858 __RL78_G10__ when appropriate.
14859 (ASM_SPEC): Pass -mg10 along to the assembler.
14860 * config/rl78/rl78.md (sel_rb): Disable for G10.
14861 * config/rl78/rl78.opt: Add -mg10 option.
14862 * config/rl78/t-rl78: Add -mg10 multilib.
14864 2013-09-16 Xinliang David Li <davidxl@google.com>
14866 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14867 * omp-low.c (omp_max_vf): Ditto.
14868 (expand_omp_simd): Ditto.
14869 * tree-vectorizer.c (vectorize_loops): Ditto.
14870 (gate_vect_slp): Ditto.
14871 (gate_increase_alignment): Ditto.
14872 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14873 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14874 (gate_tree_vectorize): Name change.
14875 (tree_vectorize): Ditto.
14876 (pass_vectorize::gate): Call new function.
14877 (pass_vectorize::execute): Ditto.
14878 * opts.c: O3 default setting change.
14879 (finish_options): Check new flag.
14880 * doc/invoke.texi: Document new flags.
14881 * common.opt: New flags.
14883 2013-09-16 Andreas Schwab <schwab@linux-m68k.org>
14885 * doc/tm.texi.in (Cond Exec Macros): Remove node.
14886 (Condition Code): Don't reference it.
14887 * doc/tm.texi: Regenerate.
14889 2013-09-16 Vladimir Makarov <vmakarov@redhat.com>
14891 PR middle-end/58418
14892 * lra-constraints.c (undo_optional_reloads): Consider all optional
14893 reload even if it did not get a hard reg.
14895 2013-09-16 Teresa Johnson <tejohnson@google.com>
14897 * dumpfile.c (dump_loc): Remove newline emission.
14898 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14899 emission to dump_printf_loc calls where missing.
14900 (vect_mark_for_runtime_alias_test): Ditto.
14901 (vect_analyze_data_ref_dependence): Ditto.
14902 (vect_analyze_data_ref_dependences): Ditto.
14903 (vect_slp_analyze_data_ref_dependence): Ditto.
14904 (vect_slp_analyze_data_ref_dependences): Ditto.
14905 (vect_compute_data_ref_alignment): Ditto.
14906 (vect_update_misalignment_for_peel): Ditto.
14907 (vect_verify_datarefs_alignment): Ditto.
14908 (vector_alignment_reachable_p): Ditto.
14909 (vect_get_data_access_cost): Ditto.
14910 (vect_enhance_data_refs_alignment): Ditto.
14911 (vect_find_same_alignment_drs): Ditto.
14912 (vect_analyze_data_refs_alignment): Ditto.
14913 (vect_analyze_group_access): Ditto.
14914 (vect_analyze_data_ref_access): Ditto.
14915 (vect_analyze_data_ref_accesses): Ditto.
14916 (vect_prune_runtime_alias_test_list): Ditto.
14917 (vect_analyze_data_refs): Ditto.
14918 (vect_create_addr_base_for_vector_ref): Ditto.
14919 (vect_create_data_ref_ptr): Ditto.
14920 (vect_grouped_store_supported): Ditto.
14921 (vect_grouped_load_supported): Ditto.
14922 * value-prof.c (check_counter): Ditto.
14923 (check_ic_target): Ditto.
14924 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14925 (vect_recog_widen_mult_pattern): Ditto.
14926 (vect_recog_widen_sum_pattern): Ditto.
14927 (vect_recog_over_widening_pattern): Ditto.
14928 (vect_recog_widen_shift_pattern): Ditto.
14929 (vect_recog_rotate_pattern): Ditto.
14930 (vect_recog_vector_vector_shift_pattern): Ditto.
14931 (vect_recog_divmod_pattern): Ditto.
14932 (vect_recog_mixed_size_cond_pattern): Ditto.
14933 (vect_recog_bool_pattern): Ditto.
14934 (vect_pattern_recog_1): Ditto.
14935 (vect_pattern_recog): Ditto.
14936 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14937 (vect_is_simple_iv_evolution): Ditto.
14938 (vect_analyze_scalar_cycles_1): Ditto.
14939 (vect_get_loop_niters): Ditto.
14940 (vect_analyze_loop_1): Ditto.
14941 (vect_analyze_loop_form): Ditto.
14942 (vect_analyze_loop_operations): Ditto.
14943 (vect_analyze_loop_2): Ditto.
14944 (vect_analyze_loop): Ditto.
14945 (report_vect_op): Ditto.
14946 (vect_is_slp_reduction): Ditto.
14947 (vect_is_simple_reduction_1): Ditto.
14948 (vect_get_known_peeling_cost): Ditto.
14949 (vect_estimate_min_profitable_iters): Ditto.
14950 (vect_model_reduction_cost): Ditto.
14951 (vect_model_induction_cost): Ditto.
14952 (get_initial_def_for_induction): Ditto.
14953 (vect_create_epilog_for_reduction): Ditto.
14954 (vectorizable_reduction): Ditto.
14955 (vectorizable_induction): Ditto.
14956 (vectorizable_live_operation): Ditto.
14957 (vect_loop_kill_debug_uses): Ditto.
14958 (vect_transform_loop): Ditto.
14959 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14960 (vect_stmt_relevant_p): Ditto.
14961 (process_use): Ditto.
14962 (vect_mark_stmts_to_be_vectorized): Ditto.
14963 (vect_model_simple_cost): Ditto.
14964 (vect_model_promotion_demotion_cost): Ditto.
14965 (vect_model_store_cost): Ditto.
14966 (vect_get_store_cost): Ditto.
14967 (vect_model_load_cost): Ditto.
14968 (vect_get_load_cost): Ditto.
14969 (vect_init_vector_1): Ditto.
14970 (vect_get_vec_def_for_operand): Ditto.
14971 (vect_finish_stmt_generation): Ditto.
14972 (vectorizable_call): Ditto.
14973 (vectorizable_conversion): Ditto.
14974 (vectorizable_assignment): Ditto.
14975 (vectorizable_shift): Ditto.
14976 (vectorizable_operation): Ditto.
14977 (vectorizable_store): Ditto.
14978 (vectorizable_load): Ditto.
14979 (vectorizable_condition): Ditto.
14980 (vect_analyze_stmt): Ditto.
14981 (vect_transform_stmt): Ditto.
14982 (vect_is_simple_use): Ditto.
14983 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14984 (vect_can_advance_ivs_p): Ditto.
14985 (vect_update_ivs_after_vectorizer): Ditto.
14986 (vect_do_peeling_for_loop_bound): Ditto.
14987 (vect_gen_niters_for_prolog_loop): Ditto.
14988 (vect_update_inits_of_drs): Ditto.
14989 (vect_create_cond_for_alias_checks): Ditto.
14990 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14991 (vect_build_slp_tree_1): Ditto.
14992 (vect_supported_load_permutation_p): Ditto.
14993 (vect_analyze_slp_instance): Ditto.
14994 (vect_analyze_slp): Ditto.
14995 (vect_make_slp_decision): Ditto.
14996 (vect_detect_hybrid_slp): Ditto.
14997 (vect_bb_vectorization_profitable_p): Ditto.
14998 (vect_slp_analyze_bb_1): Ditto.
14999 (vect_update_slp_costs_according_to_vf): Ditto.
15000 (vect_get_mask_element): Ditto.
15001 (vect_transform_slp_perm_load): Ditto.
15002 (vect_schedule_slp_instance): Ditto.
15003 (vect_schedule_slp): Ditto.
15004 (vect_slp_transform_bb): Ditto.
15005 * profile.c (read_profile_edge_counts): Ditto.
15006 (compute_branch_probabilities): Ditto.
15007 * coverage.c (get_coverage_counts): Ditto.
15009 2013-09-16 Diego Novillo <dnovillo@google.com>
15011 * tree-core.h: Add missing comment lines from refactoring of tree.h.
15013 2013-09-16 Jan Hubicka <jh@suse.cz>
15015 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
15016 abstract functions; for static functions check the presence of body.
15018 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15020 * config/aarch64/aarch64-simd-builtins.def (fma): New.
15021 * config/aarch64/aarch64-simd.md
15022 (aarch64_mla_elt<mode>): New.
15023 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15024 (aarch64_mls_elt<mode>): Likewise.
15025 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15026 (aarch64_fma4_elt<mode>): Likewise.
15027 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15028 (aarch64_fma4_elt_to_128v2df): Likewise.
15029 (aarch64_fma4_elt_to_64df): Likewise.
15030 (fnma<mode>4): Likewise.
15031 (aarch64_fnma4_elt<mode>): Likewise.
15032 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15033 (aarch64_fnma4_elt_to_128v2df): Likewise.
15034 (aarch64_fnma4_elt_to_64df): Likewise.
15035 * config/aarch64/iterators.md (VDQSF): New.
15036 * config/aarch64/arm_neon.h
15037 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
15038 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
15040 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15042 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
15043 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
15044 (aarch64_mul3_elt_to_128df): Likewise.
15045 (aarch64_mul3_elt_to_64v2df): Likewise.
15046 * config/aarch64/iterators.md (VEL): Also handle DFmode.
15048 (VMUL_CHANGE_NLANES) Likewise.
15051 * config/aarch64/arm_neon.h
15052 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
15054 2013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
15056 * config/aarch64/arm_neon.h
15057 (vcvtx_high_f32_f64): Fix parameters.
15059 2013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15060 Uros Bizjak <ubizjak@gmail.com>
15062 * config/alpha.c: Include tree-ssanames.h.
15064 2013-09-16 Richard Biener <rguenther@suse.de>
15066 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
15067 (dot_rdg_1): Handle control_dd.
15068 (create_edge_for_control_dependence): New function.
15069 (create_rdg_edges): Add control dependences if asked for.
15070 (build_rdg): Likewise.
15071 (generate_loops_for_partition): If there are not necessary
15072 control stmts remove all their dependencies.
15073 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
15074 (distribute_loop): Pass on control dependences.
15075 (tree_loop_distribution): Compute control dependences and remove
15076 restriction on number of loop nodes.
15078 2013-09-16 Jakub Jelinek <jakub@redhat.com>
15080 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
15081 for internal calls.
15083 2013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
15085 * cse.c (try_const_anchors): Punt on CC modes.
15087 2013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15089 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
15091 2013-09-14 John David Anglin <danglin@gcc.gnu.org>
15094 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
15095 calls to word_mode.
15097 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15100 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
15102 (darwin_objc1_section): Likewise.
15103 (darwin_file_end): Emit Image Info section when required.
15105 2013-09-14 Jan Hubicka <jh@suse.cz>
15107 * tree-into-ssa.c (gate_into_ssa): New.
15108 (pass_data_build_ssa): Use it.
15109 * cgraph.h (expand_thunk): Update prototype.
15110 * cgraphunit.c (analyze_function): Expand thunks early.
15111 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
15112 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
15113 set lowered flag; do not add new function.
15114 (assemble_thunks_and_aliases): Update.
15115 * tree-ssa.c (gate_init_datastructures): New gate.
15116 (pass_data_init_datastructures): Use it.
15118 2013-09-14 Iain Sandoe <iain@codesourcery.com>
15121 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
15122 xmm register set described in the psABI.
15124 2013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
15126 * dwarf2out.c (should_emit_struct_debug): Add check
15127 for type_decl variable is not NULL.
15129 2013-09-13 Jacek Caban <jacek@codeweavers.com>
15131 * config.gcc: Use new winnt-c.c target hooks
15132 * config/t-winnt: New file
15133 * config/winnt-c.c: New file
15134 * doc/tm.texi.in: Document new hook
15135 * doc/tm.texi: Regenerated
15137 2013-09-13 Jan Hubicka <jh@suse.cz>
15139 PR middle-end/58094
15140 * ipa-inline.c (check_callers): New function.
15141 (check_caller_edge): Remove.
15142 (want_inline_function_to_all_callers_p): Also permit alises that are
15144 (inline_to_all_callers): Terminate the walk when devirtualization
15145 introduce new calls.
15147 2013-09-13 Jan Hubicka <jh@suse.cz>
15149 * ipa-inline-analysis.c (struct growth_data): Add node.
15150 (do_estimate_growth_1): Fix detection of recursion.
15152 2013-09-13 Jakub Jelinek <jakub@redhat.com>
15154 PR tree-optimization/58392
15155 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
15156 to avoid shadowing of outer loop variable. If
15157 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
15158 replace_by_duplicate_decl simduid of loops that have it set and
15159 set dest_cfun->has_simduid_loops and/or
15160 dest_cfun->has_force_vect_loops.
15161 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
15162 instead of maybe_lookup_decl.
15163 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
15164 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
15165 call. Copy over force_vect and copy and remap simduid. Set
15166 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
15167 (copy_cfg_body): Remove blocks_to_copy argument. Use
15168 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
15169 caller. Don't set cfun->has_simduid_loops and/or
15170 cfun->has_force_vect_loops here.
15171 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
15173 (expand_call_inline, tree_function_versioning): Adjust copy_body
15176 2013-09-13 Martin Jambor <mjambor@suse.cz>
15179 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
15180 the assert if the edge was a speculative one.
15182 2013-09-13 Richard Biener <rguenther@suse.de>
15184 * tree-data-ref.h (known_dependences_p): Move here ...
15185 * tree-loop-distribution.c (known_dependences_p): ... from here.
15186 (dump_rdg_component, debug_rdg_component): Remove.
15187 (dump_rdg): Adjust.
15188 (generate_loops_for_partition): Use gimple_uid instead of
15189 relying on matching stmt visit order.
15190 (rdg_build_partitions): Take starting stmt vector.
15191 (ldist_gen): Merge into ...
15192 (distribute_loop): ... this function. Do not compute starting
15194 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
15196 2013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15198 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
15199 Set type attribute correctly. Set predicable_short_it attribute.
15200 (cmpsi_shiftsi): Remove %? from output template.
15202 2013-09-13 Richard Biener <rguenther@suse.de>
15204 * tree-loop-distribution.c (struct rdg_component,
15205 rdg_defs_used_in_other_loops_p, free_rdg_components,
15206 rdg_build_components): Remove.
15207 (stmts_from_loop): Do not record virtual PHIs.
15208 (generate_loops_for_partition): Skip virtual PHIs.
15209 (build_rdg_partition_for_component): Rename to ...
15210 (build_rdg_partition_for_vertex): ... this and adjust.
15211 (rdg_build_partitions): Take a vector of starting vertices
15212 instead of components. Remove unnecessary leftover handling.
15213 (ldist_gen): Do not build components or record other stores.
15214 (distribute_loop): Do not distribute loops containing stmts
15217 2013-09-13 Christian Bruel <christian.bruel@st.com>
15220 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
15222 2013-09-13 Kai Tietz <ktietz@redhat.com>
15224 * config.gcc: Separate cases for mingw and cygwin targets,
15225 and add 64-bit cygwin target case.
15227 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
15228 dll-export inline-functions.
15229 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
15231 2013-09-13 Jeff Law <law@redhat.com>
15233 PR middle-end/58387
15235 2013-09-06 Jeff Law <law@redhat.com>
15237 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15238 edge implied equivalences into successor phis.
15240 2013-09-12 DJ Delorie <dj@redhat.com>
15242 * config/rl78/rl78-virt.md: Change from | to \; for asm line
15245 2013-09-12 Brooks Moses <bmoses@google.com>
15248 * Makefile.in: Do not install driver binaries in $(target)/bin.
15250 2013-09-12 DJ Delorie <dj@redhat.com>
15252 * config/rl78/rl78.opt (mrelax): New.
15253 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
15254 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
15256 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
15258 (rl78_expand_epilogue): Likewise.
15260 2013-09-12 Vladimir Makarov <vmakarov@redhat.com>
15262 PR middle-end/58335
15263 * lra-eliminations.c (remove_reg_equal_offset_note): New.
15264 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
15265 pointer elimination with using remove_reg_equal_offset_note.
15267 2013-09-12 DJ Delorie <dj@redhat.com>
15269 * config/msp430/: New port.
15270 * config.gcc (msp430): Added.
15271 * doc/invoke.texi: Document MSP430 options.
15272 * doc/install.texi: Document msp430-elf
15273 * doc/md.texi: Document msp430-elf
15274 * doc/contrib.texi: Document msp430-elf
15276 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
15279 2013-09-12 Martin Jambor <mjambor@suse.cz>
15282 * ipa-prop.c (remove_described_reference): Give up if the edge in the
15283 reference descriptor is NULL.
15284 (ipa_edge_removal_hook): If owning a reference descriptor, set its
15287 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15289 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
15290 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
15291 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
15292 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
15293 make_temp_ssa_name): move to tree-ssanames.h
15294 * tree-ssa-alias.h: Move prototype.
15295 * tree-ssa.h: Include tree-ssanames.h.
15296 * tree-ssanames.c (FREE_SSANAMES): Move to here.
15297 * tree-ssanames.h: New. Move items from tree-flow*.h
15298 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
15300 2013-09-12 Richard Biener <rguenther@suse.de>
15302 PR tree-optimization/58404
15303 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
15304 propagate non-invariant addresses into dereferences wrapped
15305 in component references.
15307 2013-09-12 Richard Biener <rguenther@suse.de>
15309 PR tree-optimization/58402
15310 * passes.def: Move pass_late_warn_uninitialized later.
15312 2013-09-12 Andrew MacLeod <amacleod@redhat.com>
15314 * tree-ssa.h: New. Move content from tree-flow.h and
15315 tree-flow-inline.h.
15316 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
15317 Move prototypes belonging to tree-ssa.c.
15318 * tree-flow-inline.h (redirect_edge_var_map_def,
15319 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
15321 * gimple.h: Adjust prototypes.
15322 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
15324 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
15325 * tree.h: Move prototype to tree-ssa.h.
15326 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
15327 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
15328 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
15329 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
15330 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
15331 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
15332 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
15333 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
15334 graphite-blocking.c, graphite-clast-to-gimple.c,
15335 graphite-dependences.c, graphite-interchange.c,
15336 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
15337 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
15338 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
15339 ipa-reference.c, ipa-split.c, ipa-utils.c,
15340 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
15341 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
15342 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
15343 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15344 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
15345 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
15346 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
15347 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
15348 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
15349 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
15350 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
15351 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
15352 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15353 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
15354 value-prof.c, var-tracking.c,
15355 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
15357 2013-09-12 Richard Biener <rguenther@suse.de>
15359 PR tree-optimization/58396
15360 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15361 (build_rdg): Take a loop-nest parameter, fix memleaks.
15362 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15364 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
15366 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15369 2013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
15371 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15372 The FMA instruction names should have a 'v' prefix.
15374 2013-09-12 Richard Biener <rguenther@suse.de>
15376 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15377 (dot_rdg): Use popen instead of system in optional code.
15378 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15379 (already_processed_vertex_p): Adjust.
15380 (has_anti_or_output_dependence, predecessor_has_mem_write,
15381 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15382 rdg_flag_uses): Remove.
15383 (rdg_flag_vertex): Simplify.
15384 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15386 (build_rdg_partition_for_component): Process the first vertex
15387 of a component only.
15388 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15390 2013-09-12 Alan Modra <amodra@gmail.com>
15392 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15394 2013-09-11 DJ Delorie <dj@redhat.com>
15395 Nick Clifton <nickc@redhat.com>
15397 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15398 (rl78_stack_based_mem): New.
15399 * config/rl78/constraints.md (Iv08): New.
15408 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15410 (movsi): Change from expand to insn-and-split.
15411 (ashrsi3): Clobber AX.
15415 * config/rl78/rl78.md (CC_REG): Fix.
15416 (addsi3): Allow memory and immediate operands.
15417 (addsi3_internal): Split into...
15418 (addsi3_internal_virt): ...new, and ...
15419 (addsi3_internal_real): ...new.
15421 (subsi3_internal_virt): New.
15422 (subsi3_internal_real): New.
15423 (mulsi3): Add memory operand.
15424 (mulsi3_rl78): Likewise.
15425 (mulsi3_g13): Likewise.
15426 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15427 (cbranchqi4_real): Add more constraint options.
15428 (cbranchhi4_real): Expand pattern.
15429 (cbranchhi4_real_signed): New.
15430 (cbranchhi4_real_inverted): New.
15431 (cbranchsi4_real_lt): New.
15432 (cbranchsi4_real_ge): New.
15433 (cbranchsi4_real_signed): New.
15434 (cbranchsi4_real): New.
15436 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15438 (lshrsi3_virt): Likewise.
15439 (ashlsi3_virt): Likewise.
15440 (cbranchqi4_virt_signed): New.
15441 (cbranchhi4_virt_signed): New.
15442 (cbranchsi4_virt): New.
15443 * config/rl78/rl78.c: Whitespace fixes throughout.
15444 (move_elim_pass): New.
15445 (pass_data_rl78_move_elim): New.
15446 (pass_rl78_move_elim): New.
15447 (make_pass_rl78_move_elim): New.
15448 (rl78_devirt_info): Run devirt earlier.
15449 (rl78_move_elim_info): New.
15450 (rl78_asm_file_start): Register it.
15451 (rl78_split_movsi): New.
15452 (rl78_as_legitimate_address): Allow virtual base registers when
15454 (rl78_addr_space_convert): Remove spurious debug stuff.
15455 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15456 (rl78_print_operand): More cases for not printing '#'.
15457 (rl78_expand_compare): Remove most of the logic.
15458 (content_memory): New.
15459 (clear_content_memory): New.
15460 (get_content_index): New.
15461 (get_content_name): New.
15462 (display_content_memory): New.
15463 (update_content): New.
15464 (record_content): New.
15465 (already_contains): New.
15466 (insn_ok_now): Re-recog insns with virtual registers.
15467 (add_postponed_content_update): New.
15468 (process_postponed_content_update): New.
15469 (gen_and_emit_move): New.
15470 (transcode_memory_rtx): Record new location content.
15471 Use gen_and_emit_move.
15472 (force_into_acc): New.
15473 (move_to_acc): Use gen_and_emit_move.
15474 (move_from_acc): Likewise.
15475 (move_acc_to_reg): Likewise.
15476 (move_to_x): Likewise.
15477 (move_to_hl): Likewise.
15478 (move_to_de): Likewise.
15479 (rl78_alloc_physical_registers_op1): Record location content.
15480 (has_constraint): New.
15481 (rl78_alloc_physical_registers_op2): Record location content.
15482 Optimize use of HL.
15483 (rl78_alloc_physical_registers_ro1): Likewise.
15484 (rl78_alloc_physical_registers_cmp): Likewise.
15485 (rl78_alloc_physical_registers_umul): Likewise.
15486 (rl78_alloc_address_registers_macax): New.
15487 (rl78_alloc_physical_registers): Initialize and set location
15488 content memory as needed.
15489 (rl78_reorg): Make sure split2 is called.
15490 (rl78_rtx_costs): New.
15492 2013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
15494 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15495 for (not (neg ...)) and (neg (not ...)) cases.
15497 2013-09-11 Richard Biener <rguenther@suse.de>
15499 PR middle-end/58377
15500 * passes.def: Split critical edges before late uninit warning passes.
15501 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15503 2013-09-11 Jakub Jelinek <jakub@redhat.com>
15505 PR tree-optimization/58385
15506 * fold-const.c (build_range_check): If both low and high are NULL,
15507 use omit_one_operand_loc to preserve exp side-effects.
15509 2013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15511 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15513 2013-09-11 Richard Biener <rguenther@suse.de>
15515 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15516 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15517 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15518 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15519 stmts_from_loop, known_dependences_p, build_empty_rdg,
15520 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15521 * tree-loop-distribution.c: ... here.
15522 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15523 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15524 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15525 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15526 * tree-loop-distribution.c: ... here.
15527 * tree-loop-distribution.c: Include gimple-pretty-print.h.
15528 (struct partition_s): Add loops member.
15529 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15530 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15531 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15533 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15534 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15535 Sergey Lega <sergey.s.lega@intel.com>
15536 Anna Tikhonova <anna.tikhonova@intel.com>
15537 Ilya Tocar <ilya.tocar@intel.com>
15538 Andrey Turetskiy <andrey.turetskiy@intel.com>
15539 Ilya Verbin <ilya.verbin@intel.com>
15540 Kirill Yukhin <kirill.yukhin@intel.com>
15541 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15543 * config/i386/constraints.md (k): New.
15545 * config/i386/i386.c (const regclass_map): Add new mask registers.
15546 (dbx_register_map): Ditto.
15547 (dbx64_register_map): Ditto.
15548 (svr4_dbx_register_map): Ditto.
15549 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15551 (ix86_preferred_reload_class): Disable constants for mask registers.
15552 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15553 (ix86_hard_regno_mode_ok): Support new mask registers.
15554 (x86_order_regs_for_local_alloc): Ditto.
15555 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15556 (FIXED_REGISTERS): Add new mask registers.
15557 (CALL_USED_REGISTERS): Ditto.
15558 (REG_ALLOC_ORDER): Ditto.
15559 (VALID_MASK_REG_MODE): New.
15560 (FIRST_MASK_REG): Ditto.
15561 (LAST_MASK_REG): Ditto.
15562 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15563 (MAYBE_MASK_CLASS_P): New.
15564 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15565 (REG_CLASS_CONTENTS): Ditto.
15566 (MASK_REGNO_P): New.
15567 (ANY_MASK_REG_P): Ditto.
15568 (HI_REGISTER_NAMES): Add new mask registers.
15569 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15570 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15572 (attribute "type"): Add mskmov, msklog.
15573 (attribute "length_immediate"): Support them.
15574 (attribute "memory"): Ditto.
15575 (attribute "prefix_0f"): Ditto.
15576 (*movhi_internal): Support new mask registers.
15577 (*movqi_internal): Ditto.
15578 (define_split): Split out clobber pattern is a logic
15579 insn on mask registers.
15580 (*k<logic><mode>): New.
15581 (*andhi_1): Extend to support mask regs.
15582 (*andqi_1): Extend to support mask regs.
15583 (kandn<mode>): New.
15584 (define_split): Split and-not to and and not if operands
15586 (*<code><mode>_1): Separate HI mode to new pattern...
15587 (*<code>hi_1): This.
15588 (*<code>qi_1): Extend to support mask regs.
15589 (kxnor<mode>): New.
15590 (kortestzhi): Ditto.
15591 (kortestchi): Ditto.
15593 (*one_cmpl<mode>2_1): Remove HImode and handle it...
15594 (*one_cmplhi2_1): ...Here, now with mask registers support.
15595 (*one_cmplqi2_1): Support new mask registers.
15596 (HI/QImode arithmetics splitter): Don't split if mask registers
15598 (HI/QImode not splitter): Ditto.
15599 * config/i386/predicated.md (mask_reg_operand): New.
15600 (general_reg_operand): Ditto.
15602 2013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15604 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15605 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15607 2013-09-10 Jeff Law <law@redhat.com>
15609 PR tree-optimization/58380
15610 * tree-ssa-threadupdate.c (thread_block): Recognize another case
15611 of threading through a buried loop header.
15613 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15614 return value for single successor case.
15616 2013-09-10 Jan Hubicka <jh@suse.cz>
15618 * ipa-devirt.c (ipa_devirt): Enable with LTO.
15620 2013-09-10 Richard Earnshaw <rearnsha@arm.com>
15623 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15624 support conditional execution.
15625 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15627 2013-09-10 Vladimir Makarov <vmakarov@redhat.com>
15629 * lra.c (lra): Clear lra_optional_reload_pseudos before every
15631 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15632 Check destination too to check move insn.
15633 (undo_optional_reloads): Add check that the original peudo did not
15634 changed its allocation and the optional reload was inherited on last
15635 inheritance pass. Break loop after deciding to keep optional reload.
15636 (lra_undo_inheritance): Add check that inherited pseudo still in
15639 2013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
15641 * config/aarch64/aarch64.md (generic_sched): New.
15642 * config/aarch64/aarch64-generic.md (load): Make conditional
15643 on generic_sched attribute.
15644 (nonload): Likewise.
15646 2013-09-10 Jan Hubicka <jh@suse.cz>
15648 * lto-cgraph.c: Include ipa-utils.h.
15649 (compute_ltrans_boundary): Also add possible targets into the boundary.
15651 2013-09-10 Jan Hubicka <jh@suse.cz>
15653 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15654 VAR_DECL of vtable rather than full expression.
15656 2013-09-10 Jan Hubicka <jh@suse.cz>
15657 Paolo Carlini <paolo.carlini@oracle.com>
15659 * cgraphunit.c (analyze_functions): Save input_location, set it
15660 to UNKNOWN_LOCATION and restore it at the end.
15662 2013-09-10 Martin Jambor <mjambor@suse.cz>
15664 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15665 represented by a thunk.
15667 2013-09-10 Jeff Law <law@redhat.com>
15669 PR tree-optimization/58343
15670 * tree-ssa-threadupdate.c (thread_block): Identify and disable
15671 jump threading requests through loop headers buried in the middle
15672 of a jump threading path.
15674 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15675 in return value/type.
15677 2013-09-10 Jakub Jelinek <jakub@redhat.com>
15679 PR rtl-optimization/58365
15680 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15681 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15684 2013-09-10 Richard Biener <rguenther@suse.de>
15686 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15687 * tree-data-ref.c (create_rdg_vertices): Collect all data
15688 references, signal failure to the caller, use data-ref API.
15689 (build_rdg): Compute data references only once. Maintain lifetime
15690 of data references and data dependences from within RDG.
15691 (free_rdg): Free dependence relations.
15692 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15693 inventing extra dependences.
15694 (distribute_loop): Update for RDG API changes.
15696 2013-09-10 Kai Tietz <ktietz@redhat.com>
15698 * doc/invoke.texi (fms-extensions): Document changed
15699 behavior for ms-abi targets.
15700 * config/i386/i386.c (ix86_option_override_internal):
15701 Set default value of option -fms-extension for ms-abi targets.
15703 2013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
15705 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15707 2013-09-10 Alan Modra <amodra@gmail.com>
15710 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15712 2013-09-10 Alan Modra <amodra@gmail.com>
15714 * config/rs6000/predicates.md (add_cint_operand): New.
15715 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15716 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15717 using add_cint_operand.
15718 (largetoc_high_plus_aix): Likewise.
15720 2013-09-09 Jakub Jelinek <jakub@redhat.com>
15722 PR tree-optimization/58364
15723 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15724 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15725 the current range can't be an unconditional true or false.
15727 2013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
15729 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15731 2013-09-09 Uros Bizjak <ubizjak@gmail.com>
15733 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15735 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15738 * doc/invoke.texi (-Wdelete-incomplete): Document it.
15740 2013-09-09 Ian Bolton <ian.bolton@arm.com>
15742 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15743 NO_REGS for immediate that can't be moved directly into FP_REGS.
15745 2013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15747 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15748 comparison with negated operand.
15749 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15752 2013-09-09 Richard Biener <rguenther@suse.de>
15754 PR middle-end/58326
15755 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15756 of a subloop record all its block as affecting loop-closed SSA form.
15758 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15760 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15761 of an rtx/bitpos pair.
15762 (store_fixed_bit_field): Update accordingly.
15764 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15766 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15768 * builtins.c (expand_errno_check): Likewise.
15769 * dwarf2cfi.c (init_return_column_size): Likewise.
15770 * except.c (sjlj_mark_call_sites): Likewise.
15771 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15772 * lra-constraints.c (emit_inc): Likewise.
15773 * ree.c (combine_set_extension): Likewise.
15774 * regmove.c (fixup_match_2): Likewise.
15775 * reload1.c (inc_for_reload): Likewise.
15777 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15779 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15780 (force_to_mode, simplify_shift_const_1, simplify_comparison):
15781 Use gen_int_mode with the mode of the associated simplify_* call.
15782 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15783 * expmed.c (expand_shift_1): Likewise.
15784 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15785 * loop-iv.c (iv_number_of_iterations): Likewise.
15786 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15787 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15789 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15791 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15792 of the associated expand_* call.
15793 (asan_emit_stack_protection): Likewise.
15794 * builtins.c (round_trampoline_addr): Likewise.
15795 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15796 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15797 (emit_store_flag): Likewise.
15798 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15799 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15801 * function.c (instantiate_virtual_regs_in_insn): Likewise.
15802 * ifcvt.c (noce_try_store_flag_constants): Likewise.
15803 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15804 * modulo-sched.c (generate_prolog_epilog): Likewise.
15805 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15806 (expand_ctz, expand_ffs, expand_unop): Likewise.
15808 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15810 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15811 of the associated gen_rtx_* call.
15812 * caller-save.c (init_caller_save): Likewise.
15813 * combine.c (find_split_point, make_extraction): Likewise.
15814 (make_compound_operation): Likewise.
15815 * dwarf2out.c (mem_loc_descriptor): Likewise.
15816 * explow.c (plus_constant, probe_stack_range): Likewise.
15817 * expmed.c (expand_mult_const): Likewise.
15818 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15819 * reload1.c (init_reload): Likewise.
15820 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15821 * var-tracking.c (adjust_mems): Likewise.
15822 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15823 rather than gen_rtx_fmt_ee.
15825 2013-09-09 Jan Hubicka <jh@suse.cz>
15827 PR middle-end/58294
15828 * value-prof.c (gimple_ic): Copy also abnormal edges.
15830 2013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
15832 * asan.c (asan_shadow_cst): Use gen_int_mode.
15834 2013-09-08 Jan Hubicka <jh@suse.cz>
15836 * ipa-profile.c: Add toplevel comment.
15837 (ipa_propagate_frequency_1): Be more conservative when profile is read.
15838 (contains_hot_call_p): New function.
15839 (ipa_propagate_frequency): Set frequencies based on counts when
15841 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15842 profile; do not tamper with profile after inlining if it is read.
15844 2013-09-08 Jan Hubicka <jh@suse.cz>
15846 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15849 2013-09-08 Jan Hubicka <jh@suse.cz>
15851 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15852 summary generation.
15854 2013-09-08 Jeff Law <law@redhat.com>
15857 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15860 2013-09-08 Andi Kleen <ak@linux.intel.com>
15862 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15864 2013-09-08 Jan Hubicka <jh@suse.cz>
15866 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15868 2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
15870 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15871 for non-debug insns.
15872 * lra.c (new_insn_reg): Take the containing insn as a parameter.
15873 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15874 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15877 2013-09-08 Jan Hubicka <jh@suse.cz>
15879 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15880 targets and devirtualize to BUILT_IN_UNREACHABLE.
15881 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15882 * ipa.c (walk_polymorphic_call_targets): New function.
15883 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15884 functions; use the new timevar.
15885 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15886 was removed from the program.
15887 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15888 not consider it in the walk when its vtable is dead.
15889 (possible_polymorphic_call_targets_1): Pass anonymous flag to
15891 (devirt_variable_node_removal_hook): New function.
15892 (possible_polymorphic_call_targets): Also register
15893 devirt_variable_node_removal_hook.
15894 (ipa_devirt): Do not do non-speculative devirtualization.
15895 (gate_ipa_devirt): One execute if devirtualizing speculatively.
15897 2013-09-08 Jan Hubicka <jh@suse.cz>
15899 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15900 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15901 varpool_remove_variable_insertion_hook): Declare.
15902 * varpool.c (varpool_node_hook_list): New structure.
15903 (first_varpool_node_removal_hook,
15904 first_varpool_variable_insertion_hook): New variables.
15905 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15906 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15907 varpool_remove_variable_insertion_hook,
15908 varpool_call_variable_insertion_hooks): New functions.
15909 (varpool_remove_node): Use it.
15911 2013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
15914 * diagnostic.c (diagnostic_build_prefix): When s.file is
15915 "<built-in>" don't output line and column numbers.
15917 2013-09-06 Jan Hubicka <jh@suse.cz>
15919 * cgraphunit.c (expand_thunk): Get body before touching arguments.
15920 * lto-streamer-out.c: Stream thunks, too.
15921 * lto-streamer-in.c (input_function): Pop cfun here
15922 (lto_read_body): Instead of here.
15924 2013-09-06 Caroline Tice <cmtice@google.com>
15926 * doc/install.texi: Add documentation for the --enable-vtable-verify
15927 and the --disable-libvtv configure options.
15929 2013-09-06 Jeff Law <law@redhat.com>
15931 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15932 edge implied equivalences into successor phis.
15934 2013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
15936 * resource.c (mark_referenced_resources): Handle COND_EXEC.
15938 2013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
15940 * resource.c (mark_target_live_regs): Compute resources taking
15941 into account if a call is predicated or not.
15943 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
15945 * toplev.c (output_stack_usage): Be prepared for suffixes created by
15946 the compiler in the function names.
15948 2013-09-06 Jan Hubicka <jh@suse.cz>
15950 PR middle-end/58094
15951 * ipa-inline.c (has_caller_p): New function.
15952 (want_inline_function_to_all_callers_p): Use it.
15953 (sum_callers, inline_to_all_callers): Break out from ...
15954 (ipa_inline): ... here.
15956 2013-09-06 Jan Hubicka <jh@suse.cz>
15958 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15959 only when AVX is enabled.
15961 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15963 * config/aarch64/aarch64.md
15964 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15965 is fpsimd_<load/store>2.
15966 (load_pair<mode>): Likewise.
15967 (store_pair<mode>): Likewise.
15969 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15971 * config/arm/types.md (type): Add "mrs" type.
15972 * config/aarch64/aarch64.md
15973 (aarch64_load_tp_hard): Make type "mrs".
15974 * config/arm/arm.md
15975 (load_tp_hard): Make type "mrs".
15976 * config/arm/cortex-a15.md: Update with new attributes.
15977 * config/arm/cortex-a5.md: Update with new attributes.
15978 * config/arm/cortex-a53.md: Update with new attributes.
15979 * config/arm/cortex-a7.md: Update with new attributes.
15980 * config/arm/cortex-a8.md: Update with new attributes.
15981 * config/arm/cortex-a9.md: Update with new attributes.
15982 * config/arm/cortex-m4.md: Update with new attributes.
15983 * config/arm/cortex-r4.md: Update with new attributes.
15984 * config/arm/fa526.md: Update with new attributes.
15985 * config/arm/fa606te.md: Update with new attributes.
15986 * config/arm/fa626te.md: Update with new attributes.
15987 * config/arm/fa726te.md: Update with new attributes.
15989 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
15991 * config/aarch64/aarch64.md
15992 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15993 (*movtf_aarch64): Likewise.
15994 * config/arm/arm.md
15995 (thumb1_movdi_insn): Use "multiple" for type where more than one
15996 instruction is used for a move.
15997 (*arm32_movhf): Likewise.
15998 (*thumb_movdf_insn): Likewise.
16000 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16002 * config/arm/types.md (type): Rename fcpys to fmov.
16003 * config/arm/vfp.md
16004 (*arm_movsi_vfp): Rename type fcpys as fmov.
16005 (*thumb2_movsi_vfp): Likewise
16006 (*movhf_vfp_neon): Likewise
16007 (*movhf_vfp): Likewise
16008 (*movsf_vfp): Likewise
16009 (*thumb2_movsf_vfp): Likewise
16010 (*movsfcc_vfp): Likewise
16011 (*thumb2_movsfcc_vfp): Likewise
16012 * config/aarch64/aarch64-simd.md
16013 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
16014 * config/aarch64/aarch64.md
16015 (*movsi_aarch64): Replace type mov_reg with fmovs.
16016 (*movdi_aarch64): Likewise
16017 (*movsf_aarch64): Likewise
16018 (*movdf_aarch64): Likewise
16020 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
16021 * config/arm/iwmmxt.md
16022 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
16023 * config/arm/arm1020e.md: Update with new attributes.
16024 * config/arm/cortex-a15-neon.md: Update with new attributes.
16025 * config/arm/cortex-a5.md: Update with new attributes.
16026 * config/arm/cortex-a53.md: Update with new attributes.
16027 * config/arm/cortex-a7.md: Update with new attributes.
16028 * config/arm/cortex-a8-neon.md: Update with new attributes.
16029 * config/arm/cortex-a9.md: Update with new attributes.
16030 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16031 * config/arm/cortex-r4f.md: Update with new attributes.
16032 * config/arm/marvell-pj4.md: Update with new attributes.
16033 * config/arm/vfp11.md: Update with new attributes.
16035 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16037 * config/aarch64/aarch64.md
16038 (*madd<mode>): Fix type attribute.
16039 (*maddsi_uxtw): Likewise.
16040 (*msub<mode>): Likewise.
16041 (*msubsi_uxtw): Likewise.
16042 (<su_optab>maddsidi4): Likewise.
16043 (<su_optab>msubsidi4): Likewise.
16045 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16047 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
16048 * config/arm/arm.md (core_cycles): Remove fdiv.
16049 * config/arm/vfp.md:
16050 (*sqrtsf2_vfp): Update for attribute changes.
16051 (*sqrtdf2_vfp): Likewise.
16052 * config/aarch64/aarch64.md:
16053 (sqrt<mode>2): Update for attribute changes.
16054 * config/arm/arm1020e.md: Update with new attributes.
16055 * config/arm/cortex-a15-neon.md: Update with new attributes.
16056 * config/arm/cortex-a5.md: Update with new attributes.
16057 * config/arm/cortex-a53.md: Update with new attributes.
16058 * config/arm/cortex-a7.md: Update with new attributes.
16059 * config/arm/cortex-a8-neon.md: Update with new attributes.
16060 * config/arm/cortex-a9.md: Update with new attributes.
16061 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16062 * config/arm/cortex-r4f.md: Update with new attributes.
16063 * config/arm/marvell-pj4.md: Update with new attributes.
16064 * config/arm/vfp11.md: Update with new attributes.
16066 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16068 * config/arm/types.md
16069 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
16070 * config/aarch64/aarch64.md
16071 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
16073 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16074 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
16075 (float<GPI:mode><GPF:mode>2): Likewise.
16076 * config/arm/vfp.md
16077 (*truncsisf2_vfp): Update with new attributes.
16078 (*truncsidf2_vfp): Likewise.
16079 (fixuns_truncsfsi2): Likewise.
16080 (fixuns_truncdfsi2): Likewise.
16081 (*floatsisf2_vfp): Likewise.
16082 (*floatsidf2_vfp): Likewise.
16083 (floatunssisf2): Likewise.
16084 (floatunssidf2): Likewise.
16085 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
16086 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
16087 * config/arm/arm1020e.md: Update with new attributes.
16088 * config/arm/cortex-a15-neon.md: Update with new attributes.
16089 * config/arm/cortex-a5.md: Update with new attributes.
16090 * config/arm/cortex-a53.md: Update with new attributes.
16091 * config/arm/cortex-a7.md: Update with new attributes.
16092 * config/arm/cortex-a8-neon.md: Update with new attributes.
16093 * config/arm/cortex-a9.md: Update with new attributes.
16094 * config/arm/cortex-m4-fpu.md: Update with new attributes.
16095 * config/arm/cortex-r4f.md: Update with new attributes.
16096 * config/arm/marvell-pj4.md: Update with new attributes.
16097 * config/arm/vfp11.md: Update with new attributes.
16099 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16101 * config/aarch64/arm_neon.h
16102 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
16103 (vqtbx<1,2,3,4><q>_s8): Likewise.
16105 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16107 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
16108 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
16109 (add<mode>3): Add type attribute.
16110 (add<mode>3): Likewise.
16111 (usadd<mode>3): Likewise.
16112 (ssadd<mode>3): Likewise.
16113 (sub<mode>3): Likewise.
16114 (sub<mode>3): Likewise.
16115 (ussub<mode>3): Likewise.
16116 (sssub<mode>3): Likewise.
16117 (ssmulsa3): Likewise.
16118 (usmulusa3): Likewise.
16119 (arm_usatsihi): Likewise.
16120 * config/arm/vfp.md
16121 (*movdi_vfp): Add types for all instructions.
16122 (*movdi_vfp_cortexa8): Likewise.
16123 (*movhf_vfp_neon): Likewise.
16124 (*movhf_vfp): Likewise.
16125 (*movdf_vfp): Likewise.
16126 (*thumb2_movdf_vfp): Likewise.
16127 (*thumb2_movdfcc_vfp): Likewise.
16128 * config/arm/arm.md: Add type attribute to all insn patterns.
16129 (*thumb1_adddi3): Add type attribute.
16130 (*arm_adddi3): Likewise.
16131 (*adddi_sesidi_di): Likewise.
16132 (*adddi_zesidi_di): Likewise.
16133 (*thumb1_addsi3): Likewise.
16134 (addsi3_compare0): Likewise.
16135 (*addsi3_compare0_scratch): Likewise.
16136 (*compare_negsi_si): Likewise.
16137 (cmpsi2_addneg): Likewise.
16138 (*addsi3_carryin_<optab>): Likewise.
16139 (*addsi3_carryin_alt2_<optab>): Likewise.
16140 (*addsi3_carryin_clobercc_<optab>): Likewise.
16141 (*subsi3_carryin): Likewise.
16142 (*subsi3_carryin_const): Likewise.
16143 (*subsi3_carryin_compare): Likewise.
16144 (*subsi3_carryin_compare_const): Likewise.
16145 (*arm_subdi3): Likewise.
16146 (*thumb_subdi3): Likewise.
16147 (*subdi_di_zesidi): Likewise.
16148 (*subdi_di_sesidi): Likewise.
16149 (*subdi_zesidi_di): Likewise.
16150 (*subdi_sesidi_di): Likewise.
16151 (*subdi_zesidi_ze): Likewise.
16152 (thumb1_subsi3_insn): Likewise.
16153 (*arm_subsi3_insn): Likewise.
16154 (*anddi3_insn): Likewise.
16155 (*anddi_zesidi_di): Likewise.
16156 (*anddi_sesdi_di): Likewise.
16157 (*ne_zeroextracts): Likewise.
16158 (*ne_zeroextracts): Likewise.
16159 (*ite_ne_zeroextr): Likewise.
16160 (*ite_ne_zeroextr): Likewise.
16161 (*anddi_notdi_di): Likewise.
16162 (*anddi_notzesidi): Likewise.
16163 (*anddi_notsesidi): Likewise.
16164 (andsi_notsi_si): Likewise.
16165 (thumb1_bicsi3): Likewise.
16166 (*iordi3_insn): Likewise.
16167 (*iordi_zesidi_di): Likewise.
16168 (*iordi_sesidi_di): Likewise.
16169 (*thumb1_iorsi3_insn): Likewise.
16170 (*xordi3_insn): Likewise.
16171 (*xordi_zesidi_di): Likewise.
16172 (*xordi_sesidi_di): Likewise.
16173 (*arm_xorsi3): Likewise.
16174 (*andsi_iorsi3_no): Likewise.
16175 (*smax_0): Likewise.
16176 (*smax_m1): Likewise.
16177 (*arm_smax_insn): Likewise.
16178 (*smin_0): Likewise.
16179 (*arm_smin_insn): Likewise.
16180 (*arm_umaxsi3): Likewise.
16181 (*arm_uminsi3): Likewise.
16182 (*minmax_arithsi): Likewise.
16183 (*minmax_arithsi_): Likewise.
16184 (*satsi_<SAT:code>): Likewise.
16185 (arm_ashldi3_1bit): Likewise.
16186 (arm_ashrdi3_1bit): Likewise.
16187 (arm_lshrdi3_1bit): Likewise.
16188 (*arm_negdi2): Likewise.
16189 (*thumb1_negdi2): Likewise.
16190 (*arm_negsi2): Likewise.
16191 (*thumb1_negsi2): Likewise.
16192 (*negdi_extendsid): Likewise.
16193 (*negdi_zero_extend): Likewise.
16194 (*arm_abssi2): Likewise.
16195 (*thumb1_abssi2): Likewise.
16196 (*arm_neg_abssi2): Likewise.
16197 (*thumb1_neg_abss): Likewise.
16198 (one_cmpldi2): Likewise.
16199 (extend<mode>di2): Likewise.
16200 (*compareqi_eq0): Likewise.
16201 (*arm_extendhisi2addsi): Likewise.
16202 (*arm_movdi): Likewise.
16203 (*thumb1_movdi_insn): Likewise.
16204 (*arm_movt): Likewise.
16205 (*thumb1_movsi_insn): Likewise.
16206 (pic_add_dot_plus_four): Likewise.
16207 (pic_add_dot_plus_eight): Likewise.
16208 (tls_load_dot_plus_eight): Likewise.
16209 (*thumb1_movhi_insn): Likewise.
16210 (*thumb1_movsf_insn): Likewise.
16211 (*movdf_soft_insn): Likewise.
16212 (*thumb_movdf_insn): Likewise.
16213 (cbranchsi4_insn): Likewise.
16214 (cbranchsi4_scratch): Likewise.
16215 (*negated_cbranchsi4): Likewise.
16216 (*tbit_cbranch): Likewise.
16217 (*tlobits_cbranch): Likewise.
16218 (*tstsi3_cbranch): Likewise.
16219 (*cbranchne_decr1): Likewise.
16220 (*addsi3_cbranch): Likewise.
16221 (*addsi3_cbranch_scratch): Likewise.
16222 (*arm_cmpdi_insn): Likewise.
16223 (*arm_cmpdi_unsig): Likewise.
16224 (*arm_cmpdi_zero): Likewise.
16225 (*thumb_cmpdi_zero): Likewise.
16226 (*deleted_compare): Likewise.
16227 (*mov_scc): Likewise.
16228 (*mov_negscc): Likewise.
16229 (*mov_notscc): Likewise.
16230 (*cstoresi_eq0_thumb1_insn): Likewise.
16231 (cstoresi_nltu_thumb1): Likewise.
16232 (cstoresi_ltu_thu): Likewise.
16233 (thumb1_addsi3_addgeu): Likewise.
16234 (*arm_jump): Likewise.
16235 (*thumb_jump): Likewise.
16236 (*check_arch2): Likewise.
16237 (arm_casesi_internal): Likewise.
16238 (thumb1_casesi_dispatch): Likewise.
16239 (*arm_indirect_jump): Likewise.
16240 (*thumb1_indirect_jump): Likewise.
16242 (*and_scc): Likewise.
16243 (*ior_scc): Likewise.
16244 (*compare_scc): Likewise.
16245 (*cond_move): Likewise.
16246 (*cond_arith): Likewise.
16247 (*cond_sub): Likewise.
16248 (*cmp_ite0): Likewise.
16249 (*cmp_ite1): Likewise.
16250 (*cmp_and): Likewise.
16251 (*cmp_ior): Likewise.
16252 (*ior_scc_scc): Likewise.
16253 (*ior_scc_scc_cmp): Likewise.
16254 (*and_scc_scc): Likewise.
16255 (*and_scc_scc_cmp): Likewise.
16256 (*and_scc_scc_nod): Likewise.
16257 (*negscc): Likewise.
16258 (movcond_addsi): Likewise.
16259 (movcond): Likewise.
16260 (*ifcompare_plus_move): Likewise.
16261 (*if_plus_move): Likewise.
16262 (*ifcompare_move_plus): Likewise.
16263 (*if_move_plus): Likewise.
16264 (*ifcompare_arith_arith): Likewise.
16265 (*if_arith_arith): Likewise.
16266 (*ifcompare_arith_move): Likewise.
16267 (*if_arith_move): Likewise.
16268 (*ifcompare_move_arith): Likewise.
16269 (*if_move_arith): Likewise.
16270 (*ifcompare_move_not): Likewise.
16271 (*if_move_not): Likewise.
16272 (*ifcompare_not_move): Likewise.
16273 (*if_not_move): Likewise.
16274 (*ifcompare_shift_move): Likewise.
16275 (*if_shift_move): Likewise.
16276 (*ifcompare_move_shift): Likewise.
16277 (*if_move_shift): Likewise.
16278 (*ifcompare_shift_shift): Likewise.
16279 (*ifcompare_not_arith): Likewise.
16280 (*ifcompare_arith_not): Likewise.
16281 (*if_arith_not): Likewise.
16282 (*ifcompare_neg_move): Likewise.
16283 (*if_neg_move): Likewise.
16284 (*ifcompare_move_neg): Likewise.
16285 (*if_move_neg): Likewise.
16286 (prologue_thumb1_interwork): Likewise.
16287 (*cond_move_not): Likewise.
16288 (*sign_extract_onebit): Likewise.
16289 (*not_signextract_onebit): Likewise.
16290 (stack_tie): Likewise.
16291 (align_4): Likewise.
16292 (align_8): Likewise.
16293 (consttable_end): Likewise.
16294 (consttable_1): Likewise.
16295 (consttable_2): Likewise.
16296 (consttable_4): Likewise.
16297 (consttable_8): Likewise.
16298 (consttable_16): Likewise.
16299 (*thumb1_tablejump): Likewise.
16300 (prefetch): Likewise.
16301 (force_register_use): Likewise.
16302 (thumb_eh_return): Likewise.
16303 (load_tp_hard): Likewise.
16304 (load_tp_soft): Likewise.
16305 (tlscall): Likewise.
16306 (*arm_movtas_ze): Likewise.
16307 (*arm_rev): Likewise.
16308 (*arm_revsh): Likewise.
16309 (*arm_rev16): Likewise.
16310 * config/arm/thumb2.md
16311 (*thumb2_smaxsi3): Likewise.
16312 (*thumb2_sminsi3): Likewise.
16313 (*thumb32_umaxsi3): Likewise.
16314 (*thumb2_uminsi3): Likewise.
16315 (*thumb2_negdi2): Likewise.
16316 (*thumb2_abssi2): Likewise.
16317 (*thumb2_neg_abss): Likewise.
16318 (*thumb2_movsi_insn): Likewise.
16319 (tls_load_dot_plus_four): Likewise.
16320 (*thumb2_movhi_insn): Likewise.
16321 (*thumb2_mov_scc): Likewise.
16322 (*thumb2_mov_negs): Likewise.
16323 (*thumb2_mov_negs): Likewise.
16324 (*thumb2_mov_nots): Likewise.
16325 (*thumb2_mov_nots): Likewise.
16326 (*thumb2_movsicc_): Likewise.
16327 (*thumb2_movsfcc_soft_insn): Likewise.
16328 (*thumb2_indirect_jump): Likewise.
16329 (*thumb2_and_scc): Likewise.
16330 (*thumb2_ior_scc): Likewise.
16331 (*thumb2_ior_scc_strict_it): Likewise.
16332 (*thumb2_cond_move): Likewise.
16333 (*thumb2_cond_arith): Likewise.
16334 (*thumb2_cond_ari): Likewise.
16335 (*thumb2_cond_sub): Likewise.
16336 (*thumb2_negscc): Likewise.
16337 (*thumb2_movcond): Likewise.
16338 (thumb2_casesi_internal): Likewise.
16339 (thumb2_casesi_internal_pic): Likewise.
16340 (*thumb2_alusi3_short): Likewise.
16341 (*thumb2_mov<mode>_shortim): Likewise.
16342 (*thumb2_addsi_short): Likewise.
16343 (*thumb2_subsi_short): Likewise.
16344 (thumb2_addsi3_compare0): Likewise.
16345 (*thumb2_cbz): Likewise.
16346 (*thumb2_cbnz): Likewise.
16347 (*thumb2_one_cmplsi2_short): Likewise.
16348 (*thumb2_negsi2_short): Likewise.
16349 (*orsi_notsi_si): Likewise.
16350 * config/arm/arm1020e.md: Update with new attributes.
16351 * config/arm/arm1026ejs.md: Update with new attributes.
16352 * config/arm/arm1136jfs.md: Update with new attributes.
16353 * config/arm/arm926ejs.md: Update with new attributes.
16354 * config/arm/cortex-a15.md: Update with new attributes.
16355 * config/arm/cortex-a5.md: Update with new attributes.
16356 * config/arm/cortex-a53.md: Update with new attributes.
16357 * config/arm/cortex-a7.md: Update with new attributes.
16358 * config/arm/cortex-a8.md: Update with new attributes.
16359 * config/arm/cortex-a9.md: Update with new attributes.
16360 * config/arm/cortex-m4.md: Update with new attributes.
16361 * config/arm/cortex-r4.md: Update with new attributes.
16362 * config/arm/fa526.md: Update with new attributes.
16363 * config/arm/fa606te.md: Update with new attributes.
16364 * config/arm/fa626te.md: Update with new attributes.
16365 * config/arm/fa726te.md: Update with new attributes.
16367 2013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
16369 * config/aarch64/aarch64-simd.md
16370 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16371 <vwx> iterator to ensure correct register choice.
16372 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16373 (aarch64_sqdmull_n<mode>): Likewise.
16374 (aarch64_sqdmull2_n<mode>_internal): Likewise.
16375 * config/aarch64/arm_neon.h
16376 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16377 (vml<as><q>_n_<su>16): Likewise.
16378 (vml<as>l_high_lane<q>_<su>16): Likewise.
16379 (vml<as>l_high_n_<su>16): Likewise.
16380 (vml<as>l_lane<q>_<su>16): Likewise.
16381 (vml<as>l_n_<su>16): Likewise.
16382 (vmul<q>_lane<q>_<su>16): Likewise.
16383 (vmul<q>_n_<su>16): Likewise.
16384 (vmull_lane<q>_<su>16): Likewise.
16385 (vmull_n_<su>16): Likewise.
16386 (vmull_high_lane<q>_<su>16): Likewise.
16387 (vmull_high_n_<su>16): Likewise.
16388 (vqrdmulh<q>_n_s16): Likewise.
16390 2013-09-06 Tejas Belagod <tejas.belagod@arm.com>
16392 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16393 have the correct lane parameter.
16395 2013-09-06 Richard Biener <rguenther@suse.de>
16397 * cfganal.c (control_dependences::~control_dependences):
16398 Properly free all of the vector.
16400 2013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
16403 * config/i386/i386.c (ix86_conditional_register_usage):
16404 Proper initialize extended SSE registers.
16406 2013-09-06 Jan Hubicka <jh@suse.cz>
16408 PR tree-optimization/58311
16409 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16411 2013-09-06 Jan Hubicka <jh@suse.cz>
16413 * Makefile.in (tree-sra.o): Update dependencies.
16414 * tree-sra.c: Include ipa-utils.h
16415 (scan_function): Use recursive_call_p.
16416 (has_caller_p): New function.
16417 (cgraph_for_node_and_aliases): Count also callers of aliases.
16419 2013-09-06 Jan Hubicka <jh@suse.cz>
16421 PR middle-end/58094
16422 * cgraph.h (symtab_semantically_equivalent_p): Declare.
16423 * tree-tailcall.c: Include ipa-utils.h.
16424 (find_tail_calls): Use it.
16425 * ipa-pure-const.c (check_call): Likewise.
16426 * ipa-utils.c (recursive_call_p): New function.
16427 * ipa-utils.h (recursive_call_p): Dclare.
16428 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16429 (symtab_semantically_equivalent_p): New function.
16430 * Makefile.in (tree-tailcall.o): Update dependencies.
16432 2013-09-06 Eric Botcazou <ebotcazou@adacore.com>
16434 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16435 non-inlinable part.
16437 2013-09-06 Richard Biener <rguenther@suse.de>
16439 * lto-streamer.h (lto_global_var_decls): Remove.
16440 * Makefile.in (OBJS): Remove lto-symtab.o.
16441 (lto-symtab.o): Remove.
16442 (GTFILES): Remove lto-symtab.c
16443 * lto-symtab.c: Move to lto/
16445 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16447 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16448 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16449 (UNSPEC_FPINT_RINT): New constant definitions.
16450 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16451 definition with 2 attributes.
16452 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16453 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16456 2013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16458 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16459 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16460 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
16461 attribute to "z196_alone".
16462 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16465 2013-09-06 Richard Biener <rguenther@suse.de>
16467 * basic-block.h (class control_dependences): New.
16468 * tree-ssa-dce.c (control_dependence_map): Remove.
16470 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16471 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16472 find_pdom, find_control_dependence, find_all_control_dependences):
16474 (mark_control_dependent_edges_necessary,
16475 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16476 tree_dce_done, perform_tree_ssa_dce): Adjust.
16477 * cfganal.c (set_control_dependence_map_bit,
16478 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16479 find_all_control_dependences): Move from tree-ssa-dce.c and
16480 implement as methods of control_dependences class.
16481 (control_dependences::control_dependences): New.
16482 (control_dependences::~control_dependences): Likewise.
16483 (control_dependences::get_edges_dependent_on): Likewise.
16484 (control_dependences::get_edge): Likewise.
16486 2013-09-04 Jan Hubicka <jh@suse.cz>
16488 * tree.c (types_same_for_odr): Drop overactive check.
16489 * ipa-devirt.c (hash_type_name): Likewise.
16491 2013-09-04 Jan Hubicka <jh@suse.cz>
16493 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16494 (analyze_functions): ... here.
16496 2013-09-04 Jan Hubicka <jh@suse.cz>
16498 PR middle-end/58201
16499 * cgraphunit.c (analyze_functions): Clear AUX fields
16500 after processing; initialize assembler name has.
16502 2013-09-05 Jeff Law <law@redhat.com>
16504 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16505 from thread_around_empty_block. Record threading path into PATH.
16506 Recurse if threading through the initial block is successful.
16507 (thread_across_edge): Corresponding changes to slightly simplify.
16509 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16511 * config/aarch64/aarch64.md
16512 (type): Remove frecpe, frecps, frecpx.
16513 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16514 fix to be a TARGET_SIMD instruction.
16515 (aarch64_frecps): Remove.
16516 * config/aarch64/aarch64-simd.md
16517 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16518 (aarch64_frecps<mode>): Handle all float/vector of float modes.
16520 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16521 Sofiane Naci <sofiane.naci@arm.com>
16523 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16524 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16525 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16526 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16527 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
16528 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16529 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
16530 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
16531 into "clz, "rbit". Rename "shift" to "shift_imm".
16532 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16533 changes. Update for attribute changes all occurrences of arlo_* and
16535 * config/arm/arm-fixed.md: Update for attribute changes
16536 all occurrences of arlo_* types.
16537 * config/arm/thumb2.md: Update for attribute changes all occurrences
16539 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
16540 (cortexa7_older_only): Likewise.
16541 (cortexa7_younger): Likewise.
16542 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16543 (1020alu_shift_op): Likewise.
16544 (1020alu_shift_reg_op): Likewise.
16545 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16546 (alu_shift_op): Likewise.
16547 (alu_shift_reg_op): Likewise.
16548 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16549 (11_alu_shift_op): Likewise.
16550 (11_alu_shift_reg_op): Likewise.
16551 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16552 (9_alu_shift_reg_op): Likewise.
16553 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16555 (cortex_a15_alu_shift): Likewise.
16556 (cortex_a15_alu_shift_reg): Likewise.
16557 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16559 (cortex_a5_alu_shift): Likewise.
16560 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16562 (cortex_a53_alu_shift): Likewise.
16563 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16565 (cortex_a7_alu_reg): Likewise.
16566 (cortex_a7_alu_shift): Likewise.
16567 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16569 (cortex_a8_alu_shift): Likewise.
16570 (cortex_a8_alu_shift_reg): Likewise.
16571 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16572 (cortex_a9_dp_shift): Likewise.
16573 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16575 * config/arm/cortex-r4.md
16576 (cortex_r4_alu): Update for attribute changes.
16577 (cortex_r4_mov): Likewise.
16578 (cortex_r4_alu_shift_reg): Likewise.
16579 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16580 (526_alu_shift_op): Likewise.
16581 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16582 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16583 (626te_alu_shift_op): Likewise.
16584 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16585 (726te_alu_shift_op): Likewise.
16586 (726te_alu_shift_reg_op): Likewise.
16587 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16588 (mp626_alu_shift_op): Likewise.
16589 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16590 (pj4_alu_conds): Likewise.
16591 (pj4_shift): Likewise.
16592 (pj4_shift_conds): Likewise.
16593 (pj4_alu_shift): Likewise.
16594 (pj4_alu_shift_conds): Likewise.
16595 * config/aarch64/aarch64.md: Update for attribute change
16596 all occurrences of arlo_* and shift* types.
16598 2013-09-05 Mike Stump <mikestump@comcast.net>
16600 * tree.h: Move documentation for tree_function_decl to tree-core.h
16601 with the declaration.
16603 2013-09-05 Peter Bergner <bergner@vnet.ibm.com>
16606 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16607 looking for widest mode.
16609 2013-09-05 Eric Botcazou <ebotcazou@adacore.com>
16611 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16613 2013-09-05 Richard Biener <rguenther@suse.de>
16615 PR tree-optimization/58137
16616 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16617 Do not create vectors of pointers.
16618 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16619 types for the components of the vector initializer.
16620 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16621 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16623 2013-09-05 Martin Jambor <mjambor@suse.cz>
16625 * ipa-prop.c (remove_described_reference): Accept missing references,
16626 return false if that hppens, otherwise return true.
16627 (cgraph_node_for_jfunc): New function.
16628 (try_decrement_rdesc_refcount): Likewise.
16629 (try_make_edge_direct_simple_call): Use them.
16630 (ipa_edge_removal_hook): Remove references from rdescs.
16631 (ipa_edge_duplication_hook): Clone rdescs and their references
16632 when the new edge has the same caller as the old one.
16633 * cgraph.c (cgraph_resolve_speculation): Remove speculative
16634 reference before removing any edges.
16636 2013-09-05 Richard Earnshaw <rearnsha@arm.com>
16638 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16640 * thumb2.md (thumb2_storewb_parisi): New pattern.
16642 2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
16644 * config/aarch64/aarch64-option-extensions.def: Add
16645 AARCH64_OPT_EXTENSION of 'crc'.
16646 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16647 (AARCH64_ISA_CRC): Ditto.
16648 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16649 description of the CRC extension.
16651 2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
16653 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16654 * config/rs6000/linux.h: Ditto.
16655 * alpha/linux.h: Ditto.
16656 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16657 no_c99_libc_has_function.
16658 * config/c6x/uclinux-elf.h: Ditto.
16659 * config/lm32/uclinux-elf.h: Ditto.
16660 * config/m68k/uclinux.h: Ditto.
16661 * config/moxie/uclinux.h: Ditto.
16662 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16663 (crisv32-*-linux*, cris-*-linux*): Ditto.
16664 * config/bfin/bfin.c: Include "tm_p.h".
16666 2013-09-05 Richard Biener <rguenther@suse.de>
16668 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16669 check for a definition without a basic-block.
16671 2013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16672 Sofiane Naci <sofiane.naci@arm.com>
16674 * config/aarch64/aarch64.md
16675 (*movti_aarch64): Rename r_2_f and f_2_r.
16676 (*movsf_aarch64): Likewise.
16677 (*movdf_aarch64): Likewise.
16678 (*movtf_aarch64): Likewise.
16679 (aarch64_movdi_<mode>low): Likewise.
16680 (aarch64_movdi_<mode>high): Likewise.
16681 (aarch64_mov<mode>high_di): Likewise.
16682 (aarch64_mov<mode>low_di): Likewise.
16683 (aarch64_movtilow_tilow): Likewise.
16684 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
16685 values to config/arm/types.md
16686 (attribute "conds"): Update for attribute change.
16687 (anddi3_insn): Likewise.
16688 (iordi3_insn): Likewise.
16689 (xordi3_insn): Likewise.
16690 (one_cmpldi2): Likewise.
16691 * config/arm/types.md (type): Add Neon types.
16692 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16693 use "type" attribute.
16694 (movmisalign<mode>_neon_store): Likewise.
16695 (movmisalign<mode>_neon_load): Likewise.
16696 (vec_set<mode>_internal): Likewise.
16697 (vec_setv2di_internal): Likewise.
16698 (vec_extract<mode>): Likewise.
16699 (vec_extractv2di): Likewise.
16700 (add<mode>3_neon): Likewise.
16701 (adddi3_neon): Likewise.
16702 (sub<mode>3_neon): Likewise.
16703 (subdi3_neon): Likewise.
16704 (mul<mode>3_neon): Likewise.
16705 (mul<mode>3add<mode>_neon): Likewise.
16706 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16707 (fma<VCVTF:mode>4)): Likewise.
16708 (fma<VCVTF:mode>4_intrinsic): Likewise.
16709 (fmsub<VCVTF:mode>4)): Likewise.
16710 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16711 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16712 (ior<mode>3): Likewise.
16713 (and<mode>3): Likewise.
16714 (anddi3_neon): Likewise.
16715 (orn<mode>3_neon): Likewise.
16716 (orndi3_neon): Likewise.
16717 (bic<mode>3_neon): Likewise.
16718 (bicdi3_neon): Likewise.
16719 (xor<mode>3): Likewise.
16720 (one_cmpl<mode>2): Likewise.
16721 (abs<mode>2): Likewise.
16722 (neg<mode>2): Likewise.
16723 (umin<mode>3_neon): Likewise.
16724 (umax<mode>3_neon): Likewise.
16725 (smin<mode>3_neon): Likewise.
16726 (smax<mode>3_neon): Likewise.
16727 (vashl<mode>3): Likewise.
16728 (vashr<mode>3_imm): Likewise.
16729 (vlshr<mode>3_imm): Likewise.
16730 (ashl<mode>3_signed): Likewise.
16731 (ashl<mode>3_unsigned): Likewise.
16732 (neon_load_count): Likewise.
16733 (ashldi3_neon_noclobber): Likewise.
16734 (signed_shift_di3_neon): Likewise.
16735 (unsigned_shift_di3_neon): Likewise.
16736 (ashrdi3_neon_imm_noclobber): Likewise.
16737 (lshrdi3_neon_imm_noclobber): Likewise.
16738 (widen_ssum<mode>3): Likewise.
16739 (widen_usum<mode>3): Likewise.
16740 (quad_halves_<code>v4si): Likewise.
16741 (quad_halves_<code>v4sf): Likewise.
16742 (quad_halves_<code>v8hi): Likewise.
16743 (quad_halves_<code>v16qi): Likewise.
16744 (reduc_splus_v2di): Likewise.
16745 (neon_vpadd_internal<mode>): Likewise.
16746 (neon_vpsmin<mode>): Likewise.
16747 (neon_vpsmax<mode>): Likewise.
16748 (neon_vpumin<mode>): Likewise.
16749 (neon_vpumax<mode>): Likewise.
16750 (ss_add<mode>_neon): Likewise.
16751 (us_add<mode>_neon): Likewise.
16752 (ss_sub<mode>_neon): Likewise.
16753 (us_sub<mode>_neon): Likewise.
16754 (neon_vadd<mode>_unspec): Likewise.
16755 (neon_vaddl<mode>): Likewise.
16756 (neon_vaddw<mode>): Likewise.
16757 (neon_vhadd<mode>): Likewise.
16758 (neon_vqadd<mode>): Likewise.
16759 (neon_vaddhn<mode>): Likewise.
16760 (neon_vmul<mode>): Likewise.
16761 (neon_vmla<mode>): Likewise.
16762 (neon_vmlal<mode>): Likewise.
16763 (neon_vmls<mode>): Likewise.
16764 (neon_vmlsl<mode>): Likewise.
16765 (neon_vqdmulh<mode>): Likewise.
16766 (neon_vqdmlal<mode>): Likewise.
16767 (neon_vqdmlsl<mode>): Likewise.
16768 (neon_vmull<mode>): Likewise.
16769 (neon_vqdmull<mode>): Likewise.
16770 (neon_vsub<mode>_unspec): Likewise.
16771 (neon_vsubl<mode>): Likewise.
16772 (neon_vsubw<mode>): Likewise.
16773 (neon_vqsub<mode>): Likewise.
16774 (neon_vhsub<mode>): Likewise.
16775 (neon_vsubhn<mode>): Likewise.
16776 (neon_vceq<mode>): Likewise.
16777 (neon_vcge<mode>): Likewise.
16778 (neon_vcgeu<mode>): Likewise.
16779 (neon_vcgt<mode>): Likewise.
16780 (neon_vcgtu<mode>): Likewise.
16781 (neon_vcle<mode>): Likewise.
16782 (neon_vclt<mode>): Likewise.
16783 (neon_vcage<mode>): Likewise.
16784 (neon_vcagt<mode>): Likewise.
16785 (neon_vtst<mode>): Likewise.
16786 (neon_vabd<mode>): Likewise.
16787 (neon_vabdl<mode>): Likewise.
16788 (neon_vaba<mode>): Likewise.
16789 (neon_vabal<mode>): Likewise.
16790 (neon_vmax<mode>): Likewise.
16791 (neon_vmin<mode>): Likewise.
16792 (neon_vpaddl<mode>): Likewise.
16793 (neon_vpadal<mode>): Likewise.
16794 (neon_vpmax<mode>): Likewise.
16795 (neon_vpmin<mode>): Likewise.
16796 (neon_vrecps<mode>): Likewise.
16797 (neon_vrsqrts<mode>): Likewise.
16798 (neon_vqabs<mode>): Likewise.
16799 (neon_vqneg<mode>): Likewise.
16800 (neon_vcls<mode>): Likewise.
16801 (clz<mode>2): Likewise.
16802 (popcount<mode>2): Likewise.
16803 (neon_vrecpe): Likewise.
16804 (neon_vrsqrte): Likewise.
16805 (neon_vget_lane<mode>_sext_internal): Likewise.
16806 (neon_vget_lane<mode>_zext_internal): Likewise.
16807 (neon_vdup_n<mode>): Likewise.
16808 (neon_vdup_nv2di): Likewise.
16809 (neon_vdpu_lane<mode>_internal): Likewise.
16810 (neon_vswp<mode>): Likewise.
16811 (float<mode><V_cvtto>2): Likewise.
16812 (floatuns<mode><V_cvtto>2): Likewise.
16813 (fix_trunc<mode><V_cvtto>)2): Likewise
16814 (fixuns_trunc<mode><V_cvtto)2): Likewise.
16815 (neon_vcvt<mode>): Likewise.
16816 (neon_vcvtv4sfv4hf): Likewise.
16817 (neon_vcvtv4hfv4sf): Likewise.
16818 (neon_vcvt_n<mode>): Likewise.
16819 (neon_vmovn<mode>): Likewise.
16820 (neon_vqmovn<mode>): Likewise.
16821 (neon_vqmovun<mode>): Likewise.
16822 (neon_vmovl<mode>): Likewise.
16823 (neon_vmul_lane<mode>): Likewise.
16824 (neon_vmull_lane<mode>): Likewise.
16825 (neon_vqdmull_lane<mode>): Likewise.
16826 (neon_vqdmulh_lane<mode>): Likewise.
16827 (neon_vmla_lane<mode>): Likewise.
16828 (neon_vmlal_lane<mode>): Likewise.
16829 (neon_vqdmlal_lane<mode>): Likewise.
16830 (neon_vmls_lane<mode>): Likewise.
16831 (neon_vmlsl_lane<mode>): Likewise.
16832 (neon_vqdmlsl_lane<mode>): Likewise.
16833 (neon_vext<mode>): Likewise.
16834 (neon_vrev64<mode>): Likewise.
16835 (neon_vrev32<mode>): Likewise.
16836 (neon_vrev16<mode>): Likewise.
16837 (neon_vbsl<mode>_internal): Likewise.
16838 (neon_vshl<mode>): Likewise.
16839 (neon_vqshl<mode>): Likewise.
16840 (neon_vshr_n<mode>): Likewise.
16841 (neon_vshrn_n<mode>): Likewise.
16842 (neon_vqshrn_n<mode>): Likewise.
16843 (neon_vqshrun_n<mode>): Likewise.
16844 (neon_vshl_n<mode>): Likewise.
16845 (neon_vqshl_n<mode>): Likewise.
16846 (neon_vqshlu_n<mode>): Likewise.
16847 (neon_vshll_n<mode>): Likewise.
16848 (neon_vsra_n<mode>): Likewise.
16849 (neon_vsri_n<mode>): Likewise.
16850 (neon_vsli_n<mode>): Likewise.
16851 (neon_vtbl1v8qi): Likewise.
16852 (neon_vtbl2v8qi): Likewise.
16853 (neon_vtbl3v8qi): Likewise.
16854 (neon_vtbl4v8qi): Likewise.
16855 (neon_vtbx1v8qi): Likewise.
16856 (neon_vtbx2v8qi): Likewise.
16857 (neon_vtbx3v8qi): Likewise.
16858 (neon_vtbx4v8qi): Likewise.
16859 (neon_vtrn<mode>_internal): Likewise.
16860 (neon_vzip<mode>_internal): Likewise.
16861 (neon_vuzp<mode>_internal): Likewise.
16862 (neon_vld1<mode>): Likewise.
16863 (neon_vld1_lane<mode>): Likewise.
16864 (neon_vld1_dup<mode>): Likewise.
16865 (neon_vld1_dupv2di): Likewise.
16866 (neon_vst1<mode>): Likewise.
16867 (neon_vst1_lane<mode>): Likewise.
16868 (neon_vld2<mode>): Likewise.
16869 (neon_vld2_lane<mode>): Likewise.
16870 (neon_vld2_dup<mode>): Likewise.
16871 (neon_vst2<mode>): Likewise.
16872 (neon_vst2_lane<mode>): Likewise.
16873 (neon_vld3<mode>): Likewise.
16874 (neon_vld3qa<mode>): Likewise.
16875 (neon_vld3qb<mode>): Likewise.
16876 (neon_vld3_lane<mode>): Likewise.
16877 (neon_vld3_dup<mode>): Likewise.
16878 (neon_vst3<mode>): Likewise.
16879 (neon_vst3qa<mode>): Likewise.
16880 (neon_vst3qb<mode>): Likewise.
16881 (neon_vst3_lane<mode>): Likewise.
16882 (neon_vld4<mode>): Likewise.
16883 (neon_vld4qa<mode>): Likewise.
16884 (neon_vld4qb<mode>): Likewise.
16885 (neon_vld4_lane<mode>): Likewise.
16886 (neon_vld4_dup<mode>): Likewise.
16887 (neon_vst4<mode>): Likewise.
16888 (neon_vst4qa<mode>): Likewise.
16889 (neon_vst4qb<mode>): Likewise.
16890 (neon_vst4_lane<mode>): Likewise.
16891 (neon_vec_unpack<US>_lo_<mode>): Likewise.
16892 (neon_vec_unpack<US>_hi_<mode>): Likewise.
16893 (neon_vec_<US>mult_lo_<mode>): Likewise.
16894 (neon_vec_<US>mult_hi_<mode>): Likewise.
16895 (neon_vec_<US>shiftl_<mode>): Likewise.
16896 (neon_unpack<US>_<mode>): Likewise.
16897 (neon_vec_<US>mult_<mode>): Likewise.
16898 (vec_pack_trunc_<mode>): Likewise.
16899 (neon_vec_pack_trunk_<mode>): Likewise.
16900 (neon_vabd<mode>_2): Likewise.
16901 (neon_vabd<mode>_3): Likewise.
16902 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16903 (thumb2_movsi_vfp): Likewise.
16904 (movdi_vfp): Likewise.
16905 (movdi_vfp_cortexa8): Likewise.
16906 (movhf_vfp_neon): Likewise.
16907 (movhf_vfp): Likewiwse.
16908 (movsf_vfp): Likewiwse.
16909 (thumb2_movsf_vfp): Likewiwse.
16910 (movdf_vfp): Likewise.
16911 (thumb2_movdf_vfp): Likewise.
16912 (movsfcc_vfp): Likewise.
16913 (thumb2_movsfcc_vfp): Likewise.
16914 (movdfcc_vfp): Likewise.
16915 (thumb2_movdfcc_vfp): Likewise.
16916 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16917 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16918 (v10_v2c): Likewise.
16919 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16921 (cortex_a15_neon_int_2): Likewise.
16922 (cortex_a15_neon_int_3): Likewise.
16923 (cortex_a15_neon_int_4): Likewise.
16924 (cortex_a15_neon_int_5): Likewise.
16925 (cortex_a15_neon_vqneg_vqabs): Likewise.
16926 (cortex_a15_neon_vmov): Likewise.
16927 (cortex_a15_neon_vaba): Likewise.
16928 (cortex_a15_neon_vaba_qqq): Likewise.
16929 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16930 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16931 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16932 scalar_64_32_long_scalar): Likewise.
16933 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16934 (cortex_a15_neon_mla_qqq_8_16): Likewise.
16935 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16936 lotype_qdd_64_32_long): Likewise.
16937 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16938 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16939 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16940 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16941 (cortex_a15_neon_shift_1): Likewise.
16942 (cortex_a15_neon_shift_2): Likewise.
16943 (cortex_a15_neon_shift_3): Likewise.
16944 (cortex_a15_neon_vshl_ddd): Likewise.
16945 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16946 (cortex_a15_neon_vsra_vrsra): Likewise.
16947 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16948 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16949 (cortex_a15_neon_fp_vmul_ddd): Likewise.
16950 (cortex_a15_neon_fp_vmul_qqd): Likewise.
16951 (cortex_a15_neon_fp_vmla_ddd): Likewise.
16952 (cortex_a15_neon_fp_vmla_qqq): Likewise.
16953 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16954 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16955 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16956 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16957 (cortex_a15_neon_bp_simple): Likewise.
16958 (cortex_a15_neon_bp_2cycle): Likewise.
16959 (cortex_a15_neon_bp_3cycle): Likewise.
16960 (cortex_a15_neon_vld1_1_2_regs): Likewise.
16961 (cortex_a15_neon_vld1_3_4_regs): Likewise.
16962 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16963 (cortex_a15_neon_vld2_4_regs): Likewise.
16964 (cortex_a15_neon_vld3_vld4): Likewise.
16965 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16966 (cortex_a15_neon_vst1_3_4_regs): Likewise.
16967 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16968 (cortex_a15_neon_vst3_vst4): Likewise.
16969 (cortex_a15_neon_vld1_vld2_lane): Likewise.
16970 (cortex_a15_neon_vld3_vld4_lane" 10
16971 (cortex_a15_neon_vst1_vst2_lane): Likewise.
16972 (cortex_a15_neon_vst3_vst4_lane): Likewise.
16973 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16974 (cortex_a15_neon_ldm_2): Likewise.0
16975 (cortex_a15_neon_stm_2): Likewise.
16976 (cortex_a15_neon_mcr): Likewise.
16977 (cortex_a15_neon_mcr_2_mcrr): Likewise.
16978 (cortex_a15_neon_mrc): Likewise.
16979 (cortex_a15_neon_mrrc): Likewise.
16980 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16982 (cortex_a15_alu_shift): Likewise.
16983 (cortex_a15_alu_shift_reg): Likewise.
16984 (cortex_a15_mult32): Likewise.
16985 (cortex_a15_mult64): Likewise.
16986 (cortex_a15_block): Likewise.
16987 (cortex_a15_branch): Likewise.
16988 (cortex_a15_load1): Likewise.
16989 (cortex_a15_load3): Likewise.
16990 (cortex_a15_store1): Likewise.
16991 (cortex_a15_store3): Likewise.
16992 (cortex_a15_call): Likewise.
16993 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16994 (cortex_a5_f2r): Likewise.
16995 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16997 (cortex_a53_f2r): Likewise.
16998 * config/arm/cortex-a7.md
16999 (cortex_a7_branch): Update for attribute change.
17000 (cortex_a7_call): Likewise.
17001 (cortex_a7_alu_imm): Likewise.
17002 (cortex_a7_alu_reg): Likewise.
17003 (cortex_a7_alu_shift): Likewise.
17004 (cortex_a7_mul): Likewise.
17005 (cortex_a7_load1): Likewise.
17006 (cortex_a7_store1): Likewise.
17007 (cortex_a7_load2): Likewise.
17008 (cortex_a7_store2): Likewise.
17009 (cortex_a7_load3): Likewise.
17010 (cortex_a7_store3): Likewise.
17011 (cortex_a7_load4): Likewise.
17012 (cortex_a7_store4): Likewise.
17013 (cortex_a7_fpalu): Likewise.
17014 (cortex_a7_fconst): Likewise.
17015 (cortex_a7_fpmuls): Likewise.
17016 (cortex_a7_neon_mul): Likewise.
17017 (cortex_a7_fpmacs): Likewise.
17018 (cortex_a7_neon_mla: Likewise.
17019 (cortex_a7_fpmuld: Likewise.
17020 (cortex_a7_fpmacd: Likewise.
17021 (cortex_a7_fpfmad: Likewise.
17022 (cortex_a7_fdivs: Likewise.
17023 (cortex_a7_fdivd: Likewise.
17024 (cortex_a7_r2f: Likewise.
17025 (cortex_a7_f2r: Likewise.
17026 (cortex_a7_f_flags: Likewise.
17027 (cortex_a7_f_loads: Likewise.
17028 (cortex_a7_f_loadd: Likewise.
17029 (cortex_a7_f_stores: Likewise.
17030 (cortex_a7_f_stored: Likewise.
17031 (cortex_a7_neon): Likewise.
17032 * config/arm/cortex-a8-neon.md
17033 (cortex_a8_neon_mrc): Update for attribute change.
17034 (cortex_a8_neon_mrrc): Likewise.
17035 (cortex_a8_neon_int_1): Likewise.
17036 (cortex_a8_neon_int_2): Likewise.
17037 (cortex_a8_neon_int_3): Likewise.
17038 (cortex_a8_neon_int_4): Likewise.
17039 (cortex_a8_neon_int_5): Likewise.
17040 (cortex_a8_neon_vqneg_vqabs): Likewise.
17041 (cortex_a8_neon_vmov): Likewise.
17042 (cortex_a8_neon_vaba): Likewise.
17043 (cortex_a8_neon_vaba_qqq): Likewise.
17044 (cortex_a8_neon_vsma): Likewise.
17045 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17046 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17047 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17048 long_scalar): Likewise.
17049 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17050 (cortex_a8_neon_mla_qqq_8_16): Likewise.
17051 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17052 long_scalar_qdd_64_32_long): Likewise.
17053 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17054 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17055 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
17056 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17057 (cortex_a8_neon_shift_1): Likewise.
17058 (cortex_a8_neon_shift_2): Likewise.
17059 (cortex_a8_neon_shift_3): Likewise.
17060 (cortex_a8_neon_vshl_ddd): Likewise.
17061 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17062 (cortex_a8_neon_vsra_vrsra): Likewise.
17063 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
17064 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
17065 (cortex_a8_neon_fp_vsum): Likewise.
17066 (cortex_a8_neon_fp_vmul_ddd): Likewise.
17067 (cortex_a8_neon_fp_vmul_qqd): Likewise.
17068 (cortex_a8_neon_fp_vmla_ddd): Likewise.
17069 (cortex_a8_neon_fp_vmla_qqq): Likewise.
17070 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
17071 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
17072 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17073 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17074 (cortex_a8_neon_bp_simple): Likewise.
17075 (cortex_a8_neon_bp_2cycle): Likewise.
17076 (cortex_a8_neon_bp_3cycle): Likewise.
17077 (cortex_a8_neon_ldr): Likewise.
17078 (cortex_a8_neon_str): Likewise.
17079 (cortex_a8_neon_vld1_1_2_regs): Likewise.
17080 (cortex_a8_neon_vld1_3_4_regs): Likewise.
17081 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17082 (cortex_a8_neon_vld2_4_regs): Likewise.
17083 (cortex_a8_neon_vld3_vld4): Likewise.
17084 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17085 (cortex_a8_neon_vst1_3_4_regs): Likewise.
17086 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
17087 (cortex_a8_neon_vst3_vst4): Likewise.
17088 (cortex_a8_neon_vld1_vld2_lane): Likewise.
17089 (cortex_a8_neon_vld3_vld4_lane): Likewise.
17090 (cortex_a8_neon_vst1_vst2_lane): Likewise.
17091 (cortex_a8_neon_vst3_vst4_lane): Likewise.
17092 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
17093 (cortex_a8_neon_mcr): Likewise.
17094 (cortex_a8_neon_mcr_2_mcrr): Likewise.
17095 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
17096 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
17098 (ca9_neon_mrrc): Likewise.
17099 (cortex_a9_neon_int_1): Likewise.
17100 (cortex_a9_neon_int_2): Likewise.
17101 (cortex_a9_neon_int_3): Likewise.
17102 (cortex_a9_neon_int_4): Likewise.
17103 (cortex_a9_neon_int_5): Likewise.
17104 (cortex_a9_neon_vqneg_vqabs): Likewise.
17105 (cortex_a9_neon_vmov): Likewise.
17106 (cortex_a9_neon_vaba): Likewise.
17107 (cortex_a9_neon_vaba_qqq): Likewise.
17108 (cortex_a9_neon_vsma): Likewise.
17109 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17110 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
17111 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
17112 long_scalar): Likewise.
17113 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
17114 (cortex_a9_neon_mla_qqq_8_16): Likewise.
17115 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
17116 long_scalar_qdd_64_32_long): Likewise.
17117 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
17118 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
17119 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
17120 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
17121 (cortex_a9_neon_shift_1): Likewise.
17122 (cortex_a9_neon_shift_2): Likewise.
17123 (cortex_a9_neon_shift_3): Likewise.
17124 (cortex_a9_neon_vshl_ddd): Likewise.
17125 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
17126 (cortex_a9_neon_vsra_vrsra): Likewise.
17127 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
17128 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
17129 (cortex_a9_neon_fp_vsum): Likewise.
17130 (cortex_a9_neon_fp_vmul_ddd): Likewise.
17131 (cortex_a9_neon_fp_vmul_qqd): Likewise.
17132 (cortex_a9_neon_fp_vmla_ddd): Likewise.
17133 (cortex_a9_neon_fp_vmla_qqq): Likewise.
17134 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
17135 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
17136 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
17137 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
17138 (cortex_a9_neon_bp_simple): Likewise.
17139 (cortex_a9_neon_bp_2cycle): Likewise.
17140 (cortex_a9_neon_bp_3cycle): Likewise.
17141 (cortex_a9_neon_ldr): Likewise.
17142 (cortex_a9_neon_str): Likewise.
17143 (cortex_a9_neon_vld1_1_2_regs): Likewise.
17144 (cortex_a9_neon_vld1_3_4_regs): Likewise.
17145 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
17146 (cortex_a9_neon_vld2_4_regs): Likewise.
17147 (cortex_a9_neon_vld3_vld4): Likewise.
17148 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
17149 (cortex_a9_neon_vst1_3_4_regs): Likewise.
17150 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
17151 (cortex_a9_neon_vst3_vst4): Likewise.
17152 (cortex_a9_neon_vld1_vld2_lane): Likewise.
17153 (cortex_a9_neon_vld3_vld4_lane): Likewise.
17154 (cortex_a9_neon_vst1_vst2_lane): Likewise.
17155 (cortex_a9_neon_vst3_vst4_lane): Likewise.
17156 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
17157 (cortex_a9_neon_mcr): Likewise.
17158 (cortex_a9_neon_mcr_2_mcrr): Likewise.
17159 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
17160 (cortex_a9_fps): Likewise.
17161 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
17163 (cortex_m4_fmuls): Likewise.
17164 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
17166 (cortex_r4_mrc): Likewise.
17167 * config/arm/iterators.md: Update comment referring to neon_type.
17168 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
17169 (iwmmxt_movsi_insn): Likewise.
17170 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
17172 (pj4_core_to_vfp): Likewise.
17173 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
17175 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
17176 (vfp_fstore): Likewise.
17177 * doc/md.texi: Change references to neon_type to refer to type.
17179 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17181 * tree.h (DECL_BUILT_IN): Fix typo in comment.
17183 2013-09-04 David Edelsohn <dje.gcc@gmail.com>
17185 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
17186 lglobl if not weak.
17188 2013-09-04 Easwaran Raman <eraman@google.com>
17190 PR middle-end/57370
17191 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
17192 (build_and_add_sum): Use it.
17193 (appears_later_in_bb): Simplify code.
17195 2013-09-04 Teresa Johnson <tejohnson@google.com>
17197 * dumpfile.c (dump_finish): Don't close stderr/stdout.
17199 2013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
17201 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
17203 2013-09-04 Jan Hubicka <jh@suse.cz>
17205 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
17206 * ipa-devirt.c: Include diganostic.h
17207 (odr_type_d): Add types and types_set.
17208 (hash_type_name): Work for types with vtables during LTO.
17209 (odr_hasher::remove): Fix comment; destroy types_set.
17210 (add_type_duplicate): New function,
17211 (get_odr_type): Use it.
17212 (dump_type_inheritance_graph): Dump type duplicates.
17213 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
17215 * tree.c (types_same_for_odr): Give exact answers on types with
17218 2013-09-04 Dodji Seketeli <dodji@redhat.com>
17220 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
17221 explaining their differences.
17223 2013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
17225 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
17227 2013-09-03 Jeff Law <law@redhat.com>
17229 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
17230 when not threading through a joiner block. Pass joiner/no joiner
17231 state to register_jump_thread.
17232 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
17233 state from argument rather than implying on path length.
17234 Dump the entire jump thread path into debugging dump.
17235 * tree-flow.h (register_jump_thread): Update prototype.
17237 2013-08-29 Xinliang David Li <davidxl@google.com>
17239 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17240 Remove a trivial gcc_assert.
17242 2013-08-29 Xinliang David Li <davidxl@google.com>
17244 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
17245 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
17246 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17247 Delay base decl alignment adjustment.
17248 * tree-vectorizer.c (vect_destroy_datarefs): New function.
17249 * tree-vectorizer.h: New data structure.
17250 (set_dr_misalignment): New function.
17251 (dr_misalignment): Ditto.
17252 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
17253 (vectorizable_load): Ditto.
17254 (ensure_base_align): New function.
17255 (vectorize_loops): Add dbg_cnt support.
17256 (execute_vect_slp): Ditto.
17257 * dbgcnt.def: New debug counter.
17258 * Makefile: New dependency.
17260 2013-09-03 Meador Inge <meadori@codesourcery.com>
17264 2013-08-30 Meador Inge <meadori@codesourcery.com>
17266 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17268 2013-09-03 David Edelsohn <dje.gcc@gmail.com>
17270 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
17271 function descriptor.
17273 2013-09-03 Richard Biener <rguenther@suse.de>
17275 * tree-affine.c (add_elt_to_tree): Fix association issue,
17276 avoid useless converts and make sure to always return a
17277 properly typed result.
17279 2013-09-03 Richard Biener <rguenther@suse.de>
17281 PR middle-end/57656
17282 * fold-const.c (negate_expr_p): Fix division case.
17283 (negate_expr): Likewise.
17285 2013-09-03 Richard Biener <rguenther@suse.de>
17288 * tree-streamer-out.c: Include tm.h.
17289 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
17291 2013-09-03 Jan Hubicka <jh@suse.cz>
17293 * tree-profile.c (tree_profiling): Cleanup CFG when done.
17295 2013-09-03 Alan Modra <amodra@gmail.com>
17297 * config.gcc (powerpc*-*-linux*): Add support for little-endian
17298 multilibs to big-endian target and vice versa.
17299 * config/rs6000/t-linux64: Use := assignment on all vars.
17300 (MULTILIB_EXTRA_OPTS): Remove fPIC.
17301 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
17302 * config/rs6000/t-linux64le: New file.
17303 * config/rs6000/t-linux64bele: New file.
17304 * config/rs6000/t-linux64lebe: New file.
17306 2013-09-02 Jan Hubicka <jh@suse.cz>
17308 * ipa-inline-transform.c (inline_transform): Do not
17309 optimize_inline_calls when not optimizing.
17311 2013-09-02 Jan Hubicka <jh@suse.cz>
17313 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
17314 duplicated nodes for assembler names.
17315 * symtab.c (symtab_unregister_node): Do not attempt to unlink
17316 hard registers from assembler name hash.
17318 2013-09-02 Jan Hubicka <jh@suse.cz>
17320 * ipa-split.c (execute_split_functions): Split externally visible
17321 functions called once.
17323 2013-09-02 Martin Jambor <mjambor@suse.cz>
17326 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
17327 linked list. When finding the correct duplicate, also consider also
17328 the caller in additon to its inlined_to node.
17330 2013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
17332 * config/aarch64/aarch64-simd-builtins.def
17333 (dup_lane_scalar): Remove.
17334 * config/aarch64/aarch64-simd.md
17335 (aarch64_simd_dup): Add 'w->w' alternative.
17336 (aarch64_dup_lane<mode>): Allow for VALL.
17337 (aarch64_dup_lane_scalar<mode>): Remove.
17338 (aarch64_dup_lane_<vswap_width_name><mode>): New.
17339 (aarch64_get_lane_signed<mode>): Add w->w altenative.
17340 (aarch64_get_lane_unsigned<mode>): Likewise.
17341 (aarch64_get_lane<mode>): Likewise.
17342 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
17343 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
17344 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
17345 (VCON): Change container of V2SF.
17346 (vswap_width_name): Likewise.
17347 * config/aarch64/arm_neon.h
17348 (__aarch64_vdup_lane_any): New.
17349 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17350 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
17351 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
17353 2013-09-02 Eric Botcazou <ebotcazou@adacore.com>
17355 PR middle-end/56382
17356 * expr.c (emit_move_complex): Do not move complex FP values as parts if
17357 the source or the destination is a single hard register.
17359 2013-09-02 Richard Biener <rguenther@suse.de>
17361 PR middle-end/57511
17362 * tree-scalar-evolution.c (instantiate_scev_name): Allow
17365 2013-09-02 Richard Biener <rguenther@suse.de>
17367 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17368 arithmetic to sizetype.
17370 2013-09-02 Bin Cheng <bin.cheng@arm.com>
17372 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17373 Find auto-increment use both before and after candidate.
17375 2013-09-02 Marek Polacek <polacek@redhat.com>
17377 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17379 2013-09-01 Jan Hubicka <jh@suse.cz>
17381 * Makefile.in: Add ipa-profile.o
17382 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17383 * cgraph.c (struct cgraph_propagate_frequency_data,
17384 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17385 ipa-profile.c; replace cgraph_ by ipa_ prefix.
17386 * cgraph.h (cgraph_propagate_frequency): Remove.
17387 * ipa-inline-analysis.c: Include ipa-utils.h;
17388 drop duplicated cfgloop.h.
17389 (inline_update_callee_summaries): Update.
17390 * ipa-profile.c: New file.
17391 * ipa-utils.h (ipa_propagate_frequency): Declare.
17392 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17393 data-streamer.h, value-prof.h.
17394 (symtab_remove_unreachable_nodes): Update profile.
17395 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17396 account_time_size, cmp_counts, dump_histogram,
17397 ipa_profile_generate_summary, ipa_profile_write_summary,
17398 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17399 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17400 Move to ipa-profile.c.
17402 2013-09-01 John David Anglin <danglin@gcc.gnu.org>
17404 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17406 2013-09-01 Jan Hubicka <jh@suse.cz>
17408 * common.opt (fdevirtualize-speculatively): New function.
17409 * invoke.texi (fdevirtualize-speculatively): Document.
17410 * ipa-devirt.c: Include ipa-inline.h
17411 (likely_target_p): New function.
17412 (ipa_devirt): New function.
17413 (gate_ipa_devirt): New function.
17414 (pass_data_ipa_devirt): New static var.
17415 (pass_ipa_devirt): Likewise.
17416 (make_pass_ipa_devirt): New function.
17417 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17418 (common_handle_option): Disable devirtualization when
17419 value range profiling is available.
17420 * passes.def (pass_ipa_devirt): Add.
17421 * timever.def (TV_IPA_DEVIRT): New timevar.
17422 * tree-pass.h (make_pass_ipa_devirt):
17424 2013-09-01 Iain Sandoe <iain@codesourcery.com>
17426 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17427 include sanitize(undefined).
17429 2013-08-31 Diego Novillo <dnovillo@google.com>
17431 * Makefile.in (TREE_CORE_H): Define.
17433 (GTFILES): Add tree-core.h.
17434 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17436 * tree-core.h: New file.
17437 Move all data structures, enum, typedefs, global
17438 declarations and constants from ...
17439 * tree.h: ... here.
17441 2013-08-31 Jan Hubicka <jh@suse.cz>
17443 * bulitins.c (expand_builtin): Do not early exit for gcov
17444 instrumented functions.
17446 2013-08-31 Marek Polacek <polacek@redhat.com>
17448 * ubsan.c: Include tm_p.h.
17450 2013-08-31 Jan Hubicka <jh@suse.cz>
17452 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17455 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17456 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17457 * tree-cfg.c (verify_gimple_label): ... here.
17458 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17459 (ipa_merge_profiles): New function.
17460 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17461 (lto_input_function_body): Likewise.
17462 * ipa-utils.h (ipa_merge_profiles): Declare.
17463 * lto-streamer.h (lto_input_function_body): Update prototype.
17464 (emit_label_in_global_context_p): Remove.
17465 * lto-symtab.c: Include ipa-utils.h
17466 (lto_cgraph_replace_node): Use ipa_merge_profiles.
17468 2013-08-31 Jan Hubicka <jh@suse.cz>
17470 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17472 2013-08-31 Jan Hubicka <jh@suse.cz>
17474 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17476 2013-08-31 Uros Bizjak <ubizjak@gmail.com>
17478 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17479 "cmp" RTX before signed_comparison_operator check to account
17480 for "code" changes.
17482 2013-08-30 Jan Hubicka <jh@suse.cz>
17484 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17485 (detect_type_change_1): Rename to ...
17486 (detect_type_change): ... this one; early return on non-polymorphic
17488 (detect_type_change_ssa): Add comp_type parameter; update
17489 use of detect_type_change.
17490 (compute_complex_assign_jump_func): Add param_type parameter;
17491 update use of detect_type_change_ssa.
17492 (compute_complex_ancestor_jump_func): Likewise.
17493 (ipa_get_callee_param_type): New function.
17494 (ipa_compute_jump_functions_for_edge): Compute parameter type;
17495 update calls to the jump function computation functions.
17497 2013-08-30 Teresa Johnson <tejohnson@google.com>
17498 Steven Bosscher <steven@gcc.gnu.org>
17500 * cfgrtl.c (fixup_new_cold_bb): New routine.
17501 (commit_edge_insertions): Invoke fixup_partitions.
17502 (find_partition_fixes): New routine.
17503 (fixup_partitions): Ditto.
17504 (verify_hot_cold_block_grouping): Update comments.
17505 (rtl_verify_edges): Invoke find_partition_fixes.
17506 (rtl_verify_bb_pointers): Update comments.
17507 (rtl_verify_bb_layout): Ditto.
17508 * basic-block.h (probably_never_executed_edge_p): Declare.
17509 (fixup_partitions): Ditto.
17510 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17511 * bb-reorder.c (sanitize_hot_paths): New function.
17512 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17513 sanitize_hot_paths.
17514 * predict.c (probably_never_executed_edge_p): New routine.
17515 * cfg.c (check_bb_profile): Add partition insanity warnings.
17517 2013-08-30 Meador Inge <meadori@codesourcery.com>
17519 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17521 2013-08-30 Marek Polacek <polacek@redhat.com>
17523 * Makefile.in (ubsan.o): Add.
17524 (c-family/c-ubsan.o): Add.
17525 (builtins.o): Add ubsan.h dependency.
17526 * ubsan.h: New file.
17527 * ubsan.c: New file.
17528 * common.opt: Add -fsanitize=undefined option.
17529 (flag_sanitize): Add variable.
17530 (fsanitize=): Add option. Add Driver.
17531 (fsanitize=thread): Remove option.
17532 (fsanitize=address): Likewise.
17533 (static-libubsan): New option.
17534 * doc/invoke.texi: Document the new flag and -static-libubsan.
17535 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17536 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17537 * builtin-attrs.def (ATTR_COLD): Define.
17538 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17539 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17540 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17541 * flag-types.h (sanitize_code): New enum.
17542 * opts.c (common_handle_option): Parse command line arguments
17543 of -fsanitize=. Add -fsanitize=unreachable option.
17544 * varasm.c (get_variable_section): Adjust.
17545 (assemble_noswitch_variable): Likewise.
17546 (assemble_variable): Likewise.
17547 (output_constant_def_contents): Likewise.
17548 (categorize_decl_for_section): Likewise.
17549 (place_block_symbol): Likewise.
17550 (output_object_block): Likewise.
17551 * builtins.def: Likewise.
17552 * toplev.c (compile_file): Likewise.
17553 (process_options): Likewise.
17554 * cppbuiltin.c: Likewise.
17555 * tsan.c (tsan_pass): Likewise.
17556 (tsan_gate): Likewise.
17557 (tsan_gate_O0): Likewise.
17558 * cfgexpand.c (partition_stack_vars): Likewise.
17559 (expand_stack_vars): Likewise.
17560 (defer_stack_allocation): Likewise.
17561 (expand_used_vars): Likewise.
17562 * cfgcleanup.c (old_insns_match_p): Likewise.
17563 * asan.c (asan_finish_file): Likewise.
17564 (asan_instrument): Likewise.
17565 (gate_asan): Likewise.
17566 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17567 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17568 (asan_global_struct): Use pointer_sized_int_node instead
17569 calling build_nonstandard_integer_type.
17570 (initialize_sanitizer_builtins): Likewise.
17571 (asan_finish_file): Likewise.
17572 * gcc.c: Document %{%:function(args):X}.
17573 (static_spec_functions): Add sanitize.
17574 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17575 store funcval != NULL there.
17576 (do_spec_1): Adjust handle_spec_function caller.
17577 (handle_braces): Allow %:function(args) as condition.
17578 (sanitize_spec_function): New function.
17579 (ADD_STATIC_LIBUBSAN_LIBS): Define.
17580 (LIBUBSAN_SPEC): Likewise.
17581 (LIBUBSAN_EARLY_SPEC): Likewise.
17582 (SANITIZER_SPEC): Handle libubsan.
17583 (SANITIZER_EARLY_SPEC): Likewise.
17584 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17585 instead of fsanitize=address.
17586 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17587 instead of fsanitize=address*.
17588 * builtins.c: Include ubsan.h.
17589 (fold_builtin_0): Instrument __builtin_unreachable.
17590 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17591 instead of flag_asan.
17592 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17593 (pointer_sized_int_node): Define.
17594 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17596 2013-08-30 Mike Stump <mikestump@comcast.net>
17598 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17601 2013-08-29 Jan Hubicka <jh@suse.cz>
17603 * cgraph.c (cgraph_function_body_availability): Handle weakref
17605 * passes.def: Remove pass_fixup_cfg.
17606 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17607 track when we need to remove functions.
17608 (gate_ipa_inline): Execute inlining always; add comment why.
17609 (pass_data_ipa_inline): Remove TODO_remove_functions.
17610 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17611 do not produce summaries.
17612 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17613 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17614 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17615 constant pool and vtable.
17617 2013-08-30 Tejas Belagod <tejas.belagod@arm.com>
17619 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17620 New arm_neon.h's internal macros to specify 64-bit constants.
17621 Avoid using stdint.h's macros.
17623 2013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
17625 * recog.c (verify_changes): Verify that changes[i].old is non-zero
17626 before applying REG_P.
17628 2013-08-30 Jakub Jelinek <jakub@redhat.com>
17630 PR tree-optimization/58277
17631 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17632 after seeing too many stmts with vdef in between dombb and current
17633 bb, invalidate everything.
17635 2013-08-30 Richard Biener <rguenther@suse.de>
17637 * fold-const.c (fold_single_bit_test): Fix overflow test.
17639 2013-08-30 Eric Botcazou <ebotcazou@adacore.com>
17641 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17642 and which can live in a register, always retrieve the value on entry.
17643 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17644 passed by invisible reference specially.
17645 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17646 (vt_add_function_parameter): Correctly deal with a parameter passed by
17647 invisible reference.
17649 2013-08-30 Jan Hubicka <jh@suse.cz>
17651 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17653 2013-08-30 Richard Biener <rguenther@suse.de>
17655 PR tree-optimization/58228
17656 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17657 allow invariant loads in nested loop vectorization.
17659 2013-08-30 Richard Biener <rguenther@suse.de>
17661 PR tree-optimization/58223
17662 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17663 (has_anti_or_output_dependence): ... this and adjust to also
17664 look for output dependences.
17665 (mark_nodes_having_upstream_mem_writes): Adjust.
17666 (rdg_flag_uses): Likewise.
17668 2013-08-30 Richard Biener <rguenther@suse.de>
17670 PR tree-optimization/58010
17671 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17672 assert that we have a loop-closed PHI.
17674 2013-08-29 Jan Hubicka <jh@suse.cz>
17676 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17677 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17678 * lto-section-in.c (lto_free_function_in_decl_state): New function.
17679 (lto_free_function_in_decl_state_for_node): New function.
17681 2013-08-29 Xinliang David Li <davidxl@google.com>
17683 * loop-unroll.c (report_unroll_peel): Minor message change.
17684 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17685 Emit alignment peeling message with default -fopt-info.
17686 (vect_loop_versioning): Emit loop version info message.
17687 * tree-vectorizer.c (vectorize_loops): Minor message change.
17688 (execute_vect_slp): Ditto.
17690 2013-08-29 Eric Botcazou <ebotcazou@adacore.com>
17692 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17693 of the clone from the DECL_NAME of the original function.
17695 2013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
17697 * passes.c (register_pass): Add overload.
17698 * tree-pass.h (register_pass): Forward declare it. Add comment.
17700 2013-08-29 Jan Hubicka <jh@suse.cz>
17702 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17703 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17704 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17705 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17706 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17707 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17708 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17709 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17711 2013-08-29 Teresa Johnson <tejohnson@google.com>
17713 * dumpfile.c (dump_loc): Output column number.
17714 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17715 * doc/invoke.texi: Document optall -fopt-info flag.
17716 * profile.c (read_profile_edge_counts): Use new dump framework.
17717 (compute_branch_probabilities): Ditto.
17718 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17719 when pass not in any opt group.
17720 * pass_manager.h (pass_manager::get_pass_profile): New method.
17721 * value-prof.c (check_counter): Use new dump framework.
17722 (check_ic_target): Ditto.
17723 * coverage.c (get_coverage_counts): Ditto.
17724 (coverage_init): Setup new dump framework.
17726 2013-08-29 Richard Biener <rguenther@suse.de>
17728 PR tree-optimization/58246
17729 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17730 handle the dominance check inside a basic-block.
17732 2013-08-29 Richard Biener <rguenther@suse.de>
17734 PR middle-end/57287
17735 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17736 of default defs that appear in abnormal PHI nodes.
17738 2013-08-29 Richard Biener <rguenther@suse.de>
17740 PR tree-optimization/57685
17741 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17742 single-use operands to avoid exponential complexity.
17744 2013-08-28 Dehao Chen <dehao@google.com>
17746 * ipa-inline.c (edge_badness): Fix integer underflow.
17748 2013-08-28 Uros Bizjak <ubizjak@gmail.com>
17750 * gtm-builtins.def (_ITM_free): Declare leaf.
17752 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17755 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17756 (*tls_local_dynamic_base_64_largepic): Likewise.
17757 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17758 Remove predicate from call operand.
17759 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17760 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17762 2013-08-28 Jeff Law <law@redhat.com>
17764 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17765 checks for the number of predecessors and successors allowed.
17766 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17767 which require copying a joiner block if there is a request which
17768 is a subpath that requires no joiner block copying.
17770 2013-08-28 Jan Hubicka <jh@suse.cz>
17772 * lto-streamer-out.c (DFS_write_tree_body): Drop
17773 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17774 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17775 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17776 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17777 Do not read DECL_ERROR_ISSUED.
17778 (unpack_ts_decl_with_vis_value_fields): Do not read
17780 (lto_input_ts_binfo_tree_pointers): Do not read
17781 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17782 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17783 write DECL_ERROR_ISSUED..
17784 (pack_ts_decl_with_vis_value_fields): Do not write
17786 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17787 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17788 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17789 * tree.h (tree_decl_common): Update comment.
17790 (DECL_ERROR_ISSUED): Remove.
17792 2013-08-28 Jakub Jelinek <jakub@redhat.com>
17794 PR middle-end/58257
17795 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17797 2013-08-28 Jan Hubicka <jh@suse.cz>
17799 * builtins.def (free): Declare leaf.
17801 2013-08-27 David Malcolm <dmalcolm@redhat.com>
17803 * gdbhooks.py: New.
17804 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17805 * configure: Regenerate.
17807 2013-08-27 Martin Jambor <mjambor@suse.cz>
17809 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17810 (ipa_ancestor_jf_data): Likewise.
17811 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17812 (ipa_get_jf_pass_through_type_preserved): New function.
17813 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17814 (ipa_get_jf_ancestor_type_preserved): New function.
17815 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17816 (ipa_get_jf_ancestor_result): Likewise.
17817 (propagate_vals_accross_pass_through): Use
17818 ipa_get_jf_pass_through_result to do all the value mappings.
17819 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17820 type_preserved flag.
17821 (ipa_set_jf_cst_copy): New function.
17822 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17823 (ipa_set_jf_arith_pass_through): Likewise.
17824 (ipa_set_ancestor_jf): Likewise.
17825 (compute_complex_assign_jump_func): Set type_preserved instead of
17827 (ipa_compute_jump_functions_for_edge): Likewise.
17828 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17829 (update_jump_functions_after_inlining): Update type_preserved.
17830 Explicitely create jump functions when combining one with pass_through.
17831 (ipa_write_jump_function): Stream the type_preserved flags.
17832 (ipa_read_jump_function): Likewise.
17834 2013-08-27 Jakub Jelinek <jakub@redhat.com>
17835 Aldy Hernandez <aldyh@redhat.com>
17837 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17838 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17839 * function.h (struct function): Add has_force_vect_loops and
17841 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17842 * gimple.c (gimple_build_omp_critical): Add KIND argument and
17844 * gimple.def: Update CLAUSES comments.
17845 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17846 (gimple_build_omp_for): Add argument to prototype.
17847 (gimple_omp_for_kind): New.
17848 (gimple_omp_for_set_kind): New.
17849 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17850 GOVD_DATA_SHARE_CLASS.
17851 (enum omp_region_type): Add ORT_SIMD.
17852 (gimple_add_tmp_var): Handle ORT_SIMD.
17853 (gimplify_var_or_parm_decl): Same.
17854 (is_gimple_stmt): Same.
17855 (omp_firstprivatize_variable): Same.
17856 (omp_add_variable): Only use splay_tree_insert if lookup failed.
17857 (omp_notice_variable): Handle ORT_SIMD.
17858 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17859 (omp_check_private): Handle ORT_SIMD.
17860 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17861 OMP_CLAUSE_SAFELEN.
17862 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17863 Handle OMP_CLAUSE_LASTPRIVATE.
17864 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17865 OMP_CLAUSE_SAFELEN.
17866 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17867 (gimplify_expr): Handle OMP_SIMD.
17868 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17869 (expand_GOMP_SIMD_VF): New.
17870 (expand_GOMP_SIMD_LAST_LANE): New.
17871 * internal-fn.def (GOMP_SIMD_LANE): New.
17872 (GOMP_SIMD_VF): New.
17873 (GOMP_SIMD_LAST_LANE): New.
17874 * omp-low.c: Include target.h.
17875 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17876 OMP_CLAUSE_SAFELEN.
17877 (check_omp_nesting_restrictions): Same.
17879 (lower_rec_simd_input_clauses): New.
17880 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17882 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17883 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17884 (expand_omp_build_assign): New.
17885 (expand_omp_for_init_counts): New.
17886 (expand_omp_for_init_vars): New.
17887 (extract_omp_for_update_vars): New.
17888 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17889 and rewrite accordingly.
17890 (expand_omp_simd): New.
17891 (expand_omp_for): Use expand_omp_simd.
17892 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17893 (lower_omp_for): Do not lower the body.
17894 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17895 in their own loops.
17896 * tree-flow.h (find_omp_clause): Remove prototype.
17897 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17898 forcing vectorization of the loop, or if flag_tree_vectorize.
17899 (gate_tree_if_conversion): Similarly.
17900 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17901 gimple_build_omp_for.
17902 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17903 * tree-parloops (create_parallel_loop): Pass kind argument to
17904 gimple_build_omp_for.
17905 * tree-pretty-print.c (dump_omp_clause): Add cases for
17906 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17907 OMP_CLAUSE__SIMDUID_.
17908 (dump_generic_node): Handle OMP_SIMD.
17909 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17910 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17911 unroll OMP_SIMD loops here.
17912 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17913 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17915 (vect_analyze_data_refs): Handle simd loops.
17916 * tree-vect-loop.c (vectorizable_live_operation): Handle
17918 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17919 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17920 (vectorizable_load): Same.
17921 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17922 (struct simduid_to_vf): New.
17923 (simduid_to_vf::hash): New.
17924 (simduid_to-vf::equal): New.
17925 (struct simd_array_to_simduid): New.
17926 (simd_array_to_simduid::hash): New.
17927 (simd_array_to_simduid::equal): New.
17928 (adjust_simduid_builtins): New.
17929 (struct note_simd_array_uses_struct): New.
17930 (note_simd_array_uses_cb): New.
17931 (note_simd_array_uses): New.
17932 (vectorize_loops): Handle simd hints and adjust simd builtins
17934 * tree-vectorizer.h (struct _stmt_vec_info): Add
17935 simd_lane_access_p field.
17936 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17937 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17938 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17939 (omp_clause_code_name): Same.
17940 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17941 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17942 * tree.def (OMP_SIMD): New entry.
17943 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17944 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17945 (OMP_CLAUSE_DECL): Adjust range for new clauses.
17946 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17947 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17948 (OMP_CLAUSE_LINEAR_STEP): New.
17949 (OMP_CLAUSE_SAFELEN_EXPR): New.
17950 (OMP_CLAUSE__SIMDUID__DECL): New.
17951 (find_omp_clause): New prototype.
17953 2013-08-27 H.J. Lu <hongjiu.lu@intel.com>
17955 * config/i386/driver-i386.c (host_detect_local_cpu): Update
17956 Haswell processor detection.
17958 2013-08-27 Christian Widmer <shadow@umbrox.de>
17961 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17962 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
17963 AVX2 capable processors.
17965 2013-08-27 Tejas Belagod <tejas.belagod@arm.com>
17967 * config/aarch64/arm_neon.h: Replace all inline asm implementations
17968 of vget_low_* with implementations in terms of other intrinsics.
17970 2013-08-27 Marc Glisse <marc.glisse@inria.fr>
17972 PR middle-end/57219
17973 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17974 values to -1, 0 and 1.
17976 2013-08-27 Vidya Praveen <vidyapraveen@arm.com>
17978 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17979 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17980 (<optab><mode>3_insn): Remove.
17981 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17982 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17983 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17984 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17985 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17986 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17987 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17988 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17989 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17990 (ror<mode>3_insn): Likewise.
17991 * config/aarch64/predicates.md (aarch64_simd_register): New.
17993 2013-08-27 Richard Biener <rguenther@suse.de>
17995 PR tree-optimization/57521
17996 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17997 one edge is non-critical.
17998 (find_phi_replacement_condition): Make sure to use a non-critical
17999 edge. Cleanup and remove old bug workarounds.
18000 (bb_postdominates_preds): Remove.
18001 (if_convertible_loop_p_1): Do not compute post-dominators.
18002 (combine_blocks): Do not free post-dominators.
18003 (main_tree_if_conversion): Likewise.
18004 (pass_data_if_conversion): Add TODO_verify_ssa.
18006 2013-08-27 DJ Delorie <dj@redhat.com>
18008 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
18010 2013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
18012 * function.c (assign_parm_find_data_types): Set passed_mode and
18013 nominal_mode to the TYPE_MODE of nominal_type for the built
18014 pointer type in case of the struct-pass-by-reference.
18016 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18018 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
18019 (UINT16_TYPE): Change default to "unsigned int".
18021 * config/avr/avr.opt (mfract-convert-truncate): New option.
18022 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
18023 is set, round negative fractional integers according to n1169
18024 when converting to integer types.
18026 2013-08-26 Jan Hubicka <jh@suse.cz>
18028 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
18029 methods can not be called indirectly when their address is not taken.
18031 2013-08-26 Jan Hubicka <jh@suse.cz>
18033 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
18036 2013-08-26 Jan Hubicka <jh@suse.cz>
18038 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
18041 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18043 * reload.c (find_valid_class): Allow classes that do not include
18044 FIRST_PSEUDO_REGISTER - 1.
18046 2013-08-26 Jan Hubicka <jh@suse.cz>
18048 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
18049 fix edge count/frequency when speculation failed; fix type check
18050 for the direct call.
18052 2013-08-26 Jan Hubicka <jh@suse.cz>
18054 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
18056 2013-08-26 Jan Hubicka <jh@suse.cz>
18058 * ipa-inline-transform.c (inline_transform): Be ready for basic block
18059 to be changed by edge redirection.
18061 2013-08-26 Jan Hubicka <jh@suse.cz>
18063 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
18064 formating; add sanity check.
18065 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
18066 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
18067 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
18068 (resolve_noninline_speculation): Update callee keys, too.
18070 2013-08-26 Jan Hubicka <jh@suse.cz>
18072 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
18073 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
18075 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
18077 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
18080 2013-08-26 Uros Bizjak <ubizjak@gmail.com>
18082 * config/i386/i386.c (ix86_debug_options): Remove prototype.
18083 (x86_64_elf_select_section): Ditto.
18084 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
18086 (ix86_pass_by_reference): Ditto.
18087 (output_set_got): Ditto.
18088 (ix86_unary_operator_ok): Ditto.
18089 (ix86_expand_builtin): Ditto.
18091 2013-08-23 Jan Hubicka <jh@suse.cz>
18093 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
18095 2013-08-23 Jan Hubicka <jh@suse.cz>
18097 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
18098 (tree_decl_with_vis): Add FINAL field.
18100 2013-08-23 Jeff Law <law@redhat.com>
18102 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
18103 the debugging dump when the expression is fully redundant.
18105 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18107 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
18108 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
18109 * pretty-print.c (pp_formatted_text_data): Likewise.
18110 (pp_write_text_to_stream): Likewise.
18111 (pp_write_text_as_dot_label_to_stream): Likewise.
18112 (pp_append_r): Likewise.
18113 (pp_format): Likewise.
18114 (pp_flush): Likewise.
18115 (pp_clear_output_area): Likewise.
18116 (pp_append_text): Likewise.
18117 (pp_formatted_text): Likewise.
18118 (pp_remaining_character_count_for_line): Likewise.
18119 (pp_newline): Likewise.
18120 (pp_character): Likewise.
18121 (output_buffer::~output_buffer): Define.
18122 (pretty_printer::~pretty_printer): Destruct output buffer.
18123 * pretty-print.h (output_buffer::~output_buffer): Declare.
18124 (pretty_printer::~pretty_printer): Declare virtual.
18126 2013-08-24 Marc Glisse <marc.glisse@inria.fr>
18129 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
18130 HOST_WIDE_INT_M1U): New macros.
18131 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
18132 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
18133 unsigned -1 for lshift.
18134 * cse.c (cse_insn): Likewise.
18135 * double-int.c (rshift_double, lshift_double): Likewise.
18136 * builtins.c (fold_builtin_bitop): Likewise.
18137 * combine.c (force_to_mode): Likewise.
18138 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
18139 * simplify-rtx.c (simplify_const_unary_operation,
18140 simplify_const_binary_operation): Likewise.
18141 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
18142 check_va_list_escapes): Likewise.
18143 * rtlanal.c (nonzero_bits1): Likewise.
18144 * expmed.c (expand_smod_pow2): Likewise.
18145 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
18147 2013-08-23 Jan Hubicka <jh@suse.cz>
18149 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
18150 as having address taken.
18152 2013-08-23 Jan Hubicka <jh@suse.cz>
18154 * ipa-utils.h (method_class_type): Declare.
18155 * ipa-devirt.c (method_class_type): Export.
18157 * cgraphunit.c (analyze_functions): Do basic devirtualization;
18158 do not walk base classes of anonymous types.
18160 2013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
18162 PR rtl-optimization/58220
18163 PR regression/58221
18164 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
18165 handle SEQUENCE insns properly.
18167 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
18169 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
18171 (pp_newline_and_indent): Likewise.
18172 (pp_separate_with): Likewise.
18173 * pretty-print.c (pp_newline_and_flush): Define.
18174 (pp_newline_and_indent): Likewise.
18175 (pp_separate_with): Likewise.
18177 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18180 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
18181 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
18183 2013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
18185 * config/i386/predicates.md (ext_sse_reg_operand): New.
18186 * config/i386/i386.md (*movti_internal): Use
18187 predicate to determine if EVEX is needed.
18188 (*movsi_internal): Ditto.
18189 (*movdf_internal): Ditto.
18190 (*movsf_internal): Ditto.
18191 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
18193 2013-08-23 Jakub Jelinek <jakub@redhat.com>
18195 PR tree-optimization/58209
18196 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
18197 (find_tail_calls): Give up for pointer result types if m is non-NULL.
18198 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
18199 emit POINTER_PLUS_EXPR.
18200 (create_tailcall_accumulator): For pointer result type accumulate in
18203 2013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
18205 * configure.ac: Add backslashes missing from the last change.
18206 * configure: Regenerate.
18208 2013-08-22 Jan Hubicka <jh@susue.cz>
18210 * ipa.c (function_and_variable_visibility): First remember function
18211 was global and then make it local.
18213 2013-08-22 Julian Brown <julian@codesourcery.com>
18215 * configure.ac: Add aarch64 to list of arches which use "nop" in
18217 * configure: Regenerate.
18219 2013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18221 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
18222 gnu_libc_has_function.
18223 * config/s390/tpf.h: Likewise.
18225 2013-08-22 Jan Hubicka <jh@susue.cz>
18227 * timevar.c (validate_phases): Add cast.
18229 2013-08-22 Jan Hubicka <jh@susue.cz>
18231 * timevar.c (validate_phases): Use size_t for memory.
18232 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
18234 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
18236 * pretty-print.h (output_buffer::output_buffer): Declare.
18237 (pretty_printer::pretty_printer): Likewise.
18238 (pp_construct): Remove.
18239 * pretty-print.c (output_buffer::output_buffer): Define.
18240 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
18241 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
18242 (print_gimple_expr): Likewise.
18243 (print_gimple_seq): Likewise.
18244 (gimple_dump_bb): Likewise.
18245 * sched-vis.c (dump_value_slim): Likewise.
18246 (dump_insn_slim): Likewise.
18247 (dump_rtl_slim): Likewise.
18248 (str_pattern_slim): Likewise.
18249 * tree-mudflap.c (mf_varname_tree): Likewise.
18250 * graph.c (print_graph_cfg): Likewise.
18251 (start_graph_dump): Likewise.
18252 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
18254 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
18255 pretty printer initialization.
18256 * coretypes.h (diagnostic_context): Remove superflous type alias
18258 (pretty_printer): Likewise. Declare directly as a class.
18259 (pretty_print_info): Remove declaration as class.
18260 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
18261 and pp_clear_output_area.
18262 (asan_add_global): Likewise.
18264 2013-08-22 Jan Hubicka <jh@suse.cz>
18266 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
18267 * ipa-utils.h (update_type_inheritance_graph): Declare.
18268 (possible_polymorphic_call_target_p): Declare.
18269 (possible_polymorphic_call_target_p): New.
18270 * ipa-devirt.c: Update toplevel comments.
18271 (cached_polymorphic_call_targets): Move up.
18272 (odr_type_d): Move ID down.
18273 (polymorphic_type_binfo_p): Update comment.
18274 (odr_hasher::remove): Likewise;
18275 (get_odr_type): Set anonymous_namespace.
18276 (dump_odr_type): Dump it.
18277 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
18278 (maybe_record_node): Record node in cached_polymorphic_call_targets.
18279 (record_binfo): Add comment.
18280 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
18282 (devirt_node_removal_hook): Do not iCE when cache is freed.
18283 (possible_polymorphic_call_target_p): New predicate.
18284 (update_type_inheritance_graph): New function.
18286 2013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18288 Sergey Lega <sergey.s.lega@intel.com>
18289 Anna Tikhonova <anna.tikhonova@intel.com>
18290 Ilya Tocar <ilya.tocar@intel.com>
18291 Andrey Turetskiy <andrey.turetskiy@intel.com>
18292 Ilya Verbin <ilya.verbin@intel.com>
18293 Kirill Yukhin <kirill.yukhin@intel.com>
18294 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18296 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
18297 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
18298 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
18299 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
18300 (OPTION_MASK_ISA_AVX2_UNSET): Update.
18301 (OPTION_MASK_ISA_AVX512F_UNSET): New.
18302 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
18303 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
18304 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
18305 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
18306 OPT_mavx512pf, OPT_mavx512er cases.
18307 * config/i386/constraints.md (v): New constraint.
18308 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
18309 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
18310 (bit_AVX512CD): New.
18311 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18312 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
18313 * config/i386/i386-c.c (ix86_target_macros_internal):
18314 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
18316 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
18317 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
18318 * config/i386/i386.c (regclass_map, dbx_register_map)
18319 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
18320 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
18321 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
18322 -mavx512pf options.
18323 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
18324 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
18325 -mavx512pf options. Fix formatting.
18326 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
18327 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
18328 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
18329 -mavx512cd, -mavx512pf options.
18330 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
18331 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
18332 (ix86_preferred_output_reload_class): Replace SSE_REGS with
18334 (ix86_hard_regno_mode_ok): Support 512-bit registers.
18335 (ix86_set_reg_reg_cost): Ditto.
18336 (x86_order_regs_for_local_alloc): Ditto.
18337 (MAX_VECT_LEN): Extend to 64-byte.
18338 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
18339 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
18340 (TARGET_AVX512ER, TARGET_AVX512CD): New.
18341 (BIGGEST_ALIGNMENT): Extend to 512-bits.
18342 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
18343 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
18344 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
18345 (SSE_REG_MODE_P): Support new modes.
18346 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
18347 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
18348 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
18349 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
18350 (REG_CLASS_CONTENTS): Add new registers.
18351 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
18352 (EXT_REX_SSE_REGNO_P): New.
18353 (HI_REGISTER_NAMES): Add new registers.
18354 * config/i386/i386.md: Define constants for new registers.
18355 (mode): Add new 512-bit modes.
18356 (prefix): Support evex prefix.
18357 (isa): Support avx512f, noavx512f, fma_avx512f.
18358 (ssemodesuffix): Add new 512-bit modes.
18360 (*movxi_internal_avx512f): Ditto.
18361 (*movdi_internal): Replace constraint "x" with the new constraint "v".
18363 (*movsi_internal): Likewise.
18364 (*movdf_internal): Likewise.
18365 (*movsf_internal): Likewise.
18366 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18367 (<code><mode>3): Likewise.
18368 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18370 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18371 with the new constraint "v".
18372 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18374 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18375 with the new constraint "v".
18376 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18377 (<sse2>_storedqu<avxsizesuffix>): Likewise.
18378 (*<plusminus_insn><mode>3): Likewise.
18379 (<sse>_vm<plusminus_insn><mode>3): Likewise.
18380 (*mul<mode>3): Likewise.
18381 (<sse>_vmmul<mode>3): Likewise.
18382 (<sse>_div<mode>3): Likewise.
18383 (<sse>_vmdiv<mode>3): Likewise.
18384 (<sse>_sqrt<mode>2): Likewise.
18385 (<sse>_vmsqrt<mode>2): Likewise.
18386 (*<code><mode>3_finite): Likewise.
18387 (*<code><mode>3) <smaxmin>: Likewise.
18388 (<sse>_vm<code><mode>3): Likewise.
18389 (*<code><mode>3) <any_logic>: Likewise.
18390 (*fma_fmadd_<mode>): Likewise.
18391 (*fma_fmsub_<mode>): Likewise.
18392 (*fma_fnmadd_<mode>): Likewise.
18393 (*fma_fnmsub_<mode>): Likewise.
18394 (*fma_fmaddsub_<mode>): Likewise.
18395 (*fma_fmsubadd_<mode>): Likewise.
18396 (*fmai_fmadd_<mode>): Likewise.
18397 (*fmai_fmsub_<mode>): Likewise.
18398 (*fmai_fnmadd_<mode>): Likewise.
18399 (*fmai_fnmsub_<mode>): Likewise.
18400 (sse_cvtsi2ss): Likewise.
18401 (sse_cvtsi2ssq): Likewise.
18402 (sse_cvtss2si): Likewise.
18403 (sse_cvtss2si_2): Likewise.
18404 (sse_cvtss2siq): Likewise.
18405 (sse_cvtss2siq_2): Likewise.
18406 (sse_cvttss2si): Likewise.
18407 (sse_cvtss2siq_2): Likewise.
18408 (float<sseintvecmodelower><mode>2): Likewise.
18409 (sse2_cvtsd2si_2): Likewise.
18410 (sse2_cvtsd2siq_2): Likewise.
18411 (*<plusminus_insn><mode>3): Likewise.
18412 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18413 (*<sse4_1_avx2>_mul<mode>3): Likewise.
18414 (ashr<mode>3): Likewise.
18415 (<shift_insn><mode>3): Likewise.
18416 (avx2_<code><mode>3): Likewise.
18417 (*avx2_<code><mode>3): Likewise.
18418 (*andnot<mode>3): Likewise.
18419 (*<code><mode>3) <any_logic>: Likewise.
18420 (abs<mode>2): Likewise.
18421 (avx2_permvar<mode>): Likewise.
18422 (avx2_perm<mode>_1): Likewise.
18423 (*avx_vpermilp<mode>): Likewise.
18424 (avx_vpermilvar<mode>3): Likewise.
18425 (avx2_ashrv<mode>): Likewise.
18426 (avx2_<shift_insn>v<mode>): Likewise.
18427 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18429 * doc/rtl.texi: Document XImode.
18431 2013-08-21 Jeff Law <law@redhat.com>
18433 * tree-flow.h (register_jump_thread): Pass vector of edges
18434 instead of each important edge.
18435 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18436 thread path into a vector and pass that to register_jump_thread.
18437 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18438 passed in edge vector to the current 3-edge form.
18441 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18443 * dce.c (fini_dce): Call df_analyze again just in case
18444 delete_unmarked_insns removed anything.
18446 2013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
18448 * reload.h (struct reg_equivs): Rename to ..
18449 (struct reg_equivs_s): .. this.
18451 2013-08-20 Martin Liska <marxin.liska@gmail.com>
18453 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18455 2013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18457 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18459 2013-08-21 Jeff Law <law@redhat.com>
18461 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18462 simplify assignments too. If the RHS collapses to a singleton
18463 range, then return the value for the range.
18465 2013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
18467 * config/i386/sse.md (V16): Rename to...
18469 (mov<mode>): Update iterator name.
18470 (*mov<mode>_internal): Ditto.
18471 (push<mode>1): Ditto.
18472 (movmisalign<mode>): Ditto.
18474 2013-08-20 Jan Hubicka <jh@suse.cz>
18477 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18478 entry for direct edges.
18479 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18481 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18483 Revert my last two changes, r201865 and r201864:
18486 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18488 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18489 instances can own GC refs.
18491 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18492 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18493 (gcc::context::gt_pch_nx): Likewise.
18494 (gcc::context::gt_pch_nx): Likewise.
18495 * ggc.h (gt_ggc_mx <T>): New.
18496 (gt_pch_nx_with_op <T>): New.
18497 (gt_pch_nx <T>): New.
18498 * passes.c (opt_pass::gt_ggc_mx): New.
18499 (opt_pass::gt_pch_nx): New.
18500 (opt_pass::gt_pch_nx_with_op): New.
18501 (pass_manager::gt_ggc_mx): New.
18502 (pass_manager::gt_pch_nx): New.
18503 (pass_manager::gt_pch_nx_with_op): New.
18504 (pass_manager::operator new): Use
18505 ggc_internal_cleared_alloc_stat rather than xcalloc.
18506 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18507 (pass_manager::gt_ggc_mx): New.
18508 (pass_manager::gt_pch_nx): New.
18509 (pass_manager::gt_pch_nx_with_op): New.
18510 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18511 (opt_pass::operator new): New.
18512 (opt_pass::gt_ggc_mx): New.
18513 (opt_pass::gt_pch_nx): New.
18514 (opt_pass::gt_pch_nx_with_op): New.
18517 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18519 * Makefile.in (GTFILES): Add context.h.
18520 * context.c (gcc::context::operator new): New.
18521 (gcc::context::gt_ggc_mx): New.
18522 (gcc::context::gt_pch_nx): New.
18523 (gcc::context::gt_pch_nx): New.
18524 * context.h (gcc::context): Add GTY((user)) marking.
18525 (gcc::context::operator new): New.
18526 (gcc::context::gt_ggc_mx): New.
18527 (gcc::context::gt_pch_nx): New.
18528 (gcc::context::gt_pch_nx): New.
18529 (g): Add GTY marking.
18530 (gt_ggc_mx (gcc::context *)): New.
18531 (gt_pch_nx (gcc::context *)): New.
18532 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18533 void *cookie)): New.
18534 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18536 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
18538 * dce.c (fini_dce): Call df_analyze again just in case
18539 delete_unmarked_insns removed anything.
18541 2013-08-20 Teresa Johnson <tejohnson@google.com>
18543 PR rtl-optimizations/57451
18544 * final.c (reemit_insn_block_notes): Prevent lexical blocks
18545 from crossing split section boundaries.
18547 2013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
18549 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18550 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18551 with MULTLIB_DEFAULTS.
18553 2013-08-20 Nick Clifton <nickc@redhat.com>
18555 * target.def (narrow_volatile_bitfield): Note that the default
18556 value is false, not !TARGET_STRICT_ALIGN.
18557 * doc/tm.texi: Regenerate.
18559 2013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
18561 Fix LIB_SPEC for systems without libpthread.
18563 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18564 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18566 * config/i386/linux-common.h: Likewise.
18567 * config/mips/linux-common.h: Likewise.
18569 2013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18571 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18574 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18576 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18577 instances can own GC refs.
18579 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18580 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18581 (gcc::context::gt_pch_nx): Likewise.
18582 (gcc::context::gt_pch_nx): Likewise.
18583 * ggc.h (gt_ggc_mx <T>): New.
18584 (gt_pch_nx_with_op <T>): New.
18585 (gt_pch_nx <T>): New.
18586 * passes.c (opt_pass::gt_ggc_mx): New.
18587 (opt_pass::gt_pch_nx): New.
18588 (opt_pass::gt_pch_nx_with_op): New.
18589 (pass_manager::gt_ggc_mx): New.
18590 (pass_manager::gt_pch_nx): New.
18591 (pass_manager::gt_pch_nx_with_op): New.
18592 (pass_manager::operator new): Use
18593 ggc_internal_cleared_alloc_stat rather than xcalloc.
18594 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18595 (pass_manager::gt_ggc_mx): New.
18596 (pass_manager::gt_pch_nx): New.
18597 (pass_manager::gt_pch_nx_with_op): New.
18598 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18599 (opt_pass::operator new): New.
18600 (opt_pass::gt_ggc_mx): New.
18601 (opt_pass::gt_pch_nx): New.
18602 (opt_pass::gt_pch_nx_with_op): New.
18604 2013-08-20 David Malcolm <dmalcolm@redhat.com>
18606 * Makefile.in (GTFILES): Add context.h.
18607 * context.c (gcc::context::operator new): New.
18608 (gcc::context::gt_ggc_mx): New.
18609 (gcc::context::gt_pch_nx): New.
18610 (gcc::context::gt_pch_nx): New.
18611 * context.h (gcc::context): Add GTY((user)) marking.
18612 (gcc::context::operator new): New.
18613 (gcc::context::gt_ggc_mx): New.
18614 (gcc::context::gt_pch_nx): New.
18615 (gcc::context::gt_pch_nx): New.
18616 (g): Add GTY marking.
18617 (gt_ggc_mx (gcc::context *)): New.
18618 (gt_pch_nx (gcc::context *)): New.
18619 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18620 void *cookie)): New.
18621 * gengtype.c (open_base_files) <ifiles>: Add context.h.
18623 2013-08-20 Alan Modra <amodra@gmail.com>
18626 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18627 (rs6000_emit_epilogue): Likewise.
18629 2013-08-19 Dehao Chen <dehao@google.com>
18631 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18633 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
18634 Jakub Jelinek <jakub@redhat.com>
18636 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18637 (BUILT_IN_FABSD64): Likewise.
18638 (BUILT_IN_FABSD128): Likewise.
18639 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18640 (fold_builtin_1): Likewise.
18641 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18642 destination and source operands.
18643 (*abstd2_fpr): Likewise.
18644 (*nabstd2_fpr): Likewise.
18646 2013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
18648 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18651 2013-08-19 Aldy Hernandez <aldyh@redhat.com>
18653 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18656 2013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18658 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18659 * builtins.c (default_libc_has_function): New.
18660 (gnu_libc_has_function): Ditto.
18661 (no_c99_libc_has_function): Ditto.
18662 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18663 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18664 (fold_builtin_sincos): Likewise.
18665 (fold_builtin_cexp): Likewise.
18666 * builtins.def (DEF_C94_BUILTIN): Likewise.
18667 (DEF_C99_BUILTIN): Likewise.
18668 (DEF_C99_C90RES_BUILTIN): Likewise.
18669 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18670 definitions to using this define.
18671 * config/darwin-protos.h (darwin_libc_has_function): New.
18672 * config/darwin.c (darwin_libc_has_function): Ditto.
18673 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18674 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18675 * config/darwin.h: Ditto.
18676 * config/elfos.h: Ditto.
18677 * config/freebsd.h: Ditto.
18678 * config/i386/cygming.h: Ditto.
18679 * config/i386/djgpp.h: Ditto.
18680 * config/i386/i386-interix.h: Ditto.
18681 * config/microblaze/microblaze.h: Ditto.
18682 * config/mmix/mmix.h: Ditto.
18683 * config/gnu-user.h: Ditto.
18684 * config/ia64/hpux.h: Ditto.
18685 * config/pa/pa-hpux.h: Ditto.
18686 * config/pdp11/pdp11.h: Ditto.
18687 * config/picochip/picochip.h: Ditto.
18688 * config/linux.h: Ditto.
18689 * config/netbsd.h: Ditto.
18690 * config/openbsd.h: Ditto.
18691 * config/rs6000/aix43.h: Ditto.
18692 * config/rs6000/aix51.h: Ditto.
18693 * config/rs6000/aix52.h: Ditto.
18694 * config/rs6000/aix53.h: Ditto.
18695 * config/rs6000/aix61.h: Ditto.
18696 * config/rs6000/darwin.h: Ditto.
18697 * config/rs6000/linux.h: Ditto.
18698 * config/rs6000/linux64.h: Ditto.
18699 * config/s390/tpf.h: Ditto.
18700 * config/sol2-10.h: Ditto.
18701 * config/sol2.h: Ditto.
18702 * config/vms/vms.h: Ditto.
18703 * config/vxworks.h: Ditto.
18704 * config/linux-android.c (linux_android_libc_has_function):
18705 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18706 * config/linux-protos.h (linux_android_libc_has_function):
18708 * config/i386/i386.c (ix86_libc_has_function): New.
18709 * config/i386/i386-protos.h
18710 (ix86_libc_has_function): New declaration.
18711 * config/i386/i386.md
18712 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18713 ("isinf<mode>2): Likewise.
18714 * convert.c (convert_to_integer): Using new target hook
18715 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18716 TARGET_C99_FUNCTIONS.
18717 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18718 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18719 * coretypes.h (function_class): New enum for different
18720 classes of functions.
18721 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18722 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18723 (TARGET_HAS_SINCOS): Likewise.
18724 (TARGET_LIBC_HAS_FUNCTION): New.
18725 * doc/tm.texi: Regenerated.
18726 * targhooks.h (default_libc_has_function): New declaration.
18727 (no_c99_libc_has_function): Ditto.
18728 (gnu_libc_has_function): Ditto.
18729 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18730 and TARGET_HAS_SINCOS.
18732 2013-08-18 Jan Hubicka <jh@suse.cz>
18734 * Makeifle-in (ipa-devirt.o): New.
18735 (GTFILES): Add ipa-utils.h and ipa-devirt.c
18736 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18737 (analyze_functions): Look into possible targets of polymorphic call.
18738 * dumpfile.c (dump_files): Add type-inheritance dump.
18739 * dumpfile.h (TDI_inheritance): New.
18740 * ipa-devirt.c: New file.
18741 * ipa-utils.h (odr_type_d): Forward declare.
18742 (odr_type): New type.
18743 (build_type_inheritance_graph): Declare.
18744 (possible_polymorphic_call_targets): Declare and introduce inline
18745 variant when only edge is pased.
18746 (dump_possible_polymorphic_call_targets): Likewise.
18747 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18748 * tree.c (type_in_anonymous_namespace_p): Break out from ...
18749 (types_same_for_odr): ... here.
18750 * tree.h (type_in_anonymous_namespace_p): Declare.
18752 2013-08-18 Jakub Jelinek <jakub@redhat.com>
18754 PR tree-optimization/58006
18755 * tree-parloops.c (take_address_of): Don't ICE if get_name
18757 (eliminate_local_variables_stmt): Remove clobber stmts.
18759 2013-08-18 Eric Botcazou <ebotcazou@adacore.com>
18761 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18762 error message is issued for an alias to undefined symbol.
18764 2013-08-18 Jan Hubicka <jh@suse.cz>
18766 * cgraph.c (cgraph_create_indirect_edge): Discover
18767 polymorphic calls and record basic info into indirect_info.
18768 * gimple-fold.c (gimple_fold_call): When doing BINFO based
18769 devirtualization, ignore objc function calls.
18770 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18771 call with no parm index info.
18772 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18773 * tree.c (virtual_method_call_p): New function.
18774 * tree.h (virtual_method_call_p): Declare.
18776 2013-08-16 Jan Hubicka <jh@suse.cz>
18778 PR middle-end/58179
18779 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18781 2013-08-16 David Edelsohn <dje.gcc@gmail.com>
18783 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18786 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18788 * gengtype.c (type_for_name): Add special-case support for
18789 locating types within the "gcc::" namespace.
18790 (open_base_files): Emit a "using namespace gcc" directive.
18792 2013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
18795 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18796 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18798 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18799 array instead of each individual operand as a separate argument.
18800 (emit_fusion_gpr_load): Likewise.
18801 (expand_fusion_gpr_load): Add new function declaration.
18803 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18804 signature to have the operands passed as an array, instead of as
18805 separate arguments. Allow ZERO_EXTEND to be in the memory
18806 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
18807 depend on the register live/dead flags when peepholes are run.
18808 (expand_fusion_gpr_load): New function to be called from the
18809 peephole2 pass, to change the register that addis sets to be the
18811 (emit_fusion_gpr_load): Change the calling signature to have the
18812 operands passed as an array, instead of as separate arguments.
18813 Allow ZERO_EXTEND to be in the memory address, and also
18814 SIGN_EXTEND if -mpower8-fusion-sign.
18816 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18817 unspec enumeration.
18818 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18819 adjust the register addis loads up in the peephole2 pass. Do not
18820 depend on the register live/dead state when the peephole pass is done.
18822 2013-08-16 David Malcolm <dmalcolm@redhat.com>
18824 * gengtype.c (create_user_defined_type): Ensure that the kind
18825 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18826 declaration is seen before the GTY((user)) marking.
18828 2013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
18831 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18833 2013-08-16 Jan Hubicka <jh@suse.cz>
18835 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18836 arugment expected_type.
18837 (gimple_fold_call): Use it.
18838 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18839 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18840 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18841 (try_make_edge_direct_virtual_call): Likewise.
18842 * tree.c (obj_type_ref_class): New.
18843 * tree.h (obj_type_ref_class): Use it.
18845 2013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
18847 * sched-vis.c (rtl_slim_pp_initialized): Remove.
18848 (rtl_slim_pp): Likewise.
18849 (init_rtl_slim_pretty_print): Likewise.
18850 (dump_value_slim): Don't call it. Use local pretty printer.
18851 (dump_insn_slim): Likewise.
18852 (dump_rtl_slim): Likewise.
18853 (str_pattern_slim): Likewise.
18854 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18857 2013-08-16 Jakub Jelinek <jakub@redhat.com>
18859 PR tree-optimization/58164
18860 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18861 walk gimple_goto_dest of GIMPLE_GOTO.
18863 PR tree-optimization/58165
18864 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18865 bi_call must be the last stmt in a bb, don't split_block, instead
18866 use fallthru edge from it and give up if there is none.
18867 Release conds vector when returning early.
18869 2013-08-14 Xinliang David Li <davidxl@google.com>
18871 * config/i386/i386.c (ix86_option_override_internal):
18872 Remove unused variable and field.
18874 2013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18877 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18878 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18879 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18880 and Linux, correct BLKmode alignment when 128-bit alignment is
18881 required and compatibility flag is not set.
18882 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18883 for zero-size arguments when compatibility flag is not set.
18885 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18887 PR tree-optimization/58145
18888 * tree-sra.c (build_ref_for_offset): If prev_base has
18889 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18891 2013-08-14 Xinliang David Li <davidxl@google.com>
18893 * config/i386/i386.c (ix86_option_override_internal):
18894 Fix uninitialized variable error.
18896 2013-08-14 Xinliang David Li <davidxl@google.com>
18898 * config/i386/i386.opt: Define two new options.
18899 * config/i386/x86-tune.def: Add arch selector field in macros.
18900 * config/i386/i386.h: Adjust macro definition.
18901 * config/i386/i386.c (ix86_option_override_internal):
18903 (parse_mtune_ctrl_str): New function.
18904 (set_ix86_tune_features): New function.
18905 (ix86_function_specific_restore): Call the new helper function.
18907 2013-08-14 Andrey Belevantsev <abel@ispras.ru>
18909 PR rtl-optimization/57662
18910 * sel-sched.c (code_motion_process_successors): When the current insn
18911 is removed after the recursive traversal, break from the loop.
18912 Add comments and debug printouts.
18914 2013-08-14 Jakub Jelinek <jakub@redhat.com>
18915 Alexandre Oliva <aoliva@redhat.com>
18918 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18919 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18920 there also UNSPEC_PLTOFF.
18922 2013-08-14 Marek Polacek <polacek@redhat.com>
18924 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18925 NUM_CONDITIONS bit positions.
18927 2013-08-13 Cary Coutant <ccoutant@google.com>
18929 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18930 (attr_checksum): Hash vector contents instead of pointer.
18931 (attr_checksum_ordered): Likewise.
18933 2013-08-13 Uros Bizjak <ubizjak@gmail.com>
18935 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18936 when Pmode != word_mode. Add length_address attribute.
18937 (sse3_monitor_<mode>): Merge from sse3_monitor and
18938 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
18939 Pmode != word_mode. Update insn length attribute.
18940 * config/i386/i386.c (ix86_option_override_internal): Update
18941 ix86_gen_monitor selection for merged sse3_monitor insn.
18943 2013-08-13 Julian Brown <julian@codesourcery.com>
18945 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18946 perform invalid legitimization on greater-than-word-size modes for
18947 TARGET_E500_DOUBLE.
18949 2013-08-13 Vladimir Makarov <vmakarov@redhat.com>
18951 * ira.c (setup_class_translate_array): Use aclass instead of cl
18952 for classes not fully covered by allocno classes.
18954 2013-08-13 Jakub Jelinek <jakub@redhat.com>
18956 PR tree-optimization/57661
18957 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18958 * tree-inline.c (tree_function_versioning): Initialize it.
18959 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18960 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18961 that is not being copied.
18964 * asan.c (instrument_strlen_call): Fix typo in comment.
18965 Use char * type even for the lhs of POINTER_PLUS_EXPR.
18967 2013-08-13 Steve Ellcey <sellcey@mips.com>
18969 * config/mips/mips.md (prefetch): Use lw instead of ld on
18970 loongson in 32bit mode.
18972 2013-08-13 Nick Clifton <nickc@redhat.com>
18974 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18976 2013-08-13 Jan Hubicka <jh@suse.cz>
18978 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18979 introduced edge; fix typo in sanity check.
18980 (cgraph_resolve_speculation): Export; improve diagnostic.
18981 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18982 speculation at type mismatch.
18983 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18984 (cgraph_resolve_speculation): Declare.
18985 (symtab_can_be_discarded): New function.
18986 * value-prof.c (gimple_ic_transform): Remove actual transform code.
18987 * ipa-inline-transform.c (speculation_removed): New global var.
18988 (clone_inlined_nodes): See if speculation can be removed.
18989 (inline_call): If speculations was removed, we growths may not match.
18990 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18991 (speculation_useful_p): New function.
18992 (resolve_noninline_speculation): New function.
18993 (inline_small_functions): Resolve useless speculations.
18994 * ipa-inline.h (speculation_useful_p): Declare
18995 * ipa.c (can_replace_by_local_alias): Simplify.
18996 (ipa_profile): Produce speculative calls in non-lto, too;
18997 add simple cost model; produce local aliases.
18999 2013-08-13 David Malcolm <dmalcolm@redhat.com>
19001 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
19004 2013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
19006 * config/i386/i386.c (ix86_function_versions): Use error + inform.
19008 2013-08-12 Uros Bizjak <ubizjak@gmail.com>
19010 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
19011 iterator instead of X87MODEF.
19013 2013-08-12 Perez Read <netfirewall@gmail.com>
19016 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
19017 operand 0 for intel asm alternative.
19018 (*movabs<mode>_2): Ditto for operand 1.
19020 2013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
19022 * config/aarch64/arm_none.h
19023 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
19025 2013-08-12 Nick Clifton <nickc@redhat.com>
19027 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
19029 2013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
19031 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
19032 expand for QI/HImode operand to produce more effictive code for
19033 unsigned char(short) --> float(double) conversion.
19035 2013-08-12 Alexander Monakov <amonakov@ispras.ru>
19037 * doc/invoke.texi: Mention that -ftls-model does not force the final
19040 2013-08-12 Marek Polacek <polacek@redhat.com>
19041 Marc Glisse <marc.glisse@inria.fr>
19043 PR tree-optimization/57980
19044 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
19045 when creating -1 constant.
19047 2013-08-10 Jan Hubicka <jh@suse.cz>
19049 Workaround binutils PR14342.
19050 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
19051 (gimple_init_edge_profiler): Likewise.
19052 (gimple_gen_ic_func_profiler): Likewise.
19054 2013-08-09 Jan Hubicka <jh@suse.cz>
19056 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
19058 2013-08-09 Xinliang David Li <davidxl@google.com>
19060 * config/i386/stringop.def: New file.
19061 * config/i386/stringop.opt: New file.
19062 * config/i386/i386-opts.h: Include stringopt.def.
19063 * config/i386/i386.opt: Include stringopt.opt.
19064 * config/i386/i386.c (ix86_option_override_internal):
19065 Override default size based stringop inline strategies with options.
19066 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
19069 2013-08-09 Jan Hubicka <jh@suse.cz>
19071 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
19073 2013-08-09 Jan Hubicka <jh@suse.cz>
19075 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
19077 (dump_cgraph_node): Dump profile-id.
19078 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
19079 and common_target_probability.
19080 * lto-cgraph.c (lto_output_edge): Stream common targets.
19081 (lto_output_node): Stream profile ids.
19082 (input_node): Stream profile ids.
19083 (input_edge): Stream common targets.
19084 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
19085 * ipa.c: Include value-prof.h
19086 (ipa_profile_generate_summary): Turn indirect call statement histograms
19087 into common targets.
19088 (ipa_profile): Turn common targets into speculative edges.
19090 2013-08-09 Jan Hubicka <jh@suse.cz>
19092 * cgraph.h (cgraph_node): Add profile_id.
19093 * value-prof.c (cgraph_node_map): Turn into pointer_map.
19094 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
19095 (del_node_map): Update.
19096 (find_func_by_funcdef_no): Replace by ...
19097 (find_func_by_profile_id): ... this one.
19098 (gimple_ic_transform): Do not remove useful histograms when
19099 speculation is not done; dump info when indirect call removal
19101 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
19102 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
19103 (__gcov_indirect_call_profiler_v2): .. this one.
19104 * profile.h (init_node_map): Update.
19105 * coverage.c (coverage_compute_profile_id): New function.
19106 * coverage.h (coverage_compute_profile_id): Declare.
19107 * tree-profile.c (init_ic_make_global_vars): Make
19108 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
19109 (gimple_init_edge_profiler): Update prototype of
19110 __gcov_indirect_call_profiler.
19111 (gimple_gen_ic_func_profiler): Simplify.
19112 (tree_profiling): Use init_node_map
19114 2013-08-09 Jan Hubicka <jh@suse.cz>
19116 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
19117 non-speculative refs.
19118 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
19119 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
19120 (cgraph_set_call_stmt): Likewise.
19121 (cgraph_create_edge_1): Fix release checking compilatoin;
19122 clear lto_stmt_uid.
19123 (cgraph_free_edge): Free indirect info.
19124 (cgraph_turn_edge_to_speculative): New function.
19125 (cgraph_speculative_call_info): New function.
19126 (cgraph_make_edge_direct): Return direct edge; handle speculation.
19127 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
19128 (dump_cgraph_node): Dump speculation.
19129 (verify_edge_count_and_frequency): Accept speculative edges.
19130 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
19131 (verify_cgraph_node): Handle speculation.
19132 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
19133 (cgraph_set_call_stmt): Update prototype.
19134 (cgraph_make_edge_direct): Update prototype.
19135 (cgraph_speculative_call_info): Declare.
19136 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
19137 to change; update call of ipa_find_references.
19138 * ipa-ref.c (ipa_record_reference): Fix return value; clear
19139 lto_stmt_uid and speculative flags.
19140 (ipa_dump_references): Dump speculation.
19141 (ipa_clone_references): Clone speculative flag.
19142 (ipa_clone_referring): Likewise.
19143 (ipa_clone_ref): New function.
19144 (ipa_find_reference): Look into lto_stmt_uids
19145 (ipa_clear_stmts_in_references): Do not clear speculative calls.
19146 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
19147 (ipa_find_reference): Update declaration.
19148 (ipa_clone_ref): Declare.
19149 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
19150 stream speculative flag.
19151 (lto_output_ref): Stream statements uids and speculation.
19152 (input_ref): Likewise.
19153 (input_edge): Stream speuclation.
19154 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
19155 (cgraph_set_call_stmt_including_clones): Handle speculation.
19156 * ipa-inline.c (heap_edge_removal_hook): New function.
19157 (inline_small_functions): Register it.
19158 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
19159 also initialize refs.
19160 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
19162 (try_make_edge_direct_simple_call): Likewise.
19163 (try_make_edge_direct_simple_call): Likewise.
19164 (update_indirect_edges_after_inlining): Likewise.
19165 (remove_described_reference): Look proper lto_stmt_uid.
19166 (propagate_controlled_uses): Likewise.
19167 (propagate_controlled_uses): Liekwise.
19168 * tree-inline.c (copy_bb): Copy speculative edges.
19169 (redirect_all_calls): New function.
19170 (copy_cfg_body): Do redirection after loop info is updated.
19171 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
19173 2013-08-09 Jan Hubicka <jh@suse.cz>
19175 * lto-streamer-out.c (output_function): Renumber PHIs.
19176 * lto-streamer-in.c (input_function): Likewise.
19178 2013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
19180 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
19181 (get_lane_unsigned): Likewise.
19182 (dup_lane_scalar): Likewise.
19183 (get_lane): enable for VALL.
19184 * config/aarch64/aarch64-simd.md
19185 (aarch64_dup_lane_scalar<mode>): Remove.
19186 (aarch64_get_lane_signed<mode>): Likewise.
19187 (aarch64_get_lane_unsigned<mode>): Likewise.
19188 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
19189 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
19190 (aarch64_get_lane<mode>): Enable for all vector modes.
19191 (aarch64_get_lanedi): Remove misleading constraints.
19192 * config/aarch64/arm_neon.h
19193 (__aarch64_vget_lane_any): Define.
19194 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
19195 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
19196 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
19197 * config/aarch64/iterators.md (VDQQH): New.
19198 (VDQQHS): Likewise.
19199 (vwcore): Likewise.
19201 2013-08-09 Eric Botcazou <ebotcazou@adacore.com>
19203 * configure.ac: Add GAS check for LEON instructions on SPARC.
19204 * configure: Regenerate.
19205 * config.in: Likewise.
19206 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
19208 * config/sparc/sparc.opt (LEON, LEON3): New masks.
19209 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
19211 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
19212 (AS_LEON_FLAG): New macro.
19213 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
19214 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
19215 Deal with LEON and LEON3 for the memory model.
19216 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
19217 (atomic_compare_and_swap<mode>_1): Likewise.
19218 (*atomic_compare_and_swap<mode>_1): Likewise.
19220 2013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19222 * config/arm/neon.md (vcond): Fix floating-point vector
19223 comparisons against 0.
19225 2013-08-08 Vladimir Makarov <vmakarov@redhat.com>
19227 * lra-constraints.c (emit_spill_move): Remove assert.
19228 (process_alt_operands): Add more debugging
19229 output. Increase reject for spilling into memory. Decrease
19230 reject for reloading scratch.
19231 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
19233 2013-08-08 Steve Ellcey <sellcey@mips.com>
19235 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
19236 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
19237 micromips incompatible. Add nan2008.
19238 (MULTILIB_DIRNAMES): Add nan2008.
19239 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19240 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
19241 and micromips incompatible. Add nan2008.
19242 (MULTILIB_DIRNAMES): Add nan2008.
19243 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
19245 2013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19247 PR rtl-optimization/58079
19248 * combine.c (combine_simplify_rtx): Avoid using SUBST if
19249 simplify_comparison has widened a comparison with an integer.
19251 2013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19253 * config/arm/neon.md (movmisalign<mode>): Disable when we
19254 don't allow unaligned accesses.
19255 (*movmisalign<mode>_neon_store): Likewise.
19256 (*movmisalign<mode>_neon_load): Likewise.
19257 (*movmisalign<mode>_neon_store): Likewise.
19258 (*movmisalign<mode>_neon_load): Likewise.
19260 2013-08-08 Jan Hubicka <jh@suse.cz>
19262 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
19263 (make_pass_rebuild_cgraph_edges): Also clear references.
19264 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
19265 * ipa-inline-transform.c (inline_transform): Remove all references
19267 * cgraphunit.c (expand_function): Remove all references after
19269 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
19270 (ipa_find_reference): Rewrite to iterator.
19271 (remove_stmt_references): Likewise.
19272 (ipa_clear_stmts_in_references): New function.
19273 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
19274 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
19276 * ipa-split.c (split_function): Remove references in split function.
19278 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19281 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
19282 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
19284 2013-08-08 Richard Earnshaw <rearnsha@arm.com>
19287 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
19288 suggested mode for the assignment isn't compatible with the
19289 registers required.
19291 2013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
19294 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
19296 2013-08-07 Xinliang David Li <davidxl@google.com>
19298 * config/i386/i386.opt: New option -mtune-ctrl=.
19299 * config/i386/x86-tune.def: New file.
19300 * config/i386/i386.h: include x86-tune.def.
19301 * config/i386/i386.c (ix86_option_override_internal):
19302 Parsing -mtune-ctrl= option and set tune features.
19304 2013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
19307 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
19308 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
19311 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19313 * rtl.h (update_alignments): Declare.
19314 * final.c (grow_label_align): New function extracted from...
19315 (shorten_branches): ...here. Call it.
19316 (update_alignments): New function.
19317 * reorg.c (sibling_labels): New variable.
19318 (get_label_before): Add SIBLING parameter. If it is non-zero, push
19319 the new label along with it onto the sibling_labels vector.
19320 (fill_simple_delay_slots): Adjust call to get_label_before.
19321 (fill_slots_from_thread): Likewise.
19322 (relax_delay_slots): Likewise.
19323 (make_return_insns): Likewise.
19324 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
19326 2013-08-07 Eric Botcazou <ebotcazou@adacore.com>
19328 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
19329 document its semantics.
19330 (diagnostic_report_diagnostic): Adjust accordingly.
19332 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19334 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
19335 (sparc_option_override): ...and port to new C++ pass API.
19336 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
19338 2013-08-07 Peter Bergner <bergner@vnet.ibm.com>
19340 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
19342 2013-08-06 Caroline Tice <cmtice@google.com>
19344 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
19345 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
19346 * tree-pass.h: Add pass_vtable_verify.
19347 * varasm.c (assemble_variable): Add code to properly set the comdat
19348 section and name for the .vtable_map_vars section.
19349 (assemble_vtyv_preinit_initializer): New function.
19350 (default_sectin_type_flags): Make sure .vtable_map_vars section has
19352 * output.h: Add function decl for assemble_vtv_preinit_initializer.
19353 * vtable-verify.c: New file.
19354 * vtable-verify.h: New file.
19355 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
19356 initialiation levels.
19357 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19358 * passes.def: Insert pass_vtable_verify.
19359 * aclocal.m4: Reorder includes.
19360 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
19361 -fvtv-counts options.
19362 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19363 as appropriate, if -fvtable-verify=... is used.
19364 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19365 -fvtable-verify=... is used.
19366 * Makefile.in (OBJS): Add vtable-verify.o to list.
19367 (vtable-verify.o): Add new build rule.
19368 (GTFILES): Add vtable-verify.c to list.
19369 * common.opt (fvtable-verify=): New flag.
19370 (vtv_priority): Values for fvtable-verify= flag.
19371 (fvtv-counts): New flag.
19372 (fvtv-debug): New flag.
19373 * tree.h (save_vtable_map_decl): New extern function decl.
19375 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19377 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19378 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19379 (pass_data_rl78_devirt): ...new pass_data instance and...
19380 (make_pass_rl78_devirt): ...new function.
19381 (rl78_asm_file_start): Port pass registration to new C++ API.
19383 2013-08-07 David Malcolm <dmalcolm@redhat.com>
19385 * coretypes.h (rtl_opt_pass): Add.
19386 (gcc::context): Add.
19387 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19388 (epiphany_init): Port to new C++ pass API.
19389 (epiphany_optimize_mode_switching): Likewise.
19390 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19391 (pass_manager::get_pass_mode_switching): New.
19392 (pass_manager::get_pass_peephole2): New.
19393 * mode-switching.c (pass_mode_switching): Add clone method.
19394 * recog.c (pass_peephole2): Add clone method.
19395 (pass_split_all_insns): Add clone method.
19397 2013-08-06 David Malcolm <dmalcolm@redhat.com>
19399 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19400 (mips_option_override): ...here, porting to new C++ API for passes.
19402 2013-08-06 Jan Hubicka <jh@suse.cz>
19404 * cgraph.c (cgraph_get_body): New function based on lto.c
19406 * cgraph.h (cgraph_get_body): Declare.
19407 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19409 * cgraphunit.c (expand_function): Get body prior expanding.
19410 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19411 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19413 * passes.c (do_per_function_toporder): Get body.
19414 * tree-inline.c (expand_call_inline): Get body prior inlining it.
19415 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19417 2013-08-06 Martin Jambor <mjambor@suse.cz>
19420 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19421 is not re-finalized. Rename second parameter to no_collect.
19423 2013-08-06 Martin Jambor <mjambor@suse.cz>
19425 PR middle-end/58041
19426 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19427 MEM_REF has proper alignment information.
19429 2013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
19432 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19434 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19435 rtx (*) (rtx, ...) with insn_gen_fn.
19436 * genoutput.c (output_insn_data): Cast gen_? function pointers to
19437 insn_gen_fn::stored_funcptr. Add initializer braces.
19439 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19441 Rewrite how instances of passes are cloned to remove assumptions
19442 about their sizes (thus allowing pass subclasses to have
19443 additional data fields, albeit non-GC-managed ones at this point).
19445 * passes.c (make_pass_instance): Now that passes have clone
19446 methods, rewrite this function to eliminate XNEW and memcpy
19447 calls that used hardcoded sizes. Since this function no longer
19448 creates pass instances, rename it to...
19449 (add_pass_instance): ...this. Document the old way that passes were
19450 numbered and flagged, and rework this function to continue using it.
19451 (next_pass_1): Add an initial_pass argument for use by
19453 (position_pass): When adding multiple instances of a pass, use
19454 the pass's clone method, rather than relying on the XNEW/memcpy
19455 within the former make_pass_instance (now add_pass_instance).
19456 (pass_manager::pass_manager): When invoking next_pass_1, also supply
19457 the initial instance of the current pass within the pass manager.
19459 2013-08-05 David Malcolm <dmalcolm@redhat.com>
19461 This is the automated part of the conversion of passes from C
19462 structs to C++ classes.
19464 Patch autogenerated by refactor_passes.py from
19465 https://github.com/davidmalcolm/gcc-refactoring-scripts
19466 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19468 * asan.c (pass_asan): Convert from a global struct to a subclass of
19469 gimple_opt_pass along with...
19470 (pass_data_asan): ...new pass_data instance and...
19471 (make_pass_asan): ...new function.
19472 (pass_asan_O0): Convert from a global struct to a subclass of
19473 gimple_opt_pass along with...
19474 (pass_data_asan_O0): ...new pass_data instance and...
19475 (make_pass_asan_O0): ...new function.
19476 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19477 subclass of rtl_opt_pass along with...
19478 (pass_data_inc_dec): ...new pass_data instance and...
19479 (make_pass_inc_dec): ...new function.
19480 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19481 a subclass of rtl_opt_pass along with...
19482 (pass_data_reorder_blocks): ...new pass_data instance and...
19483 (make_pass_reorder_blocks): ...new function.
19484 (pass_duplicate_computed_gotos): Convert from a global struct to a
19485 subclass of rtl_opt_pass along with...
19486 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19487 (make_pass_duplicate_computed_gotos): ...new function.
19488 (pass_partition_blocks): Convert from a global struct to a subclass of
19489 rtl_opt_pass along with...
19490 (pass_data_partition_blocks): ...new pass_data instance and...
19491 (make_pass_partition_blocks): ...new function.
19492 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19493 struct to a subclass of rtl_opt_pass along with...
19494 (pass_data_branch_target_load_optimize1): ...new pass_data instance
19496 (make_pass_branch_target_load_optimize1): ...new function.
19497 (pass_branch_target_load_optimize2): Convert from a global struct to a
19498 subclass of rtl_opt_pass along with...
19499 (pass_data_branch_target_load_optimize2): ...new pass_data instance
19501 (make_pass_branch_target_load_optimize2): ...new function.
19502 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19503 of rtl_opt_pass along with...
19504 (pass_data_jump): ...new pass_data instance and...
19505 (make_pass_jump): ...new function.
19506 (pass_jump2): Convert from a global struct to a subclass of
19507 rtl_opt_pass along with...
19508 (pass_data_jump2): ...new pass_data instance and...
19509 (make_pass_jump2): ...new function.
19510 * cfgexpand.c (pass_expand): Convert from a global struct to a
19511 subclass of rtl_opt_pass along with...
19512 (pass_data_expand): ...new pass_data instance and...
19513 (make_pass_expand): ...new function.
19514 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19515 of rtl_opt_pass along with...
19516 (pass_data_free_cfg): ...new pass_data instance and...
19517 (make_pass_free_cfg): ...new function.
19518 (pass_into_cfg_layout_mode): Convert from a global struct to a
19519 subclass of rtl_opt_pass along with...
19520 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19521 (make_pass_into_cfg_layout_mode): ...new function.
19522 (pass_outof_cfg_layout_mode): Convert from a global struct to a
19523 subclass of rtl_opt_pass along with...
19524 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19525 (make_pass_outof_cfg_layout_mode): ...new function.
19526 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19527 struct to a subclass of gimple_opt_pass along with...
19528 (pass_data_build_cgraph_edges): ...new pass_data instance and...
19529 (make_pass_build_cgraph_edges): ...new function.
19530 (pass_rebuild_cgraph_edges): Convert from a global struct to a
19531 subclass of gimple_opt_pass along with...
19532 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19533 (make_pass_rebuild_cgraph_edges): ...new function.
19534 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19535 subclass of gimple_opt_pass along with...
19536 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19538 (make_pass_remove_cgraph_callee_edges): ...new function.
19539 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19540 struct to a subclass of rtl_opt_pass along with...
19541 (pass_data_stack_adjustments): ...new pass_data instance and...
19542 (make_pass_stack_adjustments): ...new function.
19543 * combine.c (pass_combine): Convert from a global struct to a subclass
19544 of rtl_opt_pass along with...
19545 (pass_data_combine): ...new pass_data instance and...
19546 (make_pass_combine): ...new function.
19547 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19548 global struct to a subclass of rtl_opt_pass along with...
19549 (pass_data_compare_elim_after_reload): ...new pass_data instance
19551 (make_pass_compare_elim_after_reload): ...new function.
19552 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19553 of rtl_opt_pass along with...
19554 (pass_data_rtl_cprop): ...new pass_data instance and...
19555 (make_pass_rtl_cprop): ...new function.
19556 * cse.c (pass_cse): Convert from a global struct to a subclass of
19557 rtl_opt_pass along with...
19558 (pass_data_cse): ...new pass_data instance and...
19559 (make_pass_cse): ...new function.
19560 (pass_cse2): Convert from a global struct to a subclass of
19561 rtl_opt_pass along with...
19562 (pass_data_cse2): ...new pass_data instance and...
19563 (make_pass_cse2): ...new function.
19564 (pass_cse_after_global_opts): Convert from a global struct to a
19565 subclass of rtl_opt_pass along with...
19566 (pass_data_cse_after_global_opts): ...new pass_data instance and...
19567 (make_pass_cse_after_global_opts): ...new function.
19568 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19569 of rtl_opt_pass along with...
19570 (pass_data_ud_rtl_dce): ...new pass_data instance and...
19571 (make_pass_ud_rtl_dce): ...new function.
19572 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19573 rtl_opt_pass along with...
19574 (pass_data_fast_rtl_dce): ...new pass_data instance and...
19575 (make_pass_fast_rtl_dce): ...new function.
19576 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19577 a subclass of rtl_opt_pass along with...
19578 (pass_data_df_initialize_opt): ...new pass_data instance and...
19579 (make_pass_df_initialize_opt): ...new function.
19580 (pass_df_initialize_no_opt): Convert from a global struct to a
19581 subclass of rtl_opt_pass along with...
19582 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19583 (make_pass_df_initialize_no_opt): ...new function.
19584 (pass_df_finish): Convert from a global struct to a subclass of
19585 rtl_opt_pass along with...
19586 (pass_data_df_finish): ...new pass_data instance and...
19587 (make_pass_df_finish): ...new function.
19588 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19589 rtl_opt_pass along with...
19590 (pass_data_rtl_dse1): ...new pass_data instance and...
19591 (make_pass_rtl_dse1): ...new function.
19592 (pass_rtl_dse2): Convert from a global struct to a subclass of
19593 rtl_opt_pass along with...
19594 (pass_data_rtl_dse2): ...new pass_data instance and...
19595 (make_pass_rtl_dse2): ...new function.
19596 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19597 subclass of rtl_opt_pass along with...
19598 (pass_data_dwarf2_frame): ...new pass_data instance and...
19599 (make_pass_dwarf2_frame): ...new function.
19600 * except.c (pass_set_nothrow_function_flags): Convert from a global
19601 struct to a subclass of rtl_opt_pass along with...
19602 (pass_data_set_nothrow_function_flags): ...new pass_data instance
19604 (make_pass_set_nothrow_function_flags): ...new function.
19605 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19606 subclass of rtl_opt_pass along with...
19607 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19609 (make_pass_convert_to_eh_region_ranges): ...new function.
19610 * final.c (pass_compute_alignments): Convert from a global struct to a
19611 subclass of rtl_opt_pass along with...
19612 (pass_data_compute_alignments): ...new pass_data instance and...
19613 (make_pass_compute_alignments): ...new function.
19614 (pass_final): Convert from a global struct to a subclass of
19615 rtl_opt_pass along with...
19616 (pass_data_final): ...new pass_data instance and...
19617 (make_pass_final): ...new function.
19618 (pass_shorten_branches): Convert from a global struct to a subclass of
19619 rtl_opt_pass along with...
19620 (pass_data_shorten_branches): ...new pass_data instance and...
19621 (make_pass_shorten_branches): ...new function.
19622 (pass_clean_state): Convert from a global struct to a subclass of
19623 rtl_opt_pass along with...
19624 (pass_data_clean_state): ...new pass_data instance and...
19625 (make_pass_clean_state): ...new function.
19626 * function.c (pass_instantiate_virtual_regs): Convert from a global
19627 struct to a subclass of rtl_opt_pass along with...
19628 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19629 (make_pass_instantiate_virtual_regs): ...new function.
19630 (pass_leaf_regs): Convert from a global struct to a subclass of
19631 rtl_opt_pass along with...
19632 (pass_data_leaf_regs): ...new pass_data instance and...
19633 (make_pass_leaf_regs): ...new function.
19634 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19635 subclass of rtl_opt_pass along with...
19636 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19638 (make_pass_thread_prologue_and_epilogue): ...new function.
19639 (pass_match_asm_constraints): Convert from a global struct to a
19640 subclass of rtl_opt_pass along with...
19641 (pass_data_match_asm_constraints): ...new pass_data instance and...
19642 (make_pass_match_asm_constraints): ...new function.
19643 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19644 subclass of rtl_opt_pass along with...
19645 (pass_data_rtl_fwprop): ...new pass_data instance and...
19646 (make_pass_rtl_fwprop): ...new function.
19647 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19648 rtl_opt_pass along with...
19649 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19650 (make_pass_rtl_fwprop_addr): ...new function.
19651 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19652 rtl_opt_pass along with...
19653 (pass_data_rtl_pre): ...new pass_data instance and...
19654 (make_pass_rtl_pre): ...new function.
19655 (pass_rtl_hoist): Convert from a global struct to a subclass of
19656 rtl_opt_pass along with...
19657 (pass_data_rtl_hoist): ...new pass_data instance and...
19658 (make_pass_rtl_hoist): ...new function.
19659 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19660 subclass of gimple_opt_pass along with...
19661 (pass_data_lower_cf): ...new pass_data instance and...
19662 (make_pass_lower_cf): ...new function.
19663 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19664 from a global struct to a subclass of gimple_opt_pass along with...
19665 (pass_data_strength_reduction): ...new pass_data instance and...
19666 (make_pass_strength_reduction): ...new function.
19667 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19668 of rtl_opt_pass along with...
19669 (pass_data_rtl_ifcvt): ...new pass_data instance and...
19670 (make_pass_rtl_ifcvt): ...new function.
19671 (pass_if_after_combine): Convert from a global struct to a subclass of
19672 rtl_opt_pass along with...
19673 (pass_data_if_after_combine): ...new pass_data instance and...
19674 (make_pass_if_after_combine): ...new function.
19675 (pass_if_after_reload): Convert from a global struct to a subclass of
19676 rtl_opt_pass along with...
19677 (pass_data_if_after_reload): ...new pass_data instance and...
19678 (make_pass_if_after_reload): ...new function.
19679 * init-regs.c (pass_initialize_regs): Convert from a global struct to
19680 a subclass of rtl_opt_pass along with...
19681 (pass_data_initialize_regs): ...new pass_data instance and...
19682 (make_pass_initialize_regs): ...new function.
19683 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19684 of ipa_opt_pass_d along with...
19685 (pass_data_ipa_cp): ...new pass_data instance and...
19686 (make_pass_ipa_cp): ...new function.
19687 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19688 global struct to a subclass of gimple_opt_pass along with...
19689 (pass_data_inline_parameters): ...new pass_data instance and...
19690 (make_pass_inline_parameters): ...new function.
19691 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19692 subclass of gimple_opt_pass along with...
19693 (pass_data_early_inline): ...new pass_data instance and...
19694 (make_pass_early_inline): ...new function.
19695 (pass_ipa_inline): Convert from a global struct to a subclass of
19696 ipa_opt_pass_d along with...
19697 (pass_data_ipa_inline): ...new pass_data instance and...
19698 (make_pass_ipa_inline): ...new function.
19699 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19700 struct to a subclass of gimple_opt_pass along with...
19701 (pass_data_local_pure_const): ...new pass_data instance and...
19702 (make_pass_local_pure_const): ...new function.
19703 (pass_ipa_pure_const): Convert from a global struct to a subclass of
19704 ipa_opt_pass_d along with...
19705 (pass_data_ipa_pure_const): ...new pass_data instance and...
19706 (make_pass_ipa_pure_const): ...new function.
19707 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19708 to a subclass of ipa_opt_pass_d along with...
19709 (pass_data_ipa_reference): ...new pass_data instance and...
19710 (make_pass_ipa_reference): ...new function.
19711 * ipa-split.c (pass_split_functions): Convert from a global struct to
19712 a subclass of gimple_opt_pass along with...
19713 (pass_data_split_functions): ...new pass_data instance and...
19714 (make_pass_split_functions): ...new function.
19715 (pass_feedback_split_functions): Convert from a global struct to a
19716 subclass of gimple_opt_pass along with...
19717 (pass_data_feedback_split_functions): ...new pass_data instance and...
19718 (make_pass_feedback_split_functions): ...new function.
19719 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19720 global struct to a subclass of simple_ipa_opt_pass along with...
19721 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19723 (make_pass_ipa_function_and_variable_visibility): ...new function.
19724 (pass_ipa_free_inline_summary): Convert from a global struct to a
19725 subclass of simple_ipa_opt_pass along with...
19726 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19727 (make_pass_ipa_free_inline_summary): ...new function.
19728 (pass_ipa_whole_program_visibility): Convert from a global struct to a
19729 subclass of ipa_opt_pass_d along with...
19730 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19732 (make_pass_ipa_whole_program_visibility): ...new function.
19733 (pass_ipa_profile): Convert from a global struct to a subclass of
19734 ipa_opt_pass_d along with...
19735 (pass_data_ipa_profile): ...new pass_data instance and...
19736 (make_pass_ipa_profile): ...new function.
19737 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19738 ipa_opt_pass_d along with...
19739 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19740 (make_pass_ipa_cdtor_merge): ...new function.
19741 * ira.c (pass_ira): Convert from a global struct to a subclass of
19742 rtl_opt_pass along with...
19743 (pass_data_ira): ...new pass_data instance and...
19744 (make_pass_ira): ...new function.
19745 (pass_reload): Convert from a global struct to a subclass of
19746 rtl_opt_pass along with...
19747 (pass_data_reload): ...new pass_data instance and...
19748 (make_pass_reload): ...new function.
19749 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19750 subclass of rtl_opt_pass along with...
19751 (pass_data_cleanup_barriers): ...new pass_data instance and...
19752 (make_pass_cleanup_barriers): ...new function.
19753 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19754 of rtl_opt_pass along with...
19755 (pass_data_loop2): ...new pass_data instance and...
19756 (make_pass_loop2): ...new function.
19757 (pass_rtl_loop_init): Convert from a global struct to a subclass of
19758 rtl_opt_pass along with...
19759 (pass_data_rtl_loop_init): ...new pass_data instance and...
19760 (make_pass_rtl_loop_init): ...new function.
19761 (pass_rtl_loop_done): Convert from a global struct to a subclass of
19762 rtl_opt_pass along with...
19763 (pass_data_rtl_loop_done): ...new pass_data instance and...
19764 (make_pass_rtl_loop_done): ...new function.
19765 (pass_rtl_move_loop_invariants): Convert from a global struct to a
19766 subclass of rtl_opt_pass along with...
19767 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19768 (make_pass_rtl_move_loop_invariants): ...new function.
19769 (pass_rtl_unswitch): Convert from a global struct to a subclass of
19770 rtl_opt_pass along with...
19771 (pass_data_rtl_unswitch): ...new pass_data instance and...
19772 (make_pass_rtl_unswitch): ...new function.
19773 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19774 subclass of rtl_opt_pass along with...
19775 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19777 (make_pass_rtl_unroll_and_peel_loops): ...new function.
19778 (pass_rtl_doloop): Convert from a global struct to a subclass of
19779 rtl_opt_pass along with...
19780 (pass_data_rtl_doloop): ...new pass_data instance and...
19781 (make_pass_rtl_doloop): ...new function.
19782 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19783 a subclass of rtl_opt_pass along with...
19784 (pass_data_lower_subreg): ...new pass_data instance and...
19785 (make_pass_lower_subreg): ...new function.
19786 (pass_lower_subreg2): Convert from a global struct to a subclass of
19787 rtl_opt_pass along with...
19788 (pass_data_lower_subreg2): ...new pass_data instance and...
19789 (make_pass_lower_subreg2): ...new function.
19790 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19791 struct to a subclass of ipa_opt_pass_d along with...
19792 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19793 (make_pass_ipa_lto_gimple_out): ...new function.
19794 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19795 of ipa_opt_pass_d along with...
19796 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19797 (make_pass_ipa_lto_finish_out): ...new function.
19798 * mode-switching.c (pass_mode_switching): Convert from a global struct
19799 to a subclass of rtl_opt_pass along with...
19800 (pass_data_mode_switching): ...new pass_data instance and...
19801 (make_pass_mode_switching): ...new function.
19802 * modulo-sched.c (pass_sms): Convert from a global struct to a
19803 subclass of rtl_opt_pass along with...
19804 (pass_data_sms): ...new pass_data instance and...
19805 (make_pass_sms): ...new function.
19806 * omp-low.c (pass_expand_omp): Convert from a global struct to a
19807 subclass of gimple_opt_pass along with...
19808 (pass_data_expand_omp): ...new pass_data instance and...
19809 (make_pass_expand_omp): ...new function.
19810 (pass_lower_omp): Convert from a global struct to a subclass of
19811 gimple_opt_pass along with...
19812 (pass_data_lower_omp): ...new pass_data instance and...
19813 (make_pass_lower_omp): ...new function.
19814 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19815 of gimple_opt_pass along with...
19816 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19817 (make_pass_diagnose_omp_blocks): ...new function.
19818 * passes.c (pass_early_local_passes): Convert from a global struct to
19819 a subclass of simple_ipa_opt_pass along with...
19820 (pass_data_early_local_passes): ...new pass_data instance and...
19821 (make_pass_early_local_passes): ...new function.
19822 (pass_all_early_optimizations): Convert from a global struct to a
19823 subclass of gimple_opt_pass along with...
19824 (pass_data_all_early_optimizations): ...new pass_data instance and...
19825 (make_pass_all_early_optimizations): ...new function.
19826 (pass_all_optimizations): Convert from a global struct to a subclass
19827 of gimple_opt_pass along with...
19828 (pass_data_all_optimizations): ...new pass_data instance and...
19829 (make_pass_all_optimizations): ...new function.
19830 (pass_all_optimizations_g): Convert from a global struct to a subclass
19831 of gimple_opt_pass along with...
19832 (pass_data_all_optimizations_g): ...new pass_data instance and...
19833 (make_pass_all_optimizations_g): ...new function.
19834 (pass_rest_of_compilation): Convert from a global struct to a subclass
19835 of rtl_opt_pass along with...
19836 (pass_data_rest_of_compilation): ...new pass_data instance and...
19837 (make_pass_rest_of_compilation): ...new function.
19838 (pass_postreload): Convert from a global struct to a subclass of
19839 rtl_opt_pass along with...
19840 (pass_data_postreload): ...new pass_data instance and...
19841 (make_pass_postreload): ...new function.
19842 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19843 subclass of rtl_opt_pass along with...
19844 (pass_data_gcse2): ...new pass_data instance and...
19845 (make_pass_gcse2): ...new function.
19846 * postreload.c (pass_postreload_cse): Convert from a global struct to
19847 a subclass of rtl_opt_pass along with...
19848 (pass_data_postreload_cse): ...new pass_data instance and...
19849 (make_pass_postreload_cse): ...new function.
19850 * predict.c (pass_profile): Convert from a global struct to a subclass
19851 of gimple_opt_pass along with...
19852 (pass_data_profile): ...new pass_data instance and...
19853 (make_pass_profile): ...new function.
19854 (pass_strip_predict_hints): Convert from a global struct to a subclass
19855 of gimple_opt_pass along with...
19856 (pass_data_strip_predict_hints): ...new pass_data instance and...
19857 (make_pass_strip_predict_hints): ...new function.
19858 * recog.c (pass_peephole2): Convert from a global struct to a subclass
19859 of rtl_opt_pass along with...
19860 (pass_data_peephole2): ...new pass_data instance and...
19861 (make_pass_peephole2): ...new function.
19862 (pass_split_all_insns): Convert from a global struct to a subclass of
19863 rtl_opt_pass along with...
19864 (pass_data_split_all_insns): ...new pass_data instance and...
19865 (make_pass_split_all_insns): ...new function.
19866 (pass_split_after_reload): Convert from a global struct to a subclass
19867 of rtl_opt_pass along with...
19868 (pass_data_split_after_reload): ...new pass_data instance and...
19869 (make_pass_split_after_reload): ...new function.
19870 (pass_split_before_regstack): Convert from a global struct to a
19871 subclass of rtl_opt_pass along with...
19872 (pass_data_split_before_regstack): ...new pass_data instance and...
19873 (make_pass_split_before_regstack): ...new function.
19874 (pass_split_before_sched2): Convert from a global struct to a subclass
19875 of rtl_opt_pass along with...
19876 (pass_data_split_before_sched2): ...new pass_data instance and...
19877 (make_pass_split_before_sched2): ...new function.
19878 (pass_split_for_shorten_branches): Convert from a global struct to a
19879 subclass of rtl_opt_pass along with...
19880 (pass_data_split_for_shorten_branches): ...new pass_data instance
19882 (make_pass_split_for_shorten_branches): ...new function.
19883 * ree.c (pass_ree): Convert from a global struct to a subclass of
19884 rtl_opt_pass along with...
19885 (pass_data_ree): ...new pass_data instance and...
19886 (make_pass_ree): ...new function.
19887 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19888 subclass of rtl_opt_pass along with...
19889 (pass_data_stack_regs): ...new pass_data instance and...
19890 (make_pass_stack_regs): ...new function.
19891 (pass_stack_regs_run): Convert from a global struct to a subclass of
19892 rtl_opt_pass along with...
19893 (pass_data_stack_regs_run): ...new pass_data instance and...
19894 (make_pass_stack_regs_run): ...new function.
19895 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19896 subclass of rtl_opt_pass along with...
19897 (pass_data_cprop_hardreg): ...new pass_data instance and...
19898 (make_pass_cprop_hardreg): ...new function.
19899 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19900 subclass of rtl_opt_pass along with...
19901 (pass_data_reginfo_init): ...new pass_data instance and...
19902 (make_pass_reginfo_init): ...new function.
19903 * regmove.c (pass_regmove): Convert from a global struct to a subclass
19904 of rtl_opt_pass along with...
19905 (pass_data_regmove): ...new pass_data instance and...
19906 (make_pass_regmove): ...new function.
19907 * regrename.c (pass_regrename): Convert from a global struct to a
19908 subclass of rtl_opt_pass along with...
19909 (pass_data_regrename): ...new pass_data instance and...
19910 (make_pass_regrename): ...new function.
19911 * reorg.c (pass_delay_slots): Convert from a global struct to a
19912 subclass of rtl_opt_pass along with...
19913 (pass_data_delay_slots): ...new pass_data instance and...
19914 (make_pass_delay_slots): ...new function.
19915 (pass_machine_reorg): Convert from a global struct to a subclass of
19916 rtl_opt_pass along with...
19917 (pass_data_machine_reorg): ...new pass_data instance and...
19918 (make_pass_machine_reorg): ...new function.
19919 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19920 of rtl_opt_pass along with...
19921 (pass_data_sched): ...new pass_data instance and...
19922 (make_pass_sched): ...new function.
19923 (pass_sched2): Convert from a global struct to a subclass of
19924 rtl_opt_pass along with...
19925 (pass_data_sched2): ...new pass_data instance and...
19926 (make_pass_sched2): ...new function.
19927 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19928 to a subclass of rtl_opt_pass along with...
19929 (pass_data_stack_ptr_mod): ...new pass_data instance and...
19930 (make_pass_stack_ptr_mod): ...new function.
19931 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19932 to a subclass of rtl_opt_pass along with...
19933 (pass_data_rtl_store_motion): ...new pass_data instance and...
19934 (make_pass_rtl_store_motion): ...new function.
19935 * tracer.c (pass_tracer): Convert from a global struct to a subclass
19936 of gimple_opt_pass along with...
19937 (pass_data_tracer): ...new pass_data instance and...
19938 (make_pass_tracer): ...new function.
19939 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19940 to a subclass of gimple_opt_pass along with...
19941 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19942 (make_pass_diagnose_tm_blocks): ...new function.
19943 (pass_lower_tm): Convert from a global struct to a subclass of
19944 gimple_opt_pass along with...
19945 (pass_data_lower_tm): ...new pass_data instance and...
19946 (make_pass_lower_tm): ...new function.
19947 (pass_tm_init): Convert from a global struct to a subclass of
19948 gimple_opt_pass along with...
19949 (pass_data_tm_init): ...new pass_data instance and...
19950 (make_pass_tm_init): ...new function.
19951 (pass_tm_mark): Convert from a global struct to a subclass of
19952 gimple_opt_pass along with...
19953 (pass_data_tm_mark): ...new pass_data instance and...
19954 (make_pass_tm_mark): ...new function.
19955 (pass_tm_edges): Convert from a global struct to a subclass of
19956 gimple_opt_pass along with...
19957 (pass_data_tm_edges): ...new pass_data instance and...
19958 (make_pass_tm_edges): ...new function.
19959 (pass_tm_memopt): Convert from a global struct to a subclass of
19960 gimple_opt_pass along with...
19961 (pass_data_tm_memopt): ...new pass_data instance and...
19962 (make_pass_tm_memopt): ...new function.
19963 (pass_ipa_tm): Convert from a global struct to a subclass of
19964 simple_ipa_opt_pass along with...
19965 (pass_data_ipa_tm): ...new pass_data instance and...
19966 (make_pass_ipa_tm): ...new function.
19967 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19968 subclass of gimple_opt_pass along with...
19969 (pass_data_call_cdce): ...new pass_data instance and...
19970 (make_pass_call_cdce): ...new function.
19971 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19972 subclass of gimple_opt_pass along with...
19973 (pass_data_build_cfg): ...new pass_data instance and...
19974 (make_pass_build_cfg): ...new function.
19975 (pass_split_crit_edges): Convert from a global struct to a subclass of
19976 gimple_opt_pass along with...
19977 (pass_data_split_crit_edges): ...new pass_data instance and...
19978 (make_pass_split_crit_edges): ...new function.
19979 (pass_warn_function_return): Convert from a global struct to a
19980 subclass of gimple_opt_pass along with...
19981 (pass_data_warn_function_return): ...new pass_data instance and...
19982 (make_pass_warn_function_return): ...new function.
19983 (pass_warn_function_noreturn): Convert from a global struct to a
19984 subclass of gimple_opt_pass along with...
19985 (pass_data_warn_function_noreturn): ...new pass_data instance and...
19986 (make_pass_warn_function_noreturn): ...new function.
19987 (pass_warn_unused_result): Convert from a global struct to a subclass
19988 of gimple_opt_pass along with...
19989 (pass_data_warn_unused_result): ...new pass_data instance and...
19990 (make_pass_warn_unused_result): ...new function.
19991 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19992 a subclass of gimple_opt_pass along with...
19993 (pass_data_merge_phi): ...new pass_data instance and...
19994 (make_pass_merge_phi): ...new function.
19995 * tree-complex.c (pass_lower_complex): Convert from a global struct to
19996 a subclass of gimple_opt_pass along with...
19997 (pass_data_lower_complex): ...new pass_data instance and...
19998 (make_pass_lower_complex): ...new function.
19999 (pass_lower_complex_O0): Convert from a global struct to a subclass of
20000 gimple_opt_pass along with...
20001 (pass_data_lower_complex_O0): ...new pass_data instance and...
20002 (make_pass_lower_complex_O0): ...new function.
20003 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
20004 subclass of gimple_opt_pass along with...
20005 (pass_data_lower_eh): ...new pass_data instance and...
20006 (make_pass_lower_eh): ...new function.
20007 (pass_refactor_eh): Convert from a global struct to a subclass of
20008 gimple_opt_pass along with...
20009 (pass_data_refactor_eh): ...new pass_data instance and...
20010 (make_pass_refactor_eh): ...new function.
20011 (pass_lower_resx): Convert from a global struct to a subclass of
20012 gimple_opt_pass along with...
20013 (pass_data_lower_resx): ...new pass_data instance and...
20014 (make_pass_lower_resx): ...new function.
20015 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
20016 of gimple_opt_pass along with...
20017 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
20018 (make_pass_lower_eh_dispatch): ...new function.
20019 (pass_cleanup_eh): Convert from a global struct to a subclass of
20020 gimple_opt_pass along with...
20021 (pass_data_cleanup_eh): ...new pass_data instance and...
20022 (make_pass_cleanup_eh): ...new function.
20023 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
20024 to a subclass of simple_ipa_opt_pass along with...
20025 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
20026 (make_pass_ipa_lower_emutls): ...new function.
20027 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
20028 a subclass of gimple_opt_pass along with...
20029 (pass_data_if_conversion): ...new pass_data instance and...
20030 (make_pass_if_conversion): ...new function.
20031 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
20032 subclass of gimple_opt_pass along with...
20033 (pass_data_build_ssa): ...new pass_data instance and...
20034 (make_pass_build_ssa): ...new function.
20035 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
20036 global struct to a subclass of gimple_opt_pass along with...
20037 (pass_data_loop_distribution): ...new pass_data instance and...
20038 (make_pass_loop_distribution): ...new function.
20039 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
20040 subclass of gimple_opt_pass along with...
20041 (pass_data_mudflap_1): ...new pass_data instance and...
20042 (make_pass_mudflap_1): ...new function.
20043 (pass_mudflap_2): Convert from a global struct to a subclass of
20044 gimple_opt_pass along with...
20045 (pass_data_mudflap_2): ...new pass_data instance and...
20046 (make_pass_mudflap_2): ...new function.
20047 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
20048 subclass of gimple_opt_pass along with...
20049 (pass_data_mudflap_1): ...new pass_data instance and...
20050 (make_pass_mudflap_1): ...new function.
20051 (pass_mudflap_2): Convert from a global struct to a subclass of
20052 gimple_opt_pass along with...
20053 (pass_data_mudflap_2): ...new pass_data instance and...
20054 (make_pass_mudflap_2): ...new function.
20055 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
20056 gimple_opt_pass along with...
20057 (pass_data_nrv): ...new pass_data instance and...
20058 (make_pass_nrv): ...new function.
20059 (pass_return_slot): Convert from a global struct to a subclass of
20060 gimple_opt_pass along with...
20061 (pass_data_return_slot): ...new pass_data instance and...
20062 (make_pass_return_slot): ...new function.
20063 * tree-object-size.c (pass_object_sizes): Convert from a global struct
20064 to a subclass of gimple_opt_pass along with...
20065 (pass_data_object_sizes): ...new pass_data instance and...
20066 (make_pass_object_sizes): ...new function.
20067 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
20068 global struct to a subclass of gimple_opt_pass along with...
20069 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
20071 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20072 (pass_fixup_cfg): Convert from a global struct to a subclass of
20073 gimple_opt_pass along with...
20074 (pass_data_fixup_cfg): ...new pass_data instance and...
20075 (make_pass_fixup_cfg): ...new function.
20076 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
20077 (make_pass_mudflap_1): ...new function.
20078 (pass_mudflap_2): Replace declaration with that of...
20079 (make_pass_mudflap_2): ...new function.
20080 (pass_asan): Replace declaration with that of...
20081 (make_pass_asan): ...new function.
20082 (pass_asan_O0): Replace declaration with that of...
20083 (make_pass_asan_O0): ...new function.
20084 (pass_tsan): Replace declaration with that of...
20085 (make_pass_tsan): ...new function.
20086 (pass_tsan_O0): Replace declaration with that of...
20087 (make_pass_tsan_O0): ...new function.
20088 (pass_lower_cf): Replace declaration with that of...
20089 (make_pass_lower_cf): ...new function.
20090 (pass_refactor_eh): Replace declaration with that of...
20091 (make_pass_refactor_eh): ...new function.
20092 (pass_lower_eh): Replace declaration with that of...
20093 (make_pass_lower_eh): ...new function.
20094 (pass_lower_eh_dispatch): Replace declaration with that of...
20095 (make_pass_lower_eh_dispatch): ...new function.
20096 (pass_lower_resx): Replace declaration with that of...
20097 (make_pass_lower_resx): ...new function.
20098 (pass_build_cfg): Replace declaration with that of...
20099 (make_pass_build_cfg): ...new function.
20100 (pass_early_tree_profile): Replace declaration with that of...
20101 (make_pass_early_tree_profile): ...new function.
20102 (pass_cleanup_eh): Replace declaration with that of...
20103 (make_pass_cleanup_eh): ...new function.
20104 (pass_sra): Replace declaration with that of...
20105 (make_pass_sra): ...new function.
20106 (pass_sra_early): Replace declaration with that of...
20107 (make_pass_sra_early): ...new function.
20108 (pass_early_ipa_sra): Replace declaration with that of...
20109 (make_pass_early_ipa_sra): ...new function.
20110 (pass_tail_recursion): Replace declaration with that of...
20111 (make_pass_tail_recursion): ...new function.
20112 (pass_tail_calls): Replace declaration with that of...
20113 (make_pass_tail_calls): ...new function.
20114 (pass_tree_loop): Replace declaration with that of...
20115 (make_pass_tree_loop): ...new function.
20116 (pass_tree_loop_init): Replace declaration with that of...
20117 (make_pass_tree_loop_init): ...new function.
20118 (pass_lim): Replace declaration with that of...
20119 (make_pass_lim): ...new function.
20120 (pass_tree_unswitch): Replace declaration with that of...
20121 (make_pass_tree_unswitch): ...new function.
20122 (pass_predcom): Replace declaration with that of...
20123 (make_pass_predcom): ...new function.
20124 (pass_iv_canon): Replace declaration with that of...
20125 (make_pass_iv_canon): ...new function.
20126 (pass_scev_cprop): Replace declaration with that of...
20127 (make_pass_scev_cprop): ...new function.
20128 (pass_empty_loop): Replace declaration with that of...
20129 (make_pass_empty_loop): ...new function.
20130 (pass_record_bounds): Replace declaration with that of...
20131 (make_pass_record_bounds): ...new function.
20132 (pass_graphite): Replace declaration with that of...
20133 (make_pass_graphite): ...new function.
20134 (pass_graphite_transforms): Replace declaration with that of...
20135 (make_pass_graphite_transforms): ...new function.
20136 (pass_if_conversion): Replace declaration with that of...
20137 (make_pass_if_conversion): ...new function.
20138 (pass_loop_distribution): Replace declaration with that of...
20139 (make_pass_loop_distribution): ...new function.
20140 (pass_vectorize): Replace declaration with that of...
20141 (make_pass_vectorize): ...new function.
20142 (pass_slp_vectorize): Replace declaration with that of...
20143 (make_pass_slp_vectorize): ...new function.
20144 (pass_complete_unroll): Replace declaration with that of...
20145 (make_pass_complete_unroll): ...new function.
20146 (pass_complete_unrolli): Replace declaration with that of...
20147 (make_pass_complete_unrolli): ...new function.
20148 (pass_parallelize_loops): Replace declaration with that of...
20149 (make_pass_parallelize_loops): ...new function.
20150 (pass_loop_prefetch): Replace declaration with that of...
20151 (make_pass_loop_prefetch): ...new function.
20152 (pass_iv_optimize): Replace declaration with that of...
20153 (make_pass_iv_optimize): ...new function.
20154 (pass_tree_loop_done): Replace declaration with that of...
20155 (make_pass_tree_loop_done): ...new function.
20156 (pass_ch): Replace declaration with that of...
20157 (make_pass_ch): ...new function.
20158 (pass_ccp): Replace declaration with that of...
20159 (make_pass_ccp): ...new function.
20160 (pass_phi_only_cprop): Replace declaration with that of...
20161 (make_pass_phi_only_cprop): ...new function.
20162 (pass_build_ssa): Replace declaration with that of...
20163 (make_pass_build_ssa): ...new function.
20164 (pass_build_alias): Replace declaration with that of...
20165 (make_pass_build_alias): ...new function.
20166 (pass_build_ealias): Replace declaration with that of...
20167 (make_pass_build_ealias): ...new function.
20168 (pass_dominator): Replace declaration with that of...
20169 (make_pass_dominator): ...new function.
20170 (pass_dce): Replace declaration with that of...
20171 (make_pass_dce): ...new function.
20172 (pass_dce_loop): Replace declaration with that of...
20173 (make_pass_dce_loop): ...new function.
20174 (pass_cd_dce): Replace declaration with that of...
20175 (make_pass_cd_dce): ...new function.
20176 (pass_call_cdce): Replace declaration with that of...
20177 (make_pass_call_cdce): ...new function.
20178 (pass_merge_phi): Replace declaration with that of...
20179 (make_pass_merge_phi): ...new function.
20180 (pass_split_crit_edges): Replace declaration with that of...
20181 (make_pass_split_crit_edges): ...new function.
20182 (pass_pre): Replace declaration with that of...
20183 (make_pass_pre): ...new function.
20184 (pass_profile): Replace declaration with that of...
20185 (make_pass_profile): ...new function.
20186 (pass_strip_predict_hints): Replace declaration with that of...
20187 (make_pass_strip_predict_hints): ...new function.
20188 (pass_lower_complex_O0): Replace declaration with that of...
20189 (make_pass_lower_complex_O0): ...new function.
20190 (pass_lower_complex): Replace declaration with that of...
20191 (make_pass_lower_complex): ...new function.
20192 (pass_lower_vector): Replace declaration with that of...
20193 (make_pass_lower_vector): ...new function.
20194 (pass_lower_vector_ssa): Replace declaration with that of...
20195 (make_pass_lower_vector_ssa): ...new function.
20196 (pass_lower_omp): Replace declaration with that of...
20197 (make_pass_lower_omp): ...new function.
20198 (pass_diagnose_omp_blocks): Replace declaration with that of...
20199 (make_pass_diagnose_omp_blocks): ...new function.
20200 (pass_expand_omp): Replace declaration with that of...
20201 (make_pass_expand_omp): ...new function.
20202 (pass_expand_omp_ssa): Replace declaration with that of...
20203 (make_pass_expand_omp_ssa): ...new function.
20204 (pass_object_sizes): Replace declaration with that of...
20205 (make_pass_object_sizes): ...new function.
20206 (pass_strlen): Replace declaration with that of...
20207 (make_pass_strlen): ...new function.
20208 (pass_fold_builtins): Replace declaration with that of...
20209 (make_pass_fold_builtins): ...new function.
20210 (pass_stdarg): Replace declaration with that of...
20211 (make_pass_stdarg): ...new function.
20212 (pass_early_warn_uninitialized): Replace declaration with that of...
20213 (make_pass_early_warn_uninitialized): ...new function.
20214 (pass_late_warn_uninitialized): Replace declaration with that of...
20215 (make_pass_late_warn_uninitialized): ...new function.
20216 (pass_cse_reciprocals): Replace declaration with that of...
20217 (make_pass_cse_reciprocals): ...new function.
20218 (pass_cse_sincos): Replace declaration with that of...
20219 (make_pass_cse_sincos): ...new function.
20220 (pass_optimize_bswap): Replace declaration with that of...
20221 (make_pass_optimize_bswap): ...new function.
20222 (pass_optimize_widening_mul): Replace declaration with that of...
20223 (make_pass_optimize_widening_mul): ...new function.
20224 (pass_warn_function_return): Replace declaration with that of...
20225 (make_pass_warn_function_return): ...new function.
20226 (pass_warn_function_noreturn): Replace declaration with that of...
20227 (make_pass_warn_function_noreturn): ...new function.
20228 (pass_cselim): Replace declaration with that of...
20229 (make_pass_cselim): ...new function.
20230 (pass_phiopt): Replace declaration with that of...
20231 (make_pass_phiopt): ...new function.
20232 (pass_forwprop): Replace declaration with that of...
20233 (make_pass_forwprop): ...new function.
20234 (pass_phiprop): Replace declaration with that of...
20235 (make_pass_phiprop): ...new function.
20236 (pass_tree_ifcombine): Replace declaration with that of...
20237 (make_pass_tree_ifcombine): ...new function.
20238 (pass_dse): Replace declaration with that of...
20239 (make_pass_dse): ...new function.
20240 (pass_nrv): Replace declaration with that of...
20241 (make_pass_nrv): ...new function.
20242 (pass_rename_ssa_copies): Replace declaration with that of...
20243 (make_pass_rename_ssa_copies): ...new function.
20244 (pass_sink_code): Replace declaration with that of...
20245 (make_pass_sink_code): ...new function.
20246 (pass_fre): Replace declaration with that of...
20247 (make_pass_fre): ...new function.
20248 (pass_check_data_deps): Replace declaration with that of...
20249 (make_pass_check_data_deps): ...new function.
20250 (pass_copy_prop): Replace declaration with that of...
20251 (make_pass_copy_prop): ...new function.
20252 (pass_vrp): Replace declaration with that of...
20253 (make_pass_vrp): ...new function.
20254 (pass_uncprop): Replace declaration with that of...
20255 (make_pass_uncprop): ...new function.
20256 (pass_return_slot): Replace declaration with that of...
20257 (make_pass_return_slot): ...new function.
20258 (pass_reassoc): Replace declaration with that of...
20259 (make_pass_reassoc): ...new function.
20260 (pass_rebuild_cgraph_edges): Replace declaration with that of...
20261 (make_pass_rebuild_cgraph_edges): ...new function.
20262 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
20263 (make_pass_remove_cgraph_callee_edges): ...new function.
20264 (pass_build_cgraph_edges): Replace declaration with that of...
20265 (make_pass_build_cgraph_edges): ...new function.
20266 (pass_local_pure_const): Replace declaration with that of...
20267 (make_pass_local_pure_const): ...new function.
20268 (pass_tracer): Replace declaration with that of...
20269 (make_pass_tracer): ...new function.
20270 (pass_warn_unused_result): Replace declaration with that of...
20271 (make_pass_warn_unused_result): ...new function.
20272 (pass_diagnose_tm_blocks): Replace declaration with that of...
20273 (make_pass_diagnose_tm_blocks): ...new function.
20274 (pass_lower_tm): Replace declaration with that of...
20275 (make_pass_lower_tm): ...new function.
20276 (pass_tm_init): Replace declaration with that of...
20277 (make_pass_tm_init): ...new function.
20278 (pass_tm_mark): Replace declaration with that of...
20279 (make_pass_tm_mark): ...new function.
20280 (pass_tm_memopt): Replace declaration with that of...
20281 (make_pass_tm_memopt): ...new function.
20282 (pass_tm_edges): Replace declaration with that of...
20283 (make_pass_tm_edges): ...new function.
20284 (pass_split_functions): Replace declaration with that of...
20285 (make_pass_split_functions): ...new function.
20286 (pass_feedback_split_functions): Replace declaration with that of...
20287 (make_pass_feedback_split_functions): ...new function.
20288 (pass_strength_reduction): Replace declaration with that of...
20289 (make_pass_strength_reduction): ...new function.
20290 (pass_ipa_lower_emutls): Replace declaration with that of...
20291 (make_pass_ipa_lower_emutls): ...new function.
20292 (pass_ipa_function_and_variable_visibility): Replace declaration with
20294 (make_pass_ipa_function_and_variable_visibility): ...new function.
20295 (pass_ipa_tree_profile): Replace declaration with that of...
20296 (make_pass_ipa_tree_profile): ...new function.
20297 (pass_early_local_passes): Replace declaration with that of...
20298 (make_pass_early_local_passes): ...new function.
20299 (pass_ipa_whole_program_visibility): Replace declaration with that
20301 (make_pass_ipa_whole_program_visibility): ...new function.
20302 (pass_ipa_lto_gimple_out): Replace declaration with that of...
20303 (make_pass_ipa_lto_gimple_out): ...new function.
20304 (pass_ipa_increase_alignment): Replace declaration with that of...
20305 (make_pass_ipa_increase_alignment): ...new function.
20306 (pass_ipa_inline): Replace declaration with that of...
20307 (make_pass_ipa_inline): ...new function.
20308 (pass_ipa_free_lang_data): Replace declaration with that of...
20309 (make_pass_ipa_free_lang_data): ...new function.
20310 (pass_ipa_free_inline_summary): Replace declaration with that of...
20311 (make_pass_ipa_free_inline_summary): ...new function.
20312 (pass_ipa_cp): Replace declaration with that of...
20313 (make_pass_ipa_cp): ...new function.
20314 (pass_ipa_reference): Replace declaration with that of...
20315 (make_pass_ipa_reference): ...new function.
20316 (pass_ipa_pure_const): Replace declaration with that of...
20317 (make_pass_ipa_pure_const): ...new function.
20318 (pass_ipa_pta): Replace declaration with that of...
20319 (make_pass_ipa_pta): ...new function.
20320 (pass_ipa_lto_finish_out): Replace declaration with that of...
20321 (make_pass_ipa_lto_finish_out): ...new function.
20322 (pass_ipa_tm): Replace declaration with that of...
20323 (make_pass_ipa_tm): ...new function.
20324 (pass_ipa_profile): Replace declaration with that of...
20325 (make_pass_ipa_profile): ...new function.
20326 (pass_ipa_cdtor_merge): Replace declaration with that of...
20327 (make_pass_ipa_cdtor_merge): ...new function.
20328 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
20330 (make_pass_cleanup_cfg_post_optimizing): ...new function.
20331 (pass_init_datastructures): Replace declaration with that of...
20332 (make_pass_init_datastructures): ...new function.
20333 (pass_fixup_cfg): Replace declaration with that of...
20334 (make_pass_fixup_cfg): ...new function.
20335 (pass_expand): Replace declaration with that of...
20336 (make_pass_expand): ...new function.
20337 (pass_instantiate_virtual_regs): Replace declaration with that of...
20338 (make_pass_instantiate_virtual_regs): ...new function.
20339 (pass_rtl_fwprop): Replace declaration with that of...
20340 (make_pass_rtl_fwprop): ...new function.
20341 (pass_rtl_fwprop_addr): Replace declaration with that of...
20342 (make_pass_rtl_fwprop_addr): ...new function.
20343 (pass_jump): Replace declaration with that of...
20344 (make_pass_jump): ...new function.
20345 (pass_jump2): Replace declaration with that of...
20346 (make_pass_jump2): ...new function.
20347 (pass_lower_subreg): Replace declaration with that of...
20348 (make_pass_lower_subreg): ...new function.
20349 (pass_cse): Replace declaration with that of...
20350 (make_pass_cse): ...new function.
20351 (pass_fast_rtl_dce): Replace declaration with that of...
20352 (make_pass_fast_rtl_dce): ...new function.
20353 (pass_ud_rtl_dce): Replace declaration with that of...
20354 (make_pass_ud_rtl_dce): ...new function.
20355 (pass_rtl_dce): Replace declaration with that of...
20356 (make_pass_rtl_dce): ...new function.
20357 (pass_rtl_dse1): Replace declaration with that of...
20358 (make_pass_rtl_dse1): ...new function.
20359 (pass_rtl_dse2): Replace declaration with that of...
20360 (make_pass_rtl_dse2): ...new function.
20361 (pass_rtl_dse3): Replace declaration with that of...
20362 (make_pass_rtl_dse3): ...new function.
20363 (pass_rtl_cprop): Replace declaration with that of...
20364 (make_pass_rtl_cprop): ...new function.
20365 (pass_rtl_pre): Replace declaration with that of...
20366 (make_pass_rtl_pre): ...new function.
20367 (pass_rtl_hoist): Replace declaration with that of...
20368 (make_pass_rtl_hoist): ...new function.
20369 (pass_rtl_store_motion): Replace declaration with that of...
20370 (make_pass_rtl_store_motion): ...new function.
20371 (pass_cse_after_global_opts): Replace declaration with that of...
20372 (make_pass_cse_after_global_opts): ...new function.
20373 (pass_rtl_ifcvt): Replace declaration with that of...
20374 (make_pass_rtl_ifcvt): ...new function.
20375 (pass_into_cfg_layout_mode): Replace declaration with that of...
20376 (make_pass_into_cfg_layout_mode): ...new function.
20377 (pass_outof_cfg_layout_mode): Replace declaration with that of...
20378 (make_pass_outof_cfg_layout_mode): ...new function.
20379 (pass_loop2): Replace declaration with that of...
20380 (make_pass_loop2): ...new function.
20381 (pass_rtl_loop_init): Replace declaration with that of...
20382 (make_pass_rtl_loop_init): ...new function.
20383 (pass_rtl_move_loop_invariants): Replace declaration with that of...
20384 (make_pass_rtl_move_loop_invariants): ...new function.
20385 (pass_rtl_unswitch): Replace declaration with that of...
20386 (make_pass_rtl_unswitch): ...new function.
20387 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20388 (make_pass_rtl_unroll_and_peel_loops): ...new function.
20389 (pass_rtl_doloop): Replace declaration with that of...
20390 (make_pass_rtl_doloop): ...new function.
20391 (pass_rtl_loop_done): Replace declaration with that of...
20392 (make_pass_rtl_loop_done): ...new function.
20393 (pass_web): Replace declaration with that of...
20394 (make_pass_web): ...new function.
20395 (pass_cse2): Replace declaration with that of...
20396 (make_pass_cse2): ...new function.
20397 (pass_df_initialize_opt): Replace declaration with that of...
20398 (make_pass_df_initialize_opt): ...new function.
20399 (pass_df_initialize_no_opt): Replace declaration with that of...
20400 (make_pass_df_initialize_no_opt): ...new function.
20401 (pass_reginfo_init): Replace declaration with that of...
20402 (make_pass_reginfo_init): ...new function.
20403 (pass_inc_dec): Replace declaration with that of...
20404 (make_pass_inc_dec): ...new function.
20405 (pass_stack_ptr_mod): Replace declaration with that of...
20406 (make_pass_stack_ptr_mod): ...new function.
20407 (pass_initialize_regs): Replace declaration with that of...
20408 (make_pass_initialize_regs): ...new function.
20409 (pass_combine): Replace declaration with that of...
20410 (make_pass_combine): ...new function.
20411 (pass_if_after_combine): Replace declaration with that of...
20412 (make_pass_if_after_combine): ...new function.
20413 (pass_ree): Replace declaration with that of...
20414 (make_pass_ree): ...new function.
20415 (pass_partition_blocks): Replace declaration with that of...
20416 (make_pass_partition_blocks): ...new function.
20417 (pass_match_asm_constraints): Replace declaration with that of...
20418 (make_pass_match_asm_constraints): ...new function.
20419 (pass_regmove): Replace declaration with that of...
20420 (make_pass_regmove): ...new function.
20421 (pass_split_all_insns): Replace declaration with that of...
20422 (make_pass_split_all_insns): ...new function.
20423 (pass_fast_rtl_byte_dce): Replace declaration with that of...
20424 (make_pass_fast_rtl_byte_dce): ...new function.
20425 (pass_lower_subreg2): Replace declaration with that of...
20426 (make_pass_lower_subreg2): ...new function.
20427 (pass_mode_switching): Replace declaration with that of...
20428 (make_pass_mode_switching): ...new function.
20429 (pass_sms): Replace declaration with that of...
20430 (make_pass_sms): ...new function.
20431 (pass_sched): Replace declaration with that of...
20432 (make_pass_sched): ...new function.
20433 (pass_ira): Replace declaration with that of...
20434 (make_pass_ira): ...new function.
20435 (pass_reload): Replace declaration with that of...
20436 (make_pass_reload): ...new function.
20437 (pass_clean_state): Replace declaration with that of...
20438 (make_pass_clean_state): ...new function.
20439 (pass_branch_prob): Replace declaration with that of...
20440 (make_pass_branch_prob): ...new function.
20441 (pass_value_profile_transformations): Replace declaration with that
20443 (make_pass_value_profile_transformations): ...new function.
20444 (pass_postreload_cse): Replace declaration with that of...
20445 (make_pass_postreload_cse): ...new function.
20446 (pass_gcse2): Replace declaration with that of...
20447 (make_pass_gcse2): ...new function.
20448 (pass_split_after_reload): Replace declaration with that of...
20449 (make_pass_split_after_reload): ...new function.
20450 (pass_branch_target_load_optimize1): Replace declaration with that
20452 (make_pass_branch_target_load_optimize1): ...new function.
20453 (pass_thread_prologue_and_epilogue): Replace declaration with that
20455 (make_pass_thread_prologue_and_epilogue): ...new function.
20456 (pass_stack_adjustments): Replace declaration with that of...
20457 (make_pass_stack_adjustments): ...new function.
20458 (pass_peephole2): Replace declaration with that of...
20459 (make_pass_peephole2): ...new function.
20460 (pass_if_after_reload): Replace declaration with that of...
20461 (make_pass_if_after_reload): ...new function.
20462 (pass_regrename): Replace declaration with that of...
20463 (make_pass_regrename): ...new function.
20464 (pass_cprop_hardreg): Replace declaration with that of...
20465 (make_pass_cprop_hardreg): ...new function.
20466 (pass_reorder_blocks): Replace declaration with that of...
20467 (make_pass_reorder_blocks): ...new function.
20468 (pass_branch_target_load_optimize2): Replace declaration with that
20470 (make_pass_branch_target_load_optimize2): ...new function.
20471 (pass_leaf_regs): Replace declaration with that of...
20472 (make_pass_leaf_regs): ...new function.
20473 (pass_split_before_sched2): Replace declaration with that of...
20474 (make_pass_split_before_sched2): ...new function.
20475 (pass_compare_elim_after_reload): Replace declaration with that of...
20476 (make_pass_compare_elim_after_reload): ...new function.
20477 (pass_sched2): Replace declaration with that of...
20478 (make_pass_sched2): ...new function.
20479 (pass_stack_regs): Replace declaration with that of...
20480 (make_pass_stack_regs): ...new function.
20481 (pass_stack_regs_run): Replace declaration with that of...
20482 (make_pass_stack_regs_run): ...new function.
20483 (pass_df_finish): Replace declaration with that of...
20484 (make_pass_df_finish): ...new function.
20485 (pass_compute_alignments): Replace declaration with that of...
20486 (make_pass_compute_alignments): ...new function.
20487 (pass_duplicate_computed_gotos): Replace declaration with that of...
20488 (make_pass_duplicate_computed_gotos): ...new function.
20489 (pass_variable_tracking): Replace declaration with that of...
20490 (make_pass_variable_tracking): ...new function.
20491 (pass_free_cfg): Replace declaration with that of...
20492 (make_pass_free_cfg): ...new function.
20493 (pass_machine_reorg): Replace declaration with that of...
20494 (make_pass_machine_reorg): ...new function.
20495 (pass_cleanup_barriers): Replace declaration with that of...
20496 (make_pass_cleanup_barriers): ...new function.
20497 (pass_delay_slots): Replace declaration with that of...
20498 (make_pass_delay_slots): ...new function.
20499 (pass_split_for_shorten_branches): Replace declaration with that of...
20500 (make_pass_split_for_shorten_branches): ...new function.
20501 (pass_split_before_regstack): Replace declaration with that of...
20502 (make_pass_split_before_regstack): ...new function.
20503 (pass_convert_to_eh_region_ranges): Replace declaration with that
20505 (make_pass_convert_to_eh_region_ranges): ...new function.
20506 (pass_shorten_branches): Replace declaration with that of...
20507 (make_pass_shorten_branches): ...new function.
20508 (pass_set_nothrow_function_flags): Replace declaration with that of...
20509 (make_pass_set_nothrow_function_flags): ...new function.
20510 (pass_dwarf2_frame): Replace declaration with that of...
20511 (make_pass_dwarf2_frame): ...new function.
20512 (pass_final): Replace declaration with that of...
20513 (make_pass_final): ...new function.
20514 (pass_rtl_seqabstr): Replace declaration with that of...
20515 (make_pass_rtl_seqabstr): ...new function.
20516 (pass_release_ssa_names): Replace declaration with that of...
20517 (make_pass_release_ssa_names): ...new function.
20518 (pass_early_inline): Replace declaration with that of...
20519 (make_pass_early_inline): ...new function.
20520 (pass_inline_parameters): Replace declaration with that of...
20521 (make_pass_inline_parameters): ...new function.
20522 (pass_update_address_taken): Replace declaration with that of...
20523 (make_pass_update_address_taken): ...new function.
20524 (pass_convert_switch): Replace declaration with that of...
20525 (make_pass_convert_switch): ...new function.
20526 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20527 to a subclass of simple_ipa_opt_pass along with...
20528 (pass_data_ipa_tree_profile): ...new pass_data instance and...
20529 (make_pass_ipa_tree_profile): ...new function.
20530 * tree-sra.c (pass_sra_early): Convert from a global struct to a
20531 subclass of gimple_opt_pass along with...
20532 (pass_data_sra_early): ...new pass_data instance and...
20533 (make_pass_sra_early): ...new function.
20534 (pass_sra): Convert from a global struct to a subclass of
20535 gimple_opt_pass along with...
20536 (pass_data_sra): ...new pass_data instance and...
20537 (make_pass_sra): ...new function.
20538 (pass_early_ipa_sra): Convert from a global struct to a subclass of
20539 gimple_opt_pass along with...
20540 (pass_data_early_ipa_sra): ...new pass_data instance and...
20541 (make_pass_early_ipa_sra): ...new function.
20542 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20543 subclass of gimple_opt_pass along with...
20544 (pass_data_ccp): ...new pass_data instance and...
20545 (make_pass_ccp): ...new function.
20546 (pass_fold_builtins): Convert from a global struct to a subclass of
20547 gimple_opt_pass along with...
20548 (pass_data_fold_builtins): ...new pass_data instance and...
20549 (make_pass_fold_builtins): ...new function.
20550 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20551 subclass of gimple_opt_pass along with...
20552 (pass_data_copy_prop): ...new pass_data instance and...
20553 (make_pass_copy_prop): ...new function.
20554 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20555 global struct to a subclass of gimple_opt_pass along with...
20556 (pass_data_rename_ssa_copies): ...new pass_data instance and...
20557 (make_pass_rename_ssa_copies): ...new function.
20558 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20559 subclass of gimple_opt_pass along with...
20560 (pass_data_dce): ...new pass_data instance and...
20561 (make_pass_dce): ...new function.
20562 (pass_dce_loop): Convert from a global struct to a subclass of
20563 gimple_opt_pass along with...
20564 (pass_data_dce_loop): ...new pass_data instance and...
20565 (make_pass_dce_loop): ...new function.
20566 (pass_cd_dce): Convert from a global struct to a subclass of
20567 gimple_opt_pass along with...
20568 (pass_data_cd_dce): ...new pass_data instance and...
20569 (make_pass_cd_dce): ...new function.
20570 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20571 subclass of gimple_opt_pass along with...
20572 (pass_data_dominator): ...new pass_data instance and...
20573 (make_pass_dominator): ...new function.
20574 (pass_phi_only_cprop): Convert from a global struct to a subclass of
20575 gimple_opt_pass along with...
20576 (pass_data_phi_only_cprop): ...new pass_data instance and...
20577 (make_pass_phi_only_cprop): ...new function.
20578 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20579 subclass of gimple_opt_pass along with...
20580 (pass_data_dse): ...new pass_data instance and...
20581 (make_pass_dse): ...new function.
20582 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20583 a subclass of gimple_opt_pass along with...
20584 (pass_data_forwprop): ...new pass_data instance and...
20585 (make_pass_forwprop): ...new function.
20586 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20587 struct to a subclass of gimple_opt_pass along with...
20588 (pass_data_tree_ifcombine): ...new pass_data instance and...
20589 (make_pass_tree_ifcombine): ...new function.
20590 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20591 subclass of gimple_opt_pass along with...
20592 (pass_data_ch): ...new pass_data instance and...
20593 (make_pass_ch): ...new function.
20594 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20595 subclass of gimple_opt_pass along with...
20596 (pass_data_tree_loop): ...new pass_data instance and...
20597 (make_pass_tree_loop): ...new function.
20598 (pass_tree_loop_init): Convert from a global struct to a subclass of
20599 gimple_opt_pass along with...
20600 (pass_data_tree_loop_init): ...new pass_data instance and...
20601 (make_pass_tree_loop_init): ...new function.
20602 (pass_lim): Convert from a global struct to a subclass of
20603 gimple_opt_pass along with...
20604 (pass_data_lim): ...new pass_data instance and...
20605 (make_pass_lim): ...new function.
20606 (pass_tree_unswitch): Convert from a global struct to a subclass of
20607 gimple_opt_pass along with...
20608 (pass_data_tree_unswitch): ...new pass_data instance and...
20609 (make_pass_tree_unswitch): ...new function.
20610 (pass_predcom): Convert from a global struct to a subclass of
20611 gimple_opt_pass along with...
20612 (pass_data_predcom): ...new pass_data instance and...
20613 (make_pass_predcom): ...new function.
20614 (pass_vectorize): Convert from a global struct to a subclass of
20615 gimple_opt_pass along with...
20616 (pass_data_vectorize): ...new pass_data instance and...
20617 (make_pass_vectorize): ...new function.
20618 (pass_graphite): Convert from a global struct to a subclass of
20619 gimple_opt_pass along with...
20620 (pass_data_graphite): ...new pass_data instance and...
20621 (make_pass_graphite): ...new function.
20622 (pass_graphite_transforms): Convert from a global struct to a subclass
20623 of gimple_opt_pass along with...
20624 (pass_data_graphite_transforms): ...new pass_data instance and...
20625 (make_pass_graphite_transforms): ...new function.
20626 (pass_check_data_deps): Convert from a global struct to a subclass of
20627 gimple_opt_pass along with...
20628 (pass_data_check_data_deps): ...new pass_data instance and...
20629 (make_pass_check_data_deps): ...new function.
20630 (pass_iv_canon): Convert from a global struct to a subclass of
20631 gimple_opt_pass along with...
20632 (pass_data_iv_canon): ...new pass_data instance and...
20633 (make_pass_iv_canon): ...new function.
20634 (pass_scev_cprop): Convert from a global struct to a subclass of
20635 gimple_opt_pass along with...
20636 (pass_data_scev_cprop): ...new pass_data instance and...
20637 (make_pass_scev_cprop): ...new function.
20638 (pass_record_bounds): Convert from a global struct to a subclass of
20639 gimple_opt_pass along with...
20640 (pass_data_record_bounds): ...new pass_data instance and...
20641 (make_pass_record_bounds): ...new function.
20642 (pass_complete_unroll): Convert from a global struct to a subclass of
20643 gimple_opt_pass along with...
20644 (pass_data_complete_unroll): ...new pass_data instance and...
20645 (make_pass_complete_unroll): ...new function.
20646 (pass_complete_unrolli): Convert from a global struct to a subclass of
20647 gimple_opt_pass along with...
20648 (pass_data_complete_unrolli): ...new pass_data instance and...
20649 (make_pass_complete_unrolli): ...new function.
20650 (pass_parallelize_loops): Convert from a global struct to a subclass
20651 of gimple_opt_pass along with...
20652 (pass_data_parallelize_loops): ...new pass_data instance and...
20653 (make_pass_parallelize_loops): ...new function.
20654 (pass_loop_prefetch): Convert from a global struct to a subclass of
20655 gimple_opt_pass along with...
20656 (pass_data_loop_prefetch): ...new pass_data instance and...
20657 (make_pass_loop_prefetch): ...new function.
20658 (pass_iv_optimize): Convert from a global struct to a subclass of
20659 gimple_opt_pass along with...
20660 (pass_data_iv_optimize): ...new pass_data instance and...
20661 (make_pass_iv_optimize): ...new function.
20662 (pass_tree_loop_done): Convert from a global struct to a subclass of
20663 gimple_opt_pass along with...
20664 (pass_data_tree_loop_done): ...new pass_data instance and...
20665 (make_pass_tree_loop_done): ...new function.
20666 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20667 struct to a subclass of gimple_opt_pass along with...
20668 (pass_data_cse_reciprocals): ...new pass_data instance and...
20669 (make_pass_cse_reciprocals): ...new function.
20670 (pass_cse_sincos): Convert from a global struct to a subclass of
20671 gimple_opt_pass along with...
20672 (pass_data_cse_sincos): ...new pass_data instance and...
20673 (make_pass_cse_sincos): ...new function.
20674 (pass_optimize_bswap): Convert from a global struct to a subclass of
20675 gimple_opt_pass along with...
20676 (pass_data_optimize_bswap): ...new pass_data instance and...
20677 (make_pass_optimize_bswap): ...new function.
20678 (pass_optimize_widening_mul): Convert from a global struct to a
20679 subclass of gimple_opt_pass along with...
20680 (pass_data_optimize_widening_mul): ...new pass_data instance and...
20681 (make_pass_optimize_widening_mul): ...new function.
20682 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20683 subclass of gimple_opt_pass along with...
20684 (pass_data_phiopt): ...new pass_data instance and...
20685 (make_pass_phiopt): ...new function.
20686 (pass_cselim): Convert from a global struct to a subclass of
20687 gimple_opt_pass along with...
20688 (pass_data_cselim): ...new pass_data instance and...
20689 (make_pass_cselim): ...new function.
20690 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20691 subclass of gimple_opt_pass along with...
20692 (pass_data_phiprop): ...new pass_data instance and...
20693 (make_pass_phiprop): ...new function.
20694 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20695 subclass of gimple_opt_pass along with...
20696 (pass_data_pre): ...new pass_data instance and...
20697 (make_pass_pre): ...new function.
20698 (pass_fre): Convert from a global struct to a subclass of
20699 gimple_opt_pass along with...
20700 (pass_data_fre): ...new pass_data instance and...
20701 (make_pass_fre): ...new function.
20702 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20703 subclass of gimple_opt_pass along with...
20704 (pass_data_reassoc): ...new pass_data instance and...
20705 (make_pass_reassoc): ...new function.
20706 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20707 subclass of gimple_opt_pass along with...
20708 (pass_data_sink_code): ...new pass_data instance and...
20709 (make_pass_sink_code): ...new function.
20710 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20711 subclass of gimple_opt_pass along with...
20712 (pass_data_strlen): ...new pass_data instance and...
20713 (make_pass_strlen): ...new function.
20714 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20715 struct to a subclass of gimple_opt_pass along with...
20716 (pass_data_build_alias): ...new pass_data instance and...
20717 (make_pass_build_alias): ...new function.
20718 (pass_build_ealias): Convert from a global struct to a subclass of
20719 gimple_opt_pass along with...
20720 (pass_data_build_ealias): ...new pass_data instance and...
20721 (make_pass_build_ealias): ...new function.
20722 (pass_ipa_pta): Convert from a global struct to a subclass of
20723 simple_ipa_opt_pass along with...
20724 (pass_data_ipa_pta): ...new pass_data instance and...
20725 (make_pass_ipa_pta): ...new function.
20726 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20727 subclass of gimple_opt_pass along with...
20728 (pass_data_uncprop): ...new pass_data instance and...
20729 (make_pass_uncprop): ...new function.
20730 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20731 global struct to a subclass of gimple_opt_pass along with...
20732 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20733 (make_pass_late_warn_uninitialized): ...new function.
20734 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20735 to a subclass of gimple_opt_pass along with...
20736 (pass_data_init_datastructures): ...new pass_data instance and...
20737 (make_pass_init_datastructures): ...new function.
20738 (pass_early_warn_uninitialized): Convert from a global struct to a
20739 subclass of gimple_opt_pass along with...
20740 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20741 (make_pass_early_warn_uninitialized): ...new function.
20742 (pass_update_address_taken): Convert from a global struct to a
20743 subclass of gimple_opt_pass along with...
20744 (pass_data_update_address_taken): ...new pass_data instance and...
20745 (make_pass_update_address_taken): ...new function.
20746 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20747 struct to a subclass of gimple_opt_pass along with...
20748 (pass_data_release_ssa_names): ...new pass_data instance and...
20749 (make_pass_release_ssa_names): ...new function.
20750 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20751 subclass of gimple_opt_pass along with...
20752 (pass_data_stdarg): ...new pass_data instance and...
20753 (make_pass_stdarg): ...new function.
20754 * tree-switch-conversion.c (pass_convert_switch): Convert from a
20755 global struct to a subclass of gimple_opt_pass along with...
20756 (pass_data_convert_switch): ...new pass_data instance and...
20757 (make_pass_convert_switch): ...new function.
20758 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20759 to a subclass of gimple_opt_pass along with...
20760 (pass_data_tail_recursion): ...new pass_data instance and...
20761 (make_pass_tail_recursion): ...new function.
20762 (pass_tail_calls): Convert from a global struct to a subclass of
20763 gimple_opt_pass along with...
20764 (pass_data_tail_calls): ...new pass_data instance and...
20765 (make_pass_tail_calls): ...new function.
20766 * tree-vect-generic.c (pass_lower_vector): Convert from a global
20767 struct to a subclass of gimple_opt_pass along with...
20768 (pass_data_lower_vector): ...new pass_data instance and...
20769 (make_pass_lower_vector): ...new function.
20770 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20771 gimple_opt_pass along with...
20772 (pass_data_lower_vector_ssa): ...new pass_data instance and...
20773 (make_pass_lower_vector_ssa): ...new function.
20774 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20775 to a subclass of gimple_opt_pass along with...
20776 (pass_data_slp_vectorize): ...new pass_data instance and...
20777 (make_pass_slp_vectorize): ...new function.
20778 (pass_ipa_increase_alignment): Convert from a global struct to a
20779 subclass of simple_ipa_opt_pass along with...
20780 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20781 (make_pass_ipa_increase_alignment): ...new function.
20782 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20783 gimple_opt_pass along with...
20784 (pass_data_vrp): ...new pass_data instance and...
20785 (make_pass_vrp): ...new function.
20786 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20787 subclass of simple_ipa_opt_pass along with...
20788 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20789 (make_pass_ipa_free_lang_data): ...new function.
20790 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20791 gimple_opt_pass along with...
20792 (pass_data_tsan): ...new pass_data instance and...
20793 (make_pass_tsan): ...new function.
20794 (pass_tsan_O0): Convert from a global struct to a subclass of
20795 gimple_opt_pass along with...
20796 (pass_data_tsan_O0): ...new pass_data instance and...
20797 (make_pass_tsan_O0): ...new function.
20798 * var-tracking.c (pass_variable_tracking): Convert from a global
20799 struct to a subclass of rtl_opt_pass along with...
20800 (pass_data_variable_tracking): ...new pass_data instance and...
20801 (make_pass_variable_tracking): ...new function.
20802 * web.c (pass_web): Convert from a global struct to a subclass of
20803 rtl_opt_pass along with...
20804 (pass_data_web): ...new pass_data instance and...
20805 (make_pass_web): ...new function.
20806 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20807 declaration with that of...
20808 (make_pass_mode_switch_use): ...new function.
20809 (pass_resolve_sw_modes): Replace declaration with that of...
20810 (make_pass_resolve_sw_modes): ...new function.
20811 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20812 from a global struct to a subclass of rtl_opt_pass along with...
20813 (pass_data_mode_switch_use): ...new pass_data instance and...
20814 (make_pass_mode_switch_use): ...new function.
20815 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20816 from a global struct to a subclass of rtl_opt_pass along with...
20817 (pass_data_resolve_sw_modes): ...new pass_data instance and...
20818 (make_pass_resolve_sw_modes): ...new function.
20819 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20820 struct to a subclass of rtl_opt_pass along with...
20821 (pass_data_insert_vzeroupper): ...new pass_data instance and...
20822 (make_pass_insert_vzeroupper): ...new function.
20823 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20824 global struct to a subclass of rtl_opt_pass along with...
20825 (pass_data_work_around_errata): ...new pass_data instance and...
20826 (make_pass_work_around_errata): ...new function.
20827 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20828 struct to a subclass of rtl_opt_pass along with...
20829 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20830 (make_pass_mips_machine_reorg2): ...new function.
20832 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20834 * passes.c (pass_manager::operator new): New.
20836 2013-08-05 David Malcolm <dmalcolm@redhat.com>
20838 Handwritten part of conversion of passes to C++ classes.
20840 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20841 (toplev.o): Add dep on PASS_MANAGER_H.
20842 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20843 of early local pases to reflect this moving from a global to a
20844 member of gcc::pass_manager.
20845 (cgraph_add_new_function): Likewise.
20846 * lto-cgraph.c (lto_output_node): Update for conversion of
20847 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20848 * passes.c (opt_pass::clone): New.
20849 (opt_pass::gate): New.
20850 (opt_pass::execute): New.
20851 (opt_pass::opt_pass): New.
20852 (pass_manager::execute_early_local_passes): New.
20853 (pass_manager::execute_pass_mode_switching): new.
20854 (finish_optimization_passes): Convert to...
20855 (pass_manager::finish_optimization_passes): ...this.
20856 (finish_optimization_passes): Update for conversion of passes to
20858 (register_dump_files_1): Use has_gate since we cannot portably
20859 check a vtable entry against NULL.
20860 (dump_one_pass): Likewise.
20861 (ipa_write_summaries_2): Likewise.
20862 (ipa_write_optimization_summaries_1): Likewise.
20863 (ipa_read_summaries_1): Likewise.
20864 (ipa_read_optimization_summaries_1): Likewise.
20865 (execute_ipa_stmt_fixups): Likewise.
20866 (pass_manager::pass_manager): Rewrite pass-creation, invoking
20867 pass-creation functions rather than wiring up globals, and
20868 storing the results in fields of pass_manager generated using
20869 pass-instances.def.
20870 (pass_manager::dump_profile_report): Update for conversion of
20871 passes to C++ classes.
20872 (pass_manager::execute_ipa_summary_passes): Likewise.
20873 (execute_one_ipa_transform_pass): Likewise.
20874 (execute_one_pass): Use has_gate and has_execute since we cannot
20875 portably check a vtable entry against NULL.
20876 * pass_manager.h (pass_manager::finish_optimization_passes): New.
20877 (pass_manager): Use pass-instances.def to add fields for the
20878 various pass instances.
20879 * toplev.c (finalize): Update for move of
20880 finish_optimization_passes to a method of gcc::pass_manager.
20881 * toplev.h (finish_optimization_passes): Move to method of class
20883 * tree-pass.h (struct pass_data): New.
20884 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20885 (opt_pass::gate): Convert to virtual function.
20886 (opt_pass::~opt_pass): New.
20887 (opt_pass::clone): New.
20888 (opt_pass::execute): Convert to virtual function.
20889 (opt_pass::opt_pass): New.
20890 (opt_pass::ctxt_): new.
20891 (gimple_opt_pass): Convert to subclass of opt_pass.
20892 (gimple_opt_pass::gimple_opt_pass): New.
20893 (rtl_opt_pass): Convert to subclass of opt_pass.
20894 (rtl_opt_pass::rtl_opt_pass): New.
20895 (ipa_opt_pass_d): Convert to subclass of opt_pass.
20896 (ipa_opt_pass_d::ipa_opt_pass_d): New.
20897 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20898 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20899 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20900 invocation of pass_mode_switching to reflect this moving from a
20901 global to a member of gcc::pass_manager.
20902 (ix86_option_override): Rework how pass_insert_vzeroupper is
20903 added to the pass_manager to reflect autogenerated changes.
20904 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20906 2013-08-05 Richard Earnshaw <rearnsha@arm.com>
20908 PR rtl-optimization/57708
20909 * recog.c (peep2_find_free_register): Validate all regs in a
20912 2013-08-05 Jan Hubicka <jh@suse.cz>
20915 * cgraph.c (verify_cgraph_node): Accept local flags from other
20917 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20918 (function_and_variable_visibility): Likewise.
20919 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20921 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20923 * graph.c (init_graph_slim_pretty_print): Remove.
20924 (print_graph_cfg): Do not call it. Use local pretty printer.
20925 (start_graph_dump): Likewise.
20927 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20929 * gimple-pretty-print.c (buffer): Remove.
20930 (initialized): Likewise.
20931 (maybe_init_pretty_print): Likewise.
20932 (print_gimple_stmt): Do not call it. Use non-static local
20933 pretty_printer variable.
20934 (print_gimple_expr): Likewise.
20935 (print_gimple_seq): Likewise.
20936 (gimple_dump_bb): Likewise.
20938 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
20940 * asan.c (asan_pp): Remove.
20941 (asan_pp_initialized): Likewise.
20942 (asan_pp_initialize): Likewise.
20943 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
20944 (asan_emit_stack_protection): Tidy. Use local pretty printer.
20945 (asan_add_global): Likewise.
20947 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20949 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
20950 * diagnostic.h (diagnostic_flush_buffer): Adjust.
20951 * pretty-print.c (pp_formatted_text_data): Likewise.
20952 (pp_indent): Rename from pp_base_indent.
20953 (pp_format): Rename from pp_base_format.
20954 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20955 (pp_format_verbatim): Rename from pp_base_format_verbatim.
20956 (pp_flush): Rename from pp_base_flush.
20957 (pp_set_line_maximum_length): Rename from
20958 pp_base_set_line_maximum_length.
20959 (pp_clear_output_area): Rename from pp_base_clear_output_area.
20960 (pp_set_prefix): Rename from pp_base_set_prefix.
20961 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20962 (pp_emit_prefix): Rename from pp_base_emit_prefix.
20963 (pp_append_text): Rename from pp_base_append_text.
20964 (pp_formatted_text): Rename from pp_base_formatted_text.
20965 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20966 (pp_remaining_character_count_for_line): Rename from
20967 pp_base_remaining_character_count_for_line.
20968 (pp_newline): Rename from pp_base_newline.
20969 (pp_character): Rename from pp_base_character.
20970 (pp_string): Rename from pp_base_string.
20971 (pp_maybe_space): Rename from pp_base_maybe_space.
20972 * asan.c (asan_pp_string): Adjust.
20973 (asan_emit_stack_protection): Likewise.
20974 (asan_add_global): Likewise.
20975 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20976 * tree-mudflap.c (mf_varname_tree): Likewise.
20977 * tree-pretty-print.c (pp_tree_identifier): Rename from
20978 pp_base_tree_identifier.
20979 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20980 Declare as function.
20982 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
20984 * pretty-print.h (pp_bar_bar): New.
20985 (pp_ampersand_ampersand): Likewise.
20986 (pp_less_equal): Likewise.
20987 (pp_greater_equal): Likewise.
20988 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20989 printer functions instead of pp_string or operators and punctuators.
20990 (dump_gimple_call): Likewise.
20991 (dump_gimple_omp_for): Likewise.
20992 (dump_gimple_transaction): Likewise.
20993 (dump_gimple_phi): Likewise.
20994 (pp_gimple_stmt_1): Likewise.
20995 * sched-vis.c (print_insn): Likewise.
20996 * tree-mudflap.c (mf_varname_tree): Likewise.
20997 * tree-pretty-print.c (dump_block_node): Likewise.
20998 (dump_generic_node): Likewise.
21000 2013-08-02 Jan Hubicka <jh@suse.cz>
21002 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
21004 * lto-streamer-out.c (tree_is_indexable): Results decls and
21005 parm decls are not indexable.
21006 (DFS_write_tree_body): Do not follow args and results.
21007 (hash_tree): Likewise.
21008 (output_functions): Rearrange so struct function is needed
21009 only when real body is output; be able to also ouptut abstract
21010 functions; output DECL_ARGUMENTS and DECL_RESULT.
21011 (lto_output): When not in WPA, ale store abstract functions.
21012 (write_symbol): Do not care about RESULT_DECL.
21013 (output_symbol_p): Handle correctly sbtract decls.
21014 * lto-streamer-in.c (input_function): Rearrange so struct
21015 function can be NULL at entry; allow streaming of
21016 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
21017 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
21018 sanity check during LTO.
21019 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
21020 RESULT_DECl and DECL_ARGUMENTS.
21021 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
21024 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
21026 * pretty-print.h (pp_underscore): New.
21028 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
21029 printer functions instead of pp_character.
21030 (dump_binary_rhs): Likewise.
21031 (dump_ternary_rhs): Likewise.
21032 (dump_gimple_call_args): Likewise.
21033 (pp_points_to_solution): Likewise.
21034 (dump_gimple_call): Likewise.
21035 (dump_gimple_switch): Likewise.
21036 (dump_gimple_cond): Likewise.
21037 (dump_gimple_bind): Likewise.
21038 (dump_gimple_try): Likewise.
21039 (dump_gimple_omp_for): Likewise.
21040 (dump_gimple_omp_continue): Likewise.
21041 (dump_gimple_omp_single): Likewise.
21042 (dump_gimple_omp_sections): Likewise.
21043 (dump_gimple_omp_block): Likewise.
21044 (dump_gimple_omp_critical): Likewise.
21045 (dump_gimple_transaction): Likewise.
21046 (dump_gimple_asm): Likewise.
21047 (dump_gimple_phi): Likewise.
21048 (dump_gimple_omp_parallel): Likewise.
21049 (dump_gimple_omp_task): Likewise.
21050 (dump_gimple_omp_atomic_load): Likewise.
21051 (dump_gimple_omp_atomic_store): Likewise.
21052 (dump_gimple_mem_ops): Likewise.
21053 (pp_gimple_stmt_1): Likewise.
21054 (pp_cfg_jump): Likewise.
21055 (dump_implicit_edges): Likewise.
21056 (gimple_dump_bb_for_graph): Likewise.
21057 * graph.c (draw_cfg_node): Likewise.
21058 * langhooks.c (lhd_print_error_function): Likewise.
21059 * sched-vis.c (print_exp): Likewise.
21060 (print_value): Likewise.
21061 (print_pattern): Likewise.
21062 (print_insn): Likewise.
21063 (rtl_dump_bb_for_graph): Likewise.
21064 * tree-pretty-print.c (dump_function_declaration): Likewise.
21065 (dump_array_domain): Likewise.
21066 (dump_omp_clause): Likewise.
21067 (dump_location): Likewise.
21068 (dump_generic_node): Likewise.
21069 (print_struct_decl): Likewise.
21070 * diagnostic.c (diagnostic_show_locus): Use pp_space.
21072 2013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21074 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
21075 candidate table when replacing a candidate statement.
21076 (replace_rhs_if_not_dup): Likewise.
21077 (replace_one_candidate): Likewise.
21079 2013-08-02 Jan Hubicka <jh@suse.cz>
21080 Martin Liska <marxin.liska@gmail.com>
21082 * cgraphunit.c (add_new_function): Fix logic when adding from
21084 (assemble_thunk): Rename to ...
21085 (expand_thunk); .. this one; export; get it working with
21086 general functions; make produced gimple valid.
21087 * cgraph.h (expand_thunk): Declare.
21089 2013-08-02 Jan Hubicka <jh@suse.cz>
21091 * ipa-cp.c (gather_context_independent_values): Use
21092 ipa_get_param_move_cost.
21093 (get_replacement_map): Remove PARAM; move parameter folding
21095 (create_specialized_node): Update.
21096 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
21097 assert that we have gimple body; update move_cost.
21098 (count_formal_params): Assert that we have gimple body.
21099 (ipa_dump_param): New function.
21100 (ipa_alloc_node_params): Break out from ...
21101 (ipa_initialize_node_params): ... here.
21102 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
21103 (ipa_write_node_info): Stream move costs.
21104 (ipa_read_node_info): Read move costs.
21105 (ipa_update_after_lto_read): Do not recompute node params.
21106 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
21107 (ipa_get_param): Check we are not in WPA.
21108 (ipa_get_param_move_cost): New.
21109 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
21110 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
21111 parm numbers to be present.
21113 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21115 PR rtl-optimization/58048
21116 * lra-constraints.c (process_alt_operands): Don't check asm
21117 operand on register.
21119 2013-08-02 Eric Botcazou <ebotcazou@adacore.com>
21121 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
21122 the implied StoreLoad barrier for atomic operations if before.
21124 2013-08-02 Jan Hubicka <jh@suse.cz>
21125 Martin Liska <marxin.liska@gmail.com>
21127 * cgraph.c (cgraph_function_body_availability): Do not check
21129 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
21130 symtab_node_availability): Declare.
21131 * ipa.c (can_replace_by_local_alias): New.
21132 (function_and_variable_visibility): Use it.
21133 * symtab.c (symtab_for_node_and_aliases,
21134 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
21136 2013-08-02 Vladimir Makarov <vmakarov@redhat.com>
21138 PR rtl-optimization/57963
21139 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
21140 (lra_constraints): Use them.
21142 2013-08-02 Sofiane Naci <sofiane.naci@arm.com>
21144 * config/arm/types.md (define_attr "type"): Add "load_acq"
21146 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
21148 (cortex_a53_store1): Likewise.
21150 2013-08-01 Jan Hubicka <jh@suse.cz>
21152 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
21153 partitions are not needed.
21155 2013-08-01 Uros Bizjak <ubizjak@gmail.com>
21157 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
21158 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
21159 MAYBE_NON_Q_CLASS_P where appropriate.
21161 2013-08-01 Jan Hubicka <jh@suse.cz>
21163 * cgraph.h (release_function_body): Declare.
21164 * tree.c (free_lang_data_in_decl): Free, parameters and return values
21165 of unused delcarations.
21167 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21169 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
21170 RTL form when subtracting a constant.
21172 2013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21174 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
21175 Generate canonical plus rtx with negated immediate instead of minus
21177 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
21179 2013-08-01 Jan Hubicka <jh@suse.cz>
21181 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
21182 (cgraph_release_function_body): Likewise.
21183 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
21184 * cgraph.h (cgrpah_node): Rename abstract_and_needed
21185 to used_as_abstract_origin.
21186 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
21187 symbols used as abstract origins.
21188 * cgraphunit.c (analyze_functions): Update.
21189 * ipa.c (symtab_remove_unreachable_nodes): Recompute
21190 used_as_abstract_origin.
21191 * tree-inline.c (tree_function_versioning): Update
21192 used_as_abstract_origin; be ready for DECL_RESULT and
21193 DECL_ARGUMENTS to be NULL.
21195 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
21196 for abstract functions.
21197 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
21200 2013-08-01 Jan Hubicka <jh@suse.cz>
21202 * profile.c (compute_value_histograms): Fix thinko.
21204 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21206 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
21207 aarch-common-protos.h to extra_headers.
21208 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21209 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
21210 * config/aarch64/t-aarch64 (aarch-common.o): Define.
21212 2013-08-01 Sofiane Naci <sofiane.naci@arm.com>
21214 * config/aarch64/aarch64.md (define_attr "type"): Delete.
21215 Include "../arm/types.md". Define "type" attribute for all patterns.
21216 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
21219 2013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21221 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
21222 to support power8 load fusion.
21223 (fusion_gpr_mem_load): Likewise.
21225 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
21227 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
21228 declarations for power8 load fusion.
21229 (emit_fusion_gpr_load): Likewise.
21231 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21232 tuning for power8, turn on fusion mode by default. Turn on sign
21233 extending fusion mode if normal fusion mode is on, and we are at
21235 (fusion_gpr_load_p): New function, return true if we can fuse an
21236 addis instruction with a dependent load to a GPR.
21237 (emit_fusion_gpr_load): Emit the instructions for power8 load
21240 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
21241 (VSX load fusion peepholes): New peepholes to fuse together an
21242 addi instruction with a VSX load instruction.
21244 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
21245 peepholes to fuse an addis instruction with a load to a GPR base
21246 register. If we are supporting sign extending fusions, convert
21247 sign extending loads to zero extending loads and add an explicit
21250 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21252 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
21253 aarch-common-protos.h to extra_headers.
21254 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
21255 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
21256 (arm_early_store_addr_dep): Likewise.
21257 (arm_no_early_alu_shift_dep): Likewise.
21258 (arm_no_early_alu_shift_value_dep): Likewise.
21259 (arm_no_early_mul_dep): Likewise.
21260 (arm_no_early_store_addr_dep): Likewise.
21261 (arm_mac_accumulator_is_mul_result): Likewise.
21262 (arm_mac_accumulator_is_result): Likewise.
21263 * config/arm/aarch-common.c: ... here. New file.
21264 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
21266 (arm_early_store_addr_dep): Likewise.
21267 (arm_no_early_alu_shift_dep): Likewise.
21268 (arm_no_early_alu_shift_value_dep): Likewise.
21269 (arm_no_early_mul_dep): Likewise.
21270 (arm_no_early_store_addr_dep): Likewise.
21271 (arm_mac_accumulator_is_mul_result): Likewise.
21272 (arm_mac_accumulator_is_result): Likewise.
21273 * config/arm/aarch-common-protos.h: ... here. New file.
21274 * config/arm/t-arm (aarch-common.o): Define.
21276 2013-07-31 Sofiane Naci <sofiane.naci@arm.com>
21278 * config/arm/arm.md: Include new file "types.md".
21279 (define_attr "type"): Move from here to ...
21280 (define_attr "mul32"): Likewise.
21281 (define_attr "mul64"): Likewise.
21282 * config/arm/types.md: ... here. New file.
21284 2013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
21286 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
21287 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
21289 2013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21291 * gen-pass-instances.awk: Fix offset of substr().
21293 2013-07-31 David Malcolm <dmalcolm@redhat.com>
21295 * Makefile.in (pass-instances.def): New.
21296 (passes.o): Replace dependency on passes.def with one on
21299 * gen-pass-instances.awk: New.
21301 * passes.c (pass_manager::pass_manager): Use pass-instances.def
21302 rather than passes.def, updating local definition of NEXT_PASS
21303 macro to add an extra NUM parameter (currently unused).
21305 2013-07-30 David Malcolm <dmalcolm@redhat.com>
21307 * Makefile.in (PASS_MANAGER_H): New.
21308 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
21309 (passes.o): Likewise.
21310 (statistics.o): Likewise.
21311 (cgraphunit.o): Likewise.
21312 (context.o): Depend on PASS_MANAGER_H.
21314 * pass_manager.h: New.
21316 * cgraphunit.c (cgraph_add_new_function): Update for moves
21317 of globals to fields of pass_manager.
21318 (analyze_function): Likewise.
21319 (expand_function): Likewise.
21320 (ipa_passes): Likewise.
21321 (compile): Likewise.
21323 * context.c (context::context): New.
21324 * context.h (context::context): New.
21325 (context::get_passes): New.
21326 (context::passes_): New.
21328 * lto-cgraph.c (input_node): Update for moves of globals to
21329 fields of pass_manager.
21331 * passes.c (all_passes): Remove, in favor of a field of the
21332 same name within the new class pass_manager.
21333 (all_small_ipa_passes): Likewise.
21334 (all_lowering_passes): Likewise.
21335 (all_regular_ipa_passes): Likewise.
21336 (all_late_ipa_passes): Likewise.
21337 (all_lto_gen_passes): Likewise.
21338 (passes_by_id): Likewise.
21339 (passes_by_id_size): Likewise.
21340 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21341 the new class pass_manager.
21342 (set_pass_for_id): Convert to...
21343 (pass_manager::set_pass_for_id): ...method.
21344 (get_pass_for_id): Convert to...
21345 (pass_manager::get_pass_for_id): ...method.
21346 (register_one_dump_file): Move body of implementation into...
21347 (pass_manager::register_one_dump_file): ...here.
21348 (register_dump_files_1): Convert to...
21349 (pass_manager::register_dump_files_1): ...method.
21350 (register_dump_files): Convert to...
21351 (pass_manager::register_dump_files): ...method.
21352 (create_pass_tab): Update for moves of globals to fields of
21354 (dump_passes): Move body of implementation into...
21355 (pass_manager::dump_passes): ...here.
21356 (register_pass): Move body of implementation into...
21357 (pass_manager::register_pass): ...here.
21358 (init_optimization_passes): Convert into...
21359 (pass_manager::pass_manager): ...constructor for new
21360 pass_manager class, and initialize the pass_lists array.
21361 (check_profile_consistency): Update for moves of globals to
21362 fields of pass_manager.
21363 (dump_profile_report): Move body of implementation into...
21364 (pass_manager::dump_profile_report): ...here.
21365 (ipa_write_summaries_1): Update for moves of pass lists from
21366 being globals to fields of pass_manager.
21367 (ipa_write_optimization_summaries): Likewise.
21368 (ipa_read_summaries): Likewise.
21369 (ipa_read_optimization_summaries): Likewise.
21370 (execute_all_ipa_stmt_fixups): Likewise.
21372 * statistics.c (statistics_fini): Update for moves of globals to
21373 fields of pass_manager.
21375 * toplev.c (general_init): Replace call to
21376 init_optimization_passes with construction of the pass_manager
21379 * tree-pass.h (all_passes): Remove, in favor of a field of the
21380 same name within the new class pass_manager.
21381 (all_small_ipa_passes): Likewise.
21382 (all_lowering_passes): Likewise.
21383 (all_regular_ipa_passes): Likewise.
21384 (all_lto_gen_passes): Likewise.
21385 (all_late_ipa_passes): Likewise.
21386 (passes_by_id): Likewise.
21387 (passes_by_id_size): Likewise.
21388 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21389 the new class pass_manager.
21390 (get_pass_for_id): Remove.
21392 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21394 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21397 2013-07-30 Richard Earnshaw <rearnsha@arm.com>
21399 * arm.md (mulhi3): New expand pattern.
21401 2013-07-30 Jan Hubicka <jh@suse.cz>
21402 Martin Liska <marxin.liska@gmail.com>
21404 * profile.c (compute_value_histograms): Do not ICE when
21405 there is mismatch only on some counters.
21407 2013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21409 PR rtl-optimization/57637
21410 * function.c (move_insn_for_shrink_wrap): Also check the
21411 GEN set of the LIVE problem for the liveness analysis
21412 if it exists, otherwise give up.
21414 2013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21416 PR tree-optimization/57993
21417 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21418 replaced statement in the candidate table.
21419 (phi_add_costs): Return infinite cost when the hidden basis does
21420 not dominate all phis on which the candidate is dependent.
21421 (replace_one_candidate): Record replaced statement in the
21424 2013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
21426 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21427 (ashlv2si3): New expander.
21428 (*ashlv2si3_i): New define_insn_and_split.
21429 * predicates.md (float_operation): Allow patterns with three
21430 basic sub-patterns.
21432 PR rtl-optimization/58021
21433 * mode-switching.c (create_pre_exit): Always split off preceding
21434 insns if we are not at the basic block head.
21436 2013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
21438 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21439 (UCLIBC_DYNAMIC_LINKER): New macro.
21440 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21442 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21443 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
21445 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21446 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21447 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21448 for SF and DF modes. Use ieee_quad_format for TF mode.
21449 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21450 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21451 (mips_option_override): Handle `-mnan=legacy'.
21452 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21453 `-mabs=2008' and `-mnan=2008'.
21454 (OPTION_DEFAULT_SPECS): Add "nan" default.
21455 (ASM_SPEC): Handle `-mnan='.
21456 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21457 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21458 comment accordingly.
21459 (neg<mode>2): Likewise.
21460 * config/mips/mips.opt (mabs, mnan): New options.
21461 * doc/install.texi (Configuration): Document `--with-nan=' option.
21462 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21464 (MIPS Options): Document them.
21465 * config.gcc <mips*-*-*>: Handle `--with-nan='.
21466 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21467 * configure: Regenerate.
21468 * config.in: Regenerate.
21470 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21472 * config/i386/i386.md (float post-reload splitters): Do not check
21473 for subregs of SSE registers.
21475 2013-07-29 Uros Bizjak <ubizjak@gmail.com>
21476 H.J. Lu <hongjiu.lu@intel.com>
21480 * config/i386/i386.md (post-reload splitter
21481 to avoid partial SSE reg dependency stalls): New pattern.
21483 2013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21485 * config/s390/s390.md ("movcc"): Swap load and store instructions.
21487 2013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
21489 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21490 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21492 2013-07-26 Cary Coutant <ccoutant@google.com>
21494 * dwarf2out.c (die_checksum_ordered): Don't include template
21495 instantiations in signature.
21496 (is_template_parameter): New function.
21497 (is_template_instantiation): New function.
21498 (generate_skeleton_bottom_up): Don't include template instantiations
21500 (generate_skeleton): Likewise.
21501 (break_out_comdat_types): Move recursive call to break out nested
21503 (prune_unused_types_mark_generic_parms_dies): Call
21504 is_template_parameter.
21506 2013-07-26 Ian Bolton <ian.bolton@arm.com>
21508 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21509 uses vector registers.
21510 * config/aarch64/iterators.md: Add attributes rtn and vas.
21512 2013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21513 Richard Earnshaw <richard.earnshaw@arm.com>
21515 * combine.c (simplify_comparison): Re-canonicalize operands
21517 * config/arm/arm.md (movcond_addsi): New splitter.
21519 2013-07-25 Sterling Augustine <saugustine@google.com>
21521 * dwarf2out.c (size_of_pubnames): Move code to...
21522 (include_pubname_in_output): ...here. New.
21523 (want_pubnames): Rearrange.
21524 (output_pubnames): Call include_pubname_in_output. Move assertion.
21526 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21528 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21530 2013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
21533 * doc/extend.texi: Remove obsolete builtins. Fix
21534 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21536 2013-07-25 Jan Hubicka <jh@suse.cz>
21538 * cgraph.c (release_function_body): Break out from ...
21539 (cgraph_release_function_body): ... this one; also release DECL_RESULT
21540 and DECL_ARGUMENTS.
21541 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21542 old_tree in the map.
21543 (create_specialized_node): Update.
21544 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21546 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21547 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21548 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21549 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21552 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21554 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21555 addsi3_carryin_alt2_<optab>): Correct output template.
21557 2013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21559 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21560 Adjust for arm_restrict_it.
21561 Remove trailing whitespace.
21563 2013-07-25 Mark Kettenis <kettenis@openbsd.org>
21565 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21566 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21568 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21570 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
21572 PR rtl-optimization/57960
21573 * lra-constraints.c (process_alt_operands): Use the right mode
21574 when checking strict_low.
21576 2013-07-25 Jan Hubicka <jh@suse.cz>
21578 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21579 * cgraph.c (cgraph_remove_node): Do not release function body
21580 when in cgraph streaming.
21581 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21582 in other partitions are not considered reachable; fix handling of
21585 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21587 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21589 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21594 * config/arm/arm.md ("*sibcall_insn): Replace use of
21595 Ss with US. Adjust output for v5 and v4t.
21596 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21598 * config/arm/constraints.md ("Ss"): Rename to US.
21600 2013-07-25 Terry Guo <terry.guo@arm.com>
21602 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21603 shift_add/shift_sub0/shift_sub1 RTXs.
21605 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
21606 Anton Blanchard <anton@au1.ibm.com>
21608 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21609 (altivec_vpks<VI_char>ss): Likewise.
21610 (altivec_vpks<VI_char>us): Likewise.
21611 (altivec_vpku<VI_char>us): Likewise.
21612 (altivec_vpku<VI_char>um): Likewise.
21614 2013-07-24 David Malcolm <dmalcolm@redhat.com>
21616 Introduce context class.
21618 * Makefile.in (CONTEXT_H): New.
21619 (OBJS): Add context.o.
21620 (toplev.o): Add CONTEXT_H to dependencies.
21623 * toplev.c (general_init): Create the singleton gcc::context instance.
21629 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
21631 PR rtl-optimization/57968
21632 * mode-switching.c (create_pre_exit): Allow instructions that
21633 don't set a return register to need a non-exit mode.
21635 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21636 Anton Blanchard <anton@au1.ibm.com>
21638 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21639 operands to vperm for little endian.
21640 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21641 of lvsl to create the control mask for a vperm for little endian.
21643 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21644 Anton Blanchard <anton@au1.ibm.com>
21646 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21647 two operands for little-endian.
21649 2013-07-23 Steve Ellcey <sellcey@mips.com>
21651 * config/mips/mips.c (mips_case_values_threshold): New.
21652 (TARGET_CASE_VALUES_THRESHOLD): Define.
21654 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21655 Anton Blanchard <anton@au1.ibm.com>
21657 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21658 selection of field for vector splat in little endian mode.
21660 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21662 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21663 expanders to rs6000.md.
21664 (ior<mode>3): Likewise.
21665 (and<mode>3): Likewise.
21666 (one_cmpl<mode>2): Likewise.
21667 (nor<mode>3): Likewise.
21668 (andc<mode>3): Likewise.
21669 (eqv<mode>3): Likewise.
21670 (nand<mode>3): Likewise.
21671 (orc<mode>3): Likewise.
21673 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21676 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21677 to split multi-word logical operations.
21678 (rs6000_split_logical_di): Likewise.
21679 (rs6000_split_logical): Likewise.
21681 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21682 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21683 and allow TImode operations in 32-bit.
21684 (vsx_and<mode>3_64bit): Likewise.
21685 (vsx_ior<mode>3_32bit): Likewise.
21686 (vsx_ior<mode>3_64bit): Likewise.
21687 (vsx_xor<mode>3_32bit): Likewise.
21688 (vsx_xor<mode>3_64bit): Likewise.
21689 (vsx_one_cmpl<mode>2_32bit): Likewise.
21690 (vsx_one_cmpl<mode>2_64bit): Likewise.
21691 (vsx_nor<mode>3_32bit): Likewise.
21692 (vsx_nor<mode>3_64bit): Likewise.
21693 (vsx_andc<mode>3_32bit): Likewise.
21694 (vsx_andc<mode>3_64bit): Likewise.
21695 (vsx_eqv<mode>3_32bit): Likewise.
21696 (vsx_eqv<mode>3_64bit): Likewise.
21697 (vsx_nand<mode>3_32bit): Likewise.
21698 (vsx_nand<mode>3_64bit): Likewise.
21699 (vsx_orc<mode>3_32bit): Likewise.
21700 (vsx_orc<mode>3_64bit): Likewise.
21702 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21703 logical types in GPRs.
21705 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21706 logical insns to rs6000.md, and allow TImode operations in
21708 (altivec_ior<mode>3): Likewise.
21709 (altivec_xor<mode>3): Likewise.
21710 (altivec_one_cmpl<mode>2): Likewise.
21711 (altivec_nor<mode>3): Likewise.
21712 (altivec_andc<mode>3): Likewise.
21714 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21715 attributes for moving the 128-bit logical operations into
21717 (BOOL_REGS_OUTPUT): Likewise.
21718 (BOOL_REGS_OP1): Likewise.
21719 (BOOL_REGS_OP2): Likewise.
21720 (BOOL_REGS_UNARY): Likewise.
21721 (BOOL_REGS_AND_CR0): Likewise.
21722 (one_cmpl<mode>2): Add support for DI logical operations on
21723 32-bit, splitting the operations to 32-bit.
21724 (anddi3): Likewise.
21725 (iordi3): Likewise.
21726 (xordi3): Likewise.
21727 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21728 changes to combine the 32/64-bit code, allow logical operations on
21729 TI mode in 32-bit, and to use similar match_operator patterns like
21730 scalar mode uses. Combine the Altivec and VSX code for logical
21731 operations, and move it here.
21732 (ior<mode>3, 128-bit types): Likewise.
21733 (xor<mode>3, 128-bit types): Likewise.
21734 (one_cmpl<mode>3, 128-bit types): Likewise.
21735 (nor<mode>3, 128-bit types): Likewise.
21736 (andc<mode>3, 128-bit types): Likewise.
21737 (eqv<mode>3, 128-bit types): Likewise.
21738 (nand<mode>3, 128-bit types): Likewise.
21739 (orc<mode>3, 128-bit types): Likewise.
21740 (and<mode>3_internal): Likewise.
21741 (bool<mode>3_internal): Likewise.
21742 (boolc<mode>3_internal1): Likewise.
21743 (boolc<mode>3_internal2): Likewise.
21744 (boolcc<mode>3_internal1): Likewise.
21745 (boolcc<mode>3_internal2): Likewise.
21746 (eqv<mode>3_internal1): Likewise.
21747 (eqv<mode>3_internal2): Likewise.
21748 (one_cmpl1<mode>3_internal): Likewise.
21750 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21752 * config/microblaze/microblaze.c (microblaze_expand_prologue):
21753 Rename flag_stack_usage to flag_stack_usage_info.
21755 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
21757 * config/microblaze/sync.md: New file.
21758 * config/microblaze/microblaze.md: Include sync.md
21759 * config/microblaze/microblaze.c: Add print_operand 'y'.
21760 * config/microblaze/constraints.md: Add memory_contraint
21761 'Q' which is a single register.
21763 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
21765 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21767 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21769 * reload.c (find_reloads): Exit loop once we find this operand
21770 cannot be reloaded somehow for this alternative.
21772 * reload.c (find_reloads): Exit loop once we find a hard register.
21774 * rtlanal.c (computed_jump_p): Exit loop once we find label
21777 * i386.c (ix86_pad_returns): Exit loop after setting replace.
21779 * cfgloopmanip.c (remove_path): Exit loop after setting
21782 * gensupport.c (subst_dup): Avoid loop if code is not
21783 MATCH_DUP nor MATCH_OP_DUP.
21785 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
21787 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21789 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21791 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21792 true for SP_REGNUM if mode == ptr_mode.
21793 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21794 with value R0_REGNUM + 31.
21796 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21798 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21799 pad pointer-typed argument downward.
21801 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21803 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21804 and __ILP32__ when the ILP32 model is in use.
21806 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21808 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21809 (aarch64_load_symref_appropriately): In the case of
21810 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21811 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21812 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21813 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21814 if 'mode' doesn't equal to 'ptr_mode'.
21815 (aarch64_output_mi_thunk): Add an assertion on the alignment of
21816 'vcall_offset'; change to call aarch64_emit_move differently depending
21817 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21818 to calculate the upper bound of 'vcall_offset'.
21819 (aarch64_cannot_force_const_mem): Change to also return true if
21821 (aarch64_legitimize_reload_address): In the case of large
21822 displacements, add new local variable 'xmode' and an assertion
21823 based on it; change to use 'xmode' to generate the new rtx and
21825 (aarch64_asm_trampoline_template): Change to generate the template
21826 differently depending on TARGET_ILP32 or not; change to use
21827 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21828 (aarch64_trampoline_size): Removed.
21829 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21830 and replace immediate literals with it. Change to use 'ptr_mode'
21831 instead of 'DImode' and call convert_memory_address if the mode
21832 of 'fnaddr' doesn't equal to 'ptr_mode'.
21833 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21835 (aarch64_elf_asm_destructor): Likewise.
21836 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21837 on TARGET_ILP32 instead of aarch64_trampoline_size.
21838 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21839 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21840 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21841 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
21842 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21843 (storewb_pair<GPI:mode>_<P:mode>): ... this.
21844 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21845 depending on the value of 'mode'.
21846 (add_losym_<mode>): New.
21847 (ldr_got_small_<mode>): New, based on ldr_got_small.
21848 (ldr_got_small): Remove.
21849 (ldr_got_small_sidi): New.
21850 * config/aarch64/iterators.md (P): New.
21851 (PTR): Change to 'ptr_mode' in the condition.
21853 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
21855 * config.gcc (aarch64*-*-*): Support --with-abi.
21856 (aarch64*-*-elf): Support --with-multilib-list.
21857 (aarch64*-*-linux*): Likewise.
21858 (supported_defaults): Add abi to aarch64*-*-*.
21859 * configure.ac: Mention AArch64 for --with-multilib-list.
21860 * configure: Re-generated.
21861 * config/aarch64/biarchilp32.h: New file.
21862 * config/aarch64/biarchlp64.h: New file.
21863 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21865 (MULTILIB_DEFAULTS): Ditto.
21866 (DRIVER_SELF_SPECS): Ditto.
21867 (ASM_SPEC): Update to also substitute -mabi.
21868 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21869 file whose name depends on -mabi= and -mbig-endian.
21870 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21872 (POINTER_SIZE): New define.
21873 (POINTERS_EXTEND_UNSIGNED): Ditto.
21874 (enum aarch64_abi_type): New enumeration tag.
21875 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21876 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21877 (TARGET_ILP32): New define.
21878 * config/aarch64/aarch64.opt (mabi): New.
21879 (aarch64_abi): New.
21880 (ilp32, lp64): New values for -mabi.
21881 * config/aarch64/t-aarch64 (comma): New define.
21882 (MULTILIB_OPTIONS): Ditto.
21883 (MULTILIB_DIRNAMES): Ditto.
21884 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21885 * doc/invoke.texi: Document -mabi for AArch64.
21887 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
21889 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21891 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21892 Anton Blanchard <anton@au1.ibm.com>
21894 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21895 endianness when selecting field to splat.
21897 2013-07-22 Eric Christopher <echristo@gmail.com>
21899 * dwarf2out.c (die_odr_checksum): New function to use
21900 CHECKSUM_ macros and ULEB128 for DIE tag.
21901 (generate_type_signature): Use.
21903 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
21905 * config.gcc (sparc*-*-*): Accept leon3 processor.
21906 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21907 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21908 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21909 * config/sparc/sparc.opt (enum processor_type): Add leon3.
21910 (mfix-ut699): Adjust comment.
21911 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21912 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21913 (CPP_CPU_SPEC): Likewise.
21914 (ASM_CPU_SPEC): Likewise.
21915 * config/sparc/sparc.c (leon3_cost): New constant.
21916 (sparc_option_override): Add leon3 support.
21917 (mem_ref): New function.
21918 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21919 (sparc_do_work_around_errata): Look into the instruction in the delay
21920 slot and adjust accordingly. Add fix for the data cache nullify issues
21921 of the UT699. Change insertion position for the NOP.
21922 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21923 (leon3_load): New reservation.
21924 (leon_store): Bump latency to 2.
21925 (grfpu): New automaton.
21926 (grfpu_alu): New unit.
21927 (grfpu_ds): Likewise.
21928 (leon_fp_alu): Adjust.
21929 (leon_fp_mult): Delete.
21930 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21931 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21932 * config/sparc/sparc.md (cpu): Add leon3.
21933 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21934 (swapsi): Likewise.
21935 (atomic_test_and_set): Likewise.
21936 (ldstub): Likewise.
21938 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
21940 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
21941 default for R5900 targets.
21942 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21943 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21944 * config/mips/mips.c (mips_option_override): Report an error for
21945 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
21946 for -march=r5900 -mhard-float.
21948 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
21950 * df-problems.c (can_move_insns_across): Exit loop once we
21951 find a non-fixed, non-global register.
21953 * ipa-pure-const.c (propagate_nothrow): Exit loop after
21956 * omega.c (omega_eliminate_red): Break after setting red_found.
21957 (omega_problem_has_red_equations): Similarly after setting found.
21958 (omega_query_variable): Similarly after setting coupled.
21960 2013-07-22 Marek Polacek <polacek@redhat.com>
21962 * gimplify.c: Don't include gimple.h twice.
21964 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21966 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21967 instead of TARGET_THUMB1.
21968 (Pz): New constraint.
21969 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21971 (compare_negsi_si): Likewise.
21972 (compare_addsi2_op0): Likewise.
21973 (compare_addsi2_op1): Likewise.
21974 (addsi3_carryin_<optab>): Likewise.
21975 (addsi3_carryin_alt2_<optab>): Likewise.
21976 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21977 for arm_restrict_it.
21978 (subsi3_carryin): Likewise.
21979 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21980 (minmax_arithsi): Disable for arm_restrict_it.
21981 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21982 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21983 (satsi_<SAT:code>_shift): Likewise.
21984 (arm_shiftsi3): Add alternative for 16-bit encoding.
21985 (arm32_movhf): Disable for arm_restrict_it.
21986 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21987 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21989 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
21991 * config/arm/arm.md (attribute "insn"): Delete.
21992 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21993 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21994 (not_shiftsi): Update for attribute change.
21995 (not_shiftsi_compare0): Likewise.
21996 (not_shiftsi_compare0_scratch): Likewise.
21997 (arm_one_cmplsi2): Likewise.
21998 (thumb1_one_cmplsi2): Likewise.
21999 (notsi_compare0): Likewise.
22000 (notsi_compare0_scratch): Likewise.
22001 (thumb1_movdi_insn): Likewise.
22002 (arm_movsi_insn): Likewise.
22003 (movhi_insn_arch4): Likewise.
22004 (movhi_bytes): Likewise.
22005 (arm_movqi_insn): Likewise.
22006 (thumb1_movqi_insn): Likewise.
22007 (arm32_movhf): Likewise.
22008 (thumb1_movhf): Likewise.
22009 (arm_movsf_soft_insn): Likewise.
22010 (thumb1_movsf_insn): Likewise.
22011 (thumb_movdf_insn): Likewise.
22012 (movsicc_insn): Likewise.
22013 (movsfcc_soft_insn): Likewise.
22014 (and_scc): Likewise.
22015 (cond_move): Likewise.
22016 (if_move_not): Likewise.
22017 (if_not_move): Likewise.
22018 (if_shift_move): Likewise.
22019 (if_move_shift): Likewise.
22020 (if_shift_shift): Likewise.
22021 (if_not_arith): Likewise.
22022 (if_arith_not): Likewise.
22023 (cond_move_not): Likewise.
22024 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
22025 (neon_mov<mode>): Likewise.
22026 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
22027 (thumb2_movsi_vfp): Likewise.
22028 (movsf_vfp): Likewise.
22029 (thumb2_movsf_vfp): Likewise.
22030 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22032 (cortexa7_older_only): Likewise.
22033 (cortexa7_younger): Likewise.
22034 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
22035 (1020alu_shift_op): Likewise.
22036 (1020alu_shift_reg_op): Likewise.
22037 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
22038 (alu_shift_op): Likewise.
22039 (alu_shift_reg_op): Likewise.
22040 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
22041 (11_alu_shift_op): Likewise.
22042 (11_alu_shift_reg_op): Likewise.
22043 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
22044 (9_alu_shift_reg_op): Likewise.
22045 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22047 (cortex_a15_alu_shift): Likewise.
22048 (cortex_a15_alu_shift_reg): Likewise.
22049 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
22050 (cortex_a5_alu_shift): Likewise.
22051 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
22053 (cortex_a53_alu_shift): Likewise.
22054 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22056 (cortex_a7_alu_reg): Likewise.
22057 (cortex_a7_alu_shift): Likewise.
22058 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22059 (cortex_a8_alu_shift): Likewise.
22060 (cortex_a8_alu_shift_reg): Likewise.
22061 (cortex_a8_mov): Likewise.
22062 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
22063 (cortex_a9_dp_shift): Likewise.
22064 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
22065 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
22066 (cortex_r4_mov): Likewise.
22067 (cortex_r4_alu_shift): Likewise.
22068 (cortex_r4_alu_shift_reg): Likewise.
22069 * config/arm/fa526.md (526_alu_op): Update for attribute change.
22070 (526_alu_shift_op): Likewise.
22071 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
22072 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
22073 (626te_alu_shift_op): Likewise.
22074 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
22075 (726te_alu_op): Likewise.
22076 (726te_alu_shift_op): Likewise.
22077 (726te_alu_shift_reg_op): Likewise.
22078 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
22079 (mp626_alu_shift_op): Likewise.
22080 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
22081 (pj4_alu_e1_conds): Likewise.
22082 (pj4_alu): Likewise.
22083 (pj4_alu_conds): Likewise.
22084 (pj4_shift): Likewise.
22085 (pj4_shift_conds): Likewise.
22086 (pj4_alu_shift): Likewise.
22087 (pj4_alu_shift_conds): Likewise.
22089 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22091 * config/arm/predicates.md (shiftable_operator_strict_it):
22093 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
22094 Disable cond_exec version for arm_restrict_it.
22095 (thumb2_smaxsi3): Convert to generate cond_exec.
22096 (thumb2_sminsi3): Likewise.
22097 (thumb32_umaxsi3): Likewise.
22098 (thumb2_uminsi3): Likewise.
22099 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
22100 (thumb2_neg_abssi2): Likewise.
22101 (thumb2_mov_scc): Add alternative for 16-bit encoding.
22102 (thumb2_movsicc_insn): Adjust alternatives.
22103 (thumb2_mov_negscc): Disable for arm_restrict_it.
22104 (thumb2_mov_negscc_strict_it): New pattern.
22105 (thumb2_mov_notscc_strict_it): New pattern.
22106 (thumb2_mov_notscc): Disable for arm_restrict_it.
22107 (thumb2_ior_scc): Likewise.
22108 (thumb2_ior_scc_strict_it): New pattern.
22109 (thumb2_cond_move): Adjust for arm_restrict_it.
22110 (thumb2_cond_arith): Disable for arm_restrict_it.
22111 (thumb2_cond_arith_strict_it): New pattern.
22112 (thumb2_cond_sub): Adjust for arm_restrict_it.
22113 (thumb2_movcond): Likewise.
22114 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
22115 (thumb2_zero_extendhisi2_v6): Likewise.
22116 (thumb2_zero_extendqisi2_v6): Likewise.
22117 (orsi_notsi_si): Likewise.
22118 (orsi_not_shiftsi_si): Likewise.
22120 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
22122 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
22123 instruction sequence is 1 byte shorter.
22125 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
22127 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
22128 it is not needed after split.
22130 2013-07-20 Iain Sandoe <iain@codesourcery.com>
22133 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
22134 second label for nonlocal goto receivers. Don't output pic base labels
22135 unless we're producing PIC; mark that action unreachable().
22136 (ix86_save_reg): If the function contains a nonlocal label, save the
22138 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
22139 * config/darwin.c (emitted_pic_label_num): New GTY.
22140 (update_pic_label_number_if_needed): New.
22141 (machopic_output_function_base_name): Adjust for nonlocal receiver
22143 (machopic_should_output_picbase_label): New.
22144 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
22145 (nonlocal_goto_receiver): New insn and split.
22147 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
22149 * config/aarch64/aarch64-builtins.c
22150 (aarch64_fold_builtin): Fold abs in all modes.
22151 * config/aarch64/aarch64-simd-builtins.def
22152 (abs): Enable for all modes.
22153 * config/aarch64/arm_neon.h
22154 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
22155 (vabs_f64): Add missing intrinsic.
22157 2013-07-19 Ian Bolton <ian.bolton@arm.com>
22159 * config/aarch64/arm_neon.h (vabs_s64): New function
22161 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
22164 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
22165 * config/avr/avr.md (adjust_len): Add `round'.
22166 * config/avr/avr-protos.h (avr_out_round): New prototype.
22167 (avr_out_plus): Add `out_label' argument.
22168 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
22169 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
22170 Handle the case where `insn' is just a pattern.
22171 (avr_out_bitop): Handle the case where `insn' is just a pattern.
22172 (avr_out_round): New function.
22173 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
22175 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
22177 * config/microblaze/microblaze.c (microblaze_expand_prologue):
22178 Add check for flag_stack_usage to handle -fstack-usage support
22180 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
22182 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
22183 interaction for new Power8 flags and VSX.
22185 2013-07-18 Sriraman Tallam <tmsriram@google.com>
22187 PR middle-end/57698
22188 * tree-inline.c (expand_call_inline): Emit errors during
22189 early_inlining only if optimization is not turned on.
22191 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22195 * passes.c (init_optimization_passes): Move the construction of
22196 the pass hierarchy into a new passes.def file.
22198 * Makefile.in (passes.o): Add dependency on passes.def.
22200 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22202 * passes.c (init_optimization_passes): Introduce macros for
22203 constructing the tree of passes (INSERT_PASSES_AFTER,
22204 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
22205 TERMINATE_PASS_LIST).
22207 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
22208 Wei Mi <wmi@google.com>
22210 PR rtl-optimization/57878
22211 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
22213 (reload_pseudo_compare_func): Check nregs first for reload
22216 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22218 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
22220 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
22222 * read-rtl.c (validate_const_int): Once an invalid character is
22223 seen, quit the loop.
22225 * gengtype.c (write_roots): Similarly once we find the "deletable"
22226 or "if_marked" option.
22228 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22230 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
22231 "xtab" and "sat". Move value "clz" from here to ...
22232 (attriubte "type"): ... here.
22233 (satsi_<SAT:code>): Delete "insn" attribute.
22234 (satsi_<SAT:code>_shift): Likewise.
22235 (arm_zero_extendqisi2addsi): Likewise.
22236 (arm_extendqisi2addsi): Likewise.
22237 (clzsi2): Update for attribute changes.
22238 (rbitsi2): Likewise.
22239 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
22241 (arm_usatsihi): Likewise.
22242 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
22244 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
22246 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
22247 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
22248 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
22249 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
22250 in alphabetical order.
22251 (attribute "core_cycles"): Update for attribute changes.
22252 (arm_addsi3): Likewise.
22253 (addsi3_compare0): Likewise.
22254 (addsi3_compare0_scratch): Likewise.
22255 (addsi3_compare_op1): Likewise.
22256 (addsi3_compare_op2): Likewise.
22257 (compare_addsi2_op0): Likewise.
22258 (compare_addsi2_op1): Likewise.
22259 (addsi3_carryin_shift_<optab>): Likewise.
22260 (subsi3_carryin_shift): Likewise.
22261 (rsbsi3_carryin_shift): Likewise.
22262 (arm_subsi3_insn): Likewise.
22263 (subsi3_compare0): Likewise.
22264 (subsi3_compare): Likewise.
22265 (arm_andsi3_insn): Likewise.
22266 (thumb1_andsi3_insn): Likewise.
22267 (andsi3_compare0): Likewise.
22268 (andsi3_compare0_scratch): Likewise.
22269 (zeroextractsi_compare0_scratch
22270 (andsi_not_shiftsi_si): Likewise.
22271 (iorsi3_insn): Likewise.
22272 (iorsi3_compare0): Likewise.
22273 (iorsi3_compare0_scratch): Likewise.
22274 (arm_xorsi3): Likewise.
22275 (thumb1_xorsi3_insn): Likewise.
22276 (xorsi3_compare0): Likewise.
22277 (xorsi3_compare0_scratch): Likewise.
22278 (satsi_<SAT:code>_shift): Likewise.
22280 (arm_shiftsi3): Likewise.
22281 (shiftsi3_compare0): Likewise.
22282 (not_shiftsi): Likewise.
22283 (not_shiftsi_compare0): Likewise.
22284 (not_shiftsi_compare0_scratch): Likewise.
22285 (arm_one_cmplsi2): Likewise.
22286 (thumb_one_complsi2): Likewise.
22287 (notsi_compare0): Likewise.
22288 (notsi_compare0_scratch): Likewise.
22289 (thumb1_zero_extendhisi2): Likewise.
22290 (arm_zero_extendhisi2): Likewise.
22291 (arm_zero_extendhisi2_v6): Likewise.
22292 (arm_zero_extendhisi2addsi): Likewise.
22293 (thumb1_zero_extendqisi2): Likewise.
22294 (thumb1_zero_extendqisi2_v6): Likewise.
22295 (arm_zero_extendqisi2): Likewise.
22296 (arm_zero_extendqisi2_v6): Likewise.
22297 (arm_zero_extendqisi2addsi): Likewise.
22298 (thumb1_extendhisi2): Likewise.
22299 (arm_extendhisi2): Likewise.
22300 (arm_extendhisi2_v6): Likewise.
22301 (arm_extendqisi): Likewise.
22302 (arm_extendqisi_v6): Likewise.
22303 (arm_extendqisi2addsi): Likewise.
22304 (thumb1_extendqisi2): Likewise.
22305 (thumb1_movdi_insn): Likewise.
22306 (arm_movsi_insn): Likewise.
22307 (movsi_compare0): Likewise.
22308 (movhi_insn_arch4): Likewise.
22309 (movhi_bytes): Likewise.
22310 (arm_movqi_insn): Likewise.
22311 (thumb1_movqi_insn): Likewise.
22312 (arm32_movhf): Likewise.
22313 (thumb1_movhf): Likewise.
22314 (arm_movsf_soft_insn): Likewise.
22315 (thumb1_movsf_insn): Likewise.
22316 (movdf_soft_insn): Likewise.
22317 (thumb_movdf_insn): Likewise.
22318 (arm_cmpsi_insn): Likewise.
22319 (cmpsi_shiftsi): Likewise.
22320 (cmpsi_shiftsi_swp): Likewise.
22321 (arm_cmpsi_negshiftsi_si): Likewise.
22322 (movsicc_insn): Likewise.
22323 (movsfcc_soft_insn): Likewise.
22324 (arith_shiftsi): Likewise.
22325 (arith_shiftsi_compare0
22326 (arith_shiftsi_compare0_scratch
22327 (sub_shiftsi): Likewise.
22328 (sub_shiftsi_compare0
22329 (sub_shiftsi_compare0_scratch
22330 (and_scc): Likewise.
22331 (cond_move): Likewise.
22332 (if_plus_move): Likewise.
22333 (if_move_plus): Likewise.
22334 (if_move_not): Likewise.
22335 (if_not_move): Likewise.
22336 (if_shift_move): Likewise.
22337 (if_move_shift): Likewise.
22338 (if_shift_shift): Likewise.
22339 (if_not_arith): Likewise.
22340 (if_arith_not): Likewise.
22341 (cond_move_not): Likewise.
22342 (thumb1_ashlsi3): Set type attribute.
22343 (thumb1_ashrsi3): Likewise.
22344 (thumb1_lshrsi3): Likewise.
22345 (thumb1_rotrsi3): Likewise.
22346 (shiftsi3_compare0_scratch): Likewise.
22347 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
22348 (neon_mov<mode>): Likewise.
22349 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
22351 (thumb2_movsi_insn): Likewise.
22352 (thumb2_cmpsi_neg_shiftsi): Likewise.
22353 (thumb2_extendqisi_v6): Likewise.
22354 (thumb2_zero_extendhisi2_v6): Likewise.
22355 (thumb2_zero_extendqisi2_v6): Likewise.
22356 (thumb2_shiftsi3_short): Likewise.
22357 (thumb2_addsi3_compare0_scratch): Likewise.
22358 (orsi_not_shiftsi_si): Likewise.
22359 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22360 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22362 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22363 (1020alu_shift_op): Likewise.
22364 (1020alu_shift_reg_op): Likewise.
22365 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22366 (alu_shift_op): Likewise.
22367 (alu_shift_reg_op): Likewise.
22368 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22369 (11_alu_shift_op): Likewise.
22370 (11_alu_shift_reg_op): Likewise.
22371 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22372 (9_alu_shift_reg_op): Likewise.
22373 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22375 (cortex_a15_alu_shift): Likewise.
22376 (cortex_a15_alu_shift_reg): Likewise.
22377 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22379 (cortex_a5_alu_shift): Likewise.
22380 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22382 (cortex_a53_alu_shift): Likewise.
22383 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22385 (cortex_a7_alu_reg): Likewise.
22386 (cortex_a7_alu_shift): Likewise.
22387 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22389 (cortex_a8_alu_shift): Likewise.
22390 (cortex_a8_alu_shift_reg): Likewise.
22391 (cortex_a8_mov): Likewise.
22392 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22393 (cortex_a9_dp_shift): Likewise.
22394 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22396 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22398 (cortex_r4_mov): Likewise.
22399 (cortex_r4_alu_shift): Likewise.
22400 (cortex_r4_alu_shift_reg): Likewise.
22401 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22402 (526_alu_shift_op): Likewise.
22403 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22404 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22405 (626te_alu_shift_op): Likewise.
22406 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22407 (726te_alu_op): Likewise.
22408 (726te_alu_shift_op): Likewise.
22409 (726te_alu_shift_reg_op): Likewise.
22410 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22411 (mp626_alu_shift_op): Likewise.
22412 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22413 (pj4_alu_e1_conds): Likewise.
22414 (pj4_alu): Likewise.
22415 (pj4_alu_conds): Likewise.
22416 (pj4_shift): Likewise.
22417 (pj4_shift_conds): Likewise.
22418 (pj4_alu_shift): Likewise.
22419 (pj4_alu_shift_conds): Likewise.
22420 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22422 (cortexa7_older_only): Likewise.
22423 (cortexa7_younger): Likewise.
22425 2013-07-18 David Malcolm <dmalcolm@redhat.com>
22427 * ipa-pure-const.c (generate_summary): Rename to...
22428 (pure_const_generate_summary): ... this.
22430 2013-07-17 Iain Sandoe <iain@codesourcery.com>
22432 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22434 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
22437 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22440 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22442 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22443 enabled without -march=zEC12.
22444 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22447 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22449 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22450 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22451 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22452 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22453 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22454 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22455 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22457 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22458 and ISA_HAS_NMADD3_NMSUB3.
22459 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22460 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22461 (nmsub4<mode>, nmsub3<mode>): Likewise.
22462 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22464 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22466 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22467 TARGET_MIPS5400 checking.
22469 2013-07-16 Jakub Jelinek <jakub@redhat.com>
22470 Peter Bergner <bergner@vnet.ibm.com>
22472 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22473 registers in the comment.
22474 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22475 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22476 rather than FIRST_PSEUDO_REGISTERS.
22478 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
22480 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22481 enable extra ISA flags with TARGET_HTM.
22483 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
22485 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22488 2013-07-15 Cong Hou <congh@google.com>
22490 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22491 in compare function for sorting.
22493 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
22495 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22496 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22497 * config/rs6000/rs6000.opt: Add -mhtm option.
22498 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22499 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22500 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22501 __HTM__ if the HTM instructions are available.
22502 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22503 htm_spr_reg_operand): New define_predicates.
22504 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22505 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22507 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22508 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22509 HTM builtin functions.
22510 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22511 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22512 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22513 (rs6000_builtin_mask_calculate): Likewise.
22514 (rs6000_option_override_internal): Likewise.
22515 (bdesc_htm): Add new HTM builtin support.
22516 (htm_spr_num): New function.
22517 (htm_spr_regno): Likewise.
22518 (rs6000_htm_spr_icode): Likewise.
22519 (htm_expand_builtin): Likewise.
22520 (htm_init_builtins): Likewise.
22521 (rs6000_expand_builtin): Add support for HTM builtin functions.
22522 (rs6000_init_builtins): Likewise.
22523 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22525 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22526 (TARGET_HTM, MASK_HTM): Define macros.
22527 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22528 (FIXED_REGISTERS): Likewise.
22529 (CALL_USED_REGISTERS): Likewise.
22530 (CALL_REALLY_USED_REGISTERS): Likewise.
22531 (REG_ALLOC_ORDER): Likewise.
22532 (enum reg_class): Likewise.
22533 (REG_CLASS_NAMES): Likewise.
22534 (REG_CLASS_CONTENTS): Likewise.
22535 (REGISTER_NAMES): Likewise.
22536 (ADDITIONAL_REGISTER_NAMES): Likewise.
22537 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22538 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22539 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22540 * config/rs6000/htm.md: New file.
22541 * config/rs6000/htmintrin.h: New file.
22542 * config/rs6000/htmxlintrin.h: New file.
22544 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
22546 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22547 Define SYMBOL_TINY_GOT, update comment.
22548 * config/aarch64/aarch64.c
22549 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22550 (aarch64_expand_mov_immediate): Likewise.
22551 (aarch64_print_operand): Likewise.
22552 (aarch64_classify_symbol): Likewise.
22553 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22554 (ldr_got_tiny): Define.
22556 2013-07-13 Tobias Grosser <tobias@grosser.es>
22558 PR tree-optimization/54094
22559 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22560 scheduling dimension for the parallelism check from the polyhedral
22561 information in the AST.
22562 * graphite-dependences.c (carries_deps): Do not assume the schedule is
22565 2013-07-13 Jason Merrill <jason@redhat.com>
22567 * print-tree.c (debug_vec_tree): Use debug_raw.
22568 (debug_raw (vec<tree, va_gc> &)): New.
22569 (debug_raw (vec<tree, va_gc> *)): New.
22570 * tree.h: Declare them.
22572 2013-07-13 Bin Cheng <bin.cheng@arm.com>
22574 * ifcvt.c (ifcvt_after_combine): New static variable.
22575 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22577 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
22578 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22579 rest_of_handle_if_after_reload): Pass new argument for if_convert.
22581 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
22583 * config/mips/mips.c (mips_expand_call): Remove empty statement.
22585 2013-07-12 Michael Matz <matz@suse.de>
22587 PR middle-end/55771
22588 * convert.c (convert_to_real): Reject non-float inner types.
22590 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
22592 * config/aarch64/aarch64-protos.h
22593 (aarch64_simd_immediate_valid_for_move): Remove.
22594 * config/aarch64/aarch64.c (simd_immediate_info): New member.
22595 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22597 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22599 2013-07-11 Steve Ellcey <sellcey@mips.com>
22601 * config/mips/mips.c (mips_conditional_register_usage): Do not
22602 use t[0-7] registers in MIPS16 mode when optimizing for size.
22604 2013-07-11 Sriraman Tallam <tmsriram@google.com>
22606 * config/i386/i386.c (dispatch_function_versions): Fix array
22607 indexing of function_version_info to match actual_versions.
22609 2013-07-11 Teresa Johnson <tejohnson@google.com>
22611 * vec.h (struct va_gc): Move release out-of-line.
22612 (va_gc::release): Call ggc_free on released vec.
22614 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22616 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22617 Require GOT register as additional operand in UNSPEC.
22618 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22619 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22620 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22621 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22622 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22623 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22624 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22626 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
22629 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22630 name seen by assembler/linker rather if available.
22632 2013-07-11 Andreas Schwab <schwab@suse.de>
22634 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22636 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
22638 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22640 2013-07-10 Joseph Myers <joseph@codesourcery.com>
22642 * doc/tm.texi.in: Move hook documentation to ....
22643 * target.def: ... here.
22645 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22646 text on @hook line.
22647 * doc/tm.texi: Regenerate.
22649 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
22652 * doc/invoke.texi: Document -Wconditionally-supported.
22654 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22657 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22660 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22663 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22664 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22665 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22666 Remove duplicate devices.
22667 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22668 * config/avr/t-multilib: Regenerate.
22669 * config/avr/avr-tables.opt: Regenerate.
22670 * doc/avr-mmcu.texi: Regenerate.
22672 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
22675 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22677 2013-07-10 Graham Stott <graham.stott@btinternet.com>
22679 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22680 the cost of MULT when optimizing for size.
22682 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22684 * config/cr16/cr16-protos.h: Don't include target.h.
22686 2013-07-09 Joseph Myers <joseph@codesourcery.com>
22688 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22689 adjust register size for TDmode and TFmode for VSX registers.
22691 2013-07-08 Kai Tietz <ktietz@redhat.com>
22694 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22695 hook_bool_const_tree_true.
22697 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22699 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22700 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22701 * config/s390/s390.md: Define FPR*_REGNUM constants.
22702 Fix FPR2_REGNUM constant (18 -> 17).
22703 ("*trunc<BFP:mode><DFP_ALL:mode>2")
22704 ("*trunc<DFP_ALL:mode><BFP:mode>2")
22705 ("trunc<BFP:mode><DFP_ALL:mode>2")
22706 ("trunc<DFP_ALL:mode><BFP:mode>2")
22707 ("*extend<BFP:mode><DFP_ALL:mode>2")
22708 ("*extend<DFP_ALL:mode><BFP:mode>2")
22709 ("extend<BFP:mode><DFP_ALL:mode>2")
22710 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22713 2013-07-08 Graham Stott <graham.stott@btinternet.com>
22715 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22717 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22719 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22720 and cfun_fpr_bit_p to cfun_fpr_save_p.
22721 (s390_frame_area, s390_register_info, s390_frame_info)
22722 (s390_emit_prologue, s390_emit_epilogue)
22723 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22725 * config/s390/s390.h: Define *_REGNUM macros for floating point
22728 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
22730 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22732 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
22734 PR rtl-optimization/57786
22735 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22736 and break out of the loop when it is set to false.
22738 2013-07-08 Jakub Jelinek <jakub@redhat.com>
22741 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22742 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22743 (const_int 63)) 0)).
22744 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22745 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22746 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22748 PR rtl-optimization/57829
22749 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22750 mask bits outside of mode are just sign-extension from mode to HWI.
22752 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
22754 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22755 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22756 adjust_address instead of change_address to keep info about alignment.
22757 (emit_strmov): Remove.
22758 (emit_memmov): New function.
22759 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22760 (expand_movmem_epilogue): Likewise and return updated rtx for
22762 (expand_constant_movmem_prologue): Likewise and return updated rtx for
22763 destination and source.
22764 (decide_alignment): Refactor, handle vector_loop.
22765 (ix86_expand_movmem): Likewise.
22766 (ix86_expand_setmem): Likewise.
22767 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22769 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
22771 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22772 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22774 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22776 * config/i386/sse.md (sse_movlhps): Change alternative 3
22777 of operand 2 to "m".
22779 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
22782 * config/i386/sse.md (iptr): New mode attribute.
22783 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22784 (<sse>_vm<plusminus_insn><mode>3): Ditto.
22785 (<sse>_vmmul<mode>3): Ditto.
22786 (<sse>_vmdiv<mode>3): Ditto.
22787 (sse_vmrcpv4sf2): Ditto.
22788 (<sse>_vmsqrt<mode>2): Ditto.
22789 (sse_vmrsqrtv4sf2): Ditto.
22790 (<sse>_vm<code><mode>3): Ditto.
22791 (avx_vmcmp<mode>3): Ditto.
22792 (<sse>_vmmaskcmp<mode>3): Ditto.
22793 (<sse>_comi): Ditto.
22794 (<sse>_ucomi): Ditto.
22795 (*xop_vmfrcz_<mode>): Ditto.
22796 (*fmai_fmadd_<mode>): Ditto.
22797 (*fmai_fmsub_<mode>): Ditto.
22798 (*fmai_fnmadd_<mode>): Ditto.
22799 (*fmai_fnmsub_<mode>): Ditto.
22800 (*fma4i_vmfmadd_<mode>): Ditto.
22801 (*fma4i_vmfmsub_<mode>): Ditto.
22802 (*fma4i_vmfnmadd_<mode>): Ditto.
22803 (*fma4i_vmfnmsub_<mode>): Ditto.
22804 (*xop_vmfrcz_<mode>): Ditto.
22805 (sse_cvtps2pi): Ditto.
22806 (sse_cvttps2pi): Ditto.
22807 (sse_cvtss2si): Ditto.
22808 (sse_cvtss2si_2): Ditto.
22809 (sse_cvtss2siq_2): Ditto.
22810 (sse_cvttss2si): Ditto.
22811 (sse_cvttss2siq): Ditto.
22812 (sse_cvtsd2si): Ditto.
22813 (sse_cvtsd2si_2): Ditto.
22814 (sse_cvtsd2siq_2): Ditto.
22815 (sse_cvttsd2si): Ditto.
22816 (sse_cvttsd2siq): Ditto.
22817 (sse_cvtsd2ss): Ditto.
22818 (sse_cvtss2sd): Ditto.
22819 (avx2_pbroadcast<mode>): Ditto.
22820 (avx2_pbroadcast<mode>_1): Ditto.
22821 (*avx_vperm_broadcast_v4sf): Ditto.
22823 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22824 (sse_movlhps): Ditto.
22825 (sse_storehps): Ditto.
22826 (sse_loadhps): Ditto.
22827 (sse_storelps): Ditto.
22828 (sse_loadlps): Ditto.
22829 (*vec_concatv4sf): Ditto.
22830 (*vec_interleave_highv2df): Ditto.
22831 (*vec_interleave_lowv2df): Ditto.
22832 (*vec_extractv2df_1_sse): Ditto.
22833 (*vec_extractv2df_0_sse): Ditto.
22834 (sse2_storelpd): Ditto.
22835 (sse2_loadlpd): Ditto.
22836 (sse2_movsd): Ditto.
22837 (*vec_concatv4si): Ditto.
22838 (vec_concatv2di): Ditto.
22840 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22841 for Intel asm dialect.
22842 (mmx_punpcklwd): Ditto.
22843 (mmx_punpckldq): Ditto.
22845 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22846 for intel assembler dialect.
22848 2013-07-06 Jakub Jelinek <jakub@redhat.com>
22851 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22852 for BUILT_IN_C{LZ,LRSB}*.
22853 * tree.h (CASE_INT_FN): Add FN##IMAX case.
22854 * tree-vrp.c (extract_range_basic): Handle
22855 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
22856 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22857 fall thru to code calling set_value*.
22858 * builtins.c (expand_builtin): Remove *IMAX cases.
22859 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22860 if width is bigger than 2*HWI.
22862 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
22864 PR rtl-optimization/55342
22865 * lra-int.h (lra_subreg_reload_pseudos): New.
22866 * lra.c: Add undoing optional reloads to the block diagram.
22867 (lra_subreg_reload_pseudos): New.
22868 (lra_optional_reload_pseudos): Change comments.
22869 (lra): Init and clear lra_subreg_reload_pseudos. Clear
22870 lra_optional_reload_pseudos after undo transformations.
22871 * lra-assigns.c (pseudo_prefix_title): New.
22872 (lra_setup_reg_renumber): Use it.
22873 (spill_for): Ditto. Check subreg reload pseudos too.
22874 (assign_by_spills): Consider subreg reload pseudos too.
22875 * lra-constraints.c (simplify_operand_subreg): Use
22876 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22877 (curr_insn_transform): Recognize and do optional reloads.
22878 (undo_optional_reloads): New.
22879 (lra_undo_inheritance): Call undo_optional_reloads.
22881 2013-07-05 Thomas Quinot <quinot@adacore.com>
22883 * tree-complex.c (expand_complex_operations_1): Fix typo.
22885 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
22887 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22888 (tune_params): New member 'const vec_costs'.
22889 * config/aarch64/aarch64.c (generic_vector_cost): New.
22890 (generic_tunings): New member 'generic_vector_cost'.
22891 (aarch64_builtin_vectorization_cost): New.
22892 (aarch64_add_stmt_cost): New.
22893 (TARGET_VECTORIZE_ADD_STMT_COST): New.
22894 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22896 2013-07-03 Jakub Jelinek <jakub@redhat.com>
22899 * config/i386/predicates.md (vsib_address_operand): Disallow
22900 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22902 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
22904 PR middle-end/55030
22905 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22906 expand_builtin_setjmp_receiver.
22907 (expand_label): Adjust, call expand_builtin_setjmp_receiver
22908 with NULL for the label parameter.
22909 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22910 the frame-pointer. Adjust comments.
22911 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22912 only if LABEL is non-NULL.
22914 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
22916 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22917 (ARM_ABI_AAPCS64): Ditto.
22919 (ARM_DEFAULT_ABI): Ditto.
22921 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22923 * config/aarch64/aarch64-builtins.c
22924 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22925 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22927 * config/aarch64/aarch64-simd.md
22928 (aarch64_ld1<VALL:mode>): New.
22929 (aarch64_st1<VALL:mode>): Likewise.
22930 * config/aarch64/arm_neon.h
22931 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22933 2013-07-02 Sriraman Tallam <tmsriram@google.com>
22935 * config/i386/i386.c (gate_insert_vzeroupper): Check if
22937 (ix86_option_override_internal):Turn on all -mavx target flags by
22938 default as they are dependent on AVX anyway.
22940 2013-07-02 Cary Coutant <ccoutant@google.com>
22942 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22943 deterministic hash.
22944 (loc_checksum_ordered): Likewise.
22945 (hash_loc_operands): Remove inline keyword.
22947 2013-07-02 Jakub Jelinek <jakub@redhat.com>
22949 PR tree-optimization/57741
22950 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22951 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22952 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22953 Allow REAL_CST step_exprs if flag_associative_math.
22954 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22956 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22958 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22960 2013-07-02 Ian Bolton <ian.bolton@arm.com>
22962 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22964 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22966 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22968 (iorsi3_insn): Likewise.
22969 (arm_xorsi3): Likewise.
22971 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
22973 * arm.md (attribute "wtype"): Delete. Move attribute values from here
22975 (attribute "type"): ... here, and prefix with "wmmx_".
22976 (attribute "core_cycles"): Update for attribute changes.
22977 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22978 (tbcstv4hi): Likewise.
22979 (tbcstv2si): Likewise.
22980 (iwmmxt_iordi3): Likewise.
22981 (iwmmxt_xordi3): Likewise.
22982 (iwmmxt_anddi3): Likewise.
22983 (iwmmxt_nanddi3): Likewise.
22984 (iwmmxt_arm_movdi): Likewise.
22985 (iwmmxt_movsi_insn): Likewise.
22986 (mov<mode>_internal): Likewise.
22987 (and<mode>3_iwmmxt): Likewise.
22988 (ior<mode>3_iwmmxt): Likewise.
22989 (xor<mode>3_iwmmxt): Likewise.
22990 (add<mode>3_iwmmxt): Likewise.
22991 (ssaddv8qi3): Likewise.
22992 (ssaddv4hi3): Likewise.
22993 (ssaddv2si3): Likewise.
22994 (usaddv8qi3): Likewise.
22995 (usaddv4hi3): Likewise.
22996 (usaddv2si3): Likewise.
22997 (sub<mode>3_iwmmxt): Likewise.
22998 (sssubv8qi3): Likewise.
22999 (sssubv4hi3): Likewise.
23000 (sssubv2si3): Likewise.
23001 (ussubv8qi3): Likewise.
23002 (ussubv4hi3): Likewise.
23003 (ussubv2si3): Likewise.
23004 (mulv4hi3_iwmmxt): Likewise.
23005 (smulv4hi3_highpart): Likewise.
23006 (umulv4hi3_highpart): Likewise.
23007 (iwmmxt_wmacs): Likewise.
23008 (iwmmxt_wmacsz): Likewise.
23009 (iwmmxt_wmacu): Likewise.
23010 (iwmmxt_wmacuz): Likewise.
23011 (iwmmxt_clrdi): Likewise.
23012 (iwmmxt_clrv8qi): Likewise.
23013 (iwmmxt_clr4hi): Likewise.
23014 (iwmmxt_clr2si): Likewise.
23015 (iwmmxt_uavgrndv8qi3): Likewise.
23016 (iwmmxt_uavgrndv4hi3): Likewise.
23017 (iwmmxt_uavgv8qi3): Likewise.
23018 (iwmmxt_uavgv4hi3): Likewise.
23019 (iwmmxt_tinsrb): Likewise.
23020 (iwmmxt_tinsrh): Likewise.
23021 (iwmmxt_tinsrw): Likewise.
23022 (iwmmxt_textrmub): Likewise.
23023 (iwmmxt_textrmsb): Likewise.
23024 (iwmmxt_textrmuh): Likewise.
23025 (iwmmxt_textrmsh): Likewise.
23026 (iwmmxt_textrmw): Likewise.
23027 (iwmxxt_wshufh): Likewise.
23028 (eqv8qi3): Likewise.
23029 (eqv4hi3): Likewise.
23030 (eqv2si3): Likewise.
23031 (gtuv8qi3): Likewise.
23032 (gtuv4hi3): Likewise.
23033 (gtuv2si3): Likewise.
23034 (gtv8qi3): Likewise.
23035 (gtv4hi3): Likewise.
23036 (gtv2si3): Likewise.
23037 (smax<mode>3_iwmmxt): Likewise.
23038 (umax<mode>3_iwmmxt): Likewise.
23039 (smin<mode>3_iwmmxt): Likewise.
23040 (umin<mode>3_iwmmxt): Likewise.
23041 (iwmmxt_wpackhss): Likewise.
23042 (iwmmxt_wpackwss): Likewise.
23043 (iwmmxt_wpackdss): Likewise.
23044 (iwmmxt_wpackhus): Likewise.
23045 (iwmmxt_wpackwus): Likewise.
23046 (iwmmxt_wpackdus): Likewise.
23047 (iwmmxt_wunpckihb): Likewise.
23048 (iwmmxt_wunpckihh): Likewise.
23049 (iwmmxt_wunpckihw): Likewise.
23050 (iwmmxt_wunpckilb): Likewise.
23051 (iwmmxt_wunpckilh): Likewise.
23052 (iwmmxt_wunpckilw): Likewise.
23053 (iwmmxt_wunpckehub): Likewise.
23054 (iwmmxt_wunpckehuh): Likewise.
23055 (iwmmxt_wunpckehuw): Likewise.
23056 (iwmmxt_wunpckehsb): Likewise.
23057 (iwmmxt_wunpckehsh): Likewise.
23058 (iwmmxt_wunpckehsw): Likewise.
23059 (iwmmxt_wunpckelub): Likewise.
23060 (iwmmxt_wunpckeluh): Likewise.
23061 (iwmmxt_wunpckeluw): Likewise.
23062 (iwmmxt_wunpckelsb): Likewise.
23063 (iwmmxt_wunpckelsh): Likewise.
23064 (iwmmxt_wunpckelsw): Likewise.
23065 (ror<mode>3): Likewise.
23066 (ashr<mode>3_iwmmxt): Likewise.
23067 (lshr<mode>3_iwmmxt): Likewise.
23068 (ashl<mode>3_iwmmxt): Likewise.
23069 (ror<mode>3_di): Likewise.
23070 (ashr<mode>3_di): Likewise.
23071 (lshr<mode>3_di): Likewise.
23072 (ashl<mode>3_di): Likewise.
23073 (iwmmxt_wmadds): Likewise.
23074 (iwmmxt_wmaddu): Likewise.
23075 (iwmmxt_tmia): Likewise.
23076 (iwmmxt_tmiaph): Likewise.
23077 (iwmmxt_tmiabb): Likewise.
23078 (iwmmxt_tmiatb): Likewise.
23079 (iwmmxt_tmiabt): Likewise.
23080 (iwmmxt_tmiatt): Likewise.
23081 (iwmmxt_tmovmskb): Likewise.
23082 (iwmmxt_tmovmskh): Likewise.
23083 (iwmmxt_tmovmskw): Likewise.
23084 (iwmmxt_waccb): Likewise.
23085 (iwmmxt_wacch): Likewise.
23086 (iwmmxt_waccw): Likewise.
23087 (iwmmxt_waligni): Likewise.
23088 (iwmmxt_walignr): Likewise.
23089 (iwmmxt_walignr0): Likewise.
23090 (iwmmxt_walignr1): Likewise.
23091 (iwmmxt_walignr2): Likewise.
23092 (iwmmxt_walignr3): Likewise.
23093 (iwmmxt_wsadb): Likewise.
23094 (iwmmxt_wsadh): Likewise.
23095 (iwmmxt_wsadbz): Likewise.
23096 (iwmmxt_wsadhz): Likewise.
23097 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
23098 (iwmmxt_wabsdiffb): Likewise.
23099 (iwmmxt_wabsdiffh): Likewise.
23100 (iwmmxt_wabsdiffw): Likewise.
23101 (iwmmxt_waddsubhx): Likewise
23102 (iwmmxt_wsubaddhx): Likewise.
23103 (addc<mode>3): Likewise.
23104 (iwmmxt_avg4): Likewise.
23105 (iwmmxt_avg4r): Likewise.
23106 (iwmmxt_wmaddsx): Likewise.
23107 (iwmmxt_wmaddux): Likewise.
23108 (iwmmxt_wmaddsn): Likewise.
23109 (iwmmxt_wmaddun): Likewise.
23110 (iwmmxt_wmulwsm): Likewise.
23111 (iwmmxt_wmulwum): Likewise.
23112 (iwmmxt_wmulsmr): Likewise.
23113 (iwmmxt_wmulumr): Likewise.
23114 (iwmmxt_wmulwsmr): Likewise.
23115 (iwmmxt_wmulwumr): Likewise.
23116 (iwmmxt_wmulwl): Likewise.
23117 (iwmmxt_wqmulm): Likewise.
23118 (iwmmxt_wqmulwm): Likewise.
23119 (iwmmxt_wqmulmr): Likewise.
23120 (iwmmxt_wqmulwmr): Likewise.
23121 (iwmmxt_waddbhusm): Likewise.
23122 (iwmmxt_waddbhusl): Likewise.
23123 (iwmmxt_wqmiabb): Likewise.
23124 (iwmmxt_wqmiabt): Likewise.
23125 (iwmmxt_wqmiatb): Likewise.
23126 (iwmmxt_wqmiatt): Likewise.
23127 (iwmmxt_wqmiabbn): Likewise.
23128 (iwmmxt_wqmiabtn): Likewise.
23129 (iwmmxt_wqmiatbn): Likewise.
23130 (iwmmxt_wqmiattn): Likewise.
23131 (iwmmxt_wmiabb): Likewise.
23132 (iwmmxt_wmiabt): Likewise.
23133 (iwmmxt_wmiatb): Likewise.
23134 (iwmmxt_wmiatt): Likewise.
23135 (iwmmxt_wmiabbn): Likewise.
23136 (iwmmxt_wmiabtn): Likewise.
23137 (iwmmxt_wmiatbn): Likewise.
23138 (iwmmxt_wmiattn): Likewise.
23139 (iwmmxt_wmiawbb): Likewise.
23140 (iwmmxt_wmiawbt): Likewise.
23141 (iwmmxt_wmiawtb): Likewise.
23142 (iwmmxt_wmiawtt): Likewise.
23143 (iwmmxt_wmiawbbn): Likewise.
23144 (iwmmxt_wmiawbtn): Likewise.
23145 (iwmmxt_wmiawtbn): Likewise.
23146 (iwmmxt_wmiawttn): Likewise.
23147 (iwmmxt_wmerge): Likewise.
23148 (iwmmxt_tandc<mode>3): Likewise.
23149 (iwmmxt_torc<mode>3): Likewise.
23150 (iwmmxt_torvsc<mode>3): Likewise.
23151 (iwmmxt_textrc<mode>3): Likewise.
23152 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
23153 (wmmxt_pack): Likewise.
23154 (wmmxt_mult_c1): Likewise.
23155 (wmmxt_mult_c2): Likewise.
23156 (wmmxt_alu_c1): Likewise.
23157 (wmmxt_alu_c2): Likewise.
23158 (wmmxt_alu_c3): Likewise.
23159 (wmmxt_transfer_c1): Likewise.
23160 (wmmxt_transfer_c2): Likewise.
23161 (wmmxt_transfer_c3): Likewise.
23162 (marvell_f_iwmmxt_wstr): Likewise.
23163 (marvell_f_iwmmxt_wldr): Likewise.
23165 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
23167 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
23169 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23172 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23173 * lra-constraints.c (need_for_split_p): Check call used hard regs
23174 living through calls.
23176 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
23177 call used regs for call insn.
23179 2013-06-28 Jakub Jelinek <jakub@redhat.com>
23182 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
23183 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
23185 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
23187 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
23189 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
23191 * lra-constraints.c (need_for_split_p): Check call used hard regs
23192 living through calls.
23194 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
23197 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
23198 to tie with any other modes. Eliminate Altivec vector mode tests,
23199 since these are a subset of ALTIVEC or VSX vector modes. Simplify
23200 code, to return 0 if testing MODE2 for a condition, if we've
23201 already tested MODE1 for the same condition.
23203 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23205 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
23208 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23210 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
23211 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
23213 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
23215 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
23217 (aarch64_symbolic_constant_p): Remove.
23218 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
23219 static. Fix line length and white space.
23220 (aarch64_symbolic_constant_p): Remove.
23221 * config/aarch64/predicates.md (aarch64_valid_symref):
23222 Use aarch64_classify_symbol_expression.
23224 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23226 * config/arm/constraints.md (Ts): New constraint.
23227 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
23229 (compare_scc): Use "Ts" constraint for operand 0.
23230 (ior_scc_scc): Likewise.
23231 (and_scc_scc): Likewise.
23232 (and_scc_scc_nodom): Likewise.
23233 (ior_scc_scc_cmp): Likewise for operand 7.
23234 (and_scc_scc_cmp): Likewise.
23235 * config/arm/thumb2.md (thumb2_movsi_insn):
23236 Add alternatives for 16-bit encodings.
23237 (thumb2_movhi_insn): Likewise.
23238 (thumb2_movsicc_insn): Likewise.
23239 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
23240 (thumb2_negscc): Use "Ts" constraint.
23241 Move mvn instruction outside cond_exec block.
23242 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
23243 for 16-bit encodings.
23245 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23247 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
23249 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
23250 (mulsi3subsi): Likewise.
23251 (mulsidi3adddi): Likewise.
23252 (mulsidi3_v6): Likewise.
23253 (umulsidi3_v6): Likewise.
23254 (umulsidi3adddi_v6): Likewise.
23255 (smulsi3_highpart_v6): Likewise.
23256 (umulsi3_highpart_v6): Likewise.
23257 (mulhisi3tb): Likewise.
23258 (mulhisi3bt): Likewise.
23259 (mulhisi3tt): Likewise.
23260 (maddhisi4): Likewise.
23261 (maddhisi4tb): Likewise.
23262 (maddhisi4tt): Likewise.
23263 (maddhidi4): Likewise.
23264 (maddhidi4tb): Likewise.
23265 (maddhidi4tt): Likewise.
23266 (zeroextractsi_compare0_scratch): Likewise.
23267 (insv_zero): Likewise.
23268 (insv_t2): Likewise.
23269 (anddi_notzesidi_di): Likewise.
23270 (anddi_notsesidi_di): Likewise.
23271 (andsi_notsi_si): Likewise.
23272 (iordi_zesidi_di): Likewise.
23273 (xordi_zesidi_di): Likewise.
23274 (andsi_iorsi3_notsi): Likewise.
23275 (smax_0): Likewise.
23276 (smax_m1): Likewise.
23277 (smin_0): Likewise.
23278 (not_shiftsi): Likewise.
23279 (unaligned_loadsi): Likewise.
23280 (unaligned_loadhis): Likewise.
23281 (unaligned_loadhiu): Likewise.
23282 (unaligned_storesi): Likewise.
23283 (unaligned_storehi): Likewise.
23284 (extv_reg): Likewise.
23285 (extzv_t2): Likewise.
23286 (divsi3): Likewise.
23287 (udivsi3): Likewise.
23288 (arm_zero_extendhisi2addsi): Likewise.
23289 (arm_zero_extendqisi2addsi): Likewise.
23290 (compareqi_eq0): Likewise.
23291 (arm_extendhisi2_v6): Likewise.
23292 (arm_extendqisi2addsi): Likewise.
23293 (arm_movt): Likewise.
23294 (thumb2_ldrd): Likewise.
23295 (thumb2_ldrd_base): Likewise.
23296 (thumb2_ldrd_base_neg): Likewise.
23297 (thumb2_strd): Likewise.
23298 (thumb2_strd_base): Likewise.
23299 (thumb2_strd_base_neg): Likewise.
23300 (arm_negsi2): Add alternative for 16-bit encoding.
23301 (arm_one_cmplsi2): Likewise.
23303 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23305 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
23306 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
23307 (movdfcc): Likewise.
23308 * config/arm/vfp.md (*thumb2_movsf_vfp):
23309 Disable predication for arm_restrict_it.
23310 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
23311 (*thumb2_movdfcc_vfp): Likewise.
23312 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
23313 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
23314 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
23315 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
23316 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
23317 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
23318 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
23319 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
23320 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
23321 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
23322 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
23323 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
23324 Disable predication for arm_restrict_it.
23326 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
23328 * config/i386/bmiintrin.h (_bextr_u32): New.
23329 (_bextr_u64): Ditto.
23331 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
23333 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
23334 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
23335 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
23336 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
23337 * config/mips/n32-elf.h: ...this new file.
23339 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
23342 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
23343 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
23345 2013-06-27 Catherine Moore <clm@codesourcery.com>
23347 * config/mips/mips-tables.opt: Regenerate.
23348 * config/mips/mips-cpus.def: Add m14ke and m14kec.
23349 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
23350 * doc/invoke.texi: Add -m14kc.
23352 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23355 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
23356 constraints of operand 1 and 2.
23359 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23360 to match RTL canonicalization. Swap predicates and
23361 constraints of operand 1 and 2.
23363 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
23365 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23366 Process OP_INOUT regs for splitting too.
23368 2013-06-27 Jakub Jelinek <jakub@redhat.com>
23370 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23371 decl before the loop, initialize to NULL.
23372 (vectorizable_load): Initialize ptr_incr to NULL.
23374 2013-06-27 Martin Jambor <mjambor@suse.cz>
23377 * ipa-ref.h (ipa_maybe_record_reference): Declare.
23378 * ipa-ref.c (ipa_maybe_record_reference): New function.
23379 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23380 * ipa-cp.c (create_specialized_node): Record potential references from
23382 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23384 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23386 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23387 parameter 'mode' of type 'enum machine_mode mode'; change to pass
23388 'mode' to force_reg.
23389 (aarch64_add_offset): Update calls to aarch64_force_temporary.
23390 (aarch64_expand_mov_immediate): Likewise.
23392 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
23394 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23395 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23397 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23399 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23400 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23401 (struct machine_function): Add tbegin_p.
23402 (s390_canonicalize_comparison): Fold CC mode compares to
23403 conditional jump if possible.
23404 (s390_emit_jump): Return the emitted jump.
23405 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23406 Handle CCRAWmode compares.
23407 (s390_option_override): Default to -mhtm if available.
23408 (s390_reg_clobbered_rtx): Handle floating point regs as well.
23409 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23410 FPRs instead of df_regs_ever_live_p.
23411 (s390_optimize_nonescaping_tx): New function.
23412 (s390_init_frame_layout): Extend clobbered_regs array to cover
23414 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23415 (s390_expand_tbegin): New function.
23416 (enum s390_builtin): New enum definition.
23417 (code_for_builtin): New array definition.
23418 (s390_init_builtins): New function.
23419 (s390_expand_builtin): New function.
23420 (TARGET_INIT_BUILTINS): Define.
23421 (TARGET_EXPAND_BUILTIN): Define.
23422 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23423 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23424 (s390_alc_comparison): Likewise.
23425 * config/s390/s390-modes.def: Add CCRAWmode.
23426 * config/s390/s390.h (processor_flags): Add PF_TX.
23427 (TARGET_CPU_HTM): Define macro.
23428 (TARGET_HTM): Define macro.
23429 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23430 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23431 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23432 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23433 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23434 (TBEGIN_MASK, TBEGINC_MASK): New constants.
23435 ("*cc_to_int"): Move up.
23436 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23437 constants other than 0.
23438 ("*ccraw_to_int"): New insn and splitter definition.
23439 ("tbegin", "tbegin_nofloat", "tbegin_retry")
23440 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23441 ("tx_assist"): New expander.
23442 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23443 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23444 * config/s390/s390.opt: Add -mhtm option.
23445 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23446 * config/s390/htmxlintrin.h: New file.
23447 * config/s390/htmintrin.h: New file.
23448 * config/s390/s390intrin.h: New file.
23449 * doc/extend.texi: Document htm builtins.
23450 * config.gcc: Add the new header files to extra_headers.
23452 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
23454 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23455 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23457 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
23458 Pat Haugen <pthaugen@us.ibm.com>
23459 Peter Bergner <bergner@vnet.ibm.com>
23461 * config/rs6000/power8.md: New.
23462 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23463 setting for power8 entry.
23464 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23465 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23466 test for Power4/Power5 only.
23467 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23469 (force_new_group): Adjust comment.
23470 * config/rs6000/rs6000.md: Include power8.md.
23472 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
23474 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23475 * config/arm/arm-protos.h (arm_max_conditional_execute): New
23477 (tune_params): Update comment.
23478 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23479 (arm_max_conditional_execute): New function.
23480 (thumb2_final_prescan_insn): Use max_insn_skipped and
23481 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23483 2013-06-25 Jakub Jelinek <jakub@redhat.com>
23485 PR tree-optimization/57705
23486 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23487 SSA_NAME step, provided that it is not defined inside the loop.
23488 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23489 (get_initial_def_for_induction): Handle SSA_NAME IV step.
23491 2013-06-25 Martin Jambor <mjambor@suse.cz>
23493 PR middle-end/57670
23494 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23495 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23497 (ipa_note_param_call): Initialize member_ptr flag.
23498 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23499 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23500 (ipa_write_indirect_edge_info): Stream member_ptr flag.
23501 (ipa_read_indirect_edge_info): Likewise.
23503 2013-06-25 Richard Biener <rguenther@suse.de>
23505 PR middle-end/56977
23506 * passes.c (init_optimization_passes): Move pass_fold_builtins
23507 and pass_dce earlier with -Og.
23509 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
23511 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23512 <BIT_FIELD_REF>: Remove trailing TAB.
23513 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23516 2013-06-24 Martin Jambor <mjambor@suse.cz>
23518 PR tree-optimization/57358
23519 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23520 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23521 (ipa_analyze_params_uses): Generate pessimistic info when true.
23523 2013-06-24 Martin Jambor <mjambor@suse.cz>
23525 PR tree-optimization/57539
23526 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23527 global.inlined_to of the new node to it. All callers changed.
23528 * ipa-inline-transform.c (clone_inlined_nodes): New variable
23529 inlining_into, pass it to cgraph_clone_node.
23530 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23531 ipa_free_edge_args_substructures.
23532 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23533 rdesc linked list. Do not assert rdesc edges have inlined caller.
23534 Assert we have found an rdesc in the rdesc list.
23536 2013-06-24 Richard Biener <rguenther@suse.de>
23538 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23539 (pointer_set_lookup): Declare.
23540 (class pointer_map): New template class implementing a
23541 generic pointer to T map.
23542 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23543 pointer_map<T>::contains, pointer_map<T>::insert,
23544 pointer_map<T>::traverse): New functions.
23545 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23546 (pointer_set_lookup): New function.
23547 (pointer_set_contains): Use pointer_set_lookup.
23548 (pointer_set_insert): Likewise.
23549 (insert_aux): Remove.
23550 (struct pointer_map_t): Embed a pointer_set_t.
23551 (pointer_map_create): Adjust.
23552 (pointer_map_destroy): Likewise.
23553 (pointer_map_contains): Likewise.
23554 (pointer_map_insert): Likewise.
23555 (pointer_map_traverse): Likewise.
23556 * tree-streamer.h (struct streamer_tree_cache_d): Use a
23557 pointer_map<unsigned> instead of a pointer_map_t.
23558 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23559 (streamer_tree_cache_lookup): Likewise.
23560 (streamer_tree_cache_create): Likewise.
23561 (streamer_tree_cache_delete): Likewise.
23562 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23563 pointer_map<unsigned> instead of a pointer_map_t.
23564 (lto_init_tree_ref_encoder): Adjust.
23565 (lto_destroy_tree_ref_encoder): Likewise.
23566 * lto-section-out.c (lto_output_decl_index): Likewise.
23567 (lto_record_function_out_decl_state): Likewise.
23568 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23570 2013-06-24 Richard Biener <rguenther@suse.de>
23572 PR tree-optimization/57488
23573 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23575 2013-06-24 Alan Modra <amodra@gmail.com>
23577 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23578 (gen_easy_altivec_constant): Likewise.
23579 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23580 easy_vector_constant_msb): Likewise.
23582 2013-06-23 Jakub Jelinek <jakub@redhat.com>
23585 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23586 add missing return true.
23588 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
23591 * config/sh/predicates.md (general_extend_operand): Invoke
23592 general_movsrc_operand for memory operands.
23593 (general_movsrc_operand): Allow reg+reg addressing, do not use
23594 general_operand for memory operands.
23596 2013-06-23 Sriraman Tallam <tmsriram@google.com>
23598 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
23599 when current target options does not apply.
23600 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23601 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23602 * config/i386/bmiintrin.h: Pass appropriate target
23603 attributes to header.
23604 * config/i386/mmintrin.h: Ditto.
23605 * config/i386/nmmintrin.h: Ditto.
23606 * config/i386/avx2intrin.h: Ditto.
23607 * config/i386/fxsrintrin.h: Ditto.
23608 * config/i386/tbmintrin.h: Ditto.
23609 * config/i386/xsaveintrin.h: Ditto.
23610 * config/i386/f16cintrin.h: Ditto.
23611 * config/i386/xtestintrin.h: Ditto.
23612 * config/i386/xsaveoptintrin.h: Ditto.
23613 * config/i386/bmi2intrin.h: Ditto.
23614 * config/i386/lzcntintrin.h: Ditto.
23615 * config/i386/smmintrin.h: Ditto.
23616 * config/i386/wmmintrin.h: Ditto.
23617 * config/i386/x86intrin.h: Remove all header include guards.
23618 * config/i386/prfchwintrin.h: Ditto.
23619 * config/i386/pmmintrin.h: Ditto.
23620 * config/i386/tmmintrin.h: Ditto.
23621 * config/i386/xmmintrin.h: Ditto.
23622 * config/i386/popcntintrin.h: Ditto.
23623 * config/i386/rdseedintrin.h: Ditto.
23624 * config/i386/ammintrin.h: Ditto.
23625 * config/i386/emmintrin.h: Ditto.
23626 * config/i386/immintrin.h: Remove all header include guards.
23627 * config/i386/fma4intrin.h: Ditto.
23628 * config/i386/lwpintrin.h: Ditto.
23629 * config/i386/xopintrin.h: Ditto.
23630 * config/i386/ia32intrin.h: Ditto.
23631 * config/i386/avxintrin.h: Ditto.
23632 * config/i386/rtmintrin.h: Ditto.
23633 * config/i386/fmaintrin.h: Ditto.
23634 * config/i386/mm3dnow.h: Ditto.
23636 2013-06-22 Sriraman Tallam <tmsriram@google.com>
23638 * common/config/i386/i386-common.c: Handle LZCNT.
23640 2013-06-22 Andi Kleen <ak@linux.intel.com>
23642 * doc/extend.texi: Use __atomic_store_n instead of
23643 __atomic_store in HLE example.
23645 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
23647 * config/sh/sh.c: Remove <cstdlib> workaround.
23649 2013-06-21 Andi Kleen <ak@linux.intel.com>
23651 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
23653 2013-06-21 Andi Kleen <ak@linux.intel.com>
23655 * doc/extend.texi: Document that __atomic_clear and
23656 __atomic_test_and_set should only be used with bool.
23658 2013-06-20 Jan Hubicka <jh@suse.cz>
23660 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23661 types_same_for_odr.
23662 * tree.c (decls_same_for_odr): New function.
23663 (same_for_edr): New function.
23664 (types_same_for_odr): New function.
23665 (get_binfo_at_offset): Use it.
23666 * tree.h (types_same_for_odr): Declare.
23668 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
23669 Jason Merrill <jason@redhat.com>
23671 * system.h: Include <cstdlib> as well as <stdlib.h>.
23673 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
23676 * config/i386/i386.c (construct_container): Report error if
23677 long double is used with disabled x87 float returns.
23679 2013-06-20 Jan Hubicka <jh@suse.cz>
23681 * lto-cgraph.c (input_symtab): Do not set cgraph state.
23683 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
23685 PR rtl-optimization/57425
23686 PR rtl-optimization/57569
23687 * alias.c (write_dependence_p): Remove parameters mem_mode and
23688 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
23689 Changed all callers.
23690 (canon_anti_dependence): Get comments and semantics in sync.
23691 Add parameter mem_canonicalized. Changed all callers.
23692 * rtl.h (canon_anti_dependence): Update prototype.
23694 2013-06-20 Richard Biener <rguenther@suse.de>
23696 * data-streamer-in.c (streamer_read_uhwi): Optimize single
23697 byte case, inline streamer_read_uchar and defer section
23700 2013-06-20 Richard Biener <rguenther@suse.de>
23702 PR tree-optimization/57584
23703 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23704 SSA names into the expanded expression that take part in
23705 abnormal coalescing.
23707 2013-06-19 Sharad Singhai <singhai@google.com>
23709 * gcov.c (print_usage): Handle new option.
23710 (process_args): Ditto.
23711 (get_gcov_intermediate_filename): New function.
23712 (output_intermediate_file): New function.
23713 (output_gcov_file): New function
23714 (generate_results): Handle new option.
23715 (release_function): Relase demangled name.
23716 (read_graph_file): Handle demangled name.
23717 (output_lines): Ditto.
23718 * doc/gcov.texi: Document gcov intermediate format.
23720 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
23723 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23724 (lra_emit_add): Use the functions. Add comment about Y as an
23727 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
23730 * collect2.c (collect_atexit): New.
23731 (collect_exit): Delete.
23732 (main): Register collect_atexit with atexit.
23733 (collect_wait): Change collect_exit to exit.
23735 * collect2.h (collect_exit): Delete.
23736 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23738 2013-06-19 Wei Mi <wmi@google.com>
23740 PR rtl-optimization/57518
23741 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23742 if regno is used in paradoxical subreg.
23743 (update_equiv_regs): Check pdx_subregs[regno] before
23744 set a reg to be equivalent with a mem.
23746 2013-06-19 Matthias Klose <doko@ubuntu.com>
23749 * file-find.h (find_a_file): Add a mode parameter.
23750 * file-find.c (find_a_file): Likewise.
23751 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23752 with X_OK for the executables.
23753 * collect2.c (main): Call find_a_file with X_OK.
23755 2013-06-19 Steve Ellcey <sellcey@mips.com>
23758 * config/mips/mips.md (casesi_internal_mips16_<mode>):
23759 Use NEXT_INSN instead of next_real_insn.
23761 2013-06-19 Jan Hubicka <jh@suse.cz>
23763 * cgraph.h (const_value_known_p): Replace by ...
23764 (ctor_for_folding): .. this one.
23765 * cgraphunit.c (process_function_and_variable_attributes): Use it.
23766 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23767 * expr.c (expand_expr_real_1): Likewise.
23768 (string_constant): Likewise.
23769 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23770 * ipa.c (process_references): Likewise.
23771 (symtab_remove_unreachable_nodes): Likewise.
23772 * ipa-inline-analysis.c (param_change_prob): Likewise.
23773 * gimple-fold.c (canonicalize_constructor_val): Likewise.
23774 (get_base_constructor): Likwise.
23775 * varpool.c (varpool_remove_node): Likewise.
23776 (varpool_remove_initializer): LIkewise.
23777 (dump_varpool_node): LIkwise.
23778 (const_value_known_p): Rewrite to ...
23779 (ctor_for_folding): ... this one.
23781 2013-06-19 Jakub Jelinek <jakub@redhat.com>
23784 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23785 PERSONALITY in $PATH derived prefixes.
23787 2013-06-19 Jeff Law <law@redhat.com>
23789 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23792 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23793 (simplify_bitwise_binary): Use it to simpify certain binary ops on
23796 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
23798 * config/arm/vfp.md: Move VFP instruction classification documentation
23800 * config/arm/arm.md: ... here. Update instruction classification
23803 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
23805 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23806 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23807 pattern. Use more efficient sequences on ARMv5 and Thumb2.
23809 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
23812 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23813 with NEXT_INSN. Use tablejump_p to check for jump table data
23816 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
23819 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23820 that now in C++ the value is correct per the C++ standards.
23822 2013-06-19 Richard Biener <rguenther@suse.de>
23824 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23825 for global context.
23827 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23830 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23833 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23834 with next_active_insn.
23836 2013-06-18 Sriraman Tallam <tmsriram@google.com>
23838 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23839 functions are inlined during failures to flag an error.
23840 * tree-inline.c (expand_call_inline): Allow the error to be flagged
23841 in early inline pass.
23843 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
23845 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23848 2013-06-18 Julian Brown <julian@codesourcery.com>
23850 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23851 Permit virtual register pre-reload if !strict.
23852 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23854 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23856 * config/arm/neon.md (movmisalign<mode>): Use
23857 neon_perm_struct_or_reg_operand instead of
23858 neon_struct_or_register_operand.
23859 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23860 neon_permissive_struct_operand instead of neon_struct_operand.
23861 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23862 neon_vector_mem_operand.
23863 * config/arm/predicates.md (neon_struct_operand): Adjust call to
23864 neon_vector_mem_operand.
23865 (neon_permissive_struct_operand): New.
23866 (neon_struct_or_register_operand): Rename to...
23867 (neon_perm_struct_or_reg_operand): This. Adjust call to
23868 neon_vector_mem_operand.
23870 2013-06-18 Richard Biener <rguenther@suse.de>
23872 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23873 * lto-streamer.h: Include pointer-set.h.
23874 (struct lto_decl_slot): Remove.
23875 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23876 Remove next_index entry.
23877 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23878 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23879 (lto_init_tree_ref_encoder): Adjust.
23880 (lto_destroy_tree_ref_encoder): Likewise.
23881 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23882 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23883 (lto_output_decl_index): Adjust.
23884 (lto_new_out_decl_state): Likewise.
23885 (lto_record_function_out_decl_state): Likewise.
23886 * lto-streamer-out.c (copy_function): Likewise.
23888 2013-06-18 Richard Biener <rguenther@suse.de>
23890 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23891 * cgraphunit.c: Include cfgloop.h.
23892 (init_lowered_empty_function): Initialize the loop tree.
23893 (assemble_thunk): Insert new BBs into loops.
23895 2013-06-18 Richard Biener <rguenther@suse.de>
23897 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23898 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23899 the map from cache entry to cache index optional.
23900 (streamer_tree_cache_replace_tree): Adjust accordingly.
23901 (streamer_tree_cache_append): Likewise.
23902 (streamer_tree_cache_delete): Likewise.
23903 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23904 streamer cache map from cache entry to cache index.
23905 * lto-streamer-out.c (create_output_block): Adjust.
23907 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
23909 * config/arm/arm.md (attribute "insn"): Move multiplication and
23910 division attributes to...
23911 (attribute "type"): ... here. Remove mult.
23912 (attribute "mul32"): New attribute.
23913 (attribute "mul64"): Add umaal.
23914 (*arm_mulsi3): Update attributes.
23915 (*arm_mulsi3_v6): Likewise.
23916 (*thumb_mulsi3): Likewise.
23917 (*thumb_mulsi3_v6): Likewise.
23918 (*mulsi3_compare0): Likewise.
23919 (*mulsi3_compare0_v6): Likewise.
23920 (*mulsi_compare0_scratch): Likewise.
23921 (*mulsi_compare0_scratch_v6): Likewise.
23922 (*mulsi3addsi): Likewise.
23923 (*mulsi3addsi_v6): Likewise.
23924 (*mulsi3addsi_compare0): Likewise.
23925 (*mulsi3addsi_compare0_v6): Likewise.
23926 (*mulsi3addsi_compare0_scratch): Likewise.
23927 (*mulsi3addsi_compare0_scratch_v6): Likewise.
23928 (*mulsi3subsi): Likewise.
23929 (*mulsidi3adddi): Likewise.
23930 (*mulsi3addsi_v6): Likewise.
23931 (*mulsidi3adddi_v6): Likewise.
23932 (*mulsidi3_nov6): Likewise.
23933 (*mulsidi3_v6): Likewise.
23934 (*umulsidi3_nov6): Likewise.
23935 (*umulsidi3_v6): Likewise.
23936 (*umulsidi3adddi): Likewise.
23937 (*umulsidi3adddi_v6): Likewise.
23938 (*smulsi3_highpart_nov6): Likewise.
23939 (*smulsi3_highpart_v6): Likewise.
23940 (*umulsi3_highpart_nov6): Likewise.
23941 (*umulsi3_highpart_v6): Likewise.
23942 (mulhisi3): Likewise.
23943 (*mulhisi3tb): Likewise.
23944 (*mulhisi3bt): Likewise.
23945 (*mulhisi3tt): Likewise.
23946 (maddhisi4): Likewise.
23947 (*maddhisi4tb): Likewise.
23948 (*maddhisi4tt): Likewise.
23949 (maddhidi4): Likewise.
23950 (*maddhidi4tb): Likewise.
23951 (*maddhidi4tt): Likewise.
23952 (divsi3): Likewise.
23953 (udivsi3): Likewise.
23954 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23955 (thumb2_mulsi_short_compare0): Likewise.
23956 (thumb2_mulsi_short_compare0_scratch): Likewise.
23957 * config/arm/arm1020e.md (1020mult1): Update attribute change.
23958 (1020mult2): Likewise.
23959 (1020mult3): Likewise.
23960 (1020mult4): Likewise.
23961 (1020mult5): Likewise.
23962 (1020mult6): Likewise.
23963 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23965 (cortex_a15_mult64): Likewise.
23966 (cortex_a15_sdiv): Likewise.
23967 (cortex_a15_udiv): Likewise.
23968 * config/arm/arm1026ejs.md (mult1): Update attribute change.
23974 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23975 (pj4_ir_div): Likewise.
23976 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23977 (11_mult2): Likewise.
23978 (11_mult3): Likewise.
23979 (11_mult4): Likewise.
23980 (11_mult5): Likewise.
23981 (11_mult6): Likewise.
23982 (11_mult7): Likewise.
23983 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23984 (cortex_a8_mla): Likewise.
23985 (cortex_a8_mull): Likewise.
23986 (cortex_a8_smulwy): Likewise.
23987 (cortex_a8_smlald): Likewise.
23988 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23989 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23990 (cortex_r4_mul_3): Likewise.
23991 (cortex_r4_mla_4): Likewise.
23992 (cortex_r4_mla_3): Likewise.
23993 (cortex_r4_smlald): Likewise.
23994 (cortex_r4_mull): Likewise.
23995 (cortex_r4_sdiv): Likewise.
23996 (cortex_r4_udiv): Likewise.
23997 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23998 (cortex_a7_idiv): Likewise.
23999 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
24000 (9_mult2): Likewise.
24001 (9_mult3): Likewise.
24002 (9_mult4): Likewise.
24003 (9_mult5): Likewise.
24004 (9_mult6): Likewise.
24005 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
24006 (cortex_a53_sdiv): Likewise.
24007 (cortex_a53_udiv): Likewise.
24008 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
24009 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
24010 (mp626_mult2): Likewise.
24011 (mp626_mult3): Likewise.
24012 (mp626_mult4): Likewise.
24013 * config/arm/fa526.md (526_mult1): Update attribute change.
24014 (526_mult2): Likewise.
24015 * config/arm/arm-generic.md (mult): Update attribute change.
24016 (mult_ldsched_strongarm): Likewise.
24017 (mult_ldsched): Likewise.
24018 (multi_cycle): Likewise.
24019 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
24020 * config/arm/fa606te.md (606te_mult1): Update attribute change.
24021 (606te_mult2): Likewise.
24022 (606te_mult3): Likewise.
24023 (606te_mult4): Likewise.
24024 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
24025 (cortex_a9_mac16): Likewise.
24026 (cortex_a9_multiply): Likewise.
24027 (cortex_a9_mac): Likewise.
24028 (cortex_a9_multiply_long): Likewise.
24029 * config/arm/fa626te.md (626te_mult1): Update attribute change.
24030 (626te_mult2): Likewise.
24031 (626te_mult3): Likewise.
24032 (626te_mult4): Likewise.
24034 2013-06-18 Richard Biener <rguenther@suse.de>
24037 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
24039 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24042 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
24043 with next_active_insn.
24045 2013-06-18 Alan Modra <amodra@gmail.com>
24047 * config/rs6000/rs6000.h (enum data_align): New.
24048 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
24049 (DATA_ABI_ALIGNMENT): Define.
24050 (CONSTANT_ALIGNMENT): Correct comment.
24051 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
24052 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
24054 2013-06-17 David Malcolm <dmalcolm@redhat.com>
24056 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
24057 ATTRIBUTE_UNUSED marking.
24059 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
24061 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
24062 alternative and update.
24063 (aarch64_dup_lanedi): Delete.
24064 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
24065 * config/aarch64/aarch64-simd-builtins.def: Update.
24067 2013-06-17 Richard Biener <rguenther@suse.de>
24069 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
24070 (lto_input_scc): Declare.
24071 (lto_input_tree_1): Likewise.
24072 (struct lto_stats_d): Add num_tree_bodies_output and
24073 num_pickle_refs_output.
24074 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
24075 (lto_read_tree_1): Split out from ...
24076 (lto_read_tree): ... this.
24077 (lto_input_scc): New function.
24078 (lto_input_tree_1): Split out from ...
24079 (lto_input_tree): ... this. Handle LTO_tree_scc.
24080 (lto_data_in_create): Create the streamer cache without hashes.
24081 * lto-streamer-out.c (create_output_block): Create the streamer
24082 cache with hashes when not doing WPA.
24083 (lto_write_tree_1): Split out from ...
24084 (lto_write_tree): ... this.
24085 (get_symbol_initial_value): New function.
24086 (lto_output_tree_1): Split out from ...
24087 (lto_output_tree): ... this. Write trees as series of SCCs
24088 using a DFS walk via DFS_write_tree.
24089 (struct sccs, struct scc_entry): New types.
24090 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
24091 (DFS_write_tree_body): New function.
24092 (DFS_write_tree): Likewise.
24093 (hash_tree): Likewise.
24094 (scc_entry_compare): Likewise.
24095 (hash_scc): Likewise.
24096 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
24097 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
24098 TREE_CHAIN as regular reference.
24099 (streamer_read_integer_cst): Remove.
24100 (streamer_get_pickled_tree): Adjust.
24101 * tree-streamer-out.c (streamer_write_chain): Disable streaming
24102 of DECL_EXTERNALs in BLOCK_VARS for now.
24103 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
24105 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
24106 Add hash value argument and record that if hashes are recorded
24108 (streamer_tree_cache_insert_1): Adjust.
24109 (streamer_tree_cache_insert): Likewise.
24110 (streamer_tree_cache_insert_at): Rename to ...
24111 (streamer_tree_cache_replace_tree): ... this and adjust.
24112 (streamer_tree_cache_append): Adjust.
24113 (record_common_node): Likewise.
24114 (streamer_tree_cache_create): Add argument whether to
24115 record hash values together with trees.
24116 (streamer_tree_cache_delete): Adjust.
24117 * tree-streamer.h (struct streamer_tree_cache_d): Add
24119 (streamer_read_integer_cst): Remove.
24120 (streamer_tree_cache_insert): Adjust.
24121 (streamer_tree_cache_append): Likewise.
24122 (streamer_tree_cache_insert_at): Rename to ...
24123 (streamer_tree_cache_replace_tree): ... this and adjust.
24124 (streamer_tree_cache_create): Add argument whether to record hashes.
24125 (streamer_tree_cache_get): Rename to ...
24126 (streamer_tree_cache_get_tree): ... this.
24127 (streamer_tree_cache_get_hash): New function.
24128 * tree.c (cache_integer_cst): New function.
24129 * tree.h (cache_integer_cst): Declare.
24130 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
24131 * lto-symtab.c (lto_varpool_replace_node): Only release
24132 DECL_INITIAL of non-prevailing decls.
24133 * varpool.c (varpool_remove_initializer): Do not release
24134 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
24136 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24138 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
24139 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
24140 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
24141 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
24142 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
24143 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
24144 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
24145 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
24146 instead of TARGET_64BIT.
24147 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
24148 Require ISA_HAS_<D>DIV.
24150 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24152 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
24153 (mips*-*-linux*): Move default with_llsc setting to where other
24155 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
24157 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
24158 Likewise. Remove default with_tune setting. Move default float
24159 setting to its own block. Handle with_llsc in the same block as above.
24161 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
24163 PR rtl-optimization/57425
24164 PR rtl-optimization/57569
24165 * alias.c (write_dependence_p): Add new parameters mem_mode,
24166 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
24167 Changed all callers.
24168 (canon_anti_dependence): New function.
24169 * cse.c (check_dependence): Use canon_anti_dependence.
24170 * cselib.c (cselib_invalidate_mem): Likewise.
24171 * rtl.h (canon_anti_dependence): Declare.
24173 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
24175 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
24176 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
24177 ".set mips3" for 64-bit targets.
24179 2013-06-15 Dehao Chen <dehao@google.com>
24181 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
24182 * gimple-low.c (gimple_check_call_matching_types): Likewise.
24183 (gimple_check_call_args): Likewise.
24184 * value-prof.c (check_ic_target): Likewise.
24185 * ipa-inline.c (early_inliner): Likewise.
24186 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
24187 * cgraph.c (cgraph_create_edge_1): Likewise.
24188 (cgraph_make_edge_direct): Likewise.
24190 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24193 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
24194 rs6000_output_move_128bit to handle emitting quad memory
24195 operations. Set attribute length to 8 bytes.
24197 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24199 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
24201 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
24202 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
24203 (aarch64_<su>mlsl<mode>): Likewise.
24205 2013-06-14 Mike Stump <mikestump@comcast.net>
24207 * Makefile.in (TARGET_H): Add insn-codes.h.
24209 2013-06-14 Alan Modra <amodra@gmail.com>
24211 PR middle-end/57134
24212 PR middle-end/57586
24213 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
24214 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
24215 bitfield expansion when EXPAND_MEMORY.
24216 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
24218 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
24220 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
24221 test for clearing quad memory on 32-bit later.
24223 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24225 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
24226 (fold_negate_expr): Likewise.
24227 (fold_real_zero_addition_p): Handle vectors.
24228 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
24230 2013-06-14 Alan Modra <amodra@gmail.com>
24232 * varasm.c (force_const_mem): Revert 2013-06-07 change.
24234 2013-06-13 Jan Hubicka <jh@suse.cz>
24236 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
24237 Local comdats are not externally visible.
24238 * symtab.c (dump_symtab_base): Dump externally visible.
24239 (verify_symtab_base): Verify back links in the symtab hash.
24241 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24243 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
24244 CONVERT_EXPR as equal nodes.
24246 2013-06-13 Bin Cheng <bin.cheng@arm.com>
24248 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
24250 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
24252 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
24253 Generalize to complex and vector.
24254 * tree.c (build_all_ones_cst): New function.
24255 * tree.h (build_all_ones_cst): Declare it.
24257 2013-06-13 Alan Modra <amodra@gmail.com>
24259 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
24260 * config/rs6000/rs6000.md (signbittf2): New insn.
24261 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
24262 (abstf2_internal, cmptf_internal2): Likewise.
24263 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
24265 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
24266 Pat Haugen <pthaugen@us.ibm.com>
24267 Peter Bergner <bergner@vnet.ibm.com>
24269 * config/rs6000/rs6000.c (emit_load_locked): Add support for
24270 power8 byte, half-word, and quad-word atomic instructions.
24271 (emit_store_conditional): Likewise.
24272 (rs6000_expand_atomic_compare_and_swap): Likewise.
24273 (rs6000_expand_atomic_op): Likewise.
24275 * config/rs6000/sync.md (larx): Add new modes for power8.
24277 (AINT): New mode iterator to include TImode as well as normal
24278 integer modes on power8.
24279 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
24280 that VSX registers are not considered. Use AINT mode iterator
24281 instead of INT1 to allow inclusion of quad word atomic operations
24283 (load_locked<mode>): Likewise.
24284 (store_conditional<mode>): Likewise.
24285 (atomic_compare_and_swap<mode>): Likewise.
24286 (atomic_exchange<mode>): Likewise.
24287 (atomic_nand<mode>): Likewise.
24288 (atomic_fetch_<fetchop_name><mode>): Likewise.
24289 (atomic_nand_fetch<mode>): Likewise.
24290 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
24292 (ATOMIC): On power8, add QImode, HImode modes.
24293 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
24294 modes that promote to SImode.
24295 (load_lockedti): Convert TImode arguments to PTImode, so that we
24296 get a guaranteed even/odd register pair.
24297 (load_lockedpti): Likewise.
24298 (store_conditionalti): Likewise.
24299 (store_conditionalpti): Likewise.
24301 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
24302 atomic load/store instructions.
24305 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
24307 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
24309 (insn_count): New attribute, with most cases extracted from...
24310 (length): ...here. Redefine most cases in terms of insn_count.
24311 (single_insn): Delete.
24312 (can_delay): Use insn_count to check for single instructions.
24313 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
24314 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
24315 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
24316 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
24317 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
24318 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
24319 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
24320 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
24321 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
24322 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
24323 rather than "length".
24324 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
24325 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
24326 Use "insn_count" rather than "length".
24327 * config/mips/mips-dsp.md
24328 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
24329 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
24332 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
24334 PR tree-optimization/57361
24335 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
24337 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
24339 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
24341 (aarch64_simd_combine<mode>): New instruction expansion.
24342 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
24343 function prototype.
24344 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
24345 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
24347 2013-06-12 Jan Hubicka <jh@suse.cz>
24349 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
24350 decl has when in streaming stage.
24351 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
24352 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
24354 2013-06-12 Roland Stigge <stigge@antcom.de>
24357 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24359 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24361 PR tree-optimization/57537
24362 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24363 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24365 2013-06-12 Richard Biener <rguenther@suse.de>
24367 * data-streamer.h (streamer_write_char_stream): CSE
24368 obs->current_pointer.
24369 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24370 streamer_write_char_stream manually and optimize the resulting loop.
24371 (streamer_write_hwi_stream): Likewise.
24373 2013-06-12 Jan Hubicka <jh@suse.cz>
24375 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24376 * cgraph.h (varpool_create_empty_node): Declare.
24377 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24379 * symtab.c (symtab_unregister_node): Be lax about missin entries
24381 (symtab_get_node): Update comment.
24382 * varpool.c (varpool_create_empty_node): Break out from ...
24383 (varpool_node_for_decl): ... here.
24384 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24386 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
24388 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24389 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24390 part. Use straight-line flow at the end.
24391 <COMPONENT_REF>: Remove superfluous else.
24392 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24394 2013-06-12 Jakub Jelinek <jakub@redhat.com>
24397 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24398 target hook even for !TREE_PUBLIC decls. If no resolution info
24399 is available, return false for common and external decls.
24401 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
24403 * config/rl78/constraints.md (U): New constraint.
24404 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24407 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24410 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24411 to allow returning address to AT_PLATFORM name.
24413 2013-06-11 Jan Hubicka <jh@suse.cz>
24415 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24416 * cgraph.h (symtab_node_base): Add weakref flag.
24417 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24418 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24419 (output_weakrefs): Use weakref flag.
24420 * fold-const.c (simple_operand_p): Handle WEAK.
24421 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24422 * ipa.c (varpool_externally_visible_p): Drop weakref.
24423 (function_and_variable_visibility): Update comment; fix weakref
24424 sanity checks; do not clear DECL_WEAK on them.
24425 * lto-cgraph.c (lto_output_node): update.
24426 (lto_output_varpool_node): Update.
24427 (input_overwrite_node): Update.
24428 (input_node): Update.
24429 (input_varpool_node): Update.
24430 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24431 (lto_symtab_merge_symbols): Add sanity check.
24432 (lto_symtab_prevailing_decl): Do not special case weakrefs.
24433 * passes.c (rest_of_decl_compilation): Set static flag, too.
24434 * symtab.c (dump_symtab_base): Dump weakref.
24435 (verify_symtab_base): Sanity check weakrefs.
24436 (symtab_make_decl_local): Remove duplicated code.
24437 (symtab_alias_ultimate_target): Simplify.
24438 * varpool.c (varpool_create_variable_alias): Set weakref flag.
24440 2013-06-11 Tom de Vries <tom@codesourcery.com>
24442 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
24443 sequence_vect == NULL.
24445 2013-06-11 DJ Delorie <dj@redhat.com>
24447 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24448 (rl78_unwind_word_mode): New.
24450 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24452 * final.c (debug_prefix_maps): Make static.
24454 2013-06-11 David Malcolm <dmalcolm@redhat.com>
24456 * function.c (initial_trampoline): Remove stray copy.
24458 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
24460 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24462 2013-06-11 Martin Jambor <mjambor@suse.cz>
24464 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24465 within bounds at the beginning of the function.
24467 2013-06-11 Alan Modra <amodra@gmail.com>
24469 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
24471 (get_named_section): Don't NULL !DECL_P decl.
24473 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
24475 * doc/invoke.texi (core-avx2): Document.
24477 (atom): Updated with MOVBE.
24479 2013-06-11 Richard Biener <rguenther@suse.de>
24481 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24483 2013-06-11 Anton Blanchard <anton@samba.org>
24485 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24486 correct shift value in little-endian mode.
24488 2013-06-11 Jakub Jelinek <jakub@redhat.com>
24491 * varasm.c (get_variable_align): Move #endif to the right place.
24493 2013-06-10 Cary Coutant <ccoutant@google.com>
24495 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24496 for hash so that hash table traversal order is deterministic.
24498 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
24499 Pat Haugen <pthaugen@us.ibm.com>
24500 Peter Bergner <bergner@vnet.ibm.com>
24502 * config/rs6000/vector.md (GPR move splitter): Do not split moves
24503 of vectors in GPRS if they are direct moves or quad word load or
24506 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24508 (direct_move_p): Likewise.
24509 (quad_load_store_p): Likewise.
24511 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24512 classes into bins based on the physical register type.
24513 (reg_class_to_reg_type): Likewise.
24514 (IS_STD_REG_TYPE): Likewise.
24515 (IS_FP_VECT_REG_TYPE): Likewise.
24516 (reload_fpr_gpr): Arrays to determine what insn to use if we can
24517 use direct move instructions.
24518 (reload_gpr_vsx): Likewise.
24519 (reload_vsx_gpr): Likewise.
24520 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24521 information that is a simplification of register classes. Also
24522 precalculate direct move reload helpers.
24523 (direct_move_p): New function to return true if the operation can
24524 be done as a direct move instruciton.
24525 (quad_load_store_p): New function to return true if the operation
24526 is a quad memory operation.
24527 (rs6000_legitimize_address): If quad memory, only allow register
24528 indirect for TImode addresses.
24529 (rs6000_legitimate_address_p): Likewise.
24530 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24531 (rs6000_reload_register_type): Likewise.
24532 (register_to_reg_type): Return register type.
24533 (rs6000_secondary_reload_simple_move): New helper function for
24534 secondary reload and secondary memory needed to identify anything
24535 that is a simple move, and does not need reloading.
24536 (rs6000_secondary_reload_direct_move): New helper function for
24537 secondary reload to identify cases that can be done with several
24538 instructions via the direct move instructions.
24539 (rs6000_secondary_reload_move): New helper function for secondary
24540 reload to identify moves between register types that can be done.
24541 (rs6000_secondary_reload): Add support for quad memory operations
24542 and for direct move.
24543 (rs6000_secondary_memory_needed): Likewise.
24544 (rs6000_debug_secondary_memory_needed): Change argument names.
24545 (rs6000_output_move_128bit): New function to return the move to
24546 use for 128-bit moves, including knowing about the various
24547 limitations of quad memory operations.
24549 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24550 memory operations. call rs6000_output_move_128bit for the actual
24551 instruciton(s) to generate.
24552 (vsx_movti_64bit): Likewise.
24554 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24555 (UNSPEC_P8V_MTVSRWZ): Likewise.
24556 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24557 (UNSPEC_P8V_MTVSRD): Likewise.
24558 (UNSPEC_P8V_XXPERMDI): Likewise.
24559 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24560 (UNSPEC_FUSION_GPR): Likewise.
24561 (FMOVE128_GPR): New iterator for direct move.
24562 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24563 (f32_sv): Likewise.
24564 (f32_dm): Likewise.
24565 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24566 loads and direct move instructions.
24567 (zero_extendsidi2_lfiwzx): Likewise.
24568 (extendsidi2_lfiwax): Likewise.
24569 (extendsidi2_nocell): Likewise.
24570 (floatsi<mode>2_lfiwax): Likewise.
24571 (lfiwax): Likewise.
24572 (floatunssi<mode>2_lfiwzx): Likewise.
24573 (lfiwzx): Likewise.
24574 (fix_trunc<mode>_stfiwx): Likewise.
24575 (fixuns_trunc<mode>_stfiwx): Likewise.
24576 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24577 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24578 (parity<mode>2_cmpb): Set length/type attr.
24579 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24580 for 'mr.' to fast_compare.
24581 (bpermd_<mode>): Change type attr to popcnt.
24582 (p8_fmrgow_<mode>): New insns for power8 direct move support.
24583 (p8_mtvsrwz_1): Likewise.
24584 (p8_mtvsrwz_2): Likewise.
24585 (reload_fpr_from_gpr<mode>): Likewise.
24586 (p8_mtvsrd_1): Likewise.
24587 (p8_mtvsrd_2): Likewise.
24588 (p8_xxpermdi_<mode>): Likewise.
24589 (reload_vsx_from_gpr<mode>): Likewise.
24590 (reload_vsx_from_gprsf): Likewise.
24591 (p8_mfvsrd_3_<mode>): LIkewise.
24592 (reload_gpr_from_vsx<mode>): Likewise.
24593 (reload_gpr_from_vsxsf): Likewise.
24594 (p8_mfvsrd_4_disf): Likewise.
24595 (multi-word GPR splits): Do not split direct moves or quad memory
24598 2013-06-10 David Malcolm <dmalcolm@redhat.com>
24600 * tree-into-ssa.c (interesting_blocks): Make static.
24602 2013-06-10 Jakub Jelinek <jakub@redhat.com>
24605 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24606 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24607 Use DATA_ABI_ALIGNMENT for that case instead if defined.
24608 (get_variable_align): New function.
24609 (get_variable_section, emit_bss, emit_common,
24610 assemble_variable_contents, place_block_symbol): Use
24611 get_variable_align instead of DECL_ALIGN.
24612 (assemble_noswitch_variable): Add align argument, use it
24613 instead of DECL_ALIGN.
24614 (assemble_variable): Adjust caller. Use get_variable_align
24615 instead of DECL_ALIGN.
24616 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24618 (DATA_ABI_ALIGNMENT): Define.
24619 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24620 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
24621 opt is false, only return the psABI mandated alignment increase.
24622 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24623 (DATA_ABI_ALIGNMENT): ... this.
24624 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24625 (DATA_ABI_ALIGNMENT): ... this.
24626 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24627 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24628 (DATA_ABI_ALIGNMENT): ... this.
24629 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24630 * doc/tm.texi: Regenerated.
24632 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
24634 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24635 cmp_code to construct REG_EQUAL note.
24637 2013-06-09 Jakub Jelinek <jakub@redhat.com>
24640 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24641 that operands[2] doesn't overlap with operands[0].
24643 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
24644 Jan Hubicka <jh@suse.cz>
24646 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24647 hack to mark symbols as used.
24649 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
24651 PR rtl-optimization/57559
24652 * lra-constraints.c (process_alt_operands): Don't discourage
24653 memory with known offset for offsetable memory constraint.
24654 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24656 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
24658 * varasm.c (struct oc_local_state): Reorder fields.
24659 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24660 and adjust accordingly.
24661 (output_constructor): Reorder initialization code and adjust call to
24662 output_constructor_bitfield.
24664 2013-06-07 Jan Hubicka <jh@suse.cz>
24666 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24668 2013-06-07 David Malcolm <dmalcolm@redhat.com>
24670 * tree-object-size.c (unknown): Make const.
24672 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24674 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24675 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24676 for last alternative in the cpu_facility attribute.
24678 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24681 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24682 (xordi3): Change operand 2 constraint to arm_xordi_operand.
24683 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24684 * config/arm/constraints.md (Dg): New constraint.
24685 * config/arm/neon.md (xordi3_neon): Remove.
24686 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24687 * config/arm/predicates.md (arm_xordi_operand): New predicate.
24689 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24691 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24692 Clean up alternatives.
24694 2013-06-07 Alan Modra <amodra@gmail.com>
24696 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24699 2013-06-07 Alan Modra <amodra@gmail.com>
24701 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24703 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24705 * config/arm/constraints.md (Df): New constraint.
24706 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24707 Correct length attribute for last two alternatives.
24709 2013-06-07 Alan Modra <amodra@gmail.com>
24711 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24712 override user -mfp-in-toc.
24713 (offsettable_ok_by_alignment): Consider just the current access
24714 rather than the whole object, unless BLKmode. Handle
24715 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24716 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24717 for -mcmodel=medium.
24718 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24719 override user -mfp-in-toc or -msum-in-toc. Default to
24720 -mno-fp-in-toc for -mcmodel=medium.
24722 2013-06-06 DJ Delorie <dj@redhat.com>
24724 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24725 TARGET_VALID_POINTER_MODE.
24727 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24728 Pat Haugen <pthaugen@us.ibm.com>
24729 Peter Bergner <bergner@vnet.ibm.com>
24731 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24732 Document new power8 builtins.
24734 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24735 condition code register, to allow 128-bit logical operations to be
24736 done in the VSX or GPR registers.
24737 (nor<mode>3): Use the canonical form for nor.
24738 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24739 vclz*, and vpopcnt* vector instructions.
24740 (nand<mode>3): Likewise.
24741 (orc<mode>3): Likewise.
24742 (clz<mode>2): LIkewise.
24743 (popcount<mode>2): Likewise.
24745 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24746 that only the GPRs are recognized.
24748 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24749 support for new power8 builtins.
24751 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24753 (xscvdpspn): Likewise.
24759 (vpopcnt): Likewise.
24760 (vpopcntb): Likewise.
24761 (vpopcnth): Likewise.
24762 (vpopcntw): Likewise.
24763 (vpopcntd): Likewise.
24765 (vmrgew): Likewise.
24766 (vmrgow): Likewise.
24768 (eqv_v16qi3): Likewise.
24769 (eqv_v8hi3): Likewise.
24770 (eqv_v4si3): Likewise.
24771 (eqv_v2di3): Likewise.
24772 (eqv_v4sf3): Likewise.
24773 (eqv_v2df3): Likewise.
24775 (nand_v16qi3): Likewise.
24776 (nand_v8hi3): Likewise.
24777 (nand_v4si3): Likewise.
24778 (nand_v2di3): Likewise.
24779 (nand_v4sf3): Likewise.
24780 (nand_v2df3): Likewise.
24782 (orc_v16qi3): Likewise.
24783 (orc_v8hi3): Likewise.
24784 (orc_v4si3): Likewise.
24785 (orc_v2di3): Likewise.
24786 (orc_v4sf3): Likewise.
24787 (orc_v2df3): Likewise.
24789 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24790 allow power8 quad mode in 64-bit.
24791 (rs6000_builtin_vectorized_function): Add support to vectorize
24792 ISA 2.07 count leading zeros, population count builtins.
24793 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24794 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24795 (builtin_function_type): Add vgbbd builtin function which takes an
24797 (altivec_expand_vec_perm_const): Add support for new power8 merge
24800 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24801 that does not include TImdoe for use with 32-bit.
24802 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24804 (UNSPEC_VSX_CVDPSPN): Likewise.
24805 (vsx_xscvdpspn): Likewise.
24806 (vsx_xscvspdpn): Likewise.
24807 (vsx_xscvdpspn_scalar): Likewise.
24808 (vsx_xscvspdpn_directmove): Likewise.
24809 (vsx_and<mode>3): Split logical operations into 32-bit and
24810 64-bit. Add support to do logical operations on TImode as well as
24811 VSX vector types. Allow logical operations to be done in either
24812 VSX registers or in general purpose registers in 64-bit mode. Add
24813 splitters if GPRs were used. For AND, add clobber of CCmode to
24814 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
24816 (vsx_and<mode>3_32bit): Likewise.
24817 (vsx_and<mode>3_64bit): Likewise.
24818 (vsx_ior<mode>3): Likewise.
24819 (vsx_ior<mode>3_32bit): Likewise.
24820 (vsx_ior<mode>3_64bit): Likewise.
24821 (vsx_xor<mode>3): Likewise.
24822 (vsx_xor<mode>3_32bit): Likewise.
24823 (vsx_xor<mode>3_64bit): Likewise.
24824 (vsx_one_cmpl<mode>2): Likewise.
24825 (vsx_one_cmpl<mode>2_32bit): Likewise.
24826 (vsx_one_cmpl<mode>2_64bit): Likewise.
24827 (vsx_nor<mode>3): Likewise.
24828 (vsx_nor<mode>3_32bit): Likewise.
24829 (vsx_nor<mode>3_64bit): Likewise.
24830 (vsx_andc<mode>3): Likewise.
24831 (vsx_andc<mode>3_32bit): Likewise.
24832 (vsx_andc<mode>3_64bit): Likewise.
24833 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24834 and xxlorc instructions.
24835 (vsx_eqv<mode>3_64bit): Likewise.
24836 (vsx_nand<mode>3_32bit): Likewise.
24837 (vsx_nand<mode>3_64bit): Likewise.
24838 (vsx_orc<mode>3_32bit): Likewise.
24839 (vsx_orc<mode>3_64bit): Likewise.
24841 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24843 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24845 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24846 (p8_vmrgow): Likewise.
24847 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24848 GPRs to be split under VSX.
24849 (p8v_clz<mode>2): Add power8 count leading zero support.
24850 (p8v_popcount<mode>2): Add power8 population count support.
24851 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24854 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24857 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24859 (vec_nand): Likewise.
24860 (vec_vclz): Likewise.
24861 (vec_vclzb): Likewise.
24862 (vec_vclzd): Likewise.
24863 (vec_vclzh): Likewise.
24864 (vec_vclzw): Likewise.
24865 (vec_vgbbd): Likewise.
24866 (vec_vmrgew): Likewise.
24867 (vec_vmrgow): Likewise.
24868 (vec_vpopcnt): Likewise.
24869 (vec_vpopcntb): Likewise.
24870 (vec_vpopcntd): Likewise.
24871 (vec_vpopcnth): Likewise.
24872 (vec_vpopcntw): Likewise.
24874 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24876 PR rtl-optimization/57468
24877 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24880 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24882 PR rtl-optimization/57459
24883 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24884 type when setting live regs.
24886 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
24888 * config/s390/s390.opt (mlra): New option.
24889 * config/s390/s390.c (s390_decompose_address): Check displacement
24890 for all registers for LRA.
24891 (s390_secondary_reload): Don't used secondary reloads for LRA.
24892 (s390_lra_p): New function.
24893 (TARGET_LRA_P): Define.
24894 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24895 of attribute cpu_facility to zarch for the last alternative.
24896 (*cmpmem_short): Ditto.
24898 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
24900 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24901 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
24902 (arm_expand_prologue): Likewise.
24904 2013-06-06 Teresa Johnson <tejohnson@google.com>
24907 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24908 as this is now done by redirect_edge_and_branch_force.
24909 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24910 barriers, and fix interaction with splitting.
24911 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24912 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24913 reflect changes made in the routine.
24914 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24915 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24916 since this is called in cfglayout mode, and replace partition fixup
24917 with assert as that is now done by force_nonfallthru_and_redirect.
24918 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24919 already be marked with region crossing note.
24920 (insert_section_boundary_note): Make non-static, gate on flag
24921 has_bb_partition, rewrite to also check for multiple partitions.
24922 (rest_of_handle_reorder_blocks): Remove call to
24923 insert_section_boundary_note, now done later during free_cfg.
24924 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24925 * bb-reorder.h (insert_section_boundary_note): Declare.
24926 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24927 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24928 invoke insert_section_boundary_note.
24929 (try_redirect_by_replacing_jump): Remove unnecessary
24930 check for region crossing note.
24931 (fixup_partition_crossing): New function.
24932 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24933 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24934 in non-cfglayout mode.
24935 (force_nonfallthru_and_redirect): Fixup partition boundaries,
24936 remove old code that tried to do this. Emit barrier correctly
24937 when we are in cfglayout mode.
24938 (last_bb_in_partition): New function.
24939 (rtl_split_edge): Correctly fixup partition boundaries.
24940 (commit_one_edge_insertion): Remove old code that tried to
24941 fixup region crossing edge since this is now handled in
24942 split_block, and set up insertion point correctly since
24943 block may now end in a jump.
24944 (verify_hot_cold_block_grouping): Guard against checking when not in
24945 linearized RTL mode.
24946 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24948 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24949 rtl_verify_flow_info, so not called in cfglayout mode.
24950 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24951 (fixup_reorder_chain): Remove old code that attempted to fixup region
24952 crossing note as this is now handled in force_nonfallthru_and_redirect.
24953 (duplicate_insn_chain): Don't duplicate switch section notes.
24954 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24956 * basic-block.h (emit_barrier_after_bb): Declare.
24958 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24960 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24961 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24962 arm_usatsihi): Adjust alternatives for arm_restrict_it.
24964 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24966 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24968 * config/arm/ldmstm.md: Regenerate.
24970 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24972 * config/arm/sync.md (atomic_loaddi_1):
24973 Disable predication for arm_restrict_it.
24974 (arm_load_exclusive<mode>): Likewise.
24975 (arm_load_exclusivesi): Likewise.
24976 (arm_load_exclusivedi): Likewise.
24977 (arm_load_acquire_exclusive<mode>): Likewise.
24978 (arm_load_acquire_exclusivesi): Likewise.
24979 (arm_load_acquire_exclusivedi): Likewise.
24980 (arm_store_exclusive<mode>): Likewise.
24981 (arm_store_exclusive<mode>): Likewise.
24982 (arm_store_release_exclusivedi): Likewise.
24983 (arm_store_release_exclusive<mode>): Likewise.
24985 2013-06-06 Richard Biener <rguenther@suse.de>
24987 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24989 (lto_tag_is_tree_code_p): Adjust.
24990 (lto_tag_is_gimple_code_p): Likewise.
24991 (lto_gimple_code_to_tag): Likewise.
24992 (lto_tag_to_gimple_code): Likewise.
24993 (lto_tree_code_to_tag): Likewise.
24994 (lto_tag_to_tree_code): Likewise.
24995 * data-streamer.h (streamer_write_hwi_in_range): Use
24996 uhwi streaming to stream the normalized range.
24997 (streamer_read_hwi_in_range): Likewise.
24999 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25001 * config/arm/arm.md (enabled_for_depr_it): New attribute.
25002 (predicable_short_it): Likewise.
25003 (predicated): Likewise.
25004 (enabled): Handle above.
25005 (define_cond_exec): Set predicated attribute to yes.
25007 2013-06-05 Mike Stump <mikestump@comcast.net>
25009 * gdbinit.in (__FUNCTION__): Add.
25011 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
25013 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
25014 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
25016 2013-06-05 Jan Hubicka <jh@suse.cz>
25018 * varasm.c (mark_decl_referenced): Revert the removal until targets
25021 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
25023 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
25024 instead of mark_decl_referenced.
25026 2013-06-05 Jan Hubicka <jh@suse.cz>
25028 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
25029 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
25030 and symtab_used_from_object_file_p.
25031 (cgraph_make_node_local_1): Clear forced_by_abi.
25032 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
25033 * cgraph.h (symtab_node_base): Add forced_by_abi.
25034 (decide_is_variable_needed): Remove.
25035 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
25036 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
25037 (decide_is_symbol_needed): ... this one; handle symbols in general;
25038 always analyze virtuals; honnor forced_by_abi.
25039 (cgraph_finalize_function): Update.
25040 (varpool_finalize_decl): Update.
25041 (symbol_defined_and_needed): Remove.
25042 (analyze_functions): Update.
25043 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25044 output_refs, input_overwrite_node): Handle forced_by_abi.
25045 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
25046 (address_taken_from_non_vtable_p): ... this one.
25047 (comdat_can_be_unshared_p_1): New function.
25048 (cgraph_comdat_can_be_unshared_p): Rename to ...
25049 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
25050 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
25051 (function_and_variable_visibility): Clear forced_by_abi as needed.
25052 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
25053 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25054 * symtab.c (dump_symtab_base): Dump forced_by_abi.
25055 * varpool.c (decide_is_variable_needed): Remove.
25057 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25059 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
25060 (arm_option_override): Override arm_restrict_it where appropriate.
25061 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
25062 * config/arm/arm.opt (mrestrict-it): New command-line option.
25063 * doc/invoke.texi: Document -mrestrict-it.
25065 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25067 * tsan.c (tsan_atomic_table): Make const.
25069 2013-06-05 Richard Biener <rguenther@suse.de>
25071 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
25072 index associated with the tree we are supposed to replace.
25073 * tree-streamer-out.c (pack_ts_base_value_fields): Output
25074 TREE_ASM_WRITTEN as zero for everything but SSA names.
25076 2013-06-05 David Malcolm <dmalcolm@redhat.com>
25078 * tree-ssa-structalias.c (call_stmt_vars): Make static.
25080 2013-06-04 Jan Hubicka <jh@suse.cz>
25082 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
25083 (input_node, input_varpool_node): Handle correctly external same
25085 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
25086 nodes at ltrans stage.
25088 2013-06-04 Jan Hubicka <jh@suse.cz>
25090 * ipa-inline.c (update_caller_keys): Fix availability test.
25091 (update_callee_keys): Likewise.
25092 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
25093 to follow ELF standard.
25095 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
25097 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
25098 (mips64r5900el-*-elf*): New configurations.
25099 * config/mips/mips-cpus.def (r5900): New processor.
25100 * config/mips/mips-tables.opt: Regenerate.
25101 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
25102 (mips_issue_rate): Handle PROCESSOR_R5900.
25103 (mips_reorg_process_insns): Force reorder mode for the R5900.
25104 * config/mips/mips.h (TARGET_MIPS5900): Define.
25105 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
25107 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
25109 * config/mips/mips.md (processor): Add r5900.
25110 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
25112 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25114 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
25115 into function to generate MOVI instruction.
25116 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
25117 (aarch64_preferred_simd_mode): Turn into wrapper.
25118 (aarch64_output_scalar_simd_mov_immediate): New function.
25119 * config/aarch64/aarch64-protos.h: Add prototype for above.
25121 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25123 * config/aarch64/aarch64.c (simd_immediate_info): Remove
25124 element_char member.
25125 (sizetochar): Return signed char.
25126 (aarch64_simd_valid_immediate): Remove elchar and other
25127 unnecessary variables.
25128 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
25129 Calculate element_char as required.
25130 * config/aarch64/aarch64-protos.h: Update and move prototype
25131 for aarch64_output_simd_mov_immediate.
25132 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
25135 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25137 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
25138 information completed by aarch64_simd_valid_immediate.
25139 (aarch64_legitimate_constant_p): Update arguments.
25140 (aarch64_simd_valid_immediate): Work with struct rather than many
25142 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
25143 (aarch64_simd_make_constant): Update arguments.
25144 (aarch64_output_simd_mov_immediate): Work with struct rather than
25145 many pointers. Output immediate directly rather than as operand.
25146 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25148 * config/aarch64/constraints.md (Dn): Update arguments.
25150 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25152 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
25154 (aarch64_simd_immediate_valid_for_move): Remove.
25155 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
25156 (aarch64_simd_make_constant): Update call.
25157 (aarch64_output_simd_mov_immediate): Update call.
25158 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
25160 * config/aarch64/constraints.md (Dn): Update call.
25162 2013-06-04 Ian Bolton <ian.bolton@arm.com>
25164 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
25165 return type to bool for prototype.
25166 (aarch64_legitimate_constant_p): Check for true instead of not -1.
25167 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
25168 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
25170 2013-06-04 Catherine Moore <clm@codesourcery.com>
25172 * config/mips/mips.opt (meva): New.
25173 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
25174 (ASM_SPEC): Handle -meva.
25175 * doc/invoke.texi (meva): Document.
25177 2013-06-04 Alan Modra <amodra@gmail.com>
25179 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
25182 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25184 * rtl.def: Add extra fourth optional field to define_cond_exec.
25185 * gensupport.c (process_one_cond_exec): Process attributes from
25187 * doc/md.texi: Document fourth field in define_cond_exec.
25189 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
25191 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
25192 out the processing order as in store_bit_field_1.
25194 2013-06-04 Jan Hubicka <jh@suse.cz>
25196 PR middle-end/57500
25197 * cgraphunit.c (cgraph_process_same_body_aliases): Create
25198 non-VAR_DECL node if it does not exist yet.
25200 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
25202 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
25203 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
25204 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
25205 target_cpu_default setting.
25207 2013-06-03 Teresa Johnson <tejohnson@google.com>
25209 * dumpfile.c (opt_info_switch_p): Change -fopt-info
25210 default to -fopt-info=optimized instead of all.
25211 * doc/invoke.texi: Ditto.
25212 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
25213 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
25214 (execute_vect_slp): Emit BB vectorization success under
25215 MSG_OPTIMIZED_LOCATIONS.
25216 * tree-vect-slp.c (vect_slp_transform_bb): Change
25217 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
25218 * tree-vect-loop.c (vect_transform_loop): Ditto.
25220 2013-06-03 Jason Merrill <jason@redhat.com>
25223 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25224 Use TARGET_EXPR for C++.
25226 2013-06-03 Jakub Jelinek <jakub@redhat.com>
25228 PR rtl-optimization/57268
25229 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
25230 if DEBUG_INSN_P (insn).
25233 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25235 PR rtl-optimization/57268
25236 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25237 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25239 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25241 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
25242 (ix86_avoid_lea_for_addr): Likewise.
25243 (exact_dependency_1): Likewise.
25244 (ix86_adjust_cost): Likewise.
25245 (swap_top_of_ready_list): Fix formatting and !reload_completed check
25247 (do_reorder_for_imul): Fix typo, formatting and
25248 !reload_completed check removed.
25249 (ix86_sched_reorder): Fix typo and formatting.
25250 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
25253 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
25255 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
25257 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
25259 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
25260 <STRING_CST>: Likewise.
25261 <VECTOR_CST>: Likewise.
25263 2013-06-01 Janus Weil <janus@gcc.gnu.org>
25264 Mikael Morin <mikael@gcc.gnu.org>
25266 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
25267 * config.in: Regenerated.
25268 * configure: Regenerated.
25270 2013-06-01 Jan Hubicka <jh@suse.cz>
25272 PR middle-end/57366
25273 * cgraphunit.c (compile): When weakref is not supported,
25274 set up transparent aliases before final output pass.
25275 * varasm.c (assemble_alias): Do not try to do it here.
25277 2013-06-01 Jan Hubicka <jh@suse.cz>
25279 PR middle-end/57467
25280 * passes.c (for_per_function): Skip unanalyzed functions.
25282 2013-06-01 Jan Hubicka <jh@suse.cz>
25284 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
25285 (lto_symtab_merge_symbols_1): ... this one.
25286 (lto_symtab_merge_cgraph_nodes): Rename to ...
25287 (lto_symtab_merge_symbols): ... this one; simplify.
25288 * cgraph.c (same_body_aliases_done): Rename to ...
25289 (cpp_implicit_aliases_done): ... this one.
25290 (cgraph_create_function_alias): Update.
25291 (cgraph_same_body_alias): Update.
25292 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
25293 (verify_edge_corresponds_to_fndecl): Simplify.
25294 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
25295 (cgraph_node): Remove same_body_alias.
25296 (varpool_node): Remove alias_of and extra_name_alias.
25297 (same_body_aliases_done): Rename to ..
25298 (cpp_implicit_aliases_done): ... this one.
25299 (symtab_alias_ultimate_target): Add default parameter.
25300 (symtab_resolve_alias): New function.
25301 (fixup_same_cpp_alias_visibility): Declare.
25302 (cgraph_function_node): Add default parameter.
25303 (cgraph_node_asm_name): Likewise.
25304 (cgraph_function_or_thunk_node): Add default parameter; do
25305 not ICE when it is NULL.
25306 (varpool_variable_node): Likewise.
25307 * tree-emutls.c (create_emultls_var): Update.
25308 (ipa_lower_emutls): Update.
25309 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
25310 (cgraph_reset_node): Reset alias info.
25311 (cgraph_finalize_function): Update.
25312 (fixup_same_cpp_alias_visibility): Move to symtab.c.
25313 (analyze_function): Simplify.
25314 (cgraph_process_same_body_aliases): Simplify.
25315 (analyze_functions): Fixup same body aliases.
25316 (handle_alias_pairs): Simplify.
25317 (assemble_thunk): Update.
25318 (assemble_thunks_and_aliases): Update.
25319 (output_weakrefs): Rewrite.
25320 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
25321 (lto_output_varpool_node): Likewise.
25322 (compute_ltrans_boundary): Remve assert.
25323 (get_alias_symbol): New functoin.
25324 (input_node): Rewrite alias handling.
25325 (input_varpool_node): Likewise.
25326 * ipa-pure-const.c (propagate_pure_const): Fix formating.
25327 * ipa.c (process_references): Handle weakrefs correctly.
25328 (symtab_remove_unreachable_nodes): Likewise.
25329 * trans-mem.c (get_cg_data): Update.
25330 (ipa_tm_create_version_alias): Update.
25331 (ipa_tm_execute): Update.
25332 * symtab.c (dump_symtab_base): Dump aliases.
25333 (verify_symtab_base): Verify aliases.
25334 (symtab_node_availability): New function.
25335 (symtab_alias_ultimate_target): Simplify.
25336 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
25337 handle all the fixup cases.
25338 (symtab_resolve_alias): New function.
25339 * passes.c (ipa_write_summaries): Handle weakrefs.
25340 * varpool.c (varpool_analyze_node): Simplify.
25341 (assemble_aliases): Update.
25342 (varpool_create_variable_alias): Simplify.
25343 (varpool_extra_name_alias): Simplify.
25344 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
25345 (lto_symtab_merge_symbols): ... this one.
25347 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
25350 PR rtl-optimization/57268
25351 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25352 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25354 2013-06-01 Tobias Burnus <burnus@net-b.de>
25356 Partially reverted:
25357 2013-05-31 Tobias Burnus <burnus@net-b.de>
25359 PR middle-end/57073
25360 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25363 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
25365 PR rtl-optimization/57268
25366 * sched-deps.c (sched_analyze_2): Flush dependence lists if
25367 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
25369 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25371 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25372 unordered comparison operators when -fno-trapping-math is in effect
25374 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25375 and implement unordered comparison operators properly on the e500.
25377 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
25379 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25380 for constant scalar integers.
25381 (simplify_relational_operation_1): Likewise.
25383 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
25385 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25386 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
25389 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25390 Igor Zamyatin <igor.zamyatin@intel.com>
25392 Silvermont (SLM) architecture performance tuning.
25393 * config/i386/i386.h (enum ix86_tune_indices): Add
25394 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25395 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25397 * config/i386/i386.c (initial_ix86_tune_features)
25398 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25399 (ix86_lea_outperforms): Handle Silvermont tuning.
25400 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25402 (ix86_use_lea_for_mov): Likewise.
25403 (ix86_avoid_lea_for_addr): Likewise.
25404 (ix86_lea_for_add_ok): Likewise.
25405 (exact_dependency_1): New function.
25406 (exact_store_load_dependency): Likewise.
25407 (ix86_adjust_cost): Handle Silvermont tuning.
25408 (do_reoder_for_imul): Likewise.
25409 (swap_top_of_ready_list): New function.
25410 (ix86_sched_reorder): Changed to handle Silvermont tuning.
25412 * config/i386/i386.md (peepholes that split memory operand in fp
25415 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25417 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25418 Remove un-necessary braces.
25420 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
25422 * config/aarch64/aarch64.c (aarch64_classify_symbol):
25423 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25425 2013-05-31 Tobias Burnus <burnus@net-b.de>
25427 PR middle-end/57073
25428 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25430 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25433 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25434 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25435 * config/arm/neon.md (iordi3_neon): Remove.
25436 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25437 * config/arm/predicates.md (imm_for_neon_logic_operand):
25438 Move to earlier in the file.
25439 (neon_logic_op2): Likewise.
25440 (arm_iordi_operand_neon): New predicate.
25442 2013-05-31 Richard Biener <rguenther@suse.de>
25444 PR tree-optimization/57478
25445 PR tree-optimization/57453
25446 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25449 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
25451 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25452 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25454 2013-05-30 Tobias Burnus <burnus@net-b.de>
25455 Thomas Koenig <tkoenig@gcc.gnu.org>
25457 PR middle-end/57073
25458 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25459 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25461 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
25463 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25465 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
25467 * target.def (register_usage_leveling_p): New hook.
25468 * targhooks.c (default_register_usage_leveling_p): New.
25469 * targhooks.h (default_register_usage_leveling_p): New prototype.
25470 * lra-assigns.c (register_usage_leveling_p): Use the hook.
25471 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25472 * doc/tm.texi: Update.
25473 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25475 2013-05-30 Ian Bolton <ian.bolton@arm.com>
25477 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25478 (*insv_reg<mode>): New define_insn.
25480 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
25482 PR rtl-optimization/57439
25483 * postreload.c (move2add_valid_value_p): Check that we have
25484 a zero subreg_regno_offset when accessing the register in
25485 the requested mode.
25487 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
25488 Igor Zamyatin <igor.zamyatin@intel.com>
25490 Silvermont (SLM) architecture pipeline model, tuning and
25492 * config.gcc: Add slm config options and target.
25494 * config/i386/slm.md: New.
25496 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25498 * config/i386/i386-c.c (ix86_target_macros_internal): New case
25500 (ix86_target_macros_internal): Likewise.
25502 * config/i386/i386.c (slm_cost): New cost.
25503 (m_SLM): New macro flag.
25504 (initial_ix86_tune_features): Set m_SLM.
25505 (x86_accumulate_outgoing_args): Likewise.
25506 (x86_arch_always_fancy_math_387): Likewise.
25507 (processor_target_table): Add slm cost.
25508 (cpu_names): Add slm cpu name.
25509 (x86_option_override_internal): Set SLM ISA.
25510 (ix86_issue_rate): New case PROCESSOR_SLM.
25511 (ia32_multipass_dfa_lookahead): Likewise.
25512 (fold_builtin_cpu): Add slm.
25514 * config/i386/i386.h (TARGET_SLM): New target macro.
25515 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25516 (processor_type): Add PROCESSOR_SLM.
25518 * config/i386/i386.md (cpu): Add new value "slm".
25519 (slm.md): Include slm.md.
25521 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
25522 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25524 * config/arm/arm-protos.h: Add and update function protos.
25525 * config/arm/arm.c (use_simple_return_p): New added.
25526 (thumb2_expand_return): Check simple_return flag.
25527 * config/arm/arm.md: Add simple_return and conditional simple_return.
25528 * config/arm/iterators.md: Add iterator for return and simple_return.
25530 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25532 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25533 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25534 (arm_emit_vfp_multi_reg_pop): Likewise.
25535 (thumb2_emit_ldrd_pop): Likewise.
25536 (arm_expand_epilogue): Add misc REG_CFA notes.
25537 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25539 2013-05-29 Lawrence Crowl <crowl@google.com>
25541 * config/arm/t-arm: Update for below.
25543 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25544 Change type to hash_table. Update dependent calls and types.
25546 * config/i386/t-cygming: Update for below.
25548 * config/i386/t-interix: Update for below.
25550 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25551 Change type to hash_table. Update dependent calls and types.
25552 (i386_find_on_wrapper_list::wrappers): Likewise.
25554 * config/ia64/t-ia64: Update for below.
25556 * config/ia64/ia64.c (bundle_state_table):
25557 Change type to hash_table. Update dependent calls and types.
25559 * config/mips/mips.c (mips_reorg_process_insns::htab):
25560 Change type to hash_table. Update dependent calls and types.
25562 * config/sol2.c (solaris_comdat_htab):
25563 Change type to hash_table. Update dependent calls and types.
25565 * config/t-sol2: Update for above.
25567 2013-05-29 Teresa Johnson <tejohnson@google.com>
25569 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25570 functions are not yet marked as defined.
25572 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
25573 Pat Haugen <pthaugen@us.ibm.com>
25574 Peter Bergner <bergner@vnet.ibm.com>
25576 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25580 (vrotl<mode>3): Likewise.
25581 (vashl<mode>3): Likewise.
25582 (vlshr<mode>3): Likewise.
25583 (vashr<mode>3): Likewise.
25585 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25586 support for power8 V2DI builtins.
25588 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25589 power8 V2DI builtins.
25590 (vupkhsw): Likewise.
25591 (vupklsw): Likewise.
25592 (vaddudm): Likewise.
25593 (vminsd): Likewise.
25594 (vmaxsd): Likewise.
25595 (vminud): Likewise.
25596 (vmaxud): Likewise.
25597 (vpkudum): Likewise.
25598 (vpksdss): Likewise.
25599 (vpkudus): Likewise.
25600 (vpksdus): Likewise.
25605 (vsubudm): Likewise.
25606 (vcmpequd): Likewise.
25607 (vcmpgtsd): Likewise.
25608 (vcmpgtud): Likewise.
25609 (vcmpequd_p): Likewise.
25610 (vcmpgtsd_p): Likewise.
25611 (vcmpgtud_p): Likewise.
25612 (vupkhsw): Likewise.
25613 (vupklsw): Likewise.
25614 (vaddudm): Likewise.
25615 (vmaxsd): Likewise.
25616 (vmaxud): Likewise.
25617 (vminsd): Likewise.
25618 (vminud): Likewise.
25619 (vpksdss): Likewise.
25620 (vpksdus): Likewise.
25621 (vpkudum): Likewise.
25622 (vpkudus): Likewise.
25627 (vsubudm): Likewise.
25629 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25630 support for power8 V2DI instructions.
25632 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25633 power8 V2DI instructions. Combine pack and unpack insns to use an
25634 iterator for each mode. Check whether a particular mode supports
25635 Altivec instructions instead of just checking TARGET_ALTIVEC.
25636 (UNSPEC_VPKUWUM): Likewise.
25637 (UNSPEC_VPKSHSS): Likewise.
25638 (UNSPEC_VPKSWSS): Likewise.
25639 (UNSPEC_VPKUHUS): Likewise.
25640 (UNSPEC_VPKSHUS): Likewise.
25641 (UNSPEC_VPKUWUS): Likewise.
25642 (UNSPEC_VPKSWUS): Likewise.
25643 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25644 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25645 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25646 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25647 (UNSPEC_VUPKHSB): Likewise.
25648 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25649 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25650 (UNSPEC_VUPKHSH): Likewise.
25651 (UNSPEC_VUPKLSB): Likewise.
25652 (UNSPEC_VUPKLSH): Likewise.
25654 (VI_char): Likewise.
25655 (VI_scalar): Likewise.
25656 (VI_unit): Likewise.
25658 (VP_small): Likewise.
25659 (VP_small_lc): Likewise.
25660 (VU_char): Likewise.
25661 (add<mode>3): Likewise.
25662 (altivec_vaddcuw): Likewise.
25663 (altivec_vaddu<VI_char>s): Likewise.
25664 (altivec_vadds<VI_char>s): Likewise.
25665 (sub<mode>3): Likewise.
25666 (altivec_vsubcuw): Likewise.
25667 (altivec_vsubu<VI_char>s): Likewise.
25668 (altivec_vsubs<VI_char>s): Likewise.
25669 (altivec_vavgs<VI_char>): Likewise.
25670 (altivec_vcmpbfp): Likewise.
25671 (altivec_eq<mode>): Likewise.
25672 (altivec_gt<mode>): Likewise.
25673 (altivec_gtu<mode>): Likewise.
25674 (umax<mode>3): Likewise.
25675 (smax<mode>3): Likewise.
25676 (umin<mode>3): Likewise.
25677 (smin<mode>3): Likewise.
25678 (altivec_vpkuhum): Likewise.
25679 (altivec_vpkuwum): Likewise.
25680 (altivec_vpkshss): Likewise.
25681 (altivec_vpkswss): Likewise.
25682 (altivec_vpkuhus): Likewise.
25683 (altivec_vpkshus): Likewise.
25684 (altivec_vpkuwus): Likewise.
25685 (altivec_vpkswus): Likewise.
25686 (altivec_vpks<VI_char>ss): Likewise.
25687 (altivec_vpks<VI_char>us): Likewise.
25688 (altivec_vpku<VI_char>us): Likewise.
25689 (altivec_vpku<VI_char>um): Likewise.
25690 (altivec_vrl<VI_char>): Likewise.
25691 (altivec_vsl<VI_char>): Likewise.
25692 (altivec_vsr<VI_char>): Likewise.
25693 (altivec_vsra<VI_char>): Likewise.
25694 (altivec_vsldoi_<mode>): Likewise.
25695 (altivec_vupkhsb): Likewise.
25696 (altivec_vupkhs<VU_char>): Likewise.
25697 (altivec_vupkls<VU_char>): Likewise.
25698 (altivec_vupkhsh): Likewise.
25699 (altivec_vupklsb): Likewise.
25700 (altivec_vupklsh): Likewise.
25701 (altivec_vcmpequ<VI_char>_p): Likewise.
25702 (altivec_vcmpgts<VI_char>_p): Likewise.
25703 (altivec_vcmpgtu<VI_char>_p): Likewise.
25704 (abs<mode>2): Likewise.
25705 (vec_unpacks_hi_v16qi): Likewise.
25706 (vec_unpacks_hi_v8hi): Likewise.
25707 (vec_unpacks_lo_v16qi): Likewise.
25708 (vec_unpacks_hi_<VP_small_lc>): Likewise.
25709 (vec_unpacks_lo_v8hi): Likewise.
25710 (vec_unpacks_lo_<VP_small_lc>): Likewise.
25711 (vec_pack_trunc_v8h): Likewise.
25712 (vec_pack_trunc_v4si): Likewise.
25713 (vec_pack_trunc_<mode>): Likewise.
25715 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25717 (vec_vmaxsd): Likewise.
25718 (vec_vmaxud): Likewise.
25719 (vec_vminsd): Likewise.
25720 (vec_vminud): Likewise.
25721 (vec_vpksdss): Likewise.
25722 (vec_vpksdus): Likewise.
25723 (vec_vpkudum): Likewise.
25724 (vec_vpkudus): Likewise.
25725 (vec_vrld): Likewise.
25726 (vec_vsld): Likewise.
25727 (vec_vsrad): Likewise.
25728 (vec_vsrd): Likewise.
25729 (vec_vsubudm): Likewise.
25730 (vec_vupkhsw): Likewise.
25731 (vec_vupklsw): Likewise.
25733 2013-05-29 Jan Hubicka <jh@suse.cz>
25735 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25736 flags; reorder rest of fields in more consistent way.
25737 (varpool_node): Remove analyzed, finalized and alias.
25738 (cgraph_ndoe): Likewise.
25739 (symtab_alias_ultimate_target): New function.
25740 (cgraph_function_node): Move offline.
25741 (cgraph_reset_node): Declare.
25742 (cgraph_comdat_can_be_unshared_p): Remove.
25743 (varpool_remove_initializer): Declare.
25744 (varpool_first_defined_variable, varpool_next_defined_variable
25745 cgraph_first_defined_function, cgraph_next_defined_function): Update.
25746 (cgraph_function_with_gimple_body_p): Update.
25747 (varpool_all_refs_explicit_p): Update.
25748 (symtab_alias_target): New function.
25749 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25750 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25751 (cgraph_function_or_thunk_node): Simplify using
25752 symtab_alias_ultimate_target.
25753 (varpool_variable_node): Likewise.
25754 * cgraph.c (cgraph_create_function_alias): Update.
25755 (cgraph_add_thunk): Update.
25756 (cgraph_remove_node): Update.
25757 (dump_cgraph_node): Do not dump removed flags.
25758 (cgraph_function_body_availability): Update.
25759 (cgraph_propagate_frequency): Update.
25760 (verify_cgraph_node): Check sanity of local flag.
25761 (cgraph_function_node): Move here from cgraph.h; revamp for
25762 cgraph_function_or_thunk_node.
25763 * lto-symtab.c (lto_varpool_replace_node): Update.
25764 (lto_symtab_resolve_can_prevail_p): Update.
25765 (lto_symtab_merge_cgraph_nodes): Update.
25766 * ipa-cp.c (determine_versionability, initialize_node_lattices,
25767 propagate_constants_accross_call, devirtualization_time_bonus,
25768 ipcp_propagate_stage): Update.
25769 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25770 * ipa-inline-transform.c (clone_inlined_nodes,
25771 preserve_function_body_p): Update.
25772 * ipa-reference.c (propagate): Update.
25773 (write_node_summary_p): Update.
25774 * toplev.c (wrapup_global_declaration_2): Update.
25775 * cgraphunit.c (cgraph_analyze_function): Rename to ...
25776 (analyze_function) ... this one.
25777 (cgraph_process_new_functions): Update.
25778 (cgraph_reset_node): Export.
25779 (cgraph_finalize_function): Update.
25780 (cgraph_add_new_function): Update.
25781 (process_function_and_variable_attributes): Update.
25782 (varpool_finalize_decl): Update.
25783 (symbol_finalized): Remove.
25784 (symbol_finalized_and_needed): Rename to ...
25785 (symbol_defined_and_needed): ... update.
25786 (cgraph_analyze_functions): Update.
25787 (handle_alias_pairs): Update.
25788 (mark_functions_to_output): Update.
25789 (assemble_thunk): Update.
25790 (output_in_order): Update.
25791 (output_weakrefs): Update.
25792 (finalize_compilation_unit): Update.
25793 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25794 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25795 input_node, input_varpool_node): Update.
25796 * dbxout.c (dbxout_expand_expr): Update.
25797 * cgraphclones.c (cgraph_clone_node): Update.
25798 (cgraph_copy_node_for_versioning): Update.
25799 (cgraph_materialize_clone): Update.
25800 (cgraph_materialize_all_clones): Update.
25801 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25802 propagate_pure_const, propagate_nothrow): Update.
25803 * lto-streamer-out.c (lto_output, write_symbol): Update.
25804 * ipa-utils.c (ipa_reverse_postorder): Update.
25805 * ipa-inline.c (can_inline_edge_p): Update.
25806 (update_caller_keys, ipa_inline): Update.
25807 * dwarf2out.c (reference_to_unused,
25808 premark_types_used_by_global_vars_helper): Update.
25809 * tree-eh.c (tree_could_trap_p): Update.
25810 * ipa-split.c (consider_split, execute_split_functions): Update.
25811 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25812 has_addr_references_p): Update; move ahead in file for better
25814 (process_references): Simplify.
25815 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25816 bodies are removed.
25817 (cgraph_comdat_can_be_unshared_p): Make static.
25818 (cgraph_externally_visible_p): Update.
25819 (varpool_externally_visible_p): Update.
25820 (function_and_variable_visibility): Update.
25821 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25822 ipa_tm_mark_force_output_node): Update.
25823 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25824 estimate_edge_devirt_benefit, inline_generate_summary,
25825 inline_write_summary): Update.
25826 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25827 * ipa-prop.c (ipa_compute_jump_functions): Update.
25828 (ipa_print_node_params, ipa_prop_read_section,
25829 ipa_update_after_lto_read, read_replacements_section): Update.
25830 * varasm.c (mark_decl_referenced): Update.
25831 (assemble_alias, dump_tm_clone_pairs): Update.
25832 * tree-inline.c (copy_bb): Update.
25833 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25835 * symtab.c (dump_symtab_base): Print new flags.
25836 (verify_symtab_base): Verify new flags.
25837 (symtab_alias_ultimate_target): New function.
25838 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25839 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25841 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25843 * i386.c (ix86_get_function_versions_dispatcher,
25844 ix86_generate_version_dispatcher_body): Update.
25845 (fold_builtin_cpu): Use varpool_add_new_variable.
25846 * varpool.c (varpool_remove_initializer): Break out from ...
25847 (varpool_remove_node): ... this one.
25848 (dump_varpool_node, varpool_node_for_asm,
25849 cgraph_variable_initializer_availability, varpool_analyze_node,
25850 varpool_assemble_decl, varpool_remove_unreferenced_decls,
25851 varpool_finalize_named_section_flags, varpool_create_variable_alias):
25854 2013-05-29 Jan Hubicka <jh@suse.cz>
25856 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25858 2013-05-29 Easwaran Raman <eraman@google.com>
25860 PR tree-optimization/57442
25861 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25862 when control exits the main loop.
25864 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
25866 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25868 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25869 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25870 * rx/t-rx: Add rx100 under multi library matches option for nofpu
25873 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25875 PR tree-optimization/57441
25876 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25877 Don't limit size of incr_vec to number of candidates.
25879 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
25881 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25882 and mips16 directories.
25883 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25884 (MULTILIB_DIRNAMES): Ditto.
25885 (MULTILIB_EXCEPTIONS): Add new exceptions.
25886 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25887 (MULTILIB_DIRNAMES): Ditto.
25888 (MULTILIB_EXCEPTIONS): Add new exceptions.
25890 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25891 Marcus Shawcroft <marcus.shawcroft@arm.com>
25893 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25894 SYMBOL_TINY_ABSOLUTE.
25895 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25896 SYMBOL_TINY_ABSOLUTE.
25897 (aarch64_expand_mov_immediate): Likewise.
25898 (aarch64_classify_symbol): Likewise.
25899 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25900 Permit SYMBOL_TINY_ABSOLUTE.
25901 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25903 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
25904 Marcus Shawcroft <marcus.shawcroft@arm.com>
25906 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25907 Refactor if/switch. Replace gcc_assert with if.
25909 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
25911 * config/i386/i386.c (initial_ix86_tune_features): Enable
25912 FP Reassociation for AMD bdver1 and bdver2.
25914 2013-05-29 Martin Jambor <mjambor@suse.cz>
25916 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25917 and IMAGPART_EXPR do not occur within other handled_components.
25919 2013-05-29 Richard Biener <rguenther@suse.de>
25921 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25922 access on whether the use is in the BB we currently try to
25924 (vect_bb_vectorization_profitable_p): Pass the BB we currently
25925 vectorize to vect_bb_slp_scalar_cost.
25927 2013-05-29 Richard Biener <rguenther@suse.de>
25929 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25930 computing scalar cost offsetted by stmts that are kept live
25932 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25933 for computation of scalar cost.
25935 2013-05-28 Steve Ellcey <sellcey@mips.com>
25937 * config/mips/mips-cpus.def (mips32r2): Change processor type.
25939 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
25941 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25942 array notation built-in reduction functions.
25943 * doc/passes.texi (Passes): Added documentation about changes done
25945 * doc/invoke.texi (C Dialect Options): Added documentation about
25946 the -fcilkplus flag.
25947 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25948 (BUILTINS_DEF): Depend on cilkplus.def.
25949 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
25950 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25951 * cilkplus.def: New file.
25953 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
25955 PR rtl-optimization/57439
25956 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25958 2013-05-28 Easwaran Raman <eraman@google.com>
25960 PR tree-optimization/57337
25961 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25962 (find_insert_point): Correctly identify the insertion point
25963 when two statements with the same UID is compared.
25965 2013-05-28 Richard Biener <rguenther@suse.de>
25967 PR tree-optimization/56787
25968 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25969 from the list of data references.
25970 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25972 (vect_analyze_loop_operations): Likewise.
25973 (vect_transform_loop): Remove clobbers.
25975 2013-05-28 Martin Jambor <mjambor@suse.cz>
25977 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25978 and REALPART_EXPRs have scalar type.
25980 2013-05-28 Richard Biener <rguenther@suse.de>
25982 PR tree-optimization/57411
25983 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25985 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25986 virtual operand propagation.
25988 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25990 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25991 destination register for bmasksi_vis.
25992 (vector_init_bshuffle): Likewise.
25993 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25995 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
25997 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25998 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25999 mode if the instruction isn't available in the original mode.
26000 * config/sparc/sparc.opt (mfix-ut699): New option.
26001 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
26002 (divdf3): Turn into expander.
26003 (divdf3_nofix): New insn.
26004 (divdf3_fix): Likewise.
26005 (divsf3): Disable if -mfix-ut699.
26006 (sqrtdf2): Turn into expander.
26007 (sqrtdf2_nofix): New insn.
26008 (sqrtdf2_fix): Likewise.
26009 (sqrtsf2): Disable if -mfix-ut699.
26011 2013-05-27 Richard Biener <rguenther@suse.de>
26013 PR middle-end/57412
26014 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
26015 block for the new loop.
26017 2013-05-27 Richard Biener <rguenther@suse.de>
26019 PR tree-optimization/57343
26020 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
26021 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
26022 (number_of_iterations_cond): Do not build the folded tree.
26024 2013-05-27 Richard Biener <rguenther@suse.de>
26027 PR middle-end/57381
26028 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26029 OEP_CONSTANT_ADDRESS_OF retained.
26031 PR tree-optimization/57417
26032 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
26033 for unchanged base.
26034 (set_ssa_val_to): Compare addresses using
26035 get_addr_base_and_unit_offset.
26037 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
26039 PR rtl-optimization/56833
26040 * postreload.c (move2add_record_mode): New function.
26041 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
26042 (move2add_use_add2_insn): Use move2add_record_sym_value.
26043 (move2add_use_add3_insn): Likewise.
26044 (reload_cse_move2add): Use move2add_valid_value_p and
26045 move2add_record_mode. Invalidate call-clobbered and REG_INC
26046 affected regs by setting reg_mode to VOIDmode.
26047 (move2add_note_store): Don't pretend the inside of a SUBREG is
26048 the actual destination. Invalidate single/leading registers by
26049 setting reg_mode to VOIDmode.
26050 Use move2add_record_sym_value, move2add_valid_value_p and
26051 move2add_record_mode.
26053 2013-05-27 Richard Biener <rguenther@suse.de>
26055 PR tree-optimization/57396
26056 * tree-affine.c (double_int_constant_multiple_p): Properly
26057 return false for val == 0 and div != 0.
26059 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26061 * config/mips/mips.h: Use #elif in preprocessor conditions.
26063 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26066 * config/mips/constraints.md (kl): New constraint.
26067 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
26068 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
26069 constraint for operand 0. Split after CSE for MIPS16. Emit a move
26070 from LO for MIPS16.
26071 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
26073 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
26076 * config/mips/mips.c (mips_can_inline_p): New function.
26077 (TARGET_CAN_INLINE_P): Define.
26079 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
26081 * sched-int.h (ds_t, dw_t): Make unsigned int.
26082 Fix documentation that describes how all the ds_t bits are used.
26083 Reserve the last bit for delayed-branch scheduling.
26084 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
26085 (BITS_PER_DEP_WEAK): Fix definition and documentation.
26086 (gen_dep_weak_1): Remove prototype.
26087 * sched-deps.c (get_dep_weak_1): Make static.
26088 * target.def (speculate_insn, needs_block_p, gen_spec_check,
26089 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
26090 * doc/tm.texi: Regenerate.
26091 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
26093 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
26096 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
26098 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
26099 Sandra Loosemore <sandra@codesourcery.com>
26101 * config.gcc (powerpc-*): Allow native for with-cpu.
26103 2013-05-24 Jeff Law <law@redhat.com>
26105 PR tree-optimization/57124
26106 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
26107 conversion feeding a condition if the range has an overflow
26108 if -fstrict-overflow. Add warnings for when we do make the
26111 2013-05-24 Dehao Chen <dehao@google.com>
26113 * tree-cfg.c (locus_discrim_map): Fix the typo.
26114 (locus_discrim_hasher): Likewise.
26115 (locus_discrim_hasher::hash): Likewise.
26116 (locus_discrim_hasher::equal): Likewise.
26118 2013-05-24 Martin Jambor <mjambor@suse.cz>
26120 PR tree-optimization/57294
26121 * cgraph.h (ipa_record_stmt_references): Declare.
26122 * cgraphbuild.c (ipa_record_stmt_references): New function.
26123 (build_cgraph_edges): Use ipa_record_stmt_references.
26124 (rebuild_cgraph_edges): Likewise.
26125 (cgraph_rebuild_references): Likewise.
26126 * ipa-prop.c (ipa_modify_call_arguments): Discard references
26127 associated with the old statement and build references from the
26128 newly built statements.
26129 * ipa-ref.c (ipa_remove_stmt_references): New function.
26130 * ipa-ref.h (ipa_remove_stmt_references): Declare.
26132 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
26134 * lra-constraints.c (emit_spill_move): Use smaller mode for
26136 (check_and_process_move): Consider mem-reg moves for secondary
26138 (curr_insn_transform): Don't lose insns emitted before for
26139 secondary memory moves.
26140 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
26141 reg set up in the current insn.
26143 2013-05-24 Dehao Chen <dehao@google.com>
26145 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
26147 (locus_descrim_hasher::equal): Likewise.
26148 (build_gimple_cfg): New discriminator assignment algorithm.
26149 (make_edges): Likewise.
26150 (next_discriminator_for_locus): Likewise.
26151 (same_line_p): Likewise.
26152 (assign_discriminators): Likewise.
26153 (make_cond_expr_edges): Likewise.
26154 (make_gimple_switch_edges): Likewise.
26155 (make_goto_expr_edges): Likewise.
26156 (make_gimple_asm_edges): Likewise.
26158 2013-05-24 Ian Bolton <ian.bolton@arm.com>
26160 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
26161 X format specifier to only display bottom 16 bits.
26162 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
26163 immediate to match for operand 2, since it will be masked.
26165 2013-05-24 Richard Biener <rguenther@suse.de>
26167 PR tree-optimization/57287
26168 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
26169 all SSA names that occur in abnormal PHIs.
26171 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
26174 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
26175 that index is not negative.
26177 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
26179 PR rtl-optimization/55177
26180 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
26181 (simplify_byte_swapping_operation): New.
26182 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
26183 (simplify_relational_operation_1): Deal with BSWAP.
26185 2013-05-23 Richard Henderson <rth@redhat.com>
26188 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
26189 (ix86_reorg): Call it.
26191 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
26194 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
26195 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
26196 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
26198 2013-05-23 Christian Bruel <christian.bruel@st.com>
26201 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
26203 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26204 Marcus Shawcroft <marcus.shawcroft@arm.com>
26206 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
26207 * config/aarch64/constraints.md (Usa): Remove.
26208 * doc/md.texi (AArch64 Usa): Remove.
26210 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
26211 Marcus Shawcroft <marcus.shawcroft@arm.com>
26213 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
26214 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
26215 * config/aarch64/predicates.md (aarch64_const_address): Remove.
26216 (aarch64_mov_operand): Use aarch64_mov_operand_p.
26218 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
26220 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
26221 instruction (AdvSIMD).
26222 * config/aarch64/aarch64-builtins.c
26223 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
26224 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
26226 2013-05-23 Martin Jambor <mjambor@suse.cz>
26228 PR middle-end/57347
26229 * tree.h (contains_bitfld_component_ref_p): Declare.
26230 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
26231 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
26233 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
26234 not access a bit-field. Assert all final offsets are byte-aligned.
26236 2013-05-23 Richard Biener <rguenther@suse.de>
26238 PR tree-optimization/57380
26239 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
26240 least one invariant or re-used load.
26241 * passes.c (init_optimization_passes): Move pass_phiprop before
26244 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
26246 * config/aarch64/aarch64-simd.md
26247 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
26249 2013-05-23 Richard Biener <rguenther@suse.de>
26251 PR middle-end/57381
26252 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
26253 OEP_CONSTANT_ADDRESS_OF retained.
26255 2013-05-23 Jakub Jelinek <jakub@redhat.com>
26257 PR middle-end/57344
26258 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
26259 don't lower unit. Handle unit not being always BITS_PER_WORD.
26261 2013-05-23 Richard Biener <rguenther@suse.de>
26263 PR rtl-optimization/57341
26264 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
26265 instead of true_dependence.
26267 2013-05-22 David Malcolm <dmalcolm@redhat.com>
26269 * bb-reorder.c (branch_threshold): Make const.
26270 (exec_threshold): Ditto.
26272 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26273 Pat Haugen <pthaugen@us.ibm.com>
26274 Peter Bergner <bergner@vnet.ibm.com>
26276 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
26277 documentation for the power8 crypto builtins.
26279 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
26281 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
26282 macros for defining power8 builtin functions.
26283 (BU_P8V_AV_2): Likewise.
26284 (BU_P8V_AV_P): Likewise.
26285 (BU_P8V_VSX_1): Likewise.
26286 (BU_P8V_OVERLOAD_1): Likewise.
26287 (BU_P8V_OVERLOAD_2): Likewise.
26288 (BU_CRYPTO_1): Likewise.
26289 (BU_CRYPTO_2): Likewise.
26290 (BU_CRYPTO_3): Likewise.
26291 (BU_CRYPTO_OVERLOAD_1): Likewise.
26292 (BU_CRYPTO_OVERLOAD_2): Likewise.
26293 (XSCVSPDP): Fix typo, point to the correct instruction.
26294 (VCIPHER): Add power8 crypto builtins.
26295 (VCIPHERLAST): Likewise.
26296 (VNCIPHER): Likewise.
26297 (VNCIPHERLAST): Likewise.
26298 (VPMSUMB): Likewise.
26299 (VPMSUMH): Likewise.
26300 (VPMSUMW): Likewise.
26301 (VPERMXOR_V2DI): Likewise.
26302 (VPERMXOR_V4SI: Likewise.
26303 (VPERMXOR_V8HI: Likewise.
26304 (VPERMXOR_V16QI: Likewise.
26305 (VSHASIGMAW): Likewise.
26306 (VSHASIGMAD): Likewise.
26307 (VPMSUM): Likewise.
26308 (VPERMXOR): Likewise.
26309 (VSHASIGMA): Likewise.
26311 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
26312 __CRYPTO__ if the crypto instructions are available.
26313 (altivec_overloaded_builtins): Add support for overloaded power8
26316 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
26317 support for power8 crypto builtins.
26318 (builtin_function_type): Likewise.
26319 (altivec_init_builtins): Add support for builtins that take vector
26320 long long (V2DI) arguments.
26322 * config/rs6000/crypto.md: New file, define power8 crypto
26325 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
26326 Pat Haugen <pthaugen@us.ibm.com>
26327 Peter Bergner <bergner@vnet.ibm.com>
26329 * doc/invoke.texi (Option Summary): Add power8 options.
26330 (RS/6000 and PowerPC Options): Likewise.
26332 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
26333 constraints.md instead of rs6000.h. Reorder w* constraints. Add
26334 wm, wn, wr documentation.
26336 * config/rs6000/constraints.md (wm): New constraint for VSX
26337 registers if direct move instructions are enabled.
26338 (wn): New constraint for no registers.
26339 (wq): New constraint for quad word even GPR registers.
26340 (wr): New constraint if 64-bit instructions are enabled.
26341 (wv): New constraint if power8 vector instructions are enabled.
26342 (wQ): New constraint for quad word memory locations.
26344 * config/rs6000/predicates.md (const_0_to_15_operand): New
26345 constraint for 0..15 for crypto instructions.
26346 (gpc_reg_operand): If VSX allow registers in VSX registers as well
26347 as GPR and floating point registers.
26348 (int_reg_operand): New predicate to match only GPR registers.
26349 (base_reg_operand): New predicate to match base registers.
26350 (quad_int_reg_operand): New predicate to match even GPR registers
26351 for quad memory operations.
26352 (vsx_reg_or_cint_operand): New predicate to allow vector logical
26353 operations in both GPR and VSX registers.
26354 (quad_memory_operand): New predicate for quad memory operations.
26355 (reg_or_indexed_operand): New predicate for direct move support.
26357 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26358 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26359 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26360 (POWERPC_MASKS): Add power8 options.
26361 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26364 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26365 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26367 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26368 (-mpower8-fusion): New power8 options.
26369 (-mpower8-fusion-sign): Likewise.
26370 (-mpower8-vector): Likewise.
26371 (-mcrypto): Likewise.
26372 (-mdirect-move): Likewise.
26373 (-mquad-memory): Likewise.
26375 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26376 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26378 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26379 (rs6000_debug_vector_unit): Add p8_vector.
26380 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26381 definitions. Also print fusion state.
26382 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26383 (rs6000_builtin_mask_calculate): Add power8 builtin support.
26384 (rs6000_option_override_internal): Add support for power8.
26385 (rs6000_common_init_builtins): Add debugging for skipped builtins
26386 if -mdebug=builtin.
26387 (rs6000_adjust_cost): Add power8 support.
26388 (rs6000_issue_rate): Likewise.
26389 (insn_must_be_first_in_group): Likewise.
26390 (insn_must_be_last_in_group): Likewise.
26391 (force_new_group): Likewise.
26392 (rs6000_register_move_cost): Likewise.
26393 (rs6000_opt_masks): Likewise.
26395 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26396 power8 capable assembler, default to power7 options.
26397 (TARGET_DIRECT_MOVE): Likewise.
26398 (TARGET_CRYPTO): Likewise.
26399 (TARGET_P8_VECTOR): Likewise.
26400 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26401 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26402 (VECTOR_MEM_P8_VECTOR_P): Likewise.
26403 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26404 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26405 (TARGET_XSCVDPSPN): Likewise.
26406 (TARGET_XSCVSPDPN): Likewsie.
26407 (TARGET_SYNC_HI_QI): Likewise.
26408 (TARGET_SYNC_TI): Likewise.
26409 (MASK_CRYPTO): Likewise.
26410 (MASK_DIRECT_MOVE): Likewise.
26411 (MASK_P8_FUSION): Likewise.
26412 (MASK_P8_VECTOR): Likewise.
26413 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26414 temporary used by some of the direct move instructions to get two FP
26415 temporary registers does not force creation of a stack frame.
26416 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26417 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26418 that any VSX registers are tieable, even if they are also an
26419 Altivec vector mode.
26420 (r6000_reg_class_enum): Add wm, wr, wv constraints.
26421 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26422 (RS6000_BTM_CRYPTO): Likewise.
26423 (RS6000_BTM_COMMON): Likewise.
26425 * config/rs6000/rs6000.md (cpu attribute): Add power8.
26426 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26427 (enum rs6000_vector): Add power8 vector support.
26429 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26433 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26434 (any_sibcall_could_use_r3): this and handle indirect calls.
26435 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26437 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26439 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26441 2013-05-22 Richard Biener <rguenther@suse.de>
26443 PR middle-end/57349
26444 * profile.c (branch_prob): Do not split blocks that are
26445 abnormally receiving from ECF_RETURNS_TWICE functions.
26447 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26449 * recog.c (offsettable_address_addr_space_p): Fix calculation of
26450 address mode. Move pointer mode initialization to the same place.
26452 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26454 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26455 while it has any effect.
26457 2013-05-21 Easwaran Raman <eraman@google.com>
26459 PR tree-optimization/57322
26460 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26461 UID of the statement added to the BB to be 1.
26463 2013-05-21 Jakub Jelinek <jakub@redhat.com>
26465 PR tree-optimization/57331
26466 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26467 of conversion from pointer type to integral type with integer.
26469 2013-05-21 Martin Jambor <mjambor@suse.cz>
26472 * ipa-prop.c (ipa_read_node_info): Process param_used and
26473 controlled_uses in the same order as when writing.
26475 2013-05-21 Magnus Granberg <baldrick@free.fr>
26478 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26480 2013-05-21 Richard Biener <rguenther@suse.de>
26482 PR tree-optimization/57318
26483 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26484 estimate stmts with side-effects as likely eliminated.
26486 2013-05-21 Richard Biener <rguenther@suse.de>
26488 PR tree-optimization/57330
26489 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26490 preserve the call stmts fntype.
26492 2013-05-21 Richard Biener <rguenther@suse.de>
26494 PR tree-optimization/57303
26495 * tree-ssa-sink.c (statement_sink_location): Improve killing
26496 stmt detection and properly handle self-assignments.
26498 2013-05-21 Christian Bruel <christian.bruel@st.com>
26500 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26501 spanning registers. LEAF_REG_REMAP is supported only for contiguous
26502 registers. Set register size out of the PARALLEL loop.
26504 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
26507 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26508 (*fmasf4, *fmasf4_media): New insns.
26510 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26512 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26513 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26514 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26515 (mips_idiv_insns): Update the comments to say that the returned
26516 instruction counts are in units of BASE_INSN_LENGTH.
26517 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26518 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
26519 using 2 rather than 4 as the length of indirect MIPS16 and
26520 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
26521 length of a NOP. Don't divide MIPS16 lengths by 2.
26522 (mips16_split_long_branches): Assume a branch is long if the
26523 length is greater than 4 rather than 8.
26524 * config/mips/mips.md (length): Give MIPS16 lengths directly,
26525 rather than multiplying them by 2. Multiply instruction counts
26526 by BASE_INSN_LENGTH rather than 4.
26527 (*jump_mips16, tls_get_tp_mips16_<mode>)
26528 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26530 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26532 * config/mips/mips.md (extended_mips16): Remove branch case.
26533 (length): Remove duplicated extended_mips16 test.
26535 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
26537 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26539 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
26541 * recog.h (Recog_data): Rename to...
26542 (recog_data_d): ...this.
26543 (recog_data): Update accordingly.
26544 * recog.c (recog_data): Likewise.
26545 * reload.c (save_recog_data): Likewise.
26546 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26547 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26549 2013-05-17 Julian Brown <julian@codesourcery.com>
26551 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26552 found in a REG_EQUAL note, invalidate it.
26554 2013-05-17 Easwaran Raman <eraman@google.com>
26556 * tree-ssa-reassoc.c (find_insert_point): New function.
26557 (insert_stmt_after): Likewise.
26558 (get_def_stmt): Likewise.
26559 (ensure_ops_are_available): Likewise.
26560 (not_dominated_by): Likewise.
26561 (rewrite_expr_tree): Do not move statements beyond what is
26562 necessary. Remove call to swap_ops_for_binary_stmt...
26563 (reassociate_bb): ... and move it here.
26564 (build_and_add_sum): Assign UIDs for new statements.
26565 (linearize_expr): Likewise.
26566 (do_reassoc): Renumber gimple statement UIDs.
26568 2013-05-17 Jan Hubicka <jh@suse.cz>
26570 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26572 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26573 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26575 (output_weakrefs): Update.
26577 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
26578 Martin Jambor <mjambor@suse.cz>
26580 PR middle-end/57276
26581 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26582 value that corresponds to the given aggval is found in values vector.
26584 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
26586 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26587 sse, sse2, sse3, ssse3 and sse4a flags to options.
26589 2013-05-17 David Malcolm <dmalcolm@redhat.com>
26591 * gengtype-state.c: (s_expr_writer): New class, to handle
26592 prettifying of output layout of s-expressions.
26593 (state_writer): New class, to write out gtype.state.
26594 (state_written_type_count): Move this variable into member data of
26596 (s_expr_writer::s_expr_writer): New code: constructor for new class
26597 (state_writer::state_writer(): ditto
26598 (s_expr_writer::write_new_line): New function
26599 (s_expr_writer::write_any_indent): ditto
26600 (s_expr_writer::begin_s_expr): ditto
26601 (s_expr_writer::end_s_expr): ditto
26602 (write_state_fileloc): convert to method of state_writer...
26603 (state_writer:: write_state_fileloc): ...and use methods of
26604 s_expr_writer to write indentation into the gtype.state output file
26605 to visually represent the hierarchical structure of the list
26607 (write_state_fields): ditto, renaming to...
26608 (state_writer::write_state_fields)
26609 (write_state_a_string): ditto, renaming to...
26610 (state_writer::write_state_a_string)
26611 (write_state_string_option): ditto, renaming to...
26612 (state_writer::write_state_string_option)
26613 (write_state_type_option): ditto, renaming to...
26614 (state_writer::write_state_type_option)
26615 (write_state_nested_option): ditto, renaming to...
26616 (state_writer::write_state_nested_option)
26617 (write_state_option): ditto, renaming to...
26618 (state_writer::write_state_option)
26619 (write_state_options): ditto, renaming to...
26620 (state_writer::write_state_options)
26621 (write_state_lang_bitmap): ditto, renaming to...
26622 (state_writer::write_state_lang_bitmap)
26623 (write_state_version): ditto, renaming to...
26624 (state_writer::write_state_version)
26625 (write_state_scalar_type): ditto, renaming to...
26626 (state_writer::write_state_scalar_type)
26627 (write_state_string_type): ditto, renaming to...
26628 (state_writer::write_state_string_type)
26629 (write_state_undefined_type): ditto, renaming to...
26630 (state_writer::write_state_undefined_type)
26631 (write_state_struct_union_type): ditto, renaming to...
26632 (state_writer::write_state_struct_union_type)
26633 (write_state_struct_type): ditto, renaming to...
26634 (state_writer::write_state_struct_type)
26635 (write_state_user_struct_type): ditto, renaming to...
26636 (state_writer::write_state_user_struct_type)
26637 (write_state_lang_struct_type): ditto, renaming to...
26638 (state_writer::write_state_lang_struct_type)
26639 (write_state_param_struct_type): ditto, renaming to...
26640 (state_writer::write_state_param_struct_type)
26641 (write_state_pointer_type): ditto, renaming to...
26642 (state_writer::write_state_pointer_type)
26643 (write_state_array_type): ditto, renaming to...
26644 (state_writer::write_state_array_type)
26645 (write_state_gc_used): ditto, renaming to...
26646 (state_writer::write_state_gc_used)
26647 (write_state_common_type_content): ditto, renaming to...
26648 (state_writer::write_state_common_type_content)
26649 (write_state_type): ditto, renaming to...
26650 (state_writer::write_state_type)
26651 (write_state_pair_list): ditto, renaming to...
26652 (state_writer::write_state_pair_list)
26653 (write_state_pair): ditto, renaming to...
26654 (state_writer::write_state_pair)
26655 (write_state_typedefs): ditto, renaming to...
26656 (state_writer::write_state_typedefs)
26657 (write_state_structures): ditto, renaming to...
26658 (state_writer::write_state_structures)
26659 (write_state_param_structs): ditto, renaming to...
26660 (state_writer::write_state_param_structs)
26661 (write_state_variables): ditto, renaming to...
26662 (state_writer::write_state_variables)
26663 (write_state_srcdir): ditto, renaming to...
26664 (state_writer::write_state_srcdir)
26665 (write_state_files_list): ditto, renaming to...
26666 (state_writer::write_state_files_list)
26667 (write_state_languages): ditto, renaming to...
26668 (state_writer::write_state_languages)
26669 (write_state): create a state_writer instance and use it when
26670 writing out the state file
26672 2013-05-17 Mike Stump <mikestump@comcast.net>
26674 PR rtl-optimization/57304
26675 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26676 accessing DF_REF_REAL_LOC.
26678 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26680 PR rtl-optimization/57281
26681 PR rtl-optimization/57300
26682 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26683 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26684 what the other splitter did if the registers are dead.
26686 2013-05-17 Richard Biener <rguenther@suse.de>
26688 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26691 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26693 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26696 2013-05-17 Marek Polacek <polacek@redhat.com>
26698 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26699 length when doing non-zero store of storing '\0' to '\0'.
26701 2013-05-17 Jakub Jelinek <jakub@redhat.com>
26703 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26704 vect_external_def oprnd1 with loop_vinfo, try to emit
26705 optional cast, negation and and stmts on the loop preheader
26706 edge instead of into the pattern def seq.
26708 PR tree-optimization/57051
26709 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26710 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26712 2013-05-16 Nick Clifton <nickc@redhat.com>
26714 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26715 (rl78_is_naked_func): New function.
26716 (rl78_expand_prologue): Skip prologue generation for naked functions.
26717 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26718 * doc/extend.texi (naked): Add RL78 to the list of processors
26719 that supports this attribute.
26721 2013-05-16 Jeff Law <law@redhat.com>
26723 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26725 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26727 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26728 cache parameters using detect_caches_amd also for CYRIX,
26729 NSC and TM2 signatures.
26731 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
26732 Dzianis Kahanovich <mahatma@eu.by>
26736 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26737 VIA/Centaur processors and determine their cache parameters
26738 using detect_caches_amd.
26740 2013-05-16 Teresa Johnson <tejohnson@google.com>
26742 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26743 (rtl_verify_edges): New function.
26744 (rtl_verify_bb_insns): Ditto.
26745 (rtl_verify_bb_pointers): Ditto.
26746 (rtl_verify_bb_insn_chain): Ditto.
26747 (rtl_verify_fallthru): Ditto.
26748 (rtl_verify_bb_layout): Ditto.
26749 (rtl_verify_flow_info_1): Outline checks into new functions.
26750 (rtl_verify_flow_info): Ditto.
26752 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
26754 * cfghooks.c (copy_bbs): Add update_dominance argument.
26755 * cfghooks.h (copy_bbs): Update prototype.
26756 * tree-cfg.c (gimple_duplicate_sese_region):
26757 Add update_dominance argument.
26758 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26759 * tree-ssa-loop-ch.c (copy_loop_headers): Update
26760 gimple_duplicate_sese_region call.
26761 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26762 Update copy_bbs call.
26763 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26764 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26766 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26768 * tree-vectorizer.h (NUM_PATTERNS): Increment.
26769 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26770 vect_recog_rotate_pattern.
26771 (vect_recog_rotate_pattern): New function.
26773 2013-05-16 Jason Merrill <jason@redhat.com>
26775 * Makefile.in (LLINKER): New variable.
26776 (mostlyclean): Remove link mutex.
26777 * configure.ac: Handle --enable-link-mutex.
26778 * lock-and-run.sh: New script.
26780 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26783 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26786 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26788 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26790 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
26792 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26793 * config/arm/arm.c (next_consecutive_mem): New function.
26794 (gen_movmem_ldrd_strd): Likewise.
26795 * config/arm/arm.md (movmemqi): Update condition and code.
26796 (unaligned_loaddi, unaligned_storedi): New patterns.
26798 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26800 * config.gcc: Obsolete *-*-solaris2.9*.
26801 * doc/install.texi (Specific, *-*-solaris2*): Document it.
26803 2013-05-16 Richard Biener <rguenther@suse.de>
26805 * passes.c (init_optimization_passes): Move pass_parallelize_loops
26806 earlier, after GRAPHITE transforms and IV canonicalization.
26808 2013-05-16 Jakub Jelinek <jakub@redhat.com>
26810 * omp-low.c (extract_omp_for_data): For collapsed loops,
26811 if at least one of the loops is known at compile time to
26812 iterate zero times, set count to 0.
26813 (expand_omp_regimplify_p): New function.
26814 (expand_omp_for_generic): For collapsed loops, if at least
26815 one of the loops isn't known to iterate at least once,
26816 add runtime check with setting count to 0.
26817 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26818 For unsigned types if it isn't known at compile time that
26819 the loop will iterate at least once, add runtime check to bypass
26820 the whole loop if initial condition isn't true.
26822 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
26824 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26826 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
26828 PR middle-end/57286
26829 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26830 transformations to avoid an infinite loop.
26832 2013-05-16 Marek Polacek <polacek@redhat.com>
26834 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26836 2013-05-15 Leif Ekblad <leif@rdos.net>
26838 * config/i386/i386.c (ix86_decompose_address): Use
26839 DEFAULT_TLS_SEG_REG to access TLS segment register.
26840 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26841 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26842 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26844 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
26847 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26848 sibling calls to functions that would normally be lazily bound,
26849 unless $gp is call-clobbered.
26851 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
26853 * config/i386/i386.c (ix86_option_override_internal): Update
26854 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
26855 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26856 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26857 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26859 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26861 2013-05-15 Andreas Schwab <schwab@suse.de>
26863 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26864 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
26867 2013-05-15 Teresa Johnson <tejohnson@google.com>
26869 * loop-unroll.c (report_unroll_peel): Check decision before
26870 emitting unroll/peel message.
26872 2013-05-15 Teresa Johnson <tejohnson@google.com>
26874 * function.h (has_bb_partition): New rtl_data flag.
26875 (bb_reorder_complete): Ditto.
26876 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26877 instead of flag_reorder_blocks_and_partition.
26878 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26879 with some enhancements.
26880 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26881 * bb-reorder.c (connect_traces): Check for has_bb_partition
26882 instead of flag_reorder_blocks_and_partition.
26883 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26884 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26885 verify_hot_cold_block_grouping.
26886 (partition_hot_cold_basic_blocks): Set has_bb_partition.
26888 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26891 * config/arm/predicates.md (call_insn_operand): New predicate.
26892 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
26893 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26894 if insn is not a tail call.
26895 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26897 * config/arm/arm.h (enum reg_class): New caller save register class.
26898 (REG_CLASS_NAMES): Likewise.
26899 (REG_CLASS_CONTENTS): Likewise.
26900 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26903 2013-05-15 Richard Biener <rguenther@suse.de>
26905 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26906 of MSG_OPTIMIZED_LOCATIONS.
26907 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26908 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26910 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26911 of MSG_OPTIMIZED_LOCATIONS.
26912 (execute_vect_slp): Likewise.
26913 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26914 (vect_create_cond_for_alias_checks): Likewise.
26915 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26916 (vect_recog_widen_mult_pattern): Likewise.
26917 (vect_recog_widen_sum_pattern): Likewise.
26918 (vect_recog_over_widening_pattern): Likewise.
26919 (vect_recog_widen_shift_pattern): Likewise.
26920 (vect_recog_vector_vector_shift_pattern): Likewise.
26921 (vect_recog_divmod_pattern): Likewise.
26922 (vect_recog_mixed_size_cond_pattern): Likewise.
26923 (vect_recog_bool_pattern): Likewise.
26924 (vect_pattern_recog_1): Likewise.
26926 2013-05-15 Martin Jambor <mjambor@suse.cz>
26928 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26929 non-functions to builtin_unreachable.
26930 * ipa-inline-transform.c (inline_call): Do not assert estimates were
26931 correct when new direct edges were discovered.
26933 2013-05-15 Martin Jambor <mjambor@suse.cz>
26935 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26936 header, print symbol order instead of node uid, print more information
26937 about indirect edge targets.
26938 (ipa_make_edge_direct_to_target): Print symbol order instead of node
26940 (ipa_make_edge_direct_to_target): Likewise.
26941 (remove_described_reference): Likewise.
26942 (propagate_controlled_uses): Likewise.
26943 (ipa_print_node_params): Also print symbol order.
26944 (ipcp_transform_function): Print symbol order instead of node uids.
26945 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26946 (cgraph_get_create_real_symbol_node): Likewise.
26947 * ipa-cp.c (print_lattice): Likewise.
26948 (print_all_lattices): Likewise.
26949 (determine_versionability): Likewise.
26950 (initialize_node_lattices): Likewise.
26951 (estimate_local_effects): Likewise.
26952 (update_profiling_info): Likewise.
26953 (create_specialized_node): Likewise.
26954 (perhaps_add_new_callers): Likewise.
26955 (decide_about_value): Likewise.
26956 (decide_whether_version_node): Likewise.
26957 (identify_dead_nodes): Likewise.
26958 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26959 (dump_inline_summary): Likewise.
26960 (estimate_node_size_and_time): Likewise.
26961 (inline_analyze_function): Likewise.
26962 * ipa-inline.c (report_inline_failed_reason): Likewise.
26963 (want_early_inline_function_p): Likewise.
26964 (edge_badness): Likewise.
26965 (update_edge_key): Likewise.
26966 (inline_small_functions): Likewise. Add dumping of order to two other
26968 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26969 instead of node uids.
26970 (propagate_pure_const): Likewise.
26971 (propagate_pure_const): Likewise.
26972 * ipa-utils.c (dump_cgraph_node_set): Likewise.
26973 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26974 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26976 * tree-pretty-print.c (dump_function_header): Likewise.
26977 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26978 Print symbol order instead of node uids.
26980 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26982 * config/s390/s390.c (s390_register_move_cost): Don't impose the
26983 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26985 2013-05-15 Richard Biener <rguenther@suse.de>
26987 PR tree-optimization/57275
26988 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26989 return value for fail to do runtime alias checks for gather loads.
26991 2013-05-15 Jan Hubicka <jh@suse.cz>
26995 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26996 weakrefs are not external.
26997 (lto_symtab_merge_decls): Fix thinko when dealing with
26998 non-lto_symtab decls.
26999 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
27000 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
27001 * varpool.c (dump_varpool_node): Dump more flags.
27003 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27005 * config/i386/i386.c (processor_alias_table): Add instruction
27006 FSGSBASE for AMD bdver3 architecture.
27008 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27010 * tree.c (warn_deprecated_use): Print file:line using locus color.
27011 * diagnostic.c (diagnostic_report_current_module): Print file:line
27012 and file:line:column using locus color.
27014 2013-05-14 Mike Stump <mikestump@comcast.net>
27016 * gdbinit.in: Add __null.
27018 2013-05-14 Mike Stump <mikestump@comcast.net>
27020 * recog.h: Rename struct recog_data to Recog_data.
27021 * recog.c: Likewise.
27022 * reload.c (can_reload_into): Likewise.
27023 * config/picochip/picochip.c: Likewise.
27025 2013-05-14 Mike Stump <mikestump@comcast.net>
27027 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
27029 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
27031 * resource.h (struct resources): Remove unch_memory member.
27032 (CLEAR_RESOURCE): Don't clear unch_memory.
27033 * resource.c (mark_referenced_resources): Don't set it.
27034 (mark_set_resources): Likewise.
27035 (mark_target_live_regs): Don't clear it.
27036 (init_resource_info): Likewise.
27037 * reorg.c (resource_conflicts_p): Don't compare it.
27038 (redundant_insn): Don't set it.
27040 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
27042 * emit-rtl.c (next_label): Remove unused function.
27043 (skip_consecutive_labels, link_cc0_insns): Move to ...
27044 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
27045 only place where these functions are used, and make them static.
27047 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27049 * fold-const.c (fold_negate_expr): Handle vectors.
27050 (fold_truth_not_expr): Make it static.
27051 (fold_invert_truthvalue): New static function.
27052 (invert_truthvalue_loc): Handle vectors. Do not call
27053 fold_truth_not_expr directly.
27054 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
27055 <TRUTH_NOT_EXPR>: Do not cast to boolean.
27056 (fold_comparison): Handle vector constants.
27057 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
27058 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
27059 * tree.h (fold_truth_not_expr): Remove declaration.
27061 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
27063 * config/aarch64/aarch64-simd.md
27064 (aarch64_vcond_internal<mode>): Rename to...
27065 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
27066 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
27067 float modes. Clarify all iterator modes.
27068 (vcond<mode><mode>): Use new name for vcond expanders.
27069 (vcond<v_cmp_result><mode>): Likewise.
27070 (vcondu<mode><mode>: Likewise.
27071 * config/aarch64/iterators.md (VDQF_COND): New.
27073 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
27076 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
27077 variable for the shift amount. Check that we shift by non-negative
27080 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
27083 * config/arm/arm.h (EPILOGUE_USES): Only return true
27084 for LR_REGNUM after epilogue_completed.
27086 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
27088 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
27089 is error_mark_node.
27091 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27094 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
27095 and Solaris 11+/x86 with gld.
27096 * configure: Regenerate.
27098 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27100 * expmed.c (expand_shift_1): Canonicalize rotates by
27101 constant bitsize / 2 to bitsize - 1.
27102 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
27103 case ROTATERT>: Likewise.
27106 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27108 * config/i386/i386.md (rotateinv): New code attr.
27109 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27110 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27111 roll $31, %eax, etc.
27113 2013-05-14 Richard Biener <rguenther@suse.de>
27115 PR middle-end/57235
27116 * tree-eh.c (sink_clobbers): Give up for successors with
27117 multiple predecessors and no virtual uses.
27119 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
27121 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
27122 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
27124 2013-05-14 Jakub Jelinek <jakub@redhat.com>
27126 PR middle-end/57251
27127 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
27128 the case when both op0 and op1 have VOIDmode.
27130 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27132 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
27133 in multiply-accumulate mode.
27135 2013-05-13 Guozhi Wei <carrot@google.com>
27137 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
27139 2013-05-13 Kai Tietz <ktietz@redhat.com>
27142 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
27143 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
27144 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
27145 * config/i386/i386.c (ix86_option_override_internal): Likewise.
27146 (ix86_expand_prologue): Likewise.
27147 (ix86_expand_split_stack_prologue): Likewise.
27148 (legitimate_pic_address_disp_p): Likewise.
27149 (legitimize_pic_address): Likewise.
27150 (legitimize_tls_address): Likewise.
27151 (legitimize_pe_coff_symbol): Likewise.
27152 (output_pic_addr_const): Likewise.
27153 (construct_plt_address): Likewise.
27154 (ix86_expand_call): Likewise.
27155 (x86_output_mi_thunk): Likewise.
27156 (x86_function_profiler): Likewise.
27158 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
27160 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
27161 similar switch cases.
27162 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
27163 (aarch64_simd_mov_to_<mode>low): Delete.
27164 (aarch64_simd_mov_to_<mode>high): Delete.
27165 (move_lo_quad_<mode>): Add w<-r alternative.
27166 (aarch64_simd_move_hi_quad_<mode>): Likewise.
27167 (aarch64_simd_mov_from_*): Update type attribute.
27168 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
27171 2013-05-13 Jan Hubicka <jh@suse.cz>
27173 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
27174 * config/i386/i386.c (ix86_compute_frame_layout,
27175 ix86_expand_epilogue, emit_i387_cw_initialization,
27176 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
27177 ix86_local_alignment): Fix use of size/speed predicates.
27179 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27181 PR tree-optimization/45216
27182 PR tree-optimization/57157
27183 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
27184 the (-Y) & (B - 1) variant if OP is |.
27185 * expmed.c (expand_shift_1): For rotations by const0_rtx just
27186 return shifted. Use (-op1) & (prec - 1) as other_amount
27187 instead of prec - op1.
27189 2013-05-13 Martin Jambor <mjambor@suse.cz>
27191 PR middle-end/42371
27192 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
27193 (ipa_constant_data): New type.
27194 (ipa_jump_func): Use ipa_constant_data to hold information about
27195 constant jump functions.
27196 (ipa_get_jf_constant): Adjust to jump function type changes.
27197 (ipa_get_jf_constant_rdesc): New function.
27198 (ipa_param_descriptor): New field controlled_uses.
27199 (ipa_get_controlled_uses): New function.
27200 (ipa_set_controlled_uses): Likewise.
27201 * ipa-ref.h (ipa_find_reference): Declare.
27202 * ipa-prop.c (ipa_cst_ref_desc): New type.
27203 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
27205 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
27206 New parameter cs. Adjust all callers.
27207 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
27208 (remove_described_reference): New function.
27209 (jfunc_rdesc_usable): Likewise.
27210 (try_make_edge_direct_simple_call): Decrement controlled use count,
27211 attempt to remove reference if it hits zero.
27212 (combine_controlled_uses_counters): New function.
27213 (propagate_controlled_uses): Likewise.
27214 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
27215 (ipa_edge_duplication_hook): Duplicate reference descriptions.
27216 (ipa_print_node_params): Print described use counter.
27217 (ipa_write_jump_function): Adjust to jump function type changes.
27218 (ipa_read_jump_function): New parameter CS, pass it to
27219 ipa_set_jf_constant. Adjust caller.
27220 (ipa_write_node_info): Stream controlled use count
27221 (ipa_read_node_info): Likewise.
27222 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
27224 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
27225 count. Remove cloning-added reference if it reaches zero.
27226 * ipa-ref.c (ipa_find_reference): New function.
27228 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27230 * config/i386/i386.c (processor_target_table): Modified default
27231 alignment values for AMD BD and BT architectures.
27233 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
27235 * tree-vect-generic.c (uniform_vector_p): Move ...
27236 * tree.c (uniform_vector_p): ... here.
27237 * tree.h (uniform_vector_p): Declare it.
27238 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
27241 2013-05-13 Jakub Jelinek <jakub@redhat.com>
27243 PR tree-optimization/57230
27244 * tree-ssa-strlen.c (handle_char_store): Record length for
27245 array store from STRING_CST.
27247 PR tree-optimization/57230
27248 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
27251 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
27253 * config/epiphany/epiphany.c (epiphany_init): Check size of
27254 NUM_MODES_FOR_MODE_SWITCHING.
27255 (epiphany_expand_prologue):
27256 Remove CONFIG_REGNUM initial value handling code.
27257 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
27258 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
27259 (emit_set_fp_mode, epiphany_mode_after): Likewise.
27260 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
27261 Don't return 1 for FP_MODE_NONE.
27262 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
27263 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
27264 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
27265 * config/epiphany/epiphany.md (save_config): New pattern.
27267 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
27269 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
27271 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
27273 * config/i386/i386.md (memory): Handle sseishft1.
27274 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
27275 (*vec_extractv2di_1): Ditto.
27277 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
27279 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
27282 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
27284 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
27285 Add mthumb/march=armv7-a multilib.
27286 Add mthumb/march=armv7-r multilib.
27287 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
27289 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
27291 * config/v850/t-rtems: Add more multilibs.
27293 2013-05-10 Richard Biener <rguenther@suse.de>
27295 PR tree-optimization/57214
27296 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
27297 not propagate from SSA names that occur in abnormal PHI nodes.
27299 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
27301 * stor-layout.c (element_precision): New function.
27302 * machmode.h (element_precision): Declare it.
27303 * tree.c (build_minus_one_cst): New function.
27304 (element_precision): Likewise.
27305 * tree.h (build_minus_one_cst): Declare new function.
27306 (element_precision): Likewise.
27307 * fold-const.c (operand_equal_p): Use element_precision.
27308 (fold_binary_loc): Handle vector types.
27309 * convert.c (convert_to_integer): Use element_precision.
27310 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
27313 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
27315 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
27316 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
27317 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
27318 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27319 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
27320 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
27321 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
27322 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
27323 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
27324 (Uuw8): New constraints.
27325 (Usb4): Move into alphabetical order.
27326 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
27327 (sd8_operand, ub8_operand, uw8_operand): New predicates.
27328 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
27329 previously unnamed patterns.
27330 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
27331 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
27332 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
27333 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
27334 of set_attr_alternative/if_then_else. Use extended_mips16 instead
27335 of specific lengths.
27337 2013-05-10 Jakub Jelinek <jakub@redhat.com>
27339 * config/i386/i386.md (rotateinv): New code attr.
27340 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
27341 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
27342 roll $31, %eax, etc.
27344 PR tree-optimization/45216
27345 PR tree-optimization/57157
27346 * tree-ssa-forwprop.c (simplify_rotate): New function.
27347 (ssa_forward_propagate_and_combine): Call it.
27349 2013-05-10 Richard Biener <rguenther@suse.de>
27351 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
27352 disable peeling when we version for aliasing.
27353 (vector_alignment_reachable_p): Honor explicit user alignment.
27354 (vect_supportable_dr_alignment): Likewise.
27355 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
27356 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27357 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27358 then peeling to arrange for the cost-model check to come first.
27360 2013-05-10 Alan Modra <amodra@gmail.com>
27362 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27363 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27364 * configure: Regenerate.
27366 2013-05-10 Alan Modra <amodra@gmail.com>
27369 * varasm.c (default_elf_select_section): Move !DECL_P check..
27370 (get_named_section): ..to here before calling get_section_name.
27372 (default_section_type_flags): Add DECL_P check.
27373 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27374 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27376 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
27378 * config/epiphany/epiphany.c (epiphany_expand_prologue):
27379 When using gen_stack_adjust_str with a register offset, add a
27380 REG_FRAME_RELATED_EXPR note.
27382 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
27384 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27385 (*vec_extractv4si_zext_mem): Ditto.
27386 (*vec_extractv2di): Add 0->x and x->x alternatives.
27387 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27388 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27390 2013-05-09 Jason Merrill <jason@redhat.com>
27392 N3639 C++1y VLA support
27393 * gimplify.c (gimplify_vla_decl): Don't touch an existing
27396 * tree.c (build_constructor_va): New.
27397 * tree.h: Declare it.
27399 2013-05-09 Martin Jambor <mjambor@suse.cz>
27402 * gimple-fold.c (canonicalize_constructor_val): Call
27403 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27405 2013-05-09 Jan Hubicka <jh@suse.cz>
27406 Richard Biener <rguenther@suse.de>
27409 * symtab.c (symtab_make_decl_local): Do not add private names.
27411 2013-05-09 Jan Hubicka <jh@suse.cz>
27414 * symtab.c (insert_to_assembler_name_hash): Handle clones.
27415 (unlink_from_assembler_name_hash): Likewise.
27416 (symtab_prevail_in_asm_name_hash, symtab_register_node,
27417 symtab_unregister_node, symtab_initialize_asm_name_hash,
27418 change_decl_assembler_name): Update.
27420 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
27422 * config/aarch64/aarch64.md: New movtf split.
27423 (*movtf_aarch64): Update.
27424 (aarch64_movdi_tilow): Handle TF modes and rename to
27425 aarch64_movdi_<mode>low.
27426 (aarch64_movdi_tihigh): Handle TF modes and rename to
27427 aarch64_movdi_<mode>high
27428 (aarch64_movtihigh_di): Handle TF modes and rename to
27429 aarch64_mov<mode>high_di
27430 (aarch64_movtilow_di): Handle TF modes and rename to
27431 aarch64_mov<mode>low_di
27432 (aarch64_movtilow_tilow): Remove spurious whitespace.
27433 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27435 (aarch64_print_operand): Update.
27437 2013-05-09 Alan Modra <amodra@gmail.com>
27439 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27441 * configure: Regenerate.
27443 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27445 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27446 splitter preparation statements.
27447 * config/i386/sse.md (*vec_extract* splitters): Ditto.
27448 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27451 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27453 * gimple-ssa-strength-reduction.c (count_candidates): Change
27454 return value to int.
27455 (analyze_candidates_and_replace): Change type of length to int.
27457 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
27459 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27460 (*vec_extract<mode>): Use VI12_128 mode iterator.
27461 (*vec_extract<mode>_mem): Ditto.
27462 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27465 2013-05-08 Diego Novillo <dnovillo@google.com>
27470 2012-08-17 Diego Novillo <dnovillo@google.com>
27473 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27474 * config.in: Regenerate.
27475 * configure: Regenerate.
27476 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27478 2013-05-08 Jan Hubicka <jh@suse.cz>
27481 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27482 * cgraph.h (symtab_node_base): Add unique_name.
27483 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27484 input_overwrite_node, input_varpool_node): Stream unique_name.
27485 * cgraphclones.c (cgraph_create_virtual_clone,
27486 cgraph_function_versioning): Set unique_name.
27487 * ipa.c (function_and_variable_visibility): Set unique_name.
27489 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27491 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27492 (alloc_cand_and_find_basis): Restrict conditional candidate
27493 processing to CAND_MULTs.
27495 2013-05-08 Jan Hubicka <jh@suse.cz>
27498 lto-symtab.c (lto_symtab_symbol_p): New function.
27499 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27500 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27501 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27502 Skip static symbols.
27504 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
27506 PR tree-optimization/57200
27507 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27508 Only call inform if the preceding warning_at returns true.
27510 2013-05-07 Han Shen <shenhan@google.com>
27512 * cfgexpand.c (record_or_union_type_has_array_p): New function.
27513 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27514 * common.opt (fstack-protector-strong): New option.
27515 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27516 * doc/invoke.texi (Optimization Options): Document
27517 "-fstack-protector-strong".
27518 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27520 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27522 * config/mips/mips.c (mips_machine_reorg2): Return 0.
27524 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
27526 * ira.c (update_equiv_regs): Add insn having equiv memory even if
27527 it is not lhs of the insn.
27528 (setup_reg_equiv): Remove insn having equiv memory which it is not
27530 * lra-constraints.c (process_address): Try to improve generation
27531 code for address base + disp.
27532 (lra_constraints): Make correct the code for checking insn setting
27533 up backward equivalence. Remove insn only if it is in the init
27535 * lra-eliminations.c (update_reg_eliminate): Change return value.
27536 (lra_eliminate): Use the result.
27538 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
27540 * config/i386/sse.md (ssescalarnummask): New mode attribute.
27541 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27542 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27543 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27544 register target operands.
27545 (*vec_extractv8hi_sse2): New pattern.
27546 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27547 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27548 (*vec_extract<mode>_mem): New insn and split pattern.
27550 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
27552 * config/arm/arm.c (arm_asan_shadow_offset): New function.
27553 (TARGET_ASAN_SHADOW_OFFSET): Define.
27554 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27555 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27557 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27559 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27560 (incr_vec_index): Return -1 if increment not found.
27561 (create_add_on_incoming_edge): Assert if increment not found.
27562 (record_increment): Limit number of increments recorded.
27563 (all_phi_incrs_profitable): Return false if an increment not found.
27564 (replace_profitable_candidates): Don't process increments that were
27566 (analyze_candidates_and_replace): Limit size of incr_vec.
27568 2013-05-07 Richard Biener <rguenther@suse.de>
27570 * calls.c (special_function_p): setjmp-like functions are leaf.
27571 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27572 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27574 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
27576 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27577 (aarch64_simd_mov<mode>): New expander.
27578 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27579 (aarch64_simd_mov_to_<mode>high): Likewise.
27580 (aarch64_simd_mov_from_<mode>low): Likewise.
27581 (aarch64_simd_mov_from_<mode>high): Likewise.
27582 (aarch64_dup_lane<mode>): Update.
27583 (aarch64_dup_lanedi): New instruction pattern.
27584 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27585 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27587 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27589 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27590 (replace_mult_candidate): Remove unnecessary argument; remove
27591 unnecessary parameter from call to introduce_cast_before_cand.
27592 (replace_unconditional_candidate): Remove unnecessary parameter
27593 from call to replace_mult_candidate.
27594 (replace_conditional_candidate): Likewise.
27595 (insert_initializers): Use make_temp_ssa_name.
27596 (introduce_cast_before_cand): Remove unnecessary argument; use
27597 make_temp_ssa_name.
27598 (replace_one_candidate): Remove unnecessary argument; remove
27599 unnecessary parameter from calls to introduce_cast_before_cand.
27600 (replace_profitable_candidates): Remove unnecessary parameters
27601 from calls to replace_one_candidate.
27603 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27605 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27606 phi def as possibly hiding a basis for a CAND_ADD whose operands
27607 have been commuted in the analysis.
27608 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27610 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
27612 * config/aarch64/aarch64.md
27613 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27614 shift value between 0-4.
27616 2013-05-07 Richard Biener <rguenther@suse.de>
27618 * double-int.h (rshift): New overload.
27619 * double-int.c (rshift): New function.
27620 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27621 (create_reference_ops_from_ref): Remove.
27622 (vn_reference_insert): Use shared ops for constructing the
27623 reference and copy it.
27625 2013-05-07 Richard Biener <rguenther@suse.de>
27627 PR middle-end/57190
27628 * tree-eh.c (sink_clobbers): Properly propagate
27629 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27631 2013-05-07 Jakub Jelinek <jakub@redhat.com>
27633 PR tree-optimization/57149
27634 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27635 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27636 collect_phi_def_edges, execute_late_warn_uninitialized): Use
27637 uninit_undefined_value_p instead of ssa_undefined_value_p.
27640 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27641 for modifier == EXPAND_INITIALIZER.
27643 2013-05-07 Anton Blanchard <anton@samba.org>
27645 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27646 for powerpc64 little endian.
27647 * configure: Regenerate.
27649 2013-05-06 Graham Stott <grahams@btinternet.com>
27651 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27652 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27653 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27654 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27656 2013-05-06 Graham Stott <grahams@btinternet.com>
27658 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27659 codes which allow non-lvalues.
27661 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
27663 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27664 components are all 1s.
27665 (integer_minus_onep): New function.
27666 * tree.h (integer_minus_onep): Declare it.
27667 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27668 integer_minus_onep instead of integer_all_onesp.
27670 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27673 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27674 variations of these patterns.
27676 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27678 * config/i386/i386.md (isa): Add x64_sse4 member.
27679 (enabled): Handle x64_sse4.
27680 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27681 instruction for 64bit SSE4_1 targets. Update insn attributes.
27682 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27683 instruction for SSE4_1 targets. Update insn attributes.
27684 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27685 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27686 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27688 (*vec_extractv4si): Rename from *sse4_1_pextrd.
27689 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27690 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27692 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27695 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27697 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
27699 * final.c (do_assembler_dialects): Don't handle curly braces and
27700 vertical bar escaped by % as dialect delimiters.
27701 (output_asm_insn): Print curly braces and vertical bar if escaped
27702 by % and ASSEMBLER_DIALECT defined.
27703 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27704 * doc/tm.texi: Regenerated.
27706 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
27708 * config/mips/mips.c: Include tree-pass.h.
27709 (mips_reorg): Split in pre- and post-dbr_schedule parts.
27710 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27711 (pass_mips_machine_reorg2): New machine specific pass.
27712 (insert_pass_mips_machine_reorg2): New pass plugin definition.
27713 (mips_option_override): Register the new pass.
27714 * rtl.h (cleanup_barriers): Remove prototype.
27715 (dbr_schedule): Likewise.
27716 * jump.c (cleanup_barriers): Make static.
27717 * reorg.c (dbr_schedule): Likewise.
27719 2013-05-06 Richard Biener <rguenther@suse.de>
27721 PR tree-optimization/57185
27722 * tree-parloops.c (add_field_for_reduction): Handle anonymous
27723 SSA names properly.
27725 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
27728 * config/i386/i386.c (add_parameter_dependencies): Add dependence
27729 between "first_arg" and "insn", not "last" and "insn".
27731 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27733 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27734 (find_candidates_in_block): Re-enable slsr_process_phi.
27735 (create_phi_basis): Fix double counting of candidate adjustment.
27737 2013-05-06 Richard Biener <rguenther@suse.de>
27739 PR middle-end/57147
27740 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27741 the edge is also fallthru, preserve it and just clear the
27743 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27744 also complex, preserve that and just clear the fallthru flag.
27745 * tree-inline.c (update_ssa_across_abnormal_edges): Also
27746 update virtual operands.
27748 2013-05-06 Alan Modra <amodra@gmail.com>
27750 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27751 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27752 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27753 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27754 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27755 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27757 2013-05-06 Alan Modra <amodra@gmail.com>
27759 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27760 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
27761 (DEFAULT_ASM_ENDIAN): Define.
27762 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27763 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27764 Update -K PIC clause from sysv4.h.
27765 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27766 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27768 2013-05-06 Alan Modra <amodra@gmail.com>
27770 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27771 twice for little-endian.
27772 (ashrdi3_no_power, ashrdi3): Support little-endian.
27774 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
27777 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27778 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27780 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27781 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27782 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27785 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
27786 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27788 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27789 * config/pa/pa.opt: Make mbig-switch a no-op.
27790 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27791 (CASE_VECTOR_MODE): Always return SImode.
27792 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27793 for the !TARGET_BIG_SWITCH case.
27794 * config/pa/pa-linux.h: Likewise.
27795 * config/pa/pa-openbsd.h: Likewise.
27796 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27797 * config/pa/pa.md (short_jump): Remove define_insn.
27798 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27799 (casesi0): Remove define_insn.
27800 (type): Remove btable_branch.
27801 (pa_combine_type): Likewise.
27802 (in_nullified_branch_delay): Likewise.
27803 (in_call_delay): Likewise.
27804 (define_delay): Likewise.
27805 (define_insn_reservation "Z3"): Likewise.
27806 (define_insn_reservation "Z4"): Likewise.
27807 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27808 (pa_adjust_insn_length): Remove adjustment for btable branches.
27809 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27812 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
27814 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27815 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27816 Add m->r,x alternatives.
27817 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27818 splitters using SWI48x mode iterator.
27819 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
27820 TARGET_64BIT. Add m->x alternative.
27821 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27822 Add o->x alternative. Enable for TARGET_SSE.
27823 (sse_storeq): Remove expander.
27824 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27825 with memory input operand.
27826 (*vec_extractv2di_1 splitter): New.
27827 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27828 * config/i386/i386.md (ssevecmodelower): New mode attribute.
27830 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27832 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
27833 (INT_LOWPART): Delete.
27834 (extract_MB): Adjust.
27835 (extract_ME): Adjust.
27836 (print_operand): Adjust.
27838 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
27840 * config/rs6000/predicates.md (reg_or_add_cint_operand,
27841 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27842 (reg_or_logical_cint_operand, easy_fp_constant,
27843 logical_const_operand): Delete "CONST_DOUBLE" case.
27844 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27845 "HOST_BITS_PER_WIDE_INT == 64" test.
27846 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
27847 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27848 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27849 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27851 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27852 CONST_DOUBLE DImode/VOIDmode case.
27853 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27854 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27855 CONST_DOUBLE VOIDmode case.
27856 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27857 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27858 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27859 Delete CONST_DOUBLE case.
27860 (splitters for mov FMOVE64 const_double): Delete
27861 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
27862 "HOST_BITS_PER_WIDE_INT >= 64" test.
27863 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27865 (mov DI const_double): Delete.
27867 2013-05-04 Jakub Jelinek <jakub@redhat.com>
27869 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27870 on op shows all bits zero in mode of a lowpart subreg, return zero.
27872 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27875 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27876 to save TFmode registers and DImode to save TImode registers for
27877 caller save operations.
27878 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27879 mark being partially clobbered since they only use the first
27882 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27883 and TDmode only use the upper 64-bits of each VSX register.
27885 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27887 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27888 (find_candidates_in_block): Disable slsr_process_phi.
27890 2013-05-03 Guozhi Wei <carrot@google.com>
27892 * coverage.c (coverage_obj_init): Move the construction of gcov
27894 (build_init_ctor): ... here.
27896 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27898 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27899 (slsr_cand_d): Redefine def_phi.
27900 (stride_status, phi_adjust_status, count_phis_status): New enums.
27901 (find_phi_def): New.
27902 (find_basis_for_base_expr): New.
27903 (find_basis_for_candidate): Handle hidden bases.
27904 (alloc_cand_and_find_basis): Handle phi candidates.
27905 (slsr_process_phi): New.
27906 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27907 (create_mul_imm_cand): Likewise.
27908 (create_add_ssa_cand): Exclude phi base candidates.
27909 (create_add_imm_cand): Likewise.
27910 (slsr_process_cast): Likewise.
27911 (slsr_process_copy): Likewise.
27912 (find_candidates_in_block): Handle phi candidates.
27913 (dump_candidate): Likewise.
27914 (unconditional_cands): Delete.
27915 (unconditional_cands_with_known_stride_p): Delete.
27916 (phi_dependent_cand_p): New.
27917 (cand_increment): Handle phi-dependent candidates.
27918 (replace_dependent): Delete.
27919 (replace_mult_candidate): New.
27920 (replace_unconditional_candidate): New.
27921 (incr_vec_index): Move to avoid forward reference.
27922 (create_add_on_incoming_edge): New.
27923 (create_phi_basis): New.
27924 (replace_dependents): Delete.
27925 (replace_conditional_candidate): New.
27926 (phi_add_costs): New.
27927 (replace_uncond_cands_and_profitable_phis): New.
27928 (record_increment): Handle phi adjustments.
27929 (record_phi_increments): New.
27930 (record_increments): Handle phi adjustments.
27931 (phi_incr_cost): New.
27932 (lowest_cost_path): Handle phis.
27933 (total_savings): Likewise.
27934 (analyze_increments): Likewise.
27935 (ncd_with_phi): New.
27936 (ncd_of_cand_and_phis): New.
27937 (nearest_common_dominator_for_cands): Handle phi increments.
27938 (all_phi_incrs_profitable): New.
27939 (replace_profitable_candidates): Handle phi-dependent candidates.
27940 (analyze_candidates_and_replace): Likewise.
27942 2013-05-03 Teresa Johnson <tejohnson@google.com>
27945 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27946 do not exceed REG_BR_PROB_BASE.
27948 2013-05-03 Jeff Law <law@redhat.com>
27950 PR tree-optimization/57144
27951 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27952 operand of the condition will bit into the new type when eliminating
27953 a cast feeding a condition.
27955 2013-05-03 Jakub Jelinek <jakub@redhat.com>
27957 PR rtl-optimization/57130
27958 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27959 of COMPARE as in_code to the recursive call if needed.
27961 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
27963 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27964 (enabled): Handle new members.
27965 * config/i386/sse.md (*vec_concatv2si): Merge from
27966 *vec_concatv2si_sse2 and vec_concatv2si_sse.
27967 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27969 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
27971 PR tree-optimization/57027
27972 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27973 for fnms opportunity, check we got the prerequisite kind
27974 of tree / gimple before using accessor functions.
27976 2013-05-03 Richard Biener <rguenther@suse.de>
27978 * double-int.h (lshift): New overload without precision
27979 and arith argument.
27980 (operator *=, operator +=, operator -=): Move ...
27981 * double-int.c (operator *=, operator +=, operator -=): ... here
27982 and implement more efficiently.
27983 (mul_double_with_sign): Remove.
27984 (lshift_double): Adjust to take unsinged shift argument, push
27985 dispatching code to callers.
27986 (mul_double_wide_with_sign): Add early out for callers that
27987 are not interested in high parts or overflow.
27988 (lshift): New function.
27989 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27990 dispatch code here.
27991 (lrotate, rrotate): Use logical shifts.
27992 * expr.c (get_inner_reference): Use lshift.
27993 * fixed-value.c (do_fixed_divide): Likewise.
27994 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27995 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27996 (indirect_refs_may_alias_p): Likewise.
27997 (stmt_kills_ref_p_1): Likewise.
27999 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28001 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
28003 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
28005 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
28006 scalar form of FABD instruction.
28008 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
28010 * lra-constraints.c (process_alt_operands): Add checking alt
28011 number to choose the best alternative.
28013 2013-05-02 Richard Biener <rguenther@suse.de>
28015 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
28016 bitmap and its handling.
28017 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
28019 2013-05-02 Richard Biener <rguenther@suse.de>
28021 PR middle-end/57140
28022 * tree-inline.c (copy_loops): Properly handle removed loops.
28023 (copy_cfg_body): Mark destination loops for fixup if source
28024 loops needed fixup.
28026 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
28029 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
28030 generating simple_return for naked functions.
28032 2013-05-02 Martin Jambor <mjambor@suse.cz>
28034 PR middle-end/56988
28035 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
28036 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
28038 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
28039 ipa_agg_replacement_value structures.
28040 (known_aggs_to_agg_replacement_list): Likewise.
28041 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
28042 (read_agg_replacement_chain): Likewise.
28043 (ipcp_transform_function): Also check that by_ref flags match.
28045 2013-05-02 Richard Biener <rguenther@suse.de>
28047 * graphds.h (struct graph): Add obstack member.
28048 * graphds.c (new_graph): Initialize obstack and allocate
28050 (add_edge): Allocate edge from the obstack.
28051 (free_graph): Free the obstack instead of all edges and vertices.
28053 2013-05-02 Teresa Johnson <tejohnson@google.com>
28055 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
28057 * cfg.c (update_bb_profile_for_threading): Ditto.
28058 * tree-inline.c (copy_bb): Ditto.
28059 (copy_edges_for_bb): Ditto.
28060 (initialize_cfun): Ditto.
28061 (copy_cfg_body): Ditto.
28062 (expand_call_inline): Ditto.
28063 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
28064 (estimate_node_size_and_time): Ditto.
28065 (inline_merge_summary): Ditto.
28066 * cgraphclones.c (cgraph_clone_edge): Ditto.
28067 (cgraph_clone_node): Ditto.
28068 * sched-rgn.c (compute_dom_prob_ps): Ditto.
28069 (compute_trg_info): Ditto.
28071 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28073 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
28074 S reg when fp attribute set.
28075 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
28077 2013-05-02 Ian Bolton <ian.bolton@arm.com>
28079 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
28081 (*and_one_cmplsi3_compare0_uxtw): Likewise.
28082 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
28083 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
28085 2013-05-02 Richard Biener <rguenther@suse.de>
28087 * tree-scalar-evolution.c (scev_info_hasher): Remove.
28088 (struct instantiate_cache_entry): New type.
28089 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
28090 (struct instantiate_cache_type): New type.
28091 (set_instantiated_value, get_instantiated_value): Remove.
28092 (get_instantiated_value_entry): New function.
28093 (instantiate_scev_name): Use the new cache and adjust.
28094 (instantiate_scev_poly): Adjust.
28095 (instantiate_scev_binary): Likewise.
28096 (instantiate_array_ref): Likewise.
28097 (instantiate_scev_convert): Likewise.
28098 (instantiate_scev_not): Likewise.
28099 (instantiate_scev_3): Likewise.
28100 (instantiate_scev_2): Likewise.
28101 (instantiate_scev_r): Likewise.
28102 (instantiate_scev): Likewise.
28103 (resolve_mixers): Likewise.
28105 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
28108 * lra-constraints.c (best_small_class_operands_num): Remove.
28109 (process_alt_operands): Remove small_class_operands_num. Take
28110 small classes operands into losers and only if the operand is not
28111 matched. Modify debugging output.
28112 (curr_insn_transform): Remove best_small_class_operands_num.
28115 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28117 * config/aarch64/aarch64-builtins.c
28118 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
28119 * config/aarch64/aarch64-simd-builtins.def
28120 (reduc_splus_): Add new modes.
28121 (reduc_uplus_): New.
28122 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
28123 (reduc_uplus_v4sf): Likewise.
28124 (reduc_splus_v4sf): Likewise.
28125 (aarch64_addv<mode>): Likewise.
28126 (reduc_uplus_<mode>): Likewise.
28127 (reduc_splus_<mode>): Likewise.
28128 (aarch64_addvv2di): Likewise.
28129 (reduc_uplus_v2di): Likewise.
28130 (reduc_splus_v2di): Likewise.
28131 (aarch64_addvv2si): Likewise.
28132 (reduc_uplus_v2si): Likewise.
28133 (reduc_splus_v2si): Likewise.
28134 (reduc_<sur>plus_<mode>): New.
28135 (reduc_<sur>plus_v2di): Likewise.
28136 (reduc_<sur>plus_v2si): Likewise.
28137 (reduc_<sur>plus_v4sf): Likewise.
28138 (aarch64_addpv4sf): Likewise.
28139 * config/aarch64/arm_neon.h
28140 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
28141 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
28142 add UNSPEC_SADDV, UNSPEC_UADDV.
28144 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
28146 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28148 * config/aarch64/arm_neon.h
28149 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
28151 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28153 * config/aarch64/aarch64-builtins
28154 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
28156 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28158 * config/aarch64/aarch64-simd-builtins.def
28159 (reduc_smax_): New.
28160 (reduc_smin_): Likewise.
28161 (reduc_umax_): Likewise.
28162 (reduc_umin_): Likewise.
28163 (reduc_smax_nan_): Likewise.
28164 (reduc_smin_nan_): Likewise.
28167 (smax): Update for V2SF, V4SF and V2DF modes.
28170 (smin_nan): Likewise.
28171 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
28172 (<su><maxmin><mode>3): ...This, refactor.
28173 (s<maxmin><mode>3): New.
28174 (<maxmin_uns><mode>3): Likewise.
28175 (reduc_<maxmin_uns>_<mode>): Refactor.
28176 (reduc_<maxmin_uns>_v4sf): Likewise.
28177 (reduc_<maxmin_uns>_v2si): Likewise.
28178 (aarch64_<fmaxmin><mode>: Remove.
28179 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
28181 (vmin<q>_f<32,64>): Likewise.
28182 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28184 (su): Add mappings for smax, smin, umax, umin.
28186 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
28187 (FMAXMIN): Rename as...
28188 (FMAXMIN_UNS): ...This.
28190 (fmaxminv): Likewise.
28191 (fmaxmin): Likewise.
28193 (maxmin_uns_op): Likewise.
28195 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28197 * config/aarch64/arm_neon.h
28198 (vac<ge, gt><sd>_f<32, 64>): Rename to...
28199 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
28200 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
28202 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28204 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
28205 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
28207 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28209 * config/aarch64/aarch64-simd.md
28210 (vcond<mode>_internal): Handle special cases for constant masks.
28211 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
28212 (vcondu<mode><mode>): Likewise.
28213 (vcond<v_cmp_result><mode>): New.
28215 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28217 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
28218 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
28219 * config/aarch64/aarch64-simd-builtins.def
28220 (cmeq): Update to BUILTIN_VALLDI.
28225 * config/aarch64/arm_neon.h
28226 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
28227 to builtins or C as appropriate.
28229 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
28231 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
28233 (cmhi): Rename to...
28235 * config/aarch64/aarch64-simd.md
28236 (simd_mode): Add SF.
28237 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
28238 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
28239 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
28240 (cstore<mode>_neg): ...This.
28241 * config/aarch64/iterators.md
28243 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
28244 (COMPARISONS): New.
28245 (UCOMPARISONS): Likewise.
28246 (optab): Add missing comparisons.
28252 (VCMP_S): Likewise.
28253 (VCMP_U): Likewise.
28254 (V_cmp_result): Add DF, SF modes.
28255 (v_cmp_result): Likewise.
28257 (vmtype): Likewise.
28258 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
28260 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
28262 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
28263 define_insn to define_insn_and_split.
28264 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
28265 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
28266 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
28267 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
28268 (thumb2_negscc): Likewise.
28270 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28272 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
28274 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
28276 * config/arm/thumb2.md: Remove trailing whitespaces.
28278 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28280 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
28281 Use gen_int_mode rather than GEN_INT.
28283 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
28285 * value-prof.c (stream_in_histogram_value): Remove the strayed
28288 2013-04-30 Richard Biener <rguenther@suse.de>
28290 PR middle-end/57122
28291 * cfghooks.c (split_edge): Properly check for the loop latch edge.
28293 2013-04-30 Richard Biener <rguenther@suse.de>
28295 PR middle-end/57107
28296 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
28298 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
28300 PR rtl-optimization/56957
28301 PR rtl-optimization/57105
28302 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
28303 variable. Use just INSN_UID for determining whether an insn
28304 should be only disconnected from the insn stream.
28305 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
28307 2013-04-30 Jakub Jelinek <jakub@redhat.com>
28309 PR tree-optimization/57104
28310 * tsan.c (instrument_expr): Don't instrument accesses to
28311 DECL_HARD_REGISTER VAR_DECLs.
28313 2013-04-30 Richard Biener <rguenther@suse.de>
28315 * function.h (loops_for_fn): New inline function.
28316 (set_loops_for_fn): Likewise.
28317 * cfgloop.h (place_new_loop): Add struct function parameter.
28318 (get_loop): Likewise.
28319 (get_loops): Likewise.
28320 (number_of_loops): Likewise.
28321 (fel_next): Adjust.
28322 (fel_init): Likewise.
28323 * cfg.c (get_loop_copy): Adjust.
28324 * cfgloop.c (flow_loops_dump): Likewise.
28325 (record_loop_exits): Likewise.
28326 (verify_loop_structure): Likewise.
28327 * cfgloopanal.c (mark_irreducible_loops): Likewise.
28328 (estimate_reg_pressure_cost): Likewise.
28329 (mark_loop_exit_edges): Likewise.
28330 * cfgloopmanip.c (place_new_loop): Likewise.
28331 (add_loop): Likewise.
28332 (duplicate_loop): Likewise.
28333 * graph.c (draw_cfg_nodes): Likewise.
28334 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
28335 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
28336 (extract_affine_chrec): Likewise.
28337 (build_scop_iteration_domain): Likewise.
28338 * graphite.c (graphite_initialize): Likewise.
28339 * ira-build.c (create_loop_tree_nodes): Likewise.
28340 (more_one_region_p): Likewise.
28341 (rebuild_regno_allocno_maps): Likewise.
28342 (mark_loops_for_removal): Likewise.
28343 (mark_all_loops_for_removal): Likewise.
28344 (remove_unnecessary_regions): Likewise.
28345 (ira_build): Likewise.
28346 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
28347 * loop-init.c (fix_loop_structure): Likewise.
28348 (gate_rtl_move_loop_invariants): Likewise.
28349 (gate_rtl_unswitch): Likewise.
28350 (gate_rtl_unroll_and_peel_loops): Likewise.
28351 (rtl_doloop): Likewise.
28352 * lto-streamer-in.c (input_cfg): Likewise.
28353 * lto-streamer-out.c (output_cfg): Likewise.
28354 * modulo-sched.c (sms_schedule): Likewise.
28355 * predict.c (tree_estimate_probability): Likewise.
28356 (tree_estimate_probability_driver): Likewise.
28357 (estimate_loops): Likewise.
28358 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28359 (move_sese_region_to_fn): Likewise.
28360 (debug_loop_num): Likewise.
28361 * tree-chrec.c (chrec_evaluate): Likewise.
28362 (hide_evolution_in_other_loops_than_loop): Likewise.
28363 (chrec_component_in_loop_num): Likewise.
28364 (reset_evolution_in_loop): Likewise.
28365 (evolution_function_is_invariant_rec_p): Likewise.
28366 * tree-if-conv.c (main_tree_if_conversion): Likewise.
28367 * tree-inline.c (copy_loops): Likewise.
28368 (copy_cfg_body): Likewise.
28369 (tree_function_versioning): Likewise.
28370 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28371 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28373 (add_to_evolution_1): Likewise.
28374 (scev_const_prop): Likewise.
28375 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28376 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28377 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28378 (tree_ssa_lim_initialize): Likewise.
28379 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28380 (verify_loop_closed_ssa): Likewise.
28381 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
28382 (tree_ssa_loop_im): Likewise.
28383 (tree_ssa_loop_unswitch): Likewise.
28384 (tree_vectorize): Likewise.
28385 (check_data_deps): Likewise.
28386 (tree_ssa_loop_ivcanon): Likewise.
28387 (tree_ssa_loop_bounds): Likewise.
28388 (tree_complete_unroll): Likewise.
28389 (tree_complete_unroll_inner): Likewise.
28390 (tree_parallelize_loops): Likewise.
28391 (tree_ssa_loop_prefetch): Likewise.
28392 (tree_ssa_loop_ivopts): Likewise.
28393 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28394 * tree-vectorizer.c (vectorize_loops): Likewise.
28396 2013-04-29 Mike Frysinger <vapier@gentoo.org>
28398 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28399 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28400 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28401 with EABI_LINK_SPEC.
28403 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28406 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28409 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
28412 * lra-constraints.c (process_alt_operands): Discourage a bit more
28413 using memory for pseudos. Print cost dump for alternatives.
28414 Modify cost values for conflicts with early clobbers.
28415 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28417 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28420 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28422 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28424 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28425 from/to S register.
28426 (movdi_aarch64): Support LDR/STR from/to D register.
28428 2013-04-29 Ian Bolton <ian.bolton@arm.com>
28430 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28431 or higher by default.
28433 2013-04-29 Richard Biener <rguenther@suse.de>
28435 PR middle-end/57075
28436 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28437 even if not adding abnormal edges for calls that can make
28440 2013-04-29 Richard Biener <rguenther@suse.de>
28442 PR middle-end/57103
28443 * tree-cfg.c (move_stmt_op): Fix condition under which to update
28445 (move_stmt_r): Remove redundant checking.
28447 2013-04-29 Teresa Johnson <tejohnson@google.com>
28450 * basic-block.h (apply_scale): New function.
28451 (apply_probability): Use apply_scale.
28452 * gimple-streamer-in.c (input_bb): Ditto.
28453 * lto-streamer-in.c (input_cfg): Ditto.
28454 * lto-cgraph.c (merge_profile_summaries): Ditto.
28455 * tree-optimize.c (execute_fixup_cfg): Ditto.
28456 * tree-inline.c (copy_bb): Update comment to use apply_scale.
28457 (copy_edges_for_bb): Ditto.
28458 (copy_cfg_body): Ditto.
28460 2013-04-29 Tom de Vries <tom@codesourcery.com>
28462 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28463 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28464 (tail_merge_optimize): Handle current_loops == NULL.
28466 2013-04-26 Jeff Law <law@redhat.com>
28468 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28469 (simplify_cond_using_ranges): Generalize code to simplify
28470 COND_EXPRs where one argument is a constant and the other
28471 is an SSA_NAME created by an integral type conversion.
28473 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28475 * config/arm/arm.md (store_minmaxsi): Use only when
28476 optimize_insn_for_size_p.
28478 2013-04-29 Christian Bruel <christian.bruel@st.com>
28481 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28483 2013-04-29 Richard Biener <rguenther@suse.de>
28485 PR middle-end/57089
28486 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28487 loop tree make sure to schedule a fixup for the child as well.
28488 (expand_omp_for_generic): Properly add loops.
28489 (expand_omp_for_static_nochunk): Likewise.
28490 (expand_omp_for_static_chunk): Likewise.
28491 (expand_omp_for): For the degenerate case fixup loops.
28492 (expand_omp_sections): Fix default bb placement in loops.
28493 (expand_omp_atomic_pipeline): Properly add loops.
28495 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28497 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28499 2013-04-29 Tom de Vries <tom@codesourcery.com>
28501 * tree-ssa-tail-merge.c: Update header comment.
28503 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28505 * config/aarch64/arm_neon.h
28506 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28507 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28508 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28509 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28510 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28511 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28512 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28513 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28515 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28517 * config/aarch64/aarch64-simd.md
28518 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28519 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28520 fix_trunc, fixuns_trunc.
28521 (ftrunc<VDQF:mode>2): New.
28522 * config/aarch64/iterators.md (optab): Add fix, fixuns.
28523 (fix_trunc_optab): New.
28525 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28527 * config/aarch64/aarch64-builtins.c
28528 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28529 iceilf, lround, iroundf.
28531 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
28534 * config/i386/i386.h (enum ix86_tune_indices)
28535 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28536 New, split from X86_TUNE_INTER_UNIT_MOVES.
28537 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28538 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28539 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28540 (TARGET_INTER_UNIT_MOVES): Remove.
28541 * config/i386/i386.c (initial_ix86_tune_features): Update.
28542 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28543 (ix86_expand_convert_uns_didf_sse): Use
28544 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28545 (ix86_expand_vector_init_one_nonzero): Ditto.
28546 (ix86_expand_vector_init_interleave): Ditto.
28547 (inline_secondary_memory_needed): Return true for moves from SSE class
28548 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28549 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28550 * config/i386/constraints.md (Yi, Ym): Depend on
28551 TARGET_INTER_UNIT_MOVES_TO_VEC.
28552 (Yj, Yn): New constraints.
28553 * config/i386/i386.md (*movdi_internal): Change constraints of
28554 operand 1 from Yi to Yj and from Ym to Yn.
28555 (*movsi_internal): Ditto.
28556 (*movdf_internal): Ditto.
28557 (*movsf_internal): Ditto.
28558 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28559 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28560 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28561 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28562 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28563 * config/i386/sse.md (movdi_to_sse): Ditto.
28564 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28565 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28566 TARGET_INTER_UNIT_MOVES.
28567 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28568 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28569 instead of TARGET_INTER_UNIT_MOVES.
28570 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28571 operand 1 from Yi to Yj and from Ym to Yn.
28573 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28575 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28576 (float_truncate_hi_): Likewise.
28577 (float_extend_lo_): Likewise.
28578 (float_truncate_lo_): Likewise.
28579 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28580 (aarch64_float_extend_lo_v2df): Likewise.
28581 (vec_unpacks_hi_v4sf): Likewise.
28582 (aarch64_float_truncate_lo_v2sf): Likewise.
28583 (aarch64_float_truncate_hi_v4sf): Likewise.
28584 (vec_pack_trunc_v2df): Likewise.
28585 (vec_pack_trunc_df): Likewise.
28587 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28589 * config/aarch64/aarch64-builtins.c
28590 (aarch64_fold_builtin): Fold float conversions.
28591 * config/aarch64/aarch64-simd-builtins.def
28592 (floatv2si, floatv4si, floatv2di): New.
28593 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28594 * config/aarch64/aarch64-simd.md
28595 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28596 * config/aarch64/iterators.md (FLOATUORS): New.
28597 (optab): Add float, floatuns.
28598 (su_optab): Likewise.
28600 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28602 * config/aarch64/aarch64-builtins.c
28603 (aarch64_builtin_vectorized_function): Use new names for
28605 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28606 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28607 (fcvtzu): Split as...
28608 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28609 (fcvtas): Split as...
28610 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28611 (fcvtau): Split as...
28612 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28613 (fcvtps): Split as...
28614 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28615 (fcvtpu): Split as...
28616 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28617 (fcvtms): Split as...
28618 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28619 (fcvtmu): Split as...
28620 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28621 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28622 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28623 (lfrintnusf, lfrintnudf): Likewise.
28624 * config/aarch64/aarch64-simd.md
28625 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28627 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28628 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28629 (fcvt_pattern): Likewise.
28631 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28633 * config/aarch64/aarch64-simd.md
28634 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28635 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28637 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28639 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28640 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28641 (vrnd<a,m,n,p>_f32): Implement using builtins.
28642 (vrnd<i,x><q>_f<32, 64>): New.
28644 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
28646 * config/aarch64/aarch64-builtins.c
28647 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28648 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28649 (frintz): Rename to...
28651 (frintp): Rename to...
28653 (frintm): Rename to...
28655 (frinti): Rename to...
28656 (nearbyint): ...this.
28657 (frintx): Rename to...
28659 (frinta): Rename to...
28661 * config/aarch64/aarch64-simd.md
28662 (aarch64_frint<frint_suffix><mode>): Delete.
28663 (<frint_pattern><mode>2): Convert to insn.
28664 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28665 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28666 (frint_pattern): Likewise.
28667 (frint_suffix): Likewise.
28669 2013-04-29 Richard Biener <rguenther@suse.de>
28671 PR tree-optimization/57081
28672 * loop-init.c: Include tree-flow.h.
28673 (loop_optimizer_finalize): Free number of iteration estimates.
28674 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28676 2013-04-29 Jakub Jelinek <jakub@redhat.com>
28678 PR tree-optimization/57083
28679 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28680 non-singleton shift count range, zero extend low_bound for uns case.
28682 * config/i386/predicates.md (general_vector_operand): New predicate.
28683 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28684 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28685 if they aren't nonimmediate operands. If their original values
28686 satisfy const_vector_equal_evenodd_p, don't shift them.
28687 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28688 predicates. For the SSE4.1 case force operands[{1,2}] into registers
28689 if not nonimmediate_operand.
28690 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28691 instead of register_operand.
28692 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28694 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
28696 * stor-layout.c (finalize_size_functions): Allocate a structure and
28697 reset cfun before dumping the functions.
28699 2013-04-27 Jakub Jelinek <jakub@redhat.com>
28701 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28704 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28705 use xop_pmacsdqh if uns_p.
28706 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28707 the immediate rotate count.
28709 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
28711 * rtl.h (struct rtx_def): Add comment for field jump.
28712 (LRA_SUBREG_P): New macro.
28713 * recog.c (register_operand): Check LRA_SUBREG_P.
28714 * lra.c (lra): Add note at the end of RTL code. Align non-empty
28716 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28717 (lra_final_code_change): Skip subreg change for operators.
28718 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28719 if there are no operand changes.
28720 * lra-constraints.c (curr_insn_set): New.
28721 (match_reload): Set LRA_SUBREG_P.
28722 (emit_spill_move): Ditto.
28723 (check_and_process_move): Use curr_insn_set. Process only single
28724 set insns. Don't initialize sec_mem_p and change_p.
28725 (simplify_operand_subreg): Use LRA_SUBREG_P.
28726 (reg_in_class_p): New function.
28727 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
28728 of #ifdef. Add code to remove cycling.
28729 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28730 non-null disp. Reload inner instead of disp when base and index
28731 are null. Try to put lo_sum into register.
28732 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28733 (check_and_process_move): Move code for move cost check to
28734 simple_move_p. Remove equiv_substitution.
28735 (simple_move_p): New function.
28736 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
28737 curr_insn_set. Call check_and_process_move only for single set
28738 insns. Use the new function. Move call of check_and_process_move
28739 after operand equiv substitution and address process.
28741 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28744 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28745 with nonlocal goto receivers or returns twice calls, ignore
28746 unininitialized values from abnormal edges to nl goto receiver
28747 or returns twice call.
28749 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28751 PR tree-optimization/57051
28752 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28753 and VEC_RSHIFT_EXPR if shift count is a multiple of element
28756 2013-04-26 Richard Biener <rguenther@suse.de>
28758 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28759 (expand_omp_taskreg): Likewise. Mark loops for fixup.
28760 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28761 (fixup_loop_arrays_after_move): New function.
28762 (move_sese_region_to_fn): Properly outline the loop tree parts
28763 of the SESE region.
28765 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
28767 * config/i386/i386.md (type, unit): Fix long lines.
28769 2013-04-26 Richard Biener <rguenther@suse.de>
28771 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28772 (lto-streamer-out.o): Likewise.
28773 * cfgloop.c (init_loops_structure): Export, add struct function
28774 argument and adjust.
28775 (flow_loops_find): Adjust.
28776 * cfgloop.h (enum loop_estimation): Add EST_LAST.
28777 (init_loops_structure): Declare.
28778 * lto-streamer-in.c: Include cfgloop.h.
28779 (input_cfg): Input the loop tree.
28780 * lto-streamer-out.c: Include cfgloop.h.
28781 (output_cfg): Output the loop tree.
28782 (output_struct_function_base): Do not drop PROP_loops.
28784 2013-03-26 Richard Biener <rguenther@suse.de>
28786 * tree-cfg.c (execute_build_cfg): Build the loop tree.
28787 (pass_build_cfg): Provide PROP_loops.
28788 (move_sese_region_to_fn): Remove loops that are outlined into fn
28790 * tree-inline.c: Include cfgloop.h.
28791 (initialize_cfun): Do not drop PROP_loops.
28792 (copy_loops): New function.
28793 (copy_cfg_body): Copy loop structure.
28794 (tree_function_versioning): Initialize destination loop tree.
28795 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28796 (pass_parallelize_loops): Do IL verification.
28797 * loop-init.c (loop_optimizer_init): Fixup loops if required.
28798 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28799 the CFG make sure we fixup loops as well.
28800 * tree-ssa-tail-merge.c: Include cfgloop.h.
28801 (replace_block_by): When merging loop latches mark loops for fixup.
28802 * lto-streamer-out.c (output_struct_function_base): Drop
28803 PROP_loops for now.
28804 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28805 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28806 * ipa-split.c: Include cfgloop.h.
28807 (split_function): Add the new return block to the loop tree root.
28808 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28809 whether we have removed the forwarder block.
28810 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28811 * cfgloop.h (place_new_loop): Declare.
28812 * cfgloopmanip.c (place_new_loop): Export.
28813 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28814 (tree-switch-conversion.o): Likewise.
28815 (tree-complex.o): Likewise.
28816 (tree-inline.o): Likewise.
28817 (tree-ssa-tailmerge.o): Likewise.
28818 (ipa-split.o): Likewise.
28819 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28820 (tree-ssa-copy.o): Likewise.
28821 * tree-switch-conversion.c: Include cfgloop.h
28822 (process_switch): If we emit a bit-test cascade, schedule loops
28824 * tree-complex.c: Include cfgloop.h.
28825 (expand_complex_div_wide): Properly add new basic-blocks to loops.
28826 * asan.c: Include cfgloop.h.
28827 (create_cond_insert_point): Properly add new basic-blocks to
28828 loops, schedule loop fixup.
28829 * cfgloop.c (verify_loop_structure): Check that looks are not
28831 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28833 (expand_omp_for_generic): Likewise.
28834 (expand_omp_sections): Likewise.
28835 (expand_omp_atomic_pipeline): Schedule loops for fixup.
28836 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28837 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28838 is initialized, not when loops are present.
28839 * tree-parloops.c (parallelize_loops): Remove checking here.
28840 * passes.c (init_optimization_passes): Schedule a copy-propagation
28841 pass before complete unrolling of inner loops.
28843 2013-04-26 Jakub Jelinek <jakub@redhat.com>
28845 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28846 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28847 (colorize_init): Add argument to _WIN32 version.
28848 * toplev.c: Include diagnostic-color.h.
28849 (process_options): Default to -fdiagnostics-color=auto if
28850 GCC_COLORS env var is in the environment.
28851 * common.opt (fdiagnostics-color=): Add Var and Init.
28852 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28853 env var is in the environment, the default is auto rather than never.
28855 * diagnostic.h (file_name_as_prefix): Add context argument.
28856 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
28857 the string as locus.
28858 * langhooks.c (lhd_print_error_function): Adjust caller.
28860 2013-04-25 Lawrence Crowl <crowl@google.com>
28862 * var-tracking.c (shared_hash_def::htab):
28863 Change type to hash_table. Update dependent calls and types.
28865 2013-04-25 Lawrence Crowl <crowl@google.com>
28867 * Makefile.in: Update as needed below.
28869 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28870 Move declaration to after the type's method definitons.
28872 * attribs.c (htab_t scoped_attributes::attribute_hash):
28873 Change type to hash_table. Update dependent calls and types.
28875 * bitmap.c (htab_t bitmap_desc_hash):
28876 Change type to hash_table. Update dependent calls and types.
28878 * cselib.c (htab_t cselib_hash_table):
28879 Change type to hash_table. Update dependent calls and types.
28881 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28882 (hash_string_slot_node): Move implementation into lto-streamer.h
28883 struct string_slot_hasher.
28884 (eq_string_slot_node): Likewise.
28886 * data-streamer-out.c: Update output_block::string_hash_table
28887 dependent calls and types.
28889 * dwarf2cfi.c (htab_t trace_index):
28890 Change type to hash_table. Update dependent calls and types.
28892 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28893 Change type to hash_table. Update dependent calls and types.
28894 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28895 (htab_t optimize_external_refs::map): Likewise.
28896 (htab_t output_comp_unit::extern_map): Likewise.
28897 (htab_t output_comdat_type_unit::extern_map): Likewise.
28898 (htab_t output_macinfo::macinfo_htab): Likewise.
28899 (htab_t optimize_location_lists::htab): Likewise.
28900 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28902 * except.c (htab_t ehspec_hash_type):
28903 Change type to hash_table. Update dependent calls and types.
28904 (assign_filter_values::ttypes): Likewise.
28905 (assign_filter_values::ehspec): Likewise.
28906 (sjlj_assign_call_site_values::ar_hash): Likewise.
28907 (convert_to_eh_region_ranges::ar_hash): Likewise.
28909 * gcse.c (htab_t pre_ldst_table):
28910 Change type to hash_table. Update dependent calls and types.
28912 * ggc-common.c (htab_t saving_htab):
28913 Change type to hash_table. Update dependent calls and types.
28914 (htab_t loc_hash): Likewise.
28915 (htab_t ptr_hash): Likewise.
28916 (call_count): Rename ggc_call_count.
28917 (call_alloc): Rename ggc_call_alloc.
28918 (loc_descriptor): Rename make_loc_descriptor.
28919 (add_statistics): Rename ggc_add_statistics.
28921 * ggc-common.c (saving_htab):
28922 Change type to hash_table. Update dependent calls and types.
28924 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28925 (push_gimplify_context): Likewise.
28926 (pop_gimplify_context): Likewise.
28927 (struct gimple_temp_hash_elt): Added.
28928 (struct gimplify_hasher): Likewise.
28929 (struct gimplify_ctx.temp_htab):
28930 Change type to hash_table. Update dependent calls and types.
28932 * gimple-fold.c: Include gimplify-ctx.h.
28934 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28935 Change type to hash_table. Update dependent calls and types.
28936 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28937 avoid potential global name collision.
28939 * gimplify.c: Include gimplify-ctx.h.
28940 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28941 (htab_t gimplify_ctx::temp_htab):
28942 Update dependent calls and types for new type hash_table.
28943 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28944 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28946 * gimplify-ctx.h: New.
28947 (struct gimple_temp_hash_elt): Move from gimplify.c.
28948 (class gimplify_hasher): New.
28949 (struct gimplify_ctx): Move from gimple.h.
28950 (htab_t gimplify_ctx::temp_htab):
28951 Change type to hash_table. Update dependent calls and types.
28953 * graphite-clast-to-gimple.c: Include graphite-htab.h.
28954 (htab_t ivs_params::newivs_index):
28955 Change type to hash_table. Update dependent calls and types.
28956 (htab_t ivs_params::params_index): Likewise.
28957 (htab_t print_generated_program::params_index): Likewise.
28958 (htab_t gloog::newivs_index): Likewise.
28959 (htab_t gloog::params_index): Likewise.
28961 * graphite.c: Include graphite-htab.h.
28962 4htab_t graphite_transform_loops::bb_pbb_mapping):
28963 Change type to hash_table. Update dependent calls and types.
28965 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28966 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28967 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28969 * graphite-dependences.c: Include graphite-htab.h.
28970 (loop_is_parallel_p): Change hash table type of parameter.
28972 * graphite-htab.h: New.
28973 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28974 (extern find_pbb_via_hash): Move from graphite-poly.h.
28975 (extern loop_is_parallel_p): Move from graphite-poly.h.
28976 (extern get_loop_body_pbbs): Move from graphite-poly.h.
28978 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28979 (extern loop_is_parallel_p): Move to graphite-htab.h.
28980 (extern get_loop_body_pbbs): Move to graphite-htab.h.
28982 * haifa-sched.c (htab_t delay_htab):
28983 Change type to hash_table. Update dependent calls and types.
28984 (htab_t delay_htab_i2): Likewise.
28986 * ira-color.c (htab_t allocno_hard_regs_htab):
28987 Change type to hash_table. Update dependent calls and types.
28989 * ira-costs.c (htab_t cost_classes_htab):
28990 Change type to hash_table. Update dependent calls and types.
28992 * loop-invariant.c (htab_t merge_identical_invariants::eq):
28993 Change type to hash_table. Update dependent calls and types.
28995 * loop-iv.c (htab_t bivs):
28996 Change type to hash_table. Update dependent calls and types.
28998 * loop-unroll.c (htab_t opt_info::insns_to_split):
28999 Change type to hash_table. Update dependent calls and types.
29000 (htab_t opt_info::insns_with_var_to_expand): Likewise.
29002 * lto-streamer.h (struct string_slot): Move from data-streamer.h
29003 (struct string_slot_hasher): New.
29004 (htab_t output_block::string_hash_table):
29005 Change type to hash_table. Update dependent calls and types.
29007 * lto-streamer-in.c (freeing_string_slot_hasher): New.
29008 (htab_t file_name_hash_table):
29009 Change type to hash_table. Update dependent calls and types.
29011 * lto-streamer-out.c: Update output_block::string_hash_table dependent
29014 * lto-streamer.c (htab_t tree_htab):
29015 Change type to hash_table. Update dependent calls and types.
29017 * omp-low.c: Include gimplify-ctx.h.
29019 * passes.c (htab_t name_to_pass_map):
29020 Change type to hash_table. Update dependent calls and types.
29021 (pass_traverse): Rename to passes_pass_traverse.
29023 * plugin.c (htab_t event_tab):
29024 Change type to hash_table. Update dependent calls and types.
29026 * postreload-gcse.c (htab_t expr_table):
29027 Change type to hash_table. Update dependent calls and types.
29028 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
29030 * sese.c (debug_rename_map_1): Make extern.
29031 (htab_t copy_bb_and_scalar_dependences::rename_map):
29032 Change type to hash_table. Update dependent calls and types.
29034 * sese.h (extern debug_rename_map): Move to .c file.
29036 * store-motion.c (htab_t store_motion_mems_table):
29037 Change type to hash_table. Update dependent calls and types.
29039 * trans-mem.c (htab_t tm_new_mem_hash):
29040 Change type to hash_table. Update dependent calls and types.
29042 * tree-browser.c (htab_t TB_up_ht):
29043 Change type to hash_table. Update dependent calls and types.
29045 * tree-cfg.c (htab_t discriminator_per_locus):
29046 Change type to hash_table. Update dependent calls and types.
29048 * tree-complex.c: Include tree-hasher.h
29049 (htab_t complex_variable_components):
29050 Change type to hash_table. Update dependent calls and types.
29052 * tree-eh.c (htab_t finally_tree):
29053 Change type to hash_table. Update dependent calls and types.
29055 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
29056 struct int_tree_hasher.
29057 (extern int_tree_map_eq): Likewise.
29058 (uid_decl_map_hash): Removed.
29059 (extern decl_tree_map_eq): Likewise.
29061 * tree-hasher.h: New.
29062 (struct int_tree_hasher): New.
29063 (typedef int_tree_htab_type): New.
29065 * tree-inline.c: Include gimplify-ctx.h.
29067 * tree-mudflap.c: Include gimplify-ctx.h.
29069 * tree-parloops.c: Include tree-hasher.h.
29070 (htab_t eliminate_local_variables_stmt::decl_address):
29071 Change type to hash_table. Update dependent calls and types.
29072 (htab_t separate_decls_in_region::decl_copies): Likewise.
29074 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
29075 Change type to hash_table. Update dependent calls and types.
29077 * tree-sra.c (candidates):
29078 Change type to hash_table. Update dependent calls and types.
29080 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
29082 (int_tree_map_hash): Likewise.
29084 * tree-ssa-dom.c (htab_t avail_exprs):
29085 Change type to hash_table. Update dependent calls and types.
29087 * tree-ssa-live.c (var_map_base_init::tree_to_index):
29088 Change type to hash_table. Update dependent calls and types.
29090 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
29091 Change type to hash_table. Update dependent calls and types.
29093 * tree-ssa-phiopt.c (seen_ssa_names):
29094 Change type to hash_table. Update dependent calls and types.
29096 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
29097 Change type to hash_table. Update dependent calls and types.
29099 * tree-ssa-uncprop.c (equiv):
29100 Change type to hash_table. Update dependent calls and types.
29102 2013-04-25 Jakub Jelinek <jakub@redhat.com>
29104 PR rtl-optimization/57003
29105 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
29106 call note_stores with kill_clobbered_value callback again after
29107 killing regs_invalidated_by_call.
29109 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29111 * config/aarch64/aarch64-simd.md
29112 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
29113 (aarch64_simd_bsl<mode>): Likewise.
29114 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
29116 2013-04-25 Marek Polacek <polacek@redhat.com>
29118 PR tree-optimization/57066
29119 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
29121 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29123 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
29125 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29127 * config/aarch64/aarch64-builtins.c
29128 (aarch64_fold_builtin): New.
29129 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
29130 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
29131 * config/aarch64/aarch64-simd-builtins.def (abs): New.
29132 * config/aarch64/arm_neon.h
29133 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
29135 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29136 Tejas Belagod <tejas.belagod@arm.com>
29138 * config/aarch64/aarch64-builtins.c
29139 (aarch64_gimple_fold_builtin): New.
29140 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
29141 * config/aarch64/aarch64-simd-builtins.def (addv): New.
29142 * config/aarch64/aarch64-simd.md (addpv4sf): New.
29143 (addvv4sf): Update.
29144 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
29146 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29148 * config/aarch64/aarch64.md
29149 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
29151 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29153 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
29154 (*ngcsi_uxtw): New pattern.
29156 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29157 Julian Brown <julian@codesourcery.com>
29159 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
29160 (TB_DREG): Add T_V4HF.
29161 (v4hf_UP): New macro.
29162 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29163 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29164 Handle initialisation of V4HF. Adjust initialisation of reinterpret
29166 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
29167 (arm_vector_mode_supported_p): Handle V4HF.
29168 (arm_mangle_map): Handle V4HFmode.
29169 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
29170 * config/arm/arm_neon_builtins.def: Add entries for
29171 vcvtv4hfv4sf, vcvtv4sfv4hf.
29172 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
29173 (neon_vcvtv4hfv4sf): Likewise.
29174 * config/arm/neon-gen.ml: Handle half-precision floating point
29176 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
29177 * config/arm/arm_neon.h: Regenerate.
29178 * config/arm/neon.ml (type elts): Add F16.
29179 (type vectype): Add T_float16x4, T_floatHF.
29180 (type vecmode): Add V4HF.
29181 (type features): Add Requires_FP_bit feature.
29182 (elt_width): Handle F16.
29183 (elt_class): Likewise.
29184 (elt_of_class_width): Likewise.
29185 (mode_of_elt): Refactor.
29186 (type_for_elt): Handle F16, fix error messages.
29187 (vectype_size): Handle T_float16x4.
29188 (vcvt_sh): New function.
29189 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
29190 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
29191 (string_of_mode): Handle V4HF.
29192 * doc/arm-neon-intrinsics.texi: Regenerate.
29194 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
29196 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
29197 format specifier in 'X' case.
29199 2013-04-25 Alan Modra <amodra@gmail.com>
29202 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
29203 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
29204 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
29205 Repeat for many other rotate/shift and mask patterns using subregs.
29206 Name lshiftrt insns.
29207 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
29208 on WORDS_BIG_ENDIAN.
29210 2013-04-25 Alan Modra <amodra@gmail.com>
29212 * config.gcc: Support little-endian powerpc-linux targets.
29213 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
29214 (LINK_OS_LINUX_SPEC): Define.
29215 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
29216 Preserve MASK_LITTLE_ENDIAN.
29217 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
29218 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
29219 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
29220 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
29221 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
29222 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
29223 Correct fp word order for little-endian. Don't shift toc entries
29224 smaller than a word for little-endian.
29225 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
29226 (bswapdi2 splits): Correct low-part subreg for little-endian.
29227 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
29228 low/high where such is correct only for be.
29229 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
29230 little-endian for -mcall-aixdesc.
29232 2013-04-25 Alan Modra <amodra@gmail.com>
29234 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
29235 replace_equiv_address_nv.
29237 2013-04-25 Alan Modra <amodra@gmail.com>
29239 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
29241 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29244 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29245 * rtl.h (struct rtx_def): ...
29247 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29249 PR rtl-optimizations/57046
29250 * lra-constraints (split_reg): Set up lra_risky_transformations_p
29251 for multi-reg splits.
29253 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
29255 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
29257 2013-04-24 Sterling Augustine <saugustine@google.com>
29259 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
29260 (comp_dir_string, debug_str_dwo_section): New.
29261 (DEBUG_STR_DWO_SECTION): Rename to ...
29262 (DEBUG_DWO_STR_SECTION): ... this.
29263 (DEBUG_NORM_STR_SECTION): Delete.
29264 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
29265 (DEBUG_STR_DWO_SECTION_FLAGS): New.
29266 (find_AT_string): Move most logic to ...
29267 (find_AT_string_in_table): ... here. New.
29268 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
29269 add_skeleton_AT_string. Delete logic.
29270 (output_skeleton_debug_sections): Remove call to
29271 add_top_level_skeleton_die_attrs.
29272 (add_comp_dir_attribute): Move logic to comp_dir_string.
29273 (dwarf2out_init): Initialize debug_str_dwo_section.
29274 (output_indirect_string): Call find_string_form.
29275 (output_indirect_strings): Rewrite.
29276 (prune_unused_types): Empty skeleton_debug_str_hash.
29277 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
29278 (dwarf2out_finish): Call output_indirect_strings.
29280 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29282 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
29284 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
29286 * rtl.h (struct rtx_def): Add comment for field jump.
29287 (LRA_SUBREG_P): New macro.
29288 * recog.c (register_operand): Check LRA_SUBREG_P.
29289 * lra.c (lra): Add note at the end of RTL code. Align non-empty
29291 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
29292 (lra_final_code_change): Skip subreg change for operators.
29293 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
29294 if there are no operand changes.
29295 * lra-constraints.c (curr_insn_set): New.
29296 (match_reload): Set LRA_SUBREG_P.
29297 (emit_spill_move): Ditto.
29298 (check_and_process_move): Use curr_insn_set. Process only single
29299 set insns. Don't initialize sec_mem_p and change_p.
29300 (simplify_operand_subreg): Use LRA_SUBREG_P.
29301 (reg_in_class_p): New function.
29302 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
29303 of #ifdef. Add code to remove cycling.
29304 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
29305 non-null disp. Reload inner instead of disp when base and index
29306 are null. Try to put lo_sum into register.
29307 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
29308 (check_and_process_move): Move code for move cost check to
29309 simple_move_p. Remove equiv_substitution.
29310 (simple_move_p): New function.
29311 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
29312 curr_insn_set. Call check_and_process_move only for single set
29313 insns. Use the new function. Move call of check_and_process_move
29314 after operand equiv substitution and address process.
29316 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
29318 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
29319 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
29320 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
29322 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
29324 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
29326 2013-04-24 Marek Polacek <polacek@redhat.com>
29328 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
29329 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
29330 (select_loops_exit_conditions): Likewise.
29331 (number_of_iterations_for_all_loops): Likewise.
29332 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
29333 (scev_analysis): Likewise.
29335 2013-04-02 Catherine Moore <clm@codesourcery.com>
29336 Chao-ying Fu <fu@mips.com>
29338 * config/mips/micromips.md (jraddiusp): New pattern.
29339 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
29340 instruction if possible.
29342 2013-04-24 Alan Modra <amodra@gmail.com>
29344 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
29346 2013-04-24 Julian Brown <julian@codesourcery.com>
29347 Chung-Lin Tang <cltang@codesourcery.com>
29349 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
29350 dependency behavior in enumeration type DIE generation. Add TODO note
29351 to comments about future DW_FORM_sdata/udata re-work of related code.
29353 2013-04-23 Lawrence Crowl <crowl@google.com>
29355 * Makefile.in: Update as needed below.
29357 * hash-table.h (class hash_table):
29358 Correct many methods with parameter types compare_type to the correct
29359 value_type. (Correct code was unlikely to notice the change.)
29360 (hash_table::elements_with_deleted) New.
29361 (class hashtable::iterator): New.
29362 (hashtable::begin()): New.
29363 (hashtable::end()): New.
29364 (FOR_EACH_HASH_TABLE_ELEMENT): New.
29366 * statistics.c (statistics_hashes):
29367 Change type to hash_table. Update dependent calls and types.
29369 * tree-into-ssa.c (var_infos):
29370 Change type to hash_table. Update dependent calls and types.
29372 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29373 Change type to hash_table. Update dependent calls and types.
29375 * tree-ssa-loop-im.c (struct mem_ref.refs):
29376 Change type to hash_table. Update dependent calls and types.
29378 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29379 Change type to hash_table. Update dependent calls and types.
29381 * tree-ssa-sccvn.c (vn_tables_s::nary):
29382 Change type to hash_table. Update dependent calls and types.
29383 (vn_tables_s::phis): Likewise.
29384 (vn_tables_s::references): Likewise.
29386 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29387 (vn_reference_eq): Update parameter and return types.
29389 * tree-ssa-structalias.c (pointer_equiv_class_table):
29390 Change type to hash_table. Update dependent calls and types.
29391 (location_equiv_class_table): Likewise.
29393 * tree-vect-data-refs.c: Consequential changes for making
29394 peeling a hash_table.
29396 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29397 (destroy_loop_vec_info): Dependent hash_table update.
29399 * tree-vectorizer.h (peeling_htab):
29400 Change type to hash_table. Update dependent calls and types.
29402 2013-04-23 Shiva Chen <shiva0217@gmail.com>
29404 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29405 to check the register content is equal or not.
29406 * lra-constraints.c (match_reload): Use lra_assign_reg_val
29407 to assign register content record.
29408 * lra-eliminations.c (update_reg_eliminate): Use
29409 lra_update_reg_val_offset to update register content offset.
29410 * lra-int.h (struct lra_reg): Add offset member.
29411 (lra_reg_val_equal_p): New static inline function.
29412 (lra_update_reg_val_offset): New static inline function.
29413 (lra_assign_reg_val): New static inline function.
29414 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29415 to assign register content record.
29416 (initialize_lra_reg_info_element): Initial offset to zero.
29418 2013-04-23 Catherine Moore <clm@codesourcery.com>
29420 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29421 operands. Record compression.
29423 2013-04-23 Xinliang David Li <davidxl@google.com>
29425 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29427 2013-04-23 Richard Biener <rguenther@suse.de>
29429 PR middle-end/57036
29430 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29431 parameter, only add abnormal goto edges from the copied body
29432 if the call could perform abnormal gotos.
29433 (copy_cfg_body): Adjust.
29435 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
29437 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29439 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
29441 * coretypes.h (gimple_stmt_iterator): Add struct to make
29444 2013-04-23 Richard Biener <rguenther@suse.de>
29446 PR tree-optimization/57026
29447 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29448 from SSA names occuring in abnormal PHI nodes.
29450 2013-04-22 Andi Kleen <ak@linux.intel.com>
29452 * lto/lto.c (print_lto_report_1): Fix LTO report names.
29454 2013-04-22 Andi Kleen <ak@linux.intel.com>
29456 * lto/lto.c (print_lto_report_1): Declare early.
29457 (read_cgraph_and_symbols): Call print_lto_report_1 early.
29459 2013-04-22 Andi Kleen <ak@linux.intel.com>
29461 * common.opt (-flto-report-wpa): Add.
29462 * doc/invoke.texi (-flto-report-wpa): Add.
29463 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29466 2013-04-22 Xinliang David Li <davidxl@google.com>
29468 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29469 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29470 * Makefile.in: New dependency
29472 David Daney <ddaney.cavm@gmail.com>
29474 * configure.ac (gcc_cv_as_micromips_support): Use the
29475 --fatal-warnings option.
29476 * configure: Regenerate.
29478 2013-04-22 Marek Polacek <polacek@redhat.com>
29481 * tsan.c (instrument_expr): Don't instrument expression
29482 in case its size is zero.
29484 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
29488 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
29490 * config/alpha/alpha.c (TARGET_LRA_P): New define.
29492 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29494 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29495 (gimple_stmt_iterator): New typedef.
29496 * gimple.h (gimple_stmt_iterator): Rename to...
29497 (gimple_stmt_iterator_d): ... This.
29498 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29499 trees be valid for GIMPLE and GENERIC.
29500 (TARGET_GIMPLE_FOLD_BUILTIN): New.
29501 * gimple-fold.c (gimple_fold_call): Call target hook
29502 gimple_fold_builtin.
29503 * hooks.c (hook_bool_gsiptr_false): New.
29504 * hooks.h (hook_bool_gsiptr_false): New.
29505 * target.def (fold_stmt): New.
29506 * doc/tm.texi: Regenerate.
29508 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
29511 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29512 a set sp if no stack realignment.
29514 2013-04-22 Nick Clifton <nickc@redhat.com>
29516 * config.gcc (tilegx-linux): Extend extra_objs rather than
29518 (tilepro-linux): Likewise.
29520 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29522 * config/aarch64/aarch64-builtins.c
29524 (CF0, CF1, CF2, CF3, CF4, CF10): New.
29525 (VAR<1-12>): Add MAP parameter.
29526 (BUILTIN_*): Likewise.
29527 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29528 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29529 (aarch64_ushl_n<mode>): Likewise.
29530 (aarch64_sshr_n<mode>): Likewise.
29531 (aarch64_ushr_n<mode>): Likewise.
29532 (aarch64_<maxmin><mode>): Likewise.
29533 (aarch64_sqrt<mode>): Likewise.
29534 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29535 (vshr<q>_n_*): Likewise.
29537 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29539 * config/aarch64/aarch64-builtins.c
29540 (aarch64_simd_builtin_type_mode): Handle SF types.
29542 (BUILTIN_GPF): Define.
29543 (aarch64_init_simd_builtins): Handle SF types.
29544 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29545 (frecps): Likewise.
29546 (frecpx): Likewise.
29547 * config/aarch64/aarch64-simd.md
29548 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29549 (aarch64_frecpe<mode>): New.
29550 (aarch64_frecps<mode>): Likewise.
29551 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29552 (v8type): Add frecp<esx>.
29553 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29554 (aarch64_frecps<mode>): Likewise.
29555 * config/aarch64/iterators.md (FRECP): New.
29556 (frecp_suffix): Likewise.
29557 * config/aarch64/arm_neon.h
29558 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29560 2013-04-22 Christian Bruel <christian.bruel@st.com>
29563 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29564 (REG_CLASS_NAMES): Idem.
29565 (REG_CLASS_CONTENTS): Idem.
29566 (REGCLASS_HAS_FP_REG): Idem.
29567 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29568 (sh_conditional_register_usage): Idem.
29570 2013-04-21 Jeff Law <law@redhat.com>
29572 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29573 (ssa_forward_propagate_and_combine): Use it.
29575 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29577 * lra.c: Update the flow chart diagram.
29579 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
29581 PR rtl-optimization/56847
29582 * lra-constraints.c (process_alt_operands): Discourage alternative
29583 with non-matche doffsettable memory constraint fro memory with
29586 2013-04-19 Richard Biener <rguenther@suse.de>
29588 PR tree-optimization/56982
29589 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29591 * gimplify.c (gimplify_call_expr): Notice special calls.
29592 (gimplify_modify_expr): Likewise.
29593 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29594 abnormal control flow receivers.
29595 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29596 in the same way as cfun->has_nonlocal_labels.
29597 (gimple_purge_dead_abnormal_call_edges): Likewise.
29598 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29599 receivers start a basic-block.
29601 2013-04-19 Richard Biener <rguenther@suse.de>
29603 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29605 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
29606 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29607 (SLP_TREE_LOAD_PERMUTATION): Add.
29608 (vect_transform_slp_perm_load): Adjust prototype.
29609 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29610 (vect_free_slp_instance): Likewise.
29611 (vect_create_new_slp_node): Likewise.
29612 (vect_supported_slp_permutation_p): Remove.
29613 (vect_slp_rearrange_stmts): Adjust.
29614 (vect_supported_load_permutation_p): Likewise. Inline
29615 vect_supported_slp_permutation_p here.
29616 (vect_analyze_slp_instance): Compute load permutations per
29617 slp node instead of per instance.
29618 (vect_get_slp_defs): Adjust.
29619 (vect_transform_slp_perm_load): Likewise.
29620 (vect_schedule_slp_instance): Remove redundant code.
29621 (vect_schedule_slp): Remove hack for PR56270, add it ...
29622 * tree-vect-stmts.c (vectorizable_load): ... here, do not
29623 CSE loads for SLP. Adjust.
29625 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29627 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29628 spelling in two comments.
29630 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
29633 * config/arm/arm.c (load_multiple_sequence): Require SP
29634 as base register for loads if SP is in the register list.
29636 2013-04-19 Martin Jambor <mjambor@suse.cz>
29638 PR tree-optimization/56718
29639 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29640 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29641 and made public. Adjusted all callers.
29642 (ipa_intraprocedural_devirtualization): New function.
29643 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29644 (ipa_intraprocedural_devirtualization): Likewise.
29645 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29647 2013-04-19 Richard Biener <rguenther@suse.de>
29649 PR tree-optimization/57000
29650 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29652 2013-04-19 Terry Guo <terry.guo@arm.com>
29654 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29656 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
29657 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29658 (cortex_m4_fmacs): Use new reservations.
29659 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29661 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
29663 PR rtl-optimization/56999
29664 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29666 (lra_coalesce): Remove split_origin_bitmap and related code.
29667 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
29668 ranges if necessary.
29670 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
29672 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29674 (ix86_expand_call): Remove clobbered_registers array and use
29675 x86_64_ms_sysv_extra_clobbered_registers instead.
29676 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29678 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29680 * config/i386/i386.md (*call_rex64_ms_sysv): Use
29681 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
29682 (*call_value_rex64_ms_sysv): Ditto.
29684 2013-04-18 Cary Coutant <ccoutant@google.com>
29686 * dwarf2out.c (output_pubnames): Check die_perennial_p of
29687 parent instead of die_mark.
29689 2013-04-18 Diego Novillo <dnovillo@google.com>
29691 * gimple.c (create_gimple_tmp): New.
29692 (get_expr_type): New.
29693 (build_assign): New.
29694 (build_type_cast): New.
29695 * gimple.h (enum ssa_mode): Define.
29696 (gimple_seq_set_location): New.
29697 * asan.c (build_check_stmt): Change some gimple_build_* calls
29698 to use build_assign and build_type_cast.
29700 2013-04-18 Richard Biener <rguenther@suse.de>
29702 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29703 handle negative step. Remove redundant checks.
29704 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29705 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29706 for negative step and grouped loads fail to vectorize.
29708 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29710 * emit-rtl.c (reset_insn_used_flags): New function.
29711 (reset_all_used_flags): Use it.
29712 (verify_insn_sharing): New function.
29713 (verify_rtl_sharing): Fix verification for SEQUENCEs.
29715 2013-04-18 Jakub Jelinek <jakub@redhat.com>
29717 PR tree-optimization/56984
29718 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29719 and (x >> M) >= N don't register any assertion if N << M is the
29722 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
29724 * lower-subreg.c (resolve_simple_move): If called self-recursive,
29725 do not delete_insn insns that have not yet been emitted, only
29726 unlink them with remove_insn.
29727 * df-scan.c (df_insn_delete): Revert r197492.
29729 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
29731 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29732 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29734 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29736 * config/arm/arm.md (movsicc_insn): Convert define_insn into
29737 define_insn_and_split.
29738 (and_scc,ior_scc,negscc): Likewise.
29739 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29741 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
29743 * config/arm/arm.c (use_return_insn): Return 0 for targets that
29744 can benefit from using a sequence of LDRD instructions in epilogue
29745 instead of a single LDM instruction.
29747 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
29750 * doc/extend.texi: Fix typo.
29752 2013-04-17 Richard Biener <rguenther@suse.de>
29754 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29755 (vect_build_slp_tree): ... here.
29756 (vect_build_slp_tree_1): Compute which stmts of the SLP group
29757 match. Remove special-casing of mismatched complex loads.
29758 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29759 re-try the match with swapped commutative operands.
29760 (vect_supported_load_permutation_p): Remove special-casing of
29761 mismatched complex loads.
29762 (vect_analyze_slp_instance): Adjust.
29764 2013-04-17 Richard Biener <rguenther@suse.de>
29766 PR rtl-optimization/56921
29767 * cfgloop.h (struct loop): Add simple_loop_desc member.
29768 (struct niter_desc): Mark with GTY(()).
29769 (simple_loop_desc): Do not use aux field but simple_loop_desc.
29770 * loop-iv.c (get_simple_loop_desc): Likewise.
29771 (free_simple_loop_desc): Likewise.
29774 2013-04-16 Richard Biener <rguenther@suse.de>
29776 PR rtl-optimization/56921
29777 * loop-init.c (pass_rtl_move_loop_invariants): Add
29778 TODO_do_not_ggc_collect to todo_flags_finish.
29779 (pass_rtl_unswitch): Same.
29780 (pass_rtl_unroll_and_peel_loops): Same.
29781 (pass_rtl_doloop): Same.
29783 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
29785 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29786 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29787 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29789 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29790 * tree-streamer.c (record_common_node): Adjust reference in comment.
29792 2013-04-17 Terry Guo <terry.guo@arm.com>
29794 * config/arm/cortex-m4.md: Add a new bypass.
29796 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29798 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29800 (*subs_<optab><mode>_multp2): New pattern.
29801 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29802 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29804 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
29806 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29807 (*subs_mul_imm_<mode>): New pattern.
29809 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
29812 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29813 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
29814 (vsx_movti_32bit): Change j->wa to O->wa.
29816 2013-04-16 Richard Biener <rguenther@suse.de>
29818 PR rtl-optimization/56921
29819 * loop-init.c (pass_rtl_move_loop_invariants): Add
29820 TODO_do_not_ggc_collect to todo_flags_finish.
29821 (pass_rtl_unswitch): Same.
29822 (pass_rtl_unroll_and_peel_loops): Same.
29823 (pass_rtl_doloop): Same.
29825 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
29827 * config/arm/arm.c (emit_multi_reg_push): New declaration
29828 for an existing function.
29829 (arm_emit_strd_push): New function.
29830 (arm_expand_prologue): Used here.
29831 (arm_emit_ldrd_pop): New function.
29832 (arm_expand_epilogue): Used here.
29833 (arm_get_frame_offsets): Update condition.
29834 (arm_emit_multi_reg_pop): Add a special case for load of a single
29835 register with writeback.
29837 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
29839 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29842 2013-04-16 Richard Biener <rguenther@suse.de>
29844 PR tree-optimization/56756
29845 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29846 (first_mem_ref_loc): New.
29847 (execute_sm): Place the load temporarily before a previous
29848 access instead of in the latch edge to ensure its SSA dependencies
29849 are defined at points dominating the load.
29851 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
29853 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29854 correct fix by moving header and footer insn to the footer of
29855 the merged basic block. Clear BB_END of the merged-away block.
29857 PR middle-end/43631
29858 * emit-rtl.c (make_note_raw): New function.
29859 (link_insn_into_chain): New static inline function.
29860 (add_insn): Use it.
29861 (add_insn_before, add_insn_after): Factor insn chain linking code...
29862 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29863 using link_insn_into_chain.
29864 (note_outside_basic_block_p): New helper function for emit_note_after
29865 and emit_note_before.
29866 (emit_note_after): Use nobb variant of add_insn_after if the note
29867 should not be contained in a basic block.
29868 (emit_note_before): Use nobb variant of add_insn_before if the note
29869 should not be contained in a basic block.
29870 (emit_note_copy): Use make_note_raw.
29871 (emit_note): Likewise.
29872 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29873 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29874 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29875 the moved barrier the tail of the basic block it follows.
29876 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29878 2013-04-15 Jakub Jelinek <jakub@redhat.com>
29880 PR tree-optimization/56962
29881 * gimple-ssa-strength-reduction.c (record_increment): Only set
29882 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29883 either rhs1 or rhs2 is equal to c->base_expr.
29885 2013-04-15 Richard Biener <rguenther@suse.de>
29887 PR tree-optimization/56933
29888 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29890 (GROUP_READ_WRITE_DEPENDENCE): Remove.
29891 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29892 * tree-vect-data-refs.c (vect_analyze_group_access): Move
29893 dependence check ...
29894 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29896 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29897 GROUP_READ_WRITE_DEPENDENCE.
29899 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29901 * emit-rtl.c (reset_all_used_flags): New function.
29902 (verify_rtl_sharing): Call reset_all_used_flags before and after
29903 performing the checks.
29905 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29907 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29908 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29909 * config/arm/constraints.md (De): New constraint.
29910 * config/arm/neon.md (anddi3_neon): Delete.
29911 (neon_vand<mode>): Expand to standard anddi3 pattern.
29912 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29913 Move earlier in the file.
29914 (neon_inv_logic_op2): Likewise.
29915 (arm_anddi_operand_neon): New predicate.
29917 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29919 * configure.ac (gcc_cv_ld_as_needed): Set
29920 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29921 Use -z ignore, -z record on *-*-solaris2*.
29922 (HAVE_LD_AS_NEEDED): Update comment.
29923 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29924 * configure: Regenerate.
29925 * config.in: Regenerate.
29926 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29927 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29928 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29929 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29930 equivalents. Fix markup.
29931 * doc/tm.texi: Regenerate.
29933 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
29935 * config/i386/i386.opt: New option mstack-protector-guard=.
29936 * config/i386/i386-opts.h: Add enum stack_protector_guard.
29937 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29938 TARGET_SSP_TLS_GUARD.
29939 * config/i386/i386.c (ix86_option_override_internal): Set
29940 ix86_stack_protector_guard.
29941 * config/i386/i386.md (stack_protect_set): Enable for
29942 TARGET_SSP_TLS_GUARD only.
29943 (stack_protect_set_<mode>): Ditto.
29944 (stack_protect_test): Ditto.
29945 (stack_protect_test_<mode>): Ditto.
29946 * doc/invoke.texi (i386 Option): Document.
29948 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
29951 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29952 (S_MODES): Set H_MODE bit.
29953 (SF_MODES): Set only S_MODE and SF_MODE bits.
29954 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29955 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29956 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29957 <MODE_FLOAT>: Likewise.
29959 2013-04-15 Joey Ye <joey.ye@arm.com>
29961 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29963 2013-04-15 Joey Ye <joey.ye@arm.com>
29965 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29967 (thumb_far_jump_used_p): Count instruction size and set
29970 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
29972 * reorg.c (fill_simple_delay_slots): Reindent block of code.
29973 * resource.c (mark_target_live_regs): Reformat conditional block.
29975 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29977 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29978 notes, they are emitted only just before final.
29979 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29981 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
29983 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29984 * cfgrtl.c (delete_insn): Call it here instead.
29985 * lra-spills.c (lra_final_code_change): Use delete_insn.
29986 * haifa-sched.c (sched_remove_insn): Likewise.
29987 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29988 returning to the nop pool.
29989 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29990 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
29992 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
29994 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29995 * doc/tm.texi: Regenerated.
29997 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
29999 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
30002 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
30004 * df-core.c (df_find_def): Compare register numbers.
30005 (df_find_use): Likewise.
30007 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
30010 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
30011 lra_in_progress for return.
30013 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30015 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
30016 define_insn into define_insn_and_split and emit movsicc patterns.
30018 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
30020 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
30022 2013-04-12 Richard Biener <rguenther@suse.de>
30024 * tree-pass.h (TODO_do_not_ggc_collect): New.
30025 * passes.c (execute_one_ipa_transform_pass): Honor
30026 TODO_do_not_ggc_collect.
30027 (execute_one_pass): Likewise.
30030 2013-04-10 Richard Biener <rguenther@suse.de>
30032 * passes.c (init_optimization_passes): Remove reload pass.
30033 * ira.c (do_reload): Merge into ...
30035 (rest_of_handle_reload): Remove.
30036 (pass_reload): Likewise.
30037 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30038 of reload for vzeroupper pass placement.
30040 2013-04-12 Jakub Jelinek <jakub@redhat.com>
30042 PR tree-optimization/56918
30043 PR tree-optimization/56920
30044 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
30045 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
30046 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
30047 use wide_mul_with_sign method.
30049 2013-04-12 Richard Biener <rguenther@suse.de>
30051 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
30052 not be considered a gimple constant.
30054 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
30056 * fold-const.c (const_binop): Handle vector shifts by a scalar.
30057 (fold_binary_loc): Call const_binop also for mixed vector-scalar
30060 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
30061 Jakub Jelinek <jakub@redhat.com>
30063 * opts.c: Include diagnostic-color.h.
30064 (common_handle_option): Handle OPT_fdiagnostics_color_.
30065 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
30066 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
30067 (diagnostic-color.o): New.
30068 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
30069 (diagnostic_color_rule): New enum.
30070 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
30071 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
30072 the location string.
30073 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
30074 either NULL, or color kind.
30075 * diagnostic-color.c: New file.
30076 * diagnostic-color.h: New file.
30077 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
30079 * doc/invoke.texi (-fdiagnostics-color): Document.
30080 * pretty-print.h (pp_show_color): Define.
30081 (struct pretty_print_info): Add show_color field.
30082 * diagnostic.c: Include diagnostic-color.h.
30083 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
30084 macros. Colorize error:, warning: etc. strings and also the location
30086 (diagnostic_show_locus): Colorize the caret line.
30087 * pretty-print.c: Include diagnostic-color.h.
30088 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
30089 inside of %< %> quotes or quoted through q format modifier.
30091 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30093 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
30095 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30097 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
30098 code in CC_NZ mode.
30099 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
30102 2013-04-11 Marek Polacek <polacek@redhat.com>
30104 PR tree-optimization/48184
30105 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
30107 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
30109 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
30110 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
30111 (skip_simple_arithmetic): Tidy up.
30112 * tree.h (skip_simple_constant_arithmetic): Declare.
30114 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
30116 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
30118 2013-04-11 Richard Biener <rguenther@suse.de>
30120 * tree-vect-loop.c (get_initial_def_for_induction): Properly
30121 generate vector constants.
30123 2013-04-11 Richard Biener <rguenther@suse.de>
30125 PR tree-optimization/56878
30126 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
30127 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
30129 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30130 Prefer to align the DR with the most invariant base address.
30132 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30134 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
30137 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
30139 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
30140 floating-point vector comparisons against 0.
30142 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30144 PR tree-optimization/56899
30145 * fold-const.c (extract_muldiv_1): Apply distributive law
30146 only if TYPE_OVERFLOW_WRAPS (ctype).
30148 2013-04-11 Bin Cheng <bin.cheng@arm.com>
30151 * ira-costs.c (scan_one_insn): Check whether the source rtx of
30152 loading has side effect.
30154 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
30156 * config/sparc/sparc.c: Include tree-pass.h.
30157 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
30158 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
30159 head of file. Change return type. Split off gate function.
30160 (sparc_gate_work_around_errata): New function.
30161 (pass_work_around_errata): New pass definition.
30162 (insert_pass_work_around_errata) New pass insert definition to
30163 insert pass_work_around_errata just after delayed-branch scheduling.
30164 (sparc_option_override): Insert the pass.
30165 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
30167 2013-04-10 David S. Miller <davem@davemloft.net>
30169 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
30170 or -mcpu=hypersparc.
30172 * target.def (cstore_mode): New hook.
30173 * target.h: Include insn-codes.h
30174 * targhooks.c: Likewise.
30175 (default_cstore_mode): New function.
30176 * targhooks.h: Declare it.
30177 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
30178 * doc/tm.texi: Rebuild.
30179 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
30180 target hook, rather than inspecting the insn_data.
30181 * config/sparc/sparc.c (sparc_cstore_mode): New function.
30182 (TARGET_CSTORE_MODE): Redefine.
30183 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
30185 * config/sparc/predicates.md (cstore_result_operand): New special
30187 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
30188 Use it for operand 0.
30189 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
30190 (*snesi_special): Likewise.
30191 (*snesi_zero): Likewise.
30192 (*seqsi_zero): Likewise.
30193 (*sltu_insn): Likewise.
30194 (*sgeu_insn): Likewise.
30195 (*seqdi_special): Make operand 0 and comparison operation be of
30197 (*snedi_special): Likewise.
30198 (*snedi_special_vis3): Likewise.
30199 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
30200 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
30201 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
30202 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
30203 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
30204 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
30205 (*sltu_extend_sp64): Likewise.
30206 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
30207 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
30208 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
30209 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
30210 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
30212 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
30214 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
30215 (aarch64_start_file): Use the new function.
30217 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30218 Jason Merrill <jason@redhat.com>
30220 * common.opt: Add -gdwarf.
30221 * opts.c (common_handle_option): Handle it.
30222 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
30224 2013-04-10 Richard Biener <rguenther@suse.de>
30226 * passes.c (execute_todo): Do not call ggc_collect conditional here.
30227 (execute_one_ipa_transform_pass): But unconditionally here.
30228 (execute_one_pass): And here.
30229 (init_optimization_passes): Remove reload pass.
30230 * tree-pass.h (TODO_ggc_collect): Remove.
30231 (pass_reload): Likewise.
30232 * ira.c (do_reload): Merge into ...
30234 (rest_of_handle_reload): Remove.
30235 (pass_reload): Likewise.
30236 * config/i386/i386.c (ix86_option_override): Refer to ira instead
30237 of reload for vzeroupper pass placement.
30238 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
30239 and todo_flags_finish of all passes.
30241 2013-04-10 Richard Biener <rguenther@suse.de>
30243 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
30244 first_const_oprnd field, rename first_def_type to first_op_type.
30245 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
30246 (vect_get_and_check_slp_defs): Always use the type of the
30247 operand. Allow mixed vect_external_def, vect_constant_def types.
30248 (vect_get_constant_vectors): Handle mixed vect_external_def,
30249 vect_constant_def types.
30251 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
30253 PR tree-optimization/55524
30254 * tree-ssa-math-opts.c
30255 (convert_mult_to_fma): Don't use an fms construct
30256 when we don't have an fms operation, but fnma, and it looks
30257 likely that we'll be able to use the latter.
30259 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30261 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
30263 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
30264 inline fail caused by overwritable functions.
30266 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
30268 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
30269 unnecessary bits in the constant power of two case.
30271 2013-04-10 Richard Biener <rguenther@suse.de>
30273 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
30274 broken code swapping operands.
30275 (vect_build_slp_tree): Do not compute load permutations here.
30276 (vect_analyze_slp_instance): Compute load permutations here,
30277 after building the SLP tree.
30279 2013-04-09 Christian Bruel <christian.bruel@st.com>
30281 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
30282 of next/prev_real_insn.
30284 2013-04-09 Jan Hubicka <jh@suse.cz>
30286 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
30287 Drop aliased parameter.
30288 (function_and_variable_visibility): Do not handle alias pairs.
30289 * cgraph.c (varpool_externally_visible_p): Update prototype.
30290 * varpool.c (varpool_add_new_variable): Update.
30292 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30294 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
30296 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
30298 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
30300 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
30302 2013-04-09 Marek Polacek <polacek@redhat.com>
30304 PR tree-optimization/48762
30305 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
30307 2013-04-09 Richard Biener <rguenther@suse.de>
30309 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
30311 (vect_build_slp_tree): Likewise.
30312 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
30313 calculating the cost of a SLP instance.
30314 (vect_analyze_slp_instance): Use it from here, after building
30317 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30319 PR middle-end/56883
30320 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30321 expand_omp_for_static_chunk): Use simple_p = true in
30322 force_gimple_operand_gsi calls when assigning to addressable decls.
30324 2013-04-09 Jeff Law <law@redhat.com>
30326 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
30327 when the boolean was created by converting a wider object which
30328 had a boolean range.
30330 2013-04-09 Richard Biener <rguenther@suse.de>
30332 * tree-vectorizer.h (slp_void_p): Remove.
30333 (slp_tree): Typedef before _slp_tree declaration.
30334 (struct _slp_tree): Use a vector of slp_tree as children.
30335 (vect_get_place_in_interleaving_chain): Remove.
30336 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
30338 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
30340 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
30341 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
30342 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
30343 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
30344 Use slp_node instead of slp_void_p and adjust.
30346 2013-04-09 Richard Biener <rguenther@suse.de>
30348 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
30349 work that is not necessary.
30351 2013-04-09 Jakub Jelinek <jakub@redhat.com>
30353 PR tree-optimization/56854
30354 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
30355 forward into clobber stmts if it would change MEM_REF lhs into
30358 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
30360 * tree.c (type_hash_lookup, type_hash_add): Make static.
30361 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30363 2013-04-09 Richard Biener <rguenther@suse.de>
30365 * tree.h (unsave_expr_now): Remove.
30366 * tree-inline.c (mark_local_for_remap_r): Remove.
30367 (unsave_expr_1): Likewise.
30368 (unsave_r): Likewise.
30369 (unsave_expr_now): Likewise.
30370 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30371 (propagate_tree_value): Likewise.
30373 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
30375 * doc/rtl.texi (sequence): Rewrite documentation to match the
30376 current use of SEQUENCE rtl objects.
30377 * rtl.def (SEQUENCE): Likewise.
30379 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30380 Update documentation.
30381 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30382 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30384 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30386 2013-04-08 Teresa Johnson <tejohnson@google.com>
30388 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30389 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30391 (estimate_edge_size_and_time): Add comment to suggest using rounding
30393 (estimate_node_size_and_time): Ditto.
30394 (remap_edge_change_prob): Use helper rounding divide methods.
30395 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30396 (gimple_mod_pow2_value_transform): Ditto.
30397 (gimple_mod_subtract_transform): Ditto.
30398 (gimple_ic_transform): Ditto.
30399 (gimple_stringops_transform): Ditto.
30400 * stmt.c (conditional_probability): Ditto.
30401 (emit_case_dispatch_table): Ditto.
30402 * lto-cgraph.c (merge_profile_summaries): Ditto.
30403 * tree-optimize.c (execute_fixup_cfg): Ditto.
30404 * cfgcleanup.c (try_forward_edges): Ditto.
30405 * cfgloopmanip.c (scale_loop_profile): Ditto.
30407 (duplicate_loop_to_header_edge): Ditto.
30408 (lv_adjust_loop_entry_edge): Ditto.
30409 * tree-vect-loop.c (vect_transform_loop): Ditto.
30410 * profile.c (compute_branch_probabilities): Ditto.
30411 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30412 * lto-streamer-in.c (input_cfg): Ditto.
30413 * gimple-streamer-in.c (input_bb): Ditto.
30414 * ipa-cp.c (update_profiling_info): Ditto.
30415 (update_specialized_profile): Ditto.
30416 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30417 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30419 * sched-rgn.c (compute_dom_prob_ps): Ditto.
30420 (compute_trg_info): Ditto.
30421 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30422 (purge_dead_edges): Ditto.
30423 * loop-unswitch.c (unswitch_loop): Ditto.
30424 * cgraphclones.c (cgraph_clone_edge): Ditto.
30425 (cgraph_clone_node): Ditto.
30426 * tree-inline.c (copy_bb): Ditto.
30427 (copy_edges_for_bb): Ditto.
30428 (initialize_cfun): Ditto.
30429 (copy_cfg_body): Ditto.
30430 (expand_call_inline): Ditto.
30432 2013-04-08 Kai Tietz <ktietz@redhat.com>
30434 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30435 TARGET_CYGWIN64 by TARGET_64BIT.
30437 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30439 * config/epiphany/epiphany.md (GPR_1): New constant.
30440 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30441 * config/epiphany/epiphany.c (gen_compare_reg):
30442 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30443 is already in place.
30444 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30445 Don't require being called during rtl expansion; If y operlaps r0,
30447 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30448 (epiphany_expand_epilogue): Likewise.
30450 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30451 Don't use CC_FPmode for ORDERED / UNORDERED.
30452 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30454 * config/epiphany/constraints.md (CnL): New constraint.
30455 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30456 * config/epiphany/predicates.md (add_operand): Allow 1024.
30458 * config/epiphany/epiphany.md (logical_op): New code iterator.
30459 (op_mnc): New code attribute.
30460 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30461 (mov_f+1, mov_f+2): New peephole2 patterns.
30463 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30464 (cstoresi4): Also allow re-use of zero result when doing a NE
30465 comparison to a non-zero operand.
30466 Use (clobber (scratch)) for first insn if the gpr output is not needed.
30468 * config/epiphany/epiphany.md (<insn_opname>v2si3):
30469 Use gen_addsi3_i / gen_subsi3_i.
30471 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30475 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30476 contain anything but clobbers, at most one __builtin_stack_restore,
30477 optionally debug stmts and final resx, and if it has at least one
30478 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
30479 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30480 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30481 which isn't defaut definition, remove them.
30482 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30483 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30484 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30485 with MEM_REF LHS with SSA_NAME address.
30487 2013-04-08 Jeff Law <law@redhat.com>
30489 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30491 2013-04-08 Richard Biener <rguenther@suse.de>
30493 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30495 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30496 determined vector type.
30497 (vect_analyze_data_refs): Likewise.
30498 (vect_get_new_vect_var): Adjust.
30499 (vect_create_destination_var): Preserve SSA name versions.
30500 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30501 not dump anything here.
30503 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
30505 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30506 Add member lr_slot_known.
30507 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30509 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30510 Remove code that sets lr_slot_offset according to what a previous
30511 version of epiphany_emit_save_restore used to do.
30512 (epiphany_emit_save_restore): When doing an lr save or restore,
30513 set/verify lr_slot_known and lr_slot_offset.
30515 2013-04-08 Xinyu Qi <xyqi@marvell.com>
30518 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30521 2013-04-08 Richard Biener <rguenther@suse.de>
30523 * alias.c (find_base_term): Fix thinko in previous change.
30525 2013-04-08 Jakub Jelinek <jakub@redhat.com>
30527 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30528 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30529 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
30530 if possible to compute val.
30531 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30532 For QImode integers don't require anything about precision. Use
30533 const_with_all_bytes_same to find out if the constant doesn't have
30534 repeated bytes in it.
30536 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30538 * config/s390/s390.c (s390_expand_insv): Only accept insertions
30541 2013-04-08 Marek Polacek <polacek@redhat.com>
30543 PR rtl-optimization/48182
30544 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30547 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30550 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30551 nuses, make sure we have a label.
30553 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30556 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30557 (rs6000_emit_swdiv_low_precision): Remove.
30558 (rs6000_emit_swdiv): Rewrite to handle between one and four
30559 iterations of Newton-Raphson generally; modify required number of
30560 iterations for some cases.
30561 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30563 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
30565 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30566 set-but-unused variable.
30568 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30569 basic blocks of released function bodies garbage-collectable.
30571 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30572 (struct rtl_opt_pass): Add TODO_df_finish.
30574 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30576 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30578 * config/arm/constraints.md (q): New constraint.
30579 * config/arm/ldrdstrd.md: New file.
30580 * config/arm/arm.md (ldrdstrd.md) New include.
30581 (arm_movdi): Use "q" instead of "r" constraint
30582 for double-word memory access.
30583 (movdf_soft_insn): Likewise.
30584 * config/arm/vfp.md (movdi_vfp): Likewise.
30585 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30586 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30587 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30588 (mem_ok_for_ldrd_strd): Likewise.
30589 (output_move_double): Update assertion.
30591 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30593 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30595 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30597 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30598 define_insn_and_split.
30599 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30601 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30603 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30604 define_insn_and_split.
30605 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30606 (shiftsi3_compare): New pattern.
30607 (rrx): New pattern.
30608 * config/arm/unspecs.md (UNSPEC_RRX): New.
30610 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30612 * config/arm/arm.md (negdi_extendsidi): New pattern.
30613 (negdi_zero_extendsidi): Likewise.
30615 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30617 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30618 define_insn_and_split.
30619 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30620 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30622 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30624 * config/arm/arm.md (arm_subdi3): Convert define_insn into
30625 define_insn_and_split.
30626 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30627 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30629 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30631 * config/arm/arm.md (subsi3_carryin): New pattern.
30632 (subsi3_carryin_const): Likewise.
30633 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30634 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30636 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30638 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30640 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
30642 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30643 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30645 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30647 * config/arm/arm.c (arm_expand_builtin): Change fcode
30648 type to unsigned int.
30650 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30652 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30654 2013-04-04 Ian Lance Taylor <iant@google.com>
30656 * doc/standards.texi (Standards): The Go frontend supports the Go 1
30659 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
30661 PR middle-end/56729
30662 * df-scan.c (df_insn_delete): Disable failing assert.
30664 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30666 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30667 New function prototype.
30668 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30669 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30670 (arm_builtin_vectorized_function): New function.
30672 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30674 * config/arm/arm_neon_builtins.def: New file.
30675 * config/arm/arm.c (neon_builtin_data): Move contents to
30676 arm_neon_builtins.def.
30677 (enum arm_builtins): Include neon builtin definitions.
30678 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30679 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30681 2013-04-04 Marek Polacek <polacek@redhat.com>
30683 PR tree-optimization/48186
30684 * predict.c (maybe_hot_frequency_p): Return false if
30685 HOT_BB_FREQUENCY_FRACTION is 0.
30686 (cgraph_maybe_hot_edge_p): Likewise.
30688 2013-04-04 Richard Biener <rguenther@suse.de>
30690 PR tree-optimization/56826
30691 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30694 2013-04-04 Richard Biener <rguenther@suse.de>
30696 PR tree-optimization/56213
30697 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30698 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30700 2013-04-04 Richard Biener <rguenther@suse.de>
30702 PR tree-optimization/56837
30703 * tree-loop-distribution.c (classify_partition): For non-zero
30704 values require that the value has the same precision as its
30705 mode to be useful as memset value.
30707 2013-04-03 Nick Clifton <nickc@redhat.com>
30709 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30710 (fmssf4): Use fmsf.s on E3V5 architectures.
30711 (fnmasf4): Use fnmaf.s on E3V5 architectures.
30712 (fnmssf4): Use fnmsf.s on E3V5 architectures.
30714 2013-04-03 Jeff Law <law@redhat.com>
30716 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30717 (lra-eliminations.o): Likewise.
30719 2013-04-03 Teresa Johnson <tejohnson@google.com>
30721 * gcov-io.c (compute_working_sets): Moved most of body of old
30722 compute_working_sets here from profile.c.
30723 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30724 (gcov_working_set_t): Moved typedef here from basic-block.h
30725 (compute_working_set): Declare.
30726 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30727 (get_working_sets): Renamed from compute_working_set,
30728 replace most of body with call to new compute_working_sets.
30729 (get_exec_counts): Replace call to compute_working_sets
30730 to get_working_sets.
30731 * profile.h (get_working_sets): Renamed from compute_working_set.
30732 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30733 to get_working_sets.
30734 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30735 * gcov-dump.c (dump_working_sets): New function.
30737 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
30739 * hwint.c (sext_hwi, zext_hwi): New functions.
30740 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30741 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30742 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30743 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30744 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30745 (sext_hwi, zext_hwi): New functions.
30747 2013-04-03 Jeff Law <law@redhat.com>
30749 PR tree-optimization/56799
30750 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30751 back test for widening conversion erroneously dropped in prior change.
30753 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30756 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30757 instead of next_real_insn.
30759 2013-04-03 Marek Polacek <polacek@redhat.com>
30762 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30764 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30767 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30769 (thumb1_output_casesi): Likewise.
30770 (thumb2_output_casesi): Likewise.
30772 2013-04-03 Richard Biener <rguenther@suse.de>
30774 PR tree-optimization/56817
30775 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30777 (tree_unroll_loops_completely_1): ... new function to manually
30778 walk the loop tree, properly defering outer loops of unrolled
30779 loops to later iterations.
30781 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30783 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30784 (vectorizable_load): Likewise.
30785 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30786 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30788 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30790 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30793 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30795 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30797 2013-04-03 Bin Cheng <bin.cheng@arm.com>
30799 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30801 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30803 PR tree-optimization/56790
30804 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30807 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
30809 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30811 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30812 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30815 2013-04-03 Jakub Jelinek <jakub@redhat.com>
30818 * tree.h (force_folding_builtin_constant_p): New decl.
30819 * builtins.c (force_folding_builtin_constant_p): New variable.
30820 (fold_builtin_constant_p): Fold immediately also if
30821 force_folding_builtin_constant_p.
30823 2013-04-03 Richard Biener <rguenther@suse.de>
30825 PR tree-optimization/56812
30826 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30827 DRs of the same interleaving chain are independent.
30829 2013-04-02 Jason Merrill <jason@redhat.com>
30831 * gdbinit.in (pbb): Use debug fn.
30833 2013-04-02 Lawrence Crowl <crowl@google.com>
30835 * sese.h (struct ivtype_map_elt_s): Remove unused.
30836 (extern debug_ivtype_map): Remove unused.
30837 (extern eq_ivtype_map_elts): Remove unused.
30838 * sese.c (debug_ivtype_map): Removed unused.
30839 (debug_ivtype_map_1): Removed unused.
30840 (debug_ivtype_elt): Remove unused.
30841 (eq_ivtype_map_elts): Remove unused.
30843 2013-04-02 Kai Tietz <ktietz@redhat.com>
30846 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30847 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30848 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30850 (legitimize_pe_coff_symbol): Likewise.
30851 (is_imported_p): New helper-function.
30852 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30853 for Windows x64 targets.
30854 (ix86_expand_prologue): Optimize for pe-coff targets.
30855 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30856 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30857 medium/large code-model.
30858 (legitimize_pic_address): Likewise.
30859 (legitimize_tls_address): Likewise.
30860 (ix86_expand_call): Likewise.
30861 (x86_output_mi_thunk): Likewise.
30862 (get_dllimport_decl): Add new beimport argument.
30863 (construct_plt_address): Don't assert for x64 pe-coff targets.
30864 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30866 (SYMBOL_FLAG_STUBVAR): New macro.
30867 (SYMBOL_REF_STUBVAR_P): Likewise.
30868 * config/i386/winnt.c (stub_list): New structure.
30869 (stub_head): New local variable.
30870 (i386_pe_record_stub): New function.
30871 (i386_pe_file_end): Emit refptr-stubs.
30873 2013-04-02 Jakub Jelinek <jakub@redhat.com>
30875 PR rtl-optimization/56745
30876 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30877 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30880 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30881 and both of them are MEM_REFs, just compare first argument for
30882 equality and attempt to deal even with differing offsets.
30885 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30886 of gimple_clobber_p to be MEM_REF.
30887 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30888 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
30889 after gimplification.
30890 * asan.c (get_mem_ref_of_assignment): Don't instrument
30891 gimple_clobber_p stmts.
30892 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30893 gimple_clobber_p stmt if they have MEM_REF lhs and
30894 are dead because of another gimple_clobber_p stmt.
30895 * tree-ssa-live.c (clear_unused_block_pointer): Treat
30896 gimple_clobber_p stmts like debug stmts.
30897 (remove_unused_locals): Remove clobbers with MEM_REF lhs
30898 that refer to unused VAR_DECLs or uninitialized values.
30899 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30900 gimple_clobber_p stmts if they refer to removed parameters.
30901 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30904 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
30906 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30907 using SWI48 mode attribute.
30909 2013-04-02 Wei Mi <wmi@google.com>
30911 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30912 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30913 *<rotate_insn><mode>3_mask in i386.md.
30915 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
30917 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30919 2013-04-02 Richard Biener <rguenther@suse.de>
30921 PR tree-optimization/56778
30922 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30923 Runtime alias tests are not supported for gather loads.
30924 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30925 stmts referenced from SSA operands before updating SSA form.
30927 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
30928 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30930 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30931 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30932 * config/arm/cortex-a53.md: New file.
30933 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30934 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30935 * config/arm/arm.c (arm_issue_rate): Likewise.
30936 * config/arm/arm-tune.md: Regenerate
30937 * config/arm/arm-tables.opt: Regenerate.
30938 * config/arm/arm-cores.def: Add cortex-a53.
30940 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
30942 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30945 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30947 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30948 scalar load/store operations using B/H registers.
30949 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30951 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
30953 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30955 * config/aarch64/aarch64.c
30956 (aarch64_simd_scalar_immediate_valid_for_move): New.
30957 * config/aarch64/aarch64-protos.h
30958 (aarch64_simd_scalar_immediate_valid_for_move): New.
30959 * config/aarch64/constraints.md (Dh, Dq): New.
30960 * config/aarch64/iterators.md (hq): New.
30962 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
30964 * reorg.c (get_branch_condition): Deal with conditional returns.
30965 (fill_simple_delay_slots): Remove dead code dealing with jumps.
30967 2013-04-01 Wei Mi <wmi@google.com>
30969 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30970 Truncate operand 2 using %b asm operand modifier.
30971 (*<shift_insn><mode>3_mask): Ditto.
30972 (*<rotate_insn><mode>3_mask): Ditto.
30974 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
30976 PR middle-end/56798
30977 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30979 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
30981 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30983 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30985 2013-03-30 Lawrence Crowl <crowl@google.com>
30987 * dse.c (clear_alias_sets): Remove never set.
30988 (disqualified_clear_alias_sets): Remove never set.
30989 (clear_alias_mode_pool): Remove never set.
30990 (dse_step0): Remove condition that is never true.
30991 (canon_address): Remove condition that is never true.
30992 (dse_step7): Remove condition that is never true.
30993 (rest_of_handle_dse): Remove condition that is never true.
30994 (rest_of_handle_dse::did_global): Remove never read from above.
30995 (dse_step2_spill): Remove never called from above.
30996 (dse_step5_spill): Remove never called from above.
30998 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
31000 * doc/md.texi (Standard Names) <casesi>: Update documentation for
31001 JUMP_TABLE_DATA changes.
31002 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
31003 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
31004 (Insns) <jump_table_data>: New entry.
31005 * doc/tm.texi: Regenerate.
31007 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
31009 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
31010 for table jump at the end of a basic block using tablejump_p.
31011 * targhooks.c (default_invalid_within_doloop): Likewise.
31012 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
31013 target hook implementation that is identical to the default hook.
31014 (rs6000_invalid_within_doloop): Remove.
31016 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
31017 unused variable from tablejump_p call.
31019 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
31020 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
31021 (INSN_DELETED_P): Likewise.
31022 (emit_jump_table_data): New prototype.
31023 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
31024 after 4th as unused.
31025 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
31026 * sched-vis.c (print_insn): Likewise.
31027 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
31028 insn for compatibility with back ends that use next_active_insn to
31029 identify jump table data.
31030 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
31031 (remove_insn): Likewise.
31032 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
31034 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
31035 (emit_jump_table_data): New function.
31037 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
31038 basic block, a JUMP_TABLE_DATA never is.
31039 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
31040 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
31041 off from code handling real insns.
31042 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
31043 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
31044 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
31045 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
31046 is not a NONDEBUG_INSN_P.
31047 * ira-costs.c (scan_one_insn): Likewise.
31048 * jump.c (mark_all_labels): Likewise.
31049 (mark_jump_label_1): Likewise.
31050 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31051 * lra.c (get_insn_freq): Expect all insns reaching here to be in
31053 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
31054 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
31055 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
31056 JUMP_TABLE_DATA_P insns.
31057 (calculate_elim_costs_all_insns): Likewise.
31058 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
31059 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
31060 (delete_output_reload): Code style fixups.
31061 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
31062 insn flags on this non-insn.
31063 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
31064 as scheduling barriers, for pre-change compatibility.
31065 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
31066 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
31068 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
31069 redundant JUMP_TABLE_DATA_P test.
31070 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
31071 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31072 (frv_for_each_packet): Likewise.
31073 * config/i386/i386.c (min_insn_size): Likewise.
31074 (ix86_avoid_jump_mispredicts): Likewise.
31075 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31076 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
31077 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31078 (mips16_insn_length): Robustify.
31079 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
31080 (mips16_split_long_branches): Likewise.
31081 * config/pa/pa.c (pa_combine_instructions): Likewise.
31082 * config/rs6000/rs6000.c (get_next_active_insn): Treat
31083 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
31084 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
31085 as contributing to pool range lengths.
31086 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
31087 Remove redundant JUMP_TABLE_DATA_P test.
31088 (sh_loop_align): Likewise.
31089 (split_branches): Likewise.
31090 (sh_insn_length_adjustment): Likewise.
31091 * config/spu/spu.c (get_branch_target): Likewise.
31093 2013-03-29 Jan Hubicka <jh@suse.cz>
31095 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
31096 gcov streaming; stream hot bb threshold to ltrans.
31097 * predict.c (get_hot_bb_threshold): Break out from ....
31098 (maybe_hot_count_p): ... here.
31099 (set_hot_bb_threshold): New function.
31100 * lto-section-in.c (lto_section_name): Add profile.
31101 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
31102 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
31103 and data-streamer.h
31104 (histogram_entry): New structure.
31105 (histogram, histogram_pool): New global vars.
31106 (histogram_hash): New structure.
31107 (histogram_hash::hash): New method.
31108 (histogram_hash::equal): Likewise.
31109 (account_time_size): New function.
31110 (cmp_counts): New function.
31111 (dump_histogram): New function.
31112 (ipa_profile_generate_summary): New function.
31113 (ipa_profile_write_summary): New function.
31114 (ipa_profile_read_summary): New function.
31115 (ipa_profile): Decide on threshold.
31116 (pass_ipa_profile): Add ipa_profile_write_summary and
31117 ipa_profile_read_summary.
31118 * Makefile.in (ipa.o): Update dependencies.
31119 * lto-streamer.h (LTO_section_ipa_profile): New section.
31121 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
31123 * tree.h (VAR_P): New.
31125 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
31128 * doc/invoke.texi ([-fwhole-program]): Fix typo.
31130 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
31132 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
31133 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31134 (control_flow_insn_p): Likewise.
31135 * cfgrtl.c (duplicate_insn_chain): Likewise.
31136 * final.c (get_attr_length_1): Likewise.
31137 (shorten_branches): Likewise.
31138 (final_scan_insn): Likewise.
31139 * function.c (instantiate_virtual_regs): Likewise.
31140 * gcse.c (insert_insn_end_basic_block): Likewise.
31141 * ira-costs.c (scan_one_insn): Likewise.
31142 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
31143 * lra.c (check_rtl): Likewise.
31144 * reload1.c (elimination_costs_in_insn): Likewise.
31145 * reorg.c (follow_jumps): Likewise.
31147 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
31148 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
31149 (thumb_far_jump_used_p): Likewise.
31150 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
31151 (workaround_speculation): Likewise.
31152 (add_sched_insns_for_speculation): Likewise.
31153 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
31154 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
31155 (frv_for_each_packet): Likewise.
31156 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
31157 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
31158 (final_emit_insn_group_barriers): Likewise.
31159 * config/m32r/m32r.c (m32r_is_insn): Likewise.
31160 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
31161 (mips16_insn_length): Likewise.
31162 * config/pa/pa.c (pa_reorg): Likewise.
31163 (pa_combine_instructions): Likewise.
31164 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
31165 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
31166 (sh_reorg): Likewise.
31167 (split_branches): Likewise.
31168 * config/spu/spu.c (get_branch_target): Likewise.
31170 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
31173 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
31175 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
31176 Fix declaration name.
31178 2013-03-28 Lawrence Crowl <crowl@google.com>
31180 * graphds.h (struct graph.indicies): Remove unused.
31181 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
31182 (SCOP_ORIGINAL_PDDRS): Remove unused.
31183 * sese.h (extern insert_loop_close_phis): Removed unused.
31184 (extern insert_guard_phis): Removed unused.
31185 (extern ivtype_map_elt_info): Removed unused.
31186 (new_ivtype_map_elt): Removed unused.
31187 * sese.c (ivtype_map_elt_info): Removed unused.
31189 2013-03-28 Lawrence Crowl <crowl@google.com>
31191 * Makefile.in: Add several missing include dependences.
31193 (test-dump.o): New. This object is not added to any executable,
31194 but is present for ad-hoc testing.
31196 (debug (const bitmap_head_def &)): New.
31197 (debug (const bitmap_head_def *)): New.
31199 (extern debug (const bitmap_head_def &)): New.
31200 (extern debug (const bitmap_head_def *)): New.
31202 (debug (edge_def &)): New.
31203 (debug (edge_def *)): New.
31205 (debug (basic_block_def &)): New.
31206 (debug (basic_block_def *)): New.
31208 (dump_node (const_tree, int, FILE *)): Correct source file.
31210 (debug (die_struct &)): New.
31211 (debug (die_struct *)): New.
31213 (extern debug (die_struct &)): New.
31214 (extern debug (die_struct *)): New.
31215 * gimple-pretty-print.c
31216 (debug (gimple_statement_d &)): New.
31217 (debug (gimple_statement_d *)): New.
31218 * gimple-pretty-print.h
31219 (extern debug (gimple_statement_d &)): New.
31220 (extern debug (gimple_statement_d *)): New.
31222 (debug (ira_allocno_copy &)): New.
31223 (debug (ira_allocno_copy *)): New.
31224 (debug (ira_allocno &)): New.
31225 (debug (ira_allocno *)): New.
31227 (extern debug (ira_allocno_copy &)): New.
31228 (extern debug (ira_allocno_copy *)): New.
31229 (extern debug (ira_allocno &)): New.
31230 (extern debug (ira_allocno *)): New.
31232 (debug (live_range &)): New.
31233 (debug (live_range *)): New.
31235 (debug (lra_live_range &)): New.
31236 (debug (lra_live_range *)): New.
31238 (debug (lra_live_range &)): New.
31239 (debug (lra_live_range *)): New.
31241 (debug (omega_pb_d &)): New.
31242 (debug (omega_pb_d *)): New.
31244 (extern debug (omega_pb_d &)): New.
31245 (extern debug (omega_pb_d *)): New.
31247 (debug (const rtx_def &)): New.
31248 (debug (const rtx_def *)): New.
31250 (debug_tree (tree): Move within file.
31251 (debug_raw (const tree_node &)): New.
31252 (debug_raw (const tree_node *)): New.
31253 (dump_tree_via_hooks (const tree_node *, int)): New.
31254 (debug (const tree_node &)): New.
31255 (debug (const tree_node *)): New.
31256 (debug_verbose (const tree_node &)): New.
31257 (debug_verbose (const tree_node *)): New.
31258 (debug_head (const tree_node &)): New.
31259 (debug_head (const tree_node *)): New.
31260 (debug_body (const tree_node &)): New.
31261 (debug_body (const tree_node *)): New.
31262 (debug_vec_tree (tree): Move and reimplement in terms of dump.
31263 (debug (vec<tree, va_gc> &)): New.
31264 (debug (vec<tree, va_gc> *)): New.
31266 (extern debug (const rtx_def &)): New.
31267 (extern debug (const rtx_def *)): New.
31269 (debug_raw (simple_bitmap_def &)): New.
31270 (debug_raw (simple_bitmap_def *)): New.
31271 (debug (simple_bitmap_def &)): New.
31272 (debug (simple_bitmap_def *)): New.
31274 (extern debug (simple_bitmap_def &)): New.
31275 (extern debug (simple_bitmap_def *)): New.
31276 (extern debug_raw (simple_bitmap_def &)): New.
31277 (extern debug_raw (simple_bitmap_def *)): New.
31279 (debug (vinsn_def &)): New.
31280 (debug (vinsn_def *)): New.
31281 (debug_verbose (vinsn_def &)): New.
31282 (debug_verbose (vinsn_def *)): New.
31283 (debug (expr_def &)): New.
31284 (debug (expr_def *)): New.
31285 (debug_verbose (expr_def &)): New.
31286 (debug_verbose (expr_def *)): New.
31287 (debug (vec<rtx> &)): New.
31288 (debug (vec<rtx> *)): New.
31290 (extern debug (vinsn_def &)): New.
31291 (extern debug (vinsn_def *)): New.
31292 (extern debug_verbose (vinsn_def &)): New.
31293 (extern debug_verbose (vinsn_def *)): New.
31294 (extern debug (expr_def &)): New.
31295 (extern debug (expr_def *)): New.
31296 (extern debug_verbose (expr_def &)): New.
31297 (extern debug_verbose (expr_def *)): New.
31298 (extern debug (vec<rtx> &)): New.
31299 (extern debug (vec<rtx> *)): New.
31301 (_list_iter_cond_expr): Make inline instead of static.
31303 (debug (sreal &)): New.
31304 (debug (sreal *)): New.
31306 (extern debug (sreal &)): New.
31307 (extern debug (sreal *)): New.
31309 (extern debug_raw (const tree_node &)): New.
31310 (extern debug_raw (const tree_node *)): New.
31311 (extern debug (const tree_node &)): New.
31312 (extern debug (const tree_node *)): New.
31313 (extern debug_verbose (const tree_node &)): New.
31314 (extern debug_verbose (const tree_node *)): New.
31315 (extern debug_head (const tree_node &)): New.
31316 (extern debug_head (const tree_node *)): New.
31317 (extern debug_body (const tree_node &)): New.
31318 (extern debug_body (const tree_node *)): New.
31319 (extern debug (vec<tree, va_gc> &)): New.
31320 (extern debug (vec<tree, va_gc> *)): New.
31322 (debug (struct loop &)): New.
31323 (debug (struct loop *)): New.
31324 (debug_verbose (struct loop &)): New.
31325 (debug_verbose (struct loop *)): New.
31326 * tree-dump.c: Add header dependence.
31328 (extern debug (struct loop &)): New.
31329 (extern debug (struct loop *)): New.
31330 (extern debug_verbose (struct loop &)): New.
31331 (extern debug_verbose (struct loop *)): New.
31333 (debug (data_reference &)): New.
31334 (debug (data_reference *)): New.
31335 (debug (vec<data_reference_p> &)): New.
31336 (debug (vec<data_reference_p> *)): New.
31337 (debug (vec<ddr_p> &)): New.
31338 (debug (vec<ddr_p> *)): New.
31340 (extern debug (data_reference &)): New.
31341 (extern debug (data_reference *)): New.
31342 (extern debug (vec<data_reference_p> &)): New.
31343 (extern debug (vec<data_reference_p> *)): New.
31344 (extern debug (vec<ddr_p> &)): New.
31345 (extern debug (vec<ddr_p> *)): New.
31347 (debug (pt_solution &)): New.
31348 (debug (pt_solution *)): New.
31350 (extern debug (pt_solution &)): New.
31351 (extern debug (pt_solution *)): New.
31353 (debug (_var_map &)): New.
31354 (debug (_var_map *)): New.
31355 (debug (tree_live_info_d &)): New.
31356 (debug (tree_live_info_d *)): New.
31358 (extern debug (_var_map &)): New.
31359 (extern debug (_var_map *)): New.
31360 (extern debug (tree_live_info_d &)): New.
31361 (extern debug (tree_live_info_d *)): New.
31363 2013-03-28 Jan Hubicka <jh@suse.cz>
31365 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31367 2013-03-28 Ian Bolton <ian.bolton@arm.com>
31369 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31370 record only when desired or required.
31372 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
31374 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31375 *vec_extractv2di_1_rex64. Use x64 isa attribute.
31377 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31379 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31380 (*andsi3_compare0_uxtw): New pattern.
31381 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31382 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31384 2013-03-28 Jan Hubicka <jh@suse.cz>
31386 * data-streamer-in.c (streamer_read_gcov_count): New function.
31387 * gimple-streamer-out.c: Include value-prof.h.
31388 (output_gimple_stmt): Output histogram.
31389 (output_bb): Use streamer_write_gcov_count.
31390 * value-prof.c: Include data-streamer.h
31391 (dump_histogram_value): Add HIST_TYPE_MAX.
31392 (stream_out_histogram_value): New function.
31393 (stream_in_histogram_value): New function.
31394 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31395 (stream_out_histogram_value, stream_in_histogram_value): Declare.
31396 * data-streamer-out.c (streamer_write_gcov_count): New function.
31397 (streamer_write_gcov_count_stream): New function.
31398 * lto-cgraph.c (lto_output_edge): Update counter streaming.
31399 (lto_output_node): Likewise.
31400 (input_node, input_edge): Likewise.
31401 * lto-streamer-out.c (output_cfg): Update streaming.
31402 * lto-streamer-in.c (input_cfg): Likewise.
31403 * data-streamer.h (streamer_write_gcov_count,
31404 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31405 * gimple-streamer-in.c: Include value-prof.h
31406 (input_gimple_stmt): Input histograms.
31407 (input_bb): Update profile streaming.
31409 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31411 * genmodes.c (emit_max_int): New function.
31412 (emit_insn_modes_h): Added call to emit_max_function.
31413 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31415 * machmode.def: Fixed comment.
31417 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
31419 * combine.c (try_combine): Removed useless assert.
31420 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31422 2013-03-28 Marek Polacek <polacek@redhat.com>
31423 Richard Biener <rguenther@suse.de>
31425 PR tree-optimization/56695
31426 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31427 build signed result of a vector comparison.
31428 * tree-cfg.c (verify_gimple_comparison): Check that a result
31429 of a vector comparison has signed type.
31431 2013-03-28 Richard Biener <rguenther@suse.de>
31433 PR tree-optimization/37021
31434 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31435 do not restrict gaps between groups.
31436 * tree-vect-stmts.c (vectorizable_load): Properly account for
31437 a gap between groups.
31439 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
31441 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31442 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31445 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
31447 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31448 * doc/extend.texi (Named Address Spaces): Ditto.
31449 (Variable Attributes): Ditto.
31451 2013-03-27 Kai Tietz <ktietz@redhat.com>
31453 * config.build: Add support for cygwin x64 target.
31454 * config.gcc: Likewise.
31455 * config.host: Likewise.
31456 * configure.ac: Likewise
31457 * configure: Regenerated.
31459 2013-03-27 Kai Tietz <ktietz@redhat.com>
31461 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31462 * config/i386/t-cygwin-w64: New file.
31463 * config/i386/cygwin-w64.h: New file.
31464 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31465 and add support for x64-cygwin target.
31466 (CPP_SPEC): Likewise.
31467 (CXX_WRAP_SPEC_LIST): Undefine before define.
31468 (LIBGCJ_SONAME): Use 15 as version.
31470 2013-03-27 Richard Biener <rguenther@suse.de>
31472 PR tree-optimization/56716
31473 * tree-ssa-structalias.c (perform_var_substitution): Adjust
31474 dumping for ref nodes.
31476 2013-03-27 Martin Jambor <mjambor@suse.cz>
31478 PR tree-optimization/55334
31479 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31480 restricted pointers to arrays.
31482 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
31484 * Makefile.in (.SUFFIXES): Add .cc.
31485 (.c.o): Apply same recipe for implicit rule .cc.o.
31487 2013-03-27 Richard Biener <rguenther@suse.de>
31489 PR tree-optimization/37021
31490 * tree-vect-data-refs.c (vect_check_strided_load): Allow
31491 REALPART/IMAGPART_EXPRs around the supported refs.
31492 * tree-ssa-structalias.c (find_func_aliases): Assume that
31493 floating-point values are not used to transfer pointers.
31495 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
31497 * target.def (TARGET_HAS_IFUNC_P): New target hook.
31498 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31499 * doc/tm.texi: Regenerate.
31500 * targhooks.h (default_has_ifunc_p): New.
31501 * targhooks.c (default_has_ifunc_p): Ditto.
31502 * config/linux-protos.h: New file.
31503 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31504 hook for linux which disables support of indirect functions in android.
31505 * config/linux-android.c: New file.
31506 * config/t-linux-android.c: Ditto.
31507 * config.gcc: Added new object file linux-android.o.
31508 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31509 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31510 * varasm.c (do_assemble_alias): Likewise.
31511 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31512 doesn't support indirect functions.
31513 * configure: Regenerate.
31515 2013-03-27 Bin Cheng <bin.cheng@arm.com>
31518 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31519 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31522 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31524 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31526 2013-03-27 Terry Guo <terry.guo@arm.com>
31528 * config/arm/arm-cores.def: Added core cortex-r7.
31529 * config/arm/arm-tune.md: Regenerated.
31530 * config/arm/arm-tables.opt: Regenerated.
31531 * doc/invoke.texi: Added entry for core cortex-r7.
31533 2013-03-27 Walter Lee <walt@tilera.com>
31535 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31536 double-decrement of next_scratch_regno.
31538 2013-03-27 Walter Lee <walt@tilera.com>
31540 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31542 (insn_v1mulus): Ditto.
31543 (insn_v2muls): Ditto.
31545 2013-03-27 Walter Lee <walt@tilera.com>
31547 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31548 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31550 2013-03-27 Walter Lee <walt@tilera.com>
31552 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31553 (*sibcall_value): Ditto.
31555 2013-03-27 Walter Lee <walt@tilera.com>
31557 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31558 (insn_mnz_v8qi): ... this ...
31559 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
31561 (insn_v<n>mnz): Replaced by ...
31562 (insn_v1mnz): ... this ...
31563 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
31565 (insn_mz_<mode>): Replaced by ...
31566 (insn_mz_v8qi): ... this ...
31567 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
31569 (insn_v<n>mz): Replaced by ...
31570 (insn_v1mz): ... this ...
31571 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
31574 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
31576 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31578 2013-03-26 Roland McGrath <mcgrathr@google.com>
31580 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31581 than fprintf with a non-constant, non-format string.
31583 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31585 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31586 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
31587 operand 0 predicate.
31588 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31589 attribute. Use general_x64nomem_operand as operand 1 predicate.
31590 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31591 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31592 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31593 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
31594 (mov<mode>_insv_1): Remove expander. Merge insn with
31595 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31596 Use general_x64nomem_operand as operand 1 predicate.
31597 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31598 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31599 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31600 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31601 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
31602 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31603 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
31604 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31605 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
31606 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31607 (general_x64nomem_operand): Ditto.
31609 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
31611 * config/rtems.opt: Add -pthread option.
31613 2013-03-26 Richard Biener <rguenther@suse.de>
31615 * alias.c (find_base_term): Avoid redundant and not used recursion.
31616 (base_alias_check): Get the initial base term from the caller.
31617 (true_dependence_1): Compute and pass base terms to base_alias_check.
31618 (write_dependence_p): Likewise.
31619 (may_alias_p): Likewise.
31621 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
31623 * config/aarch64/aarch64.c (aarch64_classify_address): Support
31624 PC-relative load in SI modes and above only.
31626 2013-03-26 Xinyu Qi <xyqi@marvell.com>
31628 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31629 * config/arm/iwmmxt.md (WCGR0): Update.
31630 (WCGR1, WCGR2, WCGR3): Likewise.
31632 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
31634 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31635 Use x64 and nox64 isa attributes.
31637 2013-03-26 Richard Biener <rguenther@suse.de>
31639 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31640 alignment computations and rely on get_object_alignment_1
31641 for the !TYPE_P case.
31642 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31644 2013-03-26 Walter Lee <walt@tilera.com>
31646 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31647 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31649 2013-03-25 Jeff Law <law@redhat.com>
31651 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31652 check for INTEGRAL_TYPE_P that was missing due to checking in
31653 wrong version of prior patch.
31655 2013-03-25 Walter Lee <walt@tilera.com>
31657 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31658 TILEGX_INSN_SHUFFLEBYTES1.
31659 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31661 (tilegx_builtins): Ditto.
31662 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31664 2013-03-25 Walter Lee <walt@tilera.com>
31666 * config/tilegx/tilegx.md (floatsisf2): New pattern.
31667 (floatunssisf2): New pattern.
31668 (floatsidf2): New pattern.
31669 (floatunssidf2): New pattern.
31671 2013-03-25 Walter Lee <walt@tilera.com>
31673 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31674 tests for constraint J, K, N, P.
31676 2013-03-25 Walter Lee <walt@tilera.com>
31678 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31679 Use indirect/pcrel encoding.
31680 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31683 2013-03-25 Steve Ellcey <sellcey@mips.com>
31685 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31686 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31687 * config/mips/mips.c (mips_option_override): Set IMADD default.
31688 * config/mips/mips.h (PTF_AVOID_IMADD): New.
31689 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31690 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31691 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31692 * doc/invoke.texi (-mimadd/-mno-imadd): New.
31694 2013-03-25 Jeff Law <law@redhat.com>
31696 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31697 slightly to avoid creating and folding useless trees. Simplify
31698 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31700 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
31702 * config/i386/i386.md (*zero_extendsidi2): Merge with
31703 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
31704 * config/i386/predicates.md (x86_64_zext_operand): Rename from
31705 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
31706 targets. Clarify comment.
31708 2013-03-25 Martin Jambor <mjambor@suse.cz>
31710 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31711 pass-through jump functions differently.
31712 (ipa_read_jump_function): Likewise. Also use setter functions to set
31715 2013-03-25 Martin Jambor <mjambor@suse.cz>
31717 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31718 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31720 (ipa_get_indirect_edge_target): New function.
31721 (devirtualization_time_bonus): New parameter known_aggs, pass it to
31722 ipa_get_indirect_edge_target. Update all callers.
31723 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
31724 ipa_get_indirect_edge_target_1 instead of calling
31725 ipa_get_indirect_edge_target.
31726 (create_specialized_node): Pass aggvlas to
31727 ipcp_discover_new_direct_edges.
31729 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31731 * config/arm/arm.md (f_sels, f_seld): New types.
31732 (*cmov<mode>): New pattern.
31733 * config/arm/predicates.md (arm_vsel_comparison_operator): New
31736 2013-03-25 Kai Tietz <ktietz@redhat.com>
31738 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31739 POSIX-printf for mingw-hosted builds.
31741 2013-03-25 Richard Biener <rguenther@suse.de>
31743 PR middle-end/56694
31744 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31745 must-not-throw stmt location.
31747 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31749 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31750 Emit load-acquire versions when acq is true.
31751 (arm_emit_store_exclusive): Add rel parameter.
31752 Emit store-release versions when rel is true.
31753 (arm_split_compare_and_swap): Use acquire-release instructions
31755 of barriers when appropriate.
31756 (arm_split_atomic_op): Likewise.
31757 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31758 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31759 (VUNSPEC_SLX): Likewise.
31760 (VUNSPEC_LDA): Likewise.
31761 (VUNSPEC_STL): Likewise.
31762 * config/arm/sync.md (atomic_load<mode>): New pattern.
31763 (atomic_store<mode>): Likewise.
31764 (arm_load_acquire_exclusive<mode>): Likewise.
31765 (arm_load_acquire_exclusivesi): Likewise.
31766 (arm_load_acquire_exclusivedi): Likewise.
31767 (arm_store_release_exclusive<mode>): Likewise.
31769 2013-03-25 Catherine Moore <clm@codesourcery.com>
31771 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31772 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31773 * config/mip/predicates.md (lwsp_swsp_operand,
31774 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31775 sb16_operand, db4_operand, db7_operand, ib3_operand,
31776 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31777 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31778 andi16_operand): New predicates.
31779 * config/mips/mips.md (compression): New attribute.
31780 (enabled): New attribute.
31781 (length): Consider compression in computing length.
31782 (shift_compression): New code attribute.
31783 (*add<mode>3): New operands. Record compression.
31784 (sub<mode>3): Likewise.
31785 (one_cmpl<mode>2): Likewise.
31786 (*and<mode>3): Likewise.
31787 (*ior<mode>3): Likewise.
31788 (unnamed pattern for xor): Likewise.
31789 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31790 (*<optab><mode>3): Likewise.
31791 (*mov<mode>_internal: Likewise.
31792 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31793 (mips_unsigned_immediate_p): New.
31794 (umips_lwsp_swsp_address_p): New.
31795 (m16_based_address_p): New.
31796 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31797 (mips_unsigned_immediate_p): New prototype.
31798 (lwsp_swsp_address_p): New prototype.
31799 (m16_based_address_p): New prototype.
31800 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31801 (mips_signed_immediate_p): New function.
31802 (m16_based_address_p): New function.
31803 (lwsp_swsp_address_p): New function.
31804 (mips_print_operand_punctuation): Recognize short delay slot insns
31805 for microMIPS.add<mode>3"
31807 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31810 * config/arm/iterators.md (v_cmp_result): New mode attribute.
31811 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31813 2013-03-25 Richard Biener <rguenther@suse.de>
31815 PR tree-optimization/56689
31816 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31819 2013-03-25 Richard Biener <rguenther@suse.de>
31821 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31823 (memory_references): Likewise.
31824 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31825 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31826 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31827 (gather_mem_refs_in_loops): Fold into ...
31828 (analyze_memory_references): ... this. Move initialization
31829 to tree_ssa_lim_initialize.
31830 (fill_always_executed_in): Rename to ...
31831 (fill_always_executed_in_1): ... this.
31832 (fill_always_executed_in): Move contains_call computation to
31833 this new function from ...
31834 (tree_ssa_lim_initialize): ... here.
31835 (tree_ssa_lim): Call fill_always_executed_in.
31837 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31839 * postreload.c (reload_combine): Fix code detecting returns.
31841 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
31843 * function.c (emit_use_return_register_into_block): On cc0 targets,
31844 do not emit the sequence between cc0 setter and user.
31846 2013-03-25 Kai Tietz <ktietz@redhat.com>
31848 * config/i386/predicates.md (local_symbolic_operand): Interpret
31849 dll-imported symbols as none-local.
31851 2013-03-25 Richard Biener <rguenther@suse.de>
31853 * tree-ssa-loop-im.c (struct depend): Remove.
31854 (struct lim_aux_data): Make depends a vec of gimples.
31855 (free_lim_aux_data): Adjust.
31856 (add_dependency): Likewise.
31857 (set_level): Likewise.
31859 2013-03-25 Richard Biener <rguenther@suse.de>
31861 PR middle-end/56434
31862 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31863 the pointer returned by calls with ECF_MALLOC set.
31865 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31867 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31869 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
31871 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31872 using MMXMODE mode iterator.
31873 (*move<mode>_internal): Merge with *movv2sf_internal and
31874 *movv2sf_internal_rex64 using MMXMODE mode iterator.
31876 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31878 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31879 (record_last_mem_set_info): Likewise.
31881 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31882 of XNEWVEC followed by memset.
31883 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31885 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
31887 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31888 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31889 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31890 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31891 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31892 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31893 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31894 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31895 BARRIER_P instead of GET_CODE.
31897 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31899 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31900 inaccuracy in the probing code.
31902 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31903 (ctrapdi4): Likewise.
31905 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31907 * calls.c (expand_call): Add missing guard to code handling return
31908 of non-BLKmode structures in MSB.
31909 * function.c (expand_function_end): Likewise.
31911 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
31913 * combine.c (try_combine): Adjust comment. Do not add the set of
31914 insn #0 if the destination indirectly is set or dies in insn #2.
31915 Tidy up code to distribute a new note.
31917 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31919 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31920 also for alternatives 16 and 17.
31922 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
31924 * config/i386/sse.md (*mov<mode>_internal): Merge with
31925 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
31926 Emit insn template depending on type attribute. Use
31927 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31928 movd instead of movq mnemonic for interunit moves. Rewrite mode
31929 attribute calculation. Remove unit attribute calculation.
31930 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31931 Set prefix_data16 attribute for DImode ssemov types.
31932 Use Ym instead of y for SSE-MMX conversion alternatives.
31933 Reorder operand constraints.
31935 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
31937 * df.h (df_insn_delete): Adjust prototype.
31938 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31939 and let it decide whether mark the basic block dirty.
31940 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31941 * df-scan.c (df_insn_info_delete): New helper function, split
31942 off from df_insn_delete.
31943 (df_scan_free_bb_info): Use it.
31944 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31946 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
31947 that the insn is actually an insn and it has a non-NULL basic block.
31948 Do not mark basic block dirty if only deleting a DEBUG_INSN.
31950 2013-03-22 Richard Biener <rguenther@suse.de>
31952 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31954 (mem_ref_alloc): Do not allocate them.
31955 (refs_independent_p): Do not query or maintain a cache.
31957 2013-03-22 Richard Biener <rguenther@suse.de>
31959 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31960 (gather_mem_refs_in_loops): Do not compute it.
31961 (analyze_memory_references): Do not allocate it.
31962 (tree_ssa_lim_finalize): Do not free it.
31963 (for_all_locs_in_loop): Do not query all_refs_in_loop.
31965 2013-03-22 Richard Biener <rguenther@suse.de>
31967 * is-a.h (as_a): Use gcc_checking_assert.
31969 2013-03-22 Ian Bolton <ian.bolton@arm.com>
31971 * config/aarch64/aarch64.c (aarch64_print_operand): New
31972 format specifier for printing a constant in hex.
31973 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31974 format specifier for printing second operand.
31976 2013-03-22 Richard Biener <rguenther@suse.de>
31978 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31980 (gather_mem_refs_in_loops): Perform store accumulation here.
31981 (create_vop_ref_mapping_loop): Remove.
31982 (create_vop_ref_mapping): Likewise.
31983 (analyze_memory_references): Initialize refs_stored_in_loop.
31984 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31985 (record_indep_loop): Remove.
31986 (record_dep_loop): New function.
31987 (ref_indep_loop_p_1): Adjust to only walk over references
31988 in the loop, not its subloops.
31989 (ref_indep_loop_p): Rename to ...
31990 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31991 maintaining a more fine-grained cache.
31992 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31993 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31995 2013-03-22 Richard Biener <rguenther@suse.de>
31997 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31998 (struct mem_ref): Make accesses_in_loop a vec of a vec of
31999 aggregate mem_ref_loc.
32000 (free_mem_ref_locs): Inline into ...
32001 (memref_free): ... this and adjust.
32002 (mem_ref_alloc): Adjust.
32003 (mem_ref_locs_alloc): Remove.
32004 (record_mem_ref_loc): Adjust.
32005 (get_all_locs_in_loop): Rewrite into ...
32006 (for_all_locs_in_loop): ... this iterator.
32007 (rewrite_mem_ref_loc): New functor.
32008 (rewrite_mem_refs): Use for_all_locs_in_loop.
32009 (sm_set_flag_if_changed): New functor.
32010 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
32011 (ref_always_accessed): New functor.
32012 (ref_always_accessed_p): Use for_all_locs_in_loop.
32014 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32016 * tree-pass.h (PROP_gimple_lvec): New.
32017 * passes.c (dump_properties): Handle PROP_gimple_lvec.
32018 (init_optimization_passes): Move pass_lower_vector.
32019 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
32021 (pass_lower_vector): Provide PROP_gimple_lvec.
32022 (pass_lower_vector_ssa): Likewise.
32023 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
32025 2013-03-21 Mark Wielaard <mjw@redhat.com>
32027 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
32029 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32031 * config/i386/i386.md (*movdi_internal): Disparage slightly
32032 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
32033 conversion alternatives.
32035 2013-03-21 Jakub Jelinek <jakub@redhat.com>
32037 PR middle-end/48087
32038 * diagnostic.def (DK_WERROR): New kind.
32039 * diagnostic.h (werrorcount): Define.
32040 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
32041 promoted to DK_ERROR, increment DK_WERROR counter instead of
32043 * toplev.c (toplev_main): Call print_ignored_options even if
32044 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
32045 even if just werrorcount is non-zero.
32048 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
32050 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
32051 (string_cst_pool_decl): New function.
32052 (optimize_one_addr_into_implicit_ptr): New function.
32053 (resolve_addr_in_expr): Optimize DWARF location expression
32054 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
32055 which doesn't live in memory, but has DW_AT_location or
32056 DW_AT_const_value, or refers to a string literal, into
32057 DW_OP_GNU_implicit_pointer.
32058 (optimize_location_into_implicit_ptr): New function.
32059 (resolve_addr): If removing DW_AT_location of a variable because
32060 it was DW_OP_addr of address of the variable, but the variable doesn't
32061 live in memory, try to emit const value attribute for the initializer.
32063 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32065 * tree.h (VECTOR_TYPE_P): New macro.
32066 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
32067 TYPE_MODE): Use it.
32068 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
32069 VEC_COND_EXPR cannot be lvalues.
32070 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
32072 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
32074 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
32075 Restrict the transformation to equal modes.
32077 2013-03-21 Richard Biener <rguenther@suse.de>
32079 PR tree-optimization/39326
32080 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
32081 (MEM_ANALYZABLE): Adjust.
32082 (record_mem_ref_loc): Move bitmap ops ...
32083 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
32084 unanalyzable refs, do not record locations for it.
32085 (analyze_memory_references): Allocate ref zero as shared
32087 (refs_independent_p): Do not test for unanalyzed mems here.
32088 (ref_indep_loop_p_1): Special-case disambiguation against
32089 the unanalyzed ref.
32090 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
32092 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
32094 * config/arm/arm-protos.h (tune_params): Add
32095 prefer_neon_for_64bits field.
32096 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
32097 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
32098 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
32099 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
32100 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
32101 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
32102 (arm_option_override): Handle -mneon-for-64bits new option.
32103 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
32104 (prefer_neon_for_64bits): Declare new variable.
32105 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
32106 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
32107 (arch_enabled): Handle new arch types. Remove support for onlya8
32109 (one_cmpldi2): Use new arch names.
32110 (zero_extend<mode>di2, extend<mode>di2): Ditto.
32111 * config/arm/arm.opt (mneon-for-64bits): Add option.
32112 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
32113 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
32114 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
32116 * doc/invoke.texi (-mneon-for-64bits): Document.
32118 2013-03-21 Richard Biener <rguenther@suse.de>
32120 PR tree-optimization/39326
32121 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
32122 (sort_bbs_in_loop_postorder_cmp): New function.
32123 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
32125 2013-03-21 Richard Biener <rguenther@suse.de>
32127 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
32128 (vect_insert_into_interleaving_chain): Likewise.
32129 (vect_drs_dependent_in_basic_block): Inline ...
32130 (vect_slp_analyze_data_ref_dependence): ... here. New function,
32132 (vect_analyze_data_ref_dependence): ... here. Simplify.
32133 (vect_check_interleaving): Simplify.
32134 (vect_analyze_data_ref_dependences): Likewise. Split out ...
32135 (vect_slp_analyze_data_ref_dependences): ... this new function.
32136 (dr_group_sort_cmp): New function.
32137 (vect_analyze_data_ref_accesses): Compute data-reference groups
32138 here instead of in vect_analyze_data_ref_dependence. Use
32139 a more efficient algorithm.
32140 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
32141 vect_slp_analyze_data_ref_dependences. Call
32142 vect_analyze_data_ref_accesses earlier.
32143 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
32144 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
32145 (vect_slp_analyze_data_ref_dependences): New prototype.
32147 2013-03-21 Richard Biener <rguenther@suse.de>
32149 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
32150 ref is stored in the loop.
32151 (find_refs_for_sm): Walk only over all stores.
32152 (store_motion_loop): Allocate from lim_bitmap_obstack.
32153 (store_motion): Likewise.
32155 2013-03-21 Richard Biener <rguenther@suse.de>
32157 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
32158 Update virtual SSA form.
32160 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32162 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
32163 * configure: Regenerate.
32164 * config.in: Regenerate.
32165 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
32166 if !HAVE_LD_EH_FRAME_CIEV3.
32168 2013-03-21 Richard Biener <rguenther@suse.de>
32170 * tree-cfg.c (verify_expr_no_block): New function.
32171 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
32172 nor DECL_VALUE_EXPR have locations with associated blocks.
32173 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
32174 (clear_unused_block_pointer): Remove code dealing with
32175 blocks in DECL_DEBUG_EXPR locations.
32177 2013-03-21 Richard Biener <rguenther@suse.de>
32179 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
32180 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
32181 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
32182 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
32183 instead of DECL_DEBUG_EXPR_IS_FROM.
32184 * gimplify.c (gimplify_modify_expr): Likewise.
32185 * tree-cfg.c (verify_expr_location_1): Likewise.
32186 * tree-complex.c (create_one_component_var): Likewise.
32187 * tree-sra.c (create_access_replacement): Likewise.
32188 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
32189 (clear_unused_block_pointer): Likewise.
32190 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
32191 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
32192 * var-tracking.c (var_debug_decl): Likewise.
32193 (track_expr_p): Likewise.
32194 * tree-inline.c (add_local_variables): Likewise. Set
32195 DECL_HAS_DEBUG_EXPR_P after copying it.
32196 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
32197 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
32199 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
32202 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
32203 * configure: Regenerate.
32204 * config.in: Regenerate.
32205 * config/i386/i386.md (*movdf_internal): Use
32206 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
32207 movd instead of movq mnemonic for interunit moves.
32208 (*movdi_internal): Ditto.
32210 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32212 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
32213 (abd<mode>_3): New pattern.
32214 (aba<mode>_3): New pattern.
32215 (fabd<mode>_3): New pattern.
32217 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32219 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
32220 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
32221 occurrence of REGISTER_PREFIX as its empty string.
32223 2013-03-20 Jeff Law <law@redhat.com>
32225 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
32226 addititional equivalences for equality comparisons between an SSA_NAME
32227 and a constant where the SSA_NAME was set from a widening conversion.
32229 2013-03-20 Walter Lee <walt@tilera.com>
32231 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
32233 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32235 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
32236 depending on type attribute.
32237 (*movti_internal): Ditto.
32238 (*movtf_internal): Ditto.
32239 (*movxf_internal): Ditto.
32240 (*movdf_internal): Ditto.
32241 (*movsf_internal): Ditto.
32243 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32245 * config/i386/i386.md (*movti_internal): Set prefix attribute to
32246 maybe_vex for sselog1 and ssemov types.
32247 (*movdi_internal): Reorder operand constraints.
32248 (*movsi_internal): Ditto. Set prefix attribute to
32249 maybe_vex for sselog1 and ssemov types.
32250 (*movtf_internal): Set prefix attribute to maybe_vex
32251 for sselog1 and ssemov types.
32252 (*movdf_internal): Ditto. Set prefix_data16 attribute for
32253 DImode ssemov types. Reorder operand constraints.
32254 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
32255 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
32256 attribute for SImode ssemov types. Reorder operand constraints.
32258 2013-03-20 Martin Jambor <mjambor@suse.cz>
32260 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
32261 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
32263 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
32265 * config/rs6000/predicates.md (indexed_address, update_address_mem
32266 update_indexed_address_mem): New predicates.
32267 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
32268 attribute for load/store instructions.
32269 * config/rs6000/dfp.md (movsd_store): Likewise.
32270 (movsd_load): Likewise.
32271 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
32272 (unnamed HI->DI extend define_insn): Likewise.
32273 (unnamed SI->DI extend define_insn): Likewise.
32274 (unnamed QI->SI extend define_insn): Likewise.
32275 (unnamed QI->HI extend define_insn): Likewise.
32276 (unnamed HI->SI extend define_insn): Likewise.
32277 (unnamed HI->SI extend define_insn): Likewise.
32278 (extendsfdf2_fpr): Likewise.
32279 (movsi_internal1): Likewise.
32280 (movsi_internal1_single): Likewise.
32281 (movhi_internal): Likewise.
32282 (movqi_internal): Likewise.
32283 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
32284 attribute for load/store instructions.
32285 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
32287 (mov<mode>_softfloat): Likewise.
32288 (mov<mode>_hardfloat32): Likewise.
32289 (mov<mode>_hardfloat64): Likewise.
32290 (mov<mode>_softfloat64): Likewise.
32291 (movdi_internal32): Likewise.
32292 (movdi_internal64): Likewise.
32293 (probe_stack_<mode>): Likewise.
32295 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
32297 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
32298 floating point, and decimal floating point to reload iterator.
32300 * config/rs6000/constraints.md (wl constraint): New constraints to
32301 return FLOAT_REGS if certain options are used to reduce the number
32302 of separate patterns that exist in the file.
32303 (wx constraint): Likewise.
32304 (wz constraint): Likewise.
32306 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32307 -mdebug=reg, print wg, wl, wx, and wz constraints.
32308 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32309 Initialize the reload functions for 64-bit binary/decimal floating
32311 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32312 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32313 create the buffer on the stack to overcome not having a 32-bit
32315 (rs6000_emit_move): Likewise.
32316 (rs6000_secondary_memory_needed_rtx): Likewise.
32317 (rs6000_alloc_sdmode_stack_slot): Likewise.
32318 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32319 via xxlxor, just like DFmode 0.0.
32321 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
32322 define as 1 if we are running on a power7 or newer.
32323 (enum r6000_reg_class_enum): Add new constraints.
32325 * config/rs6000/dfp.md (movsd): Delete, combine with binary
32326 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32327 with other moves by using conditional constraits (wg). Use LFIWZX
32328 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
32329 (movsd splitter): Likewise.
32330 (movsd_hardfloat): Likewise.
32331 (movsd_softfloat): Likewise.
32333 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
32334 binary and decimal floating point moves.
32335 (fmove_ok): New attributes to combine binary and decimal floating
32336 point moves, and to combine power6x (mfpgpr) moves along normal
32338 (real_value_to_target): Likewise.
32339 (f32_lr): Likewise.
32340 (f32_lm): Likewise.
32341 (f32_li): Likewise.
32342 (f32_sr): Likewise.
32343 (f32_sm): Likewise.
32344 (f32_si): Likewise.
32345 (movsf): Combine binary and decimal floating point moves. Combine
32346 power6x (mfpgpr) moves with other moves by using conditional
32347 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
32348 (mov<mode> for SFmode/SDmode); Likewise.
32349 (SFmode/SDmode splitters): Likewise.
32350 (movsf_hardfloat): Likewise.
32351 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
32352 (movsf_softfloat): Likewise.
32353 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
32355 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
32356 wx and wz constraints.
32358 * config/rs6000/constraints.md (wg constraint): New constraint to
32359 return FLOAT_REGS if -mmfpgpr (power6x) was used.
32361 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32365 -mdebug=reg, print wg, wl, wx, and wz constraints.
32366 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32367 Initialize the reload functions for 64-bit binary/decimal floating
32369 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32370 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32371 create the buffer on the stack to overcome not having a 32-bit
32373 (rs6000_emit_move): Likewise.
32374 (rs6000_secondary_memory_needed_rtx): Likewise.
32375 (rs6000_alloc_sdmode_stack_slot): Likewise.
32376 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32377 via xxlxor, just like DFmode 0.0.
32379 * config/rs6000/dfp.md (movdd): Delete, combine with binary
32380 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
32381 with other moves by using conditional constraits (wg). Use LFIWZX
32382 and STFIWX for loading SDmode on power7.
32383 (movdd splitters): Likewise.
32384 (movdd_hardfloat32): Likewise.
32385 (movdd_softfloat32): Likewise.
32386 (movdd_hardfloat64_mfpgpr): Likewise.
32387 (movdd_hardfloat64): Likewise.
32388 (movdd_softfloat64): Likewise.
32390 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32391 64-bit binary and decimal floating point moves.
32392 (FMOVE64X): Likewise.
32393 (movdf): Combine 64-bit binary and decimal floating point moves.
32394 Combine power6x (mfpgpr) moves with other moves by using
32395 conditional constraits (wg).
32396 (mov<mode> for DFmode/DDmode): Likewise.
32397 (DFmode/DDmode splitters): Likewise.
32398 (movdf_hardfloat32): Likewise.
32399 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32400 (movdf_softfloat32): Likewise.
32401 (movdf_hardfloat64_mfpgpr): Likewise.
32402 (movdf_hardfloat64): Likewise.
32403 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32404 (movdf_softfloat64): Likewise.
32405 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32406 (reload_<mode>_load): Move to later in the file so they aren't in
32407 the middle of the floating point move insns.
32408 (reload_<mode>_store): Likewise.
32410 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32413 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32414 constraint if -mdebug=reg.
32415 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32416 Enable using dd reload support if needed.
32418 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32419 binary and decimal floating point moves in rs6000.md.
32420 (movtd_internal): Likewise.
32422 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32423 decimal floating point moves.
32425 (movtf_internal): Likewise.
32426 (mov<mode>_internal, TDmode/TFmode): Likewise.
32427 (movtf_softfloat): Likewise.
32428 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32430 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32431 movdi_internal64, using wg constraint for move direct operations.
32432 (movdi_internal64): Likewise.
32434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32435 MODES_TIEABLE_P for selected modes. Print the numerical value of
32436 the various virtual registers. Use GPR/FPR first/last values,
32437 instead of hard coding the register numbers. Print which modes
32438 have reload functions registered.
32439 (rs6000_option_override_internal): If -mdebug=reg, trace the options
32440 settings before/after setting cpu, target and subtarget settings.
32441 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32442 and for secondary reload failures in rs6000_secondary_reload_inner.
32443 (rs6000_secondary_reload_fail): Likewise.
32444 (rs6000_secondary_reload_inner): Likewise.
32446 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32447 macros for first/last GPR and FPR registers.
32448 (LAST_GPR_REGNO): Likewise.
32449 (FIRST_FPR_REGNO): Likewise.
32450 (LAST_FPR_REGNO): Likewise.
32452 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32453 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32454 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32455 (vcond<mode><mode>): Likewise.
32456 (vcondu<mode><mode>): Likewise.
32457 (vector_gtu<mode>): Likewise.
32458 (vector_gte<mode>): Likewise.
32459 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32460 to prevent the compiler from converting DImode operations to TImode.
32461 (ior<mode>3): Likewise.
32462 (and<mode>3): Likewise.
32463 (one_cmpl<mode>2): Likewise.
32464 (nor<mode>3): Likewise.
32465 (andc<mode>3): Likewise.
32467 * config/rs6000/constraints.md (wt constraint): New constraint
32468 that returns VSX_REGS if TImode is allowed in VSX registers.
32470 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32471 constant under VSX.
32473 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32474 similar to TImode, but it is restricted to being in the GPRs.
32476 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32477 TImode to occupy a single VSX register.
32479 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32480 -mvsx-timode for power7/power8.
32481 (power7 cpu): Likewise.
32482 (power8 cpu): Likewise.
32484 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32485 sure that TFmode/TDmode take up two registers if they are ever
32486 allowed in the upper VSX registers.
32487 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32489 (rs6000_init_hard_regno_mode_ok): Likewise.
32490 (rs6000_debug_reg_global): Add debugging for PTImode and wt
32491 constraint. Print if LRA is turned on.
32492 (rs6000_option_override_internal): Give an error if -mvsx-timode
32493 and VSX is not enabled.
32494 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
32495 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32496 to reg+offset addressing. Use PTImode when checking offset
32497 addresses for validity.
32498 (reg_offset_addressing_ok_p): Likewise.
32499 (rs6000_legitimate_offset_address_p): Likewise.
32500 (rs6000_legitimize_address): Likewise.
32501 (rs6000_legitimize_reload_address): Likewise.
32502 (rs6000_legitimate_address_p): Likewise.
32503 (rs6000_eliminate_indexed_memrefs): Likewise.
32504 (rs6000_emit_move): Likewise.
32505 (rs6000_secondary_reload): Likewise.
32506 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
32507 reloads to fpr registers to continue to use reg+offset addressing,
32508 but 64-bit reloads to altivec registers need reg+reg addressing.
32509 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32510 it. Treat LO_SUM like a PLUS operation.
32511 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32512 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32513 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32514 registers to share a register with a smaller sized type, since VSX
32515 puts scalars in the upper 64-bits.
32516 (print_operand): Add support for PTImode.
32517 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32518 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32519 registers, but don't have arithmetic support.
32520 (rs6000_memory_move_cost): Add test for VSX.
32521 (rs6000_opt_masks): Add -mvsx-timode.
32523 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32526 (VSr): Use wt constraint for TImode.
32527 (VSv): Drop TImode support.
32528 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32529 (vsx_movti_64bit): Likewise.
32530 (vsx_movti_32bit): Likewise.
32531 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32532 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32533 one '?' on the appropriate output constraint. Do not allow TImode
32534 logical operations on 32-bit systems.
32535 (vsx_ior<mode>3): Likewise.
32536 (vsx_xor<mode>3): Likewise.
32537 (vsx_one_cmpl<mode>2): Likewise.
32538 (vsx_nor<mode>3): Likewise.
32539 (vsx_andc<mode>3): Likewise.
32540 (vsx_concat_<mode>): Likewise.
32541 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32543 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32544 OPTION_MASK_VSX_TIMODE.
32545 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32546 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32548 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32549 (TI2 iterator): New iterator for TImode, PTImode.
32550 (wd mode attribute): Add values for vector types.
32551 (movti_string): Replace TI move operations with operations for TImode
32552 and PTImode. Add support for TImode being allowed in VSX registers.
32553 (mov<mode>_string, TImode/PTImode): Likewise.
32554 (movti_ppc64): Likewise.
32555 (mov<mode>_ppc64, TImode/PTImode): Likewise.
32556 (TI mode splitters): Likewise.
32558 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32561 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
32563 PR tree-optimization/56355
32564 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32565 Also handle integers with undefined overflow.
32567 2013-03-20 Catherine Moore <clm@codesourcery.com>
32568 Maciej W. Rozycki <macro@codesourcery.com>
32569 Tom de Vries <tom@codesourcery.com>
32570 Nathan Sidwell <nathan@codesourcery.com>
32571 Iain Sandoe <iain@codesourcery.com>
32572 Nathan Froyd <froydnj@codesourcery.com>
32573 Chao-ying Fu <fu@mips.com>
32575 * doc/extend.texi: (micromips, nomicromips, nocompression):
32576 Document new function attributes.
32577 * doc/invoke.texi (minterlink-compressed, mmicromips,
32578 m14k, m14ke, m14kec): Document new options.
32579 (minterlink-mips16): Update documentation.
32580 * doc/md.texi (ZC, ZD): Document new constraints.
32581 * configure.ac (gcc_cv_as_micromips): Check if linker
32582 supports the .set micromips directive.
32583 * configure: Regenerate.
32584 * config.in: Regenerate.
32585 * config/mips/mips-tables.opt: Regenerate.
32586 * config/mips/micromips.md: New file.
32587 * constraints.md (ZC, ZD): New constraints.
32588 * config/mips/predicates.md (movep_src_register): New predicate.
32589 (movep_src_operand): New predicate.
32590 (non_volatile_mem_operand): New predicate.
32591 * config/mips/mips.md (multimem): New type.
32592 (length): Differentiate between 17-bit and 18-bit branch offsets.
32593 (MOVEP1, MOVEP2): New mode iterator.
32594 (mov_<load>l): Use ZC constraint.
32595 (mov_<load>r): Likewise.
32596 (mov_<store>l): Likewise.
32597 (mov_<store>r): Likewise.
32598 (*branch_equality<mode>_inverted): Add microMIPS support.
32599 (*branch_equality<mode>): Likewise.
32600 (*jump_absolute): Likewise.
32601 (indirect_jump_<mode>): Likewise.
32602 (tablejump_<mode>): Likewise.
32603 (<optab>_internal): Likewise.
32604 (sibcall_internal): Likewise.
32605 (sibcall_value_internal): Likewise.
32606 (prefetch): Use constraint ZD.
32607 * config/mips/mips.opt (minterlink-compressed): New option.
32608 (minterlink-mips16): Now an alias for minterlink-compressed.
32609 (mmicromips): New option.
32610 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32611 (compare_and_swap_12): Likewise.
32612 (sync_add<mode>): Likewise.
32613 (sync_<optab>_12): Likewise.
32614 (sync_old_<optab>_12): Likewise.
32615 (sync_new_<optab>_12): Likewise.
32616 (sync_nand_12): Likewise.
32617 (sync_old_nand_12): Likewise.
32618 (sync_new_nand_12): Likewise.
32619 (sync_sub<mode>): Likewise.
32620 (sync_old_add<mode>): Likewise.
32621 (sync_old_sub<mode>): Likewise.
32622 (sync_new_add<mode>): Likewise.
32623 (sync_new_sub<mode>): Likewise.
32624 (sync_<optab><mode>): Likewise.
32625 (sync_old_<optab><mode>): Likewise.
32626 (sync_new_<optab><mode>): Likewise.
32627 (sync_nand<mode>): Likewise.
32628 (sync_old_nand<mode>): Likewise.
32629 (sync_new_nand<mode>): Likewise.
32630 (sync_lock_test_and_set<mode>): Likewise.
32631 (test_and_set_12): Likewise.
32632 (atomic_compare_and_swap<mode>): Likewise.
32633 (atomic_exchange<mode>_llsc): Likewise.
32634 (atomic_fetch_add<mode>_llsc): Likewise.
32635 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32636 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32637 (umips_save_restore_pattern_p): Likewise.
32638 (umips_load_store_pair_p): Likewise.
32639 (umips_output_load_store_pair): Likewise.
32640 (umips_movep_target_p): Likewise.
32641 (umips_12bit_offset_address_p): Likewise.
32642 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32643 (mips_base_mips16): Rename this...
32644 (mips_base_compression_flags): ...to this. Update all uses.
32645 (mips_attribute_table): Add micromips, nomicromips and nocompression.
32646 (mips_mips16_decl_p): Delete.
32647 (mips_nomips16_decl_p): Delete.
32648 (mips_get_compress_on_flags): New function.
32649 (mips_get_compress_off_flags): New function.
32650 (mips_get_compress_mode): New function.
32651 (mips_get_compress_on_name): New function.
32652 (mips_get_compress_off_name): New function.
32653 (mips_insert_attributes): Support multiple compression types.
32654 (mips_merge_decl_attributes): Likewise.
32655 (umips_12bit_offset_address_p): New function.
32656 (mips_start_function_definition): Emit .set micromips directive.
32657 (mips_call_may_need_jalx_p): New function.
32658 (mips_function_ok_for_sibcall): Add microMIPS support.
32659 (mips_print_operand_punctuation): Support short delay slots and
32661 (umips_swm_mask, umips_swm_encoding): New.
32662 (umips_build_save_restore): New function.
32663 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32664 (was_mips16_p): Remove.
32665 (old_compression_mode): New.
32666 (mips_set_compression_mode): New function.
32667 (mips_set_current_function): Add microMIPS support.
32668 (mips_option_override): Likewise.
32669 (umips_save_restore_pattern_p): New function.
32670 (umips_output_save_restore): New function.
32671 (umips_load_store_pair_p_1): New function.
32672 (umips_load_store_pair_p): New function.
32673 (umips_output_load_store_pair_1): New function.
32674 (umips_output_load_store_pair): New function.
32675 (umips_movep_target_p) New function.
32676 (mips_prepare_pch_save): Add microMIPS support.
32677 * config/mips/mips.h (TARGET_COMPRESSION): New.
32678 (TARGET_CPU_CPP_BUILTINS): Update macro
32679 to use new compression flags and to support microMIPS.
32680 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32681 (MIPS_ARCH_FLOAT_SPEC): Likewise.
32682 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32683 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32684 (ASM_SPEC): Support mmicromips and mno-micromips.
32685 (M16STORE_REG_P): New macro.
32686 (MIPS_CALL): Support TARGET_MICROMIPS.
32687 (MICROMIPS_J): New macro.
32688 (mips_base_mips16): Rename this...
32689 (mips_base_compression_flags): ...to this.
32690 (UMIPS_12BIT_OFFSET_P): New macro.
32691 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32692 (MULTILIB_DIRNAMES): Likewise.
32693 2013-03-20 Richard Biener <rguenther@suse.de>
32695 PR tree-optimization/56661
32696 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32697 the result does not have to be distinct.
32699 2013-03-20 Richard Biener <rguenther@suse.de>
32701 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32704 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32705 Steven Bosscher <steven@gcc.gnu.org>
32707 PR rtl-optimization/56605
32708 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32710 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
32713 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32714 that require movd instead of movq.
32716 2013-03-20 Richard Biener <rguenther@suse.de>
32718 * tree-ssa-structalias.c (struct variable_info): Add pointer
32719 to the first field of an aggregate with sub-vars. Make
32720 this and the pointer to the next subfield its ID.
32721 (vi_next): New function.
32722 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32723 storedanything_id, integer_id): Increment by one.
32724 (new_var_info, get_call_vi, lookup_call_clobber_vi,
32725 get_call_clobber_vi): Adjust.
32726 (solution_set_expand): Simplify and speedup.
32727 (solution_set_add): Inline into ...
32728 (set_union_with_increment): ... this. Adjust accordingly.
32729 (do_sd_constraint): Likewise.
32730 (do_ds_constraint): Likewise.
32731 (do_complex_constraint): Simplify.
32732 (build_pred_graph): Adjust.
32733 (solve_graph): Likewise. Simplify and speedup.
32734 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32735 get_constraint_for_component_ref, get_constraint_for_1,
32736 first_vi_for_offset, first_or_preceding_vi_for_offset,
32737 create_function_info_for, create_variable_info_for_1,
32738 create_variable_info_for, intra_create_variable_infos): Adjust.
32739 (init_base_vars): Push NULL for ID zero.
32740 (compute_points_to_sets): Adjust.
32742 2013-03-20 Richard Biener <rguenther@suse.de>
32744 * cfgloop.c (verify_loop_structure): Streamline and avoid
32745 ICEing on corrupt loop tree.
32746 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32749 2013-03-20 Richard Biener <rguenther@suse.de>
32751 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32752 check whether an SSA update is needed.
32754 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
32756 * config/mips/constraints.md (T): Rename to...
32760 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32761 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32763 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32765 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32766 (*subsi3_carryin_uxtw): Likewise.
32768 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32770 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32771 (*rorsi3_insn_uxtw): Likewise.
32773 2013-03-19 Ian Bolton <ian.bolton@arm.com>
32775 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32776 (*extrsi5_insn_uxtw): Likewise.
32778 2013-03-19 Richard Biener <rguenther@suse.de>
32780 PR tree-optimization/56273
32781 * passes.c (init_optimization_passes): Move second VRP after DOM.
32783 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
32785 * config/i386/i386.md (*movti_internal): Merge from
32786 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
32787 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
32788 nox64 isa attributes.
32790 2013-03-18 Richard Biener <rguenther@suse.de>
32792 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32794 (merge_node_constraints): Likewise.
32795 (build_succ_graph): Likewise.
32796 (valid_graph_edge): Inline into single caller.
32797 (unify_nodes): Likewise. Use bitmap_set_bit return value
32799 (scc_visit): Fix formatting and variable use.
32800 (do_sd_constraint): Use gcc_checking_assert.
32801 (do_ds_constraint): Likewise.
32802 (do_complex_constraint): Likewise.
32803 (condense_visit): Likewise. Cleanup.
32804 (dump_pred_graph): New function.
32805 (perform_var_substitution): Dump the pred-graph before
32806 variable substitution.
32807 (find_equivalent_node): Use gcc_checking_assert.
32808 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32810 2013-03-18 Richard Biener <rguenther@suse.de>
32812 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32813 Remove cond_expr_stmt_list argument and do not gimplify the
32815 (vect_loop_versioning): Adjust.
32816 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32817 Cleanup to use less temporaries.
32818 (vect_create_data_ref_ptr): Cleanup.
32820 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32822 PR tree-optimization/56635
32823 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32824 require types_compatible_p types.
32826 2013-03-18 Nick Clifton <nickc@redhat.com>
32828 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32829 spurious backslash.
32831 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32832 Add missing line to comment describing function.
32834 2013-03-18 Richard Biener <rguenther@suse.de>
32836 PR tree-optimization/56210
32837 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32838 Handle string / character search functions.
32839 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32841 2013-03-18 Richard Biener <rguenther@suse.de>
32843 PR middle-end/56483
32844 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32845 and implement properly.
32846 * gimple.h (gimple_cond_single_var_p): Remove.
32848 2013-03-18 Richard Biener <rguenther@suse.de>
32850 * tree-data-ref.h (find_data_references_in_loop): Declare.
32851 * tree-data-ref.c (get_references_in_stmt): Use a stack
32852 vector pre-allocated in the callers.
32853 (find_data_references_in_stmt): Adjust.
32854 (graphite_find_data_references_in_stmt): Likewise.
32855 (create_rdg_vertices): Likewise.
32856 (find_data_references_in_loop): Export.
32857 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32858 Compute dependences here...
32859 (vect_analyze_data_refs): ...not here. When we encounter
32860 a non-vectorizable data reference in basic-block vectorization
32861 truncate the data reference vector. Do not bother to
32862 fixup data-dependence information for gather loads.
32863 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32864 of data references, as reported.
32866 2013-03-18 Richard Biener <rguenther@suse.de>
32868 PR tree-optimization/3713
32869 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
32870 has_constants and expr.
32871 (stmt_has_constants): Properly valueize SSA names when deciding
32872 whether the stmt has constants.
32874 2013-03-18 Richard Biener <rguenther@suse.de>
32876 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32877 whole function when there is nothing to do.
32878 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32879 * tree-vectorizer.c (vectorize_loops): Update virtual and
32880 loop-closed SSA once.
32881 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32883 2013-03-18 Richard Biener <rguenther@suse.de>
32885 PR middle-end/56113
32886 * domwalk.c (bb_postorder): New global static.
32887 (cmp_bb_postorder): New function.
32888 (walk_dominator_tree): Replace scheme imposing an order for
32889 visiting dominator sons by one sorting them at the time they
32890 are pushed on the stack.
32892 2013-03-18 Richard Biener <rguenther@suse.de>
32894 PR tree-optimization/39326
32895 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32896 (struct mem_ref): Replace mem member with ao_ref typed member.
32897 (MEM_ANALYZABLE): Adjust.
32898 (memref_eq): Likewise.
32899 (mem_ref_alloc): Likewise.
32900 (gather_mem_refs_stmt): Likewise.
32901 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32902 (execute_sm_if_changed_flag_set): Adjust.
32903 (execute_sm): Likewise.
32904 (ref_always_accessed_p): Likewise.
32905 (refs_independent_p): Likewise.
32906 (can_sm_ref_p): Likewise.
32908 2013-03-18 Jakub Jelinek <jakub@redhat.com>
32911 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32912 return 1 even for !unsignedp.
32914 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32916 * config/i386/i386.md (isa): Add x64 and nox64.
32917 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32918 (*pushtf): Enable *roF alternative for x64 isa only.
32919 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
32920 mode attribute of integer alternatives to DImode for TARGET_64BIT.
32921 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
32922 (*movtf_internal): Merge from *movtf_internal_rex64 and
32923 *movtf_internal_sse. Use x64 and nox64 isa attributes.
32924 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
32925 nox64 isa attributes.
32926 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
32927 nox64 isa attributes.
32928 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32930 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
32932 * config/alpha/alpha.c (TARGET_LRA_P): New define.
32934 2013-03-17 Jakub Jelinek <jakub@redhat.com>
32937 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32938 class names. Remove trailing comma after "ALL_REGS".
32940 2013-03-16 Jan Hubicka <jh@suse.cz>
32942 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32943 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32944 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32945 of cgraph_get_create_node.
32946 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32948 2013-03-16 Jason Merrill <jason@redhat.com>
32951 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32952 with DW_AT_default_value.
32954 2013-03-16 Jakub Jelinek <jakub@redhat.com>
32956 * BASE-VER: Set to 4.9.0.
32958 2013-03-14 Andi Kleen <ak@linux.intel.com>
32961 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32962 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32963 Document _x* TSX intrinsics.
32965 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32966 David Holsgrove <david.holsgrove@xilinx.com>
32968 * configure.ac: Add MicroBlaze TLS support detection.
32969 * configure: Regenerate.
32970 * config/microblaze/microblaze-protos.h
32971 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32972 symbol_mentioned_p, label_mentioned_p): Add prototypes.
32973 * config/microblaze/microblaze.c (microblaze_address_type): Add
32974 ADDRESS_TLS and tls_reloc address types.
32975 (microblaze_address_info): Add tls_reloc.
32976 (TARGET_HAVE_TLS): Define.
32977 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32978 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32979 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32980 load_tls_operand, microblaze_call_tls_get_addr,
32981 microblaze_legitimize_tls_address): New functions.
32982 (microblaze_classify_unspec): Handle UNSPEC_TLS.
32983 (get_base_reg): Use microblaze_tls_symbol_p.
32984 (microblaze_classify_address): Handle TLS.
32985 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32986 label_mentioned_p and microblaze_tls_referenced_p.
32987 (microblaze_legitimize_address): Handle TLS.
32988 (microblaze_address_insns): Handle ADDRESS_TLS.
32989 (pic_address_needs_scratch): Handle TLS.
32990 (print_operand_address): Handle TLS.
32991 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32992 (microblaze_expand_move): Handle TLS.
32993 (microblaze_legitimate_constant_p): Check
32994 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32995 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32996 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32997 (PIC_OFFSET_TABLE_REGNUM): Set.
32998 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32999 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
33000 (addsi3, movsi_internal2, movdf_internal): Update constraints
33001 * config/microblaze/predicates.md (arith_plus_operand): Define
33002 (move_operand): Redefine as move_src_operand,
33003 check microblaze_tls_referenced_p.
33005 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33007 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
33008 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
33010 2013-03-14 Ian Bolton <ian.bolton@arm.com>
33012 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
33015 2013-03-14 Jakub Jelinek <jakub@redhat.com>
33017 PR tree-optimization/53265
33018 * common.opt (Waggressive-loop-optimizations): New option.
33019 * tree-ssa-loop-niter.c: Include tree-pass.h.
33020 (do_warn_aggressive_loop_optimizations): New function.
33021 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
33022 if number_of_latch_executions returned constant.
33023 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
33024 early. If number_of_latch_executions returned constant, set
33025 nb_iterations_upper_bound back to it.
33026 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
33028 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
33029 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
33031 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
33032 (MULTILIB_OSDIRNAMES): Set.
33033 * genmultilib: If defaultosdirname doesn't start with :: , set
33034 defaultosdirname2 instead, clear it and emit two . multilib_raw
33035 entries instead of just one.
33037 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
33039 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33040 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
33041 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
33042 (SUBTARGET_OVERRIDE_OPTIONS): New.
33044 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
33047 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
33048 (musermode): Convert to Var(TARGET_USERMODE).
33049 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
33050 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
33051 * config/sh/sh.c (sh_option_override): Use
33052 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
33053 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
33055 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
33057 (udivsi3_i4_single, divsi3_i4_single): Use
33058 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
33060 2013-03-13 Dave Korn <dave.korn.cygwin@gmail.com>
33062 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
33065 2013-03-13 Richard Biener <rguenther@suse.de>
33067 PR tree-optimization/56608
33068 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
33069 calls when vectorizing basic-blocks.
33071 2013-03-13 Jakub Jelinek <jakub@redhat.com>
33074 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
33077 2013-03-12 Jakub Jelinek <jakub@redhat.com>
33079 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
33081 2013-03-11 Jan Hubicka <jh@suse.cz>
33084 * lto-streamer-out.c (output_symbol_p): Skip references from
33085 constructors of external variables.
33087 2013-03-11 Jan Hubicka <jh@suse.cz>
33089 PR middle-end/56571
33090 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
33092 * emit-rtl.c (verify_rtx_sharing): Likewise.
33093 (copy_insn_1): Likewise.
33094 * rtl.c (copy_rtx): Likewise.
33096 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
33099 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
33100 output_operand_lossage message.
33102 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
33105 * arm.c (shift_op): Validate RTL pattern on the fly.
33106 (arm_print_operand, case 'S'): Don't use shift_operator to validate
33109 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33112 * config/pa/pa.md (call_value): Check for calls to powf and direct to
33113 new call patterns that clobber %fr12.
33114 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
33115 split and postreload patterns.
33116 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
33117 registers %fr12 and %fr12R as call used.
33119 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
33121 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
33122 (canon_address, record_store, replace_read, check_mem_read_rtx,
33123 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
33124 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
33125 rest_of_handle_dse): Likewise.
33127 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
33129 PR middle-end/56524
33130 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
33132 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
33133 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
33134 (save_optabs_if_changed): Replace with...
33135 (init_tree_optimization_optabs): ...this.
33136 * optabs.c (save_optabs_if_changed): Rename to...
33137 (init_tree_optimization_optabs): ...this. Take the optimization node
33138 as argument. Do nothing if the base optabs are already correct.
33139 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
33140 to recompute optabs.
33141 * function.h (function): Remove optabs field.
33142 * function.c (invoke_set_current_function_hook): Call
33143 init_tree_optimization_optabs. Use the result to initialize
33146 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
33148 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
33149 if GTMA_HAS_NO_INSTRUMENTATION.
33150 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
33151 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
33152 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
33153 * gimple-pretty-print.c (dump_gimple_transaction): Handle
33154 GTMA_HAS_NO_INSTRUMENTATION.
33156 2013-03-08 Jakub Jelinek <jakub@redhat.com>
33158 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
33161 2013-03-08 Marek Polacek <polacek@redhat.com>
33162 Jakub Jelinek <jakub@redhat.com>
33164 PR tree-optimization/56478
33165 * predict.c (is_comparison_with_loop_invariant_p): Change the
33166 type of loop_step to tree.
33167 (predict_loops): Adjust.
33168 (predict_iv_comparison): Perform the computations on double_ints.
33170 2013-03-08 Richard Biener <rguenther@suse.de>
33172 PR tree-optimization/56570
33173 * tree-cfg.c (verify_expr_location_1): Verify locations for
33175 * tree-sra.c (create_access_replacement): Strip locations
33176 from DECL_DEBUG_EXPRs.
33178 2013-03-08 Richard Biener <rguenther@suse.de>
33180 * tree-inline.c (expand_call_inline): Do not associate
33181 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
33182 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
33184 2013-03-08 Richard Biener <rguenther@suse.de>
33186 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
33187 or block changes with -Og. Fix for location / block encoding
33188 changes and PHI arguments with locations.
33190 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
33192 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
33194 (struct output_info): Likewise.
33195 (register_overhead): Remove bad gcc_assert.
33196 (bitmap_find_bit): If there is only a single bitmap element, do not
33197 count a miss as a search.
33198 (print_statistics): Update for counter type changes.
33199 (dump_bitmap_statistics): Likewise. Print headers such that they
33200 are properly lined up with the printed counters.
33202 2013-03-07 Jakub Jelinek <jakub@redhat.com>
33204 PR tree-optimization/56559
33205 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
33206 check that it has only a single use.
33208 2013-03-07 Richard Biener <rguenther@suse.de>
33210 * doc/invoke.texi (fwhole-program): Discourage use in combination
33213 2013-03-06 Jakub Jelinek <jakub@redhat.com>
33215 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
33217 PR tree-optimization/56539
33218 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
33219 instead of GSI_CONTINUE_LINKING as last argument to
33220 force_gimple_operand_gsi. Adjust function comment.
33222 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
33225 PR middle-end/56548
33226 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
33227 promoted mode, convert the result back to the original mode.
33229 2013-03-06 Richard Biener <rguenther@suse.de>
33231 PR middle-end/56294
33232 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
33233 (insert_updated_phi_nodes_compare_uids): New function.
33234 (update_ssa): Sort symbols_to_rename after UID before
33235 traversing it to insert PHI nodes.
33237 2013-03-06 Richard Biener <rguenther@suse.de>
33239 PR middle-end/50494
33240 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
33241 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
33244 2013-02-13 Richard Biener <rguenther@suse.de>
33247 * varasm.c (output_constant_def_1): Get the decl representing
33248 the constant as argument.
33249 (output_constant_def): Wrap output_constant_def_1.
33250 (make_decl_rtl): Use output_constant_def_1 with the decl
33251 representing the constant.
33252 (build_constant_desc): Optionally re-use a decl already
33253 representing the constant.
33254 (tree_output_constant_def): Adjust.
33256 2013-03-06 Joey Ye <joey.ye@arm.com>
33259 * gcc.c (convert_white_space): New function.
33260 (main): Handles white space in function name.
33262 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
33265 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
33266 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
33267 to SH_DIV_CALL_TABLE for TARGET_SH2.
33268 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
33270 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
33271 call-table options.
33273 2013-03-05 Sterling Augustine <saugustine@google.com>
33274 Cary Coutant <ccoutant@google.com>
33277 * dwarf2out.c (resolve_addr): Don't call
33278 remove_loc_list_addr_table_entries a second time for the same
33281 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33284 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
33285 (avoid_complex_debug_insns): New function.
33286 (expand_debug_locations): Call it.
33288 PR rtl-optimization/56484
33289 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
33290 lifetimes of hard registers on small register class machines.
33292 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33294 * config/microblaze/microblaze-protos.h: Rename
33295 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
33296 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
33298 (microblaze_fast_interrupt_function_p): New function.
33299 (microblaze_is_interrupt_handler): Rename to
33300 microblaze_is_interrupt_variant and add fast_interrupt check.
33301 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
33302 (save_restore_insns): Likewise.
33303 (compute_frame_size): Likewise.
33304 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
33305 (microblaze_globalize_label): Likewise.
33306 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
33307 * config/microblaze/microblaze.md: Use wrapper
33308 microblaze_is_interrupt_variant.
33310 2013-03-05 Kai Tietz <ktietz@redhat.com>
33312 * sdbout.c (sdbout_one_type): Switch to current function's section
33313 supporting cold/hot.
33315 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
33317 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
33320 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33322 PR middle-end/56461
33323 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
33324 if VALGRIND_GET_VBITS is defined, temporarily make object
33325 memory all defined, and restore previous valgrind addressability
33326 and definability afterwards. Free this_object at the end.
33328 PR middle-end/56461
33329 * lra.c (lra): Call lra_clear_live_ranges if live_p,
33330 right before calling lra_create_live_ranges, also call it
33331 when clearing live_p. Only call lra_clear_live_ranges
33332 at the end if live_p.
33334 PR middle-end/56461
33335 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
33337 2013-03-05 Richard Biener <rguenther@suse.de>
33339 PR tree-optimization/56521
33340 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
33343 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
33346 * except.h (remove_unreachable_eh_regions): New prototype.
33347 * except.c (remove_eh_handler_splicer): New function, split out
33348 of remove_eh_handler.
33349 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
33350 warning about running it on many EH regions one at a time.
33351 (remove_unreachable_eh_regions_worker): New function, walk the
33352 EH tree in depth-first order and remove non-marked regions.
33353 (remove_unreachable_eh_regions): New function.
33354 * tree-eh.c (mark_reachable_handlers): New function, split out
33355 from remove_unreachable_handlers.
33356 (remove_unreachable_handlers): Use mark_reachable_handlers and
33357 remove_unreachable_eh_regions.
33358 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33359 and remove_unreachable_eh_regions.
33361 2013-03-05 Richard Biener <rguenther@suse.de>
33363 PR middle-end/56525
33364 * loop-init.c (fix_loop_structure): Remove loops in two stages,
33365 not freeing them until the end.
33367 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33369 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33371 2013-03-05 Richard Biener <rguenther@suse.de>
33373 PR tree-optimization/56270
33374 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33375 of loads after scheduling an SLP instance.
33377 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33379 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33381 (check_gcc_parallelize): Run guality.exp as a separate job from
33382 vect.exp with unsorted.exp and $(dg_target_exps) separately from
33383 struct-layout-1.exp with stackalign.exp.
33385 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33387 PR middle-end/56461
33388 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33389 load_index sbitmap even if some bit in it isn't set.
33391 PR middle-end/56461
33392 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33393 (discover_iteration_bound_by_body_walk): Change queues to
33394 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
33395 spelling in comment. Call safe_push on queues[bound_index] directly.
33396 Release queues[queue_index] in every iteration unconditionally.
33397 Release bounds vector.
33399 PR middle-end/56461
33400 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33401 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33402 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33405 2013-03-05 Richard Biener <rguenther@suse.de>
33408 * tree-inline.c (remap_blocks_to_null): New function.
33409 (expand_call_inline): When expanding a call stmt without
33410 an associated block inline remap all callee blocks to NULL.
33412 2013-03-05 Jakub Jelinek <jakub@redhat.com>
33414 PR rtl-optimization/56494
33415 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33416 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33417 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33419 PR middle-end/56461
33420 * sel-sched-ir.c (free_sched_pools): Release
33421 succs_info_pool.stack[succs_info_pool.max_top] vectors too
33422 if succs_info_pool.max_top isn't -1.
33425 * opts.c (opts_obstack, opts_concat): Moved to...
33426 * opts-common.c (opts_obstack, opts_concat): ... here.
33428 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33430 PR middle-end/56461
33431 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33433 2013-03-04 Martin Jambor <mjambor@suse.cz>
33435 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33436 all appropriate places.
33438 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
33440 PR tree-optimization/56424
33441 * ipa-split.c (split_function): Do not set the RSO flag if result is
33442 not by reference and its type is a register type.
33444 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
33446 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33447 (microblaze_legitimate_pic_operand): Likewise
33448 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33449 new function microblaze_legitimate_pic_operand
33450 * config/microblaze/microblaze-protos.h
33451 (microblaze_legitimate_pic_operand): Declare.
33453 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33455 * config/microblaze/predicates.md (call_insn_simple_operand):
33456 New predicate for supported rtx code types.
33457 * config/microblaze/microblaze.md (call_internal1): Use
33458 call_insn_simple_operand predicate.
33460 2013-03-04 Jakub Jelinek <jakub@redhat.com>
33462 PR middle-end/56461
33463 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33464 partitions.ordered_remove.
33466 PR middle-end/56461
33467 * tree-vect-stmts.c (vectorizable_conversion): Don't call
33468 vec_oprnds0.create (1) for modifier == NONE.
33470 PR middle-end/56461
33471 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33472 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33473 vec_oprnds1 right before pushing anything to it for
33476 PR middle-end/56461
33477 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33478 set nbbs to 0 instead of having separate code path.
33479 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33480 instead of false as last argument if returning NULL.
33482 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
33484 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33485 the attribute is now called "target" instead of "option".
33486 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33487 * doc/tm.texi.in (Target Attributes): Likewise document the correct
33488 attribute/pragma name for TARGET_OPTION_VALID_P and
33489 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
33490 * doc/tm.texi: Regenerated.
33492 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
33494 * config/microblaze/microblaze.c:
33495 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33496 * config/microblaze/microblaze.h: Add -mxl-reorder to
33498 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33499 instructions emitted if TARGET_REORDER.
33500 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33501 or 0 for -m/-mno case, but initialises as 2 to detect default use case
33504 2013-03-01 Xinliang David Li <davidxl@google.com>
33506 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33509 2013-03-01 Jakub Jelinek <jakub@redhat.com>
33511 PR middle-end/56461
33512 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33513 vector even when returning true. Fix up function comment formatting.
33515 PR middle-end/56461
33516 * ira-build.c (ira_loop_nodes_count): New variable.
33517 (create_loop_tree_nodes): Initialize it.
33518 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33520 PR middle-end/56461
33521 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33522 method on dr_chain and result_chain.
33523 * tree-vect-stmts.c (vectorizable_store): Only call
33524 result_chain.create if j == 0.
33526 PR middle-end/56461
33527 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33528 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33529 before overwriting it.
33531 2013-03-01 Tobias Burnus <burnus@net-b.de>
33533 * doc/extended.texi (C Extensions): Change order in @menu
33535 (Other MIPS Built-in Functions): Move last MIPS entry before
33536 "picoChip Built-in Functions".
33537 (SH Built-in Functions): Move after RX Built-in Functions.
33538 * doc/gcc.texi (Introduction): Change order in @menu
33540 * doc/md.texi (Constraints): Ditto.
33541 * gty.texi (Type Information): Ditto.
33542 (User-provided marking routines for template types): Make
33544 * doc/invoke.texi (AArch64 Options): Move before
33545 "Adapteva Epiphany Options".
33547 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
33548 Jakub Jelinek <jakub@redhat.com>
33551 * asan.c (gate_asan): Lookup no_sanitize_address instead of
33552 no_address_safety_analysis attribute.
33553 * doc/extend.texi (no_address_safety_attribute): Rename to
33554 no_sanitize_address attribute, mention no_address_safety_analysis
33555 attribute as deprecated alias.
33557 2013-02-28 Jakub Jelinek <jakub@redhat.com>
33559 PR middle-end/56461
33560 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33561 type to vec<vec<tree> > *.
33562 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
33563 to be vec<tree> instead of vec<tree> *, set vec_defs
33564 to vNULL and call vec_defs.create (number_of_vects), adjust other
33566 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33567 vectorizable_condition): Adjust vect_get_slp_defs callers.
33569 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33571 * config/aarch64/aarch64.c
33572 (aarch64_float_const_representable): Remove unused variable.
33574 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33576 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33578 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33580 * config/aarch64/aarch64-builtins.c
33581 (aarch64_init_simd_builtins): Make static.
33583 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
33585 * config/aarch64/aarch64.c
33586 (aarch64_simd_make_constant): Make static.
33588 2013-02-28 Martin Jambor <mjambor@suse.cz>
33590 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33591 with no initialization to the RHS of debug statements.
33593 2013-02-28 Martin Jambor <mjambor@suse.cz>
33595 PR tree-optimization/56294
33596 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33598 (get_access_replacement): Do not call create_access_replacement.
33599 Assert a replacement exists.
33600 (get_repl_default_def_ssa_name): Create the replacement declaration
33603 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33605 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33606 final_end_function.
33608 2013-02-28 Marek Polacek <polacek@redhat.com>
33610 PR rtl-optimization/56466
33611 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33612 if we're changing a loop.
33613 (peel_loops_completely): Likewise.
33615 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
33618 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33620 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33623 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33624 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33625 INTX_FTYPE_FX, FX_FTYPE_INTX.
33626 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33628 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33630 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33631 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33632 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33633 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33634 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33635 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33636 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33637 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33638 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33639 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33640 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33641 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33642 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33643 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33644 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33645 (avrxmega6): Increase max flash segments from 5 to 6.
33646 * config/avr/t-multilib: Regenerate.
33647 * config/avr/avr-tables.opt: Regenerate.
33648 * doc/avr-mmcu.texi: Regenerate.
33650 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
33652 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33653 (avr_device_to_arch): Rename to avr_device_to_ld.
33654 (avr_device_to_as): New prototype.
33655 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33656 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33657 * config/avr/driver-avr.c (avr_device_to_as): New.
33658 (avr_device_to_arch): Rename to avr_device_to_ld.
33660 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33662 PR middle-end/56461
33663 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33664 method on dr_chain and result_chain.
33666 PR middle-end/56461
33667 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33668 pointer_set_destroy on not_executed_last_iteration.
33670 PR middle-end/56461
33671 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33673 PR middle-end/56461
33674 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33675 FOR_EACH_DEFINED_FUNCTION when freeing state.
33677 PR middle-end/56461
33678 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33680 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33683 PR middle-end/56461
33684 * ipa-cp.c (decide_whether_version_node): Call vec_free on
33685 known_aggs[i].items and release known_aggs vector.
33687 PR middle-end/56461
33688 * ipa-reference.c (propagate): Free node_info even for alias nodes.
33690 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
33692 * config/microblaze/microblaze.c (microblaze_emit_compare):
33693 Use xor for EQ/NE comparisions.
33694 * config/microblaze/microblaze.md (cstoresf4): Add constraints
33695 (cbranchsf4): Adjust operator to comparison_operator.
33697 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33699 PR middle-end/56461
33700 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33702 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33703 vec_safe_push, always update *slot.
33704 (redirect_edge_var_map_clear): Use vec_free.
33705 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33706 (free_var_map_entry): Use vec_free.
33707 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33708 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33710 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
33712 PR middle-end/45472
33713 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33714 when the may_trap_p bit of the exprs being merged differs.
33715 Reorder tests for speculativeness in the logical and operator.
33717 2013-02-27 Jakub Jelinek <jakub@redhat.com>
33719 * incpath.c (add_standard_paths): Use reconcat instead of concat
33720 where appropriate and avoid leaking memory.
33722 * opts.h: Include obstack.h.
33723 (opts_concat): New prototype.
33724 (opts_obstack): New declaration.
33725 * opts.c (opts_concat): New function.
33726 (opts_obstack): New variable.
33727 (init_options_struct): Call gcc_init_obstack on opts_obstack.
33728 (finish_options): Use opts_concat instead of concat
33729 and XOBNEWVEC instead of XNEWVEC.
33730 * opts-common.c (generate_canonical_option, decode_cmdline_option,
33731 generate_option): Likewise.
33732 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33733 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33736 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33737 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33739 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33741 PR middle-end/56461
33742 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33744 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33746 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33747 (arm_block_move_unaligned_straight): Likewise.
33748 (arm_adjust_block_mem): Likewise.
33750 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
33753 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33754 temp, cond and label.
33755 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33758 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33759 * config/c6x/c6x.h (dbx_register_map): Update declaration.
33762 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33763 of prologue/epilogue functions.
33766 * config/tilegx/tilegx.c (tilegx_expand_prologue):
33767 Remove unused variable cfa_offset.
33768 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33771 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33772 type promotion to unsigned.
33775 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33776 for HOST_WIDE_INT of 32 bit / same size as int.
33777 (arm_block_move_unaligned_straight): Likewise.
33778 (arm_adjust_block_mem): Likewise.
33781 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33784 2013-02-26 Marek Polacek <polacek@redhat.com>
33786 PR tree-optimization/56426
33787 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33789 2013-02-26 Richard Biener <rguenther@suse.de>
33792 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33793 unused variable loops.
33795 2013-02-26 Jakub Jelinek <jakub@redhat.com>
33797 PR tree-optimization/56448
33798 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33799 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33800 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33801 later operands of the references, or even first operand for
33802 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33804 PR tree-optimization/56443
33805 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33806 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33807 to type_for_mode langhook.
33809 2013-02-25 Matt Turner <mattst88@gmail.com>
33811 * doc/invoke.texi: Document r4700.
33813 2013-02-25 Richard Biener <rguenther@suse.de>
33815 PR tree-optimization/56175
33816 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33818 (simplify_bitwise_binary): ... here. Also guard the conversion
33819 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33821 2013-02-25 Catherine Moore <clm@codesourcery.com>
33824 2013-02-24 Catherine Moore <clm@codesourcery.com>
33825 Maciej W. Rozycki <macro@codesourcery.com>
33826 Tom de Vries <tom@codesourcery.com>
33827 Nathan Sidwell <nathan@codesourcery.com>
33828 Iain Sandoe <iain@codesourcery.com>
33829 Nathan Froyd <froydnj@codesourcery.com>
33830 Chao-ying Fu <fu@mips.com>
33832 * doc/extend.texi: (micromips, nomicromips, nocompression):
33833 Document new function attributes.
33834 * doc/invoke.texi (minterlink-compressed, mmicromips,
33835 m14k, m14ke, m14kec): Document new options.
33836 (minterlink-mips16): Update documentation.
33837 * doc/md.texi (ZC, ZD): Document new constraints.
33838 * configure.ac (gcc_cv_as_micromips): Check if linker
33839 supports the .set micromips directive.
33840 * configure: Regenerate.
33841 * config.in: Regenerate.
33842 * config/mips/mips-tables.opt: Regenerate.
33843 * config/mips/micromips.md: New file.
33844 * constraints.md (ZC, AD): New constraints.
33845 * config/mips/predicates.md (movep_src_register): New predicate.
33846 (movep_src_operand): New predicate.
33847 (non_volatile_mem_operand): New predicate.
33848 * config/mips/mips.md (multimem): New type.
33849 (length): Differentiate between 17-bit and 18-bit branch offsets.
33850 (MOVEP1, MOVEP2): New mode iterator.
33851 (mov_<load>l): Use ZC constraint.
33852 (mov_<load>r): Likewise.
33853 (mov_<store>l): Likewise.
33854 (mov_<store>r): Likewise.
33855 (*branch_equality<mode>_inverted): Add microMIPS support.
33856 (*branch_equality<mode>): Likewise.
33857 (*jump_absolute): Likewise.
33858 (indirect_jump_<mode>): Likewise.
33859 (tablejump_<mode>): Likewise.
33860 (<optab>_internal): Likewise.
33861 (sibcall_internal): Likewise.
33862 (sibcall_value_internal): Likewise.
33863 (prefetch): Use constraint ZD.
33864 * config/mips/mips.opt (minterlink-compressed): New option.
33865 (minterlink-mips16): Now an alias for minterlink-compressed.
33866 (mmicromips): New option.
33867 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33868 (compare_and_swap_12): Likewise.
33869 (sync_add<mode>): Likewise.
33870 (sync_<optab>_12): Likewise.
33871 (sync_old_<optab>_12): Likewise.
33872 (sync_new_<optab>_12): Likewise.
33873 (sync_nand_12): Likewise.
33874 (sync_old_nand_12): Likewise.
33875 (sync_new_nand_12): Likewise.
33876 (sync_sub<mode>): Likewise.
33877 (sync_old_add<mode>): Likewise.
33878 (sync_old_sub<mode>): Likewise.
33879 (sync_new_add<mode>): Likewise.
33880 (sync_new_sub<mode>): Likewise.
33881 (sync_<optab><mode>): Likewise.
33882 (sync_old_<optab><mode>): Likewise.
33883 (sync_new_<optab><mode>): Likewise.
33884 (sync_nand<mode>): Likewise.
33885 (sync_old_nand<mode>): Likewise.
33886 (sync_new_nand<mode>): Likewise.
33887 (sync_lock_test_and_set<mode>): Likewise.
33888 (test_and_set_12): Likewise.
33889 (atomic_compare_and_swap<mode>): Likewise.
33890 (atomic_exchange<mode>_llsc): Likewise.
33891 (atomic_fetch_add<mode>_llsc): Likewise.
33892 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33893 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33894 (umips_save_restore_pattern_p): Likewise.
33895 (umips_load_store_pair_p): Likewise.
33896 (umips_output_load_store_pair): Likewise.
33897 (umips_movep_target_p): Likewise.
33898 (umips_12bit_offset_address_p): Likewise.
33899 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33900 (mips_base_mips16): Rename this...
33901 (mips_base_compression_flags): ...to this. Update all uses.
33902 (mips_attribute_table): Add micromips, nomicromips and nocompression.
33903 (mips_mips16_decl_p): Delete.
33904 (mips_nomips16_decl_p): Delete.
33905 (mips_get_compress_on_flags): New function.
33906 (mips_get_compress_off_flags): New function.
33907 (mips_get_compress_mode): New function.
33908 (mips_get_compress_on_name): New function.
33909 (mips_get_compress_off_name): New function.
33910 (mips_insert_attributes): Support multiple compression types.
33911 (mips_merge_decl_attributes): Likewise.
33912 (umips_12bit_offset_address_p): New function.
33913 (mips_start_function_definition): Emit .set micromips directive.
33914 (mips_call_may_need_jalx_p): New function.
33915 (mips_function_ok_for_sibcall): Add microMIPS support.
33916 (mips_print_operand_punctuation): Support short delay slots and
33918 (umips_swm_mask, umips_swm_encoding): New.
33919 (umips_build_save_restore): New function.
33920 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33921 (was_mips16_p): Remove.
33922 (old_compression_mode): New.
33923 (mips_set_compression_mode): New function.
33924 (mips_set_current_function): Add microMIPS support.
33925 (mips_option_override): Likewise.
33926 (umips_save_restore_pattern_p): New function.
33927 (umips_output_save_restore): New function.
33928 (umips_load_store_pair_p_1): New function.
33929 (umips_load_store_pair_p): New function.
33930 (umips_output_load_store_pair_1): New function.
33931 (umips_output_load_store_pair): New function.
33932 (umips_movep_target_p) New function.
33933 (mips_prepare_pch_save): Add microMIPS support.
33934 * config/mips/mips.h (TARGET_COMPRESSION): New.
33935 (TARGET_CPU_CPP_BUILTINS): Update macro
33936 to use new compression flags and to support microMIPS.
33937 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33938 (MIPS_ARCH_FLOAT_SPEC): Likewise.
33939 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33940 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33941 (ASM_SPEC): Support mmicromips and mno-micromips.
33942 (M16STORE_REG_P): New macro.
33943 (MIPS_CALL): Support TARGET_MICROMIPS.
33944 (MICROMIPS_J): New macro.
33945 (mips_base_mips16): Rename this...
33946 (mips_base_compression_flags): ...to this.
33947 (UMIPS_12BIT_OFFSET_P): New macro.
33948 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33949 (MULTILIB_DIRNAMES): Likewise.
33951 2013-02-25 Tom de Vries <tom@codesourcery.com>
33953 PR rtl-optimization/56131
33954 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33955 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33956 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33958 2013-02-25 Tobias Burnus <burnus@net-b.de>
33960 * doc/invoke.texi (-fsanitize=): Move from optimization
33961 to debugging options.
33963 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33965 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33967 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
33968 Alexander Monakov <amonakov@ispras.ru>
33970 PR middle-end/56077
33971 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33972 flush pending lists also on non-jumps. Adjust comment.
33974 2013-02-24 Catherine Moore <clm@codesourcery.com>
33975 Maciej W. Rozycki <macro@codesourcery.com>
33976 Tom de Vries <tom@codesourcery.com>
33977 Nathan Sidwell <nathan@codesourcery.com>
33978 Iain Sandoe <iain@codesourcery.com>
33979 Nathan Froyd <froydnj@codesourcery.com>
33980 Chao-ying Fu <fu@mips.com>
33982 * doc/extend.texi: (micromips, nomicromips, nocompression):
33983 Document new function attributes.
33984 * doc/invoke.texi (minterlink-compressed, mmicromips,
33985 m14k, m14ke, m14kec): Document new options.
33986 (minterlink-mips16): Update documentation.
33987 * doc/md.texi (ZC, ZD): Document new constraints.
33988 * configure.ac (gcc_cv_as_micromips): Check if linker
33989 supports the .set micromips directive.
33990 * configure: Regenerate.
33991 * config.in: Regenerate.
33992 * config/mips/mips-tables.opt: Regenerate.
33993 * config/mips/micromips.md: New file.
33994 * constraints.md (ZC, AD): New constraints.
33995 * config/mips/predicates.md (movep_src_register): New predicate.
33996 (movep_src_operand): New predicate.
33997 (non_volatile_mem_operand): New predicate.
33998 * config/mips/mips.md (multimem): New type.
33999 (length): Differentiate between 17-bit and 18-bit branch offsets.
34000 (MOVEP1, MOVEP2): New mode iterator.
34001 (mov_<load>l): Use ZC constraint.
34002 (mov_<load>r): Likewise.
34003 (mov_<store>l): Likewise.
34004 (mov_<store>r): Likewise.
34005 (*branch_equality<mode>_inverted): Add microMIPS support.
34006 (*branch_equality<mode>): Likewise.
34007 (*jump_absolute): Likewise.
34008 (indirect_jump_<mode>): Likewise.
34009 (tablejump_<mode>): Likewise.
34010 (<optab>_internal): Likewise.
34011 (sibcall_internal): Likewise.
34012 (sibcall_value_internal): Likewise.
34013 (prefetch): Use constraint ZD.
34014 * config/mips/mips.opt (minterlink-compressed): New option.
34015 (minterlink-mips16): Now an alias for minterlink-compressed.
34016 (mmicromips): New option.
34017 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
34018 (compare_and_swap_12): Likewise.
34019 (sync_add<mode>): Likewise.
34020 (sync_<optab>_12): Likewise.
34021 (sync_old_<optab>_12): Likewise.
34022 (sync_new_<optab>_12): Likewise.
34023 (sync_nand_12): Likewise.
34024 (sync_old_nand_12): Likewise.
34025 (sync_new_nand_12): Likewise.
34026 (sync_sub<mode>): Likewise.
34027 (sync_old_add<mode>): Likewise.
34028 (sync_old_sub<mode>): Likewise.
34029 (sync_new_add<mode>): Likewise.
34030 (sync_new_sub<mode>): Likewise.
34031 (sync_<optab><mode>): Likewise.
34032 (sync_old_<optab><mode>): Likewise.
34033 (sync_new_<optab><mode>): Likewise.
34034 (sync_nand<mode>): Likewise.
34035 (sync_old_nand<mode>): Likewise.
34036 (sync_new_nand<mode>): Likewise.
34037 (sync_lock_test_and_set<mode>): Likewise.
34038 (test_and_set_12): Likewise.
34039 (atomic_compare_and_swap<mode>): Likewise.
34040 (atomic_exchange<mode>_llsc): Likewise.
34041 (atomic_fetch_add<mode>_llsc): Likewise.
34042 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
34043 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
34044 (umips_save_restore_pattern_p): Likewise.
34045 (umips_load_store_pair_p): Likewise.
34046 (umips_output_load_store_pair): Likewise.
34047 (umips_movep_target_p): Likewise.
34048 (umips_12bit_offset_address_p): Likewise.
34049 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
34050 (mips_base_mips16): Rename this...
34051 (mips_base_compression_flags): ...to this. Update all uses.
34052 (mips_attribute_table): Add micromips, nomicromips and nocompression.
34053 (mips_mips16_decl_p): Delete.
34054 (mips_nomips16_decl_p): Delete.
34055 (mips_get_compress_on_flags): New function.
34056 (mips_get_compress_off_flags): New function.
34057 (mips_get_compress_mode): New function.
34058 (mips_get_compress_on_name): New function.
34059 (mips_get_compress_off_name): New function.
34060 (mips_insert_attributes): Support multiple compression types.
34061 (mips_merge_decl_attributes): Likewise.
34062 (umips_12bit_offset_address_p): New function.
34063 (mips_start_function_definition): Emit .set micromips directive.
34064 (mips_call_may_need_jalx_p): New function.
34065 (mips_function_ok_for_sibcall): Add microMIPS support.
34066 (mips_print_operand_punctuation): Support short delay slots and
34068 (umips_swm_mask, umips_swm_encoding): New.
34069 (umips_build_save_restore): New function.
34070 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
34071 (was_mips16_p): Remove.
34072 (old_compression_mode): New.
34073 (mips_set_compression_mode): New function.
34074 (mips_set_current_function): Add microMIPS support.
34075 (mips_option_override): Likewise.
34076 (umips_save_restore_pattern_p): New function.
34077 (umips_output_save_restore): New function.
34078 (umips_load_store_pair_p_1): New function.
34079 (umips_load_store_pair_p): New function.
34080 (umips_output_load_store_pair_1): New function.
34081 (umips_output_load_store_pair): New function.
34082 (umips_movep_target_p) New function.
34083 (mips_prepare_pch_save): Add microMIPS support.
34084 * config/mips/mips.h (TARGET_COMPRESSION): New.
34085 (TARGET_CPU_CPP_BUILTINS): Update macro
34086 to use new compression flags and to support microMIPS.
34087 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
34088 (MIPS_ARCH_FLOAT_SPEC): Likewise.
34089 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
34090 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
34091 (ASM_SPEC): Support mmicromips and mno-micromips.
34092 (M16STORE_REG_P): New macro.
34093 (MIPS_CALL): Support TARGET_MICROMIPS.
34094 (MICROMIPS_J): New macro.
34095 (mips_base_mips16): Rename this...
34096 (mips_base_compression_flags): ...to this.
34097 (UMIPS_12BIT_OFFSET_P): New macro.
34098 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
34099 (MULTILIB_DIRNAMES): Likewise.
34101 2013-02-24 Jakub Jelinek <jakub@redhat.com>
34104 * target-globals.c (save_target_globals): For init_reg_sets and
34105 target_reinit remporarily set this_fn_optabs to this_target_optabs.
34107 2013-02-22 James Greenhalgh <james.greenhalgh@arm.com>
34109 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
34110 * config/aarch64/t-aarch64
34111 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
34113 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
34115 PR inline-asm/56148
34116 * lra-constraints.c (process_alt_operands): Reload operand
34117 conflicting with earlier clobber only if no more other conflicting
34120 2013-02-22 Jakub Jelinek <jakub@redhat.com>
34123 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
34124 if not linking a shared library.
34126 2013-02-22 Seth LaForge <sethml@google.com>
34128 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
34130 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
34132 * config/arm/arm.md (split for extendsidi): Update condition.
34133 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
34134 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
34135 (qhs_zextenddi_cstr): Likewise.
34137 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34139 PR middle-end/56420
34140 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
34141 avoid signed wrapping.
34142 (expand_mult): Handle properly multiplication by
34143 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
34144 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
34145 in the compiler if coeff is HOST_WIDE_INT_MIN.
34146 (expand_divmod): Don't make ext_op1 static, change it's type to
34147 uhwi. Avoid undefined behavior in -INTVAL (op1).
34149 PR rtl-optimization/50339
34150 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
34152 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
34153 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
34154 into splitting_ashiftrt field.
34155 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
34157 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
34160 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
34162 PR middle-end/56108
34163 * trans-mem.c (execute_tm_mark): Do not expand transactions that
34164 are sure to go irrevocable.
34166 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
34168 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
34169 scalars are valid operands.
34171 2013-02-21 Martin Jambor <mjambor@suse.cz>
34173 PR tree-optimization/56310
34174 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
34175 only matching indices and non-negative final offsets.
34176 (intersect_aggregates_with_edge): Pass src_idx to
34177 agg_replacements_to_vector. Pass src_idx insstead of index to
34178 intersect_with_agg_replacements.
34180 2013-02-21 Martin Jambor <mjambor@suse.cz>
34182 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
34183 instead of hard-wired defaults.
34185 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
34187 * doc/invoke.texi (MIPS Options): Update documentation of the
34188 floating-point multiply-accumulate instruction restrictions.
34190 2013-02-21 Kostya Serebryany <kcc@google.com>
34192 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
34193 asan_shadow_offset on x86_64 linux.
34195 2013-02-21 Richard Biener <rguenther@suse.de>
34197 PR tree-optimization/56415
34199 2013-02-11 Richard Biener <rguenther@suse.de>
34201 PR tree-optimization/56273
34202 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34205 2013-02-21 Jakub Jelinek <jakub@redhat.com>
34208 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
34211 PR inline-asm/56405
34212 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
34213 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
34215 2013-02-20 Jan Hubicka <jh@suse.cz>
34217 PR tree-optimization/56265
34218 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
34219 when target is referenced for first time.
34221 2013-02-20 Richard Biener <rguenther@suse.de>
34223 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
34224 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
34225 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
34226 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
34227 not return anything.
34228 (rename_ssa_copies): Do not remove unused locals.
34229 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
34230 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
34231 * passes.c (execute_function_todo): Do not schedule unused locals
34232 removal if cleanup_tree_cfg did something.
34233 * tree-ssa-live.c (remove_unused_locals): Dump statistics
34234 about the number of removed locals.
34236 2013-02-20 Richard Biener <rguenther@suse.de>
34238 PR tree-optimization/56398
34239 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
34241 2013-02-20 Martin Jambor <mjambor@suse.cz>
34243 PR tree-optimization/55334
34244 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
34245 restricted pointers to arrays.
34247 2013-02-20 Richard Biener <rguenther@suse.de>
34248 Jakub Jelinek <jakub@redhat.com>
34250 PR tree-optimization/56396
34251 * tree-ssa-ccp.c (n_const_val): New static variable.
34252 (get_value): Return NULL for SSA names we don't have a lattice
34254 (ccp_initialize): Initialize n_const_val.
34255 * tree-ssa-copy.c (n_copy_of): New static variable.
34256 (init_copy_prop): Initialize n_copy_of.
34257 (get_value): Return NULL_TREE for SSA names we don't have a
34260 2013-02-20 Martin Jambor <mjambor@suse.cz>
34262 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
34264 2013-02-20 Richard Biener <rguenther@suse.de>
34266 * genpreds.c (write_lookup_constraint): Do not compare first
34267 letter of the constraint again.
34269 2013-02-20 Richard Biener <rguenther@suse.de>
34271 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
34273 (get_use_iv_cost): Terminate hashtable walk when coming across
34276 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
34278 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
34279 reassociation for avx2 targets.
34281 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34283 * config/microblaze/microblaze.c: microblaze_has_clz = 0
34284 Add version check for v8.10.a to enable microblaze_has_clz
34285 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
34286 version and TARGET_PATTERN_COMPARE check
34287 * config/microblaze/microblaze.md: New clzsi2 instruction
34289 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34291 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
34292 function before branching.
34294 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34296 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
34298 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
34300 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
34302 PR middle-end/55889
34303 * sel-sched.c: Include ira.h.
34304 (implicit_clobber_conflict_p): New function.
34305 (moveup_expr): Use it.
34306 * Makefile.in (sel-sched.o): Depend on ira.h.
34308 2013-02-19 Richard Biener <rguenther@suse.de>
34310 PR tree-optimization/56384
34311 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
34312 (vn_hash_type): Split out from ...
34313 (vn_hash_constant_with_type): ... here.
34314 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
34315 (vn_phi_eq): Compare types from vn_phi_s structure.
34316 (vn_phi_lookup): Populate vn_phi_s type.
34317 (vn_phi_insert): Likewise.
34319 2013-02-19 Jakub Jelinek <jakub@redhat.com>
34321 PR tree-optimization/56350
34322 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
34323 if haven't found reduction or nested cycle operand, rather than
34324 asserting we must find it.
34326 PR tree-optimization/56381
34327 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
34330 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
34331 Jakub Jelinek <jakub@redhat.com>
34334 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
34335 (swap_optab_enable): Same.
34336 (init_all_optabs): Use argument instead of global.
34337 * tree.h (struct tree_optimization_option): New field target_optabs.
34338 * expr.h (init_all_optabs): Add argument to prototype.
34339 (TREE_OPTIMIZATION_OPTABS): New.
34340 (save_optabs_if_changed): Protoize.
34341 * optabs.h: Declare this_fn_optabs.
34342 * optabs.c (save_optabs_if_changed): New.
34343 Declare this_fn_optabs.
34344 (init_optabs): Add argument to init_all_optabs() call.
34345 * function.c (invoke_set_current_function_hook): Handle per
34347 * function.h (struct function): New field optabs.
34348 * config/mips/mips.c (mips_set_mips16_mode): Handle when
34349 optimization_current_node has changed.
34350 * target-globals.h (save_target_globals_default_opts): Protoize.
34351 * target-globals.c (save_target_globals_default_opts): New.
34353 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34356 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34357 registers %fr12 and %fr12R as call used.
34360 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34361 and HImode, require all displacements to be an integer multiple of
34363 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34364 only allow QImode and HImode when reload is in progress and strict is
34365 true. Likewise for symbolic addresses. Use base14_operand to check
34366 displacements in REG+BASE addresses.
34368 2013-02-18 Richard Biener <rguenther@suse.de>
34370 PR tree-optimization/56366
34371 * tree-vect-loop.c (get_initial_def_for_induction): Properly
34372 handle sign-conversion of outer-loop initial induction value.
34374 2013-02-18 Richard Biener <rguenther@suse.de>
34376 PR middle-end/56349
34377 * cfghooks.c (merge_blocks): If we merge a latch into another
34378 block adjust references to it.
34379 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34380 (verify_loop_structure): Verify that a recorded latch is in fact
34383 2013-02-18 Richard Biener <rguenther@suse.de>
34385 PR tree-optimization/56321
34386 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34387 order SSA name release and virtual operand unlinking.
34389 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34391 * config/microblaze/microblaze.md (save_stack_block): Define.
34392 (restore_stack_block): Likewise.
34394 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34396 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34397 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34398 * config/microblaze/microblaze.c (microblaze_option_override):
34399 Bail out early for PIC modes when target does not support PIC.
34401 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34403 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34404 Replace with a microblaze version.
34405 (microblaze_trampoline_init): Adapt for microblaze.
34406 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34409 2013-02-16 Jakub Jelinek <jakub@redhat.com>
34410 Dodji Seketeli <dodji@redhat.com>
34413 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34414 (instrument_mem_region_access): Do not forget to always put
34415 instrumentation of the of 'base' and 'base + len' in a "if (len !=
34416 0) statement, even for cases where either 'base' or 'base + len'
34417 are not instrumented -- because they have been previously
34418 instrumented. Simplify the logic by putting all the statements
34419 instrument 'base + len' inside a sequence, and then insert that
34420 sequence right before the current insertion point. Then, to
34421 instrument 'base + len', just get an iterator on that statement.
34422 And do not forget to update the pointer to iterator the function
34423 received as argument.
34425 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
34427 PR rtl-optimization/56348
34428 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34430 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
34432 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34433 (clean_graph_dump_file): Pass base to start_graph_dump.
34435 2013-02-14 Richard Henderson <rth@redhat.com>
34438 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34440 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
34442 * collect2-aix.h: Define F_LOADONLY.
34444 2013-02-14 Richard Biener <rguenther@suse.de>
34447 * varasm.c (output_constant_def_1): Get the decl representing
34448 the constant as argument.
34449 (output_constant_def): Wrap output_constant_def_1.
34450 (make_decl_rtl): Use output_constant_def_1 with the decl
34451 representing the constant.
34452 (build_constant_desc): Optionally re-use a decl already
34453 representing the constant.
34454 (tree_output_constant_def): Adjust.
34456 2013-02-14 Dodji Seketeli <dodji@redhat.com>
34459 * asan.c (instrument_builtin_call): Really put the length of the
34460 second source argument into src1_len.
34462 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34464 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34465 argument. If it is false, don't create edge from then_bb to
34467 (insert_if_then_before_iter): Pass true to it.
34468 (build_check_stmt): Pass false to it.
34469 (transform_statements): Flush hash table only on extended basic
34470 block boundaries, rather than at the beginning of every bb.
34471 Don't flush hash table on nonfreeing_call_p calls.
34472 * tree-flow.h (nonfreeing_call_p): New prototype.
34473 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34475 2013-02-13 David S. Miller <davem@davemloft.net>
34477 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34479 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
34482 * ira.c (max_regno_before_ira): Move from ...
34484 (fix_reg_equiv_init): Use max_regno_before_ira instead of
34487 2013-02-13 Jakub Jelinek <jakub@redhat.com>
34489 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34491 2013-02-13 Richard Biener <rguenther@suse.de>
34494 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34495 globals in MEM_REFs.
34497 2013-02-13 Richard Biener <rguenther@suse.de>
34499 * loop-init.c (loop_optimizer_init): Clear loop state when
34500 re-initializing preserved loops.
34501 * loop-unswitch.c (unswitch_single_loop): Return whether
34502 we unswitched the loop. Do not verify loop state here.
34503 (unswitch_loops): When we unswitched a loop discover new loops.
34505 2013-02-13 Kostya Serebryany <kcc@google.com>
34507 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34509 * sanitizer.def: Rename __asan_init to __asan_init_v1.
34511 2013-02-12 Dodji Seketeli <dodji@redhat.com>
34513 Avoid instrumenting duplicated memory access in the same basic block
34514 * Makefile.in (asan.o): Add new dependency on hash-table.h
34515 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34516 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34517 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34518 (free_mem_ref_resources, has_mem_ref_been_instrumented)
34519 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34520 (get_mem_ref_of_assignment): New functions.
34521 (get_mem_refs_of_builtin_call): Extract from
34522 instrument_builtin_call and tweak a little bit to make it fit with
34524 (instrument_builtin_call): Use the new
34525 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
34526 of is_gimple_builtin_call.
34527 (instrument_derefs, instrument_mem_region_access): Insert the
34528 instrumented memory reference into the hash table.
34529 (maybe_instrument_assignment): Renamed instrument_assignment into
34530 this, and change it to advance the iterator when instrumentation
34531 actually happened and return true in that case. This makes it
34532 homogeneous with maybe_instrument_assignment, and thus give a
34533 chance to callers to be more 'regular'.
34534 (transform_statements): Clear the memory reference hash table
34535 whenever we enter a new BB, when we cross a function call, or when
34536 we are done transforming statements. Use
34537 maybe_instrument_assignment instead of instrumentation. No more
34538 need to special case maybe_instrument_assignment and advance the
34539 iterator after calling it; it's now handled just like
34540 maybe_instrument_call. Update comment.
34542 2013-02-13 Richard Biener <rguenther@suse.de>
34544 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34545 Fix loop discovery code.
34547 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
34549 PR inline-asm/56148
34550 * lra-constraints.c (process_alt_operands): Match early clobber
34551 operand with itself. Check conflicts with earlyclobber only if
34552 the operand is not reloaded. Prefer to reload conflicting operand
34553 if earlyclobber and matching operands are the same.
34555 2013-02-12 Richard Biener <rguenther@suse.de>
34558 * lto-streamer-out.c (write_symbol): Do not output symbols
34559 for hard register variables.
34561 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
34564 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34565 (umulsidi3_insn, mulsidi3_insn): New insns.
34567 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
34569 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34570 (struct tune_params): Add vec_costs field.
34571 * config/arm/arm.c (arm_builtin_vectorization_cost)
34572 (arm_add_stmt_cost): New functions.
34573 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34574 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34575 (arm_default_vec_cost): New struct of type cpu_vec_costs.
34576 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34577 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34578 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34579 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34581 2013-02-12 Richard Biener <rguenther@suse.de>
34584 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34585 decls again if possible.
34587 2013-02-12 Richard Biener <rguenther@suse.de>
34589 PR middle-end/56288
34590 * tree-ssa.c (verify_ssa_name): Fix check, move
34591 SSA_NAME_IN_FREE_LIST check up.
34593 2013-02-12 Jakub Jelinek <jakub@redhat.com>
34594 Steven Bosscher <steven@gcc.gnu.org>
34596 PR rtl-optimization/56151
34597 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34598 equal to op0 or op1, and last_insn pattern is CODE operation
34599 with MEM dest and one of the operands matches that MEM.
34601 2013-02-11 Sriraman Tallam <tmsriram@google.com>
34603 * doc/extend.texi: Document Function Multiversioning and "default"
34604 parameter string to target attribute.
34605 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34606 target attribute parameter is "default".
34607 (ix86_compare_version_priority): Remove checks for target attribute.
34608 (ix86_mangle_function_version_assembler_name): Change error to sorry.
34609 Remove check for target attribute equal to NULL. Add assert.
34610 (ix86_generate_version_dispatcher_body): Change error to sorry.
34612 2013-02-11 Iain Sandoe <iain@codesourcery.com>
34613 Jack Howarth <howarth@bromo.med.uc.edu>
34614 Patrick Marlier <patrick.marlier@gmail.com>
34617 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34618 define ENDFILE_SPEC as TM_DESTRUCTOR.
34619 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34621 2013-02-11 Alexander Potapenko <glider@google.com>
34622 Jack Howarth <howarth@bromo.med.uc.edu>
34623 Jakub Jelinek <jakub@redhat.com>
34626 * config/darwin.c (cdtor_record): Rename ctor_record.
34627 (sort_cdtor_records): Rename sort_ctor_records.
34628 (finalize_dtors): New routine to sort destructors by
34629 priority before use in assemble_integer.
34630 (machopic_asm_out_destructor): Use finalize_dtors if needed.
34632 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
34634 PR rtl-optimization/56275
34635 * simplify-rtx.c (avoid_constant_pool_reference): Check that
34636 offset is non-negative and less than cmode size before
34637 calling simplify_subreg.
34639 2013-02-11 Richard Biener <rguenther@suse.de>
34641 PR tree-optimization/56264
34642 * cfgloop.h (fix_loop_structure): Adjust prototype.
34643 * loop-init.c (fix_loop_structure): Return the number of
34644 newly discovered loops.
34645 * tree-cfgcleanup.c (repair_loop_structures): When new loops
34646 are discovered, do a full loop-closed SSA rewrite.
34648 2013-02-11 Richard Biener <rguenther@suse.de>
34650 PR tree-optimization/56273
34651 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34653 (check_array_ref): Fix missing newline in dumps.
34654 (search_for_addr_array): Likewise.
34656 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
34658 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34660 2013-02-09 Jakub Jelinek <jakub@redhat.com>
34663 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34665 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
34667 PR rtl-optimization/56246
34668 * lra-constraints.c (simplify_operand_subreg): Try to reuse
34670 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34671 constraints are satisfied.
34673 2013-02-08 Jeff Law <law@redhat.com>
34676 * emit-rtl.c (reg_is_parm_p): New function.
34677 * regs.h (reg_is_parm_p): New prototype.
34678 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34679 callee-clobbered registers.
34681 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
34684 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34685 If there is no implicit builtin declaration, just return NULL.
34687 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34689 * config/i386/sse.md (FMAMODEM): New mode iterator.
34690 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34691 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34693 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34695 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34696 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34697 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34699 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
34701 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34702 (microblaze*-*-elf): Likewise.
34703 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34705 * config/microblaze/microblaze-c.c: Add builtin defines for
34706 _LITTLE_ENDIAN and _BIG_ENDIAN.
34707 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34708 add to TARGET_DEFAULT flags.
34709 Expand ASM_SPEC and LINK_SPEC.
34710 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34711 * config/microblaze/microblaze.md: Update extendsidi2 and
34712 movdi_internal instructions to use low-order / high-order reg
34714 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34715 options and inversemask / mask of LITTLE_ENDIAN.
34716 * config/microblaze/t-microblaze: Expand multilib options to
34717 include mlittle-endian (le) and update exceptions patterns.
34719 2013-02-08 Jakub Jelinek <jakub@redhat.com>
34721 PR rtl-optimization/56195
34722 * lra-constraints.c (get_reload_reg): Don't reuse regs
34723 if they have smaller mode than requested, if they have
34724 wider mode than requested, try to return a SUBREG.
34726 PR tree-optimization/56250
34727 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34728 if type is unsigned and code isn't MULT_EXPR.
34730 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34732 PR tree-optimization/56064
34733 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34734 bits according to mode.
34735 * fixed-value.h (fixed_from_double_int)
34736 (const_fixed_from_double_int): Adjust comments.
34738 2013-02-08 Richard Biener <rguenther@suse.de>
34741 * lto-streamer.h (struct data_in): Remove current_file, current_line
34742 and current_col members.
34743 * lto-streamer-out.c (lto_output_location): Stream changed bits
34744 en-block for efficiency.
34745 * lto-streamer-in.c (clear_line_info): Remove.
34746 (lto_input_location): Cache current file, line and column
34747 globally via local statics. Read changed bits en-block.
34748 (input_function): Do not call clear_line_info.
34749 (lto_read_body): Likewise.
34750 (lto_input_toplevel_asms): Likewise.
34752 2013-02-08 Michael Matz <matz@suse.de>
34754 PR tree-optimization/52448
34755 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34756 (nt_call_phase): New static.
34757 (add_or_mark_expr): Only mark accesses with newer phase than any
34759 (nonfreeing_call_p): New.
34760 (nt_init_block): Update nt_call_phase, mark blocks as visited.
34761 (nt_fini_block): Keep blocks marked as visited.
34762 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34764 2013-02-08 Richard Biener <rguenther@suse.de>
34766 * ira.c (ira): Free broken dominator information.
34768 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
34770 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34772 2013-02-08 Marek Polacek <polacek@redhat.com>
34774 * cfgloop.c (verify_loop_structure): Add more checking of headers.
34776 2013-02-08 Richard Biener <rguenther@suse.de>
34778 PR middle-end/56181
34779 * cfgloop.h (flow_loops_find): Adjust.
34780 (bb_loop_header_p): Declare.
34781 * cfgloop.c (bb_loop_header_p): New function split out from ...
34782 (flow_loops_find): ... here. Adjust function signature,
34783 support incremental loop structure update.
34784 (verify_loop_structure): Cleanup. Verify a loop is a loop.
34785 * cfgloopmanip.c (fix_loop_structure): Move ...
34786 * loop-init.c (fix_loop_structure): ... here.
34787 (apply_loop_flags): Split out from ...
34788 (loop_optimizer_init): ... here.
34789 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
34790 in incremental mode, only remove dead loops here.
34792 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
34795 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34796 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34797 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34798 (*round<mode>3.libgcc): New insns for fixed-modes.
34799 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34800 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34801 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34802 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34803 implementations. Define to __builtin_avr_absFX,
34804 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34805 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34806 __builtin_avr_countlsFX, respectively.
34807 * config/avr/avr-c.c (target.h): Include it.
34808 (enum avr_builtin_id): New enum.
34809 (avr_resolve_overloaded_builtin): New static function.
34810 (avr_register_target_pragmas): Use it to set
34811 targetm.resolve_overloaded_builtin.
34812 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34813 tree nodes used by DEF_BUILTIN.
34814 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34815 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34816 <AVR_BUILTIN_xxBITS>: Same.
34818 2013-02-08 Richard Biener <rguenther@suse.de>
34820 * cfgloop.c (verify_loop_structure): Properly handle
34821 a loop exiting to another loop header.
34822 * ira-int.h (ira_loops): Remove.
34823 * ira.c (ira_loops): Remove.
34824 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34825 (do_reload): Use loop_optimizer_finalize.
34826 * ira-build.c (create_loop_tree_nodes): Use get_loops and
34827 number_of_loops to access the loop tree.
34828 (more_one_region_p): Likewise.
34829 (finish_loop_tree_nodes): Likewise.
34830 (rebuild_regno_allocno_maps): Likewise.
34831 (mark_loops_for_removal): Likewise.
34832 (mark_all_loops_for_removal): Likewise.
34833 (remove_unnecessary_regions): Likewise.
34834 (ira_build): Likewise.
34835 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34837 2013-02-08 Richard Biener <rguenther@suse.de>
34839 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34840 * ipa-pure-const.c (analyze_function): Avoid calling
34841 mark_irreducible_loops twice.
34842 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34844 2013-02-07 David S. Miller <davem@davemloft.net>
34846 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34848 * var-tracking.c (vt_add_function_parameter): Test the presence of
34849 HAVE_window_save properly and do not remap argument registers when
34850 we have a leaf function.
34852 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
34855 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34857 * config/i386/i386.c (ix86_print_operand): Ditto.
34859 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34861 * lra-constraints.c (process_alt_operands): Fix recently added comment.
34863 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
34865 PR rtl-optimization/56225
34866 * lra-constraints.c (process_alt_operands): Check that reload hard
34867 reg can hold value for strict_low_part.
34869 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34872 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34873 dwarf2out_end_function.
34874 (in_first_function_p, maybe_at_text_label_p,
34875 first_loclabel_num_not_at_text_label): New variables.
34876 (dwarf2out_var_location): In the first function find out
34877 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34878 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34881 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
34883 PR rtl-optimization/56178
34884 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34885 SUBREG of a register. Tidy up related block of code.
34886 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34887 note if the source is a register or a SUBREG of a register.
34889 2013-02-07 Jakub Jelinek <jakub@redhat.com>
34892 * config/rs6000/rs6000.md (ptrm): New mode attr.
34893 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34894 call_value_indirect_aix<pttrsize>,
34895 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34898 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
34900 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34901 if -bnortl. Convert to strcmp and strncmp.
34903 2013-02-07 Alan Modra <amodra@gmail.com>
34906 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34907 addresses won't wrap when offsetting.
34908 (rs6000_secondary_reload): Provide secondary reloads needed for
34909 wrapping LO_SUM addresses.
34911 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
34913 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34914 MACH, just __MACH__.
34916 2013-02-06 Richard Biener <rguenther@suse.de>
34918 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34919 instead of calling fix_loop_structure.
34921 2013-02-06 Jakub Jelinek <jakub@redhat.com>
34923 PR middle-end/56217
34924 * omp-low.c (use_pointer_for_field): Return false if
34925 lower_send_shared_vars doesn't generate any copy-out code.
34927 2013-02-06 Tom de Vries <tom@codesourcery.com>
34929 PR rtl-optimization/56131
34930 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34931 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
34932 of the label is NULL. Add comment.
34934 2013-02-05 Jakub Jelinek <jakub@redhat.com>
34936 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34939 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34940 (STATIC_LIBTSAN_LIBS): Likewise.
34941 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34942 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34943 is defined, don't add anything else beyond that.
34944 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34945 (LINK_COMMAND_SPEC): Use them.
34947 PR tree-optimization/56205
34948 * tree-stdarg.c (check_all_va_list_escapes): Return true if
34949 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34950 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34952 2013-02-05 Richard Biener <rguenther@suse.de>
34954 PR tree-optimization/53342
34955 PR tree-optimization/53185
34956 * tree-vectorizer.h (vect_check_strided_load): Remove.
34957 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34958 not disallow peeling for vectorized strided loads.
34959 (vect_check_strided_load): Make static and simplify.
34960 (vect_analyze_data_refs): Adjust.
34961 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34962 correctly when vectorizing strided loads.
34964 2013-02-05 Richard Biener <rguenther@suse.de>
34966 * doc/install.texi: Refer to ISL, not PPL.
34968 2013-02-05 Jan Hubicka <jh@suse.cz>
34970 PR tree-optimization/55789
34971 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34973 2013-02-05 Jan Hubicka <jh@suse.cz>
34975 PR tree-optimization/55789
34976 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34977 the dead call anyway.
34979 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
34982 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34984 2013-02-04 Alexander Potapenko <glider@google.com>
34985 Jack Howarth <howarth@bromo.med.uc.edu>
34986 Jakub Jelinek <jakub@redhat.com>
34989 * config/darwin.c (sort_ctor_records): Stabilized qsort
34990 on constructor priority by using original position.
34991 (finalize_ctors): New routine to sort constructors by
34992 priority before use in assemble_integer.
34993 (machopic_asm_out_constructor): Use finalize_ctors if needed.
34995 2013-02-04 Jakub Jelinek <jakub@redhat.com>
34998 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34999 about visibility on artificial decls.
35000 * config/sol2.c (solaris_assemble_visibility): Likewise.
35002 2013-02-04 Kai Tietz <ktietz@redhat.com>
35005 * config/i386/i386.c (function_value_ms_64): Add additional valtype
35006 argument and improve checking of return-argument types for 16-byte
35008 (ix86_function_value_1): Add additional valtype argument on call
35009 of function_value_64.
35010 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
35011 handling infunction_value_64 function.
35013 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35015 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
35017 2013-02-04 Richard Biener <rguenther@suse.de>
35019 PR tree-optimization/56188
35020 * tree-ssa-structalias.c (label_visit): Consider case with
35021 initially non-empty points-to set.
35022 (perform_var_substitution): Dump node mapping and clean up.
35024 2013-02-04 Richard Guenther <rguenther@suse.de>
35027 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
35028 node prevail as last resort.
35029 (lto_symtab_merge_decls): Remove guard on LTRANS here.
35030 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
35032 2013-02-04 Richard Biener <rguenther@suse.de>
35034 PR tree-optimization/56113
35035 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
35037 (equiv_class_lookup_or_add): ... this.
35038 (label_visit): Adjust and fix error in previous patch.
35039 (perform_var_substitution): Adjust.
35041 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
35043 * config/sh/divtab.c: Fix formatting and comments throughout the file.
35044 * config/sh/sh4-300.md: Likewise.
35045 * config/sh/sh4a.md: Likewise.
35046 * config/sh/constraints.md: Likewise.
35047 * config/sh/sh.md: Likewise.
35048 * config/sh/netbsd-elf.h: Likewise.
35049 * config/sh/predicates.md: Likewise.
35050 * config/sh/sh-protos.h: Likewise.
35051 * config/sh/ushmedia.h: Likewise.
35052 * config/sh/linux.h: Likewise.
35053 * config/sh/sh.c: Likewise.
35054 * config/sh/superh.h: Likewise.
35055 * config/sh/elf.h: Likewise.
35056 * config/sh/sh4.md: Likewise.
35057 * config/sh/sh.h: Likewise.
35059 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35061 * config/pa/constraints.md: Adjust unused letters. Change "T"
35062 constraint to match_test floating_point_store_memory_operand().
35063 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
35064 (base14_operand): New.
35065 (floating_point_store_memory_operand): New.
35066 (integer_store_memory_operand): Revise to use base14_operand and
35067 reg_plus_base_memory_operand.
35068 (move_dest_operand): Allow symbolic_memory_operands.
35069 (symbolic_memory_operand): Check for LO_SOM.
35070 (symbolic_operand): Change default case to break.
35071 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
35072 CONST_DOUBLE values to be reloaded by putting them into memory when
35073 the destination is a floating point register.
35074 (movdf): Remove code to handle CONST_DOUBLE.
35076 (reload_indf_r1): New.
35077 (reload_insf_r1): New.
35078 Consistently use "Q" and "T" constraints with integer and floating
35079 point move instructions, respectively.
35080 (movdi): Remove FAIL.
35081 Change predicate for source operand unamed DImode move from
35082 general_operand to move_src_operand.
35083 (umulsidi3): Change predicate for destination operand to
35085 Likewise for similar unamed patterns.
35086 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
35087 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
35088 (hppa_legitimize_address): Simplify mask calculation.
35089 (pa_emit_move_sequence): Revised handling of secondary reloads from
35090 REG+D addresses for floating point loads and stores. Directly handle
35091 loading CONST0_RTX (mode) to a floating point register.
35092 (pa_secondary_reload): Handle reloading DF and SFmode constant values
35093 to floating point registers. Don't restrict secondary reloads to
35094 floating point registers to integer modes. Revise some comments and
35096 (TARGET_LEGITIMATE_ADDRESS_P): Define.
35097 (pa_legitimate_address_p): New.
35098 (pa_legitimize_reload_address): New.
35099 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
35100 (STRICT_REG_OK_FOR_BASE_P): New.
35101 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
35102 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
35104 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
35105 Andrew Dixie <andrewd@gentrack.com>
35107 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
35110 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
35112 * expmed.c (extract_bit_field_1): Pass the full width of the
35113 structure to get_best_reg_extraction_insn.
35115 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35118 * configure.ac (use_cxa_atexit): Add AIX.
35119 * configure: Regenerate.
35121 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
35123 2013-02-01 Jakub Jelinek <jakub@redhat.com>
35126 * final.c (need_profile_function): New variable.
35127 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
35128 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
35129 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
35130 notes, targetm.asm_out.function_prologue doesn't emit anything,
35131 HAVE_prologue and profiler should be emitted before prologue,
35132 set need_profile_function instead of emitting it.
35133 (final_scan_insn): If need_profile_function, emit
35134 profile_function on the first NOTE_INSN_BASIC_BLOCK or
35135 NOTE_INSN_FUNCTION_BEG note.
35137 2013-02-01 Richard Henderson <rth@redhat.com>
35139 * config/rs6000/rs6000.md (smulditi3): New.
35142 * config/alpha/alpha.md (umulditi3): New.
35144 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
35146 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
35147 (ASM_OUTPUT_ALIGNED_LOCAL): New.
35149 2013-02-01 Richard Biener <rguenther@suse.de>
35151 PR tree-optimization/56113
35152 * tree-ssa-structalias.c (label_visit): Reduce work for
35153 single-predecessor nodes.
35155 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
35157 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
35158 range isn't testing for zero.
35160 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
35162 PR middle-end/56113
35163 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
35165 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
35166 Nick Clifton <nickc@redhat.com>
35168 * config/v850/constraints.md (Q): Define as a memory constraint.
35169 * config/v850/predicates.md (label_ref_operand): New predicate.
35170 (e3v5_shift_operand): New predicate.
35171 (ior_operator): New predicate.
35172 * config/v850/t-v850: Add e3v5 multilib.
35173 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
35174 (v850_gen_movdi): Prototype.
35175 * config/v850/v850.c: Add support for e3v5 architecture.
35176 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
35178 (construct_save_jarl): Add e3v5 long JARL support.
35179 (v850_adjust_insn_length): New function. Adjust length of call
35180 insns when using e3v5 instructions.
35181 (v850_gen_movdi): New function: Generate instructions to move a
35183 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
35184 (CPP_SPEC): Define __v850e3v5__ as appropriate.
35185 (TARGET_USE_FPU): Enable for e3v5.
35186 (CONST_OK_FOR_W): New macro.
35187 (ADJUST_INSN_LENGTH): Define.
35188 * config/v850/v850.md (UNSPEC_LOOP): Define.
35189 (attr cpu): Add v850e3v5.
35190 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
35191 (movdi): New pattern.
35192 (movdi_internal): New pattern.
35193 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
35194 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
35195 (cstoresf4): Likewise.
35196 (cstoredf4): Likewise.
35197 (insv): New pattern.
35198 (rotlso3_a): New pattern.
35199 (rotlsi3_b): New pattern
35200 (rotlsi3_v850e3v5): New pattern.
35201 (doloop_begin): New pattern.
35202 (fix_loop_counter): New pattern.
35203 (doloop_end): New pattern.
35204 (branch_normal): Add e3v5 long branch support.
35205 (branch_invert): Likewise.
35206 (branch_z_normal): Likewise.
35207 (branch_z_invert): Likewise.
35208 (branch_nz_normal): Likewise.
35209 (branch_nz_invert): Likewise.
35210 (call_internal_short): Add e3v5 register-indirect JARL support.
35211 (call_internal_long): Likewise.
35212 (call_value_internal_short): Likewise.
35213 (call_value_internal_long): Likewise.
35214 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
35215 (mloop): New option.
35216 * config.gcc: Add support for configuring v840e3v5 target.
35217 * doc/invoke.texi: Document new v850 specific command line options.
35219 2013-01-31 Paul Koning <ni1d@arrl.net>
35223 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
35224 children if parent is a class.
35225 (prune_unused_types_prune): Don't add DW_AT_declaration.
35227 2013-01-31 Richard Biener <rguenther@suse.de>
35229 PR tree-optimization/56157
35230 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
35231 match up operand with SLP child.
35233 2013-01-31 Jason Merrill <jason@redhat.com>
35236 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
35237 parameters the first time.
35238 (gen_scheduled_generic_parms_dies): Check completeness here.
35240 2013-01-31 Richard Biener <rguenther@suse.de>
35242 PR middle-end/53073
35243 * common.opt (faggressive-loop-optimizations): New flag,
35244 enabled by default.
35245 * doc/invoke.texi (faggressive-loop-optimizations): Document.
35246 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
35247 infer_loop_bounds_from_undefined by it.
35249 2013-01-31 Richard Biener <rguenther@suse.de>
35251 PR tree-optimization/56150
35252 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
35253 visit virtual operands.
35254 (find_uses_to_rename_bb): Likewise.
35256 2013-01-31 Richard Biener <rguenther@suse.de>
35258 PR tree-optimization/56150
35259 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
35260 mixed store non-store stmts.
35262 2013-01-30 Jakub Jelinek <jakub@redhat.com>
35265 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
35266 LIBASAN_EARLY_SPEC is defined.
35267 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
35268 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
35270 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
35273 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
35274 invalid args instead of ICEing on it.
35275 (ix86_valid_target_attribute_tree): Return error_mark_node if
35276 ix86_valid_target_attribute_inner_p failed.
35277 (ix86_valid_target_attribute_p): Return false only if
35278 ix86_valid_target_attribute_tree returned error_mark_node. Allow
35279 target("default") attribute.
35280 (sorted_attr_string): Change argument from const char * to tree,
35281 merge in all target attribute arguments rather than just one.
35282 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
35283 instead of free. Avoid using strcat.
35284 (ix86_mangle_function_version_assembler_name): Mangle
35285 target("default") as if no target attribute is present. Adjust
35286 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
35287 instead of xmalloc and XDELETEVEC instead of free.
35288 (ix86_function_versions): Don't return true if one of the decls
35289 doesn't have target attribute. If they don't and one of the decls
35290 is DECL_FUNCTION_VERSIONED, report an error. Adjust
35291 sorted_attr_string caller. Use XDELETEVEC instead of free.
35292 (ix86_supports_function_versions): Remove.
35293 (make_name): Fix up formatting.
35294 (make_dispatcher_decl): Remove resolver_name and its initialization.
35295 Avoid leaking memory.
35296 (is_function_default_version): Return true if there is
35297 target("default") attribute rather than no target attribute at all.
35298 (make_resolver_func): Avoid leaking memory.
35299 (ix86_generate_version_dispatcher_body): Likewise.
35300 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
35301 * target.def (supports_function_versions): Remove.
35302 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
35303 * doc/tm.texi: Regenerated.
35305 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
35307 PR rtl-optimization/56144
35308 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
35309 for values with side effects.
35311 2013-01-30 Richard Biener <rguenther@suse.de>
35313 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
35314 (sparseset_pop): Likewise.
35315 * cfganal.c (compute_idf): Likewise. Increase work-stack size
35316 to be able to use quick_push in the worker loop.
35318 2013-01-30 Marek Polacek <polacek@redhat.com>
35320 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
35322 2013-01-30 Richard Biener <rguenther@suse.de>
35325 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
35327 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
35329 PR tree-optimization/56064
35330 * fixed-value.c (fixed_from_double_int): New function.
35331 * fixed-value.h (fixed_from_double_int): New prototype.
35332 (const_fixed_from_double_int): New static inline function.
35333 * fold-const.c (native_interpret_fixed): New static function.
35334 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
35335 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
35336 (native_encode_fixed): New static function.
35337 (native_encode_expr) <FIXED_CST>: Use it.
35338 (native_interpret_int): Move double_int worker code to...
35339 * double-int.c (double_int::from_buffer): ...this new static method.
35340 * double-int.h (double_int::from_buffer): Prototype it.
35342 2013-01-30 Richard Biener <rguenther@suse.de>
35344 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
35345 New pointer-map and obstack.
35346 (init_alias_vars): Allocate pointer-map and obstack.
35347 (delete_points_to_sets): Free them.
35348 (find_what_var_points_to): Cache result.
35349 (find_what_p_points_to): Adjust for changed interface of
35350 find_what_var_points_to.
35351 (compute_points_to_sets): Likewise.
35352 (ipa_pta_execute): Likewise.
35354 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35356 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35357 * configure: Regenerate.
35358 * config.in: Regenerate.
35359 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35360 #nobits/#progbits if supported.
35362 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
35365 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35366 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35367 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35369 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35371 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35372 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35374 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35376 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35377 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35379 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35381 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35383 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35384 * config/arm/cortex-a7.md: New bypasses using
35385 arm_mac_accumulator_is_result.
35387 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35389 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
35390 (cortex_a7_neon_mla): Likewise.
35391 (cortex_a7_fpfmad): New reservation.
35392 (cortex_a7_fpmacs): Use ffmas and update required units.
35393 (cortex_a7_fpmuld): Update required units and latency.
35394 (cortex_a7_fpmacd): Likewise.
35395 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35396 (cortex_a7_neon). Likewise.
35397 (bypass) Update participating units.
35399 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
35401 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35402 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35404 * config/arm/vfp11.md (vfp_farith): Use ffmas.
35405 (vfp_fmul): Use ffmad.
35406 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35407 (cortex_r4_fmacd): Use ffmad.
35408 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35409 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
35410 (cortex_a9_fmacd): Use ffmad.
35411 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35412 (cortex_a8_vfp_macd): Use ffmad.
35413 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35414 (cortex_a5_fpmacd): Use ffmad.
35415 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35416 (cortex_a15_vfp_macd): Use ffmad.
35417 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35419 2013-01-29 Jason Merrill <jason@redhat.com>
35422 * varasm.c (default_assemble_visibility): Don't warn about
35423 visibility on artificial decls.
35425 2013-01-29 Richard Biener <rguenther@suse.de>
35427 PR tree-optimization/56113
35428 * tree-ssa-structalias.c (equiv_class_lookup): Also return
35430 (label_visit): Free duplicate bitmaps and record the leader instead.
35431 (perform_var_substitution): Adjust.
35433 2013-01-29 Richard Biener <rguenther@suse.de>
35435 PR tree-optimization/55270
35436 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35437 the CFG, schedule loops for fixup.
35439 2013-01-29 Nick Clifton <nickc@redhat.com>
35441 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35444 2013-01-28 Leif Ekblad <leif@rdos.net>
35446 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35447 * config/i386/i386.h (TARGET_RDOS): New macro.
35448 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35449 * config/i386/i386.c (ix86_option_override_internal): For 64bit
35450 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35451 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35452 DEFAULT_LARGE_SECTION_THRESHOLD.
35453 * config/i386/i386.md (R14_REG, R15_REG): New constants.
35454 * config/i386/rdos.h: New file.
35455 * config/i386/rdos64.h: New file.
35457 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
35460 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35463 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35465 PR rtl-optimization/56117
35466 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35467 call cselib_lookup_from_insn on the MEM before calling
35468 add_insn_mem_dependence.
35470 2013-01-28 Richard Biener <rguenther@suse.de>
35472 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35473 to a stmt that didn't have one.
35474 (copy_phis_for_bb): Likewise for PHI arguments.
35475 (copy_debug_stmt): Likewise for debug stmts.
35477 2013-01-28 Richard Biener <rguenther@suse.de>
35479 PR tree-optimization/56034
35480 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35481 (partition_builtin_p): Adjust.
35482 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
35483 it is the last partition.
35484 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35485 up the vertex for the definition.
35486 (classify_partition): Classify whether a partition is a
35487 PKIND_REDUCTION, thus has uses outside of the loop.
35488 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35489 Merge all PKIND_REDUCTION partitions into the last partition.
35490 (tree_loop_distribution): Seed partitions from reductions as well.
35492 2013-01-28 Jakub Jelinek <jakub@redhat.com>
35494 PR tree-optimization/56125
35495 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35496 pow(x,c) into sqrt(x) * powi(x, n/2) or
35497 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35498 optimizing for size.
35499 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35500 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35503 PR tree-optimization/56094
35504 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35505 to UNKNOWN_LOCATION while gimplifying expr.
35507 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
35510 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35511 operand 0 in movabs insn template for -masm=intel asm alternative.
35512 (*movabs<mode>_2): Ditto for operand 1.
35514 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
35517 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35520 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35522 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35525 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35527 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35528 Undef to avoid warning.
35530 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
35532 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35533 * configure: Regenerate.
35535 2013-01-25 Jakub Jelinek <jakub@redhat.com>
35537 PR tree-optimization/56098
35538 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35539 for stmts with volatile ops.
35540 (cond_store_replacement): Don't optimize if assign has volatile ops.
35541 (cond_if_else_store_replacement_1): Don't optimize if either
35542 then_assign or else_assign have volatile ops.
35543 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35546 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35548 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35550 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35552 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35553 missing ':' in asm example.
35555 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
35557 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35558 entries into lane and laneq entries.
35559 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35560 Remove AdvSIMD scalar modes.
35561 (aarch64_sq<r>dmulh_laneq<mode>): New.
35562 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35564 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35565 builtin implementations to relfect changes in RTL in aarch64-simd.md.
35566 * config/aarch64/iterators.md (VCOND): New.
35569 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
35572 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35573 Add NULL LIBNAME argument to existing definitions.
35574 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35575 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35576 * config/avr/avr.c (DEF_BUILTIN): Same.
35577 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35578 (avr_expand_builtin): Expand to a vanilla call if a libgcc
35579 implementation is available (DECL_ASSEMBLER_NAME is set).
35580 (avr_fold_absfx): New static function.
35581 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35582 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35583 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35584 AVR_BUILTIN_ABSLLK.
35585 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35586 (abshk, absk, abslk, absllk): Provide as static inline functions.
35588 2013-01-25 Marek Polacek <polacek@redhat.com>
35590 PR tree-optimization/56035
35591 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35593 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
35595 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35596 (*movtf_internal_rex64): Add (!o,C) alternative
35597 (*movxf_internal_rex64): Ditto.
35598 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35600 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
35602 * doc/invoke.texi: fix typo.
35603 * doc/objc.texi: fix typo.
35605 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
35607 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35608 for the first two alternatives.
35610 2013-01-24 Diego Novillo <dnovillo@google.com>
35612 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
35613 (ggc-zone.o): Remove.
35614 * configure.ac: Remove option --with-gc.
35615 * configure: Re-generate.
35616 * doc/install.texi: Remove documentation for --with-gc.
35617 * gengtype.c (write_enum_defn): Remove. Update all users.
35618 (write_Types_process_field): Remove generation of gt_e_* argument.
35619 (output_type_enum): Remove. Update all users.
35620 (write_enum_defn): Remove. Update all users.
35621 (enum alloc_zone): Remove. Update all users.
35622 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35623 * ggc-common.c (ggc_splay_alloc): Remove first argument.
35624 Update all callers.
35625 (struct ptr_data): Remove field TYPE. Update all users.
35626 (gt_pch_note_object): Remove argument TYPE. Update all users.
35627 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35629 * ggc-none.c (ggc_alloc_typed_stat): Remove.
35630 (struct alloc_zone): Remove.
35631 (ggc_internal_alloc_zone_stat): Remove.
35632 (ggc_internal_cleared_alloc_zone_stat): Remove.
35633 * ggc-page.c (ggc_alloc_typed_stat): Remove.
35634 (ggc_pch_count_object): Remove last argument. Update all users.
35635 (ggc_pch_alloc_object): Remove last argument. Update all users.
35636 (struct alloc_zone): Remove.
35637 * ggc-zone.c: Remove.
35638 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
35639 (struct alloc_zone): Remove.
35640 (ggc_alloc_typed_stat): Remove.
35641 (ggc_alloc_typed): Remove.
35642 (ggc_splay_alloc): Remove first argument.
35643 (rtl_zone): Remove. Update all users.
35644 (tree_zone): Remove. Update all users.
35645 (tree_id_zone): Remove. Update all users.
35646 (ggc_internal_zone_alloc_stat): Remove. Update all users.
35647 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
35648 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
35649 * tree-ssanames.c: Remove references to zone allocator in comments.
35651 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
35653 * config/avr/avr.c (avr_out_fract): Make register numbers that
35654 might be outside of source operand signed.
35656 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
35658 * config/i386/constraints.md (Yf): New constraint.
35659 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35660 of f constraint to conditionaly disable x87 register preferences.
35661 (*movdf_internal): Ditto.
35662 (*movsf_internal): Ditto.
35664 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
35666 PR inline-asm/55934
35667 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35668 that have operands with impossible constraints.
35669 Add a FIXME for a speed-up opportunity.
35670 * lra-constraints.c (process_alt_operands): Verify that a class
35671 selected from constraints on asms is valid for the operand mode.
35672 (curr_insn_transform): Remove incorrect comment.
35674 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
35676 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35677 TOC operand is a valid symbol ref in the constant pool.
35679 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
35681 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35683 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
35686 * config/avr/stdfix.h: New file.
35687 * t-avr (stdfix-gcc.h): New rule to build it.
35688 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35690 2013-01-23 Kostya Serebryany <kcc@google.com>
35692 * config/darwin.h: remove dependency on
35693 CoreFoundation (asan on Mac OS).
35695 2013-01-23 Jakub Jelinek <jakub@redhat.com>
35698 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35699 instead of cmpdi_operand for first comparison operand.
35700 Don't assert that comparison operands aren't both constants.
35702 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35704 * doc/install.texi (Downloading the Source): Update references to
35705 downloading separate components.
35707 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
35709 * doc/extend.texi (__int128): Improve grammar.
35711 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
35714 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35715 alternative to (o,r).
35716 (*movdi_internal_rex64): Remove (!o,n) alternative.
35717 (DImode immediate->memory splitter): Remove.
35718 (DImode immediate->memory peephole2): Remove.
35719 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35720 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35721 alternative to (!o,*r).
35722 (*movtf_internal_sse): New pattern.
35723 (*movxf_internal_rex64): New pattern.
35724 (*movxf_internal): Disable for TARGET_64BIT.
35725 (*movdf_internal_rex64): Remove (!o,F) alternative.
35727 2013-01-22 Jakub Jelinek <jakub@redhat.com>
35729 PR middle-end/56074
35730 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35731 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35732 * tree-vect-loop-manip.c (find_loop_location): Also ignore
35733 stmt locations where LOCATION_LOCUS of the stmt location is
35734 UNKNOWN_LOCATION or BUILTINS_LOCATION.
35737 * config/i386/i386.md (UNSPEC_STOS): New.
35738 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35739 *strsetqi_1): Add UNSPEC_STOS.
35741 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
35744 * doc/invoke.texi: Remove left over -Wsynth example.
35746 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35748 PR tree-optimization/56051
35749 * fold-const.c (fold_binary_loc): Don't fold
35750 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35751 a narrowing conversion, or widening conversion from signed
35754 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35756 PR rtl-optimization/56023
35757 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35758 dependent on debug instruction.
35760 2013-01-21 Martin Jambor <mjambor@suse.cz>
35762 PR middle-end/56022
35763 * function.c (allocate_struct_function): Call
35764 invoke_set_current_function_hook earlier.
35766 2013-01-21 Jakub Jelinek <jakub@redhat.com>
35768 * reload1.c (init_reload): Only initialize reload_obstack
35769 during the first call.
35771 2013-01-21 Marek Polacek <polacek@redhat.com>
35773 * cfgloop.c (verify_loop_structure): Fix up grammar.
35775 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
35777 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35778 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35780 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35783 * config/arm/marvell-pj4.md: Update copyright year.
35784 Fix up use of alu to alu_reg and simple_alu_imm.
35786 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
35788 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35790 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
35793 * lra-constraints.c (curr_insn_transform): Don't reuse original
35794 insn for secondary memory move when memory mode should be different.
35796 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35798 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35799 atomic_storedi_1): New patterns.
35801 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
35803 btver2 pipeline descriptions.
35804 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35806 * config/i386/i386.md (btver2_decode): New type attributes.
35807 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35809 * config/i386/btver2.md: New file describing btver2 pipelines.
35811 2013-01-19 Andrew Pinski <apinski@cavium.com>
35813 PR tree-optimization/52631
35814 * tree-ssa-sccvn (visit_use): Before looking up the original
35815 statement, try looking up the simplified expression.
35817 2013-01-19 Anthony Green <green@moxielogic.com>
35819 * config/moxie/moxie.c (moxie_expand_prologue): Set
35820 current_function_static_stack_size.
35822 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35824 PR tree-optimization/56029
35825 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35826 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35828 2013-01-18 Sharad Singhai <singhai@google.com>
35830 PR tree-optimization/55995
35831 * dumpfile.c (dump_loc): Print location only if available.
35832 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35834 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
35837 * lra-constraints.c (curr_insn_transform): Reuse original insn for
35838 secondary memory move.
35839 (inherit_reload_reg): Use rclass instead of cl for
35840 check_secondary_memory_needed_p.
35842 2013-01-18 Jakub Jelinek <jakub@redhat.com>
35844 PR middle-end/56015
35845 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35846 the case where writing real complex part of target modifies op1.
35848 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
35850 * config/aarch64/aarch64-simd.md
35851 (aarch64_vcond_internal<mode>): Handle unordered cases.
35852 * config/aarch64/iterators.md (v_cmp_result): New.
35854 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
35855 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35857 * config/arm/marvell-pj4.md: New file.
35858 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35859 * config/arm/arm.md (generic_sched): Add marvell_pj4.
35860 (generic_vfp): Likewise.
35861 * config/arm/arm-cores.def: Add marvell-pj4.
35862 * config/arm/arm-tune.md: Regenerate.
35863 * config/arm/arm-tables.opt: Regenerate.
35864 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35865 * doc/invoke.texi: Document marvell-pj4.
35867 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
35869 * config/aarch64/arm_neon.h: Map scalar types to standard types.
35871 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35876 * var-tracking.c (negative_power_of_two_p): New.
35877 (global_get_addr_cache, local_get_addr_cache): New.
35878 (get_addr_from_global_cache, get_addr_from_local_cache): New.
35879 (vt_canonicalize_addr): Rewrite using the above. Adjust the
35881 (vt_stack_offset_p): Remove.
35882 (vt_canon_true_dep): Always canonicalize loc's address.
35883 (clobber_overlapping_mems): Make sure we have a MEM.
35884 (local_get_addr_clear_given_value): New.
35885 (val_reset): Clear local cached entries.
35886 (compute_bb_dataflow): Create and release the local cache.
35887 Disable duplicate MEMs clobbering.
35888 (emit_notes_in_bb): Clobber MEMs likewise.
35889 (vt_emit_notes): Create and release the local cache.
35890 (vt_initialize, vt_finalize): Create and release the global
35891 cache, respectively.
35892 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35894 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35896 PR libmudflap/53359
35897 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35898 not found in the symtab.
35900 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
35903 PR rtl-optimization/55547
35904 PR rtl-optimization/53827
35907 * alias.c (offset_overlap_p): New, factored out of...
35908 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
35909 the conservative special case for symbolic constants. Don't
35910 adjust zero sizes on alignment.
35912 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
35914 PR rtl-optimization/52573
35915 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35916 REG_UNUSED for the same register.
35918 2013-01-17 Richard Biener <rguenther@suse.de>
35919 Marek Polacek <polacek@redhat.com>
35921 PR rtl-optimization/55833
35922 * loop-unswitch.c (unswitch_loops): Move loop verification...
35923 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
35924 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35925 Set it to true when we're removing a loop from hierarchy tree in
35926 an irreducible region.
35927 (fix_bb_placements): Adjust caller.
35928 (fix_loop_placements): Likewise.
35930 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
35932 * config/avr/builtins.def (DEF_BUILTIN): Factor out
35933 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35934 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35935 Remove ID. Adjust comments.
35936 * config/avr/avr-c.c (avr_builtin_name): Remove.
35937 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35938 * config/avr/avr.c (avr_tolower): New static function.
35939 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
35940 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35941 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35944 2013-01-17 Jan Hubicka <jh@suse.cz>
35946 PR tree-optimization/55273
35947 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35949 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
35952 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35953 store through atomic_store<mode>_1.
35954 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35956 2013-01-17 Martin Jambor <mjambor@suse.cz>
35958 PR tree-optimizations/55264
35959 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35960 for virtual methods.
35961 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35962 virtual methods before inlining is over.
35963 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35965 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35968 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
35970 PR rtl-optimization/56005
35971 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35972 pending reads for prefetch.
35974 2013-01-16 Ian Bolton <ian.bolton@arm.com>
35976 * config/aarch64/aarch64.md
35977 (*cstoresi_neg_uxtw): New pattern.
35978 (*cmovsi_insn_uxtw): New pattern.
35979 (*<optab>si3_uxtw): New pattern.
35980 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35981 (*<optab>si3_insn_uxtw): New pattern.
35982 (*bswapsi2_uxtw): New pattern.
35984 2013-01-16 Richard Biener <rguenther@suse.de>
35986 * tree-inline.c (tree_function_versioning): Remove set but
35987 never used variable.
35989 2013-01-16 Richard Biener <rguenther@suse.de>
35991 PR tree-optimization/55964
35992 * tree-flow.h (rename_variables_in_loop): Remove.
35993 (rename_variables_in_bb): Likewise.
35994 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35995 (copy_loop_before): Adjust and delete update-ssa status.
35996 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35997 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
35998 (rename_variables_in_loop): Remove.
35999 (slpeel_update_phis_for_duplicate_loop): Likewise.
36000 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
36001 use available cfg machinery instead of duplicating it.
36002 Update PHI nodes and perform poor-mans SSA update here.
36003 (slpeel_tree_peel_loop_to_edge): Adjust.
36005 2013-01-16 Richard Biener <rguenther@suse.de>
36007 PR tree-optimization/54767
36008 PR tree-optimization/53465
36009 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
36010 (vrp_visit_phi_node): For PHI arguments coming via backedges
36011 drop all symbolical range information.
36012 (execute_vrp): Compute backedges.
36014 2013-01-16 Richard Biener <rguenther@suse.de>
36016 * doc/install.texi: Update CLooG and ISL requirements to
36019 2013-01-16 Christian Bruel <christian.bruel@st.com>
36022 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
36023 (broken_move): Handle UNSPECV_SP_SWITCH_B.
36024 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
36026 2013-01-16 DJ Delorie <dj@redhat.com>
36028 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
36029 (UNSPECV_SP_SWITCH_E): New.
36030 (sp_switch_1): Change to an unspec.
36031 (sp_switch_2): Change to an unspec. Don't use post-inc when we
36034 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
36036 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
36037 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
36038 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
36039 (expand_mem_thread_fence): Ditto.
36040 (expand_mem_signal_fence): Ditto.
36041 (expand_atomic_load): Ditto.
36042 (expand_atomic_store): Ditto.
36044 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
36046 PR rtl-optimization/55547
36047 PR rtl-optimization/53827
36050 * alias.c (memrefs_conflict_p): Set sizes to negative after
36053 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36056 * function.c (thread_prologue_and_epilogue_insns): Always
36057 add crtl->drap_reg to set_up_by_prologue.set, even if
36058 stack_realign_drap is false.
36060 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36062 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
36063 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
36064 *call): Fix indention.
36066 2013-01-15 Tom de Vries <tom@codesourcery.com>
36069 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
36072 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
36074 PR rtl-optimization/55153
36075 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
36077 2013-01-15 Martin Jambor <mjambor@suse.cz>
36079 PR tree-optimization/55920
36080 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
36081 accesses as grp_to_be_debug_replaced.
36083 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36085 PR tree-optimization/55920
36086 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
36087 there is non-useless type conversion needed from debug rhs to lhs,
36088 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
36090 2013-01-15 Joseph Myers <joseph@codesourcery.com>
36091 Mikael Pettersson <mikpe@it.uu.se>
36094 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
36096 (ASM_OUTPUT_CASE_LABEL): Remove.
36097 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
36098 * final.c (shorten_branches): Update alignment of labels before
36099 jump tables if CASE_VECTOR_SHORTEN_MODE.
36101 2013-01-15 Richard Biener <rguenther@suse.de>
36104 * system.h: Do not include gmp.h for building host tools.
36106 2013-01-15 Richard Biener <rguenther@suse.de>
36108 PR middle-end/55882
36109 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
36110 account for bitpos when computing alignment.
36112 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
36114 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
36115 (ix86_target_macros_internal): Likewise.
36117 * config/i386/i386.c (m_CORE2I7): Removed.
36118 (m_CORE_HASWELL): New macro.
36119 (m_CORE_ALL): Likewise.
36120 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
36121 (initial_ix86_arch_features): Likewise.
36122 (processor_target_table): Initializations for Core avx2.
36123 (cpu_names): New names "core-avx2".
36124 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
36125 PROCESSOR_CORE_HASWELL.
36126 (ix86_issue_rate): New case.
36127 (ia32_multipass_dfa_lookahead): Likewise.
36128 (ix86_sched_init_global): Likewise.
36130 * config/i386/i386.h (TARGET_HASWELL): New macro.
36131 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
36132 (processor_type): New PROCESSOR_HASWELL.
36134 2013-01-15 Jakub Jelinek <jakub@redhat.com>
36136 PR tree-optimization/55955
36137 * tree-vect-loop.c (vectorizable_reduction): Give up early on
36138 *SHIFT_EXPR and *ROTATE_EXPR codes.
36140 PR tree-optimization/48766
36141 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
36142 -ftrapv disable -fwrapv.
36144 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36147 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
36148 etc. to 1 and not to __flash.
36149 Use LL suffix for __INT24_MAX__ with -mint8.
36150 Use ULL suffix for __UINT24_MAX__ with -mint8.
36152 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36154 * config/avr/avr-arch.h
36155 (struct base_arch_s): Use typedef avr_arch_t instead.
36156 (struct arch_info_s): Use typedef avr_arch_info_t instead.
36157 (struct mcu_type_s): Use typedef avr_mcu_t instead.
36158 * config/avr/avr.c: Same.
36159 * config/avr/avr-devices.c: Same.
36160 * config/avr/driver-avr.c: Same.
36161 * config/avr/gen-avr-mmcu-texi.c: Same.
36162 * config/avr/avr-mcus.def: Adjust comment.
36164 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
36166 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
36167 * config/aarch64/iterators.md (VALLDI): New.
36169 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
36170 Andi Kleen <ak@linux.intel.com>
36173 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
36174 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
36177 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36179 * config/avr/avr-stdint.h: Remove trailing blanks.
36180 * config/avr/avr-log.h: Same.
36181 * config/avr/avr-arch.h: Same.
36182 * config/avr/avr-devices.c: Same.
36183 * config/avr/avr-dimode.md: Same.
36184 * config/avr/predicates.md: Same.
36185 * config/avr/avr-c.c: Same. And fix typo.
36187 * config/avr/avr-protos.h: Same. And:
36188 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
36189 (init_cumulative_args): Rename to avr_init_cumulative_args.
36190 (expand_prologue): Rename to avr_expand_prologue.
36191 (expand_epilogue): Rename to avr_expand_epilogue.
36192 (adjust_insn_length): Rename to avr_adjust_insn_length.
36193 (notice_update_cc): Rename to avr_notice_update_cc.
36194 (final_prescan_insn): Rename to avr_final_prescan_insn.
36195 * config/avr/avr.c: Same.
36196 * config/avr/avr.h: Same.
36197 * config/avr/avr.md: Remove trailing blanks.
36198 (prologue): Use avr_expand_prologue.
36199 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
36201 2013-01-14 Richard Biener <rguenther@suse.de>
36203 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
36204 verify_location, collect_subblocks): New functions.
36205 (verify_gimple_in_cfg): Verify that locations only reference
36206 BLOCKs in the functions BLOCK tree.
36208 2013-01-14 Richard Biener <rguenther@suse.de>
36210 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
36212 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
36214 (insert_out_of_ssa_copy_on_edge): Likewise.
36215 (rewrite_close_phi_out_of_ssa): Likewise.
36216 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
36218 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
36219 propagated constants.
36220 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
36223 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
36225 * config/avr/avr-modes.def: Add GPL copyright notice.
36227 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
36229 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
36230 MEMMODEL_MASK to determine memory model.
36231 (atomic_store<mode>): Ditto from operands[2].
36232 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
36234 2013-01-13 Jakub Jelinek <jakub@redhat.com>
36237 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
36238 (fold_gimple_assign): Don't call unshare_expr here.
36239 (fold_ctor_reference): Call unshare_expr.
36241 2013-01-13 Terry Guo <terry.guo@arm.com>
36243 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
36244 * doc/fragments.texi: Document MULTILIB_REUSE.
36245 * gcc.c (multilib_reuse): New internal spec.
36246 (set_multilib_dir): Also search multilib from multilib_reuse.
36247 * genmultilib (tmpmultilib3): Refactor code.
36248 (tmpmultilib4): Ditto.
36249 (multilib_reuse): New multilib argument.
36251 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
36253 * Makefile.in: Update copyright.
36255 2013-01-12 Tom de Vries <tom@codesourcery.com>
36257 PR middle-end/55890
36258 * calls.c (expand_call): Check if arg_nr is valid.
36260 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36262 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
36263 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
36264 documentation. Add missing '__' in front of
36265 __builtin_ia32_packssdw256.
36267 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36270 * config/s390/s390.c (s390_preferred_reload_class): Do not return
36271 NO_REGS for larl operands.
36272 (s390_reload_larl_operand): Use s390_load_address instead of
36275 2013-01-11 Richard Biener <rguenther@suse.de>
36277 * tree-cfg.c (verify_node_sharing_1): Split out from ...
36278 (verify_node_sharing): ... here.
36279 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
36281 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
36283 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
36284 Substitute TREECHECKING.
36285 * configure: Regenerate.
36286 * Makefile.in (TREECHECKING): New.
36288 2013-01-11 Richard Guenther <rguenther@suse.de>
36290 PR tree-optimization/44061
36291 * tree-vrp.c (extract_range_basic): Compute zero as
36292 value-range for __builtin_constant_p of function parameters.
36294 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
36296 Update copyright years.
36298 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
36300 PR rtl-optimization/55672
36301 * lra-eliminations.c (mark_not_eliminable): Permit addition with
36302 const to be eliminable.
36304 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
36306 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
36307 * configure: Regenerate.
36309 2013-01-10 Richard Biener <rguenther@suse.de>
36311 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
36313 2013-01-10 Richard Biener <rguenther@suse.de>
36316 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
36317 locations for virtual PHI arguments.
36318 (rewrite_update_phi_arguments): Likewise.
36320 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
36322 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
36325 2013-01-10 Jakub Jelinek <jakub@redhat.com>
36327 PR tree-optimization/55921
36328 * tree-complex.c (expand_complex_asm): New function.
36329 (expand_complex_operations_1): Call it for GIMPLE_ASM.
36331 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36334 * config/s390/s390.c (s390_symref_operand_p)
36335 (s390_loadrelative_operand_p): Merge the two functions.
36336 (s390_check_qrst_address, print_operand_address): Add parameters
36337 to s390_loadrelative_operand_p invokation.
36338 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
36339 (s390_reload_larl_operand, s390_secondary_reload): Use
36340 s390_loadrelative_operand_p instead of s390_symref_operand_p.
36341 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
36343 2013-01-09 Mike Stump <mikestump@comcast.net>
36345 * dse.c (record_store): Remove unnecessary assert.
36347 2013-01-09 Jan Hubicka <jh@suse.cz>
36349 PR tree-optimization/55569
36350 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
36351 * cfgloop.h (scale_loop_profile): Likewise.
36353 2013-01-09 Jan Hubicka <jh@suse.cz>
36356 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36358 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36360 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
36362 PR middle-end/55114
36363 * expr.h (maybe_emit_group_store): Declare.
36364 * expr.c (maybe_emit_group_store): New function.
36365 * builtins.c (expand_builtin_int_roundingfn): Call it.
36366 (expand_builtin_int_roundingfn_2): Likewise.
36368 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
36370 PR rtl-optimization/55829
36371 * lra-constraints.c (match_reload): Add code for absent output.
36372 (curr_insn_transform): Add code for reloads of matched inputs
36375 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
36377 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36378 attribute of movddup insn to DF.
36379 (*vec_interleave_lowv2df): Ditto.
36380 (vec_dupv2df): Ditto.
36382 2013-01-09 Jan Hubicka <jh@suse.cz>
36384 PR tree-optimiation/55875
36385 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36386 EVERY_ITERATION parameter.
36387 (number_of_iterations_exit): Check if exit is executed every iteration.
36388 (idx_infer_loop_bounds): Similarly here.
36389 (n_of_executions_at_most): Simplify
36390 to only test for cases where statement is dominated by the
36391 particular bound; handle correctly the "postdominance" test.
36392 (scev_probably_wraps_p): Use max loop iterations info
36393 as a global bound first.
36395 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
36396 Nick Clifton <nickc@redhat.com>
36398 * config/v850/v850.md (cbranchsf4): New pattern.
36399 (cstoresf4): New pattern.
36400 (cbranchdf4): New pattern.
36401 (cstoredf4): New pattern.
36402 (movsicc): Disallow floating point comparisons.
36403 (cmpsf_le_insn): Fix order of operators.
36404 (cmpsf_lt_insn): Likewise.
36405 (cmpsf_eq_insn): Likewise.
36406 (cmpdf_le_insn): Likewise.
36407 (cmpdf_lt_insn): Likewise.
36408 (cmpdf_eq_insn): Likewise.
36409 (cmpsf_ge_insn): Use LE comparison.
36410 (cmpdf_ge_insn): Likewise.
36411 (cmpsf_gt_insn): Use LT comparison.
36412 (cmpdf_gt_insn): Likewise.
36413 (cmpsf_ne_insn): Delete pattern.
36414 (cmpdf_ne_insn): Delete pattern.
36415 * config/v850/v850.c (v850_gen_float_compare): Use
36416 gen_cmpdf_eq_insn for NE comparison.
36417 (v850_float_z_comparison_operator)
36418 (v850_float_nz_comparison_operator): Move from here ...
36419 * config/v850/predicates.md: ... to here. Move GT and GE
36420 comparisons into v850_float_z_comparison_operator.
36421 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36423 (v850_float_nz_comparison_operator): Likewise.
36425 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36427 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36428 with calls to gen_insvsi/gen_insvdi.
36430 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
36432 * config/i386/i386.c (initial_ix86_tune_features): Set up
36433 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36435 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
36436 Jakub Jelinek <jakub@redhat.com>
36438 PR tree-optimization/48189
36439 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36440 If nitercst is 0, don't predict the exit edge.
36442 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36444 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36445 in asm_fprintf with reg_names.
36446 (aarch64_print_operand_address): Likewise.
36447 (aarch64_return_addr): Likewise.
36448 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36450 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36452 * config/pa/pa.h (VAL_U6_BITS_P): Define.
36453 (INT_U6_BITS): Likewise.
36454 * config/pa/predicates.md (uint6_operand): New predicate.
36455 (shift5_operand, shift6_operand): Likewise.
36456 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36458 (lshrdi3): Use shift6_operand.
36459 (shrpsi4, shrpdi4): New insn patterns.
36460 (extzv): Delete expander.
36461 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
36462 predicates in unamed zero extract patterns. Tighten common constraint.
36463 (extv): Delete expander.
36464 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
36465 predicates in unamed sign extract patterns. Tighten common constraint.
36466 (insv): Delete expander.
36467 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
36468 predicates in unamed insert patterns. Tighten common constraint.
36469 Change uint32_operand predicate to uint6_operand predicate in unamed
36470 DImode pattern to insert constant values of type 1...1xxxx.
36472 2013-01-04 Jan Hubicka <jh@suse.cz>
36474 PR tree-optimization/55823
36475 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36478 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36479 Uros Bizjak <ubizjak@gmail.com>
36481 PR rtl-optimization/55845
36482 * df-problems.c (can_move_insns_across): Stop scanning at
36483 volatile_insn_p source instruction or give up if
36484 across_from .. across_to range contains any volatile_insn_p
36487 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36489 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36490 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36492 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36493 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36495 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36498 * asan.c (asan_clear_shadow): New function.
36499 (asan_emit_stack_protection): Use it.
36501 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
36503 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36504 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36505 with tab instead of space.
36507 2013-01-08 Nick Clifton <nickc@redhat.com>
36509 * config/rl78/rl78.c (rl78_expand_prologue): Always select
36510 register bank 0 at the start of an interrupt handler.
36511 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36514 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36516 * config/aarch64/aarch64-simd.md
36517 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36518 (aarch64_simd_bsl): Likewise.
36519 (aarch64_vcond_internal<mode>): Likewise.
36520 (vcond<mode><mode>): Likewise.
36521 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36522 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36524 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
36526 * config/aarch64/aarch64-builtins.c
36527 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36529 2013-01-08 Martin Jambor <mjambor@suse.cz>
36532 * tree-sra.c (analyze_access_subtree): Return true also after
36533 potentially creating a debug-only replacement.
36535 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36537 PR middle-end/55890
36538 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36540 PR tree-optimization/54120
36541 * tree-vrp.c (range_fits_type_p): Don't allow
36542 src_precision < precision from signed vr to unsigned_p
36543 if vr->min or vr->max is negative.
36544 (simplify_float_conversion_using_ranges): Test can_float_p
36545 against CODE_FOR_nothing.
36547 2013-01-08 Jakub Jelinek <jakub@redhat.com>
36548 Richard Biener <rguenther@suse.de>
36550 PR middle-end/55851
36551 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36552 types instead of just INTEGER_TYPE types.
36554 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
36556 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36559 2013-01-07 Steve Ellcey <sellcey@mips.com>
36562 * config/mips/mips.opt: Change mad to mmad to match documentation.
36564 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36567 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36568 .progmemx.data now.
36570 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36573 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36574 (avr_addrspace_t): Add .section_name field.
36575 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36577 (avr_addrspace): Same. Initialize .section_name. Remove last
36578 NULL entry. Put __memx into .progmemx.data.
36579 (progmem_section_prefix): Remove.
36580 (avr_asm_init_sections): No need to initialize progmem_section.
36581 (avr_asm_named_section): Use avr_addrspace[].section_name to get
36582 section name prefix.
36583 (avr_asm_select_section): Ditto. And use get_unnamed_section to
36584 retrieve the progmem section.
36585 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36586 boundary to run over avr_addrspace[].
36587 (avr_register_target_pragmas): Ditto.
36589 2013-01-06 Jakub Jelinek <jakub@redhat.com>
36591 * varasm.c (output_constant_def_contents): For asan_protect_global
36592 protected strings, adjust DECL_ALIGN if needed, before testing for
36594 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36595 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
36597 (output_object_block): For asan protected decls, emit asan padding
36598 after their contents.
36599 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36600 (asan_finish_file): Test it here instead.
36602 2013-01-07 Nick Clifton <nickc@redhat.com>
36603 Matthias Klose <doko@debian.org>
36604 Doug Kwan <dougkwan@google.com>
36605 H.J. Lu <hongjiu.lu@intel.com>
36608 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36610 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36612 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36614 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36616 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36618 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36621 * doc/install.texi (Cross-Compiler-Specific Options): Document
36624 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
36626 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36627 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36628 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36629 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36630 vqmovun_high_s64): Fix source operand number and update copyright.
36632 2013-01-07 Richard Biener <rguenther@suse.de>
36634 PR middle-end/55890
36635 * gimple.h (gimple_call_builtin_p): New overload.
36636 * gimple.c (validate_call): New function.
36637 (gimple_call_builtin_p): Likewise.
36638 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36639 Use gimple_call_builtin_p.
36640 (find_func_clobbers): Likewise.
36641 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36642 (strlen_optimize_stmt): Likewise.
36644 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36646 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36647 (vld1q_dup_*): Likewise.
36648 (vld1_*): Likewise.
36649 (vld1q_*): Likewise.
36650 (vld1_lane_*): Likewise.
36651 (vld1q_lane_*): Likewise.
36653 2013-01-07 Richard Biener <rguenther@suse.de>
36655 * lto-streamer.h (LTO_minor_version): Bump to 2.
36657 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36659 * config/aarch64/aarch64-protos.h
36660 (aarch64_const_double_zero_rtx_p): Rename to...
36661 (aarch64_float_const_zero_rtx_p): ...this.
36662 (aarch64_float_const_representable_p): New.
36663 (aarch64_output_simd_mov_immediate): Likewise.
36664 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36665 move immediate case.
36666 * config/aarch64/aarch64.c
36667 (aarch64_const_double_zero_rtx_p): Rename to...
36668 (aarch64_float_const_zero_rtx_p): ...this.
36669 (aarch64_print_operand): Allow printing of new constants.
36670 (aarch64_valid_floating_const): New.
36671 (aarch64_legitimate_constant_p): Check for valid floating-point
36673 (aarch64_simd_valid_immediate): Likewise.
36674 (aarch64_vect_float_const_representable_p): New.
36675 (aarch64_float_const_representable_p): Likewise.
36676 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36677 (aarch64_output_simd_mov_immediate): New.
36678 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36679 (*movdf_aarch64): Likewise.
36680 * config/aarch64/constraints.md (Ufc): New.
36681 (Y): call aarch64_float_const_zero_rtx.
36682 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36684 2013-01-07 Richard Biener <rguenther@suse.de>
36686 PR tree-optimization/55888
36687 PR tree-optimization/55862
36688 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36689 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36690 not if it is contained therein.
36692 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36694 * config/avr/t-avr: Typo.
36696 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
36699 * config/avr/t-avr: Don't automatically rebuild
36700 $(srcdir)/config/avr/t-multilib
36701 $(srcdir)/config/avr/avr-tables.opt
36702 $(srcdir)/doc/avr-mmcu.texi
36703 (avr-mcus): New phony target to build them on request.
36704 (s-avr-mlib, s-avr-mmcu-texi): Remove.
36705 * avr/avr-mcus.def: Adjust comments.
36707 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
36709 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36711 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36713 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36715 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
36717 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36719 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
36721 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36722 to generate profiling.
36723 * config/rs6000/aix64.h (LIB_SPEC): Same.
36725 2013-01-04 Andrew Pinski <apinski@cavium.com>
36727 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36729 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36731 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
36733 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36735 (ix86_expand_move): Ditto.
36736 (ix86_zero_extend_to_Pmode): Ditto.
36737 (ix86_expand_call): Ditto.
36738 (ix86_expand_special_args_builtin): Ditto.
36739 (ix86_expand_builtin): Ditto.
36741 2013-01-04 Richard Biener <rguenther@suse.de>
36743 PR tree-optimization/55862
36744 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36745 translating them through PHI nodes.
36747 2013-01-04 Martin Jambor <mjambor@suse.cz>
36749 PR tree-optimization/55755
36750 * tree-sra.c (sra_modify_assign): Do not check that an access has no
36751 children when trying to avoid producing a VIEW_CONVERT_EXPR.
36753 2013-01-04 Marek Polacek <polacek@redhat.com>
36755 PR middle-end/55859
36756 * opts.c (default_options_optimization): Clarify error message.
36758 2013-01-04 Richard Biener <rguenther@suse.de>
36760 PR middle-end/55863
36761 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36764 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36767 * config/pa/pa.md (movsi): Revert previous change.
36768 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36771 2013-01-03 Richard Henderson <rth@redhat.com>
36773 * config/i386/i386.c (ix86_expand_move): Always assign to op1
36774 after eliminating TLS symbols.
36776 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
36779 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36780 * graphite-poly.c (debug_gmp_value): Likewise.
36782 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
36785 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36786 selected code model, define __code_mode_small__, __code_model_medium__,
36787 __code_model_large__, __code_model_32__ or __code_model_kernel__.
36788 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36789 xchg temporary register with %k. Declare temporary register as
36791 [__x86_64__]: For medium and large code models, preserve %rbx register.
36793 2013-01-03 Richard Biener <rguenther@suse.de>
36795 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36796 (dump_subscript): Adjust.
36797 (finalize_ddr_dependent): Do not dump redundant info.
36798 (analyze_siv_subscript): Adjust.
36799 (subscript_dependence_tester): Likewise.
36800 (compute_affine_dependence): Likewise.
36802 2013-01-03 Richard Biener <rguenther@suse.de>
36805 2013-01-03 Richard Biener <rguenther@suse.de>
36807 PR tree-optimization/55857
36808 * tree-vect-stmts.c (vectorizable_load): Do not setup
36809 re-alignment for invariant loads.
36811 2013-01-02 Richard Biener <rguenther@suse.de>
36813 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36814 invariant load do not generate a vector load from the scalar location.
36816 2013-01-03 Richard Biener <rguenther@suse.de>
36818 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36819 for not vectorizing.
36820 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36821 not build INDIRECT_REFs, call get_name once only.
36822 (vect_create_data_ref_ptr): Likewise. Dump base object kind
36823 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36825 2013-01-03 Richard Biener <rguenther@suse.de>
36827 PR tree-optimization/55857
36828 * tree-vect-stmts.c (vectorizable_load): Do not setup
36829 re-alignment for invariant loads.
36831 2013-01-03 Richard Biener <rguenther@suse.de>
36834 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36835 prefer a built-in decl.
36837 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36839 * gcc.c (process_command): Update copyright notice dates.
36840 * gcov.c (print_version): Likewise.
36841 * gcov-dump.c (print_version): Likewise.
36843 PR rtl-optimization/55838
36844 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36845 iv0.step, iv1.step and step.
36847 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36848 Marc Glisse <marc.glisse@inria.fr>
36850 PR tree-optimization/55832
36851 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36852 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36853 integer_{one,zero}_node.
36855 2013-01-03 Jakub Jelinek <jakub@redhat.com>
36858 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36859 * var-tracking.c (reverse_op): Don't add reverse ops to
36860 VALUEs that have already
36861 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36863 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
36865 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36867 2013-01-02 Teresa Johnson <tejohnson@google.com>
36869 * dumpfile.c (dump_loc): Print filename with location.
36870 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36871 new location_t parameter to emit complete unroll message with
36872 new dump framework.
36873 (canonicalize_loop_induction_variables): Compute loops location
36874 and pass to try_unroll_loop_completely.
36875 * loop-unroll.c (report_unroll_peel): New function.
36876 (peel_loops_completely): Use new dump format with location
36877 for main dumpfile message, and invoke report_unroll_peel on success.
36878 (decide_unrolling_and_peeling): Ditto.
36879 (decide_peel_once_rolling): Remove old dumpfile message subsumed
36880 by report_unroll_peel.
36881 (decide_peel_completely): Ditto.
36882 (decide_unroll_constant_iterations): Ditto.
36883 (decide_unroll_runtime_iterations): Ditto.
36884 (decide_peel_simple): Ditto.
36885 (decide_unroll_stupid): Ditto.
36886 * cfgloop.c (get_loop_location): New function.
36887 * cfgloop.h (get_loop_location): Declare.
36889 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36891 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36894 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
36896 PR middle-end/55198
36897 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36898 BLKmode objects when EXPAND_MEMORY is specified.
36900 2013-01-02 Sriraman Tallam <tmsriram@google.com>
36902 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36904 (fold_builtin_cpu): Do not share cpu model decls across statements.
36906 2013-01-02 Jason Merrill <jason@redhat.com>
36909 * tree.c (build_array_type_1): Revert earlier change.
36911 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
36913 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36915 * config/aarch64/aarch64-tune.md: Re-generate.
36917 2013-01-02 Richard Biener <rguenther@suse.de>
36919 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36920 invariant load do not generate a vector load from the scalar location.
36922 2013-01-02 Richard Biener <rguenther@suse.de>
36925 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36926 * configure: Regenerate.
36928 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36930 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36931 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36932 (expand_builtin_int_roundingfn_2): Keep the original target around
36933 for the fallback case.
36935 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36937 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36938 to be clear for sign changes.
36940 2013-01-01 Jan Hubicka <jh@suse.cz>
36942 * ipa-inline-analysis.c: Fix formatting.
36944 2013-01-01 Jakub Jelinek <jakub@redhat.com>
36946 PR tree-optimization/55831
36947 * tree-vect-loop.c (get_initial_def_for_induction): Use
36948 gsi_after_labels instead of gsi_start_bb.
36950 Copyright (C) 2013 Free Software Foundation, Inc.
36952 Copying and distribution of this file, with or without modification,
36953 are permitted in any medium without royalty provided the copyright
36954 notice and this notice are preserved.